summaryrefslogtreecommitdiff
path: root/nrfdemo/build/tfm/api_ns/platform/common/assert.c
diff options
context:
space:
mode:
authorMichal Hanus <mikehanus@protonmail.com>2025-04-19 22:50:44 +0200
committerMichal Hanus <mikehanus@protonmail.com>2025-04-19 22:50:44 +0200
commit9078b7ec09b135f091cb951ed234bf013c9c838e (patch)
treeba953e144c2dd42d327a83720cdfc9fb5bb9fe34 /nrfdemo/build/tfm/api_ns/platform/common/assert.c
parent2e13c372f1419f08dab7797b244681f889dd9bcf (diff)
bme680 added
Diffstat (limited to 'nrfdemo/build/tfm/api_ns/platform/common/assert.c')
-rw-r--r--nrfdemo/build/tfm/api_ns/platform/common/assert.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/nrfdemo/build/tfm/api_ns/platform/common/assert.c b/nrfdemo/build/tfm/api_ns/platform/common/assert.c
deleted file mode 100644
index 2a2dacf..0000000
--- a/nrfdemo/build/tfm/api_ns/platform/common/assert.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2023 Nordic Semiconductor ASA
- *
- * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
- */
-
-#include <pm_config.h>
-#include "autoconf.h"
-#include "region_defs.h"
-#include "utilities.h"
-
-#define IS_ALIGNED_POW2(value, align) (((value) & ((align)-1)) == 0)
-
-/* Making sure the borders between secure and non-secure regions are
- * aligned with the SPU regions
- */
-#if !(IS_ALIGNED_POW2(PM_TFM_NONSECURE_ADDRESS, CONFIG_NRF_SPU_FLASH_REGION_ALIGNMENT))
-#pragma message \
- "\n\n!!!Partition alignment error!!!" \
- "\nThe non-secure start address in pm_static.yml" \
- " or generated partition.yml is: " \
- M2S(PM_TFM_NONSECURE_ADDRESS) \
- "\nwhich is not aligned with the SPU HW requirements." \
- "\nRefer to the documentation section 'TF-M partition alignment requirements'" \
- "\nfor more information.\n\n"
-
-#error "TF-M non-secure start address is not aligned to SPU HW requirements"
-#endif
-
-#if !(IS_ALIGNED_POW2(PM_SRAM_NONSECURE_ADDRESS, CONFIG_NRF_SPU_RAM_REGION_ALIGNMENT))
-#error "SRAM non-secure address is not aligned to SPU HW requirements"
-#endif