FreeCalypso > hg > freecalypso-sw
comparison 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 |
comparison
equal
deleted
inserted
replaced
66:98f855e58c9f | 67:b8f335553000 |
---|---|
1 #include "types.h" | |
2 #include "romvars.h" | |
3 | |
4 extern struct boot_rom_vars rom_vars; | |
5 | |
6 extern char *uart_name; | |
7 | |
8 main() | |
9 { | |
10 uart_select_init(); | |
11 printf("Pirelli hardware exploration utility running\n"); | |
12 printf("Loaded via UART %d (%s) at baud rate #%d\n", rom_vars.uart_id, | |
13 uart_name, rom_vars.baud_rate_code); | |
14 printf("TCXO clock input autodetected to be %d MHz\n", | |
15 rom_vars.clktcxo_13mhz ? 13 : 26); | |
16 for (;;) { | |
17 putchar('='); | |
18 if (command_entry()) | |
19 command_dispatch(); | |
20 } | |
21 } |