aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/main.c')
-rw-r--r--demos/ARM7-LPC214x-GCC/main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/demos/ARM7-LPC214x-GCC/main.c b/demos/ARM7-LPC214x-GCC/main.c
index 702a25d98..9e0a4222c 100644
--- a/demos/ARM7-LPC214x-GCC/main.c
+++ b/demos/ARM7-LPC214x-GCC/main.c
@@ -21,7 +21,8 @@
#include "lpc214x.h"
#include "lpc214x_serial.h"
-#include "lpc214x_ssp.h"
+//#include "lpc214x_ssp.h"
+#include "mmcsd.h"
#include "buzzer.h"
#include "evtimer.h"
@@ -56,7 +57,7 @@ static t_msg Thread2(void *arg) {
}
static void TimerHandler(t_eventid id) {
- static BYTE8 sspbuf[16];
+// static BYTE8 sspbuf[16];
t_msg TestThread(void *p);
if (!(IO0PIN & 0x00018000)) { // Both buttons
@@ -67,8 +68,11 @@ static void TimerHandler(t_eventid id) {
if (!(IO0PIN & 0x00008000)) // Button 1
PlaySound(1000, 100);
if (!(IO0PIN & 0x00010000)) { // Button 2
- sspRW(sspbuf, (BYTE8 *)"Hello World!\r\n", 14);
- chFDDWrite(&COM1, sspbuf, 14);
+// sspRW(sspbuf, (BYTE8 *)"Hello World!\r\n", 14);
+// chFDDWrite(&COM1, sspbuf, 14);
+ chFDDWrite(&COM1, (BYTE8 *)"Hello World!\r\n", 14);
+ if (!mmcInit())
+ PlaySound(2000, 500);
}
}
}