diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2017-09-19 15:56:27 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@gmail.com> | 2017-09-19 15:56:27 +0000 |
commit | ed72cd26af0c254c83471ac7a1b9dad8b4da016c (patch) | |
tree | a24477accf0bd6a791e5b0a766d6aa33c0626b1f /demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c | |
parent | 72685f5ce81acfb957220cae03445a5b5fcd6d5b (diff) | |
download | ChibiOS-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-x | demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c | 3 |
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);
}
}
|