main: Nearly have battery charge/discharge working
config: Enable power saving

We define CORTEX_ENABLE_WFI_IDLE in chconf.h to call WFI when in idle
mode.  This breaks JTAG debugging, but it uses less power.
main: Enable primary mode at system startup
chconf: Disable WFI mode

It interferes with firmware loading and debugging.