From f6ddc053fd02fec7073d60767f2b6bb0a9979623 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 23 Oct 2017 12:46:52 +0000 Subject: Mass updated all demos with the new test code. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10886 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c') diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c index 866c3b723..176745464 100755 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c @@ -17,6 +17,7 @@ #include "ch.h" #include "hal.h" #include "rt_test_root.h" +#include "oslib_test_root.h" /* * LED blinker thread, times are in milliseconds. @@ -66,8 +67,10 @@ int main(void) { * sleeping in a loop and check the button state. */ while (true) { - if(!palReadPad(PIOB, PIOB_USER_PB)) - test_execute((BaseSequentialStream *)&SD0); + if(!palReadPad(PIOB, PIOB_USER_PB)) { + test_execute((BaseSequentialStream *)&SD0, &rt_test_suite); + test_execute((BaseSequentialStream *)&SD0, &oslib_test_suite); + } chThdSleepMilliseconds(500); } } -- cgit v1.2.3