|
msp430G2553头文件里的一点疑惑:SFR_16BIT(WDTCTL); 中的WDTCTL为何没有定义???
[复制链接]
- /* External references resolved by a device-specific linker command file */
- #define SFR_8BIT(address) extern volatile unsigned char address
- #define SFR_16BIT(address) extern volatile unsigned int address
- #define SFR_32BIT(address) extern volatile unsigned long address
复制代码
- /************************************************************
- * WATCHDOG TIMER
- ************************************************************/
- #define __MSP430_HAS_WDT__ /* Definition to show that Module is available */
- SFR_16BIT(WDTCTL); /* Watchdog Timer Control */
- /* The bit names have been prefixed with "WDT" */
- #define WDTIS0 (0x0001)
- #define WDTIS1 (0x0002)
- #define WDTSSEL (0x0004)
- #define WDTCNTCL (0x0008)
- #define WDTTMSEL (0x0010)
- #define WDTNMI (0x0020)
- #define WDTNMIES (0x0040)
- #define WDTHOLD (0x0080)
- #define WDTPW (0x5A00)
复制代码 SFR_16BIT(WDTCTL); /* Watchdog Timer Control */这一句中的WDTCTL怎么找不到,SFR_16BIT(WDTCTL);sfr是配置一个寄存器,按照
#define SFR_8BIT(address) extern volatile unsigned char address ,SFR_16BIT(WDTCTL)是把WDTCTL这个地址配置给哪个寄存器?是WDTCTL??
谢谢!
|
|