原文见:avr-libc: <avr/interrupt.h>: Interrupts
我摘录其中一段: Starting with avr-libc version 1.4.0, a second style of interrupt vector names has been added, where a short phrase for the vector description is followed by _vect. The short phrase matches the vector name as described in the datasheet of the respective device (and in Atmel's XML files), with spaces replaced by an underscore and other non-alphanumeric characters dropped. Using the suffix _vect is intented to improve portability to other C compilers available for the AVR that use a similar naming convention.
The historical naming style might become deprecated in a future release, so it is not recommended for new projects.
从avr-libc 1.4.0开始,加入了第二种风格的中断向量名称,形式为一个向量描述的短语紧接着_vect。这个短语中的向量名称是AVR器件手册中描述的(Atmel的XML文件也有),名称中的空格用下划线代替,并且去掉非字母数字的其它字符。使用_vect后缀是为了改善与其它C编译器的可移植性,这些AVR编译器使用类似的命名习惯。
老式的命名风格可能会在将来的版本中被摒弃,所以不推荐使用在新的项目中。
|