Marlin must override _BV for 32-bit masks!

This commit is contained in:
Scott Lahteine
2018-01-23 23:39:37 -06:00
parent 45cfb16424
commit 58671e1bc1
3 changed files with 4 additions and 5 deletions

View File

@ -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))