diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-11 20:14:45 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-11 20:14:45 +0000 |
commit | 91fd67be1f1c806a0e4414dd8e03d72d34d37007 (patch) | |
tree | 72226059bdbb19d8e2ff4308a46c94946cbc2fdc | |
parent | 9a52743e90152091c6cf1eabeee839c93948864c (diff) | |
download | ChibiOS-91fd67be1f1c806a0e4414dd8e03d72d34d37007.tar.gz ChibiOS-91fd67be1f1c806a0e4414dd8e03d72d34d37007.tar.bz2 ChibiOS-91fd67be1f1c806a0e4414dd8e03d72d34d37007.zip |
RTC. Code reorganization.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rtc_dev@3597 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/platforms/STM32/RTCv2/rtc_lld.c (renamed from os/hal/platforms/STM32F4xx/rtc_lld.c) | 0 | ||||
-rw-r--r-- | os/hal/platforms/STM32/RTCv2/rtc_lld.h (renamed from os/hal/platforms/STM32F4xx/rtc_lld.h) | 0 | ||||
-rw-r--r-- | os/hal/platforms/STM32F1xx/hal_lld_f100.h | 1 | ||||
-rw-r--r-- | os/hal/platforms/STM32F1xx/hal_lld_f103.h | 1 | ||||
-rw-r--r-- | os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h | 1 | ||||
-rw-r--r-- | os/hal/platforms/STM32F2xx/hal_lld.h | 1 | ||||
-rw-r--r-- | os/hal/platforms/STM32F4xx/platform.mk | 3 | ||||
-rw-r--r-- | os/hal/platforms/STM32L1xx/hal_lld.h | 1 |
8 files changed, 7 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F4xx/rtc_lld.c b/os/hal/platforms/STM32/RTCv2/rtc_lld.c index cdf3aff81..cdf3aff81 100644 --- a/os/hal/platforms/STM32F4xx/rtc_lld.c +++ b/os/hal/platforms/STM32/RTCv2/rtc_lld.c diff --git a/os/hal/platforms/STM32F4xx/rtc_lld.h b/os/hal/platforms/STM32/RTCv2/rtc_lld.h index dd5a4160e..dd5a4160e 100644 --- a/os/hal/platforms/STM32F4xx/rtc_lld.h +++ b/os/hal/platforms/STM32/RTCv2/rtc_lld.h diff --git a/os/hal/platforms/STM32F1xx/hal_lld_f100.h b/os/hal/platforms/STM32F1xx/hal_lld_f100.h index 16bb84cbf..bab4957e1 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld_f100.h +++ b/os/hal/platforms/STM32F1xx/hal_lld_f100.h @@ -182,6 +182,7 @@ #define STM32_SPI3_TX_DMA_CHN 0x00000000
#define STM32_HAS_RTC TRUE
+#define RTC_HAS_SUBSECONDS TRUE
/* SDIO attributes.*/
#define STM32_HAS_SDIO FALSE
diff --git a/os/hal/platforms/STM32F1xx/hal_lld_f103.h b/os/hal/platforms/STM32F1xx/hal_lld_f103.h index 108854ff7..cbcce1b53 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld_f103.h +++ b/os/hal/platforms/STM32F1xx/hal_lld_f103.h @@ -193,6 +193,7 @@ /* RTC attributes.*/
#define STM32_HAS_RTC TRUE
+#define RTC_HAS_SUBSECONDS TRUE
/* SDIO attributes.*/
#define STM32_HAS_SDIO FALSE
diff --git a/os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h b/os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h index 9a612b0ee..75a9361df 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h +++ b/os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h @@ -185,6 +185,7 @@ /* RTC attributes.*/
#define STM32_HAS_RTC TRUE
+#define RTC_HAS_SUBSECONDS TRUE
/* SDIO attributes.*/
#define STM32_HAS_SDIO FALSE
diff --git a/os/hal/platforms/STM32F2xx/hal_lld.h b/os/hal/platforms/STM32F2xx/hal_lld.h index cad926330..193d5cf65 100644 --- a/os/hal/platforms/STM32F2xx/hal_lld.h +++ b/os/hal/platforms/STM32F2xx/hal_lld.h @@ -180,6 +180,7 @@ #define STM32_I2C3_TX_DMA_CHN 0x00030000
#define STM32_HAS_RTC TRUE
+#define RTC_HAS_SUBSECONDS FALSE
#define STM32_HAS_SDIO TRUE
diff --git a/os/hal/platforms/STM32F4xx/platform.mk b/os/hal/platforms/STM32F4xx/platform.mk index ce6f7bf57..5f6f4f32f 100644 --- a/os/hal/platforms/STM32F4xx/platform.mk +++ b/os/hal/platforms/STM32F4xx/platform.mk @@ -2,7 +2,6 @@ PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/STM32F4xx/stm32_dma.c \
${CHIBIOS}/os/hal/platforms/STM32F4xx/hal_lld.c \
${CHIBIOS}/os/hal/platforms/STM32F4xx/adc_lld.c \
- ${CHIBIOS}/os/hal/platforms/STM32F4xx/rtc_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/ext_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/gpt_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/icu_lld.c \
@@ -12,10 +11,12 @@ PLATFORMSRC = ${CHIBIOS}/os/hal/platforms/STM32F4xx/stm32_dma.c \ ${CHIBIOS}/os/hal/platforms/STM32/uart_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/i2c_lld.c \
${CHIBIOS}/os/hal/platforms/STM32/GPIOv2/pal_lld.c \
+ ${CHIBIOS}/os/hal/platforms/STM32/RTCv2/rtc_lld.c \
# Required include directories
PLATFORMINC = ${CHIBIOS}/os/hal/platforms/STM32F4xx \
${CHIBIOS}/os/hal/platforms/STM32 \
${CHIBIOS}/os/hal/platforms/STM32/GPIOv2 \
+ ${CHIBIOS}/os/hal/platforms/STM32/RTCv2 \
diff --git a/os/hal/platforms/STM32L1xx/hal_lld.h b/os/hal/platforms/STM32L1xx/hal_lld.h index 8d6cfd6f0..040c3af15 100644 --- a/os/hal/platforms/STM32L1xx/hal_lld.h +++ b/os/hal/platforms/STM32L1xx/hal_lld.h @@ -217,6 +217,7 @@ /* RTC attributes.*/
#define STM32_HAS_RTC TRUE
+#define RTC_HAS_SUBSECONDS FALSE
/* SDIO attributes.*/
#define STM32_HAS_SDIO FALSE
|