diff --git a/src/concurrency/PosixNotifiedWorkerThread.cpp b/src/concurrency/PosixNotifiedWorkerThread.cpp new file mode 100644 index 00000000..ac24cf86 --- /dev/null +++ b/src/concurrency/PosixNotifiedWorkerThread.cpp @@ -0,0 +1,14 @@ +#include "PosixNotifiedWorkerThread.h" +#include + +using namespace concurrency; + +/** + * Notify this thread so it can run + */ +void PosixNotifiedWorkerThread::notify(uint32_t v, eNotifyAction action) NOT_IMPLEMENTED("notify"); + +/** + * A method that should block execution - either waiting ona queue/mutex or a "task notification" + */ +void PosixNotifiedWorkerThread::block() NOT_IMPLEMENTED("block"); \ No newline at end of file diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 3cf3e93f..f9ad490d 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -31,6 +31,7 @@ along with this program. If not, see . #include "graphics/images.h" #include "main.h" #include "mesh-pb-constants.h" +#include "target_specific.h" #include "utils.h" using namespace meshtastic; /** @todo remove */ diff --git a/src/main.cpp b/src/main.cpp index 9a057c0b..aaea60a6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,6 +38,7 @@ #include "graphics/Screen.h" #include "main.h" #include "sleep.h" +#include "target_specific.h" #include #include // #include diff --git a/src/main.h b/src/main.h index fb64d9ff..74ad0b44 100644 --- a/src/main.h +++ b/src/main.h @@ -21,6 +21,6 @@ extern graphics::Screen screen; // Return a human readable string of the form "Meshtastic_ab13" const char *getDeviceName(); -void getMacAddr(uint8_t *dmac); + void nrf52Setup(), esp32Setup(), nrf52Loop(), esp32Loop(); \ No newline at end of file diff --git a/src/portduino/PortduinoGlue.cpp b/src/portduino/PortduinoGlue.cpp new file mode 100644 index 00000000..8ef3263f --- /dev/null +++ b/src/portduino/PortduinoGlue.cpp @@ -0,0 +1,20 @@ +#include "CryptoEngine.h" +#include "target_specific.h" +#include + +// FIXME - move getMacAddr/setBluetoothEnable into a HALPlatform class + +void getMacAddr(uint8_t *dmac) +{ + notImplemented("getMacAddr"); +} + +void setBluetoothEnable(bool on) +{ + notImplemented("setBluetoothEnable"); +} + +// FIXME - implement real crypto for linux +CryptoEngine *crypto = new CryptoEngine(); + +void updateBatteryLevel(uint8_t level) NOT_IMPLEMENTED("updateBatteryLevel"); \ No newline at end of file diff --git a/src/target_specific.h b/src/target_specific.h index 6acca364..1e79df51 100644 --- a/src/target_specific.h +++ b/src/target_specific.h @@ -1,6 +1,10 @@ #pragma once +#include + // Functions that are unique to particular target types (esp32, bare, nrf52 etc...) // Enable/disable bluetooth. -void setBluetoothEnable(bool on); \ No newline at end of file +void setBluetoothEnable(bool on); + +void getMacAddr(uint8_t *dmac); \ No newline at end of file