diff --git a/ports/stm32/rtc.h b/ports/stm32/rtc.h index d3840c1b73..5c454b3e39 100644 --- a/ports/stm32/rtc.h +++ b/ports/stm32/rtc.h @@ -26,6 +26,8 @@ #ifndef MICROPY_INCLUDED_STM32_RTC_H #define MICROPY_INCLUDED_STM32_RTC_H +#include "py/obj.h" + extern RTC_HandleTypeDef RTCHandle; extern const mp_obj_type_t pyb_rtc_type;