aboutsummaryrefslogtreecommitdiff
path: root/examples/mb525
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mb525')
-rw-r--r--examples/mb525/fancyblink/fancyblink.c2
-rw-r--r--examples/mb525/pwmleds/pwmleds.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/mb525/fancyblink/fancyblink.c b/examples/mb525/fancyblink/fancyblink.c
index 8e7a5b6..b10d138 100644
--- a/examples/mb525/fancyblink/fancyblink.c
+++ b/examples/mb525/fancyblink/fancyblink.c
@@ -26,7 +26,7 @@ void clock_setup(void)
rcc_clock_setup_in_hse_8mhz_out_72mhz();
/* Enable GPIOC clock. */
- rcc_peripheral_enable_clock(&RCC_APB2ENR, IOPCEN);
+ rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN);
}
diff --git a/examples/mb525/pwmleds/pwmleds.c b/examples/mb525/pwmleds/pwmleds.c
index 4502d11..282ae61 100644
--- a/examples/mb525/pwmleds/pwmleds.c
+++ b/examples/mb525/pwmleds/pwmleds.c
@@ -241,10 +241,10 @@ void clock_setup(void)
rcc_clock_setup_in_hse_8mhz_out_72mhz();
/* Enable TIM3 clock. */
- rcc_peripheral_enable_clock(&RCC_APB1ENR, TIM3EN);
+ rcc_peripheral_enable_clock(&RCC_APB1ENR, RCC_APB1ENR_TIM3EN);
/* Enable GPIOC, Alternate Function clocks. */
- rcc_peripheral_enable_clock(&RCC_APB2ENR, IOPCEN | AFIOEN);
+ rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPCEN | RCC_APB2ENR_AFIOEN);
}
void gpio_setup(void)