usbd_conf.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. ******************************************************************************
  3. * @file usbd_conf.h
  4. * @author MCD Application Team
  5. * @version V1.1.0
  6. * @date 19-March-2012
  7. * @brief USB Device configuration file
  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. #ifndef __USBD_CONF__H__
  28. #define __USBD_CONF__H__
  29. #define RNDIS_NOTIFICATION_IN_EP 0x81
  30. #define RNDIS_DATA_IN_EP 0x82
  31. #define RNDIS_DATA_OUT_EP 0x03
  32. #define RNDIS_NOTIFICATION_IN_SZ 0x08
  33. #define RNDIS_DATA_IN_SZ 0x40
  34. #define RNDIS_DATA_OUT_SZ 0x40
  35. #define USBD_CFG_MAX_NUM 1
  36. #define USBD_ITF_MAX_NUM 1
  37. #define USB_MAX_STR_DESC_SIZ 64
  38. #define USBD_SELF_POWERED
  39. #endif