do_switch() function
Perform the switch to new power mode. Currently only changes the CPU frequency and adjusts clock dividers. No light sleep yet.
Arguments
new_mode
mode to switch to
![]()
do_switch(new_mode);
do_switch() is called by 2 functions and calls 7 functions:
![]()
do_switch()
do_switch() reads 7 variables and writes 3 variables:
![]()
do_switch()