summaryrefslogtreecommitdiff
path: root/tinyusb/common/binary.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-11-14 14:12:07 +0700
committerhathach <[email protected]>2013-11-14 14:12:07 +0700
commit6e8440afe555cc8c47b8ef1fdce56bb5d37231a8 (patch)
tree6fb3e3bf2e3d0e71fe8ed22e17134c7b74591b1a /tinyusb/common/binary.h
parent7d84139bd4e69e0b4cb42fb638a7a6d52afe93de (diff)
complete double buffering for queueing xfer for lpc11u/13u requried by msc device
Diffstat (limited to 'tinyusb/common/binary.h')
-rw-r--r--tinyusb/common/binary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/common/binary.h b/tinyusb/common/binary.h
index e7669853a..0badd6b3b 100644
--- a/tinyusb/common/binary.h
+++ b/tinyusb/common/binary.h
@@ -66,7 +66,7 @@
#define BIT_CLR_(x, n) ( (x) & (~BIT_(n)) )
/// test n-th bit of x
-#define BIT_TEST_(x, n) ( (x) & BIT_(n) )
+#define BIT_TEST_(x, n) ( ((x) & BIT_(n)) ? true : false )
#if defined(__GNUC__) && !defined(__CC_ARM)