My assumption is:
(Currently WiFi and UART not operating but could be configured from menuconfig )
Code: Select all
//Here CPU operating at 80MHz
//---Start low freq section
rtc_clk_cpu_freq_set(RTC_CPU_FREQ_2M);
/**do some job**/
rtc_clk_cpu_freq_set(RTC_CPU_FREQ_80M);
//---End low freq section
//Here CPU operating at 80MHz
1) I have to block the peripherals that can't work during this mode (wifi, uart api). This IPI can be called from different tasks.
2) What to do with FreeRTOS clock, task switching?
3) How to reconfigure timers to make correct timing
4) How to restore all changes back on exiting from low freq section.
How to implement these properly?
Brest regards,