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_init.h |
3 | * Author : MCD Application Team |
||
196 | killagreg | 4 | * Version : V4.0.0 |
5 | * Date : 09/29/2008 |
||
6 | * Description : Initialization routines & global variable. |
||
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_INIT_H |
||
18 | #define __USB_INIT_H |
||
196 | killagreg | 19 | |
1 | ingob | 20 | /* Includes ------------------------------------------------------------------*/ |
21 | /* Exported types ------------------------------------------------------------*/ |
||
22 | /* Exported constants --------------------------------------------------------*/ |
||
23 | /* Exported macro ------------------------------------------------------------*/ |
||
24 | /* Exported functions ------------------------------------------------------- */ |
||
25 | void USB_Init(void); |
||
196 | killagreg | 26 | |
1 | ingob | 27 | /* External variables --------------------------------------------------------*/ |
28 | |||
29 | /* The number of current endpoint, it will be used to specify an endpoint */ |
||
196 | killagreg | 30 | extern u8 EPindex; |
1 | ingob | 31 | /* The number of current device, it is an index to the Device_Table */ |
196 | killagreg | 32 | /*extern u8 Device_no; */ |
1 | ingob | 33 | /* Points to the DEVICE_INFO structure of current device */ |
34 | /* The purpose of this register is to speed up the execution */ |
||
196 | killagreg | 35 | extern DEVICE_INFO* pInformation; |
1 | ingob | 36 | /* Points to the DEVICE_PROP structure of current device */ |
37 | /* The purpose of this register is to speed up the execution */ |
||
196 | killagreg | 38 | extern DEVICE_PROP* pProperty; |
1 | ingob | 39 | /* Temporary save the state of Rx & Tx status. */ |
40 | /* Whenever the Rx or Tx state is changed, its value is saved */ |
||
41 | /* in this variable first and will be set to the EPRB or EPRA */ |
||
42 | /* at the end of interrupt process */ |
||
43 | extern USER_STANDARD_REQUESTS *pUser_Standard_Requests; |
||
44 | |||
196 | killagreg | 45 | extern u16 SaveState ; |
1 | ingob | 46 | extern u16 wInterrupt_Mask; |
47 | #endif /* __USB_INIT_H */ |
||
48 | |||
196 | killagreg | 49 | /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/ |
1 | ingob | 50 |