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