diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index 878b60f0e8c7d81a7d4b0bf918212961eb093f5c..09e969f1a7c2bfcddb96aae94ddc18421b988929 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