Skip to content
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

If i use WHILE (1), waiting for the serial port data will cause blocking, how to solve this problem? #140

Open
zhang402368157 opened this issue Jul 17, 2018 · 3 comments

Comments

@zhang402368157
Copy link

If i use WHILE (1), waiting for the serial port data will cause blocking, how to solve this problem?

Attached code:
while(1)
do

str = uart.getchar( 0 )

if(str == '\a')
then
break
else
uart.write( 0, str)
end

end

@gabrield
Copy link
Contributor

gabrield commented Jul 17, 2018 via email

@zhang402368157
Copy link
Author

Another question,whether the serial port can receive by interrupt ?

@gabrield
Copy link
Contributor

gabrield commented Jul 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants