summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-09-11lld: add mask with epdirAmir Hammad1-1/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11use default case instead of handling other packet statuses explicitelyAmir Hammad5-47/+20
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11xbox: remove warning about unused variableAmir Hammad1-1/+0
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11drivers: remove redundant forward declaration of usbh_dev_driver_tAmir Hammad4-7/+0
It is already declared in usbh_core.h Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11lld: remove not used error_count field in channel structAmir Hammad1-2/+0
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11lld: simplify stm32f4_usbh_port_channel_setupAmir Hammad1-36/+23
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11lld: rework low level driver initializationAmir Hammad5-19/+20
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11use forward declaration for usbh_dev_driver_tAmir Hammad9-90/+93
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11Doc: set HAVE_DOT propertyAmir Hammad1-1/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11use NULL instead of 0 for assigning null pointerAmir Hammad5-15/+18
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11midi: rename prefix of static functionsAmir Hammad1-12/+12
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11lld: don't enable channel on write nack, return EAGAIN insteadAmir Hammad1-3/+12
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11hub: use common code to remove deviceAmir Hammad3-7/+3
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11remove detection of hangAmir Hammad1-5/+0
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11HUB: make use of control wrappers + use enumsAmir Hammad2-218/+84
Until now, hardcoded numbers were used as states. Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11hid: use control wrapper to simplify hid report writesAmir Hammad1-80/+8
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11core: use new control wrapper to set configuration to deviceAmir Hammad2-22/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11core: use new control wrapper to read device descriptorAmir Hammad2-28/+3
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11core: use new control wrapper to set device's addressAmir Hammad1-22/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11core: add helper state machine for control read/writeAmir Hammad2-24/+122
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 Hammad6-212/+112
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11core: Simplify device removesAmir Hammad2-25/+15
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11Added travis.ymlAmir Hammad2-0/+18
and badge Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11make hid_mouse driver generic HID driverAmir Hammad8-365/+648
+ keyboard support + SET_REPORT commands - usually leds on keyboards (WIP) - missing parsing of HID report descriptor Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11Switch to cmake build systemAmir Hammad19-381/+1012
* use tinyprintf * ability to configure project via ccmake Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-08core: adjust search for the device driverAmir Hammad1-28/+29
in finding compatibility there are 3 steps how to find out whether the provided device driver supports currently inserted device. 1. compare fields in the driver info structure If there is a match (all CHECK_PARTIAL_COMPATIBILITY() macros return true), we proceed to step 2. If all device drivers are searched, but none is compatible -> that means no device driver is available for currently inserted device. 2. try to call driver's init function. If it return non-null pointer to data we may proceed to the step 3. Otherwise, we continue in the loop handling step 1. 3. call analyze descriptor for all descriptors. When it returns true, it means success and that the driver supports current device. From now on poll function is allowed to be called. If all descriptors were provided to the analyze_descriptor method and it still returns false, it means device driver is not initialized and should not be used with this device. Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-08make usbh_packet->data of union typeAmir Hammad7-17/+20
out: const void * in: void * Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-08usbh_core refactorAmir Hammad2-83/+118
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-01fix bmRequestType field - use of definesAmir Hammad4-18/+18
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-23core: make endpoint_type of enum USBH_ENDPOINT_TYPEAmir Hammad1-1/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-08-23remove not needed carriage returns in printfAmir Hammad3-3/+3
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-30usbh_core: logs: DEVICE DESCRIPTOR EOLAmir Hammad1-1/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-30lld: stm32f4: fix logsAmir Hammad1-2/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-30add option to pass data to control writesAmir Hammad7-32/+60
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-25Fix broken demo after reworkAmir Hammad1-2/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-09Adjust documentation to fit doxygenAmir Hammad7-14/+27
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-09Add doxyfileAmir Hammad4-1/+2413
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08rename usbh_hubbed.* to usbh_core.*Amir Hammad12-14/+14
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08lld: stm32f4: adjust reporting of the unahandled block of codeAmir Hammad1-1/+1
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08rename usbh_driver to usbh_low_level_driverAmir Hammad3-11/+11
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08documentation: add some basic documentation accross the headersAmir Hammad7-20/+171
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08refactor: use enum instead of #define: USBH_ENDPOINT_TYPE and USBH_SPEEDAmir Hammad7-30/+33
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-25Embed information about compilation with the debug functions into make outputAmir Hammad2-29/+2
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-25Don't compile usart_helpers.o when USART_DEBUG is not definedAmir Hammad2-2/+6
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-25let the user build an array of lld driversAmir Hammad3-13/+10
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-25move USE_STM32f4_USBH_DRIVER_HS/FS from config.mk to usbh_config.hAmir Hammad4-8/+8
Leave the behaviour as before: Default: FullSpeed Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-20add todo: clean-up makefilesAmir Hammad1-1/+2
* organize files properly into directories * avoid the need for make clean Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-20Merged usb midi code into current libusbmasterAmir Hammad6-0/+522
+ merge fixes Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>