forked from len0rd/rockbox
Reorganise USB stack defines. Now config.h decides which class drivers get enabled instead of usb_core.h
Also enable HID, and use that as the dummy class instead of charging-only for controllers that have working interrupt transfers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21053 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bca3d3dca4
commit
c61a75173b
13 changed files with 79 additions and 52 deletions
|
@ -28,8 +28,6 @@
|
|||
//#define LOGF_ENABLE
|
||||
#include "logf.h"
|
||||
|
||||
#ifdef USB_HID
|
||||
|
||||
#define CONCAT(low, high) ((high << 8) | low)
|
||||
#define PACK_VAL1(dest, val) *(dest)++ = (val) & 0xff
|
||||
#define PACK_VAL2(dest, val) PACK_VAL1((dest), (val)); \
|
||||
|
@ -392,5 +390,3 @@ void usb_hid_send_consumer_usage(consumer_usage_page_t id)
|
|||
|
||||
usb_hid_try_send_drv();
|
||||
}
|
||||
|
||||
#endif /*USB_HID*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue