V1.9
This commit is contained in:
@ -11,8 +11,9 @@
|
||||
#include "ADBMS_Abstraction.h"
|
||||
#include "ADBMS_CMD_MAKROS.h"
|
||||
#include "ADBMS_LL_Driver.h"
|
||||
#include "can.h"
|
||||
|
||||
#include "can-halal.h"
|
||||
#include "errors.h"
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef enum {
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
#ifndef INC_TMP1075_H_
|
||||
#define INC_TMP1075_H_
|
||||
|
||||
#include "can.h"
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include "TMP1075.h"
|
||||
#include "can-halal.h"
|
||||
#include "errors.h"
|
||||
#include <stdint.h>
|
||||
|
||||
@ -9,12 +9,9 @@
|
||||
#define INC_CAN_H
|
||||
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include "ADBMS_Abstraction.h"
|
||||
#include "main.h"
|
||||
#include "can-halal.h"
|
||||
#include "AMS_HighLevel.h"
|
||||
#include "state_machine.h"
|
||||
#include <stdint.h>
|
||||
|
||||
void can_init(CAN_HandleTypeDef* hcan);
|
||||
|
||||
|
||||
@ -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_
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
#define INC_SOC_ESTIMATION_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <main.h>
|
||||
|
||||
extern float current_soc;
|
||||
|
||||
|
||||
@ -56,12 +56,12 @@ extern StateHandle state;
|
||||
extern int32_t RELAY_BAT_SIDE_VOLTAGE;
|
||||
extern int32_t RELAY_ESC_SIDE_VOLTAGE;
|
||||
extern int32_t CURRENT_MEASUREMENT;
|
||||
extern uint8_t powerground_status;
|
||||
|
||||
void sm_init();
|
||||
void sm_update();
|
||||
void sm_handle_ams_in(const uint8 *data);
|
||||
void sm_precharge_discharge_manager();
|
||||
void sm_powerground_manager();
|
||||
void sm_calibrate_powerground();
|
||||
void sm_balancing();
|
||||
|
||||
|
||||
@ -9,8 +9,7 @@
|
||||
#define INC_STATUS_LED_H
|
||||
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include <main.h>
|
||||
#include <stdint.h>
|
||||
#include <state_machine.h>
|
||||
|
||||
typedef enum {
|
||||
OFF,
|
||||
|
||||
Reference in New Issue
Block a user