mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
Hopefully fix the last of the stragglers.
* xDuoo X3 fix some warnings due to an incorrect #ifdef * stub storage_removeable() and storage_present() for non-HOTSWAP builds * sim_trigger_external() is gated by HOTSWAP, not MULTIDRIVE Change-Id: I38f14fdfeba13957899c378051d49afc2e8245e5
This commit is contained in:
parent
1528b44349
commit
5a2bd580cd
5 changed files with 10 additions and 5 deletions
|
@ -310,6 +310,9 @@ void storage_get_info(int drive, struct storage_info *info);
|
|||
#ifdef HAVE_HOTSWAP
|
||||
bool storage_removable(int drive);
|
||||
bool storage_present(int drive);
|
||||
#else
|
||||
#define storage_removable(x) 0
|
||||
#define storage_present(x) 1
|
||||
#endif
|
||||
int storage_driver_type(int drive);
|
||||
|
||||
|
|
|
@ -340,7 +340,7 @@ static void button_event(int key, bool pressed)
|
|||
}
|
||||
return;
|
||||
#endif
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
#ifdef HAVE_HOTSWAP
|
||||
case EXT_KEY:
|
||||
if (!pressed)
|
||||
sim_trigger_external(!storage_present(1));
|
||||
|
|
|
@ -565,7 +565,7 @@ static inline int write_sector(unsigned long start, unsigned int count,
|
|||
|
||||
int nand_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* buf)
|
||||
{
|
||||
#ifdef HAVE_MULTIVOLUME
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
(void)drive;
|
||||
#endif
|
||||
int ret = 0;
|
||||
|
@ -592,7 +592,7 @@ int nand_read_sectors(IF_MD(int drive,) unsigned long start, int count, void* bu
|
|||
|
||||
int nand_write_sectors(IF_MD(int drive,) unsigned long start, int count, const void* buf)
|
||||
{
|
||||
#ifdef HAVE_MULTIVOLUME
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
(void)drive;
|
||||
#endif
|
||||
int ret = 0;
|
||||
|
@ -664,7 +664,7 @@ void nand_sleepnow(void)
|
|||
#ifdef STORAGE_GET_INFO
|
||||
void nand_get_info(IF_MD(int drive,) struct storage_info *info)
|
||||
{
|
||||
#ifdef HAVE_MULTIVOLUME
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
(void)drive;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ void usb_wait_for_disconnect(struct event_queue *q)
|
|||
|
||||
static bool is_ext_inserted;
|
||||
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
#ifdef HAVE_HOTSWAP
|
||||
void sim_trigger_external(bool inserted)
|
||||
{
|
||||
is_ext_inserted = inserted;
|
||||
|
|
|
@ -28,7 +28,9 @@
|
|||
void sim_tasks_init(void);
|
||||
void sim_trigger_screendump(void);
|
||||
void sim_trigger_usb(bool inserted);
|
||||
#ifdef HAVE_HOTSWAP
|
||||
void sim_trigger_external(bool inserted);
|
||||
#endif
|
||||
void sim_trigger_hp(bool inserted);
|
||||
void sim_trigger_lo(bool inserted);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue