Dash7Board Code Upgrade Protocol demonstration code.

Dependencies:   modem_ref_helper CRC

Committer:
Jeej
Date:
Fri Feb 19 11:00:25 2021 +0000
Revision:
9:d110f2b86831
Parent:
8:6b7d38139b43
v2.0.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jeej 0:5589104abba0 1 #ifndef _FILES_H_
Jeej 0:5589104abba0 2 #define _FILES_H_
Jeej 0:5589104abba0 3
Jeej 0:5589104abba0 4 #include "mbed.h"
Jeej 0:5589104abba0 5 #include "revision.h"
Jeej 0:5589104abba0 6 #include "alp_spec.h"
Jeej 0:5589104abba0 7 #include "alp_helpers.h"
Jeej 0:5589104abba0 8 #include "modem_ref.h"
Jeej 0:5589104abba0 9 #include "cup.h"
Jeej 0:5589104abba0 10
Jeej 0:5589104abba0 11 TYPEDEF_STRUCT_PACKED {
Jeej 0:5589104abba0 12 uint8_t fid;
Jeej 0:5589104abba0 13 uint32_t offset;
Jeej 0:5589104abba0 14 uint32_t length;
Jeej 0:5589104abba0 15 } touch_t;
Jeej 0:5589104abba0 16
Jeej 0:5589104abba0 17 extern Queue<touch_t, 8> g_file_modified;
Jeej 0:5589104abba0 18
Jeej 0:5589104abba0 19 extern alp_file_header_t h_rev;
Jeej 0:5589104abba0 20 extern revision_t f_rev;
Jeej 0:5589104abba0 21
Jeej 8:6b7d38139b43 22 extern alp_file_header_t h_cup_cfg;
Jeej 8:6b7d38139b43 23 extern cup_cfg_t f_cup_cfg;
Jeej 8:6b7d38139b43 24
Jeej 7:bfe920ee44f2 25 extern alp_file_header_t h_cup_cfg_bcast;
Jeej 8:6b7d38139b43 26 extern cup_cfg_bcast_t f_cup_cfg_bcast;
Jeej 0:5589104abba0 27
Jeej 0:5589104abba0 28 #define CUP_FILE_MAX_SIZE (158*8*128)
Jeej 0:5589104abba0 29 extern alp_file_header_t h_cup_code;
Jeej 0:5589104abba0 30
Jeej 0:5589104abba0 31 #endif // _FILE_H_