We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5746de8 commit 50d3563Copy full SHA for 50d3563
cores/rp2040/SerialUSB.h
@@ -23,8 +23,17 @@
23
#include <Arduino.h>
24
#include "api/HardwareSerial.h"
25
#include <stdarg.h>
26
-#include <tusb.h>
27
+// We need the TUSB defines, but BTStack redefines them. So for this header we
28
+// turn on off HID before doing the include and then restore it after the include
29
+// is processed.
30
+#define SAVE_CFG_TUD_HID CFG_TUD_HID
31
+#undef CFG_TUD_HID
32
+#define CFG_TUD_HID 0
33
+#include <tusb.h>
34
35
+#define CFG_TUD_HID SAVE_CFG_TUD_HID
36
+#undef SAVE_CFG_TUD_HID
37
class SerialUSB : public arduino::HardwareSerial {
38
public:
39
SerialUSB();
0 commit comments