1
0
Fork 0
forked from len0rd/rockbox

provide coldfire dummies to build for iriver

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5743 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2005-02-02 21:47:43 +00:00
parent 36355a5c66
commit b794f30d20
2 changed files with 16 additions and 1 deletions

View file

@ -23,6 +23,8 @@
#include "debug.h" #include "debug.h"
#include "system.h" #include "system.h"
#if CONFIG_I2C != I2C_H100 /* FIX: not yet done */
/* cute little functions, atomic read-modify-write */ /* cute little functions, atomic read-modify-write */
#if CONFIG_I2C == I2C_GMINI #if CONFIG_I2C == I2C_GMINI
@ -279,3 +281,9 @@ int i2c_read(int address, unsigned char* buf, int count )
i2c_stop(); i2c_stop();
return x; return x;
} }
#else /* not h100 i2c */
void i2c_init(void)
{
/* a dummy */
}
#endif /* h100 i2c */

View file

@ -19,7 +19,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "button.h" #include "button.h"
#include "config.h" #include "config.h"
#include "sh7034.h" #include "cpu.h"
#include "system.h" #include "system.h"
#include "kernel.h" #include "kernel.h"
#include "backlight.h" #include "backlight.h"
@ -27,6 +27,7 @@
#include "lcd.h" #include "lcd.h"
#include "serial.h" #include "serial.h"
#if CONFIG_CPU != MCF5249 /* FIX: this is not compiled for coldfire */
#ifndef HAVE_MMC /* MMC takes serial port 1, so don't mess with it */ #ifndef HAVE_MMC /* MMC takes serial port 1, so don't mess with it */
/* Received byte identifiers */ /* Received byte identifiers */
@ -137,3 +138,9 @@ int remote_control_rx(void)
} }
#endif /* HAVE_MMC */ #endif /* HAVE_MMC */
#else
void serial_setup (void)
{
/* a dummy */
}
#endif /* CONFIG_CPU != MCF5249 */