Guest User

Untitled

a guest
Jul 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. uint32_t uptime = 0;
  2.  
  3. // interrupt each 1 ms
  4. ISR()
  5. {
  6. // this is the only location which writes to uptime
  7. ++uptime;
  8. }
  9.  
  10. void some_func()
  11. {
  12. uint32_t now = uptime;
  13. }
Add Comment
Please, Sign In to add comment