mongoose/examples/rp2040/pico-rndis-dashboard/tusb_config.h

13 lines
656 B
C
Raw Normal View History

2023-01-21 21:42:25 +08:00
#pragma once
2023-01-03 03:49:15 +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
#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)