Program to update the D7A modem's firmware.

Dependencies:   modem_ref_helper DebouncedInterrupt

Revision:
8:914b7aff5554
Parent:
7:5b8648784381
Child:
9:bd53ca2aece5
--- a/cup.h	Thu Nov 10 15:45:16 2016 +0000
+++ b/cup.h	Thu Nov 10 17:18:42 2016 +0000
@@ -2,11 +2,6 @@
 #include "d7a.h"
 #include "bin.h"
 
-#define CUP_CFG_FID                     (126)
-#define CUP_CODE_FID                    (127)
-
-#define DEFAULT_ROOT_KEY                { 0xCE, 0x57, 0x74, 0x0B, 0x04, 0x1E, 0xCA, 0xFE }
-
 #define D7A_READ(_ret, _fid, _offset, _size, _root_key)     do{\
     d7a_msg_t** _msg = d7a_read((_fid), (_offset), (_size), (_root_key));\
     ASSERT(_msg[0]->err >= D7A_ERR_NONE, "READ failed. err %d\r\n", _msg[0]->err);\
@@ -45,10 +40,6 @@
 // CRC calculated on whole archive (obviously excluding itself)
 // Values (size,addr) are stored little-endian
 
-#define CUP_SIZE_SIZE                   sizeof(uint32_t)
-#define CUP_ADDR_SIZE                   sizeof(uint32_t)
-#define CUP_CRC_SIZE                    sizeof(uint32_t)
-#define CUP_WORD_SIZE                   (4)
 
 extern uint8_t root_key[CUP_DEFAULT_KEY_SIZE];
 extern uint8_t root_key_size;