From 02170fc7bfdc9a8751fc2525887455aaa9fcb2b2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 13 Dec 2011 02:15:26 +0000 Subject: moved i2c stuff to seperate file git-svn-id: https://svn.spreadspace.org/mur.sat@225 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/ihu/ihu.asm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'software/ihu/ihu.asm') diff --git a/software/ihu/ihu.asm b/software/ihu/ihu.asm index 18c0db4..e110783 100644 --- a/software/ihu/ihu.asm +++ b/software/ihu/ihu.asm @@ -52,8 +52,8 @@ DTMF_INT EQU 0 BAT_V EQU 1 SOLAR_V EQU 2 BAT_C EQU 3 -RTC_SDA EQU 4 -RTC_SCL EQU 5 +I2C_SDA EQU 4 +I2C_SCL EQU 5 RTC_INT EQU 6 RTC_RST EQU 7 ;; PortC @@ -129,8 +129,8 @@ CALC_TEMP3 EQU H'0117' ;; all pages -RTC_BYTE EQU H'0070' -RTC_BIT_CNT EQU H'0071' +I2C_BYTE EQU H'0070' +I2C_BIT_CNT EQU H'0071' OWIRE_BYTE EQU H'0072' OWIRE_BIT_CNT EQU H'0073' OWIRE_CNT EQU H'0074' @@ -336,6 +336,9 @@ uart_rx_fe ;; ------------------------------------- include "ttx.inc" + ;; ------------------------------------- + include "i2c.inc" + ;; ------------------------------------- include "rtc.inc" @@ -348,7 +351,7 @@ uart_rx_fe ;; ------------------------------------- ;; MAINLOOP main - sleep +; sleep nop ;; -------------------- -- cgit v1.2.3