summaryrefslogtreecommitdiff
path: root/src/stm-demo
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-10 11:41:49 -0700
committerKeith Packard <keithp@keithp.com>2013-03-10 11:41:49 -0700
commit97efce5f7ff227aaa8990529217d3d10db3443dc (patch)
treec9ccf4964647ee9eecb8e58110a91da6163485da /src/stm-demo
parent72c5b1429bdfd6e9d2185bad7d0adb281fdf659a (diff)
altos: re-enable optimization for stm-demo. remove unused bits
This makes stm-demo run on the discovery board again. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm-demo')
-rw-r--r--src/stm-demo/Makefile2
-rw-r--r--src/stm-demo/ao_demo.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/stm-demo/Makefile b/src/stm-demo/Makefile
index 09c9c3ca..3b1b671b 100644
--- a/src/stm-demo/Makefile
+++ b/src/stm-demo/Makefile
@@ -44,7 +44,7 @@ PRODUCT=StmDemo-v0.0
PRODUCT_DEF=-DSTM_DEMO
IDPRODUCT=0x000a
-CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -g -O0
+CFLAGS = $(PRODUCT_DEF) $(STM_CFLAGS) -g -Os
PROG=stm-demo
diff --git a/src/stm-demo/ao_demo.c b/src/stm-demo/ao_demo.c
index fe7c69f2..b82cb735 100644
--- a/src/stm-demo/ao_demo.c
+++ b/src/stm-demo/ao_demo.c
@@ -187,13 +187,13 @@ main(void)
ao_timer_init();
ao_dma_init();
ao_cmd_init();
- ao_lcd_stm_init();
+// ao_lcd_stm_init();
// ao_lcd_font_init();
ao_spi_init();
ao_i2c_init();
ao_exti_init();
- ao_quadrature_init();
- ao_button_init();
+// ao_quadrature_init();
+// ao_button_init();
ao_timer_set_adc_interval(100);