git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10838 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2017-10-16 20:41:12 +00:00
parent 734aea5b10
commit 94236f4be7
90 changed files with 122 additions and 135 deletions

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* LED blinker thread, times are in milliseconds. * LED blinker thread, times are in milliseconds.

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
static THD_WORKING_AREA(waThread1, 32); static THD_WORKING_AREA(waThread1, 32);
static THD_FUNCTION(Thread1, arg) { static THD_FUNCTION(Thread1, arg) {
@ -56,7 +56,7 @@ int main(void) {
*/ */
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
while(TRUE) { while(TRUE) {
chThdSleepMilliseconds(1000); chThdSleepMilliseconds(1000);
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#define BOTH_BUTTONS (PAL_PORT_BIT(PA_BUTTON1) | PAL_PORT_BIT(PA_BUTTON2)) #define BOTH_BUTTONS (PAL_PORT_BIT(PA_BUTTON1) | PAL_PORT_BIT(PA_BUTTON2))
@ -90,7 +90,7 @@ int main(void) {
if (!palReadPad(IOPORT1, PA_BUTTON1)) if (!palReadPad(IOPORT1, PA_BUTTON1))
sdWrite(&SD1, (uint8_t *)"Hello World!\r\n", 14); sdWrite(&SD1, (uint8_t *)"Hello World!\r\n", 14);
if (!palReadPad(IOPORT1, PA_BUTTON2)) if (!palReadPad(IOPORT1, PA_BUTTON2))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
return 0; return 0;

View File

@ -110,7 +110,7 @@ THD_FUNCTION(Thread2, arg) {
/* Waiting for button push and activation of the test suite.*/ /* Waiting for button push and activation of the test suite.*/
while (true) { while (true) {
if (palReadPad(PORT_E, PE_BUTTON1)) if (palReadPad(PORT_E, PE_BUTTON1))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -66,7 +66,7 @@ int main(void) {
waiting for a button event, then the test suite is executed.*/ waiting for a button event, then the test suite is executed.*/
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
OS_TaskDelay(500); OS_TaskDelay(500);
} }
} }

View File

@ -67,7 +67,7 @@ int main(void) {
waiting for a button event, then the test suite is executed.*/ waiting for a button event, then the test suite is executed.*/
while (true) { while (true) {
if (palReadLine(LINE_BUTTON_USER)) if (palReadLine(LINE_BUTTON_USER))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
OS_TaskDelay(500); OS_TaskDelay(500);
} }
} }

View File

@ -72,7 +72,7 @@ THD_FUNCTION(Thread3, arg) {
/* Waiting for button push and activation of the test suite.*/ /* Waiting for button push and activation of the test suite.*/
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -96,7 +96,7 @@ THD_FUNCTION(Thread3, arg) {
/* Waiting for button push and activation of the test suite.*/ /* Waiting for button push and activation of the test suite.*/
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -59,7 +59,7 @@ THD_FUNCTION(Thread2, arg) {
/* Waiting for button push and activation of the test suite.*/ /* Waiting for button push and activation of the test suite.*/
while (true) { while (true) {
if (palReadLine(LINE_BUTTON_USER)) if (palReadLine(LINE_BUTTON_USER))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -19,7 +19,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "chprintf.h" #include "chprintf.h"
#include "shell.h" #include "shell.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -66,7 +66,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadLine(LINE_ARD_D3)) if (!palReadLine(LINE_ARD_D3))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -66,7 +66,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadLine(LINE_ARD_D3)) if (!palReadLine(LINE_ARD_D3))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Blue LED blinker thread, times are in milliseconds. * Blue LED blinker thread, times are in milliseconds.
@ -87,7 +87,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Blue LED blinker thread, times are in milliseconds. * Blue LED blinker thread, times are in milliseconds.
@ -87,7 +87,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -17,7 +17,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "chprintf.h" #include "chprintf.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -67,7 +67,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Blinker thread #1. * Blinker thread #1.
@ -86,7 +86,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -19,7 +19,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -18,7 +18,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "chprintf.h" #include "chprintf.h"
#include "shell.h" #include "shell.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Blinker thread. * Blinker thread.
@ -68,7 +68,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -19,7 +19,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "chprintf.h" #include "chprintf.h"
#include "shell.h" #include "shell.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -19,7 +19,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "lwipthread.h" #include "lwipthread.h"
@ -76,7 +76,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOC, GPIOC_SWITCH_TAMPER) == 0) if (palReadPad(GPIOC, GPIOC_SWITCH_TAMPER) == 0)
test_execute((BaseSequentialStream *)&SD3); test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -69,7 +69,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -74,7 +74,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD3); test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Blinker thread #1. * Blinker thread #1.
@ -94,7 +94,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Blinker thread #1. * Blinker thread #1.
@ -97,7 +97,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -66,7 +66,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadLine(LINE_ARD_D3)) if (!palReadLine(LINE_ARD_D3))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -74,7 +74,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD3); test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* LEDs blinker thread, times are in milliseconds. * LEDs blinker thread, times are in milliseconds.
@ -84,7 +84,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing LEDs. * This is a periodic thread that does absolutely nothing except flashing LEDs.
@ -76,7 +76,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_WKUP_BUTTON)) if (palReadPad(GPIOA, GPIOA_WKUP_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -69,7 +69,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.hpp" #include "ch.hpp"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
using namespace chibios_rt; using namespace chibios_rt;
@ -129,7 +129,7 @@ protected:
setName("tester"); setName("tester");
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
exit(test_global_fail); exit(test_global_fail);
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -69,7 +69,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -74,7 +74,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD3); test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "chprintf.h" #include "chprintf.h"
#include "shell.h" #include "shell.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -74,7 +74,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD3); test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -74,7 +74,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD3); test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "chprintf.h" #include "chprintf.h"
#include "shell.h" #include "shell.h"

View File

@ -16,7 +16,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/* /*

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -74,7 +74,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD3); test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -74,7 +74,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD3); test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* This is a periodic thread that does absolutely nothing except flashing * This is a periodic thread that does absolutely nothing except flashing
@ -72,7 +72,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON_USER)) if (palReadLine(LINE_BUTTON_USER))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -66,7 +66,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadLine(LINE_ARD_D3)) if (!palReadLine(LINE_ARD_D3))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_BUTTON)) if (palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Blinker thread #1. * Blinker thread #1.
@ -88,7 +88,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadPad(GPIOA, GPIOA_BUTTON)) if (palReadPad(GPIOA, GPIOA_BUTTON))
test_execute((BaseSequentialStream *)&SD1); test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadPad(GPIOC, GPIOC_BUTTON)) if (!palReadPad(GPIOC, GPIOC_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadLine(LINE_ARD_D3)) if (!palReadLine(LINE_ARD_D3))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* LEDs blinker thread, times are in milliseconds. * LEDs blinker thread, times are in milliseconds.
@ -69,7 +69,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (palReadLine(LINE_JOY_CENTER)) if (palReadLine(LINE_JOY_CENTER))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
/* /*
* Green LED blinker thread, times are in milliseconds. * Green LED blinker thread, times are in milliseconds.
@ -65,7 +65,7 @@ int main(void) {
*/ */
while (true) { while (true) {
if (!palReadLine(LINE_BUTTON)) if (!palReadLine(LINE_BUTTON))
test_execute((BaseSequentialStream *)&SD2); test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
chThdSleepMilliseconds(500); chThdSleepMilliseconds(500);
} }
} }

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -16,7 +16,7 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "ch_test.h" #include "rt_test_root.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -31,7 +31,7 @@
#include "chprintf.h" #include "chprintf.h"
#if (SHELL_CMD_TEST_ENABLED == TRUE) || defined(__DOXYGEN__) #if (SHELL_CMD_TEST_ENABLED == TRUE) || defined(__DOXYGEN__)
#include "ch_test.h" #include "rt_test_root.h"
#endif #endif
/*===========================================================================*/ /*===========================================================================*/

View File

@ -43,7 +43,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
#if !defined(__DOXYGEN__) #if !defined(__DOXYGEN__)

View File

@ -22,6 +22,8 @@
#ifndef RT_TEST_ROOT_H #ifndef RT_TEST_ROOT_H
#define RT_TEST_ROOT_H #define RT_TEST_ROOT_H
#include "ch_test.h"
#include "rt_test_sequence_001.h" #include "rt_test_sequence_001.h"
#include "rt_test_sequence_002.h" #include "rt_test_sequence_002.h"
#include "rt_test_sequence_003.h" #include "rt_test_sequence_003.h"

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -15,7 +15,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "rt_test_root.h" #include "rt_test_root.h"
/** /**

View File

@ -40,7 +40,6 @@
*/ */
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "${prefix_lower}test_root.h" #include "${prefix_lower}test_root.h"
#if !defined(__DOXYGEN__) #if !defined(__DOXYGEN__)

View File

@ -20,6 +20,8 @@
#ifndef ${prefix_upper}TEST_ROOT_H #ifndef ${prefix_upper}TEST_ROOT_H
#define ${prefix_upper}TEST_ROOT_H #define ${prefix_upper}TEST_ROOT_H
#include "ch_test.h"
[#list instance.sequences.sequence as sequence] [#list instance.sequences.sequence as sequence]
#include "${prefix_lower}test_sequence_${(sequence_index + 1)?string("000")}.h" #include "${prefix_lower}test_sequence_${(sequence_index + 1)?string("000")}.h"
[/#list] [/#list]

View File

@ -14,7 +14,6 @@
[@utils.EmitIndentedCCode "" 2 instance.description.copyright.value[0] /] [@utils.EmitIndentedCCode "" 2 instance.description.copyright.value[0] /]
#include "hal.h" #include "hal.h"
#include "ch_test.h"
#include "${prefix_lower}test_root.h" #include "${prefix_lower}test_root.h"
/** /**