diff options
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/main.c')
-rw-r--r-- | demos/ARM7-LPC214x-GCC/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-GCC/main.c b/demos/ARM7-LPC214x-GCC/main.c index 61ad4ea77..33197c2cb 100644 --- a/demos/ARM7-LPC214x-GCC/main.c +++ b/demos/ARM7-LPC214x-GCC/main.c @@ -19,10 +19,10 @@ #include <ch.h>
#include <pal.h>
+#include <serial.h>
#include <test.h>
#include "board.h"
-#include "lpc214x_serial.h"
#include "mmcsd.h"
#include "buzzer.h"
#include "evtimer.h"
@@ -80,7 +80,7 @@ static void TimerHandler(eventid_t id) { if (!palReadPad(IOPORT_A, PA_BUTTON1))
PlaySound(1000, MS2ST(100));
if (!palReadPad(IOPORT_A, PA_BUTTON2)) {
- chFDDWrite(&COM1, (uint8_t *)"Hello World!\r\n", 14);
+ sdWrite(&COM1, (uint8_t *)"Hello World!\r\n", 14);
PlaySound(2000, MS2ST(100));
}
}
@@ -129,6 +129,11 @@ int main(int argc, char **argv) { struct EventListener el0, el1, el2;
/*
+ * Activates the communication port 1 using the driver default configuration.
+ */
+ sdStart(&COM1, NULL);
+
+ /*
* If a button is pressed during the reset then the blinking leds threads
* are not started in order to make accurate benchmarks.
*/
|