summaryrefslogtreecommitdiff
path: root/software/ihu/rtc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'software/ihu/rtc.inc')
-rw-r--r--software/ihu/rtc.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/software/ihu/rtc.inc b/software/ihu/rtc.inc
index 01d11b9..ba76bdb 100644
--- a/software/ihu/rtc.inc
+++ b/software/ihu/rtc.inc
@@ -27,6 +27,27 @@
;; You should have received a copy of the GNU General Public License
;; along with mur.sat. If not, see <http://www.gnu.org/licenses/>.
;;
+ ;; -------------------------------------
+ ;; DEFINES
+ ;; constants
+RTC_ADDR_W EQU b'11010000'
+RTC_ADDR_R EQU b'11010001'
+RTC_REG_SEC EQU H'00'
+RTC_REG_MIN EQU H'01'
+RTC_REG_HOUR EQU H'02'
+RTC_REG_DOW EQU H'03'
+RTC_REG_DOM EQU H'04'
+RTC_REG_MON EQU H'05'
+RTC_REG_YEAR EQU H'06'
+RTC_REG_A1S EQU H'07'
+RTC_REG_A1M EQU H'08'
+RTC_REG_A1H EQU H'09'
+RTC_REG_A1D EQU H'0A'
+RTC_REG_A2M EQU H'0B'
+RTC_REG_A2H EQU H'0C'
+RTC_REG_A2D EQU H'0D'
+RTC_REG_CON EQU H'0E'
+RTC_REG_STAT EQU H'0F'
;; -------------------------------------
i2c_start