From 97efce5f7ff227aaa8990529217d3d10db3443dc Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 10 Mar 2013 11:41:49 -0700 Subject: [PATCH] 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 --- src/stm-demo/Makefile | 2 +- src/stm-demo/ao_demo.c | 6 +++--- 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); -- 2.30.2