hathach
954056da0c
fix warnings cast function type for nrf, fix pico osal warning
...
add TODO for overflow in tusb_fifo.c
2021-05-25 21:02:40 +07:00
Alex Lisitsyn
2f0cb8b5f1
tinyusb: add support of esp32s3 target
...
add support of new esp32s3 target and the board
update the roles.mk wrapper to allow dfu flashing of espressif chip
update examples to allow compilation for esp32s3_addax_1 board
once the code is tested the PR to original tinyusb repo will be submitted
2021-04-16 13:38:00 +02:00
hathach
a397353916
fix ci build with rp2040
2021-03-10 17:58:39 +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
Nicholas R Dinsmore
b7ec66e33a
This fixes the overflow mathmatic in the fifo
2021-02-16 23:08:08 -05:00
tfx2001
1b678eccf5
add basic support for rt-thread
2021-02-08 20:46:49 +08:00
graham sanderson
e0aa405d19
RP2040 support
2021-01-19 19:52:07 -06: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
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
be708bb8a4
Merge branch 'master' into update-host
2020-09-01 12:02:25 +07:00
hathach
dfca92d29b
follow up to pr468
2020-07-21 21:06:10 +07:00
me-no-dev
3822a6a385
FreeRTOS: Yield from ISR to notify the USB task
...
If we do not yeld in ISR when we write to queue/give semaphore, the scheduler will not know of the change and will not check the queue untill the next OS tick. This change causes the task to be called immediately and makes communication many times faster.
2020-07-20 00:46:16 +03:00
hathach
f308990ab5
Merge branch 'master' into update-host
2020-05-22 15:28:22 +07:00
hathach
8b66098335
fix freeRTOS logic
2020-05-20 15:21:11 +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
Ha Thach
bfc43bad81
Merge pull request #321 from pigrew/tweak20200331
...
Misc. tweaks, and fix for USBTMC descriptors without an INT EP
2020-04-07 12:12:44 +07:00
Nathan Conrad
06d7fdc228
Use #define for OSAL_TIMEOUT_WAIT_FOREVER.
2020-04-06 12:40:58 -04:00
hathach
c2606c0213
allow application to implement its own os
2020-04-05 18:22:16 +07:00
Nathan Conrad
0d5f3c7f04
Set OSAL_TIMEOUT_WAIT_FOREVER to be a const, to avoid a pedantic gcc warning about signedness.
2020-04-02 23:07:31 -04:00
Nathan Conrad
25c1bea782
Normalize line endings
2020-01-15 14:47:43 -05:00
Jerzy Kasenberg
4a1f7d0243
Fix mynewt osal queue definition
...
Queue table has pointers instead of data os_event structs.
This resulted in crashes when elements were put to queue and
overwritten variables that were just after mpool desiged
for queue.
2019-12-01 12:38:36 +01:00
hathach
62f8c14fae
add a bit of log1 for debugging
2019-11-03 14:08:38 +07:00
hathach
90b6b5d137
clean up tusb_verify
2019-10-18 16:38:02 +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
0ef7edb446
osal clean up
2019-05-01 01:46:39 +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
4537ba66e5
fixing build error with host stack
2018-12-05 20:26:55 +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