comparison Output/pjrcUSB/arm/usb_dev.h @ 420:23a1868b4ac2

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)
author Jacob Alexander <haata@kiibohd.com>
date Sun, 21 Feb 2016 19:56:52 -0800
parents 1beec5f17e64
children 56237ba5da6f
comparison
equal deleted inserted replaced
419:910be0f02758 420:23a1868b4ac2
79 return 0; 79 return 0;
80 return usb_rx_byte_count_data[ endpoint ]; 80 return usb_rx_byte_count_data[ endpoint ];
81 } 81 }
82 82
83 void usb_device_reload(); 83 void usb_device_reload();
84 void usb_device_check();
84 85
85 extern void usb_serial_flush_callback(); 86 extern void usb_serial_flush_callback();
86 87