Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
59:c68c5bc9d077
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Drivers/rtc.h	Wed Sep 14 22:26:43 2016 +0000
@@ -0,0 +1,26 @@
+#ifndef _RTC_H_
+#define _RTC_H_
+
+// -------------------------------------------------------------------------------------------------
+// globals
+
+#define RTC_ADDR 0xDE // control byte: 0b1101111(R/W) -> U9 MCP7940N
+
+extern int rtc_verbose;
+
+// -------------------------------------------------------------------------------------------------
+// function prototypes
+
+void rtc_init(void);
+void rtc_regs(void);
+
+void rtc_print(void);
+
+void rtc_get_time(int* iyr, int* imo, int* idy, int* ihr, int* imn, int* isc);
+void rtc_set_time(int  iyr, int  imo, int  idy, int  ihr, int  imn, int  isc);
+
+void rtc_set(const char* s);
+
+// -------------------------------------------------------------------------------------------------
+
+#endif // _RTC_H_