diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-03-03 17:21:47 -0500 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-03-03 17:21:47 -0500 |
| commit | 55e13715a9f0aee9e89830cee9a47ffff25eeb33 (patch) | |
| tree | d3fb03e8af10252b82cdf4dbe89a8a3608c531ab | |
| parent | 1b33cd11fc788bd6b45b54c5629a3b98a92efc2a (diff) | |
Expand GPIO clock enables for F405 and F407
| -rw-r--r-- | ports/stm32f4/peripherals/stm32f4/stm32f405xx/gpio.c | 6 | ||||
| -rw-r--r-- | ports/stm32f4/peripherals/stm32f4/stm32f407xx/gpio.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ports/stm32f4/peripherals/stm32f4/stm32f405xx/gpio.c b/ports/stm32f4/peripherals/stm32f4/stm32f405xx/gpio.c index f9be3b4ec..d1eaa90d1 100644 --- a/ports/stm32f4/peripherals/stm32f4/stm32f405xx/gpio.c +++ b/ports/stm32f4/peripherals/stm32f4/stm32f405xx/gpio.c @@ -30,9 +30,13 @@ void stm32f4_peripherals_gpio_init(void) { //Enable all GPIO for now - __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); + __HAL_RCC_GPIOC_CLK_ENABLE(); + __HAL_RCC_GPIOD_CLK_ENABLE(); + __HAL_RCC_GPIOE_CLK_ENABLE(); + __HAL_RCC_GPIOF_CLK_ENABLE(); + __HAL_RCC_GPIOG_CLK_ENABLE(); //Never reset pins never_reset_pin_number(2,13); //PC13 anti tamp diff --git a/ports/stm32f4/peripherals/stm32f4/stm32f407xx/gpio.c b/ports/stm32f4/peripherals/stm32f4/stm32f407xx/gpio.c index f9be3b4ec..d1eaa90d1 100644 --- a/ports/stm32f4/peripherals/stm32f4/stm32f407xx/gpio.c +++ b/ports/stm32f4/peripherals/stm32f4/stm32f407xx/gpio.c @@ -30,9 +30,13 @@ void stm32f4_peripherals_gpio_init(void) { //Enable all GPIO for now - __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); + __HAL_RCC_GPIOC_CLK_ENABLE(); + __HAL_RCC_GPIOD_CLK_ENABLE(); + __HAL_RCC_GPIOE_CLK_ENABLE(); + __HAL_RCC_GPIOF_CLK_ENABLE(); + __HAL_RCC_GPIOG_CLK_ENABLE(); //Never reset pins never_reset_pin_number(2,13); //PC13 anti tamp |
