summaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authordexter93 <d3xter93@gmail.com>2022-04-22 10:36:32 +0300
committerGitHub <noreply@github.com>2022-04-22 17:36:32 +1000
commite4942df39760eb70dc62ae609cb68b07c2786f13 (patch)
tree1a41258285308e46db751c0ca38a10e29ef5268c /tmk_core
parent0100629fa2e5e9ddd6d0f855d687938352f82774 (diff)
Chibios USB protocol: allow overriding RAW Capacity (#16339)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/chibios/usb_main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tmk_core/protocol/chibios/usb_main.c b/tmk_core/protocol/chibios/usb_main.c
index bd8af6d194..c59569a85a 100644
--- a/tmk_core/protocol/chibios/usb_main.c
+++ b/tmk_core/protocol/chibios/usb_main.c
@@ -339,8 +339,12 @@ static usb_driver_configs_t drivers = {
.console_driver = QMK_USB_DRIVER_CONFIG(CONSOLE, 0, true),
#endif
#ifdef RAW_ENABLE
-# define RAW_IN_CAPACITY 4
-# define RAW_OUT_CAPACITY 4
+# ifndef RAW_IN_CAPACITY
+# define RAW_IN_CAPACITY 4
+# endif
+# ifndef RAW_OUT_CAPACITY
+# define RAW_OUT_CAPACITY 4
+# endif
# define RAW_IN_MODE USB_EP_MODE_TYPE_INTR
# define RAW_OUT_MODE USB_EP_MODE_TYPE_INTR
.raw_driver = QMK_USB_DRIVER_CONFIG(RAW, 0, false),