Skip to content

Commit 6762e63

Browse files
committed
Add _BV() macro.
1 parent 84d7ad4 commit 6762e63

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010

1111
### Changed
1212
- Change 266 files from CRLF to LF.
13+
- Add `_BV()` macro.
1314

1415
### Deprecated
1516

cpp/arduino/Arduino.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ typedef uint8_t byte;
5050

5151
typedef unsigned int word;
5252

53-
#define bit(b) (1UL << (b))
54-
55-
56-
53+
#define _BV(bit) (1 << (bit))
5754

5855
// Get the bit location within the hardware port of the given virtual pin.
5956
// This comes from the pins_*.c file for the active board configuration.

0 commit comments

Comments
 (0)