-
Notifications
You must be signed in to change notification settings - Fork 215
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
make serial port, ADC, and SPI examples portable across targets #259
base: main
Are you sure you want to change the base?
Conversation
…rates how to declare the serial port using generics such that it will compile on multiple targets
Uhm, I like the idea, but ... The word arduino has too many meanings. It was once a PCB with an I think ( I suggest) that portable across targets is also portable outside the arduino island. Think ARM (STM32) and RISC-V. |
Sweet platypus on a unicycle : I forgot to add the new directory to the repo. While I'm fixing that, I'll rename it to avr-portable. |
Hey, thanks a lot for this PR! I like the idea of including examples which show how to write "generic" code ontop of
That said, there of course still is a use-case for the former as well. So I would like to include your examples to demonstrate it. However, I don't think we should modify the existing examples to make use of it. Instead I would just add your |
Does the existence of #264 allow to close this merge request? I'm asking because dangling merge requests do obstruct the flow of evolution. |
If #264 is accepted, this merge request becomes superfluous. |
extract the serial port example into a portable function that demonstrates how to declare the serial port using generics such that it will compile on multiple targets.
I think folks can benefit from seeing concrete examples of how to write cross-platform fuctions like