Rev 196 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
196 | killagreg | 1 | /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** |
1 | ingob | 2 | * File Name : usb_type.h |
3 | * Author : MCD Application Team |
||
196 | killagreg | 4 | * Version : V4.0.0 |
5 | * Date : 09/29/2008 |
||
6 | * Description : Type definitions used by the STR USB Library. |
||
1 | ingob | 7 | ******************************************************************************** |
196 | killagreg | 8 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
1 | ingob | 9 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
10 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
||
11 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
||
12 | * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
||
13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
||
14 | *******************************************************************************/ |
||
196 | killagreg | 15 | |
1 | ingob | 16 | /* Define to prevent recursive inclusion -------------------------------------*/ |
17 | #ifndef __USB_TYPE_H |
||
18 | #define __USB_TYPE_H |
||
19 | /* Includes ------------------------------------------------------------------*/ |
||
20 | #include "usb_conf.h" |
||
21 | /* Exported types ------------------------------------------------------------*/ |
||
22 | /* Exported constants --------------------------------------------------------*/ |
||
23 | #ifndef NULL |
||
196 | killagreg | 24 | #define NULL ((void *)0) |
1 | ingob | 25 | #endif |
26 | |||
27 | #ifdef STR71x /*STR71x family*/ |
||
196 | killagreg | 28 | #ifndef __71x_TYPE_H |
1 | ingob | 29 | typedef unsigned long u32; |
30 | typedef unsigned short u16; |
||
31 | typedef unsigned char u8; |
||
32 | |||
196 | killagreg | 33 | typedef unsigned long const uc32; /* Read Only */ |
34 | typedef unsigned short const uc16; /* Read Only */ |
||
35 | typedef unsigned char const uc8; /* Read Only */ |
||
36 | |||
1 | ingob | 37 | typedef signed long s32; |
38 | typedef signed short s16; |
||
39 | typedef signed char s8; |
||
40 | |||
196 | killagreg | 41 | typedef signed long const sc32; /* Read Only */ |
42 | typedef signed short const sc16; /* Read Only */ |
||
43 | typedef signed char const sc8; /* Read Only */ |
||
44 | |||
45 | |||
1 | ingob | 46 | typedef volatile unsigned long vu32; |
47 | typedef volatile unsigned short vu16; |
||
48 | typedef volatile unsigned char vu8; |
||
49 | |||
196 | killagreg | 50 | typedef volatile unsigned long const vuc32; /* Read Only */ |
51 | typedef volatile unsigned short const vuc16; /* Read Only */ |
||
52 | typedef volatile unsigned char const vuc8; /* Read Only */ |
||
53 | |||
1 | ingob | 54 | typedef volatile signed long vs32; |
55 | typedef volatile signed short vs16; |
||
56 | typedef volatile signed char vs8; |
||
57 | |||
196 | killagreg | 58 | typedef volatile signed long const vsc32; /* Read Only */ |
59 | typedef volatile signed short const vsc16; /* Read Only */ |
||
60 | typedef volatile signed char const vsc8; /* Read Only */ |
||
1 | ingob | 61 | |
196 | killagreg | 62 | typedef enum {FALSE = 0, TRUE = !FALSE} bool; |
63 | |||
64 | typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; |
||
65 | |||
66 | typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState; |
||
67 | |||
1 | ingob | 68 | #endif |
69 | #endif /* End of STR71x family*/ |
||
70 | #ifdef STR91x /*STR91x family*/ |
||
71 | #ifndef __91x_type_H |
||
72 | |||
73 | typedef long long u64; |
||
74 | typedef unsigned long u32; |
||
75 | typedef unsigned short u16; |
||
76 | typedef unsigned char u8; |
||
77 | |||
78 | typedef signed long s32; |
||
79 | typedef signed short s16; |
||
80 | typedef signed char s8; |
||
81 | |||
82 | typedef volatile unsigned long vu32; |
||
83 | typedef volatile unsigned short vu16; |
||
84 | typedef volatile unsigned char vu8; |
||
85 | |||
86 | typedef volatile signed long vs32; |
||
87 | typedef volatile signed short vs16; |
||
88 | typedef volatile signed char vs8; |
||
89 | |||
90 | typedef enum { FALSE = 0, TRUE = !FALSE } bool; |
||
91 | typedef enum { RESET = 0, SET = !RESET } FlagStatus, ITStatus; |
||
92 | typedef enum { DISABLE = 0, ENABLE = !DISABLE} FunctionalState; |
||
93 | typedef enum { ERROR = 0, SUCCESS = !ERROR} ErrorStatus; |
||
196 | killagreg | 94 | #endif |
1 | ingob | 95 | #endif /* End of STR91x family*/ |
96 | |||
97 | #ifdef STR75x /*STR75x family*/ |
||
98 | #ifndef __75x_TYPE_H |
||
99 | |||
196 | killagreg | 100 | typedef signed long s32; |
101 | typedef signed short s16; |
||
102 | typedef signed char s8; |
||
1 | ingob | 103 | |
104 | typedef volatile signed long vs32; |
||
105 | typedef volatile signed short vs16; |
||
106 | typedef volatile signed char vs8; |
||
107 | |||
196 | killagreg | 108 | typedef unsigned long u32; |
109 | typedef unsigned short u16; |
||
110 | typedef unsigned char u8; |
||
1 | ingob | 111 | |
196 | killagreg | 112 | typedef volatile unsigned long vu32; |
113 | typedef volatile unsigned short vu16; |
||
114 | typedef volatile unsigned char vu8; |
||
1 | ingob | 115 | |
116 | typedef volatile unsigned long const vuc32; /* Read Only */ |
||
117 | typedef volatile unsigned short const vuc16; /* Read Only */ |
||
118 | typedef volatile unsigned char const vuc8; /* Read Only */ |
||
119 | |||
120 | |||
196 | killagreg | 121 | typedef enum |
122 | { |
||
123 | FALSE = 0, TRUE = !FALSE |
||
124 | } |
||
125 | bool; |
||
1 | ingob | 126 | |
127 | typedef enum { RESET = 0, SET = !RESET } FlagStatus, ITStatus; |
||
128 | |||
129 | typedef enum { DISABLE = 0, ENABLE = !DISABLE} FunctionalState; |
||
130 | |||
131 | typedef enum { ERROR = 0, SUCCESS = !ERROR} ErrorStatus; |
||
196 | killagreg | 132 | #endif |
1 | ingob | 133 | #endif /* End of STR75x family*/ |
134 | |||
135 | |||
136 | /* Exported macro ------------------------------------------------------------*/ |
||
137 | /* Exported functions ------------------------------------------------------- */ |
||
138 | /* External variables --------------------------------------------------------*/ |
||
139 | |||
140 | #endif /* __USB_TYPE_H */ |
||
196 | killagreg | 141 | /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/ |