2023-01-21 21:42:25 +08:00
|
|
|
#pragma once
|
2023-01-03 03:49:15 +08:00
|
|
|
|
2023-02-08 23:00:48 +08:00
|
|
|
// Windows only supports RNDIS, and apparently doesn't like composite devices with two configurations.
|
|
|
|
// Mac only supports CDC-ECM, which we present as the second config in a dual configuration device
|
|
|
|
// Linux supports either RNDIS, CDC-ECM or CDC-NCM
|
2023-01-03 03:49:15 +08:00
|
|
|
#define CFG_TUD_ECM_RNDIS 1
|
2023-01-21 21:42:25 +08:00
|
|
|
#define CFG_TUD_MSC 1 // This enables mass storage
|
2023-02-08 23:00:48 +08:00
|
|
|
#define CFG_TUD_MSC_EP_BUFSIZE 512 // Also Add msc_disk.c and descritors
|
2023-01-21 21:42:25 +08:00
|
|
|
#define CFG_TUD_NCM 0
|
|
|
|
#define BOARD_DEVICE_RHPORT_NUM 0
|
|
|
|
#define BOARD_DEVICE_RHPORT_SPEED OPT_MODE_FULL_SPEED
|
|
|
|
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE | BOARD_DEVICE_RHPORT_SPEED)
|