Dash7Board Code Upgrade Protocol demonstration code.

Dependencies:   modem_ref_helper CRC

Revision:
4:c97df2bc1731
Parent:
3:cfe26c2bb78b
Child:
7:bfe920ee44f2
--- a/files.cpp	Fri Oct 05 16:59:14 2018 +0000
+++ b/files.cpp	Thu Oct 11 12:52:30 2018 +0000
@@ -6,7 +6,7 @@
 #define __DEVICE_ID__               0x00000019
 
 alp_file_header_t h_rev = {
-    .perm = RW_R,
+    .perm = RWR_R_,
     .prop = FS_PERMANENT_NOTIF,
     .afid = FID_ACTP_RPT_FULL,
     .ifid = IFID_REPORT,
@@ -28,14 +28,14 @@
     .fw_version.id       = 0,
     .fw_version.major    = 1,
     .fw_version.minor    = 0,
-    .fw_version.patch    = 2,
+    .fw_version.patch    = 3,
     .fw_version.hash     = 0x00000000,
     /// Maximum size for CUP code
     .cup_max_size        = CUP_FILE_MAX_SIZE
 };
 
 alp_file_header_t h_cup_cfg = {
-    .perm = RW_R, // This file is accessed as ROOT
+    .perm = RW____, // This file is accessed as ROOT
     .prop = FS_VOLATILE,
     .afid = 0,
     .ifid = 0,
@@ -49,7 +49,7 @@
 };
 
 alp_file_header_t h_cup_code = {
-    .perm = RW_RW, // This file is written as GUEST (no encryption)
+    .perm = RWRWRW, // This file is written as GUEST (no encryption)
     .prop = FS_PERMANENT,
     .afid = 0,
     .ifid = 0,