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:中断服务函数的声明

Guru**** 2589265 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1107862/tms320f28379d-the-declaration-of-interrupt-service-function

器件型号:TMS320F28379D

大家好、

以下是客户提出的问题、可能需要您的帮助:

声明中断服务函数有3种方法:

1)_interrupt void CPU_timer0_ISR (void);

2)中断 void adca1_ISR (void);

3)_attribute_((中断)) void cpu_timer0_isr (void);

这三种形式的声明之间有何区别?使用方案分别是什么?

您可以帮助检查此案例吗? 谢谢。

此致、

樱桃

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    以上三种情况是等效的。