diff options
| author | Keith Packard <keithp@keithp.com> | 2013-03-10 21:02:59 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-05-07 20:15:43 -0700 | 
| commit | c9c35b100c3fcae661501d2bf89eedc7fceb2e1c (patch) | |
| tree | c2db5892a973c33346d1985405f2f88a6b3d87b6 /src/stm-flash/ao_stm_flash.c | |
| parent | a6887032b4d217bca5236ea15389218f10d69545 (diff) | |
altos: Make stm-flash capable of switching to application
This shrinks the base OS load down a bit as well so that stm-flash
fits comfortably in the first 8kB of memory.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm-flash/ao_stm_flash.c')
| -rw-r--r-- | src/stm-flash/ao_stm_flash.c | 28 | 
1 files changed, 1 insertions, 27 deletions
| diff --git a/src/stm-flash/ao_stm_flash.c b/src/stm-flash/ao_stm_flash.c index 81ae86df..e2d7ec65 100644 --- a/src/stm-flash/ao_stm_flash.c +++ b/src/stm-flash/ao_stm_flash.c @@ -17,7 +17,6 @@  #include "ao.h"  #include <ao_exti.h> -<<<<<<< HEAD  #include <ao_boot.h>  #include <ao_flash_stm.h> @@ -118,48 +117,23 @@ __code struct ao_cmds ao_flash_cmds[] = {  	{ ao_block_read, "R <addr>\0Read block. Returns 256 bytes" },  	{ 0, NULL },  }; -======= -void -ao_panic(uint8_t c) -{ -} - -void -ao_test(void) -{ -	char	c; - -	for (;;) { -		c = ao_usb_getchar(); -		ao_usb_putchar(c); -		ao_usb_flush(); -	} -} - -struct ao_task ao_test_task; ->>>>>>> 5187bb4... Add STM self-flashing loader  int  main(void)  {  	ao_clock_init(); -<<<<<<< HEAD  	ao_task_init(); -======= ->>>>>>> 5187bb4... Add STM self-flashing loader  	ao_timer_init();  //	ao_dma_init();  	ao_cmd_init();  //	ao_exti_init();  	ao_usb_init(); -<<<<<<< HEAD  	ao_cmd_register(&ao_flash_cmds[0]); -======= ->>>>>>> 5187bb4... Add STM self-flashing loader +	ao_cmd_register(&ao_flash_cmds[0]);  	ao_start_scheduler();  	return 0;  } | 
