Try to get some control over #ifdef hell in usb.c by refactoring and inline function...
commit65385fd8a60ea3b663468243cea8892599546e42
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Tue, 18 Jan 2011 14:10:06 +0000 (18 14:10 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Tue, 18 Jan 2011 14:10:06 +0000 (18 14:10 +0000)
tree0c1da0af945d93a6c4af2da5eb359f737e6a7f53
parent794cc10aecae8704de5968a5c4e1e0f2554bf8a6
Try to get some control over #ifdef hell in usb.c by refactoring and inline function use. SYS_USB_DISCONNECTED_ACK hasn't been doing anything useful for the USB thread; remove it. USB thread simply ignores that value. Observe only valid usb_state transitions.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29084 a1c6a512-1295-4272-9138-f99709370657
15 files changed:
apps/gui/usb_screen.c
apps/plugins/battery_bench.c
bootloader/common.c
bootloader/gigabeat-s.c
bootloader/ondavx747.c
firmware/backlight.c
firmware/drivers/ata.c
firmware/export/kernel.h
firmware/export/usb.h
firmware/target/arm/as3525/sd-as3525.c
firmware/target/arm/as3525/sd-as3525v2.c
firmware/target/arm/ata-sd-pp.c
firmware/target/arm/tcc780x/sd-tcc780x.c
firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c
firmware/usb.c