Use _BV32 to avoid name conflict

This commit is contained in:
Scott Lahteine committed 2018-02-01 21:37:35 -06:00
1 parent 6339b506c0
commit f5cfdf6efe
5 files changed
+15 -10

No files matched your search

+2 -2
View File
@@ -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