comparison Scan/STLcd/lcd_scan.c @ 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 fc2c2a1e9615
children
comparison
equal deleted inserted replaced
419:910be0f02758 420:23a1868b4ac2
1 /* Copyright (C) 2015 by Jacob Alexander 1 /* Copyright (C) 2015-2016 by Jacob Alexander
2 * 2 *
3 * This file is free software: you can redistribute it and/or modify 3 * This file is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by 4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or 5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version. 6 * (at your option) any later version.
344 { 344 {
345 return 0; 345 return 0;
346 } 346 }
347 347
348 348
349 // Signal from parent Scan Module that available current has changed
350 // current - mA
351 void LCD_currentChange( unsigned int current )
352 {
353 // TODO - Power savings?
354 }
355
356
349 357
350 // ----- Capabilities ----- 358 // ----- Capabilities -----
351 359
352 // Takes 1 8 bit length and 4 16 bit arguments, each corresponding to a layer index 360 // Takes 1 8 bit length and 4 16 bit arguments, each corresponding to a layer index
353 // Ordered from top to bottom 361 // Ordered from top to bottom