view target-utils/pirexplore/main.c @ 67:b8f335553000

pirexplore utility started
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 26 Jul 2013 04:57:03 +0000
parents
children a323b4cc69e6
line wrap: on
line source

#include "types.h"
#include "romvars.h"

extern struct boot_rom_vars rom_vars;

extern char *uart_name;

main()
{
	uart_select_init();
	printf("Pirelli hardware exploration utility 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();
	}
}