FreeCalypso > hg > freecalypso-tools
comparison target-utils/calversion/main.c @ 441:1dcc9e4b71fd
target-utils/calversion: program written, compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 26 Dec 2018 06:40:02 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
440:44f73d56b6f5 | 441:1dcc9e4b71fd |
---|---|
1 #include "types.h" | |
2 | |
3 main() | |
4 { | |
5 uart_select_init(); | |
6 printf("Calypso version ID program running\n"); | |
7 print_boot_rom_info(); | |
8 printf("Device ID code: 0x%04X\n", *(volatile u16 *)0xFFFEF000); | |
9 printf("Device version code: 0x%04X\n", *(volatile u16 *)0xFFFEF002); | |
10 printf("ARM ID code: 0x%04X\n", *(volatile u16 *)0xFFFFFE00); | |
11 printf("cDSP ID code: 0x%04X\n", *(volatile u16 *)0xFFFFFE02); | |
12 dsp_power_on(); | |
13 for (;;) { | |
14 putchar('='); | |
15 if (command_entry()) | |
16 command_dispatch(); | |
17 } | |
18 } |