aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-06 08:58:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-06 08:58:52 +0000
commitd6d799ed48f8193bee286187132221f831726a07 (patch)
tree928f9db3dbb76cfdef92405635b8d1b7885e5b5e /demos/ARM7-LPC214x-GCC/main.c
parentff4dd3f8f0f95652f754ab869b136d31d671ac51 (diff)
downloadChibiOS-d6d799ed48f8193bee286187132221f831726a07.tar.gz
ChibiOS-d6d799ed48f8193bee286187132221f831726a07.tar.bz2
ChibiOS-d6d799ed48f8193bee286187132221f831726a07.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@39 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/main.c')
-rw-r--r--demos/ARM7-LPC214x-GCC/main.c10
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;