• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 /**
17  * This file was generated by Apache newt version: 1.8.0-dev
18  */
19 
20 #ifndef H_MYNEWT_SYSFLASH_
21 #define H_MYNEWT_SYSFLASH_
22 
23 #include "flash_map/flash_map.h"
24 
25 /**
26  * This flash map definition is used for two purposes:
27  * 1. To locate the meta area, which contains the true flash map definition.
28  * 2. As a fallback in case the meta area cannot be read from flash.
29  */
30 extern const struct flash_area sysflash_map_dflt[6];
31 
32 #define FLASH_AREA_BOOTLOADER                    0
33 #define FLASH_AREA_IMAGE_0                       1
34 #define FLASH_AREA_IMAGE_1                       2
35 #define FLASH_AREA_IMAGE_SCRATCH                 3
36 #define FLASH_AREA_REBOOT_LOG                    16
37 #define FLASH_AREA_NFFS                          17
38 
39 #endif
40