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

ISO endpoint allocation improvments #2567

Merged
merged 7 commits into from
Apr 8, 2024
Merged

Conversation

HiFiPhile
Copy link
Collaborator

@HiFiPhile HiFiPhile commented Apr 2, 2024

Describe the PR

  • Move the check TUP_DCD_EDPT_ISO_ALLOC into tusb_mcu.h
  • Add support to video class
    • Tested video_capture and video_capture_2ch example work on NUCLEO-G0B1RE with ISO endpoints, previously only bulk endpoints work.

Additional context
Now we can remove the buggy buffer free/realloc code from fsdev and dwc2 driver.

@HiFiPhile HiFiPhile requested a review from kkitayam April 2, 2024 13:59
@HiFiPhile HiFiPhile closed this Apr 3, 2024
@HiFiPhile HiFiPhile reopened this Apr 3, 2024
@kkitayam
Copy link
Collaborator

kkitayam commented Apr 3, 2024

Please give me a few days. I would like to check the PR in my environment later.

@HiFiPhile
Copy link
Collaborator Author

Take your time :)

@kkitayam
Copy link
Collaborator

kkitayam commented Apr 6, 2024

I had check that the PR works on my RP2040 and RX65N target board.

@HiFiPhile
Copy link
Collaborator Author

Thanks for your check, although these 2 mcu don't use fifo allocation feature. I saw allocation is needed in dcd_rp2040 so it would help once it's implemented, not sure the case of RX.

@HiFiPhile
Copy link
Collaborator Author

@hathach Maybe my dwc2 PR crashed your HIL test setup...

@hathach
Copy link
Owner

hathach commented Apr 8, 2024

@hathach Maybe my dwc2 PR crashed your HIL test setup...

Not at all, pi4 seems to struggle with usb stability. I need to do manual reboot after a while. Changes look great, merge now

@hathach hathach merged commit 872864e into hathach:master Apr 8, 2024
49 checks passed
@HiFiPhile HiFiPhile deleted the iso_alloc branch April 8, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants