We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a65199 commit e1e152aCopy full SHA for e1e152a
lib/ArduinoFake/FakeMega.cpp
@@ -9,6 +9,8 @@ using namespace fakeit;
9
static std::array<unsigned char, 4096> eepromBuffer;
10
static std::stringstream serialBuffer;
11
12
+static constexpr uint8_t _BV(uint8_t shift) { return 1U << shift; }
13
+
14
static void fakeMegaWiring(fakeit::Mock<FunctionFake> &mock)
15
{
16
static constexpr uint8_t PA = 1;
@@ -98,7 +100,6 @@ static void fakeMegaWiring(fakeit::Mock<FunctionFake> &mock)
98
100
PK , // PK 7 ** 69 ** A15
99
101
};
102
- #define _BV(bit) (1 << (bit))
103
static constexpr uint8_t digital_pin_to_bit_mask[] = {
104
// PIN IN PORT
105
// -------------------------------------------
0 commit comments