WXK
2023-03-17 6f05c0c8a8e5b4ccabc20cb75b57bd59ef145bcc
Src/ExternalDevices/led.h
@@ -5,7 +5,7 @@
#include "main.h"
#include "dw_app.h"
#define MOTOR_Pin GPIO_PIN_10
#define LED0_PIN               LED2_G_Pin
#define LED0_GPIO               GPIOA
@@ -31,8 +31,8 @@
#define MOTOR_ON  HAL_GPIO_WritePin(GPIOB, MOTOR_Pin, GPIO_PIN_RESET);
#define MOTOR_OFF  HAL_GPIO_WritePin(GPIOB, MOTOR_Pin, GPIO_PIN_SET);
#define MOTOR_ONTIME 500
#define MOTOR_OFFTIME 500
#define WARNING_MOTORONTIME 500
#define WARNING_MOTOROFFTIME 500
void Led_Init(void);
void GPIO_Toggle(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin);