hathach
a8d6e82395
enhance dual role examples
2022-02-25 17:36:05 +07:00
Scott Shawcroft
9ba1ba8fa1
Guard clock setup for USB2
2022-02-22 18:39:02 -08:00
Scott Shawcroft
d749597591
Add dual role (concurrent) example
...
This reads HID devices over host and then translates that to ASCII
and sends it over CDC device.
2022-02-22 18:13:22 -08:00
Scott Shawcroft
8a6fe8a8f3
Merge pull request #1300 from sharpie7/master
...
Some platforms require SDKs and use of cmake
2022-02-22 15:03:59 -08:00
Ha Thach
e04f15ff3d
Merge pull request #1280 from kasjer/kasjer/nrf5x-dma-race
...
nrf5x: Fix DMA access race condition
2022-02-22 21:00:51 +07:00
hathach
e188117823
more esp build fix
2022-02-18 16:30:21 +07:00
Ha Thach
4612332af7
Merge pull request #1331 from hathach/fix-esp-build
...
fix build with latest esp idf
2022-02-18 16:22:50 +07:00
hathach
52645fcc1b
fix build with latest esp idf
2022-02-18 13:07:21 +07:00
Ha Thach
553767cc8a
Merge pull request #1330 from hathach/fix-HID_REPORT_ID_N
...
fix HID_REPORT_ID_N()
2022-02-17 14:07:59 +07:00
hathach
a53e83665e
fix HID_REPORT_ID_N()
2022-02-17 12:12:42 +07:00
Ha Thach
358866cd0f
Merge pull request #1328 from NexusXe/patch-1
...
Fix link to supported boards in Getting Started page
2022-02-17 11:58:41 +07:00
NexusXe
ada7a23ddc
Fix capitalization
2022-02-16 08:33:06 -06:00
NexusXe
a72d0245fa
Fix link to supported boards
...
It used to point to `boards.md`, which doesn't exist.
2022-02-16 08:29:20 -06:00
Ha Thach
fcca8bb4ca
Merge pull request #1327 from hathach/msc-request-sense
...
Add msc request sense callback
2022-02-15 23:17:58 +07:00
hathach
46f4f7ff49
minor rename set sense function
2022-02-15 22:53:23 +07:00
hathach
391edc7afb
msc example response PREVENT_ALLOW_MEDIUM_REMOVAL command as unsupported command
...
LUN1 of msc_disk_dual will be set to not ready to simulate medium not
present (e.g SD card removed)
2022-02-15 22:40:08 +07:00
Ha Thach
de4932d9c5
Merge pull request #1318 from JayToltTech/master
...
Nit spelling correction
2022-02-15 12:28:26 +07:00
Ha Thach
01684f71fb
Merge pull request #1322 from ZenithalHourlyRate/ZenithalHourlyRate-readme-typo
...
readme: fix typo
2022-02-15 12:20:29 +07:00
hathach
456c06aa5e
add tud_msc_request_sense_cb() as weak callback
...
set default error sense to NOT READY, Medium not present
2022-02-14 18:17:49 +07:00
Zenithal
678c415bea
readme: fix typo
2022-02-10 22:30:31 +08:00
Jay Beavers
2df57d2be0
Nit spelling correction
2022-02-09 08:19:01 -08:00
Ha Thach
63cb3cdc74
Merge pull request #1304 from kkitayam/add_hcd_for_frdm_kl25z
...
Add hcd driver for frdm kl25z
2022-02-09 16:14:50 +07:00
Ha Thach
d6fb1859a4
Merge pull request #1291 from kasjer/kasjer/da1469x-fix-resume
...
da1469x: fix resume
2022-02-02 20:20:39 +07:00
Ha Thach
c6cde724f6
Merge pull request #1305 from Ryzee119/patch-1
...
OHCI: Fix array out of bounds issue
2022-02-01 23:00:10 +07:00
Ha Thach
d56bbbb5a7
Merge pull request #1303 from mysterywolf/master
...
add rt-thread's tinyusb repo address
2022-02-01 22:35:21 +07:00
Ryzee119
453ba529a6
OHCI: Fix array out of bounds issue
...
If using a USB hub, a request outside the array size can occur
Original line:
ffb257ac17/src/portable/ohci/ohci.h (L162)
It can happen in a few places but one such example is here:
ffb257ac17/src/portable/ohci/ohci.c (L460)
ie. if HUB address is 5, this would be an array index out of bounds on control endpoints as `CFG_TUH_DEVICE_MAX+1` is only 5.
This fix just includes num of hubs in the reserve array size.
Fixing locally fixed this issue.
2022-01-28 14:02:34 +10:30
kkitayam
ce7a8fed36
Add a partial support mark to KL25
2022-01-28 01:18:44 +09:00
kkitayam
03d2e32dc1
Fix handling for pending transfers
2022-01-27 23:38:19 +09:00
kkitayam
d7cbfaaa0a
Add hcd into source list
2022-01-27 22:26:51 +09:00
kkitayam
60a0be82da
Change hcd_edpt_xfer to send at the next SOF
2022-01-27 22:25:36 +09:00
kkitayam
cc06a3585e
Add handling for NAK response
2022-01-27 20:57:41 +09:00
kkitayam
cdab869472
Fix handling control transfer
2022-01-27 20:57:41 +09:00
kkitayam
a4bc6075ce
Add HCD functions for KL25Z
2022-01-27 20:57:40 +09:00
Man, Jianting (Meco)
6085999e2b
add rt-thread's tinyusb repo address
2022-01-26 20:08:34 -05:00
Ha Thach
ffb257ac17
Merge pull request #1301 from hathach/fix-mynewt-sunxi
...
fix mynewt build sunxi
2022-01-26 17:02:52 +07:00
hathach
578a123282
fix mynewt build sunxi
2022-01-26 12:59:53 +07:00
Ha Thach
eea19daac6
Merge pull request #1220 from t123yh/master
...
Add support for Allwinner F1C100s family
2022-01-26 12:52:46 +07:00
Ha Thach
7de166390e
Merge branch 'master' into master
2022-01-25 22:29:05 +07:00
Iain Sharp
a80f23711e
Some platforms require SDKs and use of cmake
2022-01-24 20:56:13 +00:00
Jerzy Kasenberg
7b078367e8
dcd_da1469x: Re-enable RX after resume
...
Going to suspend states disable reception on non-0 RX endpoints.
Now when USB resume condition is detected, all RX endpoints
with pending transfers are resumed.
2022-01-20 16:28:09 +01:00
Jerzy Kasenberg
ae4d901d83
dcd_da1469x: Fix over-run/under-run mask
...
Bit mask enabling/disabling over-run/unde-run was shifted
by one nibble, so interrupt was never enabled.
It did not force any issue as this situation could only
happen on ISO endpoints without DMA.
2022-01-20 10:01:18 +01:00
Ha Thach
a592282079
Merge pull request #1288 from hathach/rx-host-example-ci
...
enable ci build for RX65X host example
2022-01-19 20:46:23 +07:00
hathach
3b66bbf6d5
enable ci build for RX65X host example
...
update comment for unit not ready 3a-00 additional sense
2022-01-19 19:12:21 +07:00
Ha Thach
e40547ada1
Merge pull request #1265 from kkitayam/add_hcd_for_renesas_rx
...
Add HCD driver for Renesas RX
2022-01-19 19:07:21 +07:00
Ha Thach
9e99269875
Merge pull request #1287 from alisitsyn/bugfix/fix_idfgh6508
...
fix idfgh-6508: return type in tu_fifo_peek_n()
2022-01-19 17:50:33 +07:00
Jerzy Kasenberg
36b6ed8ff9
nrf5x: Fix EP OUT race conditions in OS build
...
When two tasks entered dcd_edpt_xfer() it was possible that
first disabled interrupt to setup total_len and actual_len
but second task for another endpoint enabled interrupt
between total_len and actual_len resulting in race
condition with interrupt, hence mutex is added on top of interrupt being blocked.
2022-01-19 09:48:04 +01:00
Jerzy Kasenberg
980ffe3b4e
nrf5x: Fix DMA access race condition
...
In multi-thread mode starting DMA in thread mode was
prone to race condition resulting in infinite loop.
It may happen on single core CPU with strict priority based
tasks scheduler where ready high prio task never yields to
ready low prio task (Mynewt).
Sequence that failed (T1 - low priority task, T2 - high priority task)
- T1 called start_dma()
- T1 set _dcd.dma_running (DMA not started yet, context switch happens)
- T2 took CPU and saw that _dcd.dma_running is set, so waits for _dcd.dma_running to be 0
- T1 never gets CPU again, DMA is not started T2 waits forever
OSAL mutex resolves problem of DMA starting from thread-context.
2022-01-19 09:06:43 +01:00
email
af9a3f646c
fix idfgh-6508: return type in tu_fifo_peek_n()
...
https://github.com/espressif/esp-idf/issues/8161
2022-01-19 09:00:43 +01:00
Ha Thach
0b6b4f2441
Merge pull request #1286 from hathach/fix-fifo-mutex-when-full
...
fix locked mutex when fifo is full
2022-01-19 10:45:33 +07:00
Ha Thach
983abfd6d8
Merge pull request #1279 from kasjer/kasjer/nrf5x-int-race
...
nrf5x: Fix EP OUT race conditions
2022-01-19 10:33:37 +07:00