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.

[参考译文] MSP430F5529:错误:#41需要一个标识符

Guru**** 2782445 points

Other Parts Discussed in Thread: MSP430F5529

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1011582/msp430f5529-error-41-expected-an-identifier

器件型号:MSP430F5529

大家好、

我刚刚继承了一个正在进行的项目。 我想它是在2016年开发的。

代码用于基于 msp430f5529的电路板。 它目前正在运行、运行和销售。

我已经能够将其导入 CCS10.x 它是为 CCS6开发的、但只要我有合适的工具版本、我就不会觉得这是个问题

只要是 v18.x 编译器(需要 v15.x)、我就能够安装其 TI-RTOS 2.20.0.06依赖项。

但是、我达到了无法解决编译"error #41 Expected an identifier"的点。

我需要将 msp430f5529.h 行3707归档。

SFR_8BIT(USBIEP0BUF);                         /* Input endpoint_0 buffer */
SFR_8BIT(USBOEP0BUF);                         /* Output endpoint_0 buffer */

在按住 Ctrl 键的同时单击 USBIEP0BUF 字、将转至文件 defMSP430USB.h、第178行

//input and output buffers for EP0
#define USBIEP0BUF 0x2378
#define USBOEP0BUF 0x2370

按住 Ctrl 键并单击宏定义时、会打开一个文件对话框

当然、任何想法都值得赞赏、您可以随时询问您可能需要的任何其他信息。