Disabled all code for the serial remote on Ondio, since the serial port is needed for MMC access.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5097 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-09-20 22:15:35 +00:00
parent 57945b125d
commit 2d875f83e6
3 changed files with 10 additions and 1 deletions

View file

@ -127,7 +127,10 @@ void init(void)
#ifdef DEBUG #ifdef DEBUG
debug_init(); debug_init();
#else #else
#ifndef HAVE_MMC /* FIXME: This is also necessary for debug builds
* (do debug builds on the Ondio make sense?) */
serial_setup(); serial_setup();
#endif
#endif #endif
i2c_init(); i2c_init();
@ -174,7 +177,7 @@ void init(void)
#endif #endif
panicf("ata: %d", rc); panicf("ata: %d", rc);
} }
usb_start_monitoring(); usb_start_monitoring();
/* temporary hack for Ondio, which can't browse without disk I/O */ /* temporary hack for Ondio, which can't browse without disk I/O */

View file

@ -67,12 +67,14 @@ static void button_tick(void)
int diff; int diff;
int btn; int btn;
#ifndef HAVE_MMC
/* Post events for the remote control */ /* Post events for the remote control */
btn = remote_control_rx(); btn = remote_control_rx();
if(btn) if(btn)
{ {
queue_post(&button_queue, btn, NULL); queue_post(&button_queue, btn, NULL);
} }
#endif
/* only poll every X ticks */ /* only poll every X ticks */
if ( ++tick >= POLL_FREQUENCY ) if ( ++tick >= POLL_FREQUENCY )

View file

@ -27,6 +27,8 @@
#include "lcd.h" #include "lcd.h"
#include "serial.h" #include "serial.h"
#ifndef HAVE_MMC /* MMC takes serial port 1, so don't mess with it */
/* Received byte identifiers */ /* Received byte identifiers */
#define PLAY 0xC1 #define PLAY 0xC1
#define STOP 0xC2 #define STOP 0xC2
@ -133,3 +135,5 @@ int remote_control_rx(void)
return ret; return ret;
} }
#endif /* HAVE_MMC */