tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

renesas: support micros with different number of HW pipes

Open maidnl opened this issue 2 years ago • 4 comments

renesas: add support for renesas micro with different number of USB hw pipes

not all renesas micro have the same number of pipes as expected by the find_pipe function. For example see RA4M1 micro which only have 2 bulk pipes and 2 interrupt pipes. For this reason some defines were introduced so that the actual number and positions of USB HW pipes can be defined at build time for different kind of processor.

If you prefer a different approach please let me know. I will try to implement and test that on our arduino devices that uses renesas micro. Thanks

@facchinm

maidnl avatar Sep 08 '23 10:09 maidnl

sorry, I was busy with other works, will pull out datasheet and check this out soon enough. Thank you for your patient.

hathach avatar Sep 14 '23 04:09 hathach

I am so sorry, I wrote the wrong micro. The micro with less PIPES is RA2A1 (not RA4M1). Really sorry, my mistake! I think this PR is necessary. Thank you.

maidnl avatar Sep 19 '23 10:09 maidnl

Hi! I am really sorry to bother you on this topic again. I would like to ask you if can reconsider the possibility to merge this PR. As I wrote in my previous comment I initially mentioned the wrong renesas microcontroller (again I'm sorry for that): the renesas microcontroller with less pipes is RA2A1 (he really is :-). I think this PR is required to make possible the use of this renesas microcontroller and I hope you can reconsider it and merge it. This will allow us (Arduino) to switch our project on your mainline (we get your last upgrades easily, you get us to test them on a large base of different products). Thank you very much and I hope you can forgive my initial mistake.

maidnl avatar Oct 26 '23 08:10 maidnl

Sorry, was busy with other works. Will check this out as soon as I could

hathach avatar Oct 31 '23 10:10 hathach

closed since a better approach is implemented by #2588

hathach avatar Apr 10 '24 13:04 hathach