#ifndef GLOBALS_H_ #define GLOBALS_H_ #include #include #include #include "error_utils.h" #define error_queue_length 512 #define max_commands_in_input 12 #define max_output_length 512 #define max_channels 2 typedef struct { float frequency; // this will be enlarged later } ChannelStruct; #pragma pack(push) /* push current alignment to stack */ #pragma pack(1) typedef struct { char flash_start; 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]; FlashStruct Flash; int error_queue[error_queue_length+1]; int number_of_errors; /* how many errors are in the error queue */ } GlobalStruct; extern GlobalStruct globals; #endif