usbh_conf.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /**
  2. ******************************************************************************
  3. * @file USBH_conf.h
  4. * @author MCD Application Team
  5. * @version V2.1.0
  6. * @date 19-March-2012
  7. * @brief General low level driver configuration
  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 __USBH_CONF__H__
  29. #define __USBH_CONF__H__
  30. /* Includes ------------------------------------------------------------------*/
  31. /** @addtogroup USBH_OTG_DRIVER
  32. * @{
  33. */
  34. /** @defgroup USBH_CONF
  35. * @brief usb otg low level driver configuration file
  36. * @{
  37. */
  38. /** @defgroup USBH_CONF_Exported_Defines
  39. * @{
  40. */
  41. #define USBH_MAX_NUM_ENDPOINTS 2
  42. #define USBH_MAX_NUM_INTERFACES 2
  43. #ifdef USE_USB_OTG_FS
  44. #define USBH_MSC_MPS_SIZE 0x40
  45. #else
  46. #define USBH_MSC_MPS_SIZE 0x200
  47. #endif
  48. /**
  49. * @}
  50. */
  51. /** @defgroup USBH_CONF_Exported_Types
  52. * @{
  53. */
  54. /**
  55. * @}
  56. */
  57. /** @defgroup USBH_CONF_Exported_Macros
  58. * @{
  59. */
  60. /**
  61. * @}
  62. */
  63. /** @defgroup USBH_CONF_Exported_Variables
  64. * @{
  65. */
  66. /**
  67. * @}
  68. */
  69. /** @defgroup USBH_CONF_Exported_FunctionsPrototype
  70. * @{
  71. */
  72. /**
  73. * @}
  74. */
  75. #endif //__USBH_CONF__H__
  76. /**
  77. * @}
  78. */
  79. /**
  80. * @}
  81. */
  82. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/