FreeCalypso > hg > freecalypso-tools
comparison target-utils/lunadrv/luna.h @ 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 /* | |
2 * This header file provides definitions for the Luna LCD hardware interface. | |
3 */ | |
4 | |
5 /* reset control */ | |
6 #define CNTL_RST_REG (*(volatile u16 *)0xFFFFFD04) | |
7 #define EXT_RESET 0x0004 | |
8 | |
9 /* the LCD is connected to Calypso nCS3, with A1 line as register select */ | |
10 | |
11 #define LCD_IR (*(volatile u16 *)0x02000000) | |
12 #define LCD_DR (*(volatile u16 *)0x02000002) | |
13 | |
14 /* macro for writing first IR, then DR */ | |
15 | |
16 #define LCD_REG_WR(reg, data) {LCD_IR = (reg); LCD_DR = (data);} | |
17 | |
18 /* some init operations call for controlled delays */ | |
19 | |
20 #define DELAY_1MS 13000 |