summaryrefslogtreecommitdiff
path: root/tinyusb/common/binary.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-09-13 16:53:17 +0700
committerhathach <[email protected]>2013-09-13 16:53:17 +0700
commitc71f5c6f1ba46a23847a2eea83176e15058f21e6 (patch)
tree427c7aa2c1d1625325495111ba6096e1844cbb2f /tinyusb/common/binary.h
parent1f573eecf27bfd18f07c9efb2c3941ec4c5c6db6 (diff)
integrate & able to run cmsis-rtx with current code base
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 260175976..e7669853a 100644
--- a/tinyusb/common/binary.h
+++ b/tinyusb/common/binary.h
@@ -57,7 +57,7 @@
#endif
/// n-th Bit
-#define BIT_(n) (1 << (n))
+#define BIT_(n) (1U << (n))
/// set n-th bit of x to 1
#define BIT_SET_(x, n) ( (x) | BIT_(n) )