mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-02 11:55:56 +00:00
portduino: gpios now kinda work on linux
This commit is contained in:
parent
d289e8a86f
commit
ebdad76fb2
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
default_envs = tbeam # lora-relay-v1 # nrf52840dk-geeksville # linux # or if you'd like to change the default to something like lora-relay-v1 put that here
|
default_envs = linux # lora-relay-v1 # nrf52840dk-geeksville # linux # or if you'd like to change the default to something like lora-relay-v1 put that here
|
||||||
;default_envs = heltec # lora-relay-v1 # nrf52840dk-geeksville # linux # or if you'd like to change the default to something like lora-relay-v1 put that here
|
;default_envs = heltec # lora-relay-v1 # nrf52840dk-geeksville # linux # or if you'd like to change the default to something like lora-relay-v1 put that here
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "CryptoEngine.h"
|
#include "CryptoEngine.h"
|
||||||
#include "target_specific.h"
|
#include "target_specific.h"
|
||||||
|
#include "PortduinoGPIO.h"
|
||||||
#include <Utility.h>
|
#include <Utility.h>
|
||||||
#include "sleep.h"
|
#include "sleep.h"
|
||||||
|
|
||||||
@ -34,4 +35,15 @@ void cpuDeepSleep(uint64_t msecs) {
|
|||||||
// FIXME - implement real crypto for linux
|
// FIXME - implement real crypto for linux
|
||||||
CryptoEngine *crypto = new CryptoEngine();
|
CryptoEngine *crypto = new CryptoEngine();
|
||||||
|
|
||||||
void updateBatteryLevel(uint8_t level) NOT_IMPLEMENTED("updateBatteryLevel");
|
void updateBatteryLevel(uint8_t level) NOT_IMPLEMENTED("updateBatteryLevel");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/** apps run under portduino can optionally define a portduinoSetup() to
|
||||||
|
* use portduino specific init code (such as gpioBind) to setup portduino on their host machine,
|
||||||
|
* before running 'arduino' code.
|
||||||
|
*/
|
||||||
|
void portduinoSetup() {
|
||||||
|
printf("Setting up Meshtastic on Porduino...\n");
|
||||||
|
gpioBind((new SimGPIOPin(RF95_NSS, "RF95_NSS"))->setSilent());
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user