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

📄 defines.h

📁 This program contains program realization EMAC for LPC23xx
💻 H
字号:
/* 
 ********************************************************************
 * Project:     ethernet driver for LPC23xx/24xx
 * File:    	defines.h
 *
 * System:   	ARM7TDMI-S 32 Bit
 * Compiler:  	GCC 4.0.3
 *
 * Date:      	2006-08-31
 * Author:    	Wenz
 *
 * Rights:    	Hitex Development Tools GmbH
 *            	Greschbachstr. 12
 *            	D-76229 Karlsruhe
 ********************************************************************
 * Description:
 *	
 * length specific types recommended by MISRA rule 13
 ********************************************************************
 * History:
 *
 *  Revision 1.0    2006/09/27      We
 *     Initial revision 
 ********************************************************************
 * This software is provided by the author 'AS IS' without any 
 * warranties. Hitex Development Tools GmbH shall not be held 
 * liable for any direct, indirect or consequential damages with
 * respect to any claims arising from the content of such software.
 ********************************************************************/

#if !defined _DEFINES_H
#define		_DEFINES_H


typedef  signed char    int8_t;
typedef  unsigned char  uint8_t;
typedef  signed short   int16_t;
typedef  unsigned short uint16_t;
typedef  signed long    int32_t;
typedef  unsigned long  uint32_t;

typedef  float    float16;
typedef  double   float32;

typedef int clock_time_t;

struct timer {
  clock_time_t start;
  clock_time_t interval;
};

/* #define float16   float */
/* #define float32   double */

#define REG8  (volatile uint8_t*)
#define REG16 (volatile uint16_t*)
#define REG32 (volatile uint32_t*)

typedef enum
{
	FALSE = 0x00,
	TRUE
} bool;

#endif

/************************************ EOF ***********************************/

⌨️ 快捷键说明

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