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

📄 def.h

📁 利用 ADS1.2 开发的s3c2410平台下的汉字显示程序
💻 H
字号:
/*************************************************************************/
/*                                                                       */
/*               Copyright Shenzhen Watertek S.&T. Co.,Ltd  2002         */
/*                         All Rights Reserved.                          */
/*                                                                       */
/* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS  */
/* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS   */
/* SUBJECT TO LICENSE TERMS.                                             */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                               VERSION       */
/*                                                                       */
/*      def.h                                  S3c2410 USB device 1.0	 */
/*                                                                       */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains  constants for data type		 	 */
/*                                                                       */
/* AUTHOR                                                                */
/*    	Zhi-gang yang   shenzhen watertek                                */
/*                                                                       */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/* 	None                                                             */
/*                                                                       */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      None								 */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      2004-12-31      Created initial version 1.0                      */
/*************************************************************************/
#ifndef __DEF_H__
#define __DEF_H__

#define U32 unsigned int
#define U16 unsigned short
#define S32 int
#define S16 short int
#define U8  unsigned char
#define COLOR unsigned char

#define	S8  char
#define BPP16 (16)
#define BYTE_BIT (8)
#define TRUE 	1   
#define FALSE 	0
#define ERROR	0
#define VideoAddrStart (0x30000000)
#define VideoAddrEnd	((0x30000000+240*320*16/8))
#define x_size (240)
#define x_limit (320)
#define y_limit (240)

//字库存放的地址
#define hzbufbase    0xBE000        //the chinse character base address which was in the scope of flash
#define asciibufbase 0xBD000	     //the ASCII base adddress which was in the scope of flash


//color
#define RED_BITNUM   5               //the bit number of the red color in red-blue-green
#define RED_SHIFT    11              //the shift number of the red color from the right
#define GREEN_BITNUM 6               //the bit number of the green color in red-blue-green
#define GREEN_SHIFT  5               //the shift number of the green color from the right
#define BLUE_BITNUM  5               //the bit number of the blue color in red-blue-green
#define BLUE_SHIFT   0               //the shift number of the blue color from the right


#endif /*__DEF_H__*/

⌨️ 快捷键说明

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