aboutsummaryrefslogtreecommitdiffstats
path: root/source/rtc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/rtc.hpp')
-rw-r--r--source/rtc.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/rtc.hpp b/source/rtc.hpp
index 1eb71a8..7f64100 100644
--- a/source/rtc.hpp
+++ b/source/rtc.hpp
@@ -12,6 +12,10 @@ public:
return rtcCount;
}
+ inline static void setTicks(unsigned int t) {
+ rtcCount = t;
+ }
+
private:
static void handler(nrf_drv_rtc_int_type_t type);
};