projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add debug support for AVR XMega MCU.
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
clock_stm32.h
diff --git
a/bertos/cpu/cortex-m3/drv/clock_stm32.h
b/bertos/cpu/cortex-m3/drv/clock_stm32.h
index 4150a44d1e11c8f6278279e5ce43491b7bd381c8..e91753d62a06498a7c9c2a7c47899ce7a72c60bc 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/clock_stm32.h
+++ b/
bertos/cpu/cortex-m3/drv/clock_stm32.h
@@
-38,6
+38,9
@@
#ifndef CLOCK_STM32_H
#define CLOCK_STM32_H
#ifndef CLOCK_STM32_H
#define CLOCK_STM32_H
+
+#include <cfg/compiler.h>
+
/* RCC registers bit address */
#define RCC_OFFSET (RCC_BASE - PERIPH_BASE)
/* RCC registers bit address */
#define RCC_OFFSET (RCC_BASE - PERIPH_BASE)
@@
-237,6
+240,14
@@
#define RCC_APB2_SPI1 (0x00001000)
#define RCC_APB2_USART1 (0x00004000)
#define RCC_APB2_ALL (0x00005E7D)
#define RCC_APB2_SPI1 (0x00001000)
#define RCC_APB2_USART1 (0x00004000)
#define RCC_APB2_ALL (0x00005E7D)
+
+/**
+ * RCC register: BCDR
+ */
+#define RCC_BDCR_LSEON (0x00000001)
+#define RCC_BDCR_LSERDY (0x00000002)
+#define RCC_BDCR_RTCSEL (0x00000300)
+#define RCC_BDCR_RTCEN (0x00008000)
/*\}*/
/* Crystal frequency of the main oscillator (8MHz) */
/*\}*/
/* Crystal frequency of the main oscillator (8MHz) */