📄 lcdconf.h
字号:
/*
*********************************************************************************************************
* uC/GUI V4.12
* 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_1375_C8_C320x240.h
Purpose : Sample configuration file
----------------------------------------------------------------------
*/
#ifndef LCDCONF_H
#define LCDCONF_H
/*********************************************************************
*
* General configuration of LCD
*
**********************************************************************
*/
#define LCD_XSIZE (240) /* X-resolution of LCD, Logical coor. */
#define LCD_YSIZE (320) /* Y-resolution of LCD, Logical coor. */
#define LCD_BITSPERPIXEL (16)
#define LCD_BUSWIDTH (16)
#define LCD_CONTROLLER -1
#define LCD_SWAP_RB_0 1 //???????
/*********************************************************************
*
* Define contents of registers
*
**********************************************************************
*/
#define MVAL (13)
#define MVAL_USED (0) //0=each frame 1=rate by MVAL
#define INVVDEN (1) //0=normal 1=inverted
#define BSWP (0) //Byte swap control
#define HWSWP (1) //Half word swap control
#define M5D(n) ((n) & 0x1fffff) // To get lower 21bits
//TFT240320
#define HOZVAL_TFT_240320 (LCD_XSIZE-1)
#define LINEVAL_TFT_240320 (LCD_YSIZE-1)
//Timing parameter for NEC3.5"
#define VBPD_240320 (1) //垂直同步信号的后肩
#define VFPD_240320 (5) //垂直同步信号的前肩
#define VSPW_240320 (1) //垂直同步信号的脉宽
#define HBPD_240320 (36) //水平同步信号的后肩
#define HFPD_240320 (19) //水平同步信号的前肩
#define HSPW_240320 (5) //水平同步信号的脉宽
#define CLKVAL_TFT_240320 (4)
//FCLK=180MHz,HCLK=90MHz,VCLK=6.5MHz
extern void s3c2440_LCD_Init (void); // 初始化 LCD 控制器.
#define LCD_INIT_CONTROLLER() s3c2440_LCD_Init()
#endif /* LCDCONF_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -