Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers type.h Source File

type.h

00001 /*****************************************************************************
00002  *   type.h:  Type definition Header file for NXP LPC17xx Family 
00003  *   Microprocessors
00004  *
00005  *   Copyright(C) 2009, NXP Semiconductor
00006  *   All rights reserved.
00007  *
00008  *   History
00009  *   2009.05.25  ver 1.00    Prelimnary version, first Release
00010  *
00011 ******************************************************************************/
00012 #include <stdint.h>
00013 
00014 #ifndef __TYPE_H__
00015 #define __TYPE_H__
00016 
00017 #ifndef NULL
00018 #define NULL    ((void *)0)
00019 #endif
00020 
00021 #ifndef FALSE
00022 #define FALSE   (0)
00023 #endif
00024 
00025 #ifndef TRUE
00026 #define TRUE    (1)
00027 #endif
00028 
00029 
00030 typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;
00031 typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
00032 
00033 #endif  /* __TYPE_H__ */