123456789101112131415161718 |
- #ifndef __LIGHT_DRIVER_H
- #define __LIGHT_DRIVER_H
- #include "stm32f1xx_hal.h"
- #include "var.h"
- typedef struct
- {
- GPIO_TypeDef* Port;
- uint16_t Pin;
- }MC_LightDriver_IO_Struct_t;
- extern MC_LightDriver_IO_Struct_t HeadLightIO_Groups[3], TailLightIO_Groups[3];
- void LightDriver_Init(void);
- void LightDriver_Process(uint8_t Light_Mode, MC_LightVoltage_Struct_t HeadLightVol, MC_LightVoltage_Struct_t TailLightVol, TrueOrFalse_Flag_Struct_t IsBreakFlag, MC_LightSwitch_Struct_t LightSwitchCode);
- #endif
|