Added _BV macro fro AVR compatibility

This commit is contained in:
rogerclarkmelbourne 2015-10-27 21:06:00 +11:00
parent 47e3050025
commit 784c7beac5
1 changed files with 4 additions and 0 deletions

View File

@ -98,5 +98,9 @@ typedef unsigned int word;
bitClear(value, bit))
#define bit(b) (1UL << (b))
// Roger Clark. Added _BV macro for AVR compatibility. As requested by @sweetlilmre and @stevestrong
#ifndef _BV
#define _BV(bit) (1 << (bit))
#endif
#endif