view src/cs/drivers/drv_app/r2d/lcds/luna/r2d_luna_lcd.h @ 702:9394305d4ff5 default tip

etm_audio.c: fix off-by-one error in auw of FIR coefficients This fix was already made in FC Tourmaline a while back, but it is also the kind of bugfix that deserves to be backported to Magnetite and Selenite as well.
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 31 Oct 2022 00:14:44 +0000
parents 7d6878435c85
children
line wrap: on
line source

/*
 * This header file provides definitions for the Luna LCD hardware interface.
 */

/* reset control */
#define	CNTL_RST_REG	(*(volatile unsigned short *)0xFFFFFD04)
#define	EXT_RESET	0x0004

/* the LCD is connected to Calypso nCS3, with A1 line as register select */

#define	LCD_IR		(*(volatile unsigned short *)0x02000000)
#define	LCD_DR		(*(volatile unsigned short *)0x02000002)

/* macro for writing first IR, then DR */

#define	LCD_REG_WR(reg, data)	{LCD_IR = (reg); LCD_DR = (data);}