Add rcc_peripheral_{reset,clear_reset} functions.

Also, rename two other functions for consistency.
This commit is contained in:
Uwe Hermann
2009-08-31 14:47:07 +02:00
parent cf69b51ee7
commit 25a003b076
5 changed files with 23 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ void gpio_setup(void)
/* Manually: */
// RCC_APB2ENR |= IOPCEN;
/* Using API functions: */
rcc_enable_peripheral_clock(&RCC_APB2ENR, IOPCEN);
rcc_peripheral_enable_clock(&RCC_APB2ENR, IOPCEN);
/* Set GPIO12 (in GPIO port C) to 'output push-pull'. */
/* Manually: */