#include "hook.h" #include "print.h" #include "timer.h" #include static void eeprom_show(void) { xprintf("eeprom:"); for (int i = 0; i < E2END + 1; i++) { if ((i % 16) == 0) { xprintf("\n%04X: ", i); } xprintf("%02X ", eeprom_read_byte((uint8_t *)i)); } xprintf("\n"); } void hook_late_init(void) { eeprom_show(); } void hook_main_loop(void) { static uint16_t last_time = 0; uint16_t t = timer_read(); if (t != last_time && (t % 1000) == 0) xprintf("."); last_time = t; }