programmer.h
Go to the documentation of this file.
1 
35 #ifndef IMAGE_DOWNLOADER_H_
36 #define IMAGE_DOWNLOADER_H_
37 
41 #include "spi_flash_map.h"
43 #include "programmer_apis.h"
44 
45 #define ROOT_CERT_SIZE M2M_TLS_ROOTCER_FLASH_SZ
46 
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)
52 
53 #endif /* IMAGE_DOWNLOADER_H_ */
SPI Flash.
SPI Flash.


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58