General cleanup, use _BV
This commit is contained in:
1 parent
69a6d26c80
commit
b41f41589a
19 files changed
+56
-81
No files matched your search
@@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#ifndef MASK
|
||||
#define MASK(PIN) (1 << PIN)
|
||||
#define MASK(PIN) _BV(PIN)
|
||||
#endif
|
||||
|
||||
#define GPIO_BITBAND_ADDR(reg, bit) (((uint32_t)&(reg) - 0x40000000) * 32 + (bit) * 4 + 0x42000000)
|
||||
|
||||
Reference in new issue
Block a user