diff options
Diffstat (limited to 'firmware/target/arm/pp/usb-fw-pp502x.c')
-rw-r--r-- | firmware/target/arm/pp/usb-fw-pp502x.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/firmware/target/arm/pp/usb-fw-pp502x.c b/firmware/target/arm/pp/usb-fw-pp502x.c index 44cce14389..acbb221cfd 100644 --- a/firmware/target/arm/pp/usb-fw-pp502x.c +++ b/firmware/target/arm/pp/usb-fw-pp502x.c | |||
@@ -230,21 +230,6 @@ void usb_insert_int(void) | |||
230 | } | 230 | } |
231 | #endif /* USB_STATUS_BY_EVENT */ | 231 | #endif /* USB_STATUS_BY_EVENT */ |
232 | 232 | ||
233 | #ifdef HAVE_BOOTLOADER_USB_MODE | ||
234 | /* Replacement function that returns all unused memory after the bootloader | ||
235 | * because the storage driver uses the audio buffer */ | ||
236 | extern unsigned char freebuffer[]; | ||
237 | extern unsigned char freebufferend[]; | ||
238 | unsigned char *audio_get_buffer(bool talk_buf, size_t *buffer_size) | ||
239 | { | ||
240 | if (buffer_size) | ||
241 | *buffer_size = freebufferend - freebuffer + 1; | ||
242 | |||
243 | return freebuffer; | ||
244 | (void)talk_buf; | ||
245 | } | ||
246 | #endif /* HAVE_BOOTLOADER_USB_MODE */ | ||
247 | |||
248 | void usb_drv_int_enable(bool enable) | 233 | void usb_drv_int_enable(bool enable) |
249 | { | 234 | { |
250 | /* enable/disable USB IRQ in CPU */ | 235 | /* enable/disable USB IRQ in CPU */ |