summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2020-05-08 12:37:32 +0800
committerSean Cross <sean@xobs.io>2020-05-21 21:35:30 +0800
commitd1a7fdd9d4720c43d0ab9f16267fd124a414ce9d (patch)
tree82dbf2b9cbda1cffaa6558854b9ce0c4733abf69 /supervisor
parent5ed4e4d0abfc49d3cde89cebc166ebbe0ef512d8 (diff)
supervisor: support debugging tinyusb
Allow for passing `-DCFG_TUSB_DEBUG=1` or `-DCFG_TUSB_DEBUG=2` on the command line to enable debugging tinyusb within circuitpython. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/shared/usb/tusb_config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/supervisor/shared/usb/tusb_config.h b/supervisor/shared/usb/tusb_config.h
index 627de743e..5b7230983 100644
--- a/supervisor/shared/usb/tusb_config.h
+++ b/supervisor/shared/usb/tusb_config.h
@@ -49,7 +49,9 @@
//--------------------------------------------------------------------+
#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE
+#ifndef CFG_TUSB_DEBUG
#define CFG_TUSB_DEBUG 0
+#endif
/*------------- RTOS -------------*/
#ifndef CFG_TUSB_OS