aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2017-09-19 15:56:27 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2017-09-19 15:56:27 +0000
commited72cd26af0c254c83471ac7a1b9dad8b4da016c (patch)
treea24477accf0bd6a791e5b0a766d6aa33c0626b1f /demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c
parent72685f5ce81acfb957220cae03445a5b5fcd6d5b (diff)
downloadChibiOS-ed72cd26af0c254c83471ac7a1b9dad8b4da016c.tar.gz
ChibiOS-ed72cd26af0c254c83471ac7a1b9dad8b4da016c.tar.bz2
ChibiOS-ed72cd26af0c254c83471ac7a1b9dad8b4da016c.zip
Completed RT-SAMA5D2-XPLAINED demo
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10651 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c')
-rwxr-xr-xdemos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c
index bfca0f50f..86aa1b1a2 100755
--- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c
+++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c
@@ -16,6 +16,7 @@
#include "ch.h"
#include "hal.h"
+#include "ch_test.h"
/*
* LED blinker thread, times are in milliseconds.
@@ -65,6 +66,8 @@ int main(void) {
* sleeping in a loop and check the button state.
*/
while (true) {
+ if(!palReadPad(PIOB, PIOB_USER_PB))
+ test_execute((BaseSequentialStream *)&SD0);
chThdSleepMilliseconds(500);
}
}