summaryrefslogtreecommitdiff
path: root/src/usbh_driver_hub.c
AgeCommit message (Collapse)AuthorFilesLines
2016-09-11use default case instead of handling other packet statuses explicitelyAmir Hammad1-19/+7
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11use forward declaration for usbh_dev_driver_tAmir Hammad1-2/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11use NULL instead of 0 for assigning null pointerAmir Hammad1-1/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11hub: use common code to remove deviceAmir Hammad1-6/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11HUB: make use of control wrappers + use enumsAmir Hammad1-215/+70
Until now, hardcoded numbers were used as states. Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11add DISABLE_LOW_LEVEL ifdef in hub device driverAmir Hammad1-0/+8
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11Drop need for the set configuration request in dev driversAmir Hammad1-54/+18
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11core: Simplify device removesAmir Hammad1-14/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-08make usbh_packet->data of union typeAmir Hammad1-1/+1
out: const void * in: void * Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-01fix bmRequestType field - use of definesAmir Hammad1-12/+12
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-08-30hub: fix commented out code and commentsAmir Hammad1-14/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-08-23remove not needed carriage returns in printfAmir Hammad1-1/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-30add option to pass data to control writesAmir Hammad1-11/+14
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-09Adjust documentation to fit doxygenAmir Hammad1-1/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08rename usbh_hubbed.* to usbh_core.*Amir Hammad1-1/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08refactor: use enum instead of #define: USBH_ENDPOINT_TYPE and USBH_SPEEDAmir Hammad1-1/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-07-29hub: Empty packet readings after SET_ and CLEAR_ commandsAmir Hammad1-9/+21
* fixed typo/bug: "hub->state += 2" must have been "hub->state = 2" to issue empty read Now, after each SET_ or CLEAR_ command, empty read is issued. + removed forward declaration of event() - cleaning Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-07-13hub: Do not allow unitialized driver to be loadedAmir Hammad1-1/+8
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-07-13Global logging: use \n for a new line instead \r\n in LOG_PRINTFAmir Hammad1-26/+26
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-07-13hub: Fix forgotten breakAmir Hammad1-0/+5
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-08Device drivers: Refactor: Remove prefixes of static functions and variablesAmir Hammad1-11/+11
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-08Device drivers: Refactor: Move driver declaration to the end of fileAmir Hammad1-24/+19
forward declarations are not needed Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-06Refactor device drivers: don't use automatic castsAmir Hammad1-6/+6
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01poll(): refactor every poll argument t_us and tflp -> time_curr_usAmir Hammad1-3/+3
added comment to usbh_hubbed.h Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01libusbhost: Open source USB host stack for embedded devicesAmir Hammad1-0/+865
First public version, date: 1.4.2015 Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>