Commit Graph

49 Commits

Author SHA1 Message Date
hathach a90839688c
add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both pending for event queue with timeout of 1 ms 2022-04-20 13:25:38 +07:00
hathach 171d021ab5 refactor and integrate usbh control xfer back to usbh.c
fix enumeration with hub when reset port before set address
2022-03-10 22:22:05 +07:00
hathach 4a5a53b3b8 improve rphort management for usbd 2022-02-25 18:35:21 +07:00
hathach f6b48c07fc
add rp2040 to host example build 2021-02-26 14:05:08 +07: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
Jerzy Kasenberg db70a35044 osal_none: Fix queue definition
OSAL_QUEUE_DEF was not updated while FIFO was changed
to use unmasked pointers.

Two fields that are crucial to new functionality were left
uninitialized resulting in FIFO slowing down in time.
2020-10-13 16:34:44 +02:00
hathach f308990ab5 Merge branch 'master' into update-host 2020-05-22 15:28:22 +07:00
hathach a0fe3a80e7 remove queue lock/unlock per review 2020-05-20 15:09:46 +07:00
hathach d8a15aca77 remove osal_queue_t const qhdl from osal API
since it doesn't make any differences.
2020-05-20 14:38:34 +07:00
hathach 4e8d414bc6 added osal_queue_empty() API
ported for osal none/freertos/mynewt
2020-05-20 13:38:41 +07:00
hathach 905a80d1b2 temporarily remove osal_task_delay() from osal
- add hcd_uframe_number() API, update EHCI to return uframe number
- get host running on ea4357
2020-05-04 14:11:58 +07:00
Nathan Conrad 25c1bea782 Normalize line endings 2020-01-15 14:47:43 -05:00
hathach 62f8c14fae add a bit of log1 for debugging 2019-11-03 14:08:38 +07:00
hathach 6183dbd0ce add -Wextra for more warnings to example
non-stack warning (probably mcu driver) should be suppressed in the
board.mk
2019-09-27 00:15:43 +07:00
hathach 61ec407752
update license year to 2019 2019-05-14 11:48:05 +07:00
hathach 6564580c3d
clean up 2019-04-02 16:23:13 +07:00
hathach 93a853cd5b usbd add connected, suspended, remote_wakeup
- remove use of osal_queue_reset
2019-03-30 02:26:15 +07:00
hathach 18f248b142
remove tusb_hal_millis() usage, less work for porting 2019-03-24 01:19:32 +07:00
hathach 3574688d26 more with mynewt 2019-03-21 00:54:42 +07:00
hathach a1a6220ac8 update osal for mynewt 2019-03-21 00:36:52 +07:00
hathach 87962a222d clean up 2019-03-20 23:12:12 +07:00
hathach c211ee19dd migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
hathach bc46dc6edf osal clean up
remove OSAL_TASK_DEF, osal_task_create. Applicaton should create a task
and call tinyusb_task(). This make API consistent with NO OS.
2018-12-13 13:49:09 +07:00
hathach 607658d047
rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLED 2018-12-07 23:38:52 +07:00
hathach 1d3583785f change osal_semaphore_wait to return bool 2018-12-06 17:31:25 +07:00
hathach 5f7d7a34f5 able to complete enumeration with os none blocking 2018-12-06 00:38:00 +07:00
hathach 5a7493ed42
fix more host build error 2018-12-05 21:12:10 +07:00
hathach 27793cbd3d
fix travis build 2018-12-05 17:43:09 +07:00
hathach 6f3898572d
add role to OSAL_QUEUE_DEF() to disable correct dcd/hcd isr 2018-12-05 17:01:19 +07:00
Scott Shawcroft 246c28db1a
Turn off interrupts when working with the event queue. 2018-11-23 11:18:53 -08:00
hathach a619ff88a3
rename xfer complete enum 2018-11-23 15:17:43 +07:00
hathach 5757918df4 usbd clean up 2018-11-14 17:40:29 +07:00
hathach ff26c5c6b1 clean up 2018-11-14 16:40:07 +07:00
hathach 10bf41f718 change osal_queue_receive() signature
- fix build issue with freertos
2018-11-14 16:31:28 +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 c582c0fda9
Add SAMD21 and SAMD51 support for CircuitPython.
The ProtoThreads style subtasks were removed because it led to
extremely unclear control flow. RTOSes can be used if threading is
needed.

Also added some additional functionality to MSC to support dynamic
LUNs and read-only LUNs.
2018-11-07 12:02:28 -08:00
hathach 2708632a6a clean up osal 2018-11-02 17:26:35 +07:00
hathach 4683dc1e68 add osal_mutex 2018-11-02 15:45:27 +07:00
hathach bfa10016ae rename verify_breakpoint to TU_BREAKPOINT 2018-10-24 12:37:43 +07:00
hathach 3dd635f4c1 merge osal_queue_send_isr to osal_queue_send, osal_semaphore_post_isr to osal_semaphore_post 2018-10-23 15:53:29 +07:00
hathach 8600c4b616 adding mynewt to osal 2018-09-04 14:20:51 +07:00
hathach 4ef01d721a clean up osal task and subtask 2018-08-30 15:21:15 +07:00
hathach e07b1acbed rename VERIFY to TU_VERIFY to avoid conflict with application 2018-08-13 18:10:23 +07:00
hathach cd5b5d3a53 change mapping interface to driver instead of class code 2018-07-13 16:52:22 +07:00
hathach 3e66d2d31e rename fifo * to tu_fifo to avoid conflict with other module 2018-07-04 00:22:15 +07:00
hathach d438000b99 clean up 2018-06-22 16:01:55 +07:00
hathach e3591ac682 enhance usbd: add usbd_defer_func() 2018-06-22 12:53:13 +07:00
hathach 424735d440 rename subfolder source to src 2018-06-18 14:05:24 +07:00