This commit is contained in:
hamza
2024-07-10 09:37:19 +03:00
parent a86985bfc9
commit 5b26f8d12b
14 changed files with 106 additions and 122 deletions

View File

@ -1,23 +1,21 @@
/*
* PWM_control.h
*
* Created on: 10.07.2024
* Author: Hamza
*/
#ifndef INC_EEPROM_H_
#define INC_EEPROM_H_
#include "stm32f3xx_hal.h"
#include <stdint.h>
#include <main.h>
#include "AMS_HighLevel.h"
#include "errors.h"
__attribute__((packed)) typedef struct {
uint8_t id;
} EEPROMConfig;
extern EEPROMConfig eeprom_config;
#include <stm32f3xx_hal.h>
#include <state_machine.h>
void eeprom_init(I2C_HandleTypeDef* hi2c);
void eeprom_config_save();
void eeprom_dump_status();
void eeprom_write_status();
void eeprom_read(int8_t* data);
void eeprom_write(uint8_t* data, uint8_t data_length);
HAL_StatusTypeDef eeprom_read(uint8_t* data, uint16_t address);
HAL_StatusTypeDef eeprom_write(uint8_t* data, uint16_t address);
#endif // INC_EEPROM_H_