view 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 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)
		;
}