-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtusb_config.h
More file actions
58 lines (44 loc) · 1.61 KB
/
Copy pathtusb_config.h
File metadata and controls
58 lines (44 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _TUSB_CONFIG_H_
#define _TUSB_CONFIG_H_
#ifdef __cplusplus
extern "C" {
#endif
/*--------------------------------------------------------------------
* COMMON CONFIGURATION
*--------------------------------------------------------------------*/
#define CFG_TUSB_MCU OPT_MCU_RP2040
#define CFG_TUSB_OS OPT_OS_PICO
#ifndef CFG_TUSB_DEBUG
#define CFG_TUSB_DEBUG 0
#endif
/*--------------------------------------------------------------------
* DEVICE CONFIGURATION (RHPORT 0, native USB PHY)
*
* Reserved for future MSC support. Device stack is disabled for now.
*--------------------------------------------------------------------*/
#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE
#define CFG_TUD_ENABLED 0
/*--------------------------------------------------------------------
* HOST CONFIGURATION (RHPORT 1, PIO-USB)
*--------------------------------------------------------------------*/
#ifndef BOARD_TUH_RHPORT
#define BOARD_TUH_RHPORT 1
#endif
#define CFG_TUSB_RHPORT1_MODE OPT_MODE_HOST
#define CFG_TUH_RPI_PIO_USB 1
#define CFG_TUH_ENABLED 1
#define CFG_TUH_MAX_SPEED OPT_MODE_FULL_SPEED
#define CFG_TUH_ENUMERATION_BUFSIZE 256
#define CFG_TUH_HUB 1
#define CFG_TUH_DEVICE_MAX 4
#define CFG_TUH_ENDPOINT_MAX 8
/*--------------------------------------------------------------------
* HOST CLASS DRIVERS
*--------------------------------------------------------------------*/
#define CFG_TUH_HID 4
#define CFG_TUH_HID_EPIN_BUFSIZE 64
#define CFG_TUH_HID_EPOUT_BUFSIZE 64
#ifdef __cplusplus
}
#endif
#endif /* _TUSB_CONFIG_H_ */