mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +00:00
fix RP2040 and Portduino Platforms
This commit is contained in:
parent
025d2264a2
commit
51ef9b7fbe
@ -2,11 +2,13 @@
|
|||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
#include "NodeDB.h"
|
#include "NodeDB.h"
|
||||||
|
|
||||||
#ifndef ARCH_ESP32
|
#if !defined(ARCH_ESP32) && !defined(ARCH_RP2040) && !defined(ARCH_PORTDUINO)
|
||||||
#include "Tone.h"
|
#include "Tone.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(ARCH_PORTDUINO)
|
||||||
extern "C" void delay(uint32_t dwMs);
|
extern "C" void delay(uint32_t dwMs);
|
||||||
|
#endif
|
||||||
|
|
||||||
struct ToneDuration {
|
struct ToneDuration {
|
||||||
int frequency_khz;
|
int frequency_khz;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
void printATECCInfo()
|
void printATECCInfo()
|
||||||
{
|
{
|
||||||
#ifndef ARCH_PORTDUINO
|
#if !defined(ARCH_PORTDUINO) && !defined(ARCH_STM32WL)
|
||||||
atecc.readConfigZone(false);
|
atecc.readConfigZone(false);
|
||||||
|
|
||||||
DEBUG_MSG("ATECC608B Serial Number: ");
|
DEBUG_MSG("ATECC608B Serial Number: ");
|
||||||
@ -114,7 +114,7 @@ void scanI2Cdevice()
|
|||||||
DEBUG_MSG("unknown display found\n");
|
DEBUG_MSG("unknown display found\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef ARCH_PORTDUINO
|
#if !defined(ARCH_PORTDUINO) && !defined(ARCH_STM32WL)
|
||||||
if (addr == ATECC608B_ADDR) {
|
if (addr == ATECC608B_ADDR) {
|
||||||
keystore_found = addr;
|
keystore_found = addr;
|
||||||
if (atecc.begin(keystore_found) == true) {
|
if (atecc.begin(keystore_found) == true) {
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "PowerStatus.h"
|
#include "PowerStatus.h"
|
||||||
#include "graphics/Screen.h"
|
#include "graphics/Screen.h"
|
||||||
#include "mesh/generated/telemetry.pb.h"
|
#include "mesh/generated/telemetry.pb.h"
|
||||||
#ifndef ARCH_PORTDUINO
|
#if !defined(ARCH_PORTDUINO) && !defined(ARCH_STM32WL)
|
||||||
#include <SparkFun_ATECCX08a_Arduino_Library.h>
|
#include <SparkFun_ATECCX08a_Arduino_Library.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ extern bool pmu_found;
|
|||||||
extern bool isCharging;
|
extern bool isCharging;
|
||||||
extern bool isUSBPowered;
|
extern bool isUSBPowered;
|
||||||
|
|
||||||
#ifndef ARCH_PORTDUINO
|
#if !defined(ARCH_PORTDUINO) && !defined(ARCH_STM32WL)
|
||||||
extern ATECCX08A atecc;
|
extern ATECCX08A atecc;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user