/* * Controller Flash Save and Load * WHowe */ #ifndef SAVE_H #define SAVE_H #include #include #include #include "pico/multicore.h" uint32_t board_id_32(); uint64_t board_id_64(); /* It's safer to lock other I/O ops during saving, so we need a locker */ typedef void (*io_locker_func)(bool pause); void save_init(uint32_t magic, mutex_t *lock); void save_loop(); void *save_alloc(size_t size, void *def, void (*after_load)()); void save_request(bool immediately); #endif