diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-23 12:46:52 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-23 12:46:52 +0000 |
commit | f6ddc053fd02fec7073d60767f2b6bb0a9979623 (patch) | |
tree | 28cfad3e078c989b3d52e75cb2b43b44befd9bdc /demos/STM32/RT-STM32F373-STM32373C_EVAL | |
parent | 94a1f758d8fd03c828108b585af4c360b2899bb9 (diff) | |
download | ChibiOS-f6ddc053fd02fec7073d60767f2b6bb0a9979623.tar.gz ChibiOS-f6ddc053fd02fec7073d60767f2b6bb0a9979623.tar.bz2 ChibiOS-f6ddc053fd02fec7073d60767f2b6bb0a9979623.zip |
Mass updated all demos with the new test code.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10886 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32/RT-STM32F373-STM32373C_EVAL')
-rw-r--r-- | demos/STM32/RT-STM32F373-STM32373C_EVAL/Makefile | 4 | ||||
-rw-r--r-- | demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/demos/STM32/RT-STM32F373-STM32373C_EVAL/Makefile b/demos/STM32/RT-STM32F373-STM32373C_EVAL/Makefile index e46a665c3..6ff45e840 100644 --- a/demos/STM32/RT-STM32F373-STM32373C_EVAL/Makefile +++ b/demos/STM32/RT-STM32F373-STM32373C_EVAL/Makefile @@ -98,7 +98,9 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional).
-include $(CHIBIOS)/test/rt/test.mk
+include $(CHIBIOS)/test/lib/test.mk
+include $(CHIBIOS)/test/rt/rt_test.mk
+include $(CHIBIOS)/test/oslib/oslib_test.mk
# Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F373xC.ld
diff --git a/demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c b/demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c index 087f316fb..f9558a838 100644 --- a/demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c +++ b/demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c @@ -17,6 +17,7 @@ #include "ch.h"
#include "hal.h"
#include "rt_test_root.h"
+#include "oslib_test_root.h"
/*
* This is a periodic thread that does absolutely nothing except flashing LEDs.
@@ -75,8 +76,10 @@ int main(void) { * pressed the test procedure is launched.
*/
while (true) {
- if (palReadPad(GPIOA, GPIOA_WKUP_BUTTON))
+ if (palReadPad(GPIOA, GPIOA_WKUP_BUTTON)) {
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
+ test_execute((BaseSequentialStream *)&SD2, &oslib_test_suite);
+ }
chThdSleepMilliseconds(500);
}
}
|