File tree Expand file tree Collapse file tree 5 files changed +28
-20
lines changed
dual/host_hid_to_device_cdc/src Expand file tree Collapse file tree 5 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 95
95
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
96
96
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
97
97
*/
98
- #ifndef CFG_TUSB_MEM_SECTION
99
- #define CFG_TUSB_MEM_SECTION
98
+ #ifndef CFG_TUD_MEM_SECTION
99
+ #define CFG_TUD_MEM_SECTION
100
100
#endif
101
101
102
- #ifndef CFG_TUSB_MEM_ALIGN
103
- #define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
102
+ #ifndef CFG_TUD_MEM_ALIGN
103
+ #define CFG_TUD_MEM_ALIGN __attribute__ ((aligned(4)))
104
104
#endif
105
105
106
106
//--------------------------------------------------------------------
128
128
// Size of buffer to hold descriptors and other data used for enumeration
129
129
#define CFG_TUH_ENUMERATION_BUFSIZE 256
130
130
131
+ #ifndef CFG_TUH_MEM_SECTION
132
+ #define CFG_TUH_MEM_SECTION
133
+ #endif
134
+
135
+ #ifndef CFG_TUH_MEM_ALIGN
136
+ #define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
137
+ #endif
138
+
131
139
#define CFG_TUH_HUB 1
132
140
// max device support (excluding hub device)
133
141
#define CFG_TUH_DEVICE_MAX (CFG_TUH_HUB ? 4 : 1) // hub typically has 4 ports
Original file line number Diff line number Diff line change 80
80
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
81
81
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
82
82
*/
83
- #ifndef CFG_TUSB_MEM_SECTION
84
- #define CFG_TUSB_MEM_SECTION
83
+ #ifndef CFG_TUH_MEM_SECTION
84
+ #define CFG_TUH_MEM_SECTION
85
85
#endif
86
86
87
- #ifndef CFG_TUSB_MEM_ALIGN
88
- #define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
87
+ #ifndef CFG_TUH_MEM_ALIGN
88
+ #define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
89
89
#endif
90
90
91
91
//--------------------------------------------------------------------
Original file line number Diff line number Diff line change 80
80
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
81
81
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
82
82
*/
83
- #ifndef CFG_TUSB_MEM_SECTION
84
- #define CFG_TUSB_MEM_SECTION
83
+ #ifndef CFG_TUH_MEM_SECTION
84
+ #define CFG_TUH_MEM_SECTION
85
85
#endif
86
86
87
- #ifndef CFG_TUSB_MEM_ALIGN
88
- #define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
87
+ #ifndef CFG_TUH_MEM_ALIGN
88
+ #define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
89
89
#endif
90
90
91
91
//--------------------------------------------------------------------
Original file line number Diff line number Diff line change 80
80
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
81
81
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
82
82
*/
83
- #ifndef CFG_TUSB_MEM_SECTION
84
- #define CFG_TUSB_MEM_SECTION
83
+ #ifndef CFG_TUH_MEM_SECTION
84
+ #define CFG_TUH_MEM_SECTION
85
85
#endif
86
86
87
- #ifndef CFG_TUSB_MEM_ALIGN
88
- #define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
87
+ #ifndef CFG_TUH_MEM_ALIGN
88
+ #define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
89
89
#endif
90
90
91
91
//--------------------------------------------------------------------
Original file line number Diff line number Diff line change 80
80
* - CFG_TUSB_MEM SECTION : __attribute__ (( section(".usb_ram") ))
81
81
* - CFG_TUSB_MEM_ALIGN : __attribute__ ((aligned(4)))
82
82
*/
83
- #ifndef CFG_TUSB_MEM_SECTION
84
- #define CFG_TUSB_MEM_SECTION
83
+ #ifndef CFG_TUH_MEM_SECTION
84
+ #define CFG_TUH_MEM_SECTION
85
85
#endif
86
86
87
- #ifndef CFG_TUSB_MEM_ALIGN
88
- #define CFG_TUSB_MEM_ALIGN __attribute__ ((aligned(4)))
87
+ #ifndef CFG_TUH_MEM_ALIGN
88
+ #define CFG_TUH_MEM_ALIGN __attribute__ ((aligned(4)))
89
89
#endif
90
90
91
91
//--------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments