📄 lcdconf_xylon_c8_c400x234.h
字号:
/*
*********************************************************************************************************
* uC/GUI V3.98
* Universal graphic software for embedded applications
*
* (c) Copyright 2002, Micrium Inc., Weston, FL
* (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
*
* 礐/GUI is protected by international copyright laws. Knowledge of the
* source code may not be used to write a similar product. This file may
* only be used in accordance with a license and should not be redistributed
* in any way. We appreciate your understanding and fairness.
*
----------------------------------------------------------------------
File : LCDConf_Xylon_C8_C400x234.h
Purpose : Configuration file for Xylon FPGA display driver
----------------------------------------------------------------------
*/
#ifndef LCDCONF_H
#define LCDCONF_H
/*********************************************************************
*
* General configuration
*/
#define LCD_CONTROLLER 9100 /* Selects the Xylon FPGA display driver */
#define LCD_XSIZE 400 /* Physical display size in X */
#define LCD_YSIZE 234 /* Physical display size in Y */
#define LCD_VXSIZE 1024 /* Virtual display size in X */
#define LCD_BITSPERPIXEL 8 /* Color depth */
#define FPGA_REGISTER_BASE 0x2000000 /* Register base address */
#define LCD_VRAM_ADR 0x1000000 /* Video RAM base address */
/*********************************************************************
*
* Full bus configuration
*/
#define LCD_READ_MEM(Off) *((volatile unsigned short *)(LCD_VRAM_ADR + (((U32)(Off)) << 1)))
#define LCD_WRITE_MEM(Off,Data) *((volatile unsigned short *)(LCD_VRAM_ADR + (((U32)(Off)) << 1))) = Data
#define LCD_READ_REG(Reg) *((volatile unsigned short *)(FPGA_REGISTER_BASE + (((U32)(Reg)) << 1)))
#define LCD_WRITE_REG(Reg,Data) *((volatile unsigned short *)(FPGA_REGISTER_BASE + (((U32)(Reg)) << 1))) = Data
/*********************************************************************
*
* Register definitions
*/
#define REG_INT_STATUS (0x0000 >> 1) // Interrupt Status and Reset register
#define REG_INT_MASK (0x0002 >> 1) // Interrupt Mask register
#define REG_ERROR_STATUS (0x0004 >> 1) // Error status
#define REG_ERROR_MASK (0x0006 >> 1) // Error mask
#define REG_CVC_PHASE_SHFT (0x0008 >> 1) // CVC
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -