1
0
Fork 0
forked from len0rd/rockbox

Fix r29053 red and a leftover use of 'usb' variable as a bool rather than int in main-pp.c.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29054 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-01-15 08:52:59 +00:00
parent 3a1127785b
commit 71651cacb6
4 changed files with 19 additions and 16 deletions

View file

@ -25,5 +25,7 @@
#define USB_TARGET_H
bool usb_init_device(void);
void usb_pin_init(void); /* Init the GPIO input only */
bool usb_plugged(void); /* Returns instantaneous state - always */
#endif

View file

@ -35,9 +35,10 @@ void dm320_set_io (char pin_num, bool input, bool invert, bool irq, bool irqany,
bool chat, char func_num );
#if defined(CREATIVE_ZVx) && defined(BOOTLOADER)
/* hacky.. */
#define SLEEP_KERNEL_HOOK(ticks) \
({ \ /* hacky.. */
long _sleep_ticks = current_tick + ticks + 1; \
({ \
long _sleep_ticks = current_tick + (ticks) + 1; \
while (TIME_BEFORE(current_tick, _sleep_ticks)) \
switch_thread(); \
true; }) /* handled here */

View file

@ -75,4 +75,4 @@ int usb_detect(void)
}
/* No different for now */
void usb_plugged(void) __attribute__((alias("usb_detect")));
bool usb_plugged(void) __attribute__((alias("usb_detect")));