Use _BV32 to avoid name conflict
This commit is contained in:
1 parent
6339b506c0
commit
f5cfdf6efe
5 files changed
+15
-10
No files matched your search
@@ -130,8 +130,8 @@ extern "C" void GpioDisableInt(const uint32_t port, const uint32_t pin) {
|
||||
}
|
||||
}
|
||||
|
||||
bool isPowerOf2(unsigned int n) {
|
||||
return n == 1 || (n & (n - 1)) == 0;
|
||||
constexpr bool isPowerOf2(const uint16_t n) {
|
||||
return IS_POWER_OF_2(n);
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
Reference in new issue
Block a user