summaryrefslogtreecommitdiff
path: root/globals.h
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-15 20:42:24 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-15 20:42:24 -0400
commitc210f9167be5bb4b8ac63faf1817e086c8d94ed7 (patch)
treef03c495c2130bbb7cdce0bc488510f3e9ce7e0b4 /globals.h
parent0e73c5d7d6346a54f84f1e10471aa974f10752c5 (diff)
initial support for read/write commands on packed flash struct
Diffstat (limited to 'globals.h')
-rw-r--r--globals.h8
1 files changed, 5 insertions, 3 deletions
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];