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.
有多种方法可实现基于计时器的周期性中断。此处介绍了 3 种方法。
1.使用 SYS/BIOS 的计时器模块。请参阅此常见问题解答,其中介绍了计时器模块的用例。
2.使用 OSAL 计时器 API。请参阅 pdk_am335x_1_0_17\packages\ti\osal\test\src\main_osal_test.c,特别是函数 OSAL_timer_test()。
3.使用 PDK StarterWare。有关详细信息,请参阅 C:\ti\pdk_am335x_1_0_17\packages\ti\starterware\examples\dmtimer 和此 E2E 博文。
最后,使用计时器时,请确保通过 CCS GEL 文件或电路板库启用计时器,如以下 E2E 博文中所述: