Changed examples to new rcc definitions.

This commit is contained in:
Thomas Otto
2010-05-11 14:50:55 +02:00
parent b2bca1f1a4
commit d08ee7e333
12 changed files with 29 additions and 29 deletions

View File

@@ -28,7 +28,7 @@ u32 temp32;
void gpio_setup(void)
{
/* Enable GPIOB clock. */
rcc_peripheral_enable_clock(&RCC_APB2ENR, IOPBEN);
rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPBEN);
/* Set GPIO6/7 (in GPIO port B) to 'output push-pull' for the LEDs. */
gpio_set_mode(GPIOB, GPIO_MODE_OUTPUT_2_MHZ,