Program to update the D7A modem's firmware.
Dependencies: modem_ref_helper DebouncedInterrupt
Diff: cup.h
- Revision:
- 7:5b8648784381
- Parent:
- 4:23cb73bb11b3
- Child:
- 8:914b7aff5554
--- a/cup.h Thu Nov 03 11:26:12 2016 +0000 +++ b/cup.h Thu Nov 10 15:45:16 2016 +0000 @@ -50,7 +50,8 @@ #define CUP_CRC_SIZE sizeof(uint32_t) #define CUP_WORD_SIZE (4) -extern uint8_t root_key[D7A_ROOT_KEY_SIZE]; +extern uint8_t root_key[CUP_DEFAULT_KEY_SIZE]; +extern uint8_t root_key_size; //====================================================================== // cup_cfg_t @@ -79,28 +80,7 @@ uint32_t dbg_cfg; } cup_cfg_t; -class CUP_Archive -{ - private: - - const uint8_t* const data; - - public: - - const uint32_t data_size; - const uint32_t signature; - const uint32_t nb_archives; - const uint32_t word_size; - const uint8_t fw_major; - const uint8_t fw_minor; - const uint16_t fw_patch; - const uint32_t fw_hash; - const uint32_t hw_version; - - CUP_Archive(void); - - void start_update(uint32_t src_offset, uint32_t max_size); -}; +void cup_start_update(uint32_t src_offset, uint32_t max_size); \ No newline at end of file