Show example of rcc_enable_peripheral_clock() in miniblink.c.

This commit is contained in:
Uwe Hermann 2009-07-22 02:57:28 +02:00
parent a5a9648144
commit 14d342e50c
1 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,10 @@ int main(void)
int i;
/* Enable GPIOC clock. */
RCC_APB2ENR = IOPCEN;
/* Manually: */
// RCC_APB2ENR |= IOPCEN;
/* Using API functions: */
rcc_enable_peripheral_clock(&RCC_APB2ENR, IOPCEN);
/* Set GPIO12 (in GPIO port C) to 'output push-pull'. */
/* Manually: */