comparison 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
comparison
equal deleted inserted replaced
10:e2e80a09338e 11:40f607bb0a2c
1 /*
2 * FreeCalypso loadagent main() function lives here
3 */
4
5 #include "types.h"
6 #include "romvars.h"
7
8 #include <stdio.h>
9
10 extern struct boot_rom_vars rom_vars;
11
12 extern char *uart_name;
13
14 main()
15 {
16 uart_select_init();
17 printf("FreeCalypso loadagent running\n");
18 printf("Loaded via UART %d (%s) at baud rate #%d\n", rom_vars.uart_id,
19 uart_name, rom_vars.baud_rate_code);
20 printf("TCXO clock input autodetected to be %d MHz\n",
21 rom_vars.clktcxo_13mhz ? 13 : 26);
22 /* interactive command mode to be implemented */
23 while (1)
24 ;
25 }