Skip to content

Commit

Permalink
Fix mbed includes
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Jun 24, 2021
1 parent ade641a commit 8c2ec84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MIDI_Interfaces/USBMIDI/mbed/PluggableUSBMIDI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <tuple>

#include <USB/PluggableUSBDevice.h>
#include <mbed/drivers/Timeout.h>
#include <mbed/platform/Callback.h>
#include <drivers/Timeout.h>
#include <platform/Callback.h>

#include <AH/Settings/Warnings.hpp>
#include <Settings/NamespaceSettings.hpp>
Expand Down
2 changes: 2 additions & 0 deletions src/Submodules/Encoder/utility/direct_pin_read.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@

#elif defined(ARDUINO_ARCH_MBED)

#include <drivers/DigitalIn.h>
#include <memory>
#define IO_REG_TYPE std::unique_ptr<mbed::DigitalIn>
#define PIN_TO_BASEREG(pin) (nullptr)
#define PIN_TO_BITMASK(pin) std::make_unique<mbed::DigitalIn>(digitalPinToPinName(pin), PullUp)
Expand Down

0 comments on commit 8c2ec84

Please sign in to comment.