Hi all,
i'm using CC2530 with TIMAC-1.4.0 and sample TIMAC MSA Application.
I've enabled POWER_SAVING option and one OSAL timer for periodic data sending, for example 10 seconds (MSA_DELAY_EVENT - is my custom event):
osal_start_reload_timer(MSA_TaskId, MSA_DELAY_EVENT, 10000);
And this works OK.
In addition to this, i need to handle keys (buttons) while device is sleeping.
For this, i'm using key interrupts feature (Hal_KeyIntEnable = TRUE) and interrupt handler invokes second timer (for debounce):
osal_start_timerEx (Hal_TaskID, HAL_KEY_EVENT, HAL_KEY_DEBOUNCE_VALUE);
And here is where the problem is starting. This second debounce timer is not working properly in this situation. Instead of needed debounce time (25 ms), it executes event almost immediately and the debounce is not handled it right way.
If POWER_SAVING option is off, this two timers are work OK.
If i disable first OSAL timer, but leave POWER_SAVING option on, it also OK.
Can anyone help me with this issue?
Thank you.
Stas.