amilaperera wrote on Tuesday, May 15, 2018:
Hi,
I am using FreeRTOS in tickless idle mode by using the default Sleep mode.
At running state I would like to have a system clock frequency above 48 MHz to get USB working. With this clock configuration the amount of time the RTOS is sleeping becomes very low both due to the maximum value that can be accommodated in systick reload register and the fast clock speed.
However, is it possible to switch to a different low speed clock during sleep. Can configPRE_SLEEP_PROCESSING(x)
and configPOST_SLEEP_PROCESSING(x)
be implemented in such a way that it switches to 2 different clock speeds or 2 different clock sources during running time and sleep time. We are relying on FreeRTOS SW timers as well. Will this clock speed/source switch affect kernel scheduler timing or FreeRTOS timers ?
Thank you in advance.
Amila.