void setup() { pinMode(BOARD_BUTTON_PIN, INPUT); comm.begin(9600); comm.println("*** Beginning BKP test"); comm.println("Init..."); bkp_init(); comm.println("Done."); print_bkp_contents(); write_to_bkp(10); print_bkp_contents(); comm.println("Enabling backup writes."); bkp_enable_writes(); write_to_bkp(20); print_bkp_contents(); comm.println("Disabling backup writes."); bkp_disable_writes(); write_to_bkp(30); print_bkp_contents(); comm.println("Done testing backup registers; press button to enable " "independent watchdog (in order to cause a reset)."); waitForButtonPress(0); iwdg_init(IWDG_PRE_4, 1); comm.println(); }
void BKP::disable(void){ bkp_disable_writes(); }