Nut/OS  5.0.5
API Reference
usb_init.h
Go to the documentation of this file.
00001 /******************** (C) COPYRIGHT 2010 STMicroelectronics ********************
00002 * File Name          : usb_init.h
00003 * Author             : MCD Application Team
00004 * Version            : V3.1.1
00005 * Date               : 04/07/2010
00006 * Description        : Initialization routines & global variables
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_INIT_H
00018 #define __USB_INIT_H
00019 
00020 #include <dev/usb_stm32/usb_core.h>
00021 
00022 /* Includes ------------------------------------------------------------------*/
00023 /* Exported types ------------------------------------------------------------*/
00024 /* Exported constants --------------------------------------------------------*/
00025 /* Exported macro ------------------------------------------------------------*/
00026 /* Exported functions ------------------------------------------------------- */
00027 void USB_Init(void);
00028 
00029 /* External variables --------------------------------------------------------*/
00030 /*  The number of current endpoint, it will be used to specify an endpoint */
00031 extern uint8_t  EPindex;
00032 /*  The number of current device, it is an index to the Device_Table */
00033 /*extern uint8_t    Device_no; */
00034 /*  Points to the DEVICE_INFO structure of current device */
00035 /*  The purpose of this register is to speed up the execution */
00036 extern DEVICE_INFO* pInformation;
00037 /*  Points to the DEVICE_PROP structure of current device */
00038 /*  The purpose of this register is to speed up the execution */
00039 extern DEVICE_PROP* pProperty;
00040 /*  Temporary save the state of Rx & Tx status. */
00041 /*  Whenever the Rx or Tx state is changed, its value is saved */
00042 /*  in this variable first and will be set to the EPRB or EPRA */
00043 /*  at the end of interrupt process */
00044 extern USER_STANDARD_REQUESTS *pUser_Standard_Requests;
00045 
00046 extern uint16_t SaveState ;
00047 extern uint16_t wInterrupt_Mask;
00048 
00049 #endif /* __USB_INIT_H */
00050 
00051 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/