Skip to content

Commit ca02c75

Browse files
de-nordicnvlsianpu
authored andcommitted
boot/zephyr: Define SOC_FLASH_0_ID and SPI_FLASH_0_ID
The defines have been taken from the Zephyr flash_map.h but as they are provided there for MCUboot only, they can be just defined here. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 89feb4d commit ca02c75

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

boot/zephyr/include/sysflash/sysflash.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023 Nordic Semiconductor ASA
2+
* Copyright (c) 2023-2024 Nordic Semiconductor ASA
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -12,6 +12,14 @@
1212
#include <zephyr/storage/flash_map.h>
1313
#include <zephyr/sys/util_macro.h>
1414

15+
#ifndef SOC_FLASH_0_ID
16+
#define SOC_FLASH_0_ID 0
17+
#endif
18+
19+
#ifndef SPI_FLASH_0_ID
20+
#define SPI_FLASH_0_ID 1
21+
#endif
22+
1523
#if !defined(CONFIG_SINGLE_APPLICATION_SLOT) && !defined(CONFIG_MCUBOOT_BOOTLOADER_MODE_SINGLE_APP)
1624

1725
/* Each pair of slots is separated by , and there is no terminating character */

0 commit comments

Comments
 (0)