tusb_config.h 785 B

123456789101112131415161718192021
  1. #ifndef CFG_TUD_ENDPOINT0_SIZE
  2. #define CFG_TUD_ENDPOINT0_SIZE 64
  3. #endif
  4. #define CFG_TUD_ENABLED 1
  5. #define CFG_TUD_CDC 2
  6. #define CFG_TUSB_MCU OPT_MCU_STM32F7
  7. #define CFG_TUSB_OS OPT_OS_FREERTOS
  8. #define BOARD_DEVICE_RHPORT_SPEED OPT_MODE_HIGH_SPEED
  9. #define BOARD_DEVICE_RHPORT_NUM 1
  10. #define CFG_TUSB_RHPORT1_MODE (OPT_MODE_DEVICE | OPT_MODE_HIGH_SPEED)
  11. #define CFG_TUD_MSC 1
  12. #define CFG_TUD_MSC_EP_BUFSIZE 8192
  13. // CDC FIFO size of TX and RX
  14. #define CFG_TUD_CDC_RX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
  15. #define CFG_TUD_CDC_TX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
  16. // CDC Endpoint transfer buffer size, more is faster
  17. #define CFG_TUD_CDC_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)