From f1e9de5d387927f0bfc6cc20ff90cd49aba33252 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 29 Jul 2002 09:34:44 +0000 Subject: Now uses HAVE_MASxxxxx macros instead of RECORDER git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1487 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/mas.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/drivers') 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; -- cgit v1.2.3