|
@ -95,9 +95,8 @@ |
|
|
#define STRINGIFY(M) STRINGIFY_(M) |
|
|
#define STRINGIFY(M) STRINGIFY_(M) |
|
|
|
|
|
|
|
|
// Macros for bit masks
|
|
|
// Macros for bit masks
|
|
|
#ifndef _BV |
|
|
#undef _BV // Marlin needs 32-bit unsigned!
|
|
|
#define _BV(n) (1<<(n)) |
|
|
#define _BV(b) (1UL << (b)) |
|
|
#endif |
|
|
|
|
|
#define TEST(n,b) (((n)&_BV(b))!=0) |
|
|
#define TEST(n,b) (((n)&_BV(b))!=0) |
|
|
#define SBI(n,b) (n |= _BV(b)) |
|
|
#define SBI(n,b) (n |= _BV(b)) |
|
|
#define CBI(n,b) (n &= ~_BV(b)) |
|
|
#define CBI(n,b) (n &= ~_BV(b)) |
|
|