All platforms don't have USB

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4134 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2003-12-12 13:30:15 +00:00
parent f74dd39371
commit 4009334d33
2 changed files with 11 additions and 4 deletions

View file

@ -1842,7 +1842,8 @@ static void mpeg_thread(void)
case MPEG_TRACK_CHANGE:
track_change();
break;
#ifndef USB_NONE
case SYS_USB_CONNECTED:
is_playing = false;
paused = false;
@ -1857,6 +1858,7 @@ static void mpeg_thread(void)
usb_wait_for_disconnect(&mpeg_queue);
#endif
break;
#endif /* USB_NONE */
#ifdef HAVE_MAS3587F
case MPEG_INIT_RECORDING:

View file

@ -37,8 +37,7 @@ extern void dbg_ports(void); /* NASTY! defined in apps/ */
#define USB_REALLY_BRAVE
#ifndef SIMULATOR
#if !defined(SIMULATOR) && !defined(USB_NONE)
/* Messages from usb_tick */
#define USB_INSERTED 1
@ -338,6 +337,12 @@ bool usb_inserted(void)
#else
#ifdef USB_NONE
bool usb_inserted(void)
{
}
#endif
/* Dummy simulator functions */
void usb_acknowledge(int id)
{
@ -357,4 +362,4 @@ bool usb_detect(void)
return false;
}
#endif
#endif /* USB_NONE or SIMULATOR */