based-on-stm32-taxi-meter/Firmware/Core/apps/Inc/led.h

26 lines
892 B
C
Raw Permalink Normal View History

2024-05-02 14:47:26 +08:00
/**
******************************************************************************
* @ : led.h
* @ : Sir
* @brief : None
* @ : None
* @ : 24-5-2
******************************************************************************
*/
#ifndef APPS_CORE_APPS_INC_LED_H_
#define APPS_CORE_APPS_INC_LED_H_
#include "main.h"
#define LED_RED_ON HAL_GPIO_WritePin(LED_R_GPIO_Port,LED_R_Pin,GPIO_PIN_RESET)
#define LED_RED_OFF HAL_GPIO_WritePin(LED_R_GPIO_Port,LED_R_Pin,GPIO_PIN_SET)
#define LED_BLUE_ON HAL_GPIO_WritePin(LED_B_GPIO_Port,LED_B_Pin,GPIO_PIN_RESET)
#define LED_BLUE_OFF HAL_GPIO_WritePin(LED_B_GPIO_Port,LED_B_Pin,GPIO_PIN_SET)
void LED_ON(GPIO_TypeDef *GPIOx,uint16_t PinX,uint8_t mode);
void LED_Toggle_state(GPIO_TypeDef *GPIOx,uint16_t PinX);
#endif //APPS_CORE_APPS_INC_LED_H_