FreeCalypso > hg > freecalypso-tools
view target-utils/c139explore/main.c @ 214:b0de6d36e84c
loadtools/gta-ap-build.sed: don't build fc-compalram or fc-buzplay for GTA0x AP
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 19 May 2017 06:29:06 +0000 |
parents | f24b31082605 |
children | da53ea0a38ba |
line wrap: on
line source
#include "types.h" main() { /* delay kludge workaround for defect in fc-compalram */ osmo_delay_ms(30); printf("C139 hardware exploration utility running\n"); /* GPIO init */ *(volatile u16 *)0xfffe4802 = 0x0002; *(volatile u16 *)0xfffe4804 = 0xFFF5; *(volatile u16 *)0xfffe4806 = 0xFFF3; /* enable ARMIO clock */ /* take peripherals out of reset */ *(volatile u16 *)0xfffffd04 = 0xFFF3; abb_init(); uwire_init(); for (;;) { putchar('='); if (command_entry()) command_dispatch(); } }