C语言中的 @ 符号是什么意思?
看到一段程序自动生成的嵌入式C语言代码,
在.c文件中是这样调用的,
/* PTASE: PTASE1=1,PTASE0=1 */
PTASE |= (unsigned char)0x03;
在.h文件中是这样定义的,先定义了一个结构体
/*** PTASE - Slew Rate Control Enable for Port A; 0x00001841 ***/
typedef union {
byte Byte;
struct {
byte PTASE0 :1; /* Slew Rate Control Enable for Port A Bit 0 */
byte PTASE1 :1; /* Slew Rate Control Enable for Port A Bit 1 */
byte PTASE2 :1; /* Slew Rate Control Enable for Port A Bit 2 */
byte PTASE3 :1; /* Slew Rate Control Enable for Port A Bit 3 */
byte PTASE4 :1; /* Slew Rate Control Enable for Port A Bit 4 */
byte PTASE5 :1; /* Slew Rate Control Enable for Port A Bit 5 */
byte PTASE6 :1; /* Slew Rate Control Enable for Port A Bit 6 */
byte PTASE7 :1; /* Slew Rate Control Enable for Port A Bit 7 */
} Bits;
} PTASESTR;
这下面一句中的@符合到底代表什么意思?应该是定义一个结构体变量,然后这个变量是指向0x00001841地址的
extern volatile PTASESTR _PTASE @0x00001841;
#define PTASE _PTASE.Byte
并宏定义了指向结构体变量
我想问的是@符合到底是什么意思?或哪里有@符号的详细解释,Thanks