#define DEFINE_FAST_IRQ_HANDLER(irq_handler) void irq_handler() __attribute__((interrupt("WCH-Interrupt-fast"))) DEFINE_FAST_IRQ_HANDLER(NMI_Handler); DEFINE_FAST_IRQ_HANDLER(HardFault_Handler); DEFINE_FAST_IRQ_HANDLER(Ecall_U_Mode_Handler); DEFINE_FAST_IRQ_HANDLER(SysTick_Handler); DEFINE_FAST_IRQ_HANDLER(SW_Handler); DEFINE_FAST_IRQ_HANDLER(TMR0_IRQHandler); DEFINE_FAST_IRQ_HANDLER(GPIOA_IRQHandler); DEFINE_FAST_IRQ_HANDLER(GPIOB_IRQHandler); DEFINE_FAST_IRQ_HANDLER(SPI0_IRQHandler); DEFINE_FAST_IRQ_HANDLER(BB_IRQHandler); DEFINE_FAST_IRQ_HANDLER(LLE_IRQHandler); DEFINE_FAST_IRQ_HANDLER(USB_IRQHandler); DEFINE_FAST_IRQ_HANDLER(TMR1_IRQHandler); DEFINE_FAST_IRQ_HANDLER(TMR2_IRQHandler); DEFINE_FAST_IRQ_HANDLER(UART0_IRQHandler); DEFINE_FAST_IRQ_HANDLER(UART1_IRQHandler); DEFINE_FAST_IRQ_HANDLER(RTC_IRQHandler); DEFINE_FAST_IRQ_HANDLER(ADC_IRQHandler); DEFINE_FAST_IRQ_HANDLER(PWMX_IRQHandler); DEFINE_FAST_IRQ_HANDLER(TMR3_IRQHandler); DEFINE_FAST_IRQ_HANDLER(UART2_IRQHandler); DEFINE_FAST_IRQ_HANDLER(UART3_IRQHandler); DEFINE_FAST_IRQ_HANDLER(I2C_IRQHandler);
这段代码是什么含义,官方例程没有这段也可以工作,我的项目删掉就不行
热门产品 :
CH592: RISC-V内核BLE5.4无线MCU