Skip to content

Commit

Permalink
[stm32][gpio] Add clock enable for ports E - I
Browse files Browse the repository at this point in the history
  • Loading branch information
scdwyer authored and flixr committed Nov 4, 2013
1 parent dd38f01 commit 083ec6b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sw/airborne/arch/stm32/mcu_periph/gpio_arch.c
Expand Up @@ -89,6 +89,21 @@ void gpio_enable_clock(uint32_t port) {
case GPIOD:
rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPDEN);
break;
case GPIOE:
rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPEEN);
break;
case GPIOF:
rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPFEN);
break;
case GPIOG:
rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPGEN);
break;
case GPIOH:
rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPHEN);
break;
case GPIOI:
rcc_peripheral_enable_clock(&RCC_AHB1ENR, RCC_AHB1ENR_IOPIEN);
break;
default:
break;
};
Expand Down

0 comments on commit 083ec6b

Please sign in to comment.