Marlin must override _BV for 32-bit masks!
This commit is contained in:
parent
45cfb16424
commit
58671e1bc1
3 changed files with 4 additions and 5 deletions
|
|
@ -95,9 +95,8 @@
|
|||
#define STRINGIFY(M) STRINGIFY_(M)
|
||||
|
||||
// Macros for bit masks
|
||||
#ifndef _BV
|
||||
#define _BV(n) (1<<(n))
|
||||
#endif
|
||||
#undef _BV // Marlin needs 32-bit unsigned!
|
||||
#define _BV(b) (1UL << (b))
|
||||
#define TEST(n,b) (((n)&_BV(b))!=0)
|
||||
#define SBI(n,b) (n |= _BV(b))
|
||||
#define CBI(n,b) (n &= ~_BV(b))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue