mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Sansa Fuze & e200v2 : do not enable USBSTACK in the bootloader
Don't implement usb_enable() is HAVE_USBSTACK is not defined git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23185 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8bd8d06842
commit
19d70fce20
3 changed files with 14 additions and 0 deletions
|
|
@ -22,7 +22,9 @@
|
|||
#include <stdbool.h>
|
||||
#include "config.h"
|
||||
#include "usb.h"
|
||||
#ifdef HAVE_USBSTACK
|
||||
#include "usb_core.h"
|
||||
#endif
|
||||
#include "usb-target.h"
|
||||
#include "power.h"
|
||||
#include "as3525.h"
|
||||
|
|
@ -39,10 +41,14 @@
|
|||
|
||||
void usb_enable(bool on)
|
||||
{
|
||||
#ifdef HAVE_USBSTACK
|
||||
if (on)
|
||||
usb_core_init();
|
||||
else
|
||||
usb_core_exit();
|
||||
#else
|
||||
(void)on;
|
||||
#endif
|
||||
}
|
||||
|
||||
void usb_init_device(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue