aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/protocol/usb_descriptor.h
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2024-02-28 12:00:27 +0100
committerGitHub <noreply@github.com>2024-02-28 22:00:27 +1100
commit0e02b0c41e47d5f5ad799a9860869b9d30ab881a (patch)
tree4b9cf95e22162db622ea049ea96bc0d15358cf9f /tmk_core/protocol/usb_descriptor.h
parentb43f6cb7ef33f38ee494f639e2704a25c1e68332 (diff)
[Core] Refactor ChibiOS USB endpoints to be fully async (#21656)
Diffstat (limited to 'tmk_core/protocol/usb_descriptor.h')
-rw-r--r--tmk_core/protocol/usb_descriptor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/protocol/usb_descriptor.h b/tmk_core/protocol/usb_descriptor.h
index 2469990f4d..ecfb022702 100644
--- a/tmk_core/protocol/usb_descriptor.h
+++ b/tmk_core/protocol/usb_descriptor.h
@@ -196,6 +196,8 @@ enum usb_interfaces {
TOTAL_INTERFACES
};
+#define IS_VALID_INTERFACE(i) ((i) >= 0 && (i) < TOTAL_INTERFACES)
+
#define NEXT_EPNUM __COUNTER__
/*