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 定时器优先级设置

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1195746/tm4c129ekcpdt-ti-rtos-timer-priority-setup

器件型号:TM4C129EKCPDT

大家好、我正在处理 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);