From 034fe7b30f6a73c403b7f36812a1e7086cc8332c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 17 Jul 2014 14:53:46 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7043 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/SPC5/NIL-SPC560D-EVB/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'demos') 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); -- cgit v1.2.3