zhyinch
2019-06-08 e5f73b1e954eb54e0af326b3a5aee5fab719f0ce
源码/核心板/Src/ExternalDevices/led.h
@@ -3,9 +3,17 @@
#define __LED_H__
#include "stm32f10x.h"
#include "dw_app.h"
#define NEWBOARD
#if defined(NEWBOARD)  && defined(WORK_MODE_TAG)
#define LED0_PIN               GPIO_Pin_12
#define LED0_GPIO               GPIOB
#else
#define LED0_PIN               GPIO_Pin_2
#define LED0_GPIO               GPIOA
#endif
#define LED_BLINK(...)            GPIO_Toggle(__VA_ARGS__)
#define LED0_BLINK               LED_BLINK(LED0_GPIO, LED0_PIN)
#define LED0_OFF                  GPIO_WriteBit(LED0_GPIO, LED0_PIN, Bit_RESET)