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

📄 lpc_type.h

📁 给大家提供一个在inram/exram中调试的示例,在周公的lpc2200上调试过.
💻 H
字号:
#ifndef __LPC_TYPE_H
#define __LPC_TYPE_H

/***********************************************************************
 *         BU MMS China, Philips Semiconductor Software Support
 *         Embest info&Tech Co. Software Support
 *---------------------------------------------------------------------------
 * The software is delivered "AS IS" without warranty or condition of any
 * kind, either express, implied or statutory.  Everybody can use it as 
 * it is opened and without copyright. We will not take any law responsibility
 * for any problem produced by using this software.
 *---------------------------------------------------------------------------                                                   
 *                                                                                   
 *    File name: 	LPC_Type.h                                                          
 *    Description: 	Standard types, and some useful coding macros.
 *                                                                                      
 *    History:                                                                     
 *    1. Date:		Aug 08, 2004                                              	
 *       Author: 	Shawn Zhang                                                    
 *       Description: Create  
 *
 *	$Revision: 1.0 $
 **********************************************************************/

#ifndef lpc_halint8
#define lpc_halint8 char
#endif
#ifndef lpc_halint16
#define lpc_halint16 short
#endif
#ifndef lpc_halint32
#define lpc_halint32 long
#endif
#ifndef lpc_halint64
#define lpc_halint64 long long
#endif

#ifndef lpc_haladdress
#define lpc_haladdress lpc_uint32
#endif
#ifndef lpc_haladdrword
#define lpc_haladdrword lpc_uint32
#endif

#ifndef lpc_halbool
#define lpc_halbool int
#endif

/*******************************************************
 * Define basic types for using integers in memory and structures;
 * depends on compiler defaults and CPU type.
 *******************************************************/
typedef unsigned lpc_halint8    lpc_uint8;
typedef   signed lpc_halint8    lpc_int8;

typedef unsigned lpc_halint16   lpc_uint16;
typedef   signed lpc_halint16   lpc_int16;

typedef unsigned lpc_halint32   lpc_uint32;
typedef   signed lpc_halint32   lpc_int32;

typedef unsigned lpc_halint64   lpc_uint64;
typedef   signed lpc_halint64   lpc_int64;

typedef  lpc_halbool            lpc_bool;

#ifndef ucos
typedef unsigned char    boolean;    // 布尔型变量
typedef unsigned char    uint8;      // 无符号8位整型变量
typedef signed   char    int8;       // 有符号8位整型变量
typedef unsigned short   uint16;     // 无符号16位整型变量
typedef signed   short   int16;      // 有符号16位整型变量
typedef unsigned int     uint32;     // 无符号32位整型变量
typedef signed   int     int32;      // 有符号32位整型变量
typedef float            fp32;       // 单精度浮点数(32位长度)
typedef double           fp64;       // 双精度浮点数(64位长度)
#endif

/*******************************************************
 * The obvious few that compilers may define for you.
 * But in case they don't:
 *******************************************************/
#ifndef NULL
#define NULL 0
#endif

#ifndef __cplusplus

typedef lpc_halbool bool;

#ifndef false
#define false 0
#endif

#ifndef true
#define true (!false)
#endif

#endif

/*******************************************************
 * Define types for access plain, on-the-metal memory or devices.
 *******************************************************/
typedef lpc_uint32  LPC_WORD;
typedef lpc_uint8   LPC_BYTE;
typedef lpc_uint16  LPC_WORD16;
typedef lpc_uint32  LPC_WORD32;
typedef lpc_uint64  LPC_WORD64;

typedef lpc_haladdress  LPC_ADDRESS;
typedef lpc_haladdrword LPC_ADDRWORD;

#endif //__LPC_TYPE_H

⌨️ 快捷键说明

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