From aa38e5c1f48e31213ee349aa5cd6f06c85bda70d Mon Sep 17 00:00:00 2001
From: android <android@lingyun.com>
Date: Tue, 25 Jun 2024 21:49:39 +0800
Subject: [PATCH] Add GD32F103RCT6 ADC converter board SDK source code
---
mcu_sdk/gd32f103/rk_eFire/Peripherals/Led/Inc/led.h | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/mcu_sdk/gd32f103/rk_eFire/Peripherals/Led/Inc/led.h b/mcu_sdk/gd32f103/rk_eFire/Peripherals/Led/Inc/led.h
new file mode 100644
index 0000000..a4c2141
--- /dev/null
+++ b/mcu_sdk/gd32f103/rk_eFire/Peripherals/Led/Inc/led.h
@@ -0,0 +1,31 @@
+#ifndef __LED_H__
+#define __LED_H__
+
+#include <stdio.h>
+#include <stdint.h>
+#include <stdarg.h>
+#include "board_common.h"
+
+/*--------------------Led--------------------*/
+enum
+{
+ LED_ALARM = 0,
+ LED_FAULT,
+ LED_MUTE,
+ LED_RUN,
+ LED_COMS,
+ LED_COMF,
+};
+
+#define TURN_ON 0
+#define TURN_OFF 1
+
+#define LED_RUN_PORT GPIOA
+#define LED_RUN_PIN GPIO_PIN_12 /* Led4 */
+
+void Board_LedInit(void);
+void Board_TurnLed(uint8_t u8Which, uint8_t u8Cmd);
+void Board_LedTest(void);
+void Board_LedCheckSelf(void);
+
+#endif /* End of __LED_H__ */
--
Gitblit v1.9.1