FreeCalypso > hg > freecalypso-tools
view target-utils/calversion/main.c @ 720:b73c21a2148f
reorg: smallconv.c moved from ffstools/cal2text to librftab
This module contains write_afcdac_ascii() and write_stdmap_ascii()
functions; the plan is to make them available to other programs,
particularly the upcoming addition of RF table dump to tiffs.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 25 Aug 2020 06:28:44 +0000 |
parents | 1dcc9e4b71fd |
children |
line wrap: on
line source
#include "types.h" main() { uart_select_init(); printf("Calypso version ID program running\n"); print_boot_rom_info(); printf("Device ID code: 0x%04X\n", *(volatile u16 *)0xFFFEF000); printf("Device version code: 0x%04X\n", *(volatile u16 *)0xFFFEF002); printf("ARM ID code: 0x%04X\n", *(volatile u16 *)0xFFFFFE00); printf("cDSP ID code: 0x%04X\n", *(volatile u16 *)0xFFFFFE02); dsp_power_on(); for (;;) { putchar('='); if (command_entry()) command_dispatch(); } }