Nut/OS  5.0.5
API Reference
usb_type.h
Go to the documentation of this file.
00001 /******************** (C) COPYRIGHT 2010 STMicroelectronics ********************
00002 * File Name          : usb_type.h
00003 * Author             : MCD Application Team
00004 * Version            : V3.1.1
00005 * Date               : 04/07/2010
00006 * Description        : Type definitions used by the USB Library
00007 ********************************************************************************
00008 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00009 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
00010 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
00011 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
00012 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
00013 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00014 *******************************************************************************/
00015 
00016 /* Define to prevent recursive inclusion -------------------------------------*/
00017 #ifndef __USB_TYPE_H
00018 #define __USB_TYPE_H
00019 
00020 /* Includes ------------------------------------------------------------------*/
00021 #include "usb_conf.h"
00022 
00023 /* Exported types ------------------------------------------------------------*/
00024 /* Exported constants --------------------------------------------------------*/
00025 #ifndef NULL
00026 #define NULL ((void *)0)
00027 #endif
00028 
00029 #if 0
00030 #ifndef __STM32F10x_H
00031 
00032 typedef signed long      s32;
00033 typedef signed short     s16;
00034 typedef signed char      s8;
00035 
00036 typedef volatile signed long      vs32;
00037 typedef volatile signed short     vs16;
00038 typedef volatile signed char      vs8;
00039 
00040 typedef unsigned long       u32;
00041 typedef unsigned short      u16;
00042 typedef unsigned char       u8;
00043 
00044 typedef unsigned long  const    uc32;  /* Read Only */
00045 typedef unsigned short const    uc16;  /* Read Only */
00046 typedef unsigned char  const    uc8;   /* Read Only */
00047 
00048 typedef volatile unsigned long      vu32;
00049 typedef volatile unsigned short     vu16;
00050 typedef volatile unsigned char      vu8;
00051 
00052 typedef volatile unsigned long  const    vuc32;  /* Read Only */
00053 typedef volatile unsigned short const    vuc16;  /* Read Only */
00054 typedef volatile unsigned char  const    vuc8;   /* Read Only */
00055 
00056 
00057 typedef enum
00058 {
00059   FALSE = 0, TRUE  = !FALSE
00060 }
00061 bool;
00062 
00063 typedef enum { RESET = 0, SET   = !RESET } FlagStatus, ITStatus;
00064 
00065 typedef enum { DISABLE = 0, ENABLE  = !DISABLE} FunctionalState;
00066 
00067 typedef enum { ERROR = 0, SUCCESS  = !ERROR} ErrorStatus;
00068 #endif
00069 #endif
00070 /* Exported macro ------------------------------------------------------------*/
00071 /* Exported functions ------------------------------------------------------- */
00072 /* External variables --------------------------------------------------------*/
00073 
00074 #endif /* __USB_TYPE_H */
00075 
00076 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/