mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
make mini2440 bootloader compile again, and remove a few warnings from sd driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23440 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4b7de91884
commit
d25baecc0b
2 changed files with 12 additions and 7 deletions
|
|
@ -73,7 +73,8 @@ int main(void)
|
||||||
/* mini2440_test(); */
|
/* mini2440_test(); */
|
||||||
|
|
||||||
/* Show debug messages if button is pressed */
|
/* Show debug messages if button is pressed */
|
||||||
if(button_read_device() & BUTTON_MENU)
|
int touch_data;
|
||||||
|
if(button_read_device(&touch_data) & BUTTON_MENU)
|
||||||
verbose = true;
|
verbose = true;
|
||||||
|
|
||||||
printf("Rockbox boot loader");
|
printf("Rockbox boot loader");
|
||||||
|
|
|
||||||
|
|
@ -811,19 +811,23 @@ int sd_read_sectors(IF_MD2(int card_no,) unsigned long start, int incount,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
#ifndef X_BOOTLOADER
|
|
||||||
/* writing not required for Bootloader - or is it? */
|
|
||||||
int sd_write_sectors(IF_MD2(int card_no,) unsigned long start, int count,
|
int sd_write_sectors(IF_MD2(int card_no,) unsigned long start, int count,
|
||||||
const void* outbuf)
|
const void* outbuf)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_MULTIDRIVE
|
#ifdef BOOTLOADER /* we don't need write support in bootloader */
|
||||||
const int card_no = 0;
|
#ifdef HAVE_MULTIDRIVE
|
||||||
|
(void) drive;
|
||||||
#endif
|
#endif
|
||||||
|
(void) start;
|
||||||
|
(void) count;
|
||||||
|
(void) outbuf;
|
||||||
|
return -1;
|
||||||
|
#else
|
||||||
dbgprintf ("sd_write %d %x %d\n", card_no, start, count);
|
dbgprintf ("sd_write %d %x %d\n", card_no, start, count);
|
||||||
|
|
||||||
return sd_transfer_sectors(IF_MD2(card_no,) start, count, outbuf, true);
|
return sd_transfer_sectors(IF_MD2(card_no,) start, count, (void*)outbuf, true);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif /* BOOTLOADER */
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void sd_enable(bool on)
|
void sd_enable(bool on)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue