高级会员
- 积分
- 830
- 金钱
- 830
- 注册时间
- 2017-8-3
- 在线时间
- 145 小时
|
1金钱
[mw_shl_code=c,true]typedef struct ADC12_MemMap {
uint8 ADC12MCTL[16];
uint8 RESERVED_0[176];
uint16 ADC12MEM[16];
uint8 RESERVED_1[64];
uint16 ADC12CTL0;
uint16 ADC12CTL1;
uint16 ADC12IFG;
uint16 ADC12IE;
uint16 ADC12IV;
} volatile *ADC12_MemMapPtr;[/mw_shl_code]
这个结构体是下载的库里一个头文件内,一直都是这两行报错,错误说明
Multiple markers at this line
- MSP430.h, line 1448 [S/W BP]
- #18 expected a ")"
- #41 expected an identifier
- MSP430.h, line 1448 [H/W BP -
我在msp430f5529.h找到
[mw_shl_code=c,true]#define ADC12MCTL_ ADC12MCTL /* ADC12 Memory Control */
#ifdef __ASM_HEADER__
#define ADC12MCTL ADC12MCTL0 /* ADC12 Memory Control (for assembler) */
#else
#define ADC12MCTL ((char*) &ADC12MCTL0) /* ADC12 Memory Control (for C) */
#endif[/mw_shl_code]
[mw_shl_code=applescript,true]#define ADC12MEM_ ADC12MEM /* ADC12 Conversion Memory */
#ifdef __ASM_HEADER__
#define ADC12MEM ADC12MEM0 /* ADC12 Conversion Memory (for assembler) */
#else
#define ADC12MEM ((int*) &ADC12MEM0) /* ADC12 Conversion Memory (for C) */
#endif[/mw_shl_code]
请问该怎么解决呢?第一次发贴,不规整请见谅 |
|