summaryrefslogtreecommitdiff
path: root/src/stm-demo
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm-demo')
-rw-r--r--src/stm-demo/Makefile2
-rw-r--r--src/stm-demo/ao_demo.c5
-rw-r--r--src/stm-demo/ao_pins.h2
3 files changed, 6 insertions, 3 deletions
diff --git a/src/stm-demo/Makefile b/src/stm-demo/Makefile
index e009c30c..a675182e 100644
--- a/src/stm-demo/Makefile
+++ b/src/stm-demo/Makefile
@@ -47,7 +47,7 @@ PRODUCT_DEF=-DSTM_DEMO
IDPRODUCT=0x000a
CPU=cortex-m3
CFLAGS = $(PRODUCT_DEF) -I. -I../stm -I../core -I..
-CFLAGS += -g -std=gnu99 -Os -mlittle-endian -mcpu=cortex-m3 -mthumb -ffreestanding -nostdlib -I../stm $(CINC)
+CFLAGS += -g -std=gnu99 -O0 -mlittle-endian -mcpu=cortex-m3 -mthumb -ffreestanding -nostdlib -I../stm $(CINC)
NICKLE=nickle
diff --git a/src/stm-demo/ao_demo.c b/src/stm-demo/ao_demo.c
index 90216535..5fe0b154 100644
--- a/src/stm-demo/ao_demo.c
+++ b/src/stm-demo/ao_demo.c
@@ -42,8 +42,9 @@ main(void)
ao_serial_init();
ao_timer_init();
- ao_cmd_init();
+// ao_cmd_init();
- ao_demo();
+ ao_add_task(&demo_task, ao_demo, "demo");
+ ao_start_scheduler();
return 0;
}
diff --git a/src/stm-demo/ao_pins.h b/src/stm-demo/ao_pins.h
index 82d70bb6..f436e9c8 100644
--- a/src/stm-demo/ao_pins.h
+++ b/src/stm-demo/ao_pins.h
@@ -24,4 +24,6 @@
#define HAS_BEEP 0
#define PACKET_HAS_SLAVE 0
+#define LOW_LEVEL_DEBUG 1
+
#endif /* _AO_PINS_H_ */