diff --git a/arch/arm/src/stm32/stm32f40xxx_rtcc.c b/arch/arm/src/stm32/stm32f40xxx_rtcc.c index c526674a27..ece81269c6 100644 --- a/arch/arm/src/stm32/stm32f40xxx_rtcc.c +++ b/arch/arm/src/stm32/stm32f40xxx_rtcc.c @@ -621,6 +621,7 @@ static void rtc_resume(void) * ************************************************************************************/ +#ifdef CONFIG_RTC_ALARM static int stm32_rtc_alarm_handler(int irq, void *context) { FAR struct alm_cbinfo_s *cbinfo; @@ -684,6 +685,7 @@ static int stm32_rtc_alarm_handler(int irq, void *context) return ret; } +#endif /************************************************************************************ * Name: rtchw_check_alrXwf X= a or B