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/TM4C1294NCPDT:RTOS

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/619229/rtos-tm4c1294ncpdt-rtos

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

工具/软件:TI-RTOS

你(们)好

我已经使用.cfg 文件 UI 创建了两个计时器。一个是200ms,另一个是30sec。我想在运行时更改此计时器值。

是他们在 main.c 程序中创建计时器的任何可用函数  

谢谢  

Rajesh.K

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

    您可以在运行时使用 Timer_create (或 Timer_con构)。

    另一个选择是... 默认情况下、TI-RTOS 使用一个计时器来驱动 Task_sleep、semaphore_pend 的内部时钟以及超时等 默认情况下、该计时器每1ms 触发一次、并由 ti.sysbios.KNL.Clock 模块进行管理。 由于您需要1ms 的倍数、因此只需将函数添加到将在所需时间调用的时钟模块即可。 这将为您节省两个计时器。 Clock_create 函数是将函数添加到时钟模块中的方法。

    Todd