X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Frtc_stm32.c;h=4110fd09e6dd3df46f6e6e104bb17b71387e419f;hb=563795df4180aaceb7d69306551230c98fbca879;hp=76aae3dd133f6fc623b4051bcd4cc62736c203b3;hpb=fde92710afb75118bda5d9fb622d12f57a2656da;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/rtc_stm32.c b/bertos/cpu/cortex-m3/drv/rtc_stm32.c index 76aae3dd..4110fd09 100644 --- a/bertos/cpu/cortex-m3/drv/rtc_stm32.c +++ b/bertos/cpu/cortex-m3/drv/rtc_stm32.c @@ -38,6 +38,7 @@ #include "clock_stm32.h" #include +#include #include #include @@ -118,6 +119,9 @@ void rtc_setTime(uint32_t val) /* Initialize the RTC clock */ int rtc_init(void) { +#if CONFIG_KERN + MOD_CHECK(proc); +#endif /* Enable clock for Power interface */ RCC->APB1ENR |= RCC_APB1_PWR;