diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-06-13 12:08:53 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-06-13 12:08:53 +0000 |
commit | 6711ff45ea5499e2c30dd7b4216b827f263a1f95 (patch) | |
tree | 5d2d67d49261ea8c4fdb5f151b49de2a755be249 /testhal/STM32/STM32F4xx | |
parent | 7b584490f3ce37e9559d7e1ffe17bcb1a2fc2fae (diff) | |
download | ChibiOS-6711ff45ea5499e2c30dd7b4216b827f263a1f95.tar.gz ChibiOS-6711ff45ea5499e2c30dd7b4216b827f263a1f95.tar.bz2 ChibiOS-6711ff45ea5499e2c30dd7b4216b827f263a1f95.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6987 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx')
-rw-r--r-- | testhal/STM32/STM32F4xx/RTC/Makefile | 1 | ||||
-rw-r--r-- | testhal/STM32/STM32F4xx/RTC/main.c | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/testhal/STM32/STM32F4xx/RTC/Makefile b/testhal/STM32/STM32F4xx/RTC/Makefile index 1ad2388a1..e2a46cc1c 100644 --- a/testhal/STM32/STM32F4xx/RTC/Makefile +++ b/testhal/STM32/STM32F4xx/RTC/Makefile @@ -105,7 +105,6 @@ CSRC = $(PORTSRC) \ $(CHIBIOS)/os/various/syscalls.c \
$(CHIBIOS)/os/various/shell.c \
$(CHIBIOS)/os/various/chprintf.c \
- $(CHIBIOS)/os/various/chrtclib.c \
main.c
# C++ sources that can be compiled in ARM or THUMB mode depending on the global
diff --git a/testhal/STM32/STM32F4xx/RTC/main.c b/testhal/STM32/STM32F4xx/RTC/main.c index 6b25d371a..5d70ca65d 100644 --- a/testhal/STM32/STM32F4xx/RTC/main.c +++ b/testhal/STM32/STM32F4xx/RTC/main.c @@ -14,6 +14,10 @@ limitations under the License.
*/
+#include "ch.h"
+#include "hal.h"
+
+#if 0
/*
This structure is used to hold the values representing a calendar time.
It contains the following members, with the meanings as shown.
@@ -197,7 +201,7 @@ static const ShellConfig shell_cfg1 = { (BaseSequentialStream *)&SD2,
commands
};
-
+#endif
/**
* Main function.
@@ -206,8 +210,9 @@ int main(void){ halInit();
chSysInit();
- chThdCreateStatic(blinkWA, sizeof(blinkWA), NORMALPRIO, blink_thd, NULL);
+// chThdCreateStatic(blinkWA, sizeof(blinkWA), NORMALPRIO, blink_thd, NULL);
+#if 0
#if !WAKEUP_TEST
/* switch off wakeup */
rtcSetPeriodicWakeup_v2(&RTCD1, NULL);
@@ -232,6 +237,7 @@ int main(void){ chThdSleepSeconds(3);
func_sleep();
#endif /* !WAKEUP_TEST */
+#endif
return 0;
}
|