altos: Remove 8051 address space specifiers
[fw/altos] / src / stm-demo / ao_demo.c
index ffc5d2d873b3f7d8e176d3edc2cf2d7428af3b8a..b0d03840c22348345fcf1b02e1ce32cf5adb6bf3 100644 (file)
@@ -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);