This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28379D: 关于中断服务函数的声明

Part Number: TMS320F28379D


在例程中总共看到了3种中断服务函数的声明方式,分别是:

__interrupt void cpu_timer0_isr(void);

interrupt void adca1_isr(void);

__attribute__((interrupt)) void cpu_timer0_isr(void);

请问这三种声明方式有什么区别,什么时候应该用哪一种声明方式