Skip to content

Add _BV() macro definition #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Properly report compile errors in GitHub Actions (#296)
- Put build artifacts in a separate directory to reduce clutter.
- Change 266 files from CRLF to LF.
- Add `_BV()` macro.
- Replace `#define yield() _NOP()` with `inline void yield() { _NOP(); }` so that other code can define a `yield()` function.
- Update .gitattributes so we have consistent line endings
- Run tests on push as well as on a pull request so developers can see impact
Expand Down
5 changes: 1 addition & 4 deletions cpp/arduino/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ inline void noInterrupts() { _NOP(); }

typedef unsigned int word;

#define bit(b) (1UL << (b))



#define _BV(bit) (1 << (bit))

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