diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index 878b60f0e8..09e969f1a7 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -138,7 +138,10 @@ rt_err_t rt_data_queue_peak(struct rt_data_queue *queue, void rt_data_queue_reset(struct rt_data_queue *queue); #ifdef RT_USING_RTC -#include "drivers/rtc.h" +#include "drivers/rtc.h" +#ifdef RT_USING_ALARM +#include "drivers/alarm.h" +#endif #endif /* RT_USING_RTC */ #ifdef RT_USING_SPI