summaryrefslogtreecommitdiff
path: root/tinyusb/common/binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/common/binary.h')
-rw-r--r--tinyusb/common/binary.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/common/binary.h b/tinyusb/common/binary.h
index 30be2a130..78305ea60 100644
--- a/tinyusb/common/binary.h
+++ b/tinyusb/common/binary.h
@@ -65,6 +65,8 @@
/// clear n-th bit of x
#define BIT_CLR_(x, n) ( (x) & (~BIT_(n)) )
+/// test n-th bit of x
+#define BIT_TEST_(x, n) ( (x) & BIT_(n) )
#if defined(__GNUC__) && !defined(__CC_ARM)