view target-utils/c139explore/main.c @ 948:c73516dd50bb

c139explore: delay before greeting printf to work around defect in fc-compalram
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 02 Nov 2015 22:11:06 +0000
parents 845c2e420069
children df1dccc0ef9c
line wrap: on
line source

#include "types.h"
#include "ns16550.h"

struct ns16550_regs *uart_base;

main()
{
	/* delay kludge workaround for defect in fc-compalram */
	osmo_delay_ms(30);
	uart_base = (struct ns16550_regs *) 0xFFFF5800;
	printf("C139 hardware exploration utility running\n");
	for (;;) {
		putchar('=');
		if (command_entry())
			command_dispatch();
	}
}