Skip to content

Commit

Permalink
fix build with nrf52832
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Jul 18, 2024
1 parent e034538 commit 2645560
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/arduino/ports/nrf/tusb_config_nrf.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ extern "C" {
// DEVICE CONFIGURATION
//--------------------------------------------------------------------

#if CFG_TUD_ENABLED
#define CFG_TUD_ENDPOINT0_SIZE 64

//------------- CLASS -------------//
Expand Down Expand Up @@ -114,10 +115,14 @@ extern "C" {
#define CFG_TUD_VENDOR_TX_BUFSIZE 64
#endif

#endif

//--------------------------------------------------------------------
// Host Configuration
//--------------------------------------------------------------------

#if CFG_TUH_ENABLED

// Size of buffer to hold descriptors and other data used for enumeration
#define CFG_TUH_ENUMERATION_BUFSIZE 256

Expand Down Expand Up @@ -158,6 +163,8 @@ extern "C" {
#define CFG_TUH_CDC_LINE_CODING_ON_ENUM \
{ 115200, CDC_LINE_CONDING_STOP_BITS_1, CDC_LINE_CODING_PARITY_NONE, 8 }

#endif

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 2645560

Please sign in to comment.