FreeCalypso > hg > freecalypso-sw
comparison target-utils/pirexplore/main.c @ 77:fcbe1332b197
pirexplore: LCD init and BL control work now
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 01 Aug 2013 00:57:49 +0000 |
parents | 07b686248ab7 |
children | a7b0b426f9ca |
comparison
equal
deleted
inserted
replaced
76:07b686248ab7 | 77:fcbe1332b197 |
---|---|
23 *(volatile u16 *)0xfffef006 = 0x0008; | 23 *(volatile u16 *)0xfffef006 = 0x0008; |
24 /* | 24 /* |
25 * Other register settings replicating what OsmocomBB does | 25 * Other register settings replicating what OsmocomBB does |
26 * in board/pirelli_dpl10/init.c | 26 * in board/pirelli_dpl10/init.c |
27 */ | 27 */ |
28 *(volatile u16 *)0xfffef008 = 0x7080; | 28 *(volatile u16 *)0xfffef008 = 0x7090; |
29 *(volatile u16 *)0xfffef00a = 0x021F; | 29 *(volatile u16 *)0xfffef00a = 0x021F; |
30 *(volatile u16 *)0xfffe4804 = 0xFF6D; | 30 *(volatile u16 *)0xfffe4804 = 0xFF6D; |
31 *(volatile u16 *)0xfffe4802 = 0x0000; | 31 *(volatile u16 *)0xfffe4802 = 0x0000; |
32 /* nCS4 setup for SPCA552E */ | 32 /* nCS4 setup for SPCA552E */ |
33 *(volatile u16 *)0xfffffb0a = 0x00A7; | 33 *(volatile u16 *)0xfffffb0a = 0x00A7; |
34 /* initialize PWL registers like OsmocomBB does */ | |
35 *(volatile u8 *)0xfffe8000 = 0x32; | |
36 *(volatile u8 *)0xfffe8001 = 0x01; | |
34 for (;;) { | 37 for (;;) { |
35 putchar('='); | 38 putchar('='); |
36 if (command_entry()) | 39 if (command_entry()) |
37 command_dispatch(); | 40 command_dispatch(); |
38 } | 41 } |