mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 05:35:20 -05:00
USB storage driver:
* Move RAM disk buffer allocation #ifdef below * Don't use the audio buffer for bootloaders git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19812 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e1b01d4608
commit
f1c6c3a754
1 changed files with 2 additions and 2 deletions
|
|
@ -399,7 +399,7 @@ void usb_storage_init_connection(void)
|
|||
state = WAITING_FOR_COMMAND;
|
||||
|
||||
#if CONFIG_CPU == IMX31L || CONFIG_USBOTG == USBOTG_ISP1583 || \
|
||||
defined(CPU_TCC77X) || defined(CPU_TCC780X)
|
||||
defined(CPU_TCC77X) || defined(CPU_TCC780X) || defined(BOOTLOADER)
|
||||
static unsigned char _transfer_buffer[BUFFER_SIZE*2]
|
||||
USB_DEVBSS_ATTR __attribute__((aligned(32)));
|
||||
tb.transfer_buffer = (void *)_transfer_buffer;
|
||||
|
|
@ -412,9 +412,9 @@ void usb_storage_init_connection(void)
|
|||
tb.transfer_buffer =
|
||||
(void *)UNCACHED_ADDR((unsigned int)(audio_buffer + 31) & 0xffffffe0);
|
||||
invalidate_icache();
|
||||
#endif
|
||||
#ifdef USB_USE_RAMDISK
|
||||
ramdisk_buffer = tb.transfer_buffer + BUFFER_SIZE*2;
|
||||
#endif
|
||||
#endif
|
||||
usb_drv_recv(ep_out, tb.transfer_buffer, 1024);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue