summaryrefslogtreecommitdiff
path: root/software/ihu
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2011-07-30 22:02:04 +0000
committerChristian Pointner <equinox@mur.at>2011-07-30 22:02:04 +0000
commit89828e80eb7ebd07a20cf5262a704c65d1832437 (patch)
treed5e15074cff5e4b8e854385327aa4166c83829a7 /software/ihu
parentresetting ttx while rtc gets configured (clock out) (diff)
moved RTC specific defines to rtc.inc
git-svn-id: https://svn.spreadspace.org/mur.sat@82 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/ihu')
-rw-r--r--software/ihu/ihu.asm18
-rw-r--r--software/ihu/rtc.inc21
2 files changed, 21 insertions, 18 deletions
diff --git a/software/ihu/ihu.asm b/software/ihu/ihu.asm
index 197665a..9c30f43 100644
--- a/software/ihu/ihu.asm
+++ b/software/ihu/ihu.asm
@@ -38,24 +38,6 @@
;; -------------------------------------
;; 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'
;; I/O Pins
;; PortA
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