1
0
Fork 0
forked from len0rd/rockbox

Bootloader USB mode for PP502x. Enable only on GoGear SA9200 for the time being. Add HAVE_BOOTLOADER_USB_MODE to config if BOOTLOADER is defined to enable it. Clean up some kernel stuff a little to support it. Mess up a bunch of other stuff (hopefully not too badly).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29053 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-01-15 08:19:30 +00:00
parent 53db95417d
commit 3a1127785b
26 changed files with 842 additions and 160 deletions

View file

@ -34,4 +34,13 @@ void udelay(int usec);
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)
#define SLEEP_KERNEL_HOOK(ticks) \
({ \ /* hacky.. */
long _sleep_ticks = current_tick + ticks + 1; \
while (TIME_BEFORE(current_tick, _sleep_ticks)) \
switch_thread(); \
true; }) /* handled here */
#endif
#endif /* SYSTEM_TARGET_H */