sysflash.h 739 B

123456789101112131415161718192021222324
  1. /**
  2. * This file was generated by Apache newt version: 1.10.0-dev
  3. */
  4. #ifndef H_MYNEWT_SYSFLASH_
  5. #define H_MYNEWT_SYSFLASH_
  6. #include "flash_map/flash_map.h"
  7. /**
  8. * This flash map definition is used for two purposes:
  9. * 1. To locate the meta area, which contains the true flash map definition.
  10. * 2. As a fallback in case the meta area cannot be read from flash.
  11. */
  12. extern const struct flash_area sysflash_map_dflt[6];
  13. #define FLASH_AREA_BOOTLOADER 0
  14. #define FLASH_AREA_IMAGE_0 1
  15. #define FLASH_AREA_IMAGE_1 2
  16. #define FLASH_AREA_IMAGE_SCRATCH 3
  17. #define FLASH_AREA_REBOOT_LOG 16
  18. #define FLASH_AREA_NFFS 17
  19. #endif