diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-15 20:42:24 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-15 20:42:24 -0400 |
commit | c210f9167be5bb4b8ac63faf1817e086c8d94ed7 (patch) | |
tree | f03c495c2130bbb7cdce0bc488510f3e9ce7e0b4 /globals.h | |
parent | 0e73c5d7d6346a54f84f1e10471aa974f10752c5 (diff) |
initial support for read/write commands on packed flash struct
Diffstat (limited to 'globals.h')
-rw-r--r-- | globals.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -17,15 +17,17 @@ typedef struct { // this will be enlarged later } ChannelStruct; +#pragma pack(push) /* push current alignment to stack */ +#pragma pack(1) typedef struct { char flash_start; - char* aux_error_message; - int channels; + short channels; + char aux_error_message[32]; char enable_avrq_extra_ampls; char ChanKey_frequency; char flash_end; } FlashStruct; - +#pragma pack(pop) typedef struct { ChannelStruct ChannelState[max_channels]; |