FreeCalypso > hg > freecalypso-sw
view target-utils/loadagent/main.c @ 857:2768b4339275
a flash chip init/reset function added to Application_Initialize(),
see the comments in gsm-fw/bsp/flashchipinit.S
| author | Space Falcon <falcon@ivan.Harhan.ORG> | 
|---|---|
| date | Fri, 01 May 2015 16:27:59 +0000 | 
| parents | c0e063494194 | 
| children | a7b0b426f9ca | 
line wrap: on
 line source
/* * FreeCalypso loadagent main() function lives here */ #include "types.h" #include "romvars.h" extern struct boot_rom_vars rom_vars; extern char *uart_name; main() { uart_select_init(); printf("FreeCalypso loadagent running\n"); printf("Loaded via UART %d (%s) at baud rate #%d\n", rom_vars.uart_id, uart_name, rom_vars.baud_rate_code); printf("TCXO clock input autodetected to be %d MHz\n", rom_vars.clktcxo_13mhz ? 13 : 26); for (;;) { putchar('='); if (command_entry()) command_dispatch(); } }
