battery_display.h 708 B

123456789101112131415161718192021222324
  1. #ifndef __BATTERY_DISPLAY_APP_H
  2. #define __BATTERY_DISPLAY_APP_H
  3. #include "stm32f1xx_hal.h"
  4. #define ONE_Pin GPIO_PIN_15
  5. #define ONE_GPIO_Port GPIOB
  6. #define TWO_Pin GPIO_PIN_11
  7. #define TWO_GPIO_Port GPIOB
  8. #define THREE_Pin GPIO_PIN_10
  9. #define THREE_GPIO_Port GPIOB
  10. #define FOUR_Pin GPIO_PIN_12
  11. #define FOUR_GPIO_Port GPIOB
  12. #define CHARGING_TIME 200
  13. #define LOW_POWER_TIME 100
  14. #define VERY_LOW_POWER_TIME 50
  15. void Battery_Information_Process(void);
  16. void Charging_Status_Battery_Display(uint8_t Soc);
  17. void Normal_Work_Battery_Display(uint8_t Soc);
  18. #endif //__BATTERY_DISPLAY_APP_H