From 1764b2db55a2d35f1e394c6f8edf1beebc5f326e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 29 May 2014 14:02:06 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6970 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/LPC21xx/RT-LPC214x-OLIMEX/main.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'demos/LPC21xx/RT-LPC214x-OLIMEX/main.c') diff --git a/demos/LPC21xx/RT-LPC214x-OLIMEX/main.c b/demos/LPC21xx/RT-LPC214x-OLIMEX/main.c index 629b8e6a7..8c0778c32 100644 --- a/demos/LPC21xx/RT-LPC214x-OLIMEX/main.c +++ b/demos/LPC21xx/RT-LPC214x-OLIMEX/main.c @@ -15,9 +15,10 @@ */ #include "ch.h" -#include "hal.h" -#include "test.h" +//#include "hal.h" +//#include "test.h" +#if 0 #define BOTH_BUTTONS (PAL_PORT_BIT(PA_BUTTON1) | PAL_PORT_BIT(PA_BUTTON2)) /* @@ -57,6 +58,7 @@ static msg_t Thread2(void *arg) { } return 0; } +#endif /* * Application entry point. @@ -70,22 +72,22 @@ int main(void) { * - Kernel initialization, the main() function becomes a thread and the * RTOS is active. */ - halInit(); +// halInit(); chSysInit(); /* * Activates the serial driver 1 using the driver default configuration. */ - sdStart(&SD1, NULL); +// sdStart(&SD1, NULL); /* * If a button is pressed during the reset then the blinking leds threads * are not started in order to make accurate benchmarks. */ - if ((palReadPort(IOPORT1) & BOTH_BUTTONS) == BOTH_BUTTONS) { - chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); - chThdCreateStatic(waThread2, sizeof(waThread2), NORMALPRIO, Thread2, NULL); - } +// if ((palReadPort(IOPORT1) & BOTH_BUTTONS) == BOTH_BUTTONS) { +// chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); +// chThdCreateStatic(waThread2, sizeof(waThread2), NORMALPRIO, Thread2, NULL); +// } /* * Normal main() thread activity, in this demo it does nothing except @@ -93,10 +95,10 @@ int main(void) { * or print "Hello World!" on serial driver 1. */ while (TRUE) { - if (!palReadPad(IOPORT1, PA_BUTTON1)) - sdWrite(&SD1, (uint8_t *)"Hello World!\r\n", 14); - if (!palReadPad(IOPORT1, PA_BUTTON2)) - TestThread(&SD1); +// if (!palReadPad(IOPORT1, PA_BUTTON1)) +// sdWrite(&SD1, (uint8_t *)"Hello World!\r\n", 14); +// if (!palReadPad(IOPORT1, PA_BUTTON2)) +// TestThread(&SD1); chThdSleepMilliseconds(500); } return 0; -- cgit v1.2.3