1 /* 2 * Copyright (c) 2023 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef TFM_PERIPHERALS_CONFIG_H__ 8 #define TFM_PERIPHERALS_CONFIG_H__ 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 #ifdef SECURE_UART1 15 #define TFM_PERIPHERAL_UARTE1_SECURE 1 16 #endif 17 18 #if TEST_NS_SLIH_IRQ || TEST_NS_FLIH_IRQ 19 #define TFM_PERIPHERAL_TIMER0_SECURE 1 20 #endif 21 22 #ifdef PSA_API_TEST_IPC 23 #define TFM_PERIPHERAL_EGU5_SECURE 1 24 25 #define TFM_PERIPHERAL_WDT_SECURE 1 26 #endif 27 28 #if defined(NRF91_SERIES) 29 #include <tfm_peripherals_config_nrf91.h> 30 #elif defined(NRF5340_XXAA_APPLICATION) 31 #include <tfm_peripherals_config_nrf5340_application.h> 32 #else 33 #error "Unknown device." 34 #endif 35 36 #ifdef __cplusplus 37 } 38 #endif 39 40 #endif /* TFM_PERIPHERAL_CONFIG_H__ */ 41