Hello,

it's always pointed out to use the keyword
Code:
volatile
with variables which are changed inside an ISR. What if I have a struct with a buffer inside and I want to change values in the buffer inside an ISR. Does the whole struct need to be defined as
Code:
volatile
or should only the buffer in the declaration through
Code:
typedef
be
Code:
volatile
?

Thank you in advance