有啊
__INTERRUPT
__HIGH_CODE
void SysTick_Handler(void)
__INTERRUPT
__HIGH_CODE
void USB_IRQHandler(void)
我从CH582里面拷贝了宏定义
#ifndef __HIGH_CODE
#define __HIGH_CODE __attribute__((section(".highcode")))
#endif
#ifndef __INTERRUPT
#ifdef INT_SOFT
#define __INTERRUPT __attribute__((interrupt()))
#else
#define __INTERRUPT __attribute__((interrupt("WCH-Interrupt-fast")))
#endif
#endif
而且官方例程TMR里面默认是带这两个的:
__attribute__((interrupt("WCH-Interrupt-fast")))
__attribute__((section(".highcode")))
void TMR0_IRQHandler(void) // TMR0 定时中断
|