Examples updated to use new rcc_periph_clock_enable function
This commit is contained in:
@@ -26,7 +26,7 @@ static void gpio_setup(void)
|
||||
/* Manually: */
|
||||
// RCC_APB2ENR |= RCC_APB2ENR_IOPCEN;
|
||||
/* Using API functions: */
|
||||
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN);
|
||||
rcc_periph_clock_enable(RCC_GPIOC);
|
||||
|
||||
/* Set GPIO5 (in GPIO port A) to 'output push-pull'. */
|
||||
/* Manually: */
|
||||
|
||||
Reference in New Issue
Block a user