From c210f9167be5bb4b8ac63faf1817e086c8d94ed7 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Wed, 15 Aug 2012 20:42:24 -0400 Subject: initial support for read/write commands on packed flash struct --- globals.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'globals.h') diff --git a/globals.h b/globals.h index 245fc12..a647a46 100644 --- a/globals.h +++ b/globals.h @@ -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]; -- cgit