43 Commits

Author SHA1 Message Date
Gavin Li
8fe887198b Add tx callback to cdc device
Useful for continuous transmission of data, which is difficult currently
because there is no notification of tx completion.
2020-06-18 01:13:44 -07:00
hathach
e340404968
changing usbd driver open() return type, add max_len
only done with cdc and msc, push this interim for feedback first
2020-05-27 19:01:59 +07:00
hathach
ce6a81e74d
fix typo 2020-04-17 22:10:31 +07:00
hathach
4571ce0d29
add a bit of document for cdc device API. also improve cdc write flush when complete. 2020-04-17 15:54:20 +07:00
Nathan Conrad
25c1bea782 Normalize line endings 2020-01-15 14:47:43 -05:00
hathach
6c6a597465 fix #132 2019-09-11 10:47:07 +07:00
hathach
bd08d0edc9 add vendor peek, change cdc peek signature, change cdc read_char() return from signed char to int32_t 2019-08-01 10:46:27 +07:00
hathach
33de35504a more house keeping 2019-07-19 20:20:13 +07:00
hathach
cb4e6837e9 clean up, rename internal driver control_request_complete to simply control_complete 2019-07-12 22:03:40 +07:00
hathach
1a0e02fa1b tested midi example 2019-07-03 00:52:25 +07:00
hathach
3f3ef6f4e6 clean up 2019-07-02 16:42:12 +07:00
hathach
13e01c7dca
add TU_ prefix to compiler ATTR to prevent name conflict with application 2019-06-06 10:39:37 +07:00
hathach
3846645a28 fix tud_cdc_read_char()/tud_cdc_peek() to return signed char
- depending on compiler option "char" can be intepreted as unsigned char
2019-05-22 00:54:21 +07:00
hathach
61ec407752
update license year to 2019 2019-05-14 11:48:05 +07:00
hathach
a25ca701cd text clean up 2019-05-01 23:26:52 +07:00
hathach
ff8fe28c98
move interface descriptor template to usbd.h, update exmaple 2019-04-19 13:16:06 +07:00
hathach
307ba23046
wrap up hid device refactor 2019-04-18 22:31:35 +07:00
hathach
516964b3d3
add interface descriptor template 2019-04-17 13:43:07 +07:00
hathach
1c2beba85c working on suspend and resume
change dcd_init signature
2019-03-29 16:23:00 +07:00
hathach
8fb9fbb0b1
add tud_mounted() check in tud_cdc_connected()
mark device as disconnected immed with DCD_EVENT_UNPLUGGED
2019-03-27 23:58:24 +07:00
hathach
da452d4ba6
cleanup, remove the use of _TINY_USB_SOURCE_FILE_ 2019-03-27 17:48:42 +07:00
hathach
c211ee19dd migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
hathach
c1c501e0c2
change usbd xfer_cb return type to bool 2018-12-12 13:12:06 +07:00
hathach
b6cb4757d2
change class driver open return type to bool 2018-12-12 13:00:59 +07:00
hathach
6d86db3977
rename edpt_dir/number/addr to tu_edpt_* 2018-12-12 11:51:31 +07:00
hathach
064eec5dd8
clean up warnings 2018-11-26 12:29:55 +07:00
hathach
cb8782e5f2
rename tusb_event_t to xfer_result_t 2018-11-23 15:14:47 +07:00
hathach
215f8603b1 nrf5x: refactor device control transfer.
- make control transfer as part of usbd. Class driver must use
usbd_control_ API() instead of dcd_ api.
- change the signature of class driver's control_request
- allow control request complete to stall in staus stage
- move control request parser & handling to usbd.
2018-11-16 21:56:39 +07:00
hathach
983225ae60
Merge pull request #7 from tannewt/tinyusb_samd
Add SAMD support and simplify OS_NONE
2018-11-14 15:36:12 +07:00
hathach
3fe7cd1659 added tud_cdc_write_str, tu_fifo only use mutex for RTOS config 2018-11-13 15:45:22 +07:00
Scott Shawcroft
30e3c64134
Polish up control split and treat it more like a normal endpoint. 2018-11-08 13:45:30 -08:00
Scott Shawcroft
7a40ec2647
Split out the control endpoint logic 2018-11-07 23:04:34 -08:00
hathach
61e4a8c3d3 remove CFG_TUD_CDC_FLUSH_ON_SOF option 2018-08-30 15:20:15 +07:00
hathach
6129670e4a forgot to add tud_cdc_read_flush() 2018-07-17 21:20:37 +07:00
hathach
798ce59ebd revert usbd_control_xfer_st() implementation
enhance cdc with better multiple interfaces support
add default ep size for cdc and msc device CFG_TUD_CDC_EPSIZE,
CFG_TUD_MSC_EPSIZE
2018-07-17 16:04:55 +07:00
hathach
abb37e98ba rename tud_cdc_flush() to tud_cdc_write_flush(), add tud_cdc_read_flush() 2018-07-14 23:43:19 +07:00
hathach
19b6bbfd14 add device cdc wanted char callback, cdc peek 2018-07-14 23:28:07 +07:00
hathach
e0c4e11ea3 use _usbd_ctrl_buf for control transferm refactor cdc device 2018-07-14 15:12:42 +07:00
hathach
dccb06ba7d rename class driver close() to reset() 2018-07-13 16:09:26 +07:00
hathach
ffdd925854 clean up 2018-07-13 00:34:32 +07:00
hathach
a623f0c179 better multiple interfaces support for cdc device 2018-07-13 00:32:02 +07:00
hathach
a4292e5906 changing cdc device to support multiple interface (not yet) 2018-07-12 23:08:54 +07:00
hathach
424735d440 rename subfolder source to src 2018-06-18 14:05:24 +07:00