periodic timer. Restriction on notification function execution time ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

periodic timer. Restriction on notification function execution time ?

1,330 次查看
marcrechte
Contributor I

Hello,

I setup a periodic timer whose notification function takes time to process (but less than the timer period).

I wonders whether it is a design fault ?

Thanks

Marc

0 项奖励
回复
2 回复数

926 次查看
soledad
NXP Employee
NXP Employee

Hello Marc,

The tick service routine is located in the init_bsp.c file, the path of this file is <freescaleMQXpath>\mqx\source\bsp\<board_name>\

The resolution defines, how often MQX RTOS updates time, or how often a tick occurs. The resolution is usually 200 ticks per second = 5 milliseconds. It is defined in <board_name>.h file located at the path: <freescaleMQXpath>\mqx\source\bsp\<board_name>\

The BSP timer is clocked by system tick; it is possible to edit BSP_ALARM_FREQUENCY in order to have smaller ticks.

Please check more information about the MQX timers in the following document.

Using the MQX timers

I hope this helps,


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

926 次查看
marcrechte
Contributor I

Hello Sol,

Thanks for the information and related document.

However my question is on software periodic timer, especially  _timer_start_periodic_every... functions: does the notification_function need to return quickly (like in an ISR) or it is not a problem to do some processing providing it does not exceed the timer period ?

Regards

Marc

0 项奖励
回复