mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-10 23:22:05 +00:00
don't compile on Portduino
This commit is contained in:
parent
a7fe69ed6b
commit
b5fb0f60b0
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
void printATECCInfo()
|
void printATECCInfo()
|
||||||
{
|
{
|
||||||
|
#ifndef ARCH_PORTDUINO
|
||||||
atecc.readConfigZone(false);
|
atecc.readConfigZone(false);
|
||||||
|
|
||||||
DEBUG_MSG("ATECC608B Serial Number: ");
|
DEBUG_MSG("ATECC608B Serial Number: ");
|
||||||
@ -40,6 +41,7 @@ void printATECCInfo()
|
|||||||
DEBUG_MSG("\n");
|
DEBUG_MSG("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t getRegisterValue(uint8_t address, uint8_t reg, uint8_t length) {
|
uint16_t getRegisterValue(uint8_t address, uint8_t reg, uint8_t length) {
|
||||||
@ -112,6 +114,7 @@ void scanI2Cdevice(void)
|
|||||||
DEBUG_MSG("unknown display found\n");
|
DEBUG_MSG("unknown display found\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifndef ARCH_PORTDUINO
|
||||||
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) {
|
||||||
@ -121,6 +124,7 @@ void scanI2Cdevice(void)
|
|||||||
}
|
}
|
||||||
printATECCInfo();
|
printATECCInfo();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#ifdef RV3028_RTC
|
#ifdef RV3028_RTC
|
||||||
if (addr == RV3028_RTC){
|
if (addr == RV3028_RTC){
|
||||||
rtc_found = addr;
|
rtc_found = addr;
|
||||||
|
@ -82,7 +82,9 @@ uint8_t rtc_found;
|
|||||||
|
|
||||||
// Keystore Chips
|
// Keystore Chips
|
||||||
uint8_t keystore_found;
|
uint8_t keystore_found;
|
||||||
|
#ifndef ARCH_PORTDUINO
|
||||||
ATECCX08A atecc;
|
ATECCX08A atecc;
|
||||||
|
#endif
|
||||||
|
|
||||||
bool eink_found = true;
|
bool eink_found = true;
|
||||||
|
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
#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
|
||||||
#include <SparkFun_ATECCX08a_Arduino_Library.h>
|
#include <SparkFun_ATECCX08a_Arduino_Library.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
extern uint8_t screen_found;
|
extern uint8_t screen_found;
|
||||||
extern uint8_t screen_model;
|
extern uint8_t screen_model;
|
||||||
@ -20,7 +22,9 @@ extern bool pmu_found;
|
|||||||
extern bool isCharging;
|
extern bool isCharging;
|
||||||
extern bool isUSBPowered;
|
extern bool isUSBPowered;
|
||||||
|
|
||||||
|
#ifndef ARCH_PORTDUINO
|
||||||
extern ATECCX08A atecc;
|
extern ATECCX08A atecc;
|
||||||
|
#endif
|
||||||
|
|
||||||
extern uint8_t nodeTelemetrySensorsMap[TelemetrySensorType_QMI8658+1];
|
extern uint8_t nodeTelemetrySensorsMap[TelemetrySensorType_QMI8658+1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user