📄 type.h
字号:
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright (C) 2002, 2003 Motorola Semiconductors HK Ltd
*
*/
/******************************************************************************
C H E A D E R F I L E
(c) Copyright Motorola Semiconductors Hong Kong Limited 2000-2001
ALL RIGHTS RESERVED
*******************************************************************************
Project Name : DBMX1 System Test Program
Project No. :
Title :
File Name : Common.h
Last Modified: Nov 6, 2001
Description : Public data type
Assumptions :
Dependency Comments :
Project Specific Data :
******************************************************************************/
#ifndef COMMON_TYPES_INC
#define COMMON_TYPES_INC
/*************************** Header File Includes ****************************/
/********************************* Constants *********************************/
/******************************** Enumeration ********************************/
/****************************** Basic Data types *****************************/
/* Typedefs for integer types */
typedef unsigned char U8; /* unsigned 8 bit data */
typedef unsigned short U16; /* unsigned 16 bit data */
typedef unsigned int U32; /* unsigned 32 bit data */
typedef char S8; /* signed 8 bit data */
typedef short S16; /* signed 16 bit data */
typedef int S32; /* signed 32 bit data */
typedef U8 * P_U8; /* unsigned 8 bit data */
typedef U16 * P_U16; /* unsigned 16 bit data */
typedef U32 * P_U32; /* unsigned 32 bit data */
typedef S8 * P_S8; /* signed 8 bit data */
typedef S16 * P_S16; /* signed 16 bit data */
typedef S32 * P_S32; /* signed 32 bit data */
typedef U16 TEXT; /* 16-bit text data */
typedef P_U16 P_TEXT; /* 16-bit text data */
typedef U8 BOOL; /* Boolean, TRUE/FALSE */
typedef void VOID; /* void */
typedef void * P_VOID; /* pointer to void */
/************************* Structure/Union Data types ************************/
typedef U16 STATUS;
/* point structure */
typedef struct
{
U16 x; /* x point */
U16 y; /* y point */
} POINT, *P_POINT;
/* area structure */
typedef struct
{
POINT top; /* Top left corner */
POINT bottom; /* Bottom right corner */
} AREA, *P_AREA;
/********************************** Macros ***********************************/
/*************************** Function prototype (S) **************************/
#define dma_Soundch_MEM2UART 10
#define dma_Soundch_6492MEM 1
#define dma_Soundch_MEM2649 8
#define dma_Soundch_UART2MEM 7
#define dma_Videoch_MEM2UART 6
#define dma_6ch_size 6216//24209
#define dma_7ch_size 12500
#define dma_8ch_size 500
#define dma_9ch_size 500
#define dma_10ch_size 6481//4208
#endif
//------------------
//
// True / False
//
//------------------
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif
//---------------
//
// Endian
//
//---------------
#define BIG_ENDIAN 1
#define LITTLE_ENDIAN 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -