1 /*
2 
3 Copyright (c) 2010 - 2024, Nordic Semiconductor ASA All rights reserved.
4 
5 SPDX-License-Identifier: BSD-3-Clause
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are met:
9 
10 1. Redistributions of source code must retain the above copyright notice, this
11    list of conditions and the following disclaimer.
12 
13 2. Redistributions in binary form must reproduce the above copyright
14    notice, this list of conditions and the following disclaimer in the
15    documentation and/or other materials provided with the distribution.
16 
17 3. Neither the name of Nordic Semiconductor ASA nor the names of its
18    contributors may be used to endorse or promote products derived from this
19    software without specific prior written permission.
20 
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE
24 ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
25 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 POSSIBILITY OF SUCH DAMAGE.
32 
33 */
34 
35 #ifndef NRF9230_ENGA_INTERIM_H__
36 #define NRF9230_ENGA_INTERIM_H__
37 
38 #include "haltium_interim.h"
39 
40 #if defined(NRF9230_ENGA_XXAA)
41 
42     #if defined(NRF_TRUSTZONE_NONSECURE)
43         #if defined(NRF_APPLICATION)
44             #define GRTC_IRQ_GROUP 2
45             #define GPIOTE130_IRQ_GROUP 2
46             #define GPIOTE131_IRQ_GROUP 1
47         #elif defined(NRF_RADIOCORE)
48             #define GRTC_IRQ_GROUP 4
49             #define GPIOTE130_IRQ_GROUP 4
50         #else
51             #error Unknown core.
52         #endif
53     #elif defined(NRF_PPR)
54         #define GRTC_IRQ_GROUP 10
55         #define GPIOTE130_IRQ_GROUP 2
56     #elif defined(NRF_FLPR)
57         #define GRTC_IRQ_GROUP 11
58         #define GPIOTE130_IRQ_GROUP 2
59     #else
60         #if defined(NRF_APPLICATION)
61             #define GRTC_IRQ_GROUP 3
62             #define GPIOTE130_IRQ_GROUP 3
63             #define GPIOTE131_IRQ_GROUP 2
64         #elif defined(NRF_RADIOCORE)
65             #define GRTC_IRQ_GROUP 5
66             #define GPIOTE130_IRQ_GROUP 5
67         #else
68             #error Unknown core.
69         #endif
70     #endif
71 
72     #define P0_PIN_NUM  P0_PIN_NUM_SIZE
73     #define P1_PIN_NUM  P1_PIN_NUM_SIZE
74     #define P2_PIN_NUM  P2_PIN_NUM_SIZE
75     #define P6_PIN_NUM  P6_PIN_NUM_SIZE
76     #define P8_PIN_NUM  P8_PIN_NUM_SIZE
77     #define P9_PIN_NUM  P9_PIN_NUM_SIZE
78     #define P10_PIN_NUM P10_PIN_NUM_SIZE
79     #define P11_PIN_NUM P11_PIN_NUM_SIZE
80     #define P12_PIN_NUM P12_PIN_NUM_SIZE
81     #define P13_PIN_NUM P13_PIN_NUM_SIZE
82 
83     #define DPPI_CH_NUM 8
84 
85     #undef ETM_TRCRSCTLR_MaxCount
86     #undef RADIO_PENALTYREG_PCP_MaxCount
87 
88     #define ETM_TRCRSCTLR_MaxCount (32UL)                          /*!< Max size of TRCRSCTLR[32] array.            */
89     #define RADIO_PENALTYREG_PCP_MaxCount (5UL)                    /*!< Max size of PCP[5] array.                   */
90 
91     #define EASYVDMA_PRESENT
92 
93     #define RTC_CC_NUM    RTC_CC_NUM_SIZE
94     #define RTC130_CC_NUM RTC130_CC_NUM_SIZE
95     #define RTC131_CC_NUM RTC131_CC_NUM_SIZE
96 
97     #define TIMER020_MAX_SIZE TIMER020_MAX_SIZE_SIZE
98     #define TIMER021_MAX_SIZE TIMER021_MAX_SIZE_SIZE
99     #define TIMER022_MAX_SIZE TIMER022_MAX_SIZE_SIZE
100     #define TIMER120_MAX_SIZE TIMER120_MAX_SIZE_SIZE
101     #define TIMER121_MAX_SIZE TIMER121_MAX_SIZE_SIZE
102     #define TIMER130_MAX_SIZE TIMER130_MAX_SIZE_SIZE
103     #define TIMER131_MAX_SIZE TIMER131_MAX_SIZE_SIZE
104     #define TIMER132_MAX_SIZE TIMER132_MAX_SIZE_SIZE
105     #define TIMER133_MAX_SIZE TIMER133_MAX_SIZE_SIZE
106     #define TIMER134_MAX_SIZE TIMER134_MAX_SIZE_SIZE
107     #define TIMER135_MAX_SIZE TIMER135_MAX_SIZE_SIZE
108     #define TIMER136_MAX_SIZE TIMER136_MAX_SIZE_SIZE
109     #define TIMER137_MAX_SIZE TIMER137_MAX_SIZE_SIZE
110 
111     #define TIMER020_CC_NUM TIMER020_CC_NUM_SIZE
112     #define TIMER021_CC_NUM TIMER021_CC_NUM_SIZE
113     #define TIMER022_CC_NUM TIMER022_CC_NUM_SIZE
114     #define TIMER120_CC_NUM TIMER120_CC_NUM_SIZE
115     #define TIMER121_CC_NUM TIMER121_CC_NUM_SIZE
116     #define TIMER130_CC_NUM TIMER130_CC_NUM_SIZE
117     #define TIMER131_CC_NUM TIMER131_CC_NUM_SIZE
118     #define TIMER132_CC_NUM TIMER132_CC_NUM_SIZE
119     #define TIMER133_CC_NUM TIMER133_CC_NUM_SIZE
120     #define TIMER134_CC_NUM TIMER134_CC_NUM_SIZE
121     #define TIMER135_CC_NUM TIMER135_CC_NUM_SIZE
122     #define TIMER136_CC_NUM TIMER136_CC_NUM_SIZE
123     #define TIMER137_CC_NUM TIMER137_CC_NUM_SIZE
124 
125     #define DPPIC020_CH_NUM DPPIC020_CH_NUM_SIZE
126     #define DPPIC120_CH_NUM DPPIC120_CH_NUM_SIZE
127     #define DPPIC130_CH_NUM DPPIC130_CH_NUM_SIZE
128     #define DPPIC131_CH_NUM DPPIC131_CH_NUM_SIZE
129     #define DPPIC132_CH_NUM DPPIC132_CH_NUM_SIZE
130     #define DPPIC133_CH_NUM DPPIC133_CH_NUM_SIZE
131     #define DPPIC134_CH_NUM DPPIC134_CH_NUM_SIZE
132     #define DPPIC135_CH_NUM DPPIC135_CH_NUM_SIZE
133     #define DPPIC136_CH_NUM DPPIC136_CH_NUM_SIZE
134 
135     #define DPPIC020_GROUP_NUM DPPIC020_GROUP_NUM_SIZE
136     #define DPPIC120_GROUP_NUM DPPIC120_GROUP_NUM_SIZE
137     #define DPPIC130_GROUP_NUM DPPIC130_GROUP_NUM_SIZE
138     #define DPPIC131_GROUP_NUM DPPIC131_GROUP_NUM_SIZE
139     #define DPPIC132_GROUP_NUM DPPIC132_GROUP_NUM_SIZE
140     #define DPPIC133_GROUP_NUM DPPIC133_GROUP_NUM_SIZE
141     #define DPPIC134_GROUP_NUM DPPIC134_GROUP_NUM_SIZE
142     #define DPPIC135_GROUP_NUM DPPIC135_GROUP_NUM_SIZE
143     #define DPPIC136_GROUP_NUM DPPIC136_GROUP_NUM_SIZE
144 
145     #define EGU020_CH_NUM EGU020_CH_NUM_SIZE
146     #define EGU130_CH_NUM EGU130_CH_NUM_SIZE
147 
148 #endif
149 
150 #endif // NRF9230_ENGA_INTERIM_H__
151