comparison target-utils/loadagent/main.c @ 19:c0e063494194

loadagent built with memory dump commands
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 00:25:30 +0000
parents
children a7b0b426f9ca
comparison
equal deleted inserted replaced
18:fa3e9a5665bd 19:c0e063494194
1 /*
2 * FreeCalypso loadagent main() function lives here
3 */
4
5 #include "types.h"
6 #include "romvars.h"
7
8 extern struct boot_rom_vars rom_vars;
9
10 extern char *uart_name;
11
12 main()
13 {
14 uart_select_init();
15 printf("FreeCalypso loadagent running\n");
16 printf("Loaded via UART %d (%s) at baud rate #%d\n", rom_vars.uart_id,
17 uart_name, rom_vars.baud_rate_code);
18 printf("TCXO clock input autodetected to be %d MHz\n",
19 rom_vars.clktcxo_13mhz ? 13 : 26);
20 for (;;) {
21 putchar('=');
22 if (command_entry())
23 command_dispatch();
24 }
25 }