-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Add multithreding support to HardwareSerial #7459
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
Conversation
This fix will allow use HardwareSerial driver in simple multithreading applications.
This simplest library implement iterative multithreading functionality. Allow create and switch the quasi-parallel tasks by yield() function call or 1 ms quantum of time elapsed.
583e7d1 could make sense, while including a whole new library (Thread in this case) is not going to happen 🙂
If you could move the PR (or, better, only the first commit) to https://github.com/arduino/ArduinoCore-avr it would help, thanks!
@facchinm Well I will do as you said. I thought that such a simplification as the library "Tread.h" might have interested you and users. I could not do it more simply, if it possible in principle.
Excuse me, please. I discovered strange unexpected editing error what I removed in commits to ArduinoCore-avr. My code works good and I planning use it for toys in future.
This fix will allow use HardwareSerial driver in simple multithreading applications.