📄 mx21_lcd.h
字号:
/**********************************************************************
*
* (C) COPYRIGHT 2004 FREESCALE, INC.
* ALL RIGHTS RESERVED
*
*
* Group/Division: WMSG/MMDO
*
* Description:
*
* Related Specifications:
*
* Errata:
*
* File Name: MX21_LCD.h
* Revision Number: 0.1
* Author(s): E kroitor
* Date created: 30 Sept 2004
* Revision History:
* Date Rev Description
* ---- --- -----------
* 30Sept04 0.1 First draft
*
**********************************************************************/
#ifndef _MX21LCD_H_
#define _MX21LCD_H_
#include "MX21_MemMap.h"
#include "MX21_Macros.h"
#include "MX21_DataTypes.h"
/********************************************************************
M A C R O S
*********************************************************************/
#define IMAGE_ADDRESS 0xC2000000
#define IMAGE_WIDTH 240
#define IMAGE_HEIGHT 320
#define IMAGE_BPP 16
#define LCD_WIDTH 240
#define LCD_HEIGHT 320
#define SPEED 200000
#define CRM_BASE_ADDR 0x10027000
#define CRM_PCDR (CRM_BASE_ADDR+0x18) // 32bit Serial Perpheral Clk Div Reg Silicon 1.1 & 1.2
#define CRM_PCCR0 (CRM_BASE_ADDR+0x1C) // 32bit Perpheral Clk Control Reg 0
#define TO2
/********************************************************************
F U N C T I O N P R O T O T Y P E S
*********************************************************************/
void
lcdSetup (); // set up registers to display image on LCD panel
/*---------------------------------------------------
//
// Set up LCD panel to display preloaded image
//--------------------------------------------------*/
void
scroll(int, // first x coordinate variable
int, // first y coordinate variable
int, // second x coordinate variable
int, // second y coordinate variable
int ); // delay on the scrolling speed of the image
/*---------------------------------------------------
//
// This function allows an image larger than the display (i.e 640x480)
// to be displayed on the lower resolution pane (i.e 320x240)
//--------------------------------------------------*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -