void Post() { DEBUG("\n *** POST *** \n"); //Print reset reason DEBUG("Reset reason ... "); if (system_rst & 0b00100000) DEBUG("Software "); else if (system_rst & 0b00010000) DEBUG("Programming "); else if (system_rst & 0b00001000) DEBUG("Watchdog "); else if (system_rst & 0b00000100) DEBUG("Brownout "); else if (system_rst & 0b00000010) DEBUG("External "); else if (system_rst & 0b00000001) DEBUG("Power On "); else DEBUG("Unknown: %02X", system_rst); DEBUG("\n"); //App name print_fw_info(); //Print actual time DEBUG("Time is ... \n"); print_datetime(time_get_actual()); DEBUG("Free RAM at start ... %d\n", free_ram_at_start); test_memory(); char id[23]; GetID_str(id); DEBUG("Device serial number ... %s\n", id); DEBUG("Board rev ... %u\n", (hw_revision == HW_REW_1504) ? 1504 : 1406); //debug info debug_last_dump(); }
void Post() { //buzzer_beep(_1sec, 0, 0, 0, 0); DEBUG("\n *** POST *** \n"); //Print reset reason DEBUG("Reset reason ... "); system_rst = RST.STATUS; if (RST.STATUS & 0b00100000) DEBUG("Software "); else if (RST.STATUS & 0b00010000) DEBUG("Programming "); else if (RST.STATUS & 0b00001000) DEBUG("Watchdog "); else if (RST.STATUS & 0b00000100) DEBUG("Brownout "); else if (RST.STATUS & 0b00000010) DEBUG("External "); else if (RST.STATUS & 0b00000001) DEBUG("Power On "); else DEBUG("Unknown: %02X", RST.STATUS); RST.STATUS = 0b00111111; DEBUG("\n"); //App name print_fw_info(); //Print actual time DEBUG("Time is ... \n"); print_datetime(); DEBUG("Free RAM at start ... %d\n", free_ram_at_start); test_memory(); DEBUG("\n"); }