Examples updated to use new rcc_periph_clock_enable function
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
static void gpio_setup(void)
|
||||
{
|
||||
/* Enable GPIOE clock. */
|
||||
rcc_peripheral_enable_clock(&RCC_AHBENR, RCC_AHBENR_IOPEEN);
|
||||
rcc_periph_clock_enable(RCC_GPIOE);
|
||||
|
||||
/* Set GPIO12 (in GPIO port E) to 'output push-pull'. */
|
||||
gpio_mode_setup(GPIOE, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, GPIO12);
|
||||
|
||||
Reference in New Issue
Block a user