Go to the documentation of this file. 35 #ifndef IMAGE_DOWNLOADER_H_ 36 #define IMAGE_DOWNLOADER_H_ 43 #include "programmer_apis.h" 45 #define ROOT_CERT_SIZE M2M_TLS_ROOTCER_FLASH_SZ 47 #define programmer_get_flash_size() (((spi_flash_get_size()*1024)/8)*1024) 48 #define programmer_write(pu8Buf, u32Offset, u32Sz) spi_flash_write(pu8Buf, u32Offset, u32Sz) 49 #define programmer_erase(u32Offset, u32Sz) spi_flash_erase(u32Offset, u32Sz) 50 #define programmer_eraseall() programmer_erase(0, programmer_get_flash_size()) 51 #define programmer_read(pu8Buf, u32Offset, u32Sz) spi_flash_read(pu8Buf, u32Offset, u32Sz)