Browse Source
Merge pull request #401 from marrold/Seeed_NRF_RTC
Add RTC support to Seeed NRF
pull/405/head
ripplebiz
12 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
3 deletions
-
variants/xiao_nrf52/target.cpp
-
variants/xiao_nrf52/target.h
|
|
|
@ -8,7 +8,8 @@ RADIO_CLASS radio = new Module(P_LORA_NSS, P_LORA_DIO_1, P_LORA_RESET, P_LORA_BU |
|
|
|
|
|
|
|
WRAPPER_CLASS radio_driver(radio, board); |
|
|
|
|
|
|
|
VolatileRTCClock rtc_clock; |
|
|
|
VolatileRTCClock fallback_clock; |
|
|
|
AutoDiscoverRTCClock rtc_clock(fallback_clock); |
|
|
|
EnvironmentSensorManager sensors; |
|
|
|
|
|
|
|
#ifndef LORA_CR |
|
|
|
@ -16,7 +17,7 @@ EnvironmentSensorManager sensors; |
|
|
|
#endif |
|
|
|
|
|
|
|
bool radio_init() { |
|
|
|
// rtc_clock.begin(Wire);
|
|
|
|
rtc_clock.begin(Wire); |
|
|
|
|
|
|
|
#ifdef SX126X_DIO3_TCXO_VOLTAGE |
|
|
|
float tcxo = SX126X_DIO3_TCXO_VOLTAGE; |
|
|
|
|
|
|
|
@ -5,12 +5,13 @@ |
|
|
|
#include <helpers/RadioLibWrappers.h> |
|
|
|
#include <helpers/nrf52/XiaoNrf52Board.h> |
|
|
|
#include <helpers/CustomSX1262Wrapper.h> |
|
|
|
#include <helpers/AutoDiscoverRTCClock.h> |
|
|
|
#include <helpers/ArduinoHelpers.h> |
|
|
|
#include <helpers/sensors/EnvironmentSensorManager.h> |
|
|
|
|
|
|
|
extern XiaoNrf52Board board; |
|
|
|
extern WRAPPER_CLASS radio_driver; |
|
|
|
extern VolatileRTCClock rtc_clock; |
|
|
|
extern AutoDiscoverRTCClock rtc_clock; |
|
|
|
extern EnvironmentSensorManager sensors; |
|
|
|
|
|
|
|
bool radio_init(); |
|
|
|
|