Commit Graph

66 Commits

Author SHA1 Message Date
hathach
f89ff939d8 rename user_arg to user_data 2022-03-17 22:37:51 +07:00
hathach
55428d7dd2 rename tuh_control_xfer_t to tuh_xfer_t 2022-03-17 20:52:16 +07:00
hathach
8aedb2ff37 slightly change the signature of tuh_control_xfer 2022-03-17 17:25:53 +07:00
hathach
66942b814b change return type of callback to void 2022-03-17 16:55:29 +07:00
hathach
deab8c276a remove const in xfer callback 2022-03-17 16:53:54 +07:00
hathach
6df420f7f3 move result into transfer struct 2022-03-17 16:24:43 +07:00
hathach
68bfd048a5 change tuh_control_xfer_t struct 2022-03-17 12:53:52 +07:00
hathach
98d4ed0584 update hid host to use new control xfer for set config 2022-03-16 18:44:41 +07:00
hathach
ec28593ce5 update hid,msc to new usbh control API 2022-03-11 22:13:57 +07:00
hathach
309540473b minor house keeping 2022-02-25 22:26:35 +07:00
hathach
31aa077cb0 rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED 2022-02-25 18:35:21 +07:00
hathach
a5f516893b more with -Wcast-qual 2021-10-17 16:36:53 +07:00
hathach
3309425211 sepearate CFG_TUH_DEVICE_MAX and CFG_TUH_HUB
separate dev0 from _usbh_devices pool to save sram
2021-08-23 19:56:53 +07:00
hathach
6a16f6ccdd rename CFG_TUSB_HOST_DEVICE_MAX to CFG_TUH_DEVICE_MAX 2021-08-23 11:01:40 +07:00
hathach
22a5b1608c change host driver open return type to bool
the descriptor len used by driver will be calculated by usbh
2021-08-20 19:31:38 +07:00
hathach
268dcc8d20 fix issue with weird msc device with 3 endpoints 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
hathach
c7f51cde40 implement usbh_edpt_busy (WIP), remove hcd_edpt_busy 2021-06-10 17:19:21 +07:00
hathach
13cb016042 add usbh_classdriver.h 2021-06-10 16:48:20 +07:00
hathach
5cf930d78a fix cast-align warning in msc host 2021-05-31 11:11:00 +07:00
hathach
9ad6fadf6a more include clean up 2021-05-27 18:34:07 +07:00
hathach
3654d96e07 only invoke tuh_msc_umount_cb() if needed 2021-05-23 14:11:12 +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
510beef9f8 make tuh_msc_mount_cb() tuh_msc_unmount_cb() as weak callback 2021-05-18 12:58:24 +07:00
hathach
98f5082191 rename var to be consistent 2021-05-18 12:58:24 +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
f2ed2ae09a rename tuh_msc_scsi_inquiry() to tuh_msc_inquiry() 2021-02-23 11:14:19 +07:00
Yakovenko Andrey
bdee6397eb Added MSC read10 and write10 function 2020-12-23 12:52:51 +02:00
hathach
e029d6d726 added host set_config driver
to resolve control conflict with SET_CONFIGURE for class driver
- open will be called to open endpoint only
- set_config called later to initialized class driver
2020-11-01 17:46:46 +07:00
hathach
3623f578a4 more clean up 2020-10-13 14:11:17 +07:00
hathach
d92d1a03ca clean up 2020-10-13 13:45:22 +07:00
hathach
437ccac696 implement tuh_msc_scsi_inquiry() / tuh_msc_read_capacity() / tuh_msc_get_maxlun() 2020-10-13 13:23:33 +07:00
hathach
9c07a2a4e2 rework msc host
- msc host enum is now async
- implement async tuh_msc_scsi_command() / tuh_msc_request_sense() /
tuh_msc_test_unit_ready()
2020-10-13 00:07:51 +07:00
hathach
b3e81673c0 change xfer_cb return type from void to bool 2020-09-06 12:11:07 +07:00
hathach
f7cf8cdf27 defer xfer_isr to xfer_cb 2020-09-05 14:41:31 +07:00
hathach
ef651e0734 fix #449 remove obsolete pipehandle from hid host 2020-09-03 17:07:29 +07:00
hathach
84425c50b3 add more logging to host stack
tested host with lpc4357, don't use fpu with lpc m4 since it seems to
cause hardfault (stack does not make use of fpu anyway).
2020-09-01 19:16:50 +07:00
hathach
58cedf4c06 usb0 host on mcb1800 work with fullspeed mode.
use usbh_edpt_open() to correctly map ep2drv[]
2020-05-19 00:55:43 +07:00
Nathan Conrad
25c1bea782 Normalize line endings 2020-01-15 14:47:43 -05:00
hathach
13e01c7dca add TU_ prefix to compiler ATTR to prevent name conflict with application 2019-06-06 10:39:37 +07:00
hathach
454496316f more endian convert 2019-05-14 13:06:38 +07:00
hathach
81fc7b7e2b clean up endian convert function 2019-05-14 12:14:51 +07:00
hathach
61ec407752 update license year to 2019 2019-05-14 11:48:05 +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
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