light_driver.h 366 B

123456789101112131415
  1. #ifndef __LIGHT_DRIVER_H
  2. #define __LIGHT_DRIVER_H
  3. #include "stm32f1xx_hal.h"
  4. #include "var.h"
  5. #define LIGHT_F_Pin GPIO_PIN_4
  6. #define LIGHT_F_GPIO_Port GPIOB
  7. #define LIGHT_B_Pin GPIO_PIN_6
  8. #define LIGHT_B_GPIO_Port GPIOA
  9. void LightDriver_Init(void);
  10. void LightDriver_Process(TrueOrFalse_Flag_Struct_t IsBreakFlag, MC_LightSwitch_Struct_t LightSwitchCode);
  11. #endif