⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tft_config.h

📁 Taiwan sunplus develop spce3200, it is a test program ----- testboard source code
💻 H
字号:
//============================================================================================//File Name:	TFT_Config.h//Description:	TFT driver configuration file. User can change parameters according to needs.//Update:		2007.01.17 V0.1 by wangtao <wangtao@sunnorth.com.cn>//============================================================================================#ifndef _TFT_CONFIG_H_#define _TFT_CONFIG_H_#include "SPCE3200_Register.h"#include "SPCE3200_Constant.h"#define		TFT_WIDTH		320													// Sreen width#define		TFT_HEIGHT		240													// Screen height#define		TFT_CLK_SET		C_TFT_CLK_27MDIV1									// Clock#define		TFT_INTERFACE		C_LCD_PORT_TOPPOLY								// Hardware interface type of TFT LCD device#define		TFT_DATA_SEQ		C_TFT_OUTPUT_YCBCR								// Data sequence type for TFT LCD device#define		TFT_DATA_FMT		C_TFT_PARALLEL_RGB								// Format of data storing in buffer#define		TFT_HOR_ACT		640													// Horizontal clock cycles#define		TFT_HOR_FRONT		20												// Horizontal Front-Porch clock cyles#define		TFT_HOR_BACK		38												// Horizontal Back-Porch clock cyles#define		TFT_HOR_SYNC		30												// Horizontal sync pulse width#define		TFT_VER_ACT		TFT_HEIGHT											// Vertical clock cycles#define		TFT_VER_FRONT		4												// Vertical Front-Porch clock cyles#define		TFT_VER_BACK		15												// Vertical Back-Porch clock cyles#define		TFT_VER_SYNC		3												// Vertical sync pulse width#define		TFT_ROW_START		0												// Start row#define		TFT_COL_START		0												// Start column#define		TFT_COL_WIDTH		TFT_WIDTH										// Column width#define		TFT_DUMMY_WIDTH		0												// Row redundancy clock cycle#define		TFT_BUFFER0_SA		0xA0700000										// Buffer0 start address#define		TFT_BUFFER1_SA		(TFT_BUFFER0_SA + TFT_WIDTH * TFT_HEIGHT * 2)	// Buffer1 start address#define		TFT_BUFFER2_SA		(TFT_BUFFER0_SA + TFT_WIDTH * TFT_HEIGHT * 4)	// Buffer2 start address#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -