X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm-demo%2Fao_demo.c;h=b0d03840c22348345fcf1b02e1ce32cf5adb6bf3;hb=2de8922b505f0358a36933721fbddf6a9ef7e9a4;hp=ffc5d2d873b3f7d8e176d3edc2cf2d7428af3b8a;hpb=7e0b549b9b30d0a1290d28b2b94025a98af6a4de;p=fw%2Faltos diff --git a/src/stm-demo/ao_demo.c b/src/stm-demo/ao_demo.c index ffc5d2d8..b0d03840 100644 --- a/src/stm-demo/ao_demo.c +++ b/src/stm-demo/ao_demo.c @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -196,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" }, @@ -222,11 +223,12 @@ main(void) ao_cmd_init(); // ao_lcd_stm_init(); // ao_lcd_font_init(); -// ao_spi_init(); + ao_spi_init(); // ao_i2c_init(); // ao_exti_init(); // ao_quadrature_init(); // ao_button_init(); + ao_storage_init(); // ao_timer_set_adc_interval(100);