Skip to content

Commit 231d412

Browse files
committed
Fix gpio clock
1 parent aacd73b commit 231d412

File tree

1 file changed

+1
-1
lines changed
  • hw/bsp/ch32v30x/boards/nanoch32v305

1 file changed

+1
-1
lines changed

hw/bsp/ch32v30x/boards/nanoch32v305/board.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#define LED_PORT GPIOA
3838
#define LED_PIN GPIO_Pin_3
3939
#define LED_STATE_ON 0
40-
#define LED_CLOCK_EN() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE)
40+
#define LED_CLOCK_EN() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE)
4141

4242
// TODO UART port
4343

0 commit comments

Comments
 (0)