Browse Source

[2021-04-27 02:38] Fix bug: RCC clock not enable for GPIOF/GPIOG.

Signed-off-by: zry <admin@z-touhou.org>
zry 3 years ago
parent
commit
165c3fb55d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/rcc.rs

+ 2 - 2
src/rcc.rs

@@ -669,8 +669,8 @@ bus! {
     GPIOC => (APB2, iopcen, iopcrst),
     GPIOD => (APB2, iopden, iopdrst),
     GPIOE => (APB2, iopeen, ioperst),
-    GPIOF => (APB2, iopeen, ioperst),
-    GPIOG => (APB2, iopeen, ioperst),
+    GPIOF => (APB2, iopfen, iopfrst),
+    GPIOG => (APB2, iopgen, iopgrst),
     I2C1 => (APB1, i2c1en, i2c1rst),
     I2C2 => (APB1, i2c2en, i2c2rst),
     SPI1 => (APB2, spi1en, spi1rst),