comparison target-utils/lunadrv/main.c @ 700:db9a8e88e63f

target-utils lunadrv program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 07 May 2020 02:19:51 +0000
parents
children
comparison
equal deleted inserted replaced
699:c354c261f635 700:db9a8e88e63f
1 #include "types.h"
2
3 main()
4 {
5 uart_select_init();
6 printf("Luna LCD driver utility running\n");
7 print_boot_rom_info();
8 /* Calypso MEMIF setup */
9 *(volatile u16 *)0xfffffb00 = 0x00A4;
10 *(volatile u16 *)0xfffffb02 = 0x00A4;
11 *(volatile u16 *)0xfffffb04 = 0x00A4;
12 *(volatile u16 *)0xfffffb06 = 0x02A5;
13 *(volatile u16 *)0xfffef006 = 0x0008;
14 /* GPIO setup for backlight control */
15 *(volatile u16 *)0xfffef00a = 0x01E0;
16 *(volatile u16 *)0xfffe4802 = 0x0200;
17 *(volatile u16 *)0xfffe4804 = 0xFDFF;
18 for (;;) {
19 putchar('=');
20 if (command_entry())
21 command_dispatch();
22 }
23 }