Skip to content

Commit 784c7be

Browse files
author
rogerclarkmelbourne
committed
Added _BV macro fro AVR compatibility
1 parent 47e3050 commit 784c7be

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

STM32F1/cores/maple/wirish.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,9 @@ typedef unsigned int word;
9898
bitClear(value, bit))
9999
#define bit(b) (1UL << (b))
100100

101+
// Roger Clark. Added _BV macro for AVR compatibility. As requested by @sweetlilmre and @stevestrong
102+
#ifndef _BV
103+
#define _BV(bit) (1 << (bit))
104+
#endif
101105
#endif
102106

0 commit comments

Comments
 (0)