diff options
| author | hathach <[email protected]> | 2013-05-28 15:24:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-28 15:24:27 +0700 |
| commit | 1e5bd82af28c6005fa0ecf008e44322a6ee46461 (patch) | |
| tree | e9618a6a79880a0c681a6c213d8560c286e3475f /tinyusb/common/binary.h | |
| parent | 7ae986de95ccb049611340164246e17ee0023c87 (diff) | |
rename NGX to ngx
add a bunch of stub header for dcd (175x_6x, 13xx, 18xx_43xx)
add dcd_nxp_romdriver for handling usb rom driver
add BIT_TEST_ in binary.h
remove mw_usbd_hid.h include due to lexical conflict
Diffstat (limited to 'tinyusb/common/binary.h')
| -rw-r--r-- | tinyusb/common/binary.h | 2 |
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) |
