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.
大家好、我正在处理 TM4C129EKCPDT 和 TI-RTOS 计时器。
两个计时器都在工作。 我想设置计时器优先级。
Timer_handle Timer1、 timer2;
Timer_Params Timer1_ISR_params;
Timer_Params_init (&Timer1_ISR_params);
Timer1_ISR_params.period = 10; //间隔10us
Timer_Params timer2_ISR_params;
Timer_Params_init (&timer2_ISR_params);
timer2_ISR_params.period = 1; //间隔1us
Timer1 = Timer_create (Timer_any、Timer1_ISR、&Timer1_ISR_params、&EB_task);//为电容组充电创建计时器
if (Timer1 ==空)
{
System_abort ("*** Timer1创建失败***");
}
Timer_stop (Timer1 );
timer2 = Timer_create (Timer_any、timer2_ISR、&timer2_ISR_params、&EB_task);//为电容组充电创建计时器
if (timer2 ==空)
{
system_abort ("*** timer2 Create Fail***");
}
Timer_stop (timer2);
您好!
不确定 要配置的优先级。 对于 Hwi、Swi 还是任务?
下面是将介绍不同模块优先级的 TI-RTOS 培训讲座。 https://training.ti.com/sites/default/files/docs/TI_RTOS_Kernel_Workshop_Student_Guide_rev4.00.pdf
您好、Charles。
感谢您的建议。
此致、
Sumit