Ha Thach
a03a03d74e
Merge pull request #1495 from hathach/enhance-tusb-config
...
Better support multiple controllers configuration
2022-06-07 01:13:08 +07:00
hathach
7c8278303b
update all host examples
2022-06-06 23:16:49 +07:00
hathach
9794a2b865
more example update
2022-06-06 22:41:04 +07:00
hathach
f4c80dd218
clean up example to use CFG_TUD_ENABLED + CFG_TUD_MAX_SPEED instead of CFG_TUSB_RHPORT0_MODE
2022-06-06 17:35:17 +07:00
Ha Thach
afd9b1883d
Merge pull request #1481 from cr1901/msp430-misopt-fix
...
msp430x5xx: Add fix for possible bug in msp430-elf-gcc 9.3.0.
2022-06-06 15:37:45 +07:00
hathach
1b08672945
more ci fix
2022-06-06 13:25:48 +07:00
hathach
7187cd9a85
fix ci, remove use of CFG_TUSB_RHPORT0_MODE in bsp
2022-06-06 12:51:10 +07:00
hathach
f626916a57
update all dwc2 ports to support new dynamic controller support
2022-06-04 23:52:12 +07:00
Ryzee119
7df7590f7f
Hub: Remove multi-level hub bypass
2022-06-04 18:58:20 +09:30
hathach
31134f41a1
make dwc2 stm32 rhport support dynamic
2022-06-03 17:24:28 +07:00
hathach
2571211957
remove static port defined for device/host
2022-06-03 11:32:09 +07:00
Jerzy Kasenberg
8b37aa1579
nrf5x: Fix DMA access
...
There were two problems:
- dma_running flag could be checked in USB interrupt (not set yet) then higher priority
interrupt could start transfer, check dma_running (not set yet) set it to true start
DMA; then when USB interrupt continues it starts another DMA that is not allowed
- when DMA is started some registers can't be safely accessed, read can yield invalid
values (SIZE.EPOUT, SIZE.EPISO)
current implementation could start DMA for one OUT endpoint then check that another
endpoint also has data and while DMA was not started right away, SIZE.EPOUT was copied
already to MAXCNT register. Later on when DMA was started not all data was read from
endpoint due to incorrect DMA size previously set.
To prevent both cases dma_running is changed in atomic way.
Only code that actually set this value to true starts DMA, code that tried and
had dma_running flag already set simply defers DMA start to USB task.
This eliminates also need to have mutex that was there to limit access to dma_running flag
to one task only.
transfer also now has started flag that is set only after dcd_edpt_xfer() sets up total_len
and actua_len. Previously USB interrupt was disabled when total_len and actual_len were
setup to prevent race condition when data arrived to ednpoint before transfer was setup
was finished.
2022-06-02 17:23:35 +02:00
hathach
8b9cf152a0
rhport argument in usbd_ API() is not used (always use the initialized port)
...
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
Rafael Silva
ea81d22f18
add __evenaccess keyword for CCRX compiler compatibility
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
fbc2979428
fix iso int register typo
...
druing the renaming int and iso endpoint configurations were swapped
Co-authored-by: Koji KITAYAMA <45088311+kkitayam@users.noreply.github.com>
2022-06-02 09:35:30 +01:00
Rafael Silva
79fd23974c
fix host preprocessor flag typo
...
Co-authored-by: Koji KITAYAMA <45088311+kkitayam@users.noreply.github.com>
2022-06-02 09:35:30 +01:00
Rafael Silva
60aae59eeb
style code for consistency with existing codebase
2022-06-02 09:35:30 +01:00
Rafael Silva
e0220c6594
fix int handling for host in ek_ra4m3 port
2022-06-02 09:35:30 +01:00
Rafael Silva
c529d0b440
remove duplicate link register bit macros
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
e7027efe7a
add contributions to docs
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
4c89776a27
add renesas ek-ra4m3 board port
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
0bf0e0b35f
add renesas ra mcu family to supported devices docs
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
a936bafb8c
add support for renesas ra family of mcus
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
2a17a7e8f8
rework make freertos port handling
...
this allows ports to specify a freertos port outside the FreeRTOS-Kernel lib directory, which would otherwise not be possible
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
03777f4a46
generalize renesas LINK core driver
...
create local register access struct and move mcu specific code
in preparation of support for other mcu families that use the LINK usb core
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
dcadbf3364
rename renesas driver to link
...
link was chosen according to the name for the usb core on datasheets, LINK core
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
f2e8a60e6d
add .vscode to gitignore
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:30 +01:00
Rafael Silva
0ee74a71e2
add renesas fsp submodule
...
Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
2022-06-02 09:35:28 +01:00
hathach
99c1585ed2
rename board specific macro for example
...
- BOARD_DEVICE/HOST_RHPORT_NUM to BOARD_TUD/H_RHPORT
- BOARD_DEVICE/HOST_RHPORT_SPEED to BOARD_TUD/H_MAX_SPEED
2022-06-01 23:53:40 +07:00
Ha Thach
b6a8d0dd71
Merge pull request #1485 from tfx2001/patch-1
...
Fix compile error
2022-06-01 23:26:57 +07:00
tfx2001
54d7790e8b
fix compile error
2022-06-01 21:37:26 +08:00
Ha Thach
d1d6bd2831
Merge pull request #1483 from hathach/clean-rp2040-net-example
...
remove cmake compile macro for net example (use lwipopts.h instead)
2022-06-01 16:17:46 +07:00
hathach
ea8a9e0249
remove cmake compile macro for net example (use lwipopts.h instead)
2022-06-01 15:10:05 +07:00
Ha Thach
fd8afc7e3b
Merge pull request #1454 from Iktek/bugfix_1453
...
overwrite grstctl on edpt_disable
2022-06-01 14:36:36 +07:00
hathach
6e7cd220dc
grstctl set fifo + flush in one assign
2022-06-01 13:18:24 +07:00
Ha Thach
9352f75220
Merge pull request #1438 from Nikitarc/master
...
Update dwc2_stm32.h
2022-06-01 12:23:32 +07:00
Ha Thach
fdeac8508b
Merge pull request #1381 from hathach/add-sof-isr
...
Add SOF IRQ Handler
2022-05-31 22:25:14 +07:00
Ha Thach
ab7c23a787
Merge pull request #1479 from M3gaFr3ak/master
...
Fix printf long int compiler error
2022-05-31 21:53:29 +07:00
hathach
e384d16d57
clean up tud_audio_set_itf_cb() invocation
2022-05-31 21:52:54 +07:00
Ha Thach
223aaeaecd
Merge pull request #1463 from hathach/sof-isr-update
...
changes proposal to audio feedback computation
2022-05-31 20:57:07 +07:00
hathach
f2926670cc
comment out fifo count method for now
2022-05-31 20:26:37 +07:00
William D. Jones
731ac3d3d6
msp430x5xx: Add fix for possible bug in msp430-elf-gcc 9.3.0.
2022-05-30 14:28:30 -04:00
Ryzee119
b7c8cb3c41
Hub: Unplug downstream devices on non-root hub disconnect
2022-05-29 14:15:57 +09:30
Ryzee119
9e30ec4f16
Hub: Retry port status transfer if failed
2022-05-29 14:15:23 +09:30
Ryzee119
688a3a0cc2
Fix non-trivial designated initializers compile error
2022-05-29 14:15:18 +09:30
Leon Loeser
a87ccee743
Fix printf long int compiler error
2022-05-28 19:48:20 +02:00
Ha Thach
f4efb51fe2
Merge pull request #1477 from cr1901/fix-subm
...
Remove lib/Pico-PIO-USB, which has moved to hw/mcu/raspberry_pi/Pico-PIO-USB. Fixes #1475 .
2022-05-28 00:11:43 +07:00
hathach
dce2ad4ffb
adding feedback fifo count (WIP)
2022-05-27 23:11:25 +07:00
William D. Jones
f76c7526c9
Remove lib/Pico-PIO-USB, which has moved to hw/mcu/raspberry_pi/Pico-PIO-USB.
2022-05-27 11:54:28 -04:00
hathach
15aa593790
wrap feedback and compute to its own struct/union
2022-05-27 12:27:31 +07:00