From 8eeb0e8fbbde5e9cb33d895223322449fd58f345 Mon Sep 17 00:00:00 2001 From: zhyinch <zhyinch@gmail.com> Date: 星期一, 15 六月 2020 21:28:29 +0800 Subject: [PATCH] V1.18,武汉测试不错版本,为上一版本修改间隔到DELAY_BETWEEN_TWO_FRAME_UUS 300us --- 源码/核心板/Src/ExternalDevices/led.h | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/ExternalDevices/led.h" "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/ExternalDevices/led.h" index 6fd352c..a7cc6e6 100644 --- "a/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/ExternalDevices/led.h" +++ "b/\346\272\220\347\240\201/\346\240\270\345\277\203\346\235\277/Src/ExternalDevices/led.h" @@ -3,13 +3,20 @@ #define __LED_H__ #include "stm32f10x.h" +#include "dw_app.h" -#define LED0_PIN GPIO_Pin_8 + +#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_ON GPIO_WriteBit(LED0_GPIO, LED0_PIN, Bit_RESET) -#define LED0_OFF GPIO_WriteBit(LED0_GPIO, LED0_PIN, Bit_SET) +#define LED0_OFF GPIO_WriteBit(LED0_GPIO, LED0_PIN, Bit_RESET) +#define LED0_ON GPIO_WriteBit(LED0_GPIO, LED0_PIN, Bit_SET) void Led_Init(void); -- Gitblit v1.9.3