diff options
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/main.c')
-rw-r--r-- | demos/ARM7-LPC214x-GCC/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/ARM7-LPC214x-GCC/main.c b/demos/ARM7-LPC214x-GCC/main.c index 0183b276b..5db6815fb 100644 --- a/demos/ARM7-LPC214x-GCC/main.c +++ b/demos/ARM7-LPC214x-GCC/main.c @@ -57,18 +57,18 @@ static BYTE8 waThread3[UserStackSize(64)]; static t_msg Thread3(void *arg) {
t_msg TestThread(void *p);
-
+
while (TRUE) {
- if (!(IO0PIN & 0x00018000)) {
+ if (!(IO0PIN & 0x00018000)) {
TestThread(&COM1);
PlaySound(500, 100);
- }
- else {
+ }
+ else {
if (!(IO0PIN & 0x00008000)) // Button 1
PlaySound(1000, 100);
if (!(IO0PIN & 0x00010000)) // Button 2
chFDDWrite(&COM1, (BYTE8 *)"Hello World!\r\n", 14);
- }
+ }
chThdSleep(500);
}
return 0;
|