FreeCalypso > hg > freecalypso-sw
view target-utils/helloapp/main.c @ 13:f4fc449a64ea
target-utils libcommon infrastructure for interactive commands
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 03 May 2013 06:42:03 +0000 |
parents | 40f607bb0a2c |
children | f0501c4a8790 |
line wrap: on
line source
/* * 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) ; }