aboutsummaryrefslogtreecommitdiff
path: root/examples/other/rtc/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/other/rtc/rtc.c')
-rw-r--r--examples/other/rtc/rtc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/other/rtc/rtc.c b/examples/other/rtc/rtc.c
index cf40072..d3c4bcb 100644
--- a/examples/other/rtc/rtc.c
+++ b/examples/other/rtc/rtc.c
@@ -29,11 +29,11 @@ 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);
/* Enable clocks for GPIO port A (for GPIO_USART1_TX) and USART1. */
- rcc_peripheral_enable_clock(&RCC_APB2ENR, IOPAEN);
- rcc_peripheral_enable_clock(&RCC_APB2ENR, USART1EN);
+ rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_IOPAEN);
+ rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_USART1EN);
}
void usart_setup(void)