usb_init.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /******************** (C) COPYRIGHT 2009 STMicroelectronics ********************
  2. * File Name : usb_init.h
  3. * Author : MCD Application Team
  4. * Version : V3.1.0
  5. * Date : 10/30/2009
  6. * Description : Initialization routines & global variables
  7. ********************************************************************************
  8. * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  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 FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
  13. * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  14. *******************************************************************************/
  15. /* Define to prevent recursive inclusion -------------------------------------*/
  16. #ifndef __USB_INIT_H
  17. #define __USB_INIT_H
  18. /* Includes ------------------------------------------------------------------*/
  19. /* Exported types ------------------------------------------------------------*/
  20. /* Exported constants --------------------------------------------------------*/
  21. /* Exported macro ------------------------------------------------------------*/
  22. /* Exported functions ------------------------------------------------------- */
  23. void USB_Init(void);
  24. /* External variables --------------------------------------------------------*/
  25. /* The number of current endpoint, it will be used to specify an endpoint */
  26. extern uint8_t EPindex;
  27. /* The number of current device, it is an index to the Device_Table */
  28. /*extern uint8_t Device_no; */
  29. /* Points to the DEVICE_INFO structure of current device */
  30. /* The purpose of this register is to speed up the execution */
  31. extern DEVICE_INFO* pInformation;
  32. /* Points to the DEVICE_PROP structure of current device */
  33. /* The purpose of this register is to speed up the execution */
  34. extern DEVICE_PROP* pProperty;
  35. /* Temporary save the state of Rx & Tx status. */
  36. /* Whenever the Rx or Tx state is changed, its value is saved */
  37. /* in this variable first and will be set to the EPRB or EPRA */
  38. /* at the end of interrupt process */
  39. extern USER_STANDARD_REQUESTS *pUser_Standard_Requests;
  40. extern uint16_t SaveState ;
  41. extern uint16_t wInterrupt_Mask;
  42. #endif /* __USB_INIT_H */
  43. /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/