2025-09-11 22:24:31 +08:00
|
|
|
#ifndef __MONITOR_TASK_H__
|
|
|
|
|
#define __MONITOR_TASK_H__
|
|
|
|
|
|
|
|
|
|
#include "stm32g4xx_hal.h"
|
|
|
|
|
|
|
|
|
|
#include "FreeRTOS.h"
|
|
|
|
|
|
|
|
|
|
#include "cmsis_os.h"
|
|
|
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
|
#include "rtwtypes.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern uint32_T mode;
|
|
|
|
|
extern int32_T bat_type;
|
|
|
|
|
extern int32_T bat_num;
|
|
|
|
|
extern int32_T run_state;
|
|
|
|
|
extern real32_T cmd_current;
|
|
|
|
|
extern real32_T bat_capacity;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-09-16 17:31:08 +08:00
|
|
|
extern uint32_t NormalTestMode;//0 normal 1 test
|
2025-09-11 22:24:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|