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