Skip to content

Commit 3bd0180

Browse files
authored
Merge pull request #441 from adafruit/fix-feather52832-build
fix build with nrf52832
2 parents e034538 + 2645560 commit 3bd0180

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/arduino/ports/nrf/tusb_config_nrf.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ extern "C" {
6363
// DEVICE CONFIGURATION
6464
//--------------------------------------------------------------------
6565

66+
#if CFG_TUD_ENABLED
6667
#define CFG_TUD_ENDPOINT0_SIZE 64
6768

6869
//------------- CLASS -------------//
@@ -114,10 +115,14 @@ extern "C" {
114115
#define CFG_TUD_VENDOR_TX_BUFSIZE 64
115116
#endif
116117

118+
#endif
119+
117120
//--------------------------------------------------------------------
118121
// Host Configuration
119122
//--------------------------------------------------------------------
120123

124+
#if CFG_TUH_ENABLED
125+
121126
// Size of buffer to hold descriptors and other data used for enumeration
122127
#define CFG_TUH_ENUMERATION_BUFSIZE 256
123128

@@ -158,6 +163,8 @@ extern "C" {
158163
#define CFG_TUH_CDC_LINE_CODING_ON_ENUM \
159164
{ 115200, CDC_LINE_CONDING_STOP_BITS_1, CDC_LINE_CODING_PARITY_NONE, 8 }
160165

166+
#endif
167+
161168
#ifdef __cplusplus
162169
}
163170
#endif

0 commit comments

Comments
 (0)