Files @ 9294a623e8e5
Branch filter:

Location: therm/flash.h

Ethan Zonca
Added support for both heaters and coolers as well as thermostatic control
#ifndef FLASH_H
#define FLASH_H

#include "states.h"
#include "stm32f0xx_hal_flash.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