summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJie Feng <[email protected]>2025-07-27 11:29:12 +0800
committerJie Feng <[email protected]>2025-07-27 11:29:12 +0800
commit231d4122ac50a9f7313c44ff2efbe5832a9224f7 (patch)
tree1a634fd09f9a5661ca3b48a3aed6601c94682bed
parentaacd73ba42dfe58706fe83f8521ebe0ff957a79c (diff)
Fix gpio clock
-rw-r--r--hw/bsp/ch32v30x/boards/nanoch32v305/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/ch32v30x/boards/nanoch32v305/board.h b/hw/bsp/ch32v30x/boards/nanoch32v305/board.h
index 62bbef94c..a478f00a9 100644
--- a/hw/bsp/ch32v30x/boards/nanoch32v305/board.h
+++ b/hw/bsp/ch32v30x/boards/nanoch32v305/board.h
@@ -37,7 +37,7 @@
#define LED_PORT GPIOA
#define LED_PIN GPIO_Pin_3
#define LED_STATE_ON 0
-#define LED_CLOCK_EN() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE)
+#define LED_CLOCK_EN() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE)
// TODO UART port