diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-29 09:34:44 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-29 09:34:44 +0000 |
commit | f1e9de5d387927f0bfc6cc20ff90cd49aba33252 (patch) | |
tree | 3cd563c15928c932e9e880087428ce45d2b588ee /firmware/drivers | |
parent | 650c5e81c318c33c01f0192f3ffebfd417da5dc8 (diff) |
Now uses HAVE_MASxxxxx macros instead of RECORDER
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1487 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/mas.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/mas.c b/firmware/drivers/mas.c index 40330db350..e954bcec5e 100644 --- a/firmware/drivers/mas.c +++ b/firmware/drivers/mas.c @@ -17,6 +17,7 @@ * ****************************************************************************/ #include "stdbool.h" +#include "config.h" #include "sh7034.h" #include "i2c.h" #include "debug.h" @@ -130,7 +131,7 @@ int mas_writemem(int bank, int addr, unsigned long* src, int len) j = 0; while(len--) { -#ifdef ARCHOS_RECORDER +#ifdef HAVE_MAS3587F buf[i++] = 0; buf[i++] = ptr[j+1]; buf[i++] = ptr[j+2]; @@ -230,7 +231,7 @@ static int mas_devread(unsigned long *dest, int len) if (i2c_getack()) { for (i=0;len;i++) { len--; -#ifdef ARCHOS_RECORDER +#ifdef HAVE_MAS3587F i2c_inb(0); /* Dummy read */ ptr[i*4+0] = 0; ptr[i*4+1] = i2c_inb(0) & 0x0f; @@ -264,8 +265,7 @@ static int mas_devread(unsigned long *dest, int len) return ret; } -#ifdef ARCHOS_RECORDER - +#ifdef HAVE_MAS3587F void mas_reset(void) { PAIOR |= 0x100; |