Skip to content

Commit b79a383

Browse files
committed
fix sync issue with esp32
1 parent 2849480 commit b79a383

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

src/class/cdc/cdc_device.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
3333

3434
#include "cdc_device.h"
3535

36+
// ESP32 out-of-sync
37+
#ifndef CFG_TUD_MEM_SECTION
38+
#define CFG_TUD_MEM_SECTION CFG_TUSB_MEM_SECTION
39+
#endif
40+
41+
#ifndef tu_static
42+
#define tu_static static
43+
#endif
44+
3645
// Level where CFG_TUSB_DEBUG must be at least for this driver is logged
3746
#ifndef CFG_TUD_CDC_LOG_LEVEL
3847
#define CFG_TUD_CDC_LOG_LEVEL CFG_TUD_LOG_LEVEL

src/class/hid/hid_device.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@
3636

3737
#include "hid_device.h"
3838

39+
// ESP32 out-of-sync
40+
#ifndef CFG_TUD_MEM_SECTION
41+
#define CFG_TUD_MEM_SECTION CFG_TUSB_MEM_SECTION
42+
#endif
43+
44+
#ifndef tu_static
45+
#define tu_static static
46+
#endif
47+
3948
//--------------------------------------------------------------------+
4049
// MACRO CONSTANT TYPEDEF
4150
//--------------------------------------------------------------------+

src/class/midi/midi_device.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@
3636

3737
#include "midi_device.h"
3838

39+
// ESP32 out-of-sync
40+
#ifndef CFG_TUD_MEM_SECTION
41+
#define CFG_TUD_MEM_SECTION CFG_TUSB_MEM_SECTION
42+
#endif
43+
44+
#ifndef tu_static
45+
#define tu_static static
46+
#endif
47+
3948
//--------------------------------------------------------------------+
4049
// MACRO CONSTANT TYPEDEF
4150
//--------------------------------------------------------------------+

src/class/msc/msc_device.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434

3535
#include "msc_device.h"
3636

37+
// ESP32 out-of-sync
38+
#ifndef CFG_TUD_MEM_SECTION
39+
#define CFG_TUD_MEM_SECTION CFG_TUSB_MEM_SECTION
40+
#endif
41+
42+
#ifndef tu_static
43+
#define tu_static static
44+
#endif
45+
3746
// Level where CFG_TUSB_DEBUG must be at least for this driver is logged
3847
#ifndef CFG_TUD_MSC_LOG_LEVEL
3948
#define CFG_TUD_MSC_LOG_LEVEL CFG_TUD_LOG_LEVEL

src/device/usbd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
#include "device/usbd.h"
3636
#include "device/usbd_pvt.h"
3737

38+
// ESP32 out-of-sync
39+
#ifndef CFG_TUD_LOG_LEVEL
40+
#define CFG_TUD_LOG_LEVEL 2
41+
#endif
42+
3843
//--------------------------------------------------------------------+
3944
// USBD Configuration
4045
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)