Skip to content

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

Closed
wants to merge 9 commits into from
Closed

Add multithreding support to HardwareSerial #7459

wants to merge 9 commits into from

Conversation

slavaza
Copy link

@slavaza slavaza commented Apr 12, 2018

This fix will allow use HardwareSerial driver in simple multithreading applications.

slavaza added 9 commits April 12, 2018 19:49
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.
@facchinm
Copy link
Member

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 facchinm added Waiting for feedback More information must be provided before we can proceed Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug labels Apr 13, 2018
@slavaza
Copy link
Author

slavaza commented Apr 13, 2018

@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.

@slavaza
Copy link
Author

slavaza commented Apr 13, 2018

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.

@per1234 per1234 added Component: Core Related to the code for the standard Arduino API feature request A request to make an enhancement (not a bug fix) Type: Duplicate Another item already exists for this topic and removed Waiting for feedback More information must be provided before we can proceed labels Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Related to the code for the standard Arduino API feature request A request to make an enhancement (not a bug fix) Type: Duplicate Another item already exists for this topic Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants