[bsp/gd32/libraries] Repair naming (#10185)

[bsp/gd32/arm/libraries] Repair naming
This commit is contained in:
CXSforHPU 2025-04-12 23:04:45 +08:00 committed by GitHub
parent 1b0d939edb
commit 2db2bf0cc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -102,14 +102,14 @@ static int rt_hw_rtc_init(void)
rcu_bkp_reset_enable(); rcu_bkp_reset_enable();
rcu_bkp_reset_disable(); rcu_bkp_reset_disable();
rcu_periph_clock_enable(RCU_RTC); rcu_periph_clock_enable(RCU_RTC);
#ifdef BSP_RTC_USING_LSE #if defined(BSP_RTC_USING_LSE)
rcu_osci_on(RCU_LXTAL); rcu_osci_on(RCU_LXTAL);
if (SUCCESS == rcu_osci_stab_wait(RCU_LXTAL)) if (SUCCESS == rcu_osci_stab_wait(RCU_LXTAL))
{ {
/* set lxtal as rtc clock source */ /* set lxtal as rtc clock source */
rcu_rtc_clock_config(RCU_RTCSRC_LXTAL); rcu_rtc_clock_config(RCU_RTCSRC_LXTAL);
} }
#elif def BSP_RTC_USING_LSI #elif defined(BSP_RTC_USING_LSI)
rcu_osci_on(RCU_IRC40K); rcu_osci_on(RCU_IRC40K);
if (SUCCESS == rcu_osci_stab_wait(RCU_IRC40K)) if (SUCCESS == rcu_osci_stab_wait(RCU_IRC40K))
{ {