FreeCalypso > hg > freecalypso-sw
diff target-utils/helloapp/main.c @ 11:40f607bb0a2c
target-utils refactored
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 01 May 2013 07:39:35 +0000 |
parents | loadagent/main.c@4a7a325ed1b6 |
children | f0501c4a8790 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/target-utils/helloapp/main.c Wed May 01 07:39:35 2013 +0000 @@ -0,0 +1,25 @@ +/* + * FreeCalypso loadagent main() function lives here + */ + +#include "types.h" +#include "romvars.h" + +#include <stdio.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); + /* interactive command mode to be implemented */ + while (1) + ; +}