Commit Graph

60 Commits

Author SHA1 Message Date
hathach
f14fcaa84d rename to tusb_deinit() to match other namingg 2025-07-10 18:06:22 +07:00
hathach
77be5f96e4 Merge branch 'master' into fork/roma-jam/feature/add_tusb_teardown 2025-07-10 17:18:17 +07:00
hathach
87adc63226 Merge branch 'master' into fork/atoktoto/midihost
# Conflicts:
#	hw/bsp/rp2040/family.cmake
#	src/class/midi/midi.h
#	src/class/midi/midi_device.c
#	src/device/usbd_control.c
#	src/host/hcd.h
#	src/host/usbh.c
#	src/host/usbh.h
2025-02-12 11:28:16 +07:00
Roman Leonov
dee6b36923 feature(tusb): Added teardown API 2025-01-15 09:45:29 +01:00
hathach
80ad7c4e87 add tusb_time_millis_api() and default/weak tusb_time_delay_ms_api(). Which is required for host and some device without RTOS. 2024-11-04 17:20:58 +07:00
hathach
8461525d48 add tusb_time_millis(), able to reset and enable dwc2 port and get SOF active 2024-10-21 18:18:33 +07:00
hathach
1f18be93db change the tusb_rhport_init_t struct, exclude the rhport to make API more consistent 2024-10-14 18:27:52 +07:00
hathach
92602b9de3 change tusb_init(), tusb_rhport_init() to use init struct for expandability 2024-10-11 13:41:53 +07:00
hathach
57aac432b5 add new tusb_int_handler(rhport, in_isr) as common irq handler
update tusb_init() to take rhport and role, defined as macro with optional argument for backward compatible
2024-10-10 16:28:36 +07:00
tyustli
7a3e730ded Remove redundant header file includes for the hid class 2024-04-24 21:44:03 +08:00
hathach
3b0ffd0f48 change hcd_int_handler(rhport, in_isr) signature: add in_isr
change tuh_int_handler() to take in_isr as optional parameter (default =
true)
2023-09-27 15:51:03 +07:00
hathach
9257a0f562 - update nrf52 bsp for cmake
- add empty tuh_int_handler/tud_int_handler if corresponidng stack not enabled
- add hcd_template.c
2023-08-18 12:48:12 +07:00
hathach
05969d2a58 rename typec driver 2023-06-14 11:07:58 +07:00
hathach
b893f1d541 inital support for usb typec and pd example 2023-06-07 15:10:40 +07:00
rppicomidi
2ddd74fada Add MIDI host support to tinyusb 2022-11-13 14:29:16 +01:00
hathach
4795cca04a add parse config descriptor to example
move usbh_edpt_open() to public API, remove rhport from its signature
2022-03-19 00:43:31 +07:00
hathach
a5fb20533c adding tusb_private.h to implement common edpt claim 2022-03-09 17:17:36 +07:00
hathach
31aa077cb0 rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED 2022-02-25 18:35:21 +07:00
hathach
d10326cb4e rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
Ha Thach
379537cb6d Merge branch 'master' into add_uvc 2021-10-12 22:01:02 +07:00
hathach
431650fb7d Merge branch 'j4cbo-ncm' into majbthrd-add_ncm 2021-10-05 16:32:37 +07:00
hathach
a867d87072 rename CFG_TUD_NET to CFG_TUD_ECM_RNDIS 2021-10-05 16:00:07 +07:00
kkitayam
97d5d1e491 add files for video class device 2021-09-29 21:23:14 +09:00
hathach
3960beece0 rename CFG_TUD_DFU_MODE to simply CFG_TUD_DFU 2021-07-15 20:52:58 +07:00
Jeremiah McCarthy
ce59d69520 Merge remote-tracking branch 'official/master' 2021-05-25 09:27:35 -04: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
Jeremiah McCarthy
01661b3f28 Replace dfu_mode with dfu 2021-04-22 14:56:52 -04:00
Jeremiah McCarthy
7b45b38fe4 Remove DFU mode and rt 2021-04-12 11:17:01 -04: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
c5b8ef1529 Separate DFU RT and Mode. Untested 2021-04-05 16:32:58 -04: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
Jacob Potter
bb0df2740e Add CDC NCM driver 2020-11-04 20:51:57 -07:00
Reinhard Panhuber
e047fbe8fb Merge remote-tracking branch 'upstream/master' into uac2 2020-07-25 14:26:24 +02:00
hathach
503c15217e example to call tud_init() after freeRTOS kernel is started
add note for usb init when using with RTOS
2020-07-23 09:20:45 +07:00
Reinhard Panhuber
1af77233ed Merge branch 'master' of https://github.com/PanRe/tinyusb.git into uac2 2020-06-20 10:53:09 +02:00
Jerzy Kasenberg
56d46483e4 Add bt hci device class
Code implements USB transport for bluetooth HCI.
2020-05-28 10:58:49 +02:00
Reinhard Panhuber
9be2f1bf3d Add basic UAC2 structure - untested 2020-05-22 12:09:34 +02:00
Peter Lawrence
fee79d7466 add CDC-ECM/RNDIS/CDC-EEM network device class with example 2020-03-02 21:15:01 -06:00
Nathan Conrad
25c1bea782 Normalize line endings 2020-01-15 14:47:43 -05:00
Sylvain Munaut
ec4ecfa817 Add support for DFU Runtime class for devices
This is really just a few descriptors and then answering to the
request from the host to reboot into DFU mode.

That latter part is delegated to the app since this is platform
specific.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-10-28 16:11:08 +01:00
Nathan Conrad
1cae96951f Add usbtmc class driver. 2019-09-14 13:35:08 -04:00
hathach
a3cb2dda9e rename custom/custom-_* to vendor/vendor_* 2019-07-19 16:37:28 +07:00
hathach
6a076d8aae rename CFG_TUSB_HOST_CUSTOM_CLASS to CFG_TUH_VENDOR 2019-07-19 16:31:51 +07:00
hathach
b0678e1050 rename CFG_TUD_CUSTOM_CLASS to CFG_TUD_VENDOR 2019-07-19 16:23:56 +07:00
hathach
3e24daac79 remove deprecated tusb_task, clean up tusb compiler 2019-05-14 12:03:06 +07:00
hathach
61ec407752 update license year to 2019 2019-05-14 11:48:05 +07:00
hathach
18f248b142 remove tusb_hal_millis() usage, less work for porting 2019-03-24 01:19:32 +07:00
hathach
c211ee19dd migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
hathach
e4e8413acc add tusb_inited() API, check for inited() before running device/host task 2019-01-29 19:05:07 +07:00
Scott Shawcroft
a3173b8de4 Add USB Midi support.
It also introduces a txbuffer which copies data into it but passes
the buffer straight to the USB rather than another copy.
2019-01-04 12:16:27 -08:00