aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32
diff options
context:
space:
mode:
Diffstat (limited to 'demos/STM32')
-rw-r--r--demos/STM32/RT-STM32F030R8-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32F031K6-NUCLEO32/main.c4
-rw-r--r--demos/STM32/RT-STM32F042K6-NUCLEO32/main.c4
-rw-r--r--demos/STM32/RT-STM32F051-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32F072-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32F072RB-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32F091RC-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32F100-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h2
-rw-r--r--demos/STM32/RT-STM32F103-MAPLEMINI/main.c2
-rw-r--r--demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/main.c4
-rw-r--r--demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/main.c2
-rw-r--r--demos/STM32/RT-STM32F103RB-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32F103_INEMO_DISCOVERY/main.c2
-rw-r--r--demos/STM32/RT-STM32F207-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32F302R8-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32F303-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32F303K8-NUCLEO32/main.c4
-rw-r--r--demos/STM32/RT-STM32F334-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32F334R8-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c4
-rw-r--r--demos/STM32/RT-STM32F401C-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32F401RE-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp4
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY-MEMS/main.c2
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c2
-rw-r--r--demos/STM32/RT-STM32F411RE-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32F429-DISCOVERY/main.c2
-rw-r--r--demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/main.c2
-rw-r--r--demos/STM32/RT-STM32L053R8-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32L152-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32L152RE-NUCLEO/main.c4
-rw-r--r--demos/STM32/RT-STM32L476-DISCOVERY/main.c4
-rw-r--r--demos/STM32/RT-STM32L476RG-NUCLEO/main.c4
35 files changed, 63 insertions, 61 deletions
diff --git a/demos/STM32/RT-STM32F030R8-NUCLEO/main.c b/demos/STM32/RT-STM32F030R8-NUCLEO/main.c
index 43a46a071..00057b532 100644
--- a/demos/STM32/RT-STM32F030R8-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32F030R8-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F031K6-NUCLEO32/main.c b/demos/STM32/RT-STM32F031K6-NUCLEO32/main.c
index 3dd4caa35..c4441b352 100644
--- a/demos/STM32/RT-STM32F031K6-NUCLEO32/main.c
+++ b/demos/STM32/RT-STM32F031K6-NUCLEO32/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -66,7 +66,7 @@ int main(void) {
*/
while (true) {
if (!palReadLine(LINE_ARD_D3))
- TestThread(&SD1);
+ test_execute((BaseSequentialStream *)&SD1);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F042K6-NUCLEO32/main.c b/demos/STM32/RT-STM32F042K6-NUCLEO32/main.c
index 0c32bc4d9..e8272659a 100644
--- a/demos/STM32/RT-STM32F042K6-NUCLEO32/main.c
+++ b/demos/STM32/RT-STM32F042K6-NUCLEO32/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -66,7 +66,7 @@ int main(void) {
*/
while (true) {
if (!palReadLine(LINE_ARD_D3))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F051-DISCOVERY/main.c b/demos/STM32/RT-STM32F051-DISCOVERY/main.c
index 30c6cb530..74725e36d 100644
--- a/demos/STM32/RT-STM32F051-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F051-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Blue LED blinker thread, times are in milliseconds.
@@ -87,7 +87,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD1);
+ test_execute((BaseSequentialStream *)&SD1);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F072-DISCOVERY/main.c b/demos/STM32/RT-STM32F072-DISCOVERY/main.c
index 63892fa69..a46f0ecce 100644
--- a/demos/STM32/RT-STM32F072-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F072-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Blue LED blinker thread, times are in milliseconds.
@@ -87,7 +87,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD1);
+ test_execute((BaseSequentialStream *)&SD1);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F072RB-NUCLEO/main.c b/demos/STM32/RT-STM32F072RB-NUCLEO/main.c
index 4a497864c..5d7e7cb13 100644
--- a/demos/STM32/RT-STM32F072RB-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32F072RB-NUCLEO/main.c
@@ -17,7 +17,7 @@
#include "ch.h"
#include "hal.h"
#include "chprintf.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -67,7 +67,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F091RC-NUCLEO/main.c b/demos/STM32/RT-STM32F091RC-NUCLEO/main.c
index 43a46a071..00057b532 100644
--- a/demos/STM32/RT-STM32F091RC-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32F091RC-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F100-DISCOVERY/main.c b/demos/STM32/RT-STM32F100-DISCOVERY/main.c
index e5381de8e..1b89c66c9 100644
--- a/demos/STM32/RT-STM32F100-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F100-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Blinker thread #1.
@@ -86,7 +86,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD1);
+ test_execute((BaseSequentialStream *)&SD1);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h b/demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h
index 32cc09664..1e7423018 100644
--- a/demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h
+++ b/demos/STM32/RT-STM32F103-MAPLEMINI/chconf.h
@@ -516,6 +516,8 @@
/* Port-specific settings (override port settings defaulted in chcore.h). */
/*===========================================================================*/
+#define CORTEX_VTOR_INIT 0x5000
+
#endif /* CHCONF_H */
/** @} */
diff --git a/demos/STM32/RT-STM32F103-MAPLEMINI/main.c b/demos/STM32/RT-STM32F103-MAPLEMINI/main.c
index 6ebb52d3a..df5564d48 100644
--- a/demos/STM32/RT-STM32F103-MAPLEMINI/main.c
+++ b/demos/STM32/RT-STM32F103-MAPLEMINI/main.c
@@ -19,7 +19,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
#include "shell.h"
#include "chprintf.h"
diff --git a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/main.c b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/main.c
index ca027f3a3..414ed96b7 100644
--- a/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/main.c
+++ b/demos/STM32/RT-STM32F103-OLIMEX_STM32_P103/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Blinker thread.
@@ -68,7 +68,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/main.c b/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/main.c
index 51b5fd00b..93355773f 100644
--- a/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/main.c
+++ b/demos/STM32/RT-STM32F103-STM3210E_EVAL-FATFS-USB/main.c
@@ -19,7 +19,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
#include "chprintf.h"
#include "shell.h"
diff --git a/demos/STM32/RT-STM32F103RB-NUCLEO/main.c b/demos/STM32/RT-STM32F103RB-NUCLEO/main.c
index 43a46a071..00057b532 100644
--- a/demos/STM32/RT-STM32F103RB-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32F103RB-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/main.c b/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/main.c
index f66d36786..307a72023 100644
--- a/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F103_INEMO_DISCOVERY/main.c
@@ -19,7 +19,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
#include "shell.h"
#include "chprintf.h"
diff --git a/demos/STM32/RT-STM32F207-DISCOVERY/main.c b/demos/STM32/RT-STM32F207-DISCOVERY/main.c
index 399b423b6..6c8873009 100644
--- a/demos/STM32/RT-STM32F207-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F207-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* This is a periodic thread that does absolutely nothing except flashing
@@ -69,7 +69,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F302R8-NUCLEO/main.c b/demos/STM32/RT-STM32F302R8-NUCLEO/main.c
index 3f9beda10..07ab84043 100644
--- a/demos/STM32/RT-STM32F302R8-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32F302R8-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F303-DISCOVERY/main.c b/demos/STM32/RT-STM32F303-DISCOVERY/main.c
index 26b940664..1f91e6e63 100644
--- a/demos/STM32/RT-STM32F303-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F303-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Blinker thread #1.
@@ -112,7 +112,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD1);
+ test_execute((BaseSequentialStream *)&SD1);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F303K8-NUCLEO32/main.c b/demos/STM32/RT-STM32F303K8-NUCLEO32/main.c
index 0c32bc4d9..e8272659a 100644
--- a/demos/STM32/RT-STM32F303K8-NUCLEO32/main.c
+++ b/demos/STM32/RT-STM32F303K8-NUCLEO32/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -66,7 +66,7 @@ int main(void) {
*/
while (true) {
if (!palReadLine(LINE_ARD_D3))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F334-DISCOVERY/main.c b/demos/STM32/RT-STM32F334-DISCOVERY/main.c
index 0a71d445e..093a64910 100644
--- a/demos/STM32/RT-STM32F334-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F334-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* LEDs blinker thread, times are in milliseconds.
@@ -84,7 +84,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F334R8-NUCLEO/main.c b/demos/STM32/RT-STM32F334R8-NUCLEO/main.c
index 43a46a071..00057b532 100644
--- a/demos/STM32/RT-STM32F334R8-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32F334R8-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c b/demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c
index ce239c23e..1a2b4df63 100644
--- a/demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c
+++ b/demos/STM32/RT-STM32F373-STM32373C_EVAL/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* This is a periodic thread that does absolutely nothing except flashing LEDs.
@@ -76,7 +76,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_WKUP_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F401C-DISCOVERY/main.c b/demos/STM32/RT-STM32F401C-DISCOVERY/main.c
index 399b423b6..6c8873009 100644
--- a/demos/STM32/RT-STM32F401C-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F401C-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* This is a periodic thread that does absolutely nothing except flashing
@@ -69,7 +69,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F401RE-NUCLEO/main.c b/demos/STM32/RT-STM32F401RE-NUCLEO/main.c
index 43a46a071..00057b532 100644
--- a/demos/STM32/RT-STM32F401RE-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32F401RE-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp b/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
index b16f9ad69..5f714836c 100644
--- a/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
+++ b/demos/STM32/RT-STM32F407-DISCOVERY-G++/main.cpp
@@ -16,7 +16,7 @@
#include "ch.hpp"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
using namespace chibios_rt;
@@ -129,7 +129,7 @@ protected:
setName("tester");
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
exit(test_global_fail);
}
diff --git a/demos/STM32/RT-STM32F407-DISCOVERY-MEMS/main.c b/demos/STM32/RT-STM32F407-DISCOVERY-MEMS/main.c
index 2eda62ab9..def958c8b 100644
--- a/demos/STM32/RT-STM32F407-DISCOVERY-MEMS/main.c
+++ b/demos/STM32/RT-STM32F407-DISCOVERY-MEMS/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
#include "chprintf.h"
#include "shell.h"
diff --git a/demos/STM32/RT-STM32F407-DISCOVERY/main.c b/demos/STM32/RT-STM32F407-DISCOVERY/main.c
index 399b423b6..6c8873009 100644
--- a/demos/STM32/RT-STM32F407-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F407-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* This is a periodic thread that does absolutely nothing except flashing
@@ -69,7 +69,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c
index c75577710..4206e22f8 100644
--- a/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c
+++ b/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB/main.c
@@ -19,7 +19,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
#include "chprintf.h"
#include "shell.h"
diff --git a/demos/STM32/RT-STM32F411RE-NUCLEO/main.c b/demos/STM32/RT-STM32F411RE-NUCLEO/main.c
index 43a46a071..00057b532 100644
--- a/demos/STM32/RT-STM32F411RE-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32F411RE-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32F429-DISCOVERY/main.c b/demos/STM32/RT-STM32F429-DISCOVERY/main.c
index ba4dceb31..153298308 100644
--- a/demos/STM32/RT-STM32F429-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32F429-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
#include "chprintf.h"
#include "shell.h"
diff --git a/demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/main.c b/demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/main.c
index b2e560c14..81c5e2f10 100644
--- a/demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/main.c
+++ b/demos/STM32/RT-STM32F746G-DISCOVERY-LWIP-FATFS-USB/main.c
@@ -19,7 +19,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
#include "chprintf.h"
#include "shell.h"
diff --git a/demos/STM32/RT-STM32L053R8-NUCLEO/main.c b/demos/STM32/RT-STM32L053R8-NUCLEO/main.c
index 43a46a071..00057b532 100644
--- a/demos/STM32/RT-STM32L053R8-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32L053R8-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32L152-DISCOVERY/main.c b/demos/STM32/RT-STM32L152-DISCOVERY/main.c
index f11546010..79744b507 100644
--- a/demos/STM32/RT-STM32L152-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32L152-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Blinker thread #1.
@@ -88,7 +88,7 @@ int main(void) {
*/
while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON))
- TestThread(&SD1);
+ test_execute((BaseSequentialStream *)&SD1);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32L152RE-NUCLEO/main.c b/demos/STM32/RT-STM32L152RE-NUCLEO/main.c
index 43a46a071..00057b532 100644
--- a/demos/STM32/RT-STM32L152RE-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32L152RE-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32L476-DISCOVERY/main.c b/demos/STM32/RT-STM32L476-DISCOVERY/main.c
index ab91dcb64..50fb1dcd6 100644
--- a/demos/STM32/RT-STM32L476-DISCOVERY/main.c
+++ b/demos/STM32/RT-STM32L476-DISCOVERY/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* LEDs blinker thread, times are in milliseconds.
@@ -69,7 +69,7 @@ int main(void) {
*/
while (true) {
if (palReadLine(LINE_JOY_CENTER))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}
diff --git a/demos/STM32/RT-STM32L476RG-NUCLEO/main.c b/demos/STM32/RT-STM32L476RG-NUCLEO/main.c
index 396000bd4..ac2b582f8 100644
--- a/demos/STM32/RT-STM32L476RG-NUCLEO/main.c
+++ b/demos/STM32/RT-STM32L476RG-NUCLEO/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
/*
* Green LED blinker thread, times are in milliseconds.
@@ -65,7 +65,7 @@ int main(void) {
*/
while (true) {
if (!palReadLine(LINE_BUTTON))
- TestThread(&SD2);
+ test_execute((BaseSequentialStream *)&SD2);
chThdSleepMilliseconds(500);
}
}