usb_bsp.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /**
  2. ******************************************************************************
  3. * @file usb_bsp.h
  4. * @author MCD Application Team
  5. * @version V2.1.0
  6. * @date 19-March-2012
  7. * @brief Specific api's relative to the used hardware platform
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * <h2><center>&copy; COPYRIGHT 2012 STMicroelectronics</center></h2>
  12. *
  13. * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14. * You may not use this file except in compliance with the License.
  15. * You may obtain a copy of the License at:
  16. *
  17. * http://www.st.com/software_license_agreement_liberty_v2
  18. *
  19. * Unless required by applicable law or agreed to in writing, software
  20. * distributed under the License is distributed on an "AS IS" BASIS,
  21. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. * See the License for the specific language governing permissions and
  23. * limitations under the License.
  24. *
  25. ******************************************************************************
  26. */
  27. /* Define to prevent recursive inclusion -------------------------------------*/
  28. #ifndef __USB_BSP__H__
  29. #define __USB_BSP__H__
  30. /* Includes ------------------------------------------------------------------*/
  31. #include "usb_core.h"
  32. #include "usb_conf.h"
  33. /** @addtogroup USB_OTG_DRIVER
  34. * @{
  35. */
  36. /** @defgroup USB_BSP
  37. * @brief This file is the
  38. * @{
  39. */
  40. /** @defgroup USB_BSP_Exported_Defines
  41. * @{
  42. */
  43. /**
  44. * @}
  45. */
  46. /** @defgroup USB_BSP_Exported_Types
  47. * @{
  48. */
  49. /**
  50. * @}
  51. */
  52. /** @defgroup USB_BSP_Exported_Macros
  53. * @{
  54. */
  55. /**
  56. * @}
  57. */
  58. /** @defgroup USB_BSP_Exported_Variables
  59. * @{
  60. */
  61. /**
  62. * @}
  63. */
  64. /** @defgroup USB_BSP_Exported_FunctionsPrototype
  65. * @{
  66. */
  67. void BSP_Init(void);
  68. void USB_OTG_BSP_Init (USB_OTG_CORE_HANDLE *pdev);
  69. void USB_OTG_BSP_uDelay (const uint32_t usec);
  70. void USB_OTG_BSP_mDelay (const uint32_t msec);
  71. void USB_OTG_BSP_EnableInterrupt (USB_OTG_CORE_HANDLE *pdev);
  72. #ifdef USE_HOST_MODE
  73. void USB_OTG_BSP_ConfigVBUS(USB_OTG_CORE_HANDLE *pdev);
  74. void USB_OTG_BSP_DriveVBUS(USB_OTG_CORE_HANDLE *pdev,uint8_t state);
  75. #endif
  76. /**
  77. * @}
  78. */
  79. #endif //__USB_BSP__H__
  80. /**
  81. * @}
  82. */
  83. /**
  84. * @}
  85. */
  86. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/