FreeCalypso > hg > freecalypso-tools
view target-utils/lunadrv/luna.h @ 800:8dc93aac9a9c
pcm-sms-decode & sms-pdu-decode: use new function for
alphanumeric From/To addresses
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 25 Mar 2021 01:29:05 +0000 |
parents | db9a8e88e63f |
children |
line wrap: on
line source
/* * This header file provides definitions for the Luna LCD hardware interface. */ /* reset control */ #define CNTL_RST_REG (*(volatile u16 *)0xFFFFFD04) #define EXT_RESET 0x0004 /* the LCD is connected to Calypso nCS3, with A1 line as register select */ #define LCD_IR (*(volatile u16 *)0x02000000) #define LCD_DR (*(volatile u16 *)0x02000002) /* macro for writing first IR, then DR */ #define LCD_REG_WR(reg, data) {LCD_IR = (reg); LCD_DR = (data);} /* some init operations call for controlled delays */ #define DELAY_1MS 13000