diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-17 07:46:38 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-17 07:46:38 +0000 |
commit | ba2ff06045c441a2be4ecd923d38e614db48f964 (patch) | |
tree | ccbb16452507ef332c8aeabd2785bb2498853b8c /demos | |
parent | a202724feaf68aaf44986e2bc336de0008bb2c64 (diff) | |
download | ChibiOS-ba2ff06045c441a2be4ecd923d38e614db48f964.tar.gz ChibiOS-ba2ff06045c441a2be4ecd923d38e614db48f964.tar.bz2 ChibiOS-ba2ff06045c441a2be4ecd923d38e614db48f964.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10841 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/STM32/RT-STM32F746G-DISCOVERY/Makefile | 4 | ||||
-rw-r--r-- | demos/STM32/RT-STM32F746G-DISCOVERY/main.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/Makefile b/demos/STM32/RT-STM32F746G-DISCOVERY/Makefile index f77f31794..4064da39b 100644 --- a/demos/STM32/RT-STM32F746G-DISCOVERY/Makefile +++ b/demos/STM32/RT-STM32F746G-DISCOVERY/Makefile @@ -103,7 +103,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)/STM32F746xG.ld
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY/main.c b/demos/STM32/RT-STM32F746G-DISCOVERY/main.c index c54ffd898..fa7a26acd 100644 --- a/demos/STM32/RT-STM32F746G-DISCOVERY/main.c +++ b/demos/STM32/RT-STM32F746G-DISCOVERY/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
@@ -71,8 +72,10 @@ int main(void) { * sleeping in a loop and check the button state.
*/
while (true) {
- if (palReadLine(LINE_BUTTON_USER))
+ if (palReadLine(LINE_BUTTON_USER)) {
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
+ test_execute((BaseSequentialStream *)&SD1, &oslib_test_suite);
+ }
chThdSleepMilliseconds(2000);
}
}
|