aboutsummaryrefslogtreecommitdiffstats
path: root/source/rtc.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/rtc.hpp')
-rw-r--r--source/rtc.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/rtc.hpp b/source/rtc.hpp
index e4a9938..99ca2ba 100644
--- a/source/rtc.hpp
+++ b/source/rtc.hpp
@@ -22,12 +22,14 @@
#define RTC_HPP_
#include <rtc/nrf_drv_rtc.h>
+#include <stdint.h>
+
#include "sharp.hpp"
class RTC {
private:
static nrf_drv_rtc_t rtc;
- static unsigned int rtcCount;
+ static uint32_t rtcCount;
public:
static void begin(void);
@@ -40,6 +42,8 @@ public:
rtcCount = t;
}
+ static const char *getDate(char *buf);
+
private:
static void handler(nrf_drv_rtc_int_type_t type);
};