Subversion Repositories NaviCtrl

Rev

Rev 1 | Rev 308 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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