Hallo! Mal eine Frage - wenn ich Elemente in einem Struct durch einen Interrupt verändere, wie muss ich das struct dann deklarieren?
1 | volatile struct |
2 | {
|
3 | uint8_t a; |
4 | ...
|
5 | } xyz_struct; |
oder
1 | struct
|
2 | {
|
3 | volatile uint8_t a; |
4 | ...
|
5 | } xyz_struct; |
oder
1 | struct
|
2 | {
|
3 | uint8_t a; |
4 | ...
|
5 | } volatile xyz_struct; |
oder gar
1 | volatile struct |
2 | {
|
3 | volatile uint8_t a; |
4 | ...
|
5 | } xyz_struct; |
:-) Kann mir das jemand verraten?