Marlin must override _BV for 32-bit masks!
This commit is contained in:
parent
2177c246d5
commit
d8aa40eedf
@ -30,7 +30,6 @@
|
|||||||
#define _FASTIO_ARDUINO_H
|
#define _FASTIO_ARDUINO_H
|
||||||
|
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include "macros.h"
|
|
||||||
|
|
||||||
#define AVR_AT90USB1286_FAMILY (defined(__AVR_AT90USB1287__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1286P__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB646P__) || defined(__AVR_AT90USB647__))
|
#define AVR_AT90USB1286_FAMILY (defined(__AVR_AT90USB1287__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1286P__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB646P__) || defined(__AVR_AT90USB647__))
|
||||||
#define AVR_ATmega1284_FAMILY (defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__) || defined(__AVR_ATmega1284P__))
|
#define AVR_ATmega1284_FAMILY (defined(__AVR_ATmega644__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__) || defined(__AVR_ATmega1284P__))
|
||||||
@ -56,9 +55,7 @@
|
|||||||
#error "Pins for this chip not defined in Arduino.h! If you have a working pins definition, please contribute!"
|
#error "Pins for this chip not defined in Arduino.h! If you have a working pins definition, please contribute!"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _BV
|
#include "macros.h"
|
||||||
#define _BV(PIN) (1UL << PIN)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Magic I/O routines
|
* Magic I/O routines
|
||||||
|
@ -101,6 +101,8 @@
|
|||||||
#define STRINGIFY(M) STRINGIFY_(M)
|
#define STRINGIFY(M) STRINGIFY_(M)
|
||||||
|
|
||||||
// Macros for bit masks
|
// Macros for bit masks
|
||||||
|
#undef _BV // Marlin needs 32-bit unsigned!
|
||||||
|
#define _BV(b) (1UL << (b))
|
||||||
#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))
|
||||||
|
Loading…
Reference in New Issue
Block a user