Commit graph

28 commits

Author SHA1 Message Date
jaseg
447d084d79 First steps to prove cobs decoder 2018-12-17 13:38:39 +09:00
jaseg
050d49a56b Noise integration compiles 2018-11-08 15:41:46 +09:00
Amir Hammad
2c81d1a3e6 drivers: remove redundant forward declaration of usbh_dev_driver_t
It is already declared in usbh_core.h

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:31:48 +02:00
Amir Hammad
8946cb522b lld: rework low level driver initialization
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:31:48 +02:00
Amir Hammad
decb2d817d use forward declaration for usbh_dev_driver_t
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:31:48 +02:00
Amir Hammad
b895498df9 hub: use common code to remove device
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:31:47 +02:00
Amir Hammad
2c23090d49 core: use new control wrapper to set configuration to device
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:31:47 +02:00
Amir Hammad
7c4ae8d7aa core: use new control wrapper to read device descriptor
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:31:47 +02:00
Amir Hammad
c4e6f3b55b core: add helper state machine for control read/write
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:31:47 +02:00
Amir Hammad
58fec7a17c Drop need for the set configuration request in dev drivers
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:31:47 +02:00
Amir Hammad
3d68ea2807 make hid_mouse driver generic HID driver
+ 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-11 13:30:13 +02:00
Amir Hammad
ed70a1efa3 Switch to cmake build system
* use tinyprintf
* ability to configure project via ccmake

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-11 13:30:10 +02:00
Amir Hammad
4aa69b4eaf make usbh_packet->data of union type
out: const void *
in: void *

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-08 07:54:06 +02:00
Amir Hammad
e0fbb799bd usbh_core refactor
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-09-08 07:54:06 +02:00
Amir Hammad
96dd22d047 core: make endpoint_type of enum USBH_ENDPOINT_TYPE
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-08-23 07:15:56 +02:00
Amir Hammad
3e95b389c3 add option to pass data to control writes
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-30 12:24:20 +02:00
Amir Hammad
ac7eae8866 Adjust documentation to fit doxygen
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-09 00:22:22 +02:00
Amir Hammad
4f3a3905c9 rename usbh_hubbed.* to usbh_core.*
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08 23:53:42 +02:00
Amir Hammad
1c8aa9d315 rename usbh_driver to usbh_low_level_driver
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08 23:45:57 +02:00
Amir Hammad
2c0f82a4f0 documentation: add some basic documentation accross the headers
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08 23:45:57 +02:00
Amir Hammad
e61ed66174 refactor: use enum instead of #define: USBH_ENDPOINT_TYPE and USBH_SPEED
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-07-08 23:22:53 +02:00
Amir Hammad
40192caee0 let the user build an array of lld drivers
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-25 10:09:54 +02:00
Amir Hammad
0432429aa6 move USE_STM32f4_USBH_DRIVER_HS/FS from config.mk to usbh_config.h
Leave the behaviour as before: Default: FullSpeed

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-25 10:09:54 +02:00
Amir Hammad
2963113e8e Merged usb midi code into current libusbmaster
+ merge fixes

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2016-06-20 22:34:32 +02:00
Amir Hammad
e31939e22f usbh_hubbed: reorder items in _usbh_dev_driver struct
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-05 13:27:44 +02:00
Amir Hammad
efa0baa458 use stdbool.h to define bool type
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-05 12:14:47 +02:00
Amir Hammad
e35c1e9fc6 poll(): refactor every poll argument t_us and tflp -> time_curr_us
added comment to usbh_hubbed.h

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01 18:29:32 +02:00
Amir Hammad
7acc6fe474 libusbhost: Open source USB host stack for embedded devices
First public version, date: 1.4.2015

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
2015-04-01 16:22:05 +02:00