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/SW-EK-TM4C129EXL:Hwi

Guru**** 2482105 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/706961/rtos-sw-ek-tm4c129exl-hwi

器件型号:SW-EK-TM4C129EXL

工具/软件:TI-RTOS

我正在处理 Hwi。。。  我需要配置 Hwi、这样它需要每1ms 执行一个函数(比如说闪烁 LED)。  Hwi 是否有预定义的计时器???  

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

    您好、Naveen、

     是的、 您可以通过 TI-RTOS 配置计时器。 请参见以下示例、其中 timer2被静态配置为每0.5s 生成一个周期性中断。

    您还可以使用 timer_create() API 动态创建计时器,例如:

    myTimer=Timer_create (2 (Timer_FuncPtr) ledToggle、&Timer2、NULL);

     有关详细信息、请参阅第8.3节"计时器"中的 TI-RTOS 用户指南。