mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
STM32 RTC alarm: remove some if 0ed out logic.
This commit is contained in:
@@ -1444,16 +1444,6 @@ int stm32_rtc_cancelalarm(enum alm_id_e alarmid)
|
||||
|
||||
rtc_wprunlock();
|
||||
|
||||
#if 0
|
||||
/* Set Initialization mode */
|
||||
|
||||
ret = rtc_enterinit();
|
||||
if (ret < 0)
|
||||
{
|
||||
goto errout_with_wprunlock;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Disable RTC alarm and interrupt */
|
||||
|
||||
modifyreg32(STM32_RTC_CR, (RTC_CR_ALRAE | RTC_CR_ALRAIE), 0);
|
||||
@@ -1485,16 +1475,6 @@ int stm32_rtc_cancelalarm(enum alm_id_e alarmid)
|
||||
|
||||
rtc_wprunlock();
|
||||
|
||||
#if 0
|
||||
/* Set Initialization mode */
|
||||
|
||||
ret = rtc_enterinit();
|
||||
if (ret < 0)
|
||||
{
|
||||
goto errout_with_wprunlock;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Disable RTC alarm and interrupt */
|
||||
|
||||
modifyreg32(STM32_RTC_CR, (RTC_CR_ALRBE | RTC_CR_ALRBIE), 0);
|
||||
|
||||
Reference in New Issue
Block a user