1 /*
2 
3 Copyright (c) 2010 - 2025, 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 NRF54H20_INTERIM_H__
36 #define NRF54H20_INTERIM_H__
37 
38 #include "haltium_interim.h"
39 
40 #if defined(NRF54H20_XXAA)
41 
42     #if defined(NRF_TRUSTZONE_NONSECURE)
43         #if defined(NRF_APPLICATION)
44             #define GRTC_IRQ_GROUP 2
45             #define GPIOTE_IRQ_GROUP 2
46         #elif defined(NRF_RADIOCORE)
47             #define GRTC_IRQ_GROUP 4
48             #define GPIOTE_IRQ_GROUP 4
49         #endif
50     #elif defined(NRF_PPR)
51         #define GRTC_IRQ_GROUP 8
52         #define GPIOTE_IRQ_GROUP 2
53     #elif defined(NRF_FLPR)
54         #define GRTC_IRQ_GROUP 9
55         #define GPIOTE_IRQ_GROUP 2
56     #else
57         #if defined(NRF_APPLICATION)
58             #define GRTC_IRQ_GROUP 3
59             #define GPIOTE_IRQ_GROUP 3
60         #elif defined(NRF_RADIOCORE)
61             #define GRTC_IRQ_GROUP 5
62             #define GPIOTE_IRQ_GROUP 5
63         #endif
64     #endif
65 
66     #define P0_PIN_NUM P0_PIN_NUM_SIZE
67     #define P1_PIN_NUM P1_PIN_NUM_SIZE
68     #define P2_PIN_NUM P2_PIN_NUM_SIZE
69     #define P6_PIN_NUM P6_PIN_NUM_SIZE
70     #define P7_PIN_NUM P7_PIN_NUM_SIZE
71     #define P9_PIN_NUM P9_PIN_NUM_SIZE
72 
73     #define DPPI_CH_NUM 8
74 
75     #undef ETM_TRCRSCTLR_MaxCount
76     #undef RADIO_PENALTYREG_PCP_MaxCount
77 
78     #define ETM_TRCRSCTLR_MaxCount (32UL)                          /*!< Max size of TRCRSCTLR[32] array.            */
79     #define RADIO_PENALTYREG_PCP_MaxCount (5UL)                    /*!< Max size of PCP[5] array.                   */
80 
81     #define EASYVDMA_PRESENT
82 
83     #define RTC_CC_NUM    RTC_CC_NUM_SIZE
84     #define RTC130_CC_NUM RTC130_CC_NUM_SIZE
85     #define RTC131_CC_NUM RTC131_CC_NUM_SIZE
86 
87     #define TIMER020_MAX_SIZE TIMER020_MAX_SIZE_SIZE
88     #define TIMER021_MAX_SIZE TIMER021_MAX_SIZE_SIZE
89     #define TIMER022_MAX_SIZE TIMER022_MAX_SIZE_SIZE
90     #define TIMER120_MAX_SIZE TIMER120_MAX_SIZE_SIZE
91     #define TIMER121_MAX_SIZE TIMER121_MAX_SIZE_SIZE
92     #define TIMER130_MAX_SIZE TIMER130_MAX_SIZE_SIZE
93     #define TIMER131_MAX_SIZE TIMER131_MAX_SIZE_SIZE
94     #define TIMER132_MAX_SIZE TIMER132_MAX_SIZE_SIZE
95     #define TIMER133_MAX_SIZE TIMER133_MAX_SIZE_SIZE
96     #define TIMER134_MAX_SIZE TIMER134_MAX_SIZE_SIZE
97     #define TIMER135_MAX_SIZE TIMER135_MAX_SIZE_SIZE
98     #define TIMER136_MAX_SIZE TIMER136_MAX_SIZE_SIZE
99     #define TIMER137_MAX_SIZE TIMER137_MAX_SIZE_SIZE
100 
101     #define TIMER020_CC_NUM TIMER020_CC_NUM_SIZE
102     #define TIMER021_CC_NUM TIMER021_CC_NUM_SIZE
103     #define TIMER022_CC_NUM TIMER022_CC_NUM_SIZE
104     #define TIMER120_CC_NUM TIMER120_CC_NUM_SIZE
105     #define TIMER121_CC_NUM TIMER121_CC_NUM_SIZE
106     #define TIMER130_CC_NUM TIMER130_CC_NUM_SIZE
107     #define TIMER131_CC_NUM TIMER131_CC_NUM_SIZE
108     #define TIMER132_CC_NUM TIMER132_CC_NUM_SIZE
109     #define TIMER133_CC_NUM TIMER133_CC_NUM_SIZE
110     #define TIMER134_CC_NUM TIMER134_CC_NUM_SIZE
111     #define TIMER135_CC_NUM TIMER135_CC_NUM_SIZE
112     #define TIMER136_CC_NUM TIMER136_CC_NUM_SIZE
113     #define TIMER137_CC_NUM TIMER137_CC_NUM_SIZE
114 
115     #define DPPIC020_CH_NUM DPPIC020_CH_NUM_SIZE
116     #define DPPIC030_CH_NUM DPPIC030_CH_NUM_SIZE
117     #define DPPIC120_CH_NUM DPPIC120_CH_NUM_SIZE
118     #define DPPIC130_CH_NUM DPPIC130_CH_NUM_SIZE
119     #define DPPIC131_CH_NUM DPPIC131_CH_NUM_SIZE
120     #define DPPIC132_CH_NUM DPPIC132_CH_NUM_SIZE
121     #define DPPIC133_CH_NUM DPPIC133_CH_NUM_SIZE
122     #define DPPIC134_CH_NUM DPPIC134_CH_NUM_SIZE
123     #define DPPIC135_CH_NUM DPPIC135_CH_NUM_SIZE
124     #define DPPIC136_CH_NUM DPPIC136_CH_NUM_SIZE
125 
126     #define DPPIC020_GROUP_NUM DPPIC020_GROUP_NUM_SIZE
127     #define DPPIC030_GROUP_NUM DPPIC030_GROUP_NUM_SIZE
128     #define DPPIC120_GROUP_NUM DPPIC120_GROUP_NUM_SIZE
129     #define DPPIC130_GROUP_NUM DPPIC130_GROUP_NUM_SIZE
130     #define DPPIC131_GROUP_NUM DPPIC131_GROUP_NUM_SIZE
131     #define DPPIC132_GROUP_NUM DPPIC132_GROUP_NUM_SIZE
132     #define DPPIC133_GROUP_NUM DPPIC133_GROUP_NUM_SIZE
133     #define DPPIC134_GROUP_NUM DPPIC134_GROUP_NUM_SIZE
134     #define DPPIC135_GROUP_NUM DPPIC135_GROUP_NUM_SIZE
135     #define DPPIC136_GROUP_NUM DPPIC136_GROUP_NUM_SIZE
136 
137     #define EGU020_CH_NUM EGU020_CH_NUM_SIZE
138     #define EGU130_CH_NUM EGU130_CH_NUM_SIZE
139 
140 
141 #endif
142 
143 #endif // NRF54H20_INTERIM_H__
144