1 /*
2  * Copyright (c) 2018-2021, Arm Limited. All rights reserved.
3  * Copyright 2019-2020 NXP. All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  *
7  */
8 
9 #ifndef __TFM_PERIPHERALS_DEF_H__
10 #define __TFM_PERIPHERALS_DEF_H__
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 #define CTIMER                  CTIMER2                     /* Timer 2 */
16 #define CTIMER_CLK_FREQ         CLOCK_GetCTimerClkFreq(2U)
17 #define CTIMER_CLK_ATTACH       kFRO_HF_to_CTIMER2
18 #define CTIMER_IRQ_HANDLER      CTIMER2_IRQHandler
19 #define TFM_TIMER0_IRQ          CTIMER2_IRQn                /* (tfm_core_irq_signal_data_t->irq_line) */
20 
21 #define CTIMER_NS               CTIMER3                     /* Timer 3 */
22 #define CTIMER_NS_CLK_FREQ      CLOCK_GetCTimerClkFreq(3U)
23 #define CTIMER_NS_CLK_ATTACH    kFRO_HF_to_CTIMER3
24 #define CTIMER_NS_IRQ_HANDLER   CTIMER3_IRQHandler
25 #define TFM_TIMER1_IRQ          CTIMER3_IRQn                /* use by tfm_core_test_irq() */
26 
27 struct platform_data_t;
28 
29 extern struct platform_data_t tfm_peripheral_std_uart;
30 extern struct platform_data_t tfm_peripheral_timer0;
31 
32 #define TFM_PERIPHERAL_STD_UART     (&tfm_peripheral_std_uart)
33 #define TFM_PERIPHERAL_TIMER0       (&tfm_peripheral_timer0)
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 
39 #endif /* __TFM_PERIPHERALS_DEF_H__ */
40