git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7043 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2014-07-17 14:53:46 +00:00
parent 90765cccc9
commit 034fe7b30f
1 changed files with 7 additions and 0 deletions

View File

@ -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);