mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-09-02 15:53:56 +00:00
22 lines
357 B
C++
22 lines
357 B
C++
/*
|
|
* SPDX-License-Identifier: MIT
|
|
* Zephyr software RTC - boot-relative time with settable offset
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <mesh/RTC.h>
|
|
|
|
namespace mesh {
|
|
|
|
class ZephyrRTCClock : public RTCClock {
|
|
public:
|
|
uint32_t getCurrentTime() override;
|
|
void setCurrentTime(uint32_t time) override;
|
|
|
|
private:
|
|
uint32_t epoch_offset = 0;
|
|
};
|
|
|
|
} /* namespace mesh */
|