Use _BV32 to avoid name conflict
This commit is contained in:
@ -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