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.

[参考译文] MSP430FR2476:CCS 中 Energia 的 DriverLib 缺少器件_MSP430FR2476__定义

Guru**** 663810 points
Other Parts Discussed in Thread: ENERGIA, MSP430FR2476, MSP430FR5730, MSP430FR5969
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1118428/msp430fr2476-driverlib-for-energia-in-ccs-missing-device-__msp430fr2476__-definitions

器件型号:MSP430FR2476
主题中讨论的其他器件:EnergiaMSP430FR5730MSP430FR5969

我正在处理 从 Arduino 移植到 Energia 和 CCS 版本10的项目。

我已成功为 MSP430FR2476添加 SPI、I2C 和两个 UART 支持。

我需要添加计时器 A 支持、到目前为止、使其正常工作的唯一方法是直接访问微寄存器并绕过 驱动程序库。

将 Energia 项目导入 CCS 时创建的"MSP430_MSP-EXP430FR2476LP_DriverLib > utility"文件夹中包含大量.c 文件。

有"timer_a.c"和 "timer_b.c"等文件 以及许多其他文件。 所有这些器 件都具有#if defined (_MSP430FR5969__)|| defined (__MSPFR5739__)|| defined (__MSP430FR5730__)指令、该指令将忽略我正在使用的微控制器。

我看不到__MSP430FR2476__ 。 我应该包括它吗?? 。 看起来、此库是在2013年基于此微型版本存在之前的版权创建的。

此器件库的更新版本是否允许将函数用作 TIMER_A_startCounter (TA0_BASE、TIMER_A_COMTINUUS_MODE);以及这些库中的许多其他函数?

Andrew