Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ingob | 1 | /******************** (C) COPYRIGHT 2006 STMicroelectronics ******************** |
2 | * File Name : 91x_type.h |
||
3 | * Author : MCD Application Team |
||
4 | * Date First Issued : 05/18/2006 : Version 1.0 |
||
5 | * Description : It contains common types and constants used in all the |
||
6 | * peripherals' drivers. |
||
7 | ******************************************************************************** |
||
8 | * History: |
||
9 | * 05/22/2007 : Version 1.2 |
||
10 | * 05/24/2006 : Version 1.1 |
||
11 | * 05/18/2006 : Version 1.0 |
||
12 | ********************************************************************************** |
||
13 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
||
14 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
||
15 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT |
||
16 | * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT |
||
17 | * OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION |
||
18 | * CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
||
19 | *********************************************************************************/ |
||
20 | |||
21 | #ifndef __91x_type_H |
||
22 | #define __91x_type_H |
||
23 | |||
24 | typedef long long u64; |
||
25 | typedef unsigned long u32; |
||
26 | typedef unsigned short u16; |
||
27 | typedef unsigned char u8; |
||
28 | |||
29 | typedef signed long s32; |
||
30 | typedef signed short s16; |
||
31 | typedef signed char s8; |
||
32 | |||
33 | typedef volatile unsigned long vu32; |
||
34 | typedef volatile unsigned short vu16; |
||
35 | typedef volatile unsigned char vu8; |
||
36 | |||
37 | typedef volatile signed long vs32; |
||
38 | typedef volatile signed short vs16; |
||
39 | typedef volatile signed char vs8; |
||
40 | |||
41 | typedef enum { FALSE = 0, TRUE = !FALSE } bool; |
||
42 | |||
43 | typedef enum { RESET = 0, SET = !RESET } FlagStatus, ITStatus; |
||
44 | |||
45 | typedef enum { DISABLE = 0, ENABLE = !DISABLE} FunctionalState; |
||
46 | |||
47 | typedef enum { ERROR = 0, SUCCESS = !ERROR} ErrorStatus; |
||
48 | |||
49 | #endif /* __91x_type_H */ |
||
50 | |||
51 | /******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/ |