aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F303-DISCOVERY-REVC
diff options
context:
space:
mode:
Diffstat (limited to 'demos/STM32/RT-STM32F303-DISCOVERY-REVC')
-rw-r--r--demos/STM32/RT-STM32F303-DISCOVERY-REVC/Makefile4
-rw-r--r--demos/STM32/RT-STM32F303-DISCOVERY-REVC/main.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/demos/STM32/RT-STM32F303-DISCOVERY-REVC/Makefile b/demos/STM32/RT-STM32F303-DISCOVERY-REVC/Makefile
index db0ac4a27..31810aa4c 100644
--- a/demos/STM32/RT-STM32F303-DISCOVERY-REVC/Makefile
+++ b/demos/STM32/RT-STM32F303-DISCOVERY-REVC/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)/STM32F303xC.ld
diff --git a/demos/STM32/RT-STM32F303-DISCOVERY-REVC/main.c b/demos/STM32/RT-STM32F303-DISCOVERY-REVC/main.c
index 68b1cb2e5..02b924ec4 100644
--- a/demos/STM32/RT-STM32F303-DISCOVERY-REVC/main.c
+++ b/demos/STM32/RT-STM32F303-DISCOVERY-REVC/main.c
@@ -17,6 +17,7 @@
#include "ch.h"
#include "hal.h"
#include "rt_test_root.h"
+#include "oslib_test_root.h"
/*
* Blinker thread #1.
@@ -93,8 +94,10 @@ int main(void) {
* pressed the test procedure is launched.
*/
while (true) {
- if (palReadPad(GPIOA, GPIOA_BUTTON))
+ if (palReadPad(GPIOA, GPIOA_BUTTON)) {
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
+ test_execute((BaseSequentialStream *)&SD1, &oslib_test_suite);
+ }
chThdSleepMilliseconds(500);
}
}