diff options
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);
}
}
|