?? lcd_param.h
字號:
/*-----------------------------------------------------------------------------
@@
@@ Copyright (c) 1998 Sharp Corporation All rights reserved.
@@
@@ (Summary) : The file to set constant value for LCD controller driver
@@
@@ (Comment) :
@@
@@ (Author) :
@@
@@ (History) : Date Modifier Comment
@@
@@ (RCS ID) :
@@
-----------------------------------------------------------------------------*/
#ifndef LCD_PARAM
#define LCD_PARAM
/*****************************************************************************
* Definition of constant value for calculating pixel address
*****************************************************************************/
/* The number of memory bits per pixel */
#if(APD_LCD_BPP == 24)
#define LCD_BPP 32
#define LCD_SETBPP 0x0000000A
#else
#define LCD_BPP APD_LCD_BPP
#if(APD_LCD_BPP == 1)
#define LCD_BYTE_MASK 0x01
#define LCD_BYTE_MAX 0x07
#define LCD_SETBPP 0x00000000
#endif
#if(APD_LCD_BPP == 2)
#define LCD_BYTE_MASK 0x03
#define LCD_BYTE_MAX 0x06
#define LCD_SETBPP 0x00000002
#endif
#if(APD_LCD_BPP == 4)
#define LCD_BYTE_MASK 0x0F
#define LCD_BYTE_MAX 0x04
#define LCD_SETBPP 0x00000004
#endif
#if(APD_LCD_BPP == 8)
#define LCD_BYTE_MASK 0xFF
#define LCD_BYTE_MAX 0x00
#define LCD_SETBPP 0x00000006
#endif
#if(APD_LCD_BPP == 16)
#define LCD_SETBPP 0x00000008
#endif
#endif
/*****************************************************************************
* Definition of constant value to draw bit map data
*****************************************************************************/
/* Bits per byte */
#define BITS_PER_BYTE 8
/* Bits per long */
#define BITS_PER_LONG 32
/* The initialize pixel mask for bit map data */
#define BITMAP_MASK 0x80
/* Bits per pixel of bit map data (monochorome) */
#define BITMAP_BPP 0x01
/* Memory bits per line */
#define LCD_BPL (LCD_BPP * APD_LCD_WIDTH)
/* Half word memory offset per line */
#define LCD_OFSTPL LCD_BPL / 16
/* Constant for setting register of LCD controller */
#define LCD_POWERMASK 0x00000800
#define LCD_POWERON 0x00000800
#define LCD_POWEROFF 0x00000000
#define LCD_ENABLEMASK 0x00000001
#define LCD_DISABLE 0x00000000
#define LCD_ENABLE 0x00000001
/* Constant for setting register of LCD interface peripheral controller */
#define LCDIPC_LIGHTMASK 0x00000008
#define LCDIPC_LIGHTON 0x00000008
#define LCDIPC_LIGHTOFF 0x00000000
#define LCDIPC_ENABLEMASK 0x000000FE
#endif /* APD_LCD_PARAM */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -