1 /* 2 * Copyright (c) 2021, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef TFM_PERIPHERALS_CONFIG_H__ 9 #define TFM_PERIPHERALS_CONFIG_H__ 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 #ifdef SECURE_UART1 16 #define TFM_PERIPHERAL_UARTE1_SECURE 1 17 #endif 18 19 #ifdef SECURE_QSPI 20 #define TFM_PERIPHERAL_QSPI_SECURE 1 21 #endif 22 23 #if TEST_NS_SLIH_IRQ || TEST_NS_FLIH_IRQ 24 #define TFM_PERIPHERAL_TIMER0_SECURE 1 25 #endif 26 27 #ifdef PSA_API_TEST_IPC 28 #define TFM_PERIPHERAL_EGU5_SECURE 1 29 30 #define TFM_PERIPHERAL_WDT0_SECURE 1 31 #endif 32 33 #if defined(NRF5340_XXAA_APPLICATION) 34 #include <tfm_peripherals_config_nrf5340_application.h> 35 #else 36 #error "Unknown device." 37 #endif 38 39 #ifdef __cplusplus 40 } 41 #endif 42 43 #endif /* TFM_PERIPHERAL_CONFIG_H__ */ 44