renesas: support micros with different number of HW pipes
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
sorry, I was busy with other works, will pull out datasheet and check this out soon enough. Thank you for your patient.
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.
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.
Sorry, was busy with other works. Will check this out as soon as I could
closed since a better approach is implemented by #2588