stm32的rxcallback再debug界面显示没有编译,uC/OS-III

因为uC/OS-III中对中断向量表做了重新映射,之所以这样,是为了不和uc/osiii冲突

在hal_hart.c中添加如下代码

#include  <bsp.h>

 UART_HandleTypeDef uart;

void HAL_UART2_IRQHandler(void )
{
 HAL_UART_IRQHandler(&uart);
}

HAL_UART_MspInit()

{

  BSP_IntVectSet(BSP_INT_ID_USART2, HAL_UART2_IRQHandler);

}

猜你喜欢

转载自www.cnblogs.com/deyicun/p/11310689.html