Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renesas_RA: add support for board with HS USB port #2052

Merged
merged 45 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
be54870
renesas_ra: add support for HS port
facchinm May 3, 2023
4afed62
renesas_ra: host: handle retry on attach()
facchinm May 3, 2023
5f7e7b4
renesas_ra: support RA2A1 (FS only)
facchinm May 3, 2023
a349869
renesas_ra: fix existing boards support
facchinm May 3, 2023
6ff62c0
renesas: add fallback for targets not defining CFG_TUSB_RHPORT*_MODE
facchinm May 3, 2023
161c95f
renesas: update fsp to 4.0.0
facchinm May 4, 2023
32f9f45
renesas: provide default for CFG_TUSB_RHPORT1_MODE
facchinm May 17, 2023
cdae66c
renesas_rx: fix compilation on latest GCC
facchinm Jun 5, 2023
cdbd3a0
Merge remote-tracking branch 'mainline/master' into HEAD
facchinm Jun 5, 2023
2b735ee
renesas_ra: fix wrong ifdef
facchinm Jun 5, 2023
04b1a67
Merge branch 'master' into renesas_ra_hs_rebased
hathach Jul 3, 2023
bb0e688
add jlinkscript for detect rtt
hathach Jul 3, 2023
071c30f
update fsp to version 4.5, correct RA BSP. Fix ETM Trace with 6m5 by …
hathach Jul 4, 2023
1d6ca3b
fix ra4m3 ek build
hathach Jul 4, 2023
f79529c
usb hs work with ra 6m5 ek
hathach Jul 5, 2023
4f4c935
minor pipe clean up
hathach Jul 5, 2023
f308435
update ra type to include usbhs registers
hathach Jul 5, 2023
95b77a0
add rusb2_module_start(), more update for multiple ports for dcd rusb2
hathach Jul 6, 2023
1eefc2b
more multiple ports update
hathach Jul 6, 2023
c53acb1
fix build with rx
hathach Jul 6, 2023
4bbacb1
correct setting trace clock
hathach Jul 7, 2023
4c15610
use unaligned access read for hw fifo
hathach Jul 7, 2023
e0f1ba8
fully work with multiple ports without CFG_TUSB_RHPORT0/1
hathach Jul 7, 2023
88478a9
add PORT selection for makefile
hathach Jul 7, 2023
f7e7ba9
enable host example for ra
hathach Jul 7, 2023
0f53e74
move check highspeed to rusb_ra
hathach Jul 7, 2023
b56c4fe
Merge branch 'master' into renesas_ra_hs_rebased
hathach Jul 18, 2023
fbaa148
updating hcd rusb2
hathach Jul 18, 2023
1cb3f0e
increase stack size for 6 series to 0x1000, 4 series to 0x800
hathach Jul 26, 2023
6b6dcc6
refactored multiple ports for hcd rusb2
hathach Jul 26, 2023
ec093be
Merge branch 'master' into renesas_ra_hs_rebased
hathach Jul 27, 2023
6021803
fix ci
hathach Jul 28, 2023
e56d544
- revert usb address
hathach Jul 28, 2023
feb58eb
add uno r4 wih FLASH_IMAGE_START=0x4000, running but interrupt (systi…
hathach Jul 28, 2023
0d9973e
enable_irq since uno bootloader can disable it. systick triggered, ho…
hathach Jul 31, 2023
cb47231
revert out of scope changes
hathach Jul 31, 2023
3f788a4
enable USBMC for uno r4, add board_init_after_tusb() API
hathach Jul 31, 2023
1cccbaf
fix board name with dash
hathach Aug 1, 2023
789e478
add portenta c33 bsp, add flash by dfu-util
hathach Aug 1, 2023
40833b5
enable flto for ra makefile
hathach Aug 1, 2023
965627e
rusb2: move dynamic irq function to c file
facchinm Aug 1, 2023
04f1a34
add rusb2_common.c for dynami irq
hathach Aug 1, 2023
f04e510
Merge branch 'arduino-renesas_ra_hs_rebased' into renesas_ra_hs_rebased
hathach Aug 1, 2023
47ae883
fix build with -flto
hathach Aug 1, 2023
edee46e
renesas: host: remove attach_attempt logic
facchinm Aug 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
- 'lpc51 lpc54'
- 'mm32 msp432e4'
- 'nrf'
- 'ra'
- 'samd11 samd21'
- 'samd51 same5x'
- 'saml2x'
Expand Down
11 changes: 5 additions & 6 deletions .idea/cmake.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations/ra4m1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations/ra6m1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations/ra6m5.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations/uno_r4.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions examples/device/audio_4_channel_mic/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

// Init values
sampFreq = AUDIO_SAMPLE_RATE;
clkValid = 1;
Expand Down
4 changes: 4 additions & 0 deletions examples/device/audio_test/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

// Init values
sampFreq = AUDIO_SAMPLE_RATE;
clkValid = 1;
Expand Down
4 changes: 4 additions & 0 deletions examples/device/audio_test_multi_rate/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

// Init values
sampFreq = sampleRatesList[0];
clkValid = 1;
Expand Down
4 changes: 4 additions & 0 deletions examples/device/cdc_dual_ports/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/cdc_msc/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
1 change: 1 addition & 0 deletions examples/device/cdc_msc_freertos/skip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ mcu:RP2040
mcu:SAMD11
mcu:SAMX7X
mcu:VALENTYUSB_EPTRI
mcu:RAXXX
family:broadcom_32bit
family:broadcom_64bit
4 changes: 4 additions & 0 deletions examples/device/cdc_msc_freertos/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ void usb_device_task(void* param)
// Otherwise it could cause kernel issue since USB IRQ handler does use RTOS queue API.
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

// RTOS forever loop
while (1)
{
Expand Down
4 changes: 4 additions & 0 deletions examples/device/dfu/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/dfu_runtime/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/dynamic_configuration/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/hid_boot_interface/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/hid_composite/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
1 change: 1 addition & 0 deletions examples/device/hid_composite_freertos/skip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ mcu:RP2040
mcu:SAMD11
mcu:SAMX7X
mcu:VALENTYUSB_EPTRI
mcu:RAXXX
family:broadcom_32bit
family:broadcom_64bit
4 changes: 4 additions & 0 deletions examples/device/hid_composite_freertos/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ void usb_device_task(void* param)
// Otherwise it could cause kernel issue since USB IRQ handler does use RTOS queue API.
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

// RTOS forever loop
while (1)
{
Expand Down
4 changes: 4 additions & 0 deletions examples/device/hid_generic_inout/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/hid_multiple_interface/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/midi_test/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/msc_dual_lun/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/net_lwip_webserver/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

/* initialize lwip, dhcp-server, dns-server, and http */
init_lwip();
while (!netif_is_up(&netif_data));
Expand Down
4 changes: 4 additions & 0 deletions examples/device/uac2_headset/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

TU_LOG1("Headset running\r\n");

while (1)
Expand Down
4 changes: 4 additions & 0 deletions examples/device/usbtmc/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/video_capture/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
4 changes: 4 additions & 0 deletions examples/device/webusb_serial/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ int main(void)
// init device stack on configured roothub port
tud_init(BOARD_TUD_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
1 change: 1 addition & 0 deletions examples/dual/host_hid_to_device_cdc/only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ board:mimxrt1060_evk
board:mimxrt1064_evk
board:mcb1800
mcu:RP2040
mcu:ra6m5
4 changes: 4 additions & 0 deletions examples/dual/host_hid_to_device_cdc/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ int main(void)
tud_init(BOARD_TUD_RHPORT);
tuh_init(BOARD_TUH_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
tud_task(); // tinyusb device task
Expand Down
1 change: 1 addition & 0 deletions examples/host/bare_api/only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ mcu:MIMXRT11XX
mcu:RP2040
mcu:MSP432E4
mcu:RX65X
mcu:RAXXX
4 changes: 4 additions & 0 deletions examples/host/bare_api/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ int main(void)
// init host stack on configured roothub port
tuh_init(BOARD_TUH_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
// tinyusb host task
Expand Down
1 change: 1 addition & 0 deletions examples/host/cdc_msc_hid/only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ mcu:MIMXRT11XX
mcu:RP2040
mcu:MSP432E4
mcu:RX65X
mcu:RAXXX
4 changes: 4 additions & 0 deletions examples/host/cdc_msc_hid/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ int main(void)
// init host stack on configured roothub port
tuh_init(BOARD_TUH_RHPORT);

if (board_init_after_tusb) {
board_init_after_tusb();
}

while (1)
{
// tinyusb host task
Expand Down
1 change: 1 addition & 0 deletions examples/host/hid_controller/only.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ mcu:MIMXRT11XX
mcu:RP2040
mcu:MSP432E4
mcu:RX65X
mcu:RAXXX
Loading