projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optimize compile.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
rtc_stm32.c
diff --git
a/bertos/cpu/cortex-m3/drv/rtc_stm32.c
b/bertos/cpu/cortex-m3/drv/rtc_stm32.c
index 76aae3dd133f6fc623b4051bcd4cc62736c203b3..4110fd09e6dd3df46f6e6e104bb17b71387e419f 100644
(file)
--- 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 <cfg/compiler.h>
#include "clock_stm32.h"
#include <cfg/compiler.h>
+#include <cfg/module.h>
#include <cfg/debug.h>
#include <io/stm32.h>
#include <cfg/debug.h>
#include <io/stm32.h>
@@
-118,6
+119,9
@@
void rtc_setTime(uint32_t val)
/* Initialize the RTC clock */
int rtc_init(void)
{
/* 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;
/* Enable clock for Power interface */
RCC->APB1ENR |= RCC_APB1_PWR;