FreeCalypso > hg > freecalypso-tools
view target-utils/c139explore/main.c @ 13:46ad66a231af
fc-fsio: finally one can type ls -l and not just the ll abbreviation
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 03 Oct 2016 06:15:04 +0000 |
parents | e7502631a0f9 |
children | f24b31082605 |
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; /* take peripherals out of reset */ *(volatile u16 *)0xfffffd04 = 0xFFF3; abb_init(); uwire_init(); for (;;) { putchar('='); if (command_entry()) command_dispatch(); } }