mirror of https://github.com/RT-Thread/rt-thread
[bsp/gd32/libraries] Repair naming (#10185)
[bsp/gd32/arm/libraries] Repair naming
This commit is contained in:
parent
1b0d939edb
commit
2db2bf0cc7
|
@ -102,14 +102,14 @@ static int rt_hw_rtc_init(void)
|
|||
rcu_bkp_reset_enable();
|
||||
rcu_bkp_reset_disable();
|
||||
rcu_periph_clock_enable(RCU_RTC);
|
||||
#ifdef BSP_RTC_USING_LSE
|
||||
#if defined(BSP_RTC_USING_LSE)
|
||||
rcu_osci_on(RCU_LXTAL);
|
||||
if (SUCCESS == rcu_osci_stab_wait(RCU_LXTAL))
|
||||
{
|
||||
/* set lxtal as rtc clock source */
|
||||
rcu_rtc_clock_config(RCU_RTCSRC_LXTAL);
|
||||
}
|
||||
#elif def BSP_RTC_USING_LSI
|
||||
#elif defined(BSP_RTC_USING_LSI)
|
||||
rcu_osci_on(RCU_IRC40K);
|
||||
if (SUCCESS == rcu_osci_stab_wait(RCU_IRC40K))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue