diff options
author | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:50:00 -0500 |
---|---|---|
committer | root <root@fedora-arm.domain.avtechpulse.com> | 1999-12-31 19:50:00 -0500 |
commit | 80b991816acb29e645fa7e047325942f8f050861 (patch) | |
tree | d44958d923a3578eaa13bb4432648889b08909a4 /globals.h | |
parent | 3702b14f594c86af91e063e8b1403e7bfd982bfe (diff) |
add new files
Diffstat (limited to 'globals.h')
-rw-r--r-- | globals.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/globals.h b/globals.h new file mode 100644 index 0000000..af0e114 --- /dev/null +++ b/globals.h @@ -0,0 +1,38 @@ +#ifndef GLOBALS_H_ +#define GLOBALS_H_ + +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include "error_utils.h" + + +#define error_queue_length 512 +#define max_input_word_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; + +typedef struct { + char* aux_error_message; + int channels; + char enable_avrq_extra_ampls; + char ChanKey_frequency; +} FlashStruct; + + +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
\ No newline at end of file |