diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-03-26 15:08:50 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-03-26 15:08:50 +0000 |
commit | a6c627641ed547ca3ee968bceb2c366a2dfe263e (patch) | |
tree | c6118d259214e467f26207906d06322011e9c3d5 /demos | |
parent | d451a360542d080f3cd1dd3a02aff84be97656d0 (diff) | |
download | ChibiOS-a6c627641ed547ca3ee968bceb2c366a2dfe263e.tar.gz ChibiOS-a6c627641ed547ca3ee968bceb2c366a2dfe263e.tar.bz2 ChibiOS-a6c627641ed547ca3ee968bceb2c366a2dfe263e.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1784 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARMCM0-LPC1114-GCC/Makefile | 2 | ||||
-rw-r--r-- | demos/ARMCM0-LPC1114-GCC/main.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/demos/ARMCM0-LPC1114-GCC/Makefile b/demos/ARMCM0-LPC1114-GCC/Makefile index 59a108cfe..dcfec8ce6 100644 --- a/demos/ARMCM0-LPC1114-GCC/Makefile +++ b/demos/ARMCM0-LPC1114-GCC/Makefile @@ -148,7 +148,7 @@ CPPWARN = -Wall -Wextra #
# List all default C defines here, like -D_DEBUG=1
-DDEFS = -DLPC1114
+DDEFS = -DLPC1114 -D__NEWLIB__
# List all default ASM defines here, like -D_DEBUG=1
DADEFS =
diff --git a/demos/ARMCM0-LPC1114-GCC/main.c b/demos/ARMCM0-LPC1114-GCC/main.c index 0072f0958..0dd187ecd 100644 --- a/demos/ARMCM0-LPC1114-GCC/main.c +++ b/demos/ARMCM0-LPC1114-GCC/main.c @@ -18,8 +18,8 @@ */
#include "ch.h"
-#include "hal.h"
-#include "test.h"
+//#include "hal.h"
+//#include "test.h"
/*
* Red LEDs blinker thread, times are in milliseconds.
@@ -29,9 +29,9 @@ static msg_t Thread1(void *arg) { (void)arg;
while (TRUE) {
- palClearPad(IOPORT3, GPIOC_LED);
+// palClearPad(IOPORT3, GPIOC_LED);
chThdSleepMilliseconds(500);
- palSetPad(IOPORT3, GPIOC_LED);
+// palSetPad(IOPORT3, GPIOC_LED);
chThdSleepMilliseconds(500);
}
return 0;
@@ -49,7 +49,7 @@ int main(int argc, char **argv) { /*
* Activates the serial driver 2 using the driver default configuration.
*/
- sdStart(&SD2, NULL);
+// sdStart(&SD2, NULL);
/*
* Creates the blinker thread.
@@ -61,8 +61,8 @@ int main(int argc, char **argv) { * sleeping in a loop and check the button state.
*/
while (TRUE) {
- if (palReadPad(IOPORT1, GPIOA_BUTTON))
- TestThread(&SD2);
+// if (palReadPad(IOPORT1, GPIOA_BUTTON))
+// TestThread(&SD2);
chThdSleepMilliseconds(500);
}
return 0;
|