STM32 RTC: Fix some errors when RTC debug is enabled
This commit is contained in:
parent
6b3b12ee0a
commit
9f0df8180a
@ -612,7 +612,7 @@ static int stm32_cancelalarm(FAR struct rtc_lowerhalf_s *lower, int alarmid)
|
||||
/* ID0-> Alarm A; ID1 -> Alarm B */
|
||||
|
||||
DEBUGASSERT(lower != NULL);
|
||||
DEBUGASSERT(alarminfo->id == RTC_ALARMA || alarminfo->id == RTC_ALARMB);
|
||||
DEBUGASSERT(alarmid == RTC_ALARMA || alarmid == RTC_ALARMB);
|
||||
|
||||
# warning Missing logic
|
||||
return -ENOSYS;
|
||||
|
@ -144,10 +144,10 @@
|
||||
/* Debug ****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DEBUG_RTC
|
||||
# define rtcdbg rtcdbg
|
||||
# define rtcvdbg rtcvdbg
|
||||
# define rtclldbg rctlldbg
|
||||
# define rtcllvdbg rtcllvdbg
|
||||
# define rtcdbg dbg
|
||||
# define rtcvdbg vdbg
|
||||
# define rtclldbg lldbg
|
||||
# define rtcllvdbg llvdbg
|
||||
#else
|
||||
# define rtcdbg(x...)
|
||||
# define rtcvdbg(x...)
|
||||
@ -1398,7 +1398,7 @@ int stm32_rtc_setalarm(FAR struct alm_setalarm_s *alminfo)
|
||||
break;
|
||||
|
||||
default:
|
||||
rtcvdbg("error unknown %d\n", alminfo->asr_id);
|
||||
rtcvdbg("ERROR: Invalid ALARM%d\n", alminfo->as_id);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user