summaryrefslogtreecommitdiffstats
path: root/watch-library/simulator/watch/watch_rtc.c
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-05-02 18:39:45 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2022-05-02 18:39:45 -0500
commitcd405735351035df657b64547b3dfc6a3d59db56 (patch)
tree1cdd5e6b0d0434d20f71045178a1e5e7377eb56f /watch-library/simulator/watch/watch_rtc.c
parent0004c30f422e702fd184a54e9f1d55da878bcd0f (diff)
parent35d1f5e647ac1b5fcccdb43ec58058587dd5301b (diff)
downloadSensor-Watch-cd405735351035df657b64547b3dfc6a3d59db56.tar.gz
Sensor-Watch-cd405735351035df657b64547b3dfc6a3d59db56.tar.bz2
Sensor-Watch-cd405735351035df657b64547b3dfc6a3d59db56.zip
Merge branch 'main' of github.com:joeycastillo/Sensor-Watch into motion-express
Diffstat (limited to 'watch-library/simulator/watch/watch_rtc.c')
-rw-r--r--watch-library/simulator/watch/watch_rtc.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/watch-library/simulator/watch/watch_rtc.c b/watch-library/simulator/watch/watch_rtc.c
index ea8659dc..107ae56c 100644
--- a/watch-library/simulator/watch/watch_rtc.c
+++ b/watch-library/simulator/watch/watch_rtc.c
@@ -197,32 +197,3 @@ void watch_rtc_disable_alarm_callback(void) {
alarm_interval_id = -1;
}
}
-
-///////////////////////
-// Deprecated functions
-
-void watch_set_date_time(struct calendar_date_time date_time) {
- watch_date_time val;
- val.unit.second = date_time.time.sec;
- val.unit.minute = date_time.time.min;
- val.unit.hour = date_time.time.hour;
- val.unit.day = date_time.date.day;
- val.unit.month = date_time.date.month;
- val.unit.year = date_time.date.year - WATCH_RTC_REFERENCE_YEAR;
- watch_rtc_set_date_time(val);
-}
-
-void watch_get_date_time(struct calendar_date_time *date_time) {
- if (date_time == NULL) return;
- watch_date_time val = watch_rtc_get_date_time();
- date_time->time.sec = val.unit.second;
- date_time->time.min = val.unit.minute;
- date_time->time.hour = val.unit.hour;
- date_time->date.day = val.unit.day;
- date_time->date.month = val.unit.month;
- date_time->date.year = val.unit.year + WATCH_RTC_REFERENCE_YEAR;
-}
-
-void watch_register_tick_callback(ext_irq_cb_t callback) {
- watch_rtc_register_tick_callback(callback);
-}