portduino now links!

1.2-legacy
geeksville 2020-09-06 09:24:08 -07:00
rodzic fefd3d78f3
commit b8d39845cf
6 zmienionych plików z 42 dodań i 2 usunięć

Wyświetl plik

@ -0,0 +1,14 @@
#include "PosixNotifiedWorkerThread.h"
#include <Utility.h>
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");

Wyświetl plik

@ -31,6 +31,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "graphics/images.h"
#include "main.h"
#include "mesh-pb-constants.h"
#include "target_specific.h"
#include "utils.h"
using namespace meshtastic; /** @todo remove */

Wyświetl plik

@ -38,6 +38,7 @@
#include "graphics/Screen.h"
#include "main.h"
#include "sleep.h"
#include "target_specific.h"
#include <OneButton.h>
#include <Wire.h>
// #include <driver/rtc_io.h>

Wyświetl plik

@ -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();

Wyświetl plik

@ -0,0 +1,20 @@
#include "CryptoEngine.h"
#include "target_specific.h"
#include <Utility.h>
// 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");

Wyświetl plik

@ -1,6 +1,10 @@
#pragma once
#include <Arduino.h>
// Functions that are unique to particular target types (esp32, bare, nrf52 etc...)
// Enable/disable bluetooth.
void setBluetoothEnable(bool on);
void setBluetoothEnable(bool on);
void getMacAddr(uint8_t *dmac);