150 Commits

Author SHA1 Message Date
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
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
cb4e6837e9 clean up, rename internal driver control_request_complete to simply control_complete 2019-07-12 22:03:40 +07:00
hathach
b0e5a1a9ec remove tud_midi_write_flush() send asap. rename tud_midi_connected() to tud_midi_mounted() 2019-07-04 01:27:51 +07:00
hathach
1a0e02fa1b tested midi example 2019-07-03 00:52:25 +07:00
hathach
62d3b91691 clean up 2019-07-02 18:23:42 +07:00
hathach
3f3ef6f4e6 clean up 2019-07-02 16:42:12 +07:00
hathach
6991b28532 improving midi support, adding midi exmaple
rename TUSB_DESC_CLASS_SPECIFIC to TUSB_DESC_CS_INTERFACE
2019-07-01 22:38:06 +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
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
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
3e6d911ce9
more clean up use inline bit funciton instead of macros 2019-05-14 12:54:29 +07:00
hathach
61ec407752
update license year to 2019 2019-05-14 11:48:05 +07:00
hathach
6135019230
clean up 2019-05-14 11:46:22 +07:00
hathach
a25ca701cd text clean up 2019-05-01 23:26:52 +07:00
hathach
2050778763 clean up 2019-05-01 20:41:26 +07:00
hathach
c006f3dbce adding optional ep out for hid
refactor usbd_open_edpt_pair
2019-05-01 19:29:56 +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
eabfc53f38
added tud_suspended() and tud_ready() 2019-03-30 23:01:23 +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
89b9ee2f52 revert to use pending_read_from_host (temp) since 2019-03-27 00:39:14 +07:00
hathach
aaf5714268 follow up to pr #46 2019-03-25 11:38:16 +07:00
hathach
fad8720215
Merge pull request #46 from tannewt/fix_cdc_out
Fix slow CDC OUT by NAKing
2019-03-24 03:27:58 -07:00
Scott Shawcroft
909891325a
Fix slow CDC OUT by NAKing
This NAKs CDC OUT packets when the ring buffer doesn't have
enough space for it. This makes CDC OUT reliable rather than
allowing overwriting into the ring buffer.
2019-03-21 14:52:56 -07:00
hathach
c211ee19dd migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
hathach
59c1b4b427
zero init internal class/device data 2019-01-29 19:39:34 +07:00
hathach
2a60427bdc rename bit_* helper to tu_bit_*, BIT_* to TU_BIT_* for consistency 2018-12-14 15:30:54 +07:00
hathach
a3713f801d clean up compiler attribute 2018-12-14 13:08:21 +07:00
hathach
bb544a0951
minor update 2018-12-12 14:43:45 +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
6c0b0917e1
rename descriptor_* helper to tu_desc_* 2018-12-12 12:01:15 +07:00
hathach
6d86db3977
rename edpt_dir/number/addr to tu_edpt_* 2018-12-12 11:51:31 +07:00
hathach
67d6d753d6
replace all hcd pipe close by hcd_device_remove 2018-12-12 00:00:33 +07:00
hathach
600fac1845
fix build error with ohci 2018-12-11 16:18:56 +07:00
hathach
dbc560658a
more hcd_pipe to hcd_edpt rename 2018-12-11 13:15:05 +07:00
hathach
0d04e6eb96
rename to hcd_edpt_open() 2018-12-11 13:12:21 +07:00
hathach
7a626dbc8b
completely remove pipe handle for cdc/hub/ehci 2018-12-11 00:56:21 +07:00
hathach
212deaf2f8
usbh name change 2018-12-10 22:19:01 +07:00
hathach
9c3c782b64
host msc built but got hardfault with inquiry command 2018-12-10 22:11:02 +07:00
hathach
dffe9b335e
clean up host pipe api 2018-12-10 20:26:47 +07:00
hathach
4e7596ca9c
add tuh_mount_cb/tuh_umount_cb 2018-12-10 19:25:57 +07:00
hathach
9c4c797502
add ep addr to host cdc 2018-12-10 19:01:28 +07:00
hathach
0ae8a1aa89
remove pipe handle.dev_addr 2018-12-10 16:58:17 +07:00