mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Make the UI simulator compile on OSX again. dbg_flash_id() really shouldn't be compiled for the sim anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11328 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
64baf57408
commit
73c0cfa632
7 changed files with 11 additions and 7 deletions
|
@ -384,6 +384,7 @@ static unsigned flash_read_word(unsigned addr) {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef SIMULATOR
|
||||||
/* Tool function to read the flash manufacturer and type, if available.
|
/* Tool function to read the flash manufacturer and type, if available.
|
||||||
Only chips which could be reprogrammed in system will return values.
|
Only chips which could be reprogrammed in system will return values.
|
||||||
(The mode switch addresses vary between flash manufacturers, hence addr1/2) */
|
(The mode switch addresses vary between flash manufacturers, hence addr1/2) */
|
||||||
|
@ -395,7 +396,6 @@ bool dbg_flash_id(unsigned* p_manufacturer, unsigned* p_device,
|
||||||
unsigned addr1, unsigned addr2)
|
unsigned addr1, unsigned addr2)
|
||||||
|
|
||||||
{
|
{
|
||||||
#ifndef SIMULATOR
|
|
||||||
#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)
|
#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)
|
||||||
/* TODO: Implement for iPod */
|
/* TODO: Implement for iPod */
|
||||||
(void)p_manufacturer;
|
(void)p_manufacturer;
|
||||||
|
@ -462,15 +462,10 @@ bool dbg_flash_id(unsigned* p_manufacturer, unsigned* p_device,
|
||||||
*p_device = id;
|
*p_device = id;
|
||||||
return true; /* success */
|
return true; /* success */
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
(void) p_manufacturer;
|
|
||||||
(void) p_device;
|
|
||||||
(void) addr1;
|
|
||||||
(void) addr2;
|
|
||||||
#endif
|
#endif
|
||||||
return false; /* fail */
|
return false; /* fail */
|
||||||
}
|
}
|
||||||
|
#endif /* !SIMULATOR */
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
|
|
|
@ -44,3 +44,6 @@ flipit_cursor.16x13x1.bmp
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* HAVE_LCD_BITMAP */
|
#endif /* HAVE_LCD_BITMAP */
|
||||||
|
#if defined(SIMULATOR) && defined(__APPLE__)
|
||||||
|
osx.dummy.bmp
|
||||||
|
#endif
|
||||||
|
|
BIN
apps/plugins/bitmaps/mono/osx.dummy.bmp
Normal file
BIN
apps/plugins/bitmaps/mono/osx.dummy.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 B |
|
@ -0,0 +1,3 @@
|
||||||
|
#if defined(SIMULATOR) && defined(__APPLE__)
|
||||||
|
osx.dummy.bmp
|
||||||
|
#endif
|
BIN
apps/plugins/bitmaps/remote_mono/osx.dummy.bmp
Normal file
BIN
apps/plugins/bitmaps/remote_mono/osx.dummy.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 B |
|
@ -0,0 +1,3 @@
|
||||||
|
#if defined(SIMULATOR) && defined(__APPLE__)
|
||||||
|
osx.dummy.bmp
|
||||||
|
#endif
|
BIN
apps/plugins/bitmaps/remote_native/osx.dummy.bmp
Normal file
BIN
apps/plugins/bitmaps/remote_native/osx.dummy.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 66 B |
Loading…
Add table
Add a link
Reference in a new issue