HiFiPhile
376b43906a
Convert to bit-field since it's more reliable.
2024-05-09 21:55:28 +02:00
Ha Thach
ba6babf570
Rework ci ( #2631 )
...
* add name field to usbd_class_driver_t
* ci: use set matrix py script
* add riscv32 and cmake support for ch32v307, fomu, gd32vf103
* update build_cmake.py to take --family --board --toolchain
* separate hil test to its own workflow
* move esp32 board into separated hil json
* add make build to ci
* remov build_make.py
* build.py support esp32 board
* setup toolchain support esp-idf
* fix missing click
* merge family in matrix build to reduce jobs
* skip cifuzz since it still has issue with get_deps and click
2024-05-09 20:43:46 +07:00
hathach
be25a3fc20
revert usbd driver name change to be backward compatible
2024-04-08 22:56:22 +07:00
hathach
c3c0648456
add class driver deinit
2024-04-08 22:07:56 +07:00
hathach
19d7d62e80
try to add samd51 to hil pool using doublereset (rpi gpio) and bossac
2023-12-13 18:54:00 +07:00
hathach
1b9108ea0d
minor debug clean up
2023-09-06 17:11:35 +07:00
hathach
1b33a31536
more minor clean up
...
- also rename usbh_classdriver.h to usbh_pvt.h to consitent with usbd
2023-08-15 22:54:07 +07:00
hathach
77495cf119
improve logging, allow easier to turn off usbd, driver logging
...
can be useful when focusing on let's say usbh
2023-07-20 17:12:00 +07:00
hathach
3623ba1884
fix trailing space and new line
...
temporarily disable codespell
2023-03-17 16:12:49 +07:00
Mengsk
fe8c170c98
Add dcd_edpt_iso_alloc() / dcd_edpt_iso_activate() for ISO EP buffer management.
2022-12-29 19:19:27 +01:00
hathach
8451d05c50
revert sof_isr driver rename since it cause issue with existing code
...
also removed commented tud_sof_isr_set() API
2022-06-10 01:45:48 +07:00
hathach
8b9cf152a0
rhport argument in usbd_ API() is not used (always use the initialized port)
...
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
hathach
65b6b79e99
clean up and comment out tud_sof_isr_set
2022-03-29 16:53:45 +07:00
Reinhard Panhuber
26339e694f
Merge remote-tracking branch 'upstream/add-sof-isr' into add-sof-isr
2022-03-14 20:40:57 +01:00
Reinhard Panhuber
f212899b54
Add SOF callback function for feedback value determination in uac - wip!
2022-03-14 20:40:33 +01:00
hathach
171d021ab5
refactor and integrate usbh control xfer back to usbh.c
...
fix enumeration with hub when reset port before set address
2022-03-10 22:22:05 +07:00
hathach
4a5a53b3b8
improve rphort management for usbd
2022-02-25 18:35:21 +07:00
hathach
d047b28aa2
remove set/clear busy flag in set/clear stall since they are different status
...
note: dcd should resume to prio-stalled queued transfer when unstall
2021-08-31 17:39:54 +07:00
Wini-Buh
60d8ecbfe6
clean up
2021-06-11 22:36:17 +02:00
Wini-Buh
1c23462b43
weak atrribute work around removed from CCRX_Port
2021-06-11 22:25:36 +02:00
hathach
13cb016042
add usbh_classdriver.h
2021-06-10 16:48:20 +07:00
Wini-Buh
5a554508ca
Merge remote-tracking branch 'upstream/master' into CCRX_Port
2021-06-03 22:17:30 +02:00
Wini-Buh
b4f092ec74
Adaptations for Renesas CCRX toolchain and Rx72N controller performed
2021-05-29 21:23:39 +02:00
hathach
c7cecf28c8
clean up
2021-05-27 00:16:45 +07:00
hathach
faa31152b4
rename usbd_edpt_iso_xfer to usbd_edpt_xfer_fifo
2021-05-26 20:34:06 +07:00
hathach
40cd3a7e20
Merge branch 'master' into host-hid
2021-05-18 13:08:30 +07:00
Reinhard Panhuber
84406f1654
Rework audio driver
2021-01-31 19:08:23 +01:00
Reinhard Panhuber
56edc2b261
Change names from edpt_ISO_xfer to edpt_iso_xfer
2021-01-19 10:50:19 +01:00
Reinhard Panhuber
2284db1fb5
Add usbd_edpt_ISO_xfer()
2021-01-18 17:14:17 +01:00
Reinhard Panhuber
09d8ead4b8
Start changes - not yet finished
2021-01-04 12:02:08 +01:00
hathach
e4144d8b47
remove control_complete
2020-11-20 17:21:01 +07:00
hathach
3c31d08051
merge class driver control_request & control_complete to control_xfer_cb()
...
migrated msc_device
2020-11-19 21:01:33 +07:00
hathach
801f8b5b38
update claim edpt for hid and midi
2020-09-10 23:32:08 +07:00
hathach
8b9893cada
introduce optional usbd_edpt_claim, usbd_edpt_release which can be used to gain exclusive access to usbd_edpt_xfer
2020-09-09 15:48:11 +07:00
hathach
a9d362185b
update note for app driver list mustbe accesible at all time.
2020-08-07 15:06:19 +07:00
hathach
9df8057702
Merge branch 'master' into add-app-driver
2020-08-07 12:13:13 +07:00
hathach
c14c0cfc9f
support class drivers implemented by application
2020-04-29 10:49:58 +07:00
hathach
017c95037f
add usbd edpt open
...
- RTT mode is blocking to prevent log lost
- Improve logging message
2020-04-26 14:51:44 +07:00
Nathan Conrad
f8e7487355
edpt_close: Updated based on feedback.
2020-04-13 09:51:46 -04:00
hathach
a0002cc709
rename usbd_init() to tud_init()
2019-10-30 23:26:34 +07:00
hathach
204791b3e7
2nd attempt to fix #161
2019-10-01 22:19:04 +07:00
hathach
2a543c0e79
update vendor device similar to cdc read/write
...
maybe refactor later
2019-07-24 23:07:30 +07:00
hathach
036e858543
add tud_control_vendor_request_cb()/tud_control_vendor_complete_cb(), expose usbd control transfer
...
rename usbd_control_transfer/status to tud_control_transfer/status
2019-07-16 18:14:47 +07:00
hathach
a0307bafda
added usbd_edpt_xfer/usbd_edpt_busy to replace dcd_edpt_transfer/dcd_edpt_busy()
...
- improve fifo write/read_n with only one lock
- use usbd_edpt_xfer/usbd_edpt_busy for hid/cdc/msc class driver
- replace cdc read's pending_read_from_host by usbd_edpt_busy()
2019-05-29 16:55:15 +07:00
hathach
61ec407752
update license year to 2019
2019-05-14 11:48:05 +07:00
hathach
c006f3dbce
adding optional ep out for hid
...
refactor usbd_open_edpt_pair
2019-05-01 19:29:56 +07:00
hathach
23bcf1cc7a
remove auto descriptor and its option CFG_TUD_DESC_AUTO
2019-04-18 23:59:21 +07:00
hathach
f26fbaf404
clean up remove usbd_control_stall()
2019-03-27 16:26:52 +07:00
hathach
1e9848d917
replace dcd_edpt_(clear)stall by usbd_edpt_(clear)stall
...
- remove dcd_edpt_stalled() from dcd porting
2019-03-27 16:09:49 +07:00
hathach
c211ee19dd
migrate license from BSD 3 clause to MIT
2019-03-20 16:11:42 +07:00