Can anyone tell me the correct way to temporarily pause a timer? I have a 100mS timer running that I created using MQX as follows:
lError = _timer_create_component(3, 1024);
timer_100ms = _timer_start_periodic_every(INT_100msTimer, 0, TIMER_ELAPSED_TIME_MODE, 100);
It works great but I have occasional need to pause it while I manipulate some data object in main task that may also be referenced in the timer interrupt. I could just use a global variable that I set in main task (or a mutex I suppose) that would cause the timer interrupt service routine to exit without doing anything but that's not a very good solution IMO. I could probably also disable then re-enable the processor interrupt directly (once I figure out which timer MQX used) but I'm wondering if MQX has a way to do this (didn't see one in the RTOS Reference Manual Rev 3). I'm using an MPC-5125 processor with MQX 3.8.0. Thanks!