This commit is contained in:
2021-02-08 18:07:17 +01:00
parent 82e4b08937
commit 38ae182326
3 changed files with 60 additions and 6 deletions

View File

@ -19,4 +19,9 @@ typedef struct __attribute__((__packed__)) {
t_event events[SECONDS_PER_MINUTE];
} t_minuteStruct;
typedef union {
t_minuteStruct s;
uint8_t b[sizeof(t_minuteStruct)];
} t_minuteBuffer;
#endif // _SINKSTRUCT_H_

View File

@ -27,10 +27,6 @@ volatile static uint32_t mainsCntCnt = 0;
static t_seconds *seconds;
typedef union {
t_minuteStruct s;
uint8_t b[sizeof(t_minuteStruct)];
} t_minuteBuffer;
#define NUM_OF_MINUTE_BUFFERS 2
t_minuteBuffer minuteBuffers[NUM_OF_MINUTE_BUFFERS];