Files @ 3dc8ab4e2928
Branch filter:

Location: therm/flash.h - annotation

Ethan Zonca
Fix stupid thermocouple error issue finally. Temporarily disable CDC transmit. Move PID calcs into a different loop for fun and profit.
#ifndef FLASH_H
#define FLASH_H

#include "states.h"

#define PAGE_SIZE ((uint16_t)0x400)
#define END_ADDR 0x08007FFF

void flash_init(therm_settings_t* tosave);
void flash_save(therm_settings_t* tosave);
void flash_read(therm_settings_t *tosave);
void flash_write(therm_settings_t* tosave);
void flash_checksum(therm_settings_t* tosave);
void flash_erase(therm_settings_t* tosave);

#endif