From 6e8440afe555cc8c47b8ef1fdce56bb5d37231a8 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 14 Nov 2013 14:12:07 +0700 Subject: complete double buffering for queueing xfer for lpc11u/13u requried by msc device --- tinyusb/common/binary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tinyusb/common/binary.h') 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) -- cgit v1.3.1