forked from Elron_dev/elbear_arduino_bsp
Merged with dev0.1.0
This commit is contained in:
1 parent
49882b2eb6
commit
0cc714ccf9
22 files changed
+71
-84
No files matched your search
@@ -21,6 +21,7 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "wiring_private.h"
|
||||
|
||||
#define HIGH 0x1
|
||||
#define LOW 0x0
|
||||
@@ -80,7 +81,8 @@ enum BitOrder
|
||||
#define sq(x) ((x)*(x))
|
||||
|
||||
// Bits and Bytes
|
||||
#define bit(b) (1UL << (b))
|
||||
#define _BV(bit) (1 << (bit)) // from avr-gcc (some arduino libs uses it)
|
||||
#define bit(b) (1UL << (b))
|
||||
#define lowByte(w) ((uint8_t) ((w) & 0xff))
|
||||
#define highByte(w) ((uint8_t) ((w) >> 8))
|
||||
|
||||
|
||||
Reference in new issue
Block a user