Skip to content

Commit

Permalink
Merge pull request #2052 from arduino/renesas_ra_hs_rebased
Browse files Browse the repository at this point in the history
Renesas_RA: add support for board with HS USB port
  • Loading branch information
hathach authored Aug 3, 2023
2 parents d91869a + edee46e commit 6d03bb9
Show file tree
Hide file tree
Showing 96 changed files with 2,919 additions and 1,033 deletions.
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

0 comments on commit 6d03bb9

Please sign in to comment.