Volatile declared entities #68
Unanswered
bennydiamond
asked this question in
dscKeybusInterface Discussion
Replies: 1 comment
-
Hi @bennydiamond - https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt/ I tested this during development and confirmed that CRC errors would crop up in the data. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I fail to see the relevance in declaring certain variables and function parameters as volatile in the library. At least in release code.
Removing all volatile specifiers throughout the library's code yeilded no apparent ill-effect but reduced DATA memory usage by 20 bytes and PROGRAM by 150 bytes, on ATMEGA328p at least. It probably also speeds up overall execution time a bit since compiler can freely optimize them.
So am I missing something? I have a fairly basic Alarm System setup so maybe I am not getting the full picture here.
Beta Was this translation helpful? Give feedback.
All reactions