aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM0-LPC1114-GCC
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARMCM0-LPC1114-GCC')
-rw-r--r--demos/ARMCM0-LPC1114-GCC/Makefile2
-rw-r--r--demos/ARMCM0-LPC1114-GCC/main.c14
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;