summaryrefslogtreecommitdiff
path: root/third_party/nimble-1.6.0/porting/nimble/include/sysflash/sysflash.h
blob: 2f4d843f4c6ac1a502140c86c18ab0859884fdf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
 * This file was generated by Apache newt version: 1.12.0-dev
 */

#ifndef H_MYNEWT_SYSFLASH_
#define H_MYNEWT_SYSFLASH_

#include "flash_map/flash_map.h"

#define FLASH_AREA_COUNT 6

/**
 * 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[FLASH_AREA_COUNT];

/* Flash map was defined in @apache-mynewt-core/hw/bsp/native */

#define FLASH_AREA_BOOTLOADER                    0
#define FLASH_AREA_BOOTLOADER_DEVICE             0
#define FLASH_AREA_BOOTLOADER_OFFSET             0x00000000
#define FLASH_AREA_BOOTLOADER_SIZE               16384

#define FLASH_AREA_IMAGE_0                       1
#define FLASH_AREA_IMAGE_0_DEVICE                0
#define FLASH_AREA_IMAGE_0_OFFSET                0x00020000
#define FLASH_AREA_IMAGE_0_SIZE                  393216

#define FLASH_AREA_IMAGE_1                       2
#define FLASH_AREA_IMAGE_1_DEVICE                0
#define FLASH_AREA_IMAGE_1_OFFSET                0x00080000
#define FLASH_AREA_IMAGE_1_SIZE                  393216

#define FLASH_AREA_IMAGE_SCRATCH                 3
#define FLASH_AREA_IMAGE_SCRATCH_DEVICE          0
#define FLASH_AREA_IMAGE_SCRATCH_OFFSET          0x000e0000
#define FLASH_AREA_IMAGE_SCRATCH_SIZE            131072

#define FLASH_AREA_REBOOT_LOG                    16
#define FLASH_AREA_REBOOT_LOG_DEVICE             0
#define FLASH_AREA_REBOOT_LOG_OFFSET             0x00004000
#define FLASH_AREA_REBOOT_LOG_SIZE               16384

#define FLASH_AREA_NFFS                          17
#define FLASH_AREA_NFFS_DEVICE                   0
#define FLASH_AREA_NFFS_OFFSET                   0x00008000
#define FLASH_AREA_NFFS_SIZE                     32768

#endif