comparison target-utils/c139explore/main.c @ 37:f24b31082605

c139explore: turn on ARMIO module clock, needed to exercise the buzzer
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 00:02:27 +0000
parents e7502631a0f9
children da53ea0a38ba
comparison
equal deleted inserted replaced
36:29d0965ebf86 37:f24b31082605
6 osmo_delay_ms(30); 6 osmo_delay_ms(30);
7 printf("C139 hardware exploration utility running\n"); 7 printf("C139 hardware exploration utility running\n");
8 /* GPIO init */ 8 /* GPIO init */
9 *(volatile u16 *)0xfffe4802 = 0x0002; 9 *(volatile u16 *)0xfffe4802 = 0x0002;
10 *(volatile u16 *)0xfffe4804 = 0xFFF5; 10 *(volatile u16 *)0xfffe4804 = 0xFFF5;
11 *(volatile u16 *)0xfffe4806 = 0xFFF3; /* enable ARMIO clock */
11 /* take peripherals out of reset */ 12 /* take peripherals out of reset */
12 *(volatile u16 *)0xfffffd04 = 0xFFF3; 13 *(volatile u16 *)0xfffffd04 = 0xFFF3;
13 abb_init(); 14 abb_init();
14 uwire_init(); 15 uwire_init();
15 for (;;) { 16 for (;;) {