Remove rtc auto-detect on t1000

This commit is contained in:
Florent
2025-03-30 15:09:40 +02:00
parent fc6aa0ed0f
commit 2f6427ce21
2 changed files with 4 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
#include <Arduino.h> #include <Arduino.h>
#include "target.h" #include "target.h"
#include <helpers/ArduinoHelpers.h>
T1000eBoard board; T1000eBoard board;
@@ -8,8 +7,7 @@ RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BU
WRAPPER_CLASS radio_driver(radio, board); WRAPPER_CLASS radio_driver(radio, board);
VolatileRTCClock fallback_clock; VolatileRTCClock rtc_clock;
AutoDiscoverRTCClock rtc_clock(fallback_clock);
#ifndef LORA_CR #ifndef LORA_CR
#define LORA_CR 5 #define LORA_CR 5
@@ -38,7 +36,7 @@ static const Module::RfSwitchMode_t rfswitch_table[] = {
#endif #endif
bool radio_init() { bool radio_init() {
rtc_clock.begin(Wire); //rtc_clock.begin(Wire);
#ifdef LR11X0_DIO3_TCXO_VOLTAGE #ifdef LR11X0_DIO3_TCXO_VOLTAGE
float tcxo = LR11X0_DIO3_TCXO_VOLTAGE; float tcxo = LR11X0_DIO3_TCXO_VOLTAGE;

View File

@@ -5,11 +5,11 @@
#include <helpers/RadioLibWrappers.h> #include <helpers/RadioLibWrappers.h>
#include <helpers/nrf52/T1000eBoard.h> #include <helpers/nrf52/T1000eBoard.h>
#include <helpers/CustomLR1110Wrapper.h> #include <helpers/CustomLR1110Wrapper.h>
#include <helpers/AutoDiscoverRTCClock.h> #include <helpers/ArduinoHelpers.h>
extern T1000eBoard board; extern T1000eBoard board;
extern WRAPPER_CLASS radio_driver; extern WRAPPER_CLASS radio_driver;
extern AutoDiscoverRTCClock rtc_clock; extern VolatileRTCClock rtc_clock;
bool radio_init(); bool radio_init();
uint32_t radio_get_rng_seed(); uint32_t radio_get_rng_seed();