Ha Thach
ecb100a62f
Merge pull request #938 from HiFiPhile/uac_example
...
Bug fix and Enhancements of UAC2
2021-07-06 22:57:48 +07:00
MasterPhi
72f916423e
Fix copy byte count
2021-07-06 10:56:13 +02:00
MasterPhi
82d355aefe
- Remove alt_setting alignment
2021-07-06 00:25:00 +02:00
MasterPhi
05a1b854ff
ENCODE -> DECODE
2021-07-05 21:00:37 +02:00
Mengsk
c2b9ac9dd4
Fix ATTR_MANIFESTATION_TOLERANT logic.
2021-07-05 17:57:23 +02:00
Mengsk
c2d8ed3fd1
Add alt settings support in DFU class.
2021-07-05 17:56:21 +02:00
Ha Thach
4468b14580
Merge pull request #949 from kkitayam/add_suspend_and_resume_for_rx_family
...
Add SUSPEND/RESUME handling for Renesas RX family.
2021-07-05 20:46:11 +07:00
kkitayam
1ff3b76451
remove unnecessary blocking operation.
...
add comments why resume event is sent manually.
2021-07-05 21:27:08 +09:00
Ha Thach
2ae19ce40d
Merge pull request #913 from xmos-jmccarthy/master
...
Add dfu function memory access protection
2021-07-05 12:51:07 +07:00
hathach
dfe410ea8b
fix ci build, address review comment
2021-07-05 12:38:15 +07:00
hathach
227dd2d40a
Merge branch 'master' of https://github.com/xmos-jmccarthy/tinyusb into xmos-jmccarthy-master
2021-07-05 12:33:11 +07:00
Ha Thach
0a230d57ee
Merge pull request #931 from hathach/more-hid-host
...
More hid host update
2021-07-05 00:23:56 +07:00
MasterPhi
98d921c4b3
Better handling tud_audio_set_itf_cb with FB.
2021-07-04 15:46:13 +02:00
MasterPhi
1c8b685457
Move audio_control_request_t to audio.h
2021-07-04 15:46:12 +02:00
MasterPhi
61fd0e2c1c
Delay tud_audio_set_itf_cb call with feedback EP.
2021-07-04 15:46:12 +02:00
MasterPhi
090859bf42
Fix speed detection
2021-07-04 15:46:12 +02:00
MasterPhi
449936c0f1
more uac fixes,
2021-07-04 15:46:12 +02:00
MasterPhi
5f67e5c1e9
Clear FIFO only if enabled...
...
Add buffer align
2021-07-04 15:46:11 +02:00
MasterPhi
204f3152cb
audio_device : clear fifo on intf change.
2021-07-04 15:46:11 +02:00
MasterPhi
6e9da70c18
Fix audiod_get_AS_interface_index in audio class.
...
Enhance uac2_headset example with multiple sample rates.
Add macro to calculate EP size.
2021-07-04 15:46:10 +02:00
kkitayam
3019c6eb40
Add SUSPEND/RESUME handling for Renesas RX family.
2021-07-03 23:35:58 +09:00
Ha Thach
896388d796
Merge pull request #942 from hathach/hid-set-report
...
Better Support Hid Get/Set report
2021-07-02 13:02:29 +07:00
hathach
2b3d547b7b
clean up
2021-07-01 23:05:21 +07:00
hathach
ca98996e1f
better support for hid device set/get protocol
...
add caplock detection for hid_composite
2021-07-01 22:46:39 +07:00
MasterPhi
7321972380
Force unsigned compare on advance_pointer.
2021-06-30 20:26:27 +02:00
Mengsk
2b2549b573
Fix fifo overflow correction.
2021-06-30 17:00:56 +02:00
Wini-Buh
4c0cce4b1d
Make toolchain dependency more consistent
2021-06-29 21:45:18 +02:00
Ha Thach
3b539fdd8d
Merge pull request #905 from HiFiPhile/uac_fix
...
UAC fixes
2021-06-29 22:34:57 +07:00
hathach
3eec011a7c
add tud_vendor_control_request_cb() to poisoned list
2021-06-29 17:28:35 +07:00
MasterPhi
5877f20d4b
Fix IAR compile error on pointer type.
...
Clean up warnings.
Signed-off-by: MasterPhi <admin@hifiphile.com>
2021-06-29 10:57:26 +02:00
Wini-Buh
36ba9608bd
Merge from current master. Fixed a compilation error with the GNUC toolchain
2021-06-29 00:43:41 +02:00
Wini-Buh
cb0f1d98db
Merge remote-tracking branch 'origin/master' into CCRX_Port
...
# Conflicts:
# src/portable/renesas/usba/dcd_usba.c
# src/tusb_option.h
2021-06-29 00:19:30 +02:00
hathach
c172caa288
clean up
2021-06-29 00:03:34 +07:00
hathach
efc12ae7d4
fix SET_PROTOCOl, update hid host behavior for default boot interface
2021-06-28 23:57:57 +07:00
hathach
268dcc8d20
fix issue with weird msc device with 3 endpoints
2021-06-28 17:39:57 +07:00
hathach
58d3e8c08b
update func comment
2021-06-28 17:39:57 +07:00
hathach
c99b70c08c
force boot protocol for keyboard/mouse
2021-06-28 17:39:57 +07:00
hathach
5811122cfd
change usbh open driver to have max_len and return driver len
2021-06-28 17:39:57 +07:00
Ha Thach
6e939de9d6
Merge pull request #891 from hathach/host-rp2040-double-buffer
...
RP2040 double buffer
2021-06-28 17:39:09 +07:00
Ha Thach
b2feae15e4
Merge pull request #927 from hathach/add-rx65n-board
...
Add rx65n board
2021-06-28 13:53:42 +07:00
DuMaM
b5ce269675
GCC 11 build fix
...
During Adafruit Bootloader compilation, I spotted bellow error which do not allow me build project.
``` c
inlined from 'hfclk_running' at lib/tinyusb/src/portable/nordic/nrf5x/dcd_nrf5x.c:785:13:
lib/tinyusb/src/portable/nordic/nrf5x/dcd_nrf5x.c:792:31: error: 'is_running' may be used uninitialized [-Werror=maybe-uninitialized]
792 | return (is_running ? true : false);
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
```
2021-06-26 17:03:46 +02:00
kkitayam
393a9120ac
add the entry for RX65N
2021-06-26 23:09:18 +09:00
MasterPhi
64f53c304c
Merge branch 'local' of https://github.com/HiFiPhile/tinyusb into dcd_same70
2021-06-24 21:35:06 +02:00
Mengsk
b9e9773d04
fix warning
2021-06-24 12:58:18 +02:00
Mengsk
9d6fd78b63
Add fifo helper function to CDC class for DMA transfer.
2021-06-24 11:34:29 +02:00
Jeremiah McCarthy
f5f087b2f8
Add dfu function memory access protection
...
Adds TU_VERIFY to dfu internal buffer access from host.
Adds TU_ASSERT to dfu internal buffer access by application.
2021-06-23 10:58:18 -04:00
Wini-Buh
51c6444e1d
final clean up
2021-06-22 23:49:24 +02:00
Wini-Buh
c5f6b57755
Merge remote-tracking branch 'upstream/master' into CCRX_Port
2021-06-22 23:21:01 +02:00
Niklas Hauser
264dc35b95
Fix typo in TUH configuration define
2021-06-21 05:32:43 +02:00
hathach
9323a9d094
fix issue when calling midi API when not enumerated yet
2021-06-21 00:00:46 +07:00
MasterPhi
8433f638e6
Add bracket to switch case, fix warning.
2021-06-20 15:39:47 +02:00
hathach
fbda7d5837
adding rx65n
2021-06-20 15:04:39 +07:00
Ha Thach
81fa9966de
Merge pull request #895 from ElectronicCats/master
...
add support SAML21
2021-06-20 01:01:00 +07:00
Ned Konz
76336a67a0
Changed order of struct initializer to avoid compiler error
2021-06-18 14:50:55 -07:00
hathach
6b621baeb3
fix race condition with control since TASKS_EP0RCVOUT also require EasyDMA
2021-06-19 01:58:27 +07:00
hathach
82618d2d5f
fix build with mm32 board
2021-06-18 17:18:11 +07:00
hathach
5006b1065a
remove duplicate mm32 dcd
2021-06-18 12:49:41 +07:00
zhangslice
7b27607f1a
mit license
...
Signed-off-by: zhangslice <1304224508@qq.com>
2021-06-18 12:46:27 +07:00
zhangslice
3ba72b53d8
Add MM32 SDK and USB driver
...
Signed-off-by: zhangslice <1304224508@qq.com>
2021-06-18 12:46:27 +07:00
hathach
832d22d7ad
force single buffered for device mode, out endpoint
2021-06-17 01:55:35 +07:00
MasterPhi
30fff56aa4
Revert "Use byte copy.", add barrier after buffer write.
...
Signed-off-by: MasterPhi <admin@hifiphile.com>
2021-06-16 00:18:38 +02:00
MasterPhi
67a6560ec9
Default use dual bank for FS, use dcd irq switch.
2021-06-15 21:52:14 +02:00
MasterPhi
6cc702e9ec
Prevent buffer overflow.
...
Signed-off-by: MasterPhi <admin@hifiphile.com>
2021-06-15 21:16:51 +02:00
MasterPhi
54dc694be4
Use byte copy.
2021-06-15 19:11:53 +02:00
MasterPhi
ca8e8041ef
Fix resume, always init FS clock.
...
Signed-off-by: MasterPhi <admin@hifiphile.com>
2021-06-15 17:53:09 +02:00
sabas1080
7bed7d70f0
add support SAML21
2021-06-15 00:01:28 -05:00
hathach
5c567129ea
fix calculating xferred bytes with double buffer with short packet on buffer0
2021-06-13 18:30:26 +07:00
hathach
f38c460433
fix ep tx with double buffered
2021-06-13 17:19:14 +07:00
hathach
bd039c8d37
fix build with log for device
2021-06-13 16:16:25 +07:00
hathach
1af64f9729
remove sent_setup from hw endpoint
2021-06-13 15:31:00 +07:00
hathach
289ccf3c93
remove dev_ep_map
2021-06-13 13:19:20 +07:00
MasterPhi
85fc423569
Rename SAM7X to SAMX7X
...
Signed-off-by: MasterPhi <admin@hifiphile.com>
2021-06-12 12:36:59 +02:00
MasterPhi
f039607afc
Fix indent.
...
Signed-off-by: MasterPhi <admin@hifiphile.com>
2021-06-12 11:19:08 +02:00
hathach
a4ad064e63
increase example CFG_TUH_HID from 2 to 4
2021-06-12 14:20:09 +07:00
Rafael Silva
776a770947
dcd: sam7x: rename family dcd to include the whole family
...
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2021-06-12 00:09:24 +01: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
Rafael Silva
2196991df3
dcd: same70: trim trailling spaces
...
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2021-06-11 21:03:36 +01:00
Rafael Silva
bcd3e31bd6
dcd: same70: fix unused variable warning
...
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2021-06-11 20:59:48 +01:00
Rafael Silva
9a03ab9dfa
dcd: same70: change cmsis deprecated macros
...
Signed-off-by: Rafael Silva <perigoso@riseup.net>
2021-06-11 20:52:22 +01:00
hathach
910e11a8ab
fix ci build
2021-06-11 19:04:16 +07:00
hathach
dfe5a727c6
log clean up
2021-06-11 18:54:09 +07:00
hathach
b39faa15ef
map pico_info to log2, pico_trace to log3
2021-06-11 18:44:08 +07:00
hathach
a6d22f5a68
replace pico_warn by log level 1
2021-06-11 18:40:01 +07:00
hathach
66c8a13f13
remove unused variable in hw endpoint
...
last_buf, buf_sel, transfer_size
2021-06-11 18:26:41 +07:00
hathach
93cb2ff4cf
more refactor double buffered rp2040
2021-06-11 18:16:13 +07:00
hathach
1d48320d8a
rename hw endpoint
...
- total_len to remaining_len
- len to xferred_len
2021-06-11 17:58:29 +07:00
hathach
5d6e381ef6
refactor rp2040 usb
...
- make _hw_endpoint_xfer_sync and _hw_endpoint_start_next_buffer private
- drop prefix _ from _hw_endpoint_xfer_continue and
_hw_endpoint_reset_transfer
2021-06-11 17:34:51 +07:00
MasterPhi
c291deccfa
Add fifo & DMA linked list mode support.
2021-06-11 12:17:11 +02:00
HiFiPhile
24de9d39af
Format.
2021-06-11 12:17:11 +02:00
HiFiPhile
1dafcd1132
- Add Full Speed switch
...
- Add DMA support
- Add Dual bank support
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2021-06-11 12:17:11 +02:00
HiFiPhile
4f4a33b378
Seems like fixed ep0 issues, code format.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2021-06-11 12:17:11 +02:00
HiFiPhile
e7bee80948
Add OPT_MCU_SAME70 option value.
2021-06-11 12:17:11 +02:00
HiFiPhile
f8aa4b3ff3
Add sketchy SAME70 DCD driver.
2021-06-11 12:17:10 +02:00
hathach
572d986a02
improve usbh
2021-06-11 17:14:22 +07:00
hathach
a1a03c92f6
double buffered work with host
2021-06-11 17:05:49 +07:00
hathach
43656dc0a7
more clean up
2021-06-10 23:29:02 +07:00
hathach
cf0a475a2e
clean up
2021-06-10 22:00:59 +07:00
hathach
c7f51cde40
implement usbh_edpt_busy (WIP), remove hcd_edpt_busy
2021-06-10 17:19:21 +07:00
hathach
7e6cba7359
remove hcd_edpt_stalled()
2021-06-10 16:55:12 +07:00
hathach
13cb016042
add usbh_classdriver.h
2021-06-10 16:48:20 +07:00
Ha Thach
3c4ab6bd8a
Merge pull request #883 from hathach/fix-rp2040-host-transferred-bytes
...
fix computing transferred bytes with E4
2021-06-10 11:35:51 +07:00
hathach
cffa666bd1
use alias for button naming
2021-06-09 17:45:14 +07:00
Marcelo Bezerra
a8abbcc34d
Change buttons to start from 0
2021-06-09 12:14:04 +02:00
hathach
d81a37d1be
fix enum overflow with msp430
2021-06-09 12:10:44 +07:00
hathach
dca9bc97d6
miss a helper
2021-06-09 10:45:37 +07:00
hathach
2c0947ebb6
update gamepad helper
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
e393fb32a0
re-adding ifdef removed accidentally
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
d3b6e28387
indent fix
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
de71e72e31
Fix comment in hid.h
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
e12195705c
Pull request changes
...
Remove configuration options and just bump number of buttons to 32
Fix button numbereing and comments in
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
ce634f226e
remove excess empty lines
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
3842c806a6
clean up
2021-06-09 10:33:57 +07:00
Marcelo Bezerra
d5f8da44d1
Add optional support for 32 gamepad buttons
2021-06-09 10:33:57 +07:00
hathach
501de2a5e8
fix computing transferred bytes with E4
2021-06-08 10:29:22 +07:00
hathach
c2b85c8d6d
add OPT_MCU_MM32F327X
...
move dcd_mm32f into mindmotion folder
2021-06-07 18:51:44 +07:00
zhangslice
26b9fc38ed
Add MM32 SDK and USB driver ( #869 )
...
* Add MM32 SDK and USB driver
* add mindmotion mm32sdk as submodule
remove the local copy of mm32
* mit license
Signed-off-by: zhangslice <1304224508@qq.com>
Co-authored-by: hathach <thach@tinyusb.org>
2021-06-07 17:32:46 +07:00
Wini-Buh
5a554508ca
Merge remote-tracking branch 'upstream/master' into CCRX_Port
2021-06-03 22:17:30 +02:00
graham sanderson
c81bc38d42
Add __unused to variables that are only used if TU_LOG does something
2021-06-03 10:10:44 -05:00
Wini-Buh
e26cf6b26c
Missing RX device dependency corrected
2021-06-02 21:33:32 +02:00
hathach
a50fd963f5
increase version for release, update changelog
2021-06-03 01:13:22 +07:00
Ha Thach
8ea0dfba68
Merge pull request #865 from kilograham/pico-0.10.0
...
Pico 0.10.0
2021-06-03 01:02:54 +07:00
hathach
54107100bb
fix missing TU_LOG symbol
2021-06-02 00:26:50 +07:00
hathach
6e2cf2a3ee
clean up log
2021-06-02 00:10:35 +07:00
hathach
bc0a0386e9
clean up
2021-05-31 18:41:08 +07:00
hathach
31077f48d2
correct ohci endpoint address in xfer complete
2021-05-31 18:16:07 +07:00
hathach
4e98ce9147
use hcd_frame_number() instead of uframe
2021-05-31 18:15:47 +07:00
hathach
da8000d42d
clean up ohci, remove obsolete api
2021-05-31 16:34:16 +07:00
hathach
04797bc5a5
clean up
2021-05-31 16:05:55 +07:00
hathach
4b2f32b778
update hub
2021-05-31 15:47:37 +07:00
hathach
65e5872d81
add hub_port_set_feature()
2021-05-31 15:19:07 +07:00
hathach
3fb80e76ce
remove obsolete hcd_pipe_queue_xfer()/hcd_pipe_xfer()
2021-05-31 12:08:37 +07:00
hathach
5cf930d78a
fix cast-align warning in msc host
2021-05-31 11:11:00 +07:00
hathach
c2a0c1507b
add more comment
2021-05-30 23:44:29 +07:00
hathach
54c9150574
add errata number
2021-05-30 23:41:59 +07:00
hathach
6498ee1996
fix incorrect data toggle when max packet size < 64
...
fix host buf_sel panic with "already available"
2021-05-30 23:35:54 +07:00
hathach
eb8ca14bf8
add level 3 log for info, add generic TU_LOG()
2021-05-30 22:19:46 +07:00
graham sanderson
3973ec4b5e
rp2040: fix debug compilation error
2021-05-30 08:16:15 -05:00
Wini-Buh
b4f092ec74
Adaptations for Renesas CCRX toolchain and Rx72N controller performed
2021-05-29 21:23:39 +02:00
hathach
164778a716
update limit each transfer not less than 64
2021-05-28 17:42:13 +07:00
hathach
e9c22e4a5c
increase version for release
2021-05-28 17:24:35 +07:00
hathach
7c66c5121b
update doc
2021-05-27 19:31:55 +07:00
hathach
9ad6fadf6a
more include clean up
2021-05-27 18:34:07 +07:00
hathach
f384d6f67e
more with clean up
2021-05-27 18:11:12 +07:00
hathach
b36b211c26
clean up tusb_fifo.h include
2021-05-27 17:58:42 +07:00
hathach
9736e54734
include clean up
2021-05-27 17:40:39 +07:00
hathach
c7cecf28c8
clean up
2021-05-27 00:16:45 +07:00
hathach
814edec89f
clean up
2021-05-26 20:34:06 +07:00
hathach
faa31152b4
rename usbd_edpt_iso_xfer to usbd_edpt_xfer_fifo
2021-05-26 20:34:06 +07:00
Ha Thach
4e2684f23a
Merge pull request #825 from ogatatsu/hid_desc
...
fix hid report descriptor
2021-05-26 20:33:45 +07:00
hathach
f9c542aa52
fix dfu example build
2021-05-26 18:16:56 +07:00
hathach
dbef50f8ff
Merge branch 'master' into xmos-jmccarthy-master
2021-05-26 17:32:49 +07:00
hathach
954056da0c
fix warnings cast function type for nrf, fix pico osal warning
...
add TODO for overflow in tusb_fifo.c
2021-05-25 21:02:40 +07:00
Jeremiah McCarthy
ce59d69520
Merge remote-tracking branch 'official/master'
2021-05-25 09:27:35 -04:00
hathach
4f03332118
clean up
2021-05-23 20:14:01 +07:00
hathach
3654d96e07
only invoke tuh_msc_umount_cb() if needed
2021-05-23 14:11:12 +07:00
hathach
8cffe4897e
change hid device internal boot_mode to protocol_mode
2021-05-23 13:56:32 +07:00
hathach
a1dab1611b
get protocol when enum with hid boot interface
2021-05-22 23:30:41 +07:00
hathach
f13a3c04f7
fix missing report in tuh_hid_set_report()
2021-05-22 22:43:55 +07:00
hathach
a2c4a48dd6
add tuh_hid_report_sent_cb()
2021-05-22 22:03:21 +07:00
hathach
b8e019da32
rename tuh_hid_get_report_cb to tuh_hid_report_received_cb()
2021-05-22 21:51:30 +07:00
hathach
df65c35b31
implement hid host set report with control transfer
...
rename mount, umount callback
2021-05-22 21:48:42 +07:00
hathach
63c57ed1a4
clean p
2021-05-22 20:55:42 +07:00
hathach
ad845db6a5
improve hid parser
2021-05-22 20:54:59 +07:00
hathach
350dfb2ea3
more hid api rename
2021-05-22 18:17:32 +07:00
hathach
89dad1ad41
update app
2021-05-22 16:48:07 +07:00
hathach
99add05aa7
simplify hid api
...
add hid set_protocol() and set_protocol_complete_cb()
2021-05-22 16:27:28 +07:00
hathach
2df5a5367f
update hid host get/set protocol to match device
2021-05-18 13:12:33 +07:00
hathach
40cd3a7e20
Merge branch 'master' into host-hid
2021-05-18 13:08:30 +07:00
hathach
ffdcf9a0d0
move report_info to application
...
update API accordingly, update hid parser for usage, and usage_page.
2021-05-18 12:58:24 +07:00
hathach
da6a7fb2bb
update hid report descriptor macro
2021-05-18 12:58:24 +07:00
hathach
5b2d117bcd
fix compile
2021-05-18 12:58:24 +07:00
hathach
93661042d9
more API update
...
- remove tuh_n_hid_n_get_report()
- usbh auto queue get report and invoke callback when received data
2021-05-18 12:58:24 +07:00
hathach
dfa8b41b96
adding hid parser
2021-05-18 12:58:24 +07:00
hathach
9ddc3bfd6d
more host hid API
...
adding hid parser
2021-05-18 12:58:24 +07:00
hathach
641f55f1f1
remove CFG_TUH_HID_KEYBOARD and CFG_TUH_HID_MOUSE
2021-05-18 12:58:24 +07:00
hathach
cc1b83412a
continue with hid host rework
2021-05-18 12:58:24 +07:00
hathach
9324fd8f2e
more hid host API rework
2021-05-18 12:58:24 +07:00
hathach
7305fec4db
change hid device report len from uint8 to uint16
2021-05-18 12:58:24 +07:00
hathach
db8ea7ea1c
clean up
2021-05-18 12:58:24 +07:00
hathach
791efecfdf
add tuh_device_ready()
2021-05-18 12:58:24 +07:00
hathach
b7a8b278c8
rename tuh_device_is_configured() to tuh_device_configured()
...
- remove tuh_device_get_state()
- more hid mouse clean up
2021-05-18 12:58:24 +07:00
hathach
69defb5edc
rename and moving
2021-05-18 12:58:24 +07:00
hathach
a5cd81a226
correct hid host mount/unmount callback
...
rename HOST_CLASS_HID to CFG_TUH_HID
2021-05-18 12:58:24 +07:00
hathach
be165a6713
reworking host hid API
2021-05-18 12:58:24 +07:00
hathach
510beef9f8
make tuh_msc_mount_cb() tuh_msc_unmount_cb() as weak callback
2021-05-18 12:58:24 +07:00
hathach
e0dbb489ae
rename CFG_TUSB_HOST_ENUM_BUFFER_SIZE to CFG_TUH_ENUMERATION_BUFSZIE
...
add usbh_get_enum_buf
2021-05-18 12:58:24 +07:00
hathach
e83bdcdfdc
reworking hid host
2021-05-18 12:58:24 +07:00
hathach
13613eafb7
correct ehci control endpoint address report on xfer complete
...
improve host log
2021-05-18 12:58:24 +07:00
hathach
3a7f8b3ac3
separte tusb_init/inited() to tud/tuh init/inited
...
add rhport to tud_init()
2021-05-18 12:58:24 +07:00
hathach
2666e1efec
add tuh_inited() and tud_inited()
2021-05-18 12:58:24 +07:00
hathach
68fa17e17c
more API rename
2021-05-18 12:58:24 +07:00
hathach
f1148ca5ac
reworking hid host
2021-05-18 12:58:24 +07:00
hathach
98f5082191
rename var to be consistent
2021-05-18 12:58:24 +07:00
hathach
1dd2cd43dd
add hcd_ehci.h as interface for ehci port
2021-05-18 12:58:24 +07:00
hathach
a26752a93e
fix build error
2021-05-18 12:45:59 +07:00
hathach
7e9e682e09
update to use HID spec protocol value for get/set_protocol()
2021-05-18 12:38:11 +07:00
hathach
e163f85ee0
clean up, rename some HID device symbol/API
...
- add tud_hid_n_interface_protocol()
- rename tud_hid_n_boot_mode() to tud_hid_n_get_protocol()
- rename tud_hid_boot_mode_cb() to tud_hid_set_protocol_cb()
- add HID_PROTOCOL_BOOT/REPORT to avoid magic number 0,1
- rename HID_PROTOCOL_NONE/KEYBOARD/MOUSE to HID_ITF_PROTOCOL_ to avoid
confusion
2021-05-18 12:32:20 +07:00
Ha Thach
2d15e11830
Merge pull request #827 from kasjer/kasjer/fix-audio-rx_done_cb
2021-05-12 00:14:31 +07:00
hathach
9233269a2c
only apply errata walkaround for nrf52
2021-05-11 18:38:23 +07:00
Jerzy Kasenberg
e2f795067a
Allow build for NRF5340 MCU
...
Errata code referred to NRF_USBD_BASE.
This definition is not present in NRF5340 but both NRF52 and NRF53
do have NRF_USBD which maps to NRF_USBD_BASE for NRF52 and
to NRF_USBD_S_BASE for NRF5340.
This just make build possible for NRF5340.
2021-05-11 12:37:08 +02:00
corvus-ossifragus
72f5202086
Update trace statements that referenced deprecated structure elements.
2021-05-10 10:09:09 -04:00
Jerzy Kasenberg
74ca1894de
audio_device: Fix build error
...
ep_in_as_intf_num was incorrectly used to access out interface
which is defined for 'in' interface.
Code related to 'out' endpoint should use ep_out_as_intf_num instead.
2021-05-10 15:58:04 +02:00
Ha Thach
2a343ba916
Merge pull request #826 from hathach/minor-cleanup
...
minor clean up
2021-05-10 19:29:45 +07:00
hathach
13de8f5d98
minor clean up
2021-05-10 19:15:46 +07:00
ogatatsu
5d69b2ac4d
fix hid report descriptor
2021-05-10 17:19:44 +09:00
corvus-ossifragus
13b510ad8e
Update hcd_rp2040.c
...
Remove reference to the deprecated "num" and "in" members of struct hw_endpoint which still exist in an assert statement and break DEBUG builds.
2021-05-07 16:49:48 -04:00
Jeremiah McCarthy
05892a5a1e
Merge branch 'master' of github.com:xmos-jmccarthy/tinyusb
2021-05-06 12:18:55 -04:00
Jeremiah McCarthy
dab1ed6b32
Add example to be tested
...
Update API description.
2021-05-05 17:42:38 -04:00
Ha Thach
42a1d2f3b9
Merge pull request #804 from hathach/audio_make_dma_ready
...
Implement functions to allow for DMA usage in audio driver.
2021-05-02 15:29:38 +07:00
hathach
18c35bb89e
some text fomarting, update unit test to test get buffer info for fifo
2021-05-02 15:01:28 +07:00
Reinhard Panhuber
5add664874
Remove n from tu_fifo_get_write_info() and fix bug in vendor class
2021-04-30 17:37:14 +02:00
Reinhard Panhuber
6acfa14fec
Fix bug in cdc_peek
2021-04-30 17:23:34 +02:00
Reinhard Panhuber
54f332fae0
Fix cdc peeks()
2021-04-30 15:42:27 +02:00
Reinhard Panhuber
5f88def9c9
Comment cleanup
2021-04-30 15:14:27 +02:00
Reinhard Panhuber
14e2c004cd
Remove variable n in tu_fifo_get_read_info()
2021-04-30 15:08:14 +02:00
Reinhard Panhuber
de933c45bc
Remove all remainings with peek_at
2021-04-30 14:56:14 +02:00
Reinhard Panhuber
5f268608d7
Remove offset feature from fifo.c
2021-04-30 13:39:55 +02:00
Reinhard Panhuber
8f72c97f7b
Change read infos to pointer type
2021-04-30 12:59:12 +02:00
Jeremiah McCarthy
f830800d00
Fix typo and clean up reset
2021-04-29 16:04:18 -04:00
hathach
c9177246d2
temporarily fix include recusrive loop
2021-04-28 12:31:24 +07:00
hathach
ba90a8cb79
use correct NBYTES_MAX for full and high speed
2021-04-26 20:22:40 +07:00
hathach
c26875e70d
add TUP_MCU_STRICT_ALIGN macro that manually pick bytes for lpc55 port1 that is m4 but cannot unaligned acces on usb ram
2021-04-26 17:42:49 +07:00
hathach
a8e109cb3d
clean up
2021-04-26 17:14:20 +07:00
hathach
8ebdf2b097
ip3511 correct buffer offset, nbytes layout for highspeed port1
...
able to get passed enumeration and up to READ10
2021-04-26 14:43:58 +07:00
hathach
f14daf2081
fix unaligned access with port1 hs
2021-04-24 15:04:58 +07:00
hathach
b15d126d59
lpc55 improve multiple controller support
...
port1 highspeed requires USB_RAM
2021-04-24 13:36:05 +07:00
hathach
7089df2088
lpc55 correct bus_reset with highspeed on support controller
...
correct hsphy init for family
2021-04-24 12:19:13 +07:00
hathach
8bed369c7f
lpc55 better multiport support
2021-04-24 11:30:14 +07:00
hathach
8642c2045c
update dcd ip3511 for better multiple rhport support
2021-04-24 10:44:14 +07:00
Reinhard Panhuber
7072f0155e
Change tu_fifo_get_linear_write/read_info() to return a struct
...
Compilers always complain that variables set by function via pointer
might be uninitialized so to avoid that return values are now delivered
via struct.
2021-04-23 11:48:54 +02:00
Reinhard Panhuber
a98d0217a0
Init len_wrap = 0 to fix compiler complains.
2021-04-23 10:47:22 +02:00
Reinhard Panhuber
4dd1f1f3b5
Fix include path in audio_device.h
2021-04-23 10:32:22 +02:00
Reinhard Panhuber
03f974c9b9
Implement functions to allow for DMA usage in audio driver.
...
- Add tud_audio_n_get_ep_out_ff(), tud_audio_n_get_ep_in_ff(),
tud_audio_n_get_rx_support_ff(), and tud_audio_n_get_tx_support_ff()
- Change get_linear_read/write_info() to return linear and wrapped part
at once
- Adjusted affected code in audio_device.c and tested with
audio_4_channel.
2021-04-23 10:27:48 +02:00
Jeremiah McCarthy
b8e5885c2b
Removes polltimeout behaviour and restructures
...
Moves dfu_req_dnload_reply to ACK stage of a DNREQUEST.
Removes unneeded variables due to other simplifications.
2021-04-22 17:45:33 -04:00
Jeremiah McCarthy
8c80ddeb54
Fix statte check on DATA stage
2021-04-22 17:00:57 -04:00
Jeremiah McCarthy
cc440ade81
Remove custom status description table
2021-04-22 16:47:05 -04:00
Jeremiah McCarthy
45e401e69d
Remove unused alt_setting
2021-04-22 16:42:54 -04:00
Jeremiah McCarthy
e54d9d10af
Add const
2021-04-22 16:39:43 -04:00
Jeremiah McCarthy
289af581bb
Remove uunused code
2021-04-22 16:06:06 -04:00
Jeremiah McCarthy
18e9d253e9
Remove usb reset callback
2021-04-22 16:04:09 -04:00
Jeremiah McCarthy
0936a76dc9
Remove nonstd behaviour
2021-04-22 15:59:49 -04:00
Jeremiah McCarthy
88dea7a0a8
Move debug from .h to .c
2021-04-22 15:02:50 -04:00
Jeremiah McCarthy
01661b3f28
Replace dfu_mode with dfu
2021-04-22 14:56:52 -04:00
Reinhard Panhuber
29bcc83d0f
Remove unnecessary volatile and short audio function index to func_id
2021-04-21 17:01:38 +02:00
Reinhard Panhuber
705753f448
Merge remote-tracking branch 'upstream/master' into uac2_fix_cs_as_int_alt_set_0
2021-04-20 20:15:54 +02:00
Reinhard Panhuber
c7c11b181c
Clean up old depracted and misleading variable names
2021-04-20 20:15:02 +02:00
Reinhard Panhuber
fef0d54559
Refactor static function for better performance
2021-04-20 19:56:40 +02:00
Reinhard Panhuber
4408ffce88
Fix pointer alt_setting to be cleared when driver gets initialized
2021-04-20 18:44:56 +02:00
Alex Lisitsyn
2f0cb8b5f1
tinyusb: add support of esp32s3 target
...
add support of new esp32s3 target and the board
update the roles.mk wrapper to allow dfu flashing of espressif chip
update examples to allow compilation for esp32s3_addax_1 board
once the code is tested the PR to original tinyusb repo will be submitted
2021-04-16 13:38:00 +02:00
hathach
9ecb91e1bd
fix build with LOG=2
2021-04-15 23:47:28 +07:00
hathach
b687a4fc20
Merge branch 'master' into edpt_ISO_xfer
2021-04-15 12:12:52 +07:00
hathach
3c84776e0a
minor clean up
2021-04-15 12:09:12 +07:00
Reinhard Panhuber
8d9f60ca5e
Improve user feedback in case of wrong configuration of audio driver
2021-04-14 21:52:54 +02:00
Jeremiah McCarthy
7b45b38fe4
Remove DFU mode and rt
2021-04-12 11:17:01 -04:00
Joey Castillo
7c8b4991f1
Add support for SAM L22 family
2021-04-09 17:33:14 -04:00
Reinhard Panhuber
2134c1a875
Fix defines in audio_device.c
2021-04-08 21:48:36 +02:00
Reinhard Panhuber
4bebb9ca49
Remove depracted defines in audio_device.c
2021-04-08 20:11:51 +02:00
Jeremiah McCarthy
ae851bba31
Resolve gcc warnings for no parameter functions
2021-04-07 17:15:26 -04:00
Jeremiah McCarthy
2e2dc7bdc5
Revise per initial comments
...
Returns the RT driver to the function state of previous iteration, which
did not support the will_detach. Behavior should be fine without this
feature. This removes much of the added bloat to track state, and
handle requests in the APP_DETACH state which is no longer required.
Removes the optional bloat added to the RT driver, such as responding to
GETSTATE requests.
Fixes the DFU Mode to extract the attr bits from the functional
descriptor when opened.
Fixes some incorrect bitwise if checks.
Also, updates some naming of functions to be consistent with the rest of
the library.
2021-04-07 17:05:04 -04:00
Reinhard Panhuber
8eacdffebd
Optimize encode/decode - refactor unnecessary repetitive division
2021-04-07 20:07:28 +02:00
hathach
d9a0cc9e9f
more cleanup
2021-04-07 16:50:45 +07:00
hathach
893919a848
remove tu_fifo_backward_write/read_pointer API
...
since it is illegal from fifo perspective
2021-04-07 13:27:28 +07:00
hathach
2468f9e26d
more _ff_pull/push clean up
2021-04-07 13:15:25 +07:00
hathach
9042e973d3
clean up _ff_push_n
2021-04-07 12:52:57 +07:00
hathach
d6737fb5fe
use tu_unaligned_write32() for _ff_push_const_addr
2021-04-07 12:34:00 +07:00
hathach
d0fa4d5189
rename
2021-04-07 12:24:24 +07:00
hathach
8ac156622d
fix cast-align warning
2021-04-07 00:38:12 +07:00
hathach
a3c06aa7bc
more clean up for _ff_pull_const_addr_in_full_words()
2021-04-06 23:39:39 +07:00
hathach
d82ee2f8c0
refactor _ff_pull_n() with const addr
2021-04-06 23:12:04 +07:00
hathach
58bab86d79
minor clean up
2021-04-06 21:09:23 +07:00
hathach
c5db2282ad
Merge branch 'master' of github.com:hathach/tinyusb into edpt_ISO_xfer
2021-04-06 19:35:01 +07:00
Ha Thach
1d20c84798
add tu_unaligned_read32/write32 ( #772 )
...
* add tu_unaligned_read32/write32
* added tu_unaligned_read16/write16
* add TU_ATTR_ALWAYS_INLINE, add to most of simple inline function
2021-04-06 19:32:01 +07:00
hathach
8b79040c38
code format
2021-04-06 15:34:50 +07:00
Jeremiah McCarthy
c39b7b8177
Add DFU runtime and mode "class"
...
With the runtime and mode portions in separate classes, a single
application should only be building with one or the other enabled. In
some applications both might be desired at build time.
The CFG_TUD_DFU_RUNTIME_AND_MODE option creates a DFU class, which asks
the application which mode to initialize to. This allows a runtime
change between RT and DFU mode, by just reinitializing tusb.
2021-04-05 17:52:33 -04:00
Jeremiah McCarthy
bc2cb99780
Remove unreachable callback
2021-04-05 17:06:27 -04:00
Jeremiah McCarthy
fdc91f8d2c
Fix bug during initialization of DFU Mode
2021-04-05 16:48:09 -04:00
Jeremiah McCarthy
c5b8ef1529
Separate DFU RT and Mode. Untested
2021-04-05 16:32:58 -04:00
hathach
68687ed0f4
fix build
2021-04-06 01:16:51 +07:00
hathach
7ab8da949e
audio driver only use USE_LINEAR_BUFFER = 0 for stm32 synopsys driver
2021-04-06 01:07:32 +07:00
hathach
3acf0c2d73
revert dcd_edpt_xfer_fifo() implementation for esp32s2
2021-04-06 01:00:00 +07:00
hathach
69ad092fce
revert dcd_edpt_xfer_fifo() implementation for nuc120 121
2021-04-06 00:13:12 +07:00
hathach
49b2d8f26c
revert dcd_edpt_xfer_fifo() implementation for msp430
2021-04-06 00:07:17 +07:00
Jeremiah McCarthy
164d3e82e3
Fix incorrect DNLOAD request len passed to app
...
Fixes bug where the app callback was getting the length of the status
request transfer rather than the length of the data stage payload.
TODO: Right now this returns the expected length, when it really should
be returning the transfer length.
2021-04-05 11:13:42 -04:00
hathach
8d2dfe872c
revert dcd_edpt_xfer_fifo() implementation for stm32_fsdev
2021-04-05 19:19:49 +07:00
hathach
bebe2f0bbf
revert dcd_edpt_xfer_fifo() implementation for nuc505
2021-04-04 22:50:26 +07:00
hathach
586a46c7d3
revert dcd_edpt_xfer_fifo() implementation for samg
...
samg fifo is accessed byte by byte (although the register is 32 bit).
2021-04-04 21:33:19 +07:00
Reinhard Panhuber
1ac9e7e3a7
Fix wrong read mutexes in audio_device.c
2021-04-03 18:22:19 +02:00
Reinhard Panhuber
f6ba58e370
Fix wrong pointer type in audio_device.c
2021-04-03 17:50:30 +02:00
Reinhard Panhuber
4af5189492
Fix potential bug in support FIFO sizes
2021-04-03 16:53:29 +02:00
Reinhard Panhuber
475badd087
Add missing #defines in uac2_headset example
2021-04-03 16:10:46 +02:00
Reinhard Panhuber
fc65f39ff2
Fix error in #defines in uac2_headset
2021-04-03 15:58:41 +02:00
Reinhard Panhuber
ec6b240de2
Fix #define error in audio_device.h
2021-04-03 15:44:44 +02:00
Reinhard Panhuber
6236effb14
Fix #define error in audio_device.h
2021-04-03 15:29:39 +02:00
Reinhard Panhuber
8b90c08b35
Fix #define errors in audio_device.h
2021-04-03 15:24:38 +02:00
Reinhard Panhuber
a1efd41649
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-04-03 09:50:08 +02:00
Reinhard Panhuber
9b2ddd9cc6
Generalize audio driver for 3 audio functions plus a lot more.
...
- Audio format and parameters are parsed from descriptors thus user no
longer needs to give them explicitely
- Tested for 4 channel software type I PCM encoding with 16 bit with 1
channel per FIFO and 2 channels per FIFO (this is I2S specific)
2021-04-03 09:49:27 +02:00
Ha Thach
eb92986b88
Merge pull request #766 from hathach/enhance-midi
...
Enhance midi
2021-04-02 15:47:40 +07:00
hathach
48bb96f507
correct midi stream read behavior to read until user buffer is full or no more data from usb fifo
2021-04-02 15:08:36 +07:00
hathach
350eb11277
refactor midi read buffer to stream
2021-04-02 14:52:44 +07:00
hathach
da59c4ad44
rename midi write()/read() to stream_write() stream_read()
...
also add deprecated for warning and rename hint
2021-04-02 14:43:38 +07:00
hathach
99b78e62f2
removed tud_midi_write24()
2021-04-02 14:34:13 +07:00
hathach
08fe16840f
refactor midi write into stream
2021-04-02 14:26:55 +07:00
hathach
6b04efd443
refactor midi stream read
2021-04-02 13:55:51 +07:00
hathach
080b14b292
fix midi tx fifo overflow cause data corruption
...
rename
2021-04-02 13:26:55 +07:00
Ha Thach
2f5dda90b7
Merge pull request #757 from kkitayam/add_support_for_gr_citrus
...
Add support for GR-CITRUS
2021-03-31 22:01:43 +07:00
hathach
949ff791e0
code format
2021-03-31 00:34:09 +07:00
hathach
b05084e406
remove tud_midi_read_flush()
2021-03-30 23:56:55 +07:00
hathach
c5aa661c89
rename tud_midi_receive/send to tud_midi_packet_read/write
2021-03-30 23:54:17 +07:00
hathach
89a911ee43
correct hid key enter = 0x28, return = 0x9E
2021-03-30 21:26:35 +07:00
hathach
d135825e9c
add hid keys from 0x6B to 0xA4
2021-03-30 21:12:56 +07:00
kkitayam
4a597c9698
cleanup
2021-03-28 12:42:28 +09:00
kkitayam
a1f1941c3f
fixed a OUT transfer did not completed multiple of the max packet size
2021-03-27 16:03:04 +09:00
kkitayam
e010ea30e5
using BRDY interruption for handling IN transfers.
2021-03-27 14:42:19 +09:00
Jeremiah McCarthy
fb7b47cf07
Minor cleanup
2021-03-26 17:32:03 -04:00
Jeremiah McCarthy
1138f8cc70
Add DFU Class per Version 1.1 Spec
2021-03-26 15:30:43 -04:00
kkitayam
f8cf88f918
update for gr_citurs
2021-03-26 19:32:39 +09:00
kkitayam
13735eb21d
added dcd for Renesas USBa
2021-03-26 19:30:53 +09:00
Reinhard Panhuber
994dddc231
Fix shadowing parameter in fifo.c
2021-03-25 14:38:55 +01:00
Reinhard Panhuber
bfddfbadc7
Implement unaligned word copy.
2021-03-25 14:28:59 +01:00
Reinhard Panhuber
1e4e87de51
Rework to copy wrapped word bytes by byte in copy_to_cont_dst etc.
2021-03-25 13:53:26 +01:00
Rafael Silva
2807644e7e
add efm32 driver
...
Signed-off-by: Rafael Silva <silvagracarafael@gmail.com>
2021-03-23 20:45:56 +00:00
Rafael Silva
143582870c
add efm32gg12 family
...
Signed-off-by: Rafael Silva <silvagracarafael@gmail.com>
2021-03-23 18:59:21 +00:00
Reinhard Panhuber
a60bd0c8ac
Fix bug in writing to constant src/dst address.
...
Copying has to be conduct in full words (at least for STM32). Renamed
copy function to tu_fifo_write_n_const_addr_full_words()
2021-03-23 19:33:04 +01:00
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
Reinhard Panhuber
cd491e296e
Intermediate commit
2021-03-14 18:55:16 +01:00
hathach
4ee1216aaf
fix fifo unlock typo, also clean up a bit
2021-03-13 00:22:04 +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
Reinhard Panhuber
8cb3bd3cd3
Merge remote-tracking branch 'upstream/edpt_ISO_xfer' into edpt_ISO_xfer
2021-03-10 19:33:11 +01:00
Reinhard Panhuber
d5a5a1cab6
Implement audio PCM type I enc./decoding acc. to 2.3.1.5 Audio Streams
...
Extending capabilities of support FIFOs
Removing copy from to FIFO
Adjusting audio examples
Remove peek/read into other FIFO
2021-03-10 19:32:13 +01:00
hathach
a397353916
fix ci build with rp2040
2021-03-10 17:58:39 +07:00
hathach
e864bda627
fix build with freertos
2021-03-10 17:21:59 +07:00
hathach
794083b647
Merge branch 'master' into edpt_ISO_xfer
2021-03-10 17:10:49 +07: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
Reinhard Panhuber
de1f36f2b0
Adapt mutexes in fifo.c
2021-03-04 19:52:48 +01:00
Reinhard Panhuber
2e28861cf8
Remove TODOs done.
2021-03-04 18:20:22 +01: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
Reinhard Panhuber
7e56f46957
Extend FIFO mutex to use separate write and read mutexes.
...
Adjust all USB drivers using FIFO and mutexes.
2021-03-04 13:52:14 +01: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
Reinhard Panhuber
848e403e37
Fix unused parameter in _ff_push_copy_fct() and _ff_pull_copy_fct
2021-03-03 08:18:57 +01:00
Reinhard Panhuber
a1b07ae14c
Change copy modes for new read/write functions in tusb_fifo.c
2021-03-02 21:52:42 +01:00
Reinhard Panhuber
3cdb82c21c
Change for copy modes in dcd_synopsis.c
2021-03-02 21:42:24 +01:00
Reinhard Panhuber
bd2bab7aff
Remove set_copy_modes(), implement:
...
tu_fifo_read_n_const_addr(), tu_fifo_write_n_const_addr()
2021-03-02 21:41:51 +01:00
Reinhard Panhuber
7b8a08d2e1
Rename dcd_edpt_iso_xfer() to dcd_edpt_xfer_fifo()
2021-03-02 20:00:39 +01:00
Reinhard Panhuber
c8b6d9b990
Revert implementation of dcd_edpt_iso_xfer()
2021-03-02 19:28:35 +01:00
hathach
a298045f6c
clean up
2021-03-02 23:30:21 +07:00
Reinhard Panhuber
fc35b3f72d
Switch back OPT_MCU_DA1469X to use linear buffers
2021-03-02 17:24:58 +01: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
Reinhard Panhuber
8ec99694d2
audio_decive clean up and bootstrapping of linear (formerly evade) buff.
2021-03-01 09:09:15 +01: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
Reinhard Panhuber
cc948288bd
Revert tusb_fifo.h include form to original.
2021-02-25 11:18:37 +01:00
Reinhard Panhuber
5ebe53f02d
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-02-24 20:54:35 +01: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
Reinhard Panhuber
a7f07a1a63
Fix pointer type
2021-02-23 21:53:17 +01:00
Reinhard Panhuber
697c9476b7
Fix pointer type
2021-02-23 21:42:38 +01:00
Reinhard Panhuber
cb33840a9b
Fix pointer type
2021-02-23 21:15:27 +01:00
Peter Lawrence
e00178a1af
rp2040: don't compile in host code when in device mode
2021-02-23 14:04:56 -06:00
Reinhard Panhuber
00248de15a
Fix shadowing declartion in dcd_da146xx.c
2021-02-23 20:23:26 +01:00
Reinhard Panhuber
387bf1478e
Fix missing , in tusb_fifo.h
2021-02-23 19:52:31 +01:00
Reinhard Panhuber
c76e04f835
Add dcd_edpt_iso_xfer() to dcd_template.c
2021-02-23 19:50:54 +01:00
Reinhard Panhuber
e223d46033
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
...
Conflicts:
src/common/tusb_fifo.h
src/osal/osal_none.h
2021-02-23 19:47:57 +01:00
Reinhard Panhuber
313dd1439d
Implement dcd_edpt_iso_xfer() for dcd_da146xx.c BUT WITHOUT DMA SUPPORT
2021-02-23 19:41:21 +01: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
hathach
c5b8980398
separate hcd_init from ehci
2021-02-22 22:40:51 +07:00
hathach
1e07fc024c
add rhport to hcd_init()
2021-02-22 22:32:56 +07:00
hathach
8a2e4c79fd
make hcd tdi more generic
2021-02-22 18:02:52 +07:00
Kamil Tomaszewski
b591a66b3d
Pass the correct speed on Spresense
2021-02-22 11:24:16 +01:00
hathach
00b4b74e82
rename hcd_lpc18_43 to hcd_transdimension
2021-02-22 17:15:06 +07:00
hathach
43ca626774
merge iso and cbi transaction size to max ep size
2021-02-22 12:27:02 +07:00
hathach
44916bcacf
Merge branch 'RP2040_enable_isochronous_buffer_size' of https://github.com/ndinsmore/tinyusb into ndinsmore-RP2040_enable_isochronous_buffer_size
2021-02-22 12:21:52 +07:00
ndinsmore
cb5b9eb2f6
Remove stray. commented out line
2021-02-19 08:33:06 -05:00
hathach
2a04ee68b8
add TU_FIFO_INIT() to help with tu_fifo declaration
...
tu_fifo_clear() also reset max_pointer_idx and non_used_index_space
2021-02-19 11:57:56 +07:00
Ha Thach
be9f86ca9e
Merge pull request #660 from hathach/fix-typo-midi-write24
...
Fix typo midi write24
2021-02-19 11:22:21 +07:00
Ha Thach
044d29c927
Merge pull request #654 from xmos-jmccarthy/master
...
Add alternate bitfield padding option
2021-02-19 11:03:53 +07:00
hathach
aa85099171
fix tud_midi_write24 typo
...
rename jack_id to cable_num in function argument
2021-02-19 10:51:47 +07:00
Reinhard Panhuber
fff6283bf7
Update .non_used_index_space = UINT16_MAX - (2*_depth-1) in osal_none.h
2021-02-18 21:22:11 +01:00
Reinhard Panhuber
8904874f76
Exclude #include "osal/osal.h" for OPT_OS_NONE
2021-02-18 20:52:57 +01:00
Reinhard Panhuber
31bf73517e
Add #include "osal/osal.h" in tu_fifo.h
2021-02-18 20:16:57 +01:00
Jeremiah McCarthy
21f1cd4ec7
Implement requested PR changes
...
Removes CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT, and makes the manual padding
behavior standard. Replaced unused variable name with TU_RESERVED.
2021-02-18 13:26:03 -05:00
Reinhard Panhuber
c098da9803
Implement left and right justifications for 24 to 32 bit PCM encoding
2021-02-18 19:25:08 +01:00
ndinsmore
ac87a4547d
Change to using tu_min32
...
This was a github edit, not tested
2021-02-18 08:25:04 -05:00
Reinhard Panhuber
681cfd0bf2
Correct for wrong pointer type in audio_device.c
2021-02-18 11:12:16 +01:00
Nicholas R Dinsmore
27f4b6f5a4
Included size check for ISO buffers
2021-02-17 18:22:24 -05:00
Reinhard Panhuber
6cb9a6ebb1
Add (void *) for pointer cast.
2021-02-17 23:04:19 +01:00
Reinhard Panhuber
d8481ac7e4
Fix wrong pointer call in dcd_samg.c
2021-02-17 22:52:59 +01:00
Reinhard Panhuber
666e0fad35
Fix wrong tu_fifo_read_n() call in dcd_stm32_fsdev.c
2021-02-17 22:50:49 +01:00
Reinhard Panhuber
402005c9e0
Fix missing pointer operator in dcd_nuc505.c
2021-02-17 22:49:10 +01:00
Reinhard Panhuber
94bf4f54da
Fix missing FIFO definitions
2021-02-17 22:29:51 +01:00
Reinhard Panhuber
53a796a92e
Fix wrong pointer type.
2021-02-17 22:29:40 +01:00
Reinhard Panhuber
ae20d11124
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
...
Conflicts:
src/common/tusb_fifo.h
2021-02-17 22:08:21 +01:00
Reinhard Panhuber
eee47493a3
Fix bug in evasion buffer list
2021-02-17 21:59:32 +01:00
Reinhard Panhuber
e407ce463d
Add SAMD MCUs to buffer evasion list
2021-02-17 21:47:01 +01:00
Reinhard Panhuber
189b357b54
Implement an evasion linear buffer for MCUs not capable for EP FIFO
...
Also MCUs using DMAs are within this list, however, these can use an EP
FIFO. There is just no time for implementation
2021-02-17 21:42:44 +01:00
Reinhard Panhuber
2d7b61972c
Implement dcd_edpt_iso_xfer() for dcd_stm32_fsdev
...
Implemented a special copy strategy to copy directly from the FIFO. This
function, however, is untested and should be regarded as unreliable
until somebody was able to test it
2021-02-17 20:46:31 +01:00
Reinhard Panhuber
c87357c025
Improve tu_fifo capabilites
...
Added tu_fifo_get_linear_write_info(), tu_fifo_backward_write_pointer(),
and tu_fifo_backward_read_pointer()
2021-02-17 20:44:26 +01:00
Nicholas R Dinsmore
79b360f0a6
Enable iso buffers per rp2040 spec
2021-02-17 13:22:34 -05:00
Nicholas R Dinsmore
b7ec66e33a
This fixes the overflow mathmatic in the fifo
2021-02-16 23:08:08 -05:00
Jeremiah McCarthy
f8fbc0930b
Add alternate bitfield padding option
...
Adds configuration option CFG_TUSB_ALT_BIT_PACKING_ALIGNMENT, which
substitutes bitfield variable " : 0" padding syntax with an unused
variable of size equal to the remaining number of bits.
This change resolves aligned access issues for some platforms.
Default behavior is original if the option is not explicitly enabled.
2021-02-16 10:43:52 -05:00
Reinhard Panhuber
a5d7b6266d
Implement dcd_edpt_iso_xfer() for msp430
2021-02-14 14:05:15 +01:00
Reinhard Panhuber
893f997dcb
Change FIFO use indication to ff == NULL to avoid future errors.
...
This way people don't need to pay attention for the buffer pointer
2021-02-14 09:25:34 +01:00
Reinhard Panhuber
b634b5958b
Implement dcd_edpt_iso_xfer() for INTERRUPT driven dcd_nuc505
2021-02-13 21:00:55 +01:00
Reinhard Panhuber
0c3dc8f99b
Implement dcd_edpt_iso_xfer() for dcd_nuc121.c
2021-02-13 17:44:59 +01:00
Reinhard Panhuber
126e46e38a
Fix not increment xfer->buffer if xfer->buffer == NULL in dcd_samg.c
2021-02-13 17:37:13 +01:00
Reinhard Panhuber
e681678402
Implement dcd_edpt_iso_xfer() for dcd_nuc120.c
2021-02-13 17:06:27 +01:00
Reinhard Panhuber
7ab389db21
Implement dcd_edpt_iso_xfer() for dcd_samg.c. NOTE: ISO EP not supported
2021-02-13 16:36:32 +01:00
Reinhard Panhuber
59d6ed9ea4
Implement dcd_edpt_iso_xfer() for dcd_esp32s2.c
2021-02-13 12:13:10 +01:00
Reinhard Panhuber
9e2a1d2e6a
Fix CFG_TUD_AUDIO_EP_IN/OUT_SW_BUFFER_SIZE to be defined anyway
2021-02-12 18:31:54 +01:00
Reinhard Panhuber
cdf600048f
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-02-12 18:05:20 +01:00
Reinhard Panhuber
185414721f
Formating
2021-02-12 18:04:45 +01:00
Reinhard Panhuber
a9fd0a454a
Complete redesign of audio driver.
2021-02-12 16:28:41 +01:00
ndinsmore
09868434cd
Fixes RP2040 buffer reallocation overrun problem ( #642 )
...
Fix running out of memory on a device that repeatedly closes and opens an endpoint. This is a workaround at the moment. A better solution would be to implement reclaiming usb buffer memory when closing an endpoint (i.e. implement dcd_edpt_close).
2021-02-12 08:16:46 +00:00
Ha Thach
04ab6b4082
Merge pull request #648 from hathach/rename-dfu-rt-to-runtime
...
Rename dfu rt to runtime
2021-02-11 15:29:55 +07:00
Ha Thach
d4281291e5
Merge pull request #647 from hathach/correct-fs-bulk-epsize
...
more epsize checking per type
2021-02-11 12:36:19 +07:00
hathach
e12c25ec2c
rename dfu_rt to dfu_runtime for easy reading
...
also rename tud_dfu_rt_reboot_to_dfu to tud_dfu_runtime_reboot_to_dfu_cb
2021-02-11 12:05:22 +07:00
hathach
9812cfc6c6
clean up
2021-02-11 11:48:34 +07:00
hathach
919bb9ce38
more epsize checking per type
2021-02-11 11:45:24 +07:00
hathach
49bc97b0ca
remove the requirement of std SET/CLEAR_FEATURE must not return zlp status
2021-02-11 11:22:02 +07:00
hathach
d2b8e591f6
tud_hid_report_complete_cb() API
...
update hid composite to make use of tud_hid_report_complete_cb() for
sending reports when possible.
2021-02-09 15:57:29 +07:00
Ha Thach
ecd16cf24b
Merge pull request #637 from tfx2001/master
...
add basic support for rt-thread
2021-02-08 20:10:07 +07:00
tfx2001
1b678eccf5
add basic support for rt-thread
2021-02-08 20:46:49 +08:00
hathach
72bcc0685c
add tud_hid_n_gamepad_report() helper for gamepad report
...
- Add gamepad to hid_composite example. Though it needs a bit of extra
work but it will come later as separated PR.
2021-02-08 19:08:16 +07:00
hathach
b2019e4d71
enhance gampepad report with dpad/hat support
...
add hid_gamepad_report_t along with GAMEPAD_BUTTON_ and GAMEPAD_HAT_
enum
2021-02-08 16:10:13 +07:00
Ha Thach
be1bd74b4b
Merge pull request #618 from homeodor/master
...
A CDC-like blocking behaviour for MIDI, incl. SysEx
2021-02-06 12:30:28 +07:00
hathach
465ea7a66e
increase TUSB_VERSION_ to 0.8.0
2021-02-05 22:37:22 +07:00
hathach
bb2f93d427
prepare for release
2021-02-05 20:41:41 +07:00
Ha Thach
78f50518a4
Merge pull request #610 from hathach/rp2040-followup2
...
Rp2040 followup2
2021-02-01 12:44:53 +07:00
Ha Thach
a044578a33
Merge pull request #601 from majbthrd/start_pi2tu
...
start the assimilation of Pi Pico into TU
2021-02-01 12:43:59 +07:00
Reinhard Panhuber
84406f1654
Rework audio driver
2021-01-31 19:08:23 +01:00
Alexander Golovanov
2a34be2eb0
A CDC-like blocking behaviour
2021-01-30 04:11:08 +03:00
Michael Himing
c4f7ea09f1
Fix midi sysex sending bug
2021-01-28 20:31:11 +11:00
hathach
1abf9eeb80
clean up rp2040 assigned_address, remove panic from remote_wakeup
2021-01-27 13:18:03 +07:00
hathach
c3c4f65fea
wrap rp2040_usb around opt mcu
2021-01-27 13:04:38 +07:00
Ha Thach
045674745a
Merge pull request #604 from kamtom480/spresense-sdk-2.0.2
...
Update Spresense SDK and fix dcd issues
2021-01-25 22:55:46 +07:00
Kamil Tomaszewski
5f999fa6a0
Fix dcd issues on cxd56
...
Pass the next setup package when USB stack is ready to receive it.
When the transfer is 0 on EP0 send complete to the USB stack
Pass the data received after the setup package to the USB stack.
2021-01-25 11:13:56 +01:00
hathach
ec458292fe
fix host build
2021-01-25 13:25:47 +07:00
Peter Lawrence
edc2224118
rp2040: start to adopt TU coding conventions
2021-01-23 20:21:58 -06:00
Peter Lawrence
587d1b334b
rp2040_hcd: check pointer before using
2021-01-23 20:19:10 -06:00
hathach
67a9cdc35b
fix compiler warning
2021-01-22 11:33:25 +07:00
Ha Thach
1e134cbb31
Merge branch 'master' into pico
2021-01-21 16:35:13 +07:00
Reinhard Panhuber
f1551d7a5f
Add __restrict keyword and memore alignment to src/dst pointer of
...
_tu_fifo_read_from_const_src_ptr()
_tu_fifo_write_to_const_dst_ptr()
2021-01-20 20:14:23 +01:00
graham sanderson
e0aa405d19
RP2040 support
2021-01-19 19:52:07 -06:00
Reinhard Panhuber
93ec6f3735
Adjust #include "dcd.h" to "device/dcd.h", the same for usbd.h in usbd.c
2021-01-19 17:10:08 +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
99e6bc3720
Explicitly add cast to uint32_t before shifting uint8 to left
2021-01-18 17:54:08 +01:00
Reinhard Panhuber
595a88b34c
Correct include path to #include "common/tusb_fifo.h"
2021-01-18 17:38:32 +01:00
Reinhard Panhuber
dff588d772
Implement dcd_edpt_ISO_xfer() and adapt transmission scheme
2021-01-18 17:15:23 +01:00
Reinhard Panhuber
2284db1fb5
Add usbd_edpt_ISO_xfer()
2021-01-18 17:14:17 +01:00
Reinhard Panhuber
51c80630f5
Clean up
2021-01-18 17:13:06 +01:00
Reinhard Panhuber
8450bc3225
Add FIFO copy modes: tu_fifo_copy_mode_t
...
Allows to copy from/to constant pointers required for STM32 hardware
FIFO copies.
2021-01-18 17:12:39 +01:00
Reinhard Panhuber
84c383061f
Add tusb_fifo.h header file to dcd.h
2021-01-18 17:08:59 +01:00
Reinhard Panhuber
3a3ada0c57
Implement the usage of usbd_edpt_ISO_xfer()
2021-01-18 17:07:15 +01:00
Reinhard Panhuber
bdbcb8df39
Add tu_fifo_read_n_into_other_fifo() to copy into from FIFO into another
...
Fix overflow in tu_fifo_write_n()
2021-01-17 11:55:33 +01:00
Reinhard Panhuber
485d8fa77e
Merge remote-tracking branch 'upstream/master' into edpt_ISO_xfer
2021-01-09 12:10:08 +01:00
hathach
d33b22d127
fix ci
2021-01-08 22:48:52 +07:00
hathach
6e6e6265e4
use dcd_event_bus_reset() with speed to replace bus_signal
2021-01-08 22:34:36 +07:00
hathach
cca27fc383
another rename
2021-01-08 16:54:50 +07:00
hathach
201ea7ca6d
remove inline for update_grxfsiz
2021-01-08 16:38:41 +07:00
hathach
9998e8a665
more minor work
2021-01-08 16:34:36 +07:00
hathach
86c34a9a33
minor clean up following pr581
2021-01-08 16:25:30 +07:00
Ha Thach
1f00a182c4
Merge pull request #581 from hathach/dcd_synopsis_mem_allocation
...
Dcd synopsis mem allocation
2021-01-08 12:45:46 +07:00
hathach
3e1d85eed2
comment clean up
2021-01-08 11:43:26 +07:00
hathach
cc5dfd03cd
update comment and correct the size to 8+2
2021-01-08 11:21:26 +07:00
hathach
60620dca42
walkround for samd21 setup_packet overflow
...
increase setup packet size from 8 to 12, since USB DMA controller is
suspected to overflow the buffer with 2 extra bytes
2021-01-08 01:21:03 +07:00
hathach
29f84b1602
change default CFG_TUD_HID_EP_BUFSIZE from 16 to 64
2021-01-07 11:58:05 +07:00
Reinhard Panhuber
f2b4567a2b
Correct function declaration
2021-01-04 17:15:42 +01:00
Reinhard Panhuber
2fa500af18
Minor corrections for PR
...
- externerlize code into functions
- correct comments
2021-01-04 17:00:23 +01:00
Reinhard Panhuber
37bb14678a
Remove too verbose comment
2021-01-04 12:06:16 +01:00
Reinhard Panhuber
09d8ead4b8
Start changes - not yet finished
2021-01-04 12:02:08 +01:00
Jacob Potter
3158b323d8
Adapt to new control xfer callback
2021-01-03 15:16:54 -07:00
Jacob Potter
57058e33fc
Merge branch 'master' into ncm
2021-01-03 15:12:02 -07:00
Reinhard Panhuber
13b499f910
Clean up
2021-01-03 17:59:50 +01:00
Reinhard Panhuber
56c47188d8
Rework USB FIFO allocation scheme and allow RX FIFO size reduction
2021-01-03 16:11:56 +01:00
Ha Thach
1491bc9162
Merge pull request #569 from kkitayam/add_support_for_frdm_kl25z
...
add support for frdm_kl25z
2020-12-25 23:03:23 +07:00
Ha Thach
08f8f488a0
Merge pull request #571 from HiFiPhile/iar_fifo
...
Fix IAR error on memcpy and warnings.
2020-12-24 12:03:57 +07:00
HiFIPhile
baa5417f3e
Fix IAR error on memcpy and warnings.
...
Signed-off-by: MasterPhi <admin@hifiphile.com>
2020-12-23 16:54:55 +01:00
kkitayam
2737166d2b
fixed wrong direction to enable EP in dcd_edpt_open.
...
fixed incorrect handling of STALL other than EP0
convert tabs to spaces
removed unused symbols
2020-12-23 20:32:29 +09:00
Yakovenko Andrey
bdee6397eb
Added MSC read10 and write10 function
2020-12-23 12:52:51 +02:00
Ha Thach
b580a0b7f3
Merge pull request #573 from HiFiPhile/scsi_mode_sense6_t
...
IAR build error fixes
2020-12-22 17:17:36 +07:00
HiFiPhile
c8dc7f807f
Fix more warnings.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2020-12-22 10:13:10 +01:00
HiFiPhile
b3c0d417ef
Fix error if "Required Prototype" is selected.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2020-12-20 23:10:34 +01:00
HiFiPhile
13e6afd589
Fix scsi_mode_sense6_t padding, which cause IAR compiler internal error.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2020-12-20 22:56:39 +01:00
kkitayam
2bbfc56bd8
added support for frdm_kl25z
2020-12-18 00:07:50 +09:00
hathach
8b34f2fca8
fix ci
2020-11-27 16:07:13 +07:00
hathach
94527951a0
add bus suspend & resume support for esp32s2
2020-11-27 15:54:55 +07:00
hathach
f5e13d5898
msc only invoke scsi complete callback after status transaction is complete
2020-11-24 23:42:30 +07:00
hathach
148eea1417
add tud_connected()
...
which return true as long as we receive the very first SETUP packet from
host.
2020-11-24 21:49:12 +07:00
hathach
4b4f880785
add tud_ready() check in tud_cdc_n_write_flush()
...
other clean up
2020-11-23 23:40:13 +07:00
Ha Thach
308028e17c
Merge branch 'master' into cdc_without_dtr
2020-11-23 23:25:55 +07:00
hathach
14138f105e
have tusb_init() return true instead of TUSB_ERROR_NONE
2020-11-23 13:12:51 +07:00
hathach
e4144d8b47
remove control_complete
2020-11-20 17:21:01 +07:00
hathach
cebb375eac
migrate audio device to new control xfer cb
2020-11-20 17:20:05 +07:00
hathach
c4bc8b2561
migrate net device to new control xfer cb
2020-11-20 16:59:33 +07:00
hathach
d6461abe78
clean up
2020-11-20 16:30:03 +07:00
hathach
9f853685ae
migrate bth device to new control xfer cb
2020-11-20 16:13:58 +07:00
hathach
61ad7bef71
migrate vendor device to new control xfer cb
2020-11-20 15:50:11 +07:00
hathach
3cc1979adb
migrate dfu runtime device to new control xfer cb
2020-11-20 15:42:32 +07:00
hathach
7df979673d
migrate usbtmc device to new control xfer cb
2020-11-20 15:38:56 +07:00
hathach
8813f9d3b8
clean up
2020-11-20 15:33:05 +07:00
hathach
e2abb089f4
migrate midi device to new control xfer cb
2020-11-20 15:30:36 +07:00
hathach
dc9a309839
migrate hid device to new control xfer cb
2020-11-19 22:00:49 +07:00
hathach
dd07fecc5f
migrate cdc_device to new control_xfer_cb
2020-11-19 21:26:06 +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
Jan Dümpelmann
339b1a7723
Remove dcd_edpt_xfer_abort from DCD header
2020-11-18 11:12:06 +01:00
Jan Dümpelmann
54e29e9ff4
Implementation of the discussed changes
...
- remove usbd_edpt_xfer_abort
- rename tu_fifo_change_mode to tu_fifo_set_mode
- remove CFG_TUD_CDC_CLEAR_AT_CONNECTION definition
- remove auto fifo clear at connection event
- add tud_cdc_n_write_clear function
2020-11-18 09:42:50 +01:00
hathach
496c7c701a
fix ci
2020-11-09 01:23:19 +07:00
hathach
23b6b66f4d
release 0.7.0 with changelog and doc update
2020-11-07 23:43:39 +07:00
Ha Thach
a708ab6254
Merge pull request #553 from hathach/host-async-control
...
Host async control
2020-11-07 10:52:14 +07:00
hathach
2907b1e438
clean up
2020-11-07 10:37:33 +07:00
Jacob Potter
226efdcec0
Reduce excessive poll rate on interrupt endpoint
2020-11-05 18:14:56 -07:00
Jacob Potter
377f8ce76f
Log on full NTBs
2020-11-05 10:18:29 -07:00
Jacob Potter
a3fdcbdf16
Just leave the endpoints open, instead of closing/reopening
2020-11-04 23:53:03 -07:00