This commit is contained in:
2024-07-13 23:57:38 +03:00
parent aea84c620b
commit 7b4fc940d3
8 changed files with 3330 additions and 74 deletions

View File

@ -17,6 +17,8 @@ void can_init(CAN_HandleTypeDef* hcan);
void can_handle_send_status();
void can_handle_dump();
void can_handle_recieve_command(const uint8_t *data);
void ftcan_msg_received_cb(uint16_t id, size_t datalen, const uint8_t *data);

View File

@ -15,7 +15,7 @@ void eeprom_init(I2C_HandleTypeDef* hi2c);
void eeprom_dump_status();
void eeprom_write_status();
HAL_StatusTypeDef eeprom_read(uint8_t* data, uint16_t address);
HAL_StatusTypeDef eeprom_write(uint8_t* data, uint16_t address);
HAL_StatusTypeDef eeprom_read(uint8_t* data, uint16_t data_length);
HAL_StatusTypeDef eeprom_write(uint8_t* data, uint16_t data_length);
#endif // INC_EEPROM_H_

View File

@ -12,6 +12,7 @@
#include <stdbool.h>
#include "ADBMS_LL_Driver.h"
#include <AMS_HighLevel.h>
#include <eeprom.h>
#include <errors.h>
#include <PWM_control.h>
#include <status_LED.h>
@ -64,6 +65,7 @@ void sm_precharge_discharge_manager();
void sm_powerground_manager();
void sm_calibrate_powerground();
void sm_balancing();
void sm_eeprom_write_status();
void sm_check_errors();
void sm_set_error_source();