已经修改过了是这样吗?
include "wm_hal. h"
define readl (addr) ({unsigned int __v = ( (volatile unsigned int ) (addr) ) ; __v; })
__attribute__ ( (isr) ) void CORET_IRQHandler (void)
{
readl (0xE000E010) ;
HAL_IncTick () ;
}
extern UART_HandleTypeDef huart2;
__attribute__ ( (isr) ) void UART2_4_IRQHandler (void)
{
HAL_UART_IRQHandler (&huart2) ;
}
问 使用 W806 串口 UART2, 为什么一旦发送就出现设备中断?