git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10838 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
734aea5b10
commit
94236f4be7
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* LED blinker thread, times are in milliseconds.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
static THD_WORKING_AREA(waThread1, 32);
|
||||
static THD_FUNCTION(Thread1, arg) {
|
||||
|
@ -56,7 +56,7 @@ int main(void) {
|
|||
*/
|
||||
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
|
||||
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
while(TRUE) {
|
||||
chThdSleepMilliseconds(1000);
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.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))
|
||||
|
||||
|
@ -90,7 +90,7 @@ int main(void) {
|
|||
if (!palReadPad(IOPORT1, PA_BUTTON1))
|
||||
sdWrite(&SD1, (uint8_t *)"Hello World!\r\n", 14);
|
||||
if (!palReadPad(IOPORT1, PA_BUTTON2))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -110,7 +110,7 @@ THD_FUNCTION(Thread2, arg) {
|
|||
/* Waiting for button push and activation of the test suite.*/
|
||||
while (true) {
|
||||
if (palReadPad(PORT_E, PE_BUTTON1))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ int main(void) {
|
|||
waiting for a button event, then the test suite is executed.*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
OS_TaskDelay(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ int main(void) {
|
|||
waiting for a button event, then the test suite is executed.*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON_USER))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
OS_TaskDelay(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ THD_FUNCTION(Thread3, arg) {
|
|||
/* Waiting for button push and activation of the test suite.*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ THD_FUNCTION(Thread3, arg) {
|
|||
/* Waiting for button push and activation of the test suite.*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ THD_FUNCTION(Thread2, arg) {
|
|||
/* Waiting for button push and activation of the test suite.*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON_USER))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#include "chprintf.h"
|
||||
#include "shell.h"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -66,7 +66,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadLine(LINE_ARD_D3))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -66,7 +66,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadLine(LINE_ARD_D3))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Blue LED blinker thread, times are in milliseconds.
|
||||
|
@ -87,7 +87,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Blue LED blinker thread, times are in milliseconds.
|
||||
|
@ -87,7 +87,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "chprintf.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -67,7 +67,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Blinker thread #1.
|
||||
|
@ -86,7 +86,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#include "chprintf.h"
|
||||
#include "shell.h"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Blinker thread.
|
||||
|
@ -68,7 +68,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#include "chprintf.h"
|
||||
#include "shell.h"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#include "lwipthread.h"
|
||||
|
||||
|
@ -76,7 +76,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOC, GPIOC_SWITCH_TAMPER) == 0)
|
||||
test_execute((BaseSequentialStream *)&SD3);
|
||||
test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.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))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
|
@ -74,7 +74,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD3);
|
||||
test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Blinker thread #1.
|
||||
|
@ -94,7 +94,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Blinker thread #1.
|
||||
|
@ -97,7 +97,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -66,7 +66,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadLine(LINE_ARD_D3))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
|
@ -74,7 +74,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD3);
|
||||
test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* LEDs blinker thread, times are in milliseconds.
|
||||
|
@ -84,7 +84,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.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.
|
||||
|
@ -76,7 +76,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_WKUP_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.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))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.hpp"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
using namespace chibios_rt;
|
||||
|
||||
|
@ -129,7 +129,7 @@ protected:
|
|||
|
||||
setName("tester");
|
||||
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
exit(test_global_fail);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.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))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
|
@ -74,7 +74,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD3);
|
||||
test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#include "chprintf.h"
|
||||
#include "shell.h"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
|
@ -74,7 +74,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD3);
|
||||
test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
|
@ -74,7 +74,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD3);
|
||||
test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#include "chprintf.h"
|
||||
#include "shell.h"
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
|
@ -74,7 +74,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD3);
|
||||
test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
|
@ -74,7 +74,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD3);
|
||||
test_execute((BaseSequentialStream *)&SD3, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
|
@ -72,7 +72,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON_USER))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -66,7 +66,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadLine(LINE_ARD_D3))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Blinker thread #1.
|
||||
|
@ -88,7 +88,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadPad(GPIOA, GPIOA_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD1);
|
||||
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadPad(GPIOC, GPIOC_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadLine(LINE_ARD_D3))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* LEDs blinker thread, times are in milliseconds.
|
||||
|
@ -69,7 +69,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (palReadLine(LINE_JOY_CENTER))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/*
|
||||
* Green LED blinker thread, times are in milliseconds.
|
||||
|
@ -65,7 +65,7 @@ int main(void) {
|
|||
*/
|
||||
while (true) {
|
||||
if (!palReadLine(LINE_BUTTON))
|
||||
test_execute((BaseSequentialStream *)&SD2);
|
||||
test_execute((BaseSequentialStream *)&SD2, &rt_test_suite);
|
||||
chThdSleepMilliseconds(500);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#include "shell.h"
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include "chprintf.h"
|
||||
|
||||
#if (SHELL_CMD_TEST_ENABLED == TRUE) || defined(__DOXYGEN__)
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
#endif
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
#if !defined(__DOXYGEN__)
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#ifndef RT_TEST_ROOT_H
|
||||
#define RT_TEST_ROOT_H
|
||||
|
||||
#include "ch_test.h"
|
||||
|
||||
#include "rt_test_sequence_001.h"
|
||||
#include "rt_test_sequence_002.h"
|
||||
#include "rt_test_sequence_003.h"
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "rt_test_root.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
*/
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "${prefix_lower}test_root.h"
|
||||
|
||||
#if !defined(__DOXYGEN__)
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
#ifndef ${prefix_upper}TEST_ROOT_H
|
||||
#define ${prefix_upper}TEST_ROOT_H
|
||||
|
||||
#include "ch_test.h"
|
||||
|
||||
[#list instance.sequences.sequence as sequence]
|
||||
#include "${prefix_lower}test_sequence_${(sequence_index + 1)?string("000")}.h"
|
||||
[/#list]
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
[@utils.EmitIndentedCCode "" 2 instance.description.copyright.value[0] /]
|
||||
|
||||
#include "hal.h"
|
||||
#include "ch_test.h"
|
||||
#include "${prefix_lower}test_root.h"
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue