Files @ 6d43230d5986
Branch filter:

Location: therm/flash.h

matthewreed
Untested changes for RTDs
#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