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

Use ring buffer made by ATS2 for serial console #3

Open
master-q opened this issue Apr 6, 2015 · 4 comments
Open

Use ring buffer made by ATS2 for serial console #3

master-q opened this issue Apr 6, 2015 · 4 comments

Comments

@master-q
Copy link
Member

master-q commented Apr 6, 2015

No description provided.

@master-q
Copy link
Member Author

master-q commented Apr 6, 2015

AVR libc has interrupt disable function.

  uint8_t oldSREG = SREG;
  cli();
  /* Some atomic code. */
  SREG = oldSREG;

@githwxi
Copy link

githwxi commented Apr 6, 2015

I know that Will Blair did this a while ago. I will inform him of what you are doing.

@master-q
Copy link
Member Author

master-q commented Apr 6, 2015

Thank's!

@master-q
Copy link
Member Author

master-q commented Apr 6, 2015

Sometimes following is useful for it:

Effective ATS: Producer-Consumer
http://ats-lang.sourceforge.net/EXAMPLE/EFFECTIVATS/Producer-Consumer/main.html

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