mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
mrobe500: Allow bootloader build without HAVE_BOOTLOADER_USB_MODE
I'm leaving it enabled because that's clearly the intent of the bootloader, but at least there's now an easy path to disabling it if so desired. Change-Id: I4f4ecc9a453d376f92e411e0544b587fe4b4c864
This commit is contained in:
parent
b722e3c83a
commit
9057154fff
2 changed files with 6 additions and 0 deletions
|
|
@ -61,7 +61,9 @@ void main(void)
|
||||||
backlight_init();
|
backlight_init();
|
||||||
font_init();
|
font_init();
|
||||||
button_init();
|
button_init();
|
||||||
|
#ifdef HAVE_BOOTLOADER_USB_MODE
|
||||||
usb_init();
|
usb_init();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
power_init();
|
power_init();
|
||||||
|
|
@ -79,6 +81,7 @@ void main(void)
|
||||||
printf("Rockbox boot loader");
|
printf("Rockbox boot loader");
|
||||||
printf("Version %s", rbversion);
|
printf("Version %s", rbversion);
|
||||||
|
|
||||||
|
#ifdef HAVE_BOOTLOADER_USB_MODE
|
||||||
/* Enter USB mode without USB thread */
|
/* Enter USB mode without USB thread */
|
||||||
if(usb_detect() == USB_INSERTED)
|
if(usb_detect() == USB_INSERTED)
|
||||||
{
|
{
|
||||||
|
|
@ -104,6 +107,7 @@ void main(void)
|
||||||
reset_screen();
|
reset_screen();
|
||||||
lcd_update();
|
lcd_update();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
sleep(50);
|
sleep(50);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1302,7 +1302,9 @@ target/arm/tms320dm320/mrobe-500/lcd-remote-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/pcm-mr500.c
|
target/arm/tms320dm320/mrobe-500/pcm-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/powermgmt-mr500.c
|
target/arm/tms320dm320/mrobe-500/powermgmt-mr500.c
|
||||||
target/arm/tms320dm320/mrobe-500/power-mr500.c
|
target/arm/tms320dm320/mrobe-500/power-mr500.c
|
||||||
|
#if !defined(BOOTLOADER) || defined(HAVE_BOOTLOADER_USB_MODE)
|
||||||
target/arm/tms320dm320/mrobe-500/usb-mr500.c
|
target/arm/tms320dm320/mrobe-500/usb-mr500.c
|
||||||
|
#endif
|
||||||
#endif /* MROBE_500 */
|
#endif /* MROBE_500 */
|
||||||
|
|
||||||
#if defined(CREATIVE_ZEN) || defined(CREATIVE_ZENXFI) || defined(CREATIVE_ZENMOZAIC) \
|
#if defined(CREATIVE_ZEN) || defined(CREATIVE_ZENXFI) || defined(CREATIVE_ZENMOZAIC) \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue