]> git.donarmstrong.com Git - kiibohd-controller.git/commit
Adding dynamic USB power support
authorJacob Alexander <haata@kiibohd.com>
Mon, 22 Feb 2016 03:56:52 +0000 (19:56 -0800)
committerJacob Alexander <haata@kiibohd.com>
Mon, 22 Feb 2016 03:56:52 +0000 (19:56 -0800)
commit46765e85c57e19b89754f4f9c26c8f18b35148e5
tree71a6cb26c6932806ad89e238d95dda6dc4c26a93
parente761960acaa5c83b8b68f0deae9232c9f4bcf11c
Adding dynamic USB power support

- Each scan module now has a current change callback which passes the available current as a parameter
- No longer attempts to use the max 500 mA immediately, starts with 100 mA then goes to 500 mA after enumeration
- If enumeration fails due to bMaxPower of 500 mA, then attempt again at 100 mA (might also be possible to go even lower to 20 mA in certain cases)
- Now working with the Apple Ipad (no over-power messages)
- Fixed Wake-up behaviour on Apple Ipad (and likely other iOS devices)
- More effecient set_feature/clear_feature handling (device handler)
- Initial power handling via Interconnect (still needs work to get it more dynamic)
25 files changed:
Output/pjrcUSB/arm/usb_desc.c
Output/pjrcUSB/arm/usb_desc.h
Output/pjrcUSB/arm/usb_dev.c
Output/pjrcUSB/arm/usb_dev.h
Output/pjrcUSB/output_com.c
Output/pjrcUSB/output_com.h
Output/usbMuxUart/output_com.c
Scan/ISSILed/led_scan.c
Scan/ISSILed/led_scan.h
Scan/KType/scan_loop.c
Scan/KType/scan_loop.h
Scan/MD1.1/scan_loop.c
Scan/MD1.1/scan_loop.h
Scan/MD1/scan_loop.c
Scan/MD1/scan_loop.h
Scan/MDErgo1/scan_loop.c
Scan/MDErgo1/scan_loop.h
Scan/MatrixARM/matrix_scan.c
Scan/MatrixARM/matrix_scan.h
Scan/STLcd/lcd_scan.c
Scan/STLcd/lcd_scan.h
Scan/UARTConnect/connect_scan.c
Scan/UARTConnect/connect_scan.h
Scan/WhiteFox/scan_loop.c
Scan/WhiteFox/scan_loop.h