My Project
type.h
1 /*****************************************************************************
2  * type.h: Type definition Header file for NXP LPC17xx Family
3  * Microprocessors
4  *
5  * Copyright(C) 2009, NXP Semiconductor
6  * All rights reserved.
7  *
8  * History
9  * 2009.05.25 ver 1.00 Prelimnary version, first Release
10  *
11 ******************************************************************************/
12 #include <stdint.h>
13 
14 #ifndef __TYPE_H__
15 #define __TYPE_H__
16 
17 #ifndef NULL
18 #define NULL ((void *)0)
19 #endif
20 
21 #ifndef FALSE
22 #define FALSE ((uint8_t) 0)
23 #endif
24 
25 #ifndef TRUE
26 #define TRUE ((uint8_t) 1)
27 #endif
28 
29 
30 typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;
31 typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
32 
33 #endif /* __TYPE_H__ */