comparison target-utils/pirexplore/main.c @ 38:c90b1fff224a

pirexplore: buzzer commands added to exercise the vibrator
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 01:09:20 +0000
parents e7502631a0f9
children
comparison
equal deleted inserted replaced
37:f24b31082605 38:c90b1fff224a
11 */ 11 */
12 *(volatile u16 *)0xfffffb00 = 0x00A4; 12 *(volatile u16 *)0xfffffb00 = 0x00A4;
13 *(volatile u16 *)0xfffffb02 = 0x00A4; 13 *(volatile u16 *)0xfffffb02 = 0x00A4;
14 *(volatile u16 *)0xfffffb06 = 0x00A4; 14 *(volatile u16 *)0xfffffb06 = 0x00A4;
15 *(volatile u16 *)0xfffef006 = 0x0008; 15 *(volatile u16 *)0xfffef006 = 0x0008;
16 /* setup matching what the official firmware does */
17 *(volatile u16 *)0xfffef008 = 0x6050;
18 *(volatile u16 *)0xfffef00a = 0x021F;
16 /* 19 /*
17 * Other register settings replicating what OsmocomBB does 20 * Other register settings replicating what OsmocomBB does
18 * in board/pirelli_dpl10/init.c 21 * in board/pirelli_dpl10/init.c
19 */ 22 */
20 *(volatile u16 *)0xfffef008 = 0x7090;
21 *(volatile u16 *)0xfffef00a = 0x021F;
22 *(volatile u16 *)0xfffe4804 = 0xFF6D; 23 *(volatile u16 *)0xfffe4804 = 0xFF6D;
23 *(volatile u16 *)0xfffe4802 = 0x0000; 24 *(volatile u16 *)0xfffe4802 = 0x0000;
25 /* enable ARMIO clock in order to exercise buzzer/vibrator */
26 *(volatile u16 *)0xfffe4806 = 0xFFF3;
24 /* nCS4 setup for SPCA552E */ 27 /* nCS4 setup for SPCA552E */
25 *(volatile u16 *)0xfffffb0a = 0x00A7; 28 *(volatile u16 *)0xfffffb0a = 0x00A7;
26 /* initialize PWL registers like OsmocomBB does */ 29 /* initialize PWL registers like OsmocomBB does */
27 *(volatile u8 *)0xfffe8000 = 0x32; 30 *(volatile u8 *)0xfffe8000 = 0x32;
28 *(volatile u8 *)0xfffe8001 = 0x01; 31 *(volatile u8 *)0xfffe8001 = 0x01;