summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUMRnInside <[email protected]>2026-05-26 22:52:30 +0800
committerGitHub <[email protected]>2026-05-26 22:52:30 +0800
commit97d84e0fd597b2d9362e47897c98c9b5ed9c6fdc (patch)
tree4fdac4ca56f2abba0982fbf9285291ea824102f2
parente7d59fba3506d2ae0d60f4c019153e1d9d349262 (diff)
Enable GPIOC for CH32V103 bluepill boards
-rw-r--r--hw/bsp/ch32v10x/family.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/bsp/ch32v10x/family.c b/hw/bsp/ch32v10x/family.c
index 8eec9f4a1..9f5dc5572 100644
--- a/hw/bsp/ch32v10x/family.c
+++ b/hw/bsp/ch32v10x/family.c
@@ -92,6 +92,7 @@ void board_init(void) {
#endif
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
+ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
EXTEN->EXTEN_CTR |= EXTEN_USBFS_IO_EN;
uint8_t usb_div;