Skip to content

Commit

Permalink
TimeService: remove RP2040 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Nov 13, 2023
1 parent c04d016 commit 4b0ef29
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/utility/time/TimeService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ void samd_setRTC(unsigned long time);
unsigned long samd_getRTC();
#endif

#ifdef ARDUINO_NANO_RP2040_CONNECT
void rp2040_connect_initRTC();
void rp2040_connect_setRTC(unsigned long time);
unsigned long rp2040_connect_getRTC();
#endif

#ifdef ARDUINO_ARCH_MBED
void mbed_initRTC();
void mbed_setRTC(unsigned long time);
Expand Down Expand Up @@ -337,8 +331,6 @@ void TimeServiceClass::initRTC()
{
#if defined (ARDUINO_ARCH_SAMD)
samd_initRTC();
#elif defined (ARDUINO_NANO_RP2040_CONNECT)
rp2040_connect_initRTC();
#elif defined (ARDUINO_ARCH_MBED)
mbed_initRTC();
#elif defined (ARDUINO_ARCH_ESP32)
Expand All @@ -356,8 +348,6 @@ void TimeServiceClass::setRTC(unsigned long time)
{
#if defined (ARDUINO_ARCH_SAMD)
samd_setRTC(time);
#elif defined (ARDUINO_NANO_RP2040_CONNECT)
rp2040_connect_setRTC(time);
#elif defined (ARDUINO_ARCH_MBED)
mbed_setRTC(time);
#elif defined (ARDUINO_ARCH_ESP32)
Expand All @@ -375,8 +365,6 @@ unsigned long TimeServiceClass::getRTC()
{
#if defined (ARDUINO_ARCH_SAMD)
return samd_getRTC();
#elif defined (ARDUINO_NANO_RP2040_CONNECT)
return rp2040_connect_getRTC();
#elif defined (ARDUINO_ARCH_MBED)
return mbed_getRTC();
#elif defined (ARDUINO_ARCH_ESP32)
Expand Down Expand Up @@ -447,23 +435,6 @@ unsigned long samd_getRTC()
}
#endif

#ifdef ARDUINO_NANO_RP2040_CONNECT
void rp2040_connect_initRTC()
{
/* Nothing to do */
}

void rp2040_connect_setRTC(unsigned long time)
{
set_time(time);
}

unsigned long rp2040_connect_getRTC()
{
return time(NULL);
}
#endif

#ifdef ARDUINO_ARCH_MBED
void mbed_initRTC()
{
Expand Down

0 comments on commit 4b0ef29

Please sign in to comment.