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.

[参考译文] RTOS/AM3359:定时器实现

Guru**** 2551110 points
Other Parts Discussed in Thread: AM3359

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/602370/rtos-am3359-timer-implementation

器件型号:AM3359
Thread 中讨论的其他器件: SYSBIOS

工具/软件:TI-RTOS

你好

我有以下情况。 我想测量 AM3359上某些循环迭代之间的时间。
因此、我决定使用板载计时器。

在"SYS/BIOS (TI-RTOS 内核) v6.46用户指南"中、我找到了"计时器模块"和一些示例代码。

我添加了头文件:
#include

和一些示例代码:

Timer_stop (timerHandle);
Timer_setPeriodMicroSecs (4000);
Timer_start (timerHandle); 

在构建期间、我遇到以下错误:#ERROR XDC_TARGET_Types_mTypes_must be defined to name a target_specific header, containing definitions of XDC_int8、XDC_int16
通过参阅文章(e2e.ti.com/.../798893 xdc_target_Types__#798893)、我找到了添加一些预处理器指令的提示。

但是、我不确定 ICEV2板上的 AM3359必须使用什么正确的"target_name"。
此外,我遇到一些构建错误...
e2e.ti.com/.../7026.buildlog.txt

也许有人可以给我另一个提示来解决我的问题、或者 ICEV2上的 AM335x 可能有一个已完成的计时器示例。

工具链:CCS 6.2/GNU v4.9.3/SYS/BIOS 6.46.4.53/XDC 3.32.1.22