1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef FLASH_H #define FLASH_H #include "states.h" #define PAGE_SIZE ((uint16_t)0x400) #define END_ADDR 0x08007FFF void flash_save(therm_settings_t* tosave); void flash_restore(therm_settings_t* tosave); void flash_load_defaults(therm_settings_t* torestore); void flash_erase(void); #endif