diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-07-17 14:53:46 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-07-17 14:53:46 +0000 |
commit | 034fe7b30f6a73c403b7f36812a1e7086cc8332c (patch) | |
tree | cdfcb4fdec254628e5b03e0689290fd967933954 /demos/SPC5 | |
parent | 90765cccc94fd44d4831c0be33dcdf3d1d110609 (diff) | |
download | ChibiOS-034fe7b30f6a73c403b7f36812a1e7086cc8332c.tar.gz ChibiOS-034fe7b30f6a73c403b7f36812a1e7086cc8332c.tar.bz2 ChibiOS-034fe7b30f6a73c403b7f36812a1e7086cc8332c.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7043 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/SPC5')
-rw-r--r-- | demos/SPC5/NIL-SPC560D-EVB/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/demos/SPC5/NIL-SPC560D-EVB/main.c b/demos/SPC5/NIL-SPC560D-EVB/main.c index 0e3ad525e..05b7737c1 100644 --- a/demos/SPC5/NIL-SPC560D-EVB/main.c +++ b/demos/SPC5/NIL-SPC560D-EVB/main.c @@ -26,9 +26,16 @@ static THD_FUNCTION(Thread1, arg) { (void)arg;
+ /*
+ * Activates the serial driver 1 using the driver default configuration.
+ */
+ sdStart(&SD1, NULL);
+
while (TRUE) {
unsigned i;
+ chnWriteTimeout(&SD1, (uint8_t *)"Hello World!\r\n", 14, TIME_INFINITE);
+
for (i = 0; i < 4; i++) {
palClearPad(PORT_E, PE_LED1);
chThdSleepMilliseconds(100);
|