8000 Expand GPIO clock enables for F405 and F407 · gregdavill/circuitpython@55e1371 · GitHub
[go: up one dir, main page]

Skip to content

Commit 55e1371

Browse files
committed
Expand GPIO clock enables for F405 and F407
1 parent 1b33cd1 commit 55e1371

File tree

2 files changed

+10
-2
lines changed
  • ports/stm32f4/peripherals/stm32f4

2 files changed

+10
-2
lines changed

ports/stm32f4/peripherals/stm32f4/stm32f405xx/gpio.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@
3030

3131
void stm32f4_peripherals_gpio_init(void) {
3232
//Enable all GPIO for now
33-
__HAL_RCC_GPIOC_CLK_ENABLE();
3433
__HAL_RCC_GPIOA_CLK_ENABLE();
3534
__HAL_RCC_GPIOB_CLK_ENABLE();
35+
__HAL_RCC_GPIOC_CLK_ENABLE();
36+
__HAL_RCC_GPIOD_CLK_ENABLE();
37+
__HAL_RCC_GPIOE_CLK_ENABLE();
38+
__HAL_RCC_GPIOF_CLK_ENABLE();
39+
__HAL_RCC_GPIOG_CLK_ENABLE();
3640

3741
//Never reset pins
3842
never_reset_pin_number(2,13); //PC13 anti tamp

ports/stm32f4/peripherals/stm32f4/stm32f407xx/gpio.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@
3030

3131
void stm32f4_peripherals_gpio_init(void) {
3232
//Enable all GPIO for now
33-
__HAL_RCC_GPIOC_CLK_ENABLE();
3433
__HAL_RCC_GPIOA_CLK_ENABLE();
3534
__HAL_RCC_GPIOB_CLK_ENABLE();
35+
__HAL_RCC_GPIOC_CLK_ENABLE();
36+
__HAL_RCC_GPIOD_CLK_ENABLE();
37+
__HAL_RCC_GPIOE_CLK_ENABLE();
38+
__HAL_RCC_GPIOF_CLK_ENABLE();
39+
__HAL_RCC_GPIOG_CLK_ENABLE();
3640

3741
//Never reset pins
3842
never_reset_pin_number(2,13); //PC13 anti tamp

0 commit comments

Comments
 (0)
0