summaryrefslogtreecommitdiff
path: root/software/ihu/ihu.asm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-06-28 02:50:41 +0000
committerChristian Pointner <equinox@mur.at>2013-06-28 02:50:41 +0000
commitc5f3e07f41ebc8fc81b30c1ce2b27ab853f178f1 (patch)
tree0228af59e4e846d373206d499b69f7f1ab3bcb29 /software/ihu/ihu.asm
parentihu and rtc work now (diff)
improved i2c_init
git-svn-id: https://svn.spreadspace.org/mur.sat@795 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/ihu/ihu.asm')
-rw-r--r--software/ihu/ihu.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/software/ihu/ihu.asm b/software/ihu/ihu.asm
index eef9547..33ca45d 100644
--- a/software/ihu/ihu.asm
+++ b/software/ihu/ihu.asm
@@ -71,7 +71,8 @@
#define I2C_SCL PORTD,0
#define I2C_SDA PORTD,1
I2C_PORT EQU PORTD
-I2C_SDA_MASK EQU b'00000010'
+I2C_MASK EQU b'00000011'
+I2C_SDA_MASK EQU b'00000010'
#define CTR_SS PORTD,2
#define BAT_SS PORTD,3
#define MPU_EN PORTD,4