Skip to content

Commit

Permalink
boot/zephyr: Define SOC_FLASH_0_ID and SPI_FLASH_0_ID
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
de-nordic committed Jan 24, 2024
1 parent c3a72e9 commit 0bdea99
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion boot/zephyr/include/sysflash/sysflash.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Nordic Semiconductor ASA
* Copyright (c) 2023-2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand All @@ -12,6 +12,14 @@
#include <zephyr/storage/flash_map.h>
#include <zephyr/sys/util_macro.h>

#ifndef SOC_FLASH_0_ID
#define SOC_FLASH_0_ID 0
#endif

#ifndef SPI_FLASH_0_ID
#define SPI_FLASH_0_ID 1
#endif

#if !defined(CONFIG_SINGLE_APPLICATION_SLOT) && !defined(CONFIG_MCUBOOT_BOOTLOADER_MODE_SINGLE_APP)

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

0 comments on commit 0bdea99

Please sign in to comment.