Dash7Board Code Upgrade Protocol demonstration code.

Dependencies:   modem_ref_helper CRC

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers files.h Source File

files.h

00001 #ifndef _FILES_H_
00002 #define _FILES_H_
00003 
00004 #include "mbed.h"
00005 #include "revision.h"
00006 #include "alp_spec.h"
00007 #include "alp_helpers.h"
00008 #include "modem_ref.h"
00009 #include "cup.h"
00010 
00011 TYPEDEF_STRUCT_PACKED {
00012     uint8_t fid;
00013     uint32_t offset;
00014     uint32_t length;
00015 } touch_t;
00016 
00017 extern Queue<touch_t, 8> g_file_modified;
00018 
00019 extern alp_file_header_t        h_rev;
00020 extern revision_t               f_rev;
00021 
00022 extern alp_file_header_t        h_cup_cfg;
00023 extern cup_cfg_t                f_cup_cfg;
00024 
00025 extern alp_file_header_t        h_cup_cfg_bcast;
00026 extern cup_cfg_bcast_t          f_cup_cfg_bcast;
00027 
00028 #define CUP_FILE_MAX_SIZE       (158*8*128)
00029 extern alp_file_header_t        h_cup_code;
00030 
00031 #endif // _FILE_H_