Dash7Board Code Upgrade Protocol demonstration code.
Dependencies: modem_ref_helper CRC
Diff: files.cpp
- Revision:
- 7:bfe920ee44f2
- Parent:
- 4:c97df2bc1731
- Child:
- 8:6b7d38139b43
--- a/files.cpp Tue Oct 16 15:24:09 2018 +0000 +++ b/files.cpp Tue Aug 20 13:55:45 2019 +0000 @@ -28,24 +28,22 @@ .fw_version.id = 0, .fw_version.major = 1, .fw_version.minor = 0, - .fw_version.patch = 3, + .fw_version.patch = 4, .fw_version.hash = 0x00000000, /// Maximum size for CUP code .cup_max_size = CUP_FILE_MAX_SIZE }; -alp_file_header_t h_cup_cfg = { +alp_file_header_t h_cup_cfg_bcast = { .perm = RW____, // This file is accessed as ROOT .prop = FS_VOLATILE, .afid = 0, .ifid = 0, - .size = HAL_U32_BYTE_SWAP((uint32_t)sizeof(cup_cfg_t)), - .alloc= HAL_U32_BYTE_SWAP((uint32_t)sizeof(cup_cfg_t)) + .size = HAL_U32_BYTE_SWAP((uint32_t)sizeof(cup_cfg_bcast_header_t)), // XXX no bitmap + .alloc= HAL_U32_BYTE_SWAP((uint32_t)sizeof(cup_cfg_bcast_header_t)) }; -cup_cfg_t f_cup_cfg = { - .cmd = CUP_CMD_UPGRADE_DONE, - .arch_nb = 0, +cup_cfg_bcast_header_t f_cup_cfg_bcast = { }; alp_file_header_t h_cup_code = {