comparison target-utils/c139explore/main.c @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children f24b31082605
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 #include "types.h"
2
3 main()
4 {
5 /* delay kludge workaround for defect in fc-compalram */
6 osmo_delay_ms(30);
7 printf("C139 hardware exploration utility running\n");
8 /* GPIO init */
9 *(volatile u16 *)0xfffe4802 = 0x0002;
10 *(volatile u16 *)0xfffe4804 = 0xFFF5;
11 /* take peripherals out of reset */
12 *(volatile u16 *)0xfffffd04 = 0xFFF3;
13 abb_init();
14 uwire_init();
15 for (;;) {
16 putchar('=');
17 if (command_entry())
18 command_dispatch();
19 }
20 }