diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-17 11:07:15 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-17 11:07:15 +0000 |
commit | e9d7b9de5705a3b5c0b822077fbd165c86087481 (patch) | |
tree | fc6a51fec7f88d34acfeb79df63cc8a4d9a10f54 /demos/ARM7-LPC214x-GCC/main.c | |
parent | 26ed3732876a649fb02a83e768e4392034d65653 (diff) | |
download | ChibiOS-e9d7b9de5705a3b5c0b822077fbd165c86087481.tar.gz ChibiOS-e9d7b9de5705a3b5c0b822077fbd165c86087481.tar.bz2 ChibiOS-e9d7b9de5705a3b5c0b822077fbd165c86087481.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1230 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/main.c')
-rw-r--r-- | demos/ARM7-LPC214x-GCC/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/demos/ARM7-LPC214x-GCC/main.c b/demos/ARM7-LPC214x-GCC/main.c index a8db1b667..93b6fd768 100644 --- a/demos/ARM7-LPC214x-GCC/main.c +++ b/demos/ARM7-LPC214x-GCC/main.c @@ -35,6 +35,7 @@ static WORKING_AREA(waThread1, 128);
static msg_t Thread1(void *arg) {
+ (void)arg;
while (TRUE) {
palClearPort(IOPORT1, PAL_PORT_BIT(PA_LED2));
chThdSleepMilliseconds(200);
@@ -54,6 +55,7 @@ static msg_t Thread1(void *arg) { static WORKING_AREA(waThread2, 128);
static msg_t Thread2(void *arg) {
+ (void)arg;
while (TRUE) {
palClearPad(IOPORT1, PA_LEDUSB);
chThdSleepMilliseconds(200);
@@ -70,6 +72,7 @@ static WORKING_AREA(waTestThread, 128); */
static void TimerHandler(eventid_t id) {
+ (void)id;
if (!(palReadPort(IOPORT1) & BOTH_BUTTONS)) {
Thread *tp = chThdCreateStatic(waTestThread, sizeof(waTestThread),
NORMALPRIO, TestThread, &SD1);
@@ -94,6 +97,7 @@ static void InsertHandler(eventid_t id) { static uint8_t rwbuf[512];
MMCCSD data;
+ (void)id;
PlaySoundWait(1000, MS2ST(100));
PlaySoundWait(2000, MS2ST(100));
if (mmcInit())
@@ -111,6 +115,7 @@ static void InsertHandler(eventid_t id) { */
static void RemoveHandler(eventid_t id) {
+ (void)id;
PlaySoundWait(2000, MS2ST(100));
PlaySoundWait(1000, MS2ST(100));
}
@@ -128,6 +133,9 @@ int main(int argc, char **argv) { static EvTimer evt;
struct EventListener el0, el1, el2;
+ (void)argc;
+ (void)argv;
+
/*
* Activates the serial driver 2 using the driver default configuration.
*/
|