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.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/stm-demo/Makefile b/src/stm-demo/Makefile
index d4569c1a..ccce37a5 100644
--- a/src/stm-demo/Makefile
+++ b/src/stm-demo/Makefile
@@ -23,7 +23,7 @@ ALTOS_SRC = \
ao_romconfig.c \
ao_cmd.c \
ao_task.c \
- ao_led.c \
+ ao_led_stm.c \
ao_stdio.c \
ao_panic.c \
ao_timer.c \
diff --git a/src/stm-demo/ao_demo.c b/src/stm-demo/ao_demo.c
index f6c8e3df..4b963e42 100644
--- a/src/stm-demo/ao_demo.c
+++ b/src/stm-demo/ao_demo.c
@@ -125,7 +125,7 @@ ao_i2c_write(void) {
for (i = 0; i < 10; i++) {
ao_i2c_get(0);
if (ao_i2c_start(0, 0x55))
- ao_i2c_send(data, 4, 0, TRUE);
+ ao_i2c_send(data, 4, 0, true);
else {
printf ("i2c start failed\n");
ao_i2c_put(0);
@@ -197,7 +197,7 @@ ao_blink_toggle(void)
}
-__code struct ao_cmds ao_demo_cmds[] = {
+const struct ao_cmds ao_demo_cmds[] = {
{ ao_dma_test, "D\0DMA test" },
{ ao_spi_write, "W\0SPI write" },
{ ao_spi_read, "R\0SPI read" },