We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b0d939 commit 2db2bf0Copy full SHA for 2db2bf0
bsp/gd32/arm/libraries/gd32_drivers/drv_rtc.c
@@ -102,14 +102,14 @@ static int rt_hw_rtc_init(void)
102
rcu_bkp_reset_enable();
103
rcu_bkp_reset_disable();
104
rcu_periph_clock_enable(RCU_RTC);
105
-#ifdef BSP_RTC_USING_LSE
+#if defined(BSP_RTC_USING_LSE)
106
rcu_osci_on(RCU_LXTAL);
107
if (SUCCESS == rcu_osci_stab_wait(RCU_LXTAL))
108
{
109
/* set lxtal as rtc clock source */
110
rcu_rtc_clock_config(RCU_RTCSRC_LXTAL);
111
}
112
-#elif def BSP_RTC_USING_LSI
+#elif defined(BSP_RTC_USING_LSI)
113
rcu_osci_on(RCU_IRC40K);
114
if (SUCCESS == rcu_osci_stab_wait(RCU_IRC40K))
115
0 commit comments