Skip to content

Commit 44bbc98

Browse files
committed
[nrf fromtree]platform: nordic_nrf: Split the target_cfg for different platforms
This splits the target_cfg.c file for the different platfoms. It splits the file into two files one for the nRF54L and one for the nRF91/nRF53 series. There is no need for the peripherals to be in the same file as the configuration code. There is already a header which provides extern definitions for all the peripherals a device supports which can be used for for source files needing to configure peripherals. So this peripheral definitions are placed in a separate file. Most of the code is taken unchanged from the target_cfg.c file and the uneeded ifdefs got removed. The init_debug function got rewritten without changing the logic of it. Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no> Change-Id: I19071727061b8952e3abbae20dd182c822234427 (cherry picked from commit 37e8dc4)
1 parent 53a6c1c commit 44bbc98

6 files changed

Lines changed: 1693 additions & 1539 deletions

File tree

platform/ext/target/nordic_nrf/common/core/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ target_sources(tfm_spm
206206
tfm_hal_platform_common.c
207207
faults.c
208208
target_cfg.c
209+
$<$<BOOL:${HAS_RRAMC}>:${CMAKE_CURRENT_SOURCE_DIR}/target_cfg_54l.c>
210+
$<$<BOOL:${HAS_NVMC}>:${CMAKE_CURRENT_SOURCE_DIR}/target_cfg_53_91.c>
211+
secure_peripherals_defs.c
209212
)
210213

211214
target_sources(tfm_s

0 commit comments

Comments
 (0)