This commit is contained in:
2024-07-06 13:23:12 +03:00
parent f50643cc84
commit 16824744e7
5 changed files with 110 additions and 58 deletions

17
Core/Inc/eeprom.h Executable file
View File

@ -0,0 +1,17 @@
#ifndef INC_EEPROM_H_
#define INC_EEPROM_H_
#include "stm32f3xx_hal.h"
#include <stdint.h>
__attribute__((packed)) typedef struct {
uint8_t id;
} EEPROMConfig;
extern EEPROMConfig eeprom_config;
void eeprom_init(I2C_HandleTypeDef* hi2c);
void eeprom_config_save();
#endif // INC_EEPROM_H_