Ha Thach
7503b9f18c
Merge pull request #733 from hathach/fix-nrf-dcd-bulk-out-race
...
fix race condition that could cause drop packet of Bulk OUT transfer
2021-03-19 10:00:30 +07:00
hathach
64f41dea62
fix race condition that could cause drop packet of Bulk OUT transfer
...
NRF_USBD->SIZE.EPOUT[epnum] only need to write once to enable
Bulk/Interrupt transfer. We only need to do it in dcd_edpt_open() and
dcd_edpt_clear_stall()
2021-03-18 15:07:07 +07:00
Ha Thach
881321e763
Merge pull request #724 from xmos-jmccarthy/master
...
USB TMC Updates
2021-03-18 11:17:43 +07:00
Jeremiah McCarthy
ec08dcf61a
Implement requested changes for PR724
2021-03-17 09:25:01 -04:00
Michael Bruno
62d4652f86
Update usbtmc_device.c
...
Fix buffer alignment in TMC device class
2021-03-16 10:48:42 -04:00
hathach
82e24306e2
fix build with OPT_MCU_LPC177X_8X
2021-03-16 15:49:09 +07:00
Ha Thach
3a27a9405f
Release 0.9.0 ( #716 )
...
* update change log for release
* move changelog into docs/
* more changelog
* increase macro version
2021-03-12 15:10:47 +07:00
hathach
31373fd55c
use !tu_fifo_empty() instead of tu_fifo_count()
2021-03-12 12:55:18 +07:00
hathach
4310941daa
Merge branch 'cdc_read' of https://github.com/HiFiPhile/tinyusb into HiFiPhile-cdc_read
2021-03-12 12:49:44 +07:00
HiFiPhile
5caad485f1
Add fifo empty check.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2021-03-11 20:36:46 +01:00
HiFiPhile
7fc99a9e11
Call One time tu_fifo_write_n on cdcd_xfer_cb
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2021-03-10 10:19:45 +01:00
hathach
eeea19c0ab
usbd ack SET_INTERFACE if it is not implemented by class driver.
2021-03-10 11:33:03 +07:00
Ha Thach
5285548c75
Merge pull request #700 from hathach/fix-rp2040-bus-reset
...
fix enum walkaround forever check for SE0 when pull up is disabled
2021-03-04 21:01:39 +07:00
hathach
33a29c9e4c
add midi comment
2021-03-04 19:30:08 +07:00
hathach
8cabbb28df
fix enum walkaround forever check for SE0 when pull up is disabled
2021-03-04 18:36:18 +07:00
hathach
a655a4169e
add note for MIDI (audio v1.0) endpoint decriptor use 9 bytes instead of 7
2021-03-04 01:18:49 +07:00
Ha Thach
68db108b35
Merge pull request #688 from duddie/master
...
Fix Endpoint descriptor size for MIDI Device
2021-03-04 01:10:37 +07:00
hathach
a298045f6c
clean up
2021-03-02 23:30:21 +07:00
hathach
9d5e369170
rp2040 add disconnection detection
...
- also use dcd_event_bus_reset()
- Add TODO for suspend, resume later on (need to test with/without vbus
detection).
2021-03-02 23:24:36 +07:00
hathach
1676a836d1
fix rp2040 host build
2021-03-02 14:54:12 +07:00
Ha Thach
559ff80643
Merge pull request #684 from hathach/rp2040-host-example
...
add rp2040 to host example build
2021-03-02 13:03:52 +07:00
Duddie
72c1066ed1
Fix Endpoint descriptor for MIDI Device
...
Endpoint descriptor should be 9 bytes in length (not 7) and have two extra bytes at the end: bRefresh and bSynchAddress
According to MIDI USB specification 1.0 (6.2.1 Standard MS Bulk Data Endpoint Descriptor)
2021-02-28 22:18:35 +08:00
Ha Thach
5a753c1ab0
Merge pull request #675 from majbthrd/rp2040epaddr
...
rp2040: use TU endpoint conventions and remove redundant variables
2021-02-27 00:38:53 +07:00
Peter Lawrence
eb44b6f7db
rp2040: improve _hw_endpoint_init()
2021-02-26 11:07:34 -06:00
hathach
f6b48c07fc
add rp2040 to host example build
2021-02-26 14:05:08 +07:00
Ha Thach
c6eeee1b79
Merge pull request #683 from amitv87/handle_break_req
...
Handle CDC_REQUEST_SEND_BREAK
2021-02-26 12:54:50 +07:00
boggyb
55a46a5c3b
Update cdc_device.h
...
Minor api callback change as requested
2021-02-26 11:00:34 +05:30
Ha Thach
0c05a02e67
Merge pull request #682 from hathach/rp2040_fix_hcd_init
...
Update RP2040 hcd_init to have rhport argument.
2021-02-26 11:52:48 +07:00
amit verma
07a04255da
initial break request handling
2021-02-25 23:13:21 +05:30
Liam Fraser
e6e7c73f6e
Update RP2040 hcd_init to have rhport argument.
2021-02-25 15:48:19 +00:00
majbthrd
efea18a888
Merge branch 'master' into rp2040epaddr
2021-02-25 09:15:42 -06:00
majbthrd
0632ecf556
Merge branch 'master' into rp2040device
2021-02-25 08:57:09 -06:00
Peter Lawrence
999ef227d0
rp2040: requested code mode in rp2040_usb.h
2021-02-25 08:45:47 -06:00
Ha Thach
50a0bddd8b
Merge pull request #672 from majbthrd/rp2040trim
...
rp2040: correctly size variables to reduce RAM usage
2021-02-25 21:17:59 +07:00
Peter Lawrence
762f262be7
rp2040: requested change from TU_MIN to tu_min16
2021-02-25 07:58:54 -06:00
Kamil Tomaszewski
448dcdc4cf
spresense: fix setup processed flag
2021-02-24 17:39:16 +01:00
hathach
a070626729
add itf argument to hid API to support multiple instances
...
following API signature is changed:
- tud_hid_descriptor_report_cb()
- tud_hid_get_report_cb()
- tud_hid_set_report_cb()
- tud_hid_boot_mode_cb()
- tud_hid_set_idle_cb()
2021-02-24 14:27:20 +07:00
Peter Lawrence
e00178a1af
rp2040: don't compile in host code when in device mode
2021-02-23 14:04:56 -06:00
Peter Lawrence
c5422a5c48
rp2040: use TU endpoint conventions and remove redundant variables
2021-02-23 12:06:41 -06:00
Ha Thach
656673fb58
Merge pull request #674 from hathach/host-msc
...
Enhance Host MSC
2021-02-24 00:19:38 +07:00
hathach
451650fa32
move ehci and ohci to portable folder
2021-02-23 23:09:48 +07:00
Peter Lawrence
5a8ae31316
rp2040: leverage existing macro for capping endpoints in pico-sdk
2021-02-23 10:08:38 -06:00
hathach
0de6a05d73
fix ohci hcd_init() signature change
2021-02-23 19:45:53 +07:00
hathach
5108d76136
host msc: call read_capacity as part of enumeration
...
- add tuh_msc_get_block_count(), tuh_msc_get_block_size()
- rename tuh_msc_mounted_cb/tuh_msc_unmounted_cb to
tuh_msc_mount_cb/tuh_msc_unmount_cb to match device stack naming
- change tuh_msc_is_busy() to tuh_msc_ready()
- add CFG_TUH_MSC_MAXLUN (default to 4) to hold lun capacities
- add host msc configured to for state check.
2021-02-23 19:41:11 +07:00
hathach
386a386345
clean up host msc
2021-02-23 12:20:30 +07:00
Ha Thach
cea31c346d
Merge pull request #575 from nwlab/yaa/msc_read
...
Added MSC read10 and write10 function
2021-02-23 11:51:48 +07:00
hathach
ade4bf74ea
update function comment
2021-02-23 11:38:15 +07:00
hathach
f2ed2ae09a
rename tuh_msc_scsi_inquiry() to tuh_msc_inquiry()
2021-02-23 11:14:19 +07:00
Peter Lawrence
592d047936
rp2040: correctly size variables to reduce RAM usage
2021-02-22 20:53:16 -06:00
hathach
de95585258
nxp tdi: hcd_init() reset and set host mode
2021-02-23 01:27:52 +07:00