STM32 RTC: Fix some errors when RTC debug is enabled

This commit is contained in:
Gregory Nutt 2016-04-03 09:52:08 -06:00
parent 6b3b12ee0a
commit 9f0df8180a
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;
}