1 /**************************************************************************//** 2 * @file 3 * @brief CMSIS Cortex-M Peripheral Access Layer Header File 4 * for EFR32BG22C224F512GN32 5 ****************************************************************************** 6 * # License 7 * <b>Copyright 2023 Silicon Laboratories, Inc. www.silabs.com</b> 8 ****************************************************************************** 9 * 10 * SPDX-License-Identifier: Zlib 11 * 12 * The licensor of this software is Silicon Laboratories Inc. 13 * 14 * This software is provided 'as-is', without any express or implied 15 * warranty. In no event will the authors be held liable for any damages 16 * arising from the use of this software. 17 * 18 * Permission is granted to anyone to use this software for any purpose, 19 * including commercial applications, and to alter it and redistribute it 20 * freely, subject to the following restrictions: 21 * 22 * 1. The origin of this software must not be misrepresented; you must not 23 * claim that you wrote the original software. If you use this software 24 * in a product, an acknowledgment in the product documentation would be 25 * appreciated but is not required. 26 * 2. Altered source versions must be plainly marked as such, and must not be 27 * misrepresented as being the original software. 28 * 3. This notice may not be removed or altered from any source distribution. 29 * 30 *****************************************************************************/ 31 #ifndef EFR32BG22C224F512GN32_H 32 #define EFR32BG22C224F512GN32_H 33 34 #ifdef __cplusplus 35 extern "C" { 36 #endif 37 38 /**************************************************************************//** 39 * @addtogroup Parts 40 * @{ 41 *****************************************************************************/ 42 43 /**************************************************************************//** 44 * @defgroup EFR32BG22C224F512GN32 EFR32BG22C224F512GN32 45 * @{ 46 *****************************************************************************/ 47 48 /** Interrupt Number Definition */ 49 typedef enum IRQn{ 50 /****** Cortex-M Processor Exceptions Numbers ******************************************/ 51 NonMaskableInt_IRQn = -14, /*!< -14 Cortex-M Non Maskable Interrupt */ 52 HardFault_IRQn = -13, /*!< -13 Cortex-M Hard Fault Interrupt */ 53 MemoryManagement_IRQn = -12, /*!< -12 Cortex-M Memory Management Interrupt */ 54 BusFault_IRQn = -11, /*!< -11 Cortex-M Bus Fault Interrupt */ 55 UsageFault_IRQn = -10, /*!< -10 Cortex-M Usage Fault Interrupt */ 56 SVCall_IRQn = -5, /*!< -5 Cortex-M SV Call Interrupt */ 57 DebugMonitor_IRQn = -4, /*!< -4 Cortex-M Debug Monitor Interrupt */ 58 PendSV_IRQn = -2, /*!< -2 Cortex-M Pend SV Interrupt */ 59 SysTick_IRQn = -1, /*!< -1 Cortex-M System Tick Interrupt */ 60 61 /****** EFR32BG22 Peripheral Interrupt Numbers ******************************************/ 62 63 CRYPTOACC_IRQn = 0, /*!< 0 EFR32 CRYPTOACC Interrupt */ 64 TRNG_IRQn = 1, /*!< 1 EFR32 TRNG Interrupt */ 65 PKE_IRQn = 2, /*!< 2 EFR32 PKE Interrupt */ 66 SMU_SECURE_IRQn = 3, /*!< 3 EFR32 SMU_SECURE Interrupt */ 67 SMU_S_PRIVILEGED_IRQn = 4, /*!< 4 EFR32 SMU_S_PRIVILEGED Interrupt */ 68 SMU_NS_PRIVILEGED_IRQn = 5, /*!< 5 EFR32 SMU_NS_PRIVILEGED Interrupt */ 69 EMU_IRQn = 6, /*!< 6 EFR32 EMU Interrupt */ 70 TIMER0_IRQn = 7, /*!< 7 EFR32 TIMER0 Interrupt */ 71 TIMER1_IRQn = 8, /*!< 8 EFR32 TIMER1 Interrupt */ 72 TIMER2_IRQn = 9, /*!< 9 EFR32 TIMER2 Interrupt */ 73 TIMER3_IRQn = 10, /*!< 10 EFR32 TIMER3 Interrupt */ 74 TIMER4_IRQn = 11, /*!< 11 EFR32 TIMER4 Interrupt */ 75 RTCC_IRQn = 12, /*!< 12 EFR32 RTCC Interrupt */ 76 USART0_RX_IRQn = 13, /*!< 13 EFR32 USART0_RX Interrupt */ 77 USART0_TX_IRQn = 14, /*!< 14 EFR32 USART0_TX Interrupt */ 78 USART1_RX_IRQn = 15, /*!< 15 EFR32 USART1_RX Interrupt */ 79 USART1_TX_IRQn = 16, /*!< 16 EFR32 USART1_TX Interrupt */ 80 ICACHE0_IRQn = 17, /*!< 17 EFR32 ICACHE0 Interrupt */ 81 BURTC_IRQn = 18, /*!< 18 EFR32 BURTC Interrupt */ 82 LETIMER0_IRQn = 19, /*!< 19 EFR32 LETIMER0 Interrupt */ 83 SYSCFG_IRQn = 20, /*!< 20 EFR32 SYSCFG Interrupt */ 84 LDMA_IRQn = 21, /*!< 21 EFR32 LDMA Interrupt */ 85 LFXO_IRQn = 22, /*!< 22 EFR32 LFXO Interrupt */ 86 LFRCO_IRQn = 23, /*!< 23 EFR32 LFRCO Interrupt */ 87 ULFRCO_IRQn = 24, /*!< 24 EFR32 ULFRCO Interrupt */ 88 GPIO_ODD_IRQn = 25, /*!< 25 EFR32 GPIO_ODD Interrupt */ 89 GPIO_EVEN_IRQn = 26, /*!< 26 EFR32 GPIO_EVEN Interrupt */ 90 I2C0_IRQn = 27, /*!< 27 EFR32 I2C0 Interrupt */ 91 I2C1_IRQn = 28, /*!< 28 EFR32 I2C1 Interrupt */ 92 EMUDG_IRQn = 29, /*!< 29 EFR32 EMUDG Interrupt */ 93 EMUSE_IRQn = 30, /*!< 30 EFR32 EMUSE Interrupt */ 94 AGC_IRQn = 31, /*!< 31 EFR32 AGC Interrupt */ 95 BUFC_IRQn = 32, /*!< 32 EFR32 BUFC Interrupt */ 96 FRC_PRI_IRQn = 33, /*!< 33 EFR32 FRC_PRI Interrupt */ 97 FRC_IRQn = 34, /*!< 34 EFR32 FRC Interrupt */ 98 MODEM_IRQn = 35, /*!< 35 EFR32 MODEM Interrupt */ 99 PROTIMER_IRQn = 36, /*!< 36 EFR32 PROTIMER Interrupt */ 100 RAC_RSM_IRQn = 37, /*!< 37 EFR32 RAC_RSM Interrupt */ 101 RAC_SEQ_IRQn = 38, /*!< 38 EFR32 RAC_SEQ Interrupt */ 102 RDMAILBOX_IRQn = 39, /*!< 39 EFR32 RDMAILBOX Interrupt */ 103 RFSENSE_IRQn = 40, /*!< 40 EFR32 RFSENSE Interrupt */ 104 PRORTC_IRQn = 41, /*!< 41 EFR32 PRORTC Interrupt */ 105 SYNTH_IRQn = 42, /*!< 42 EFR32 SYNTH Interrupt */ 106 WDOG0_IRQn = 43, /*!< 43 EFR32 WDOG0 Interrupt */ 107 HFXO0_IRQn = 44, /*!< 44 EFR32 HFXO0 Interrupt */ 108 HFRCO0_IRQn = 45, /*!< 45 EFR32 HFRCO0 Interrupt */ 109 CMU_IRQn = 46, /*!< 46 EFR32 CMU Interrupt */ 110 AES_IRQn = 47, /*!< 47 EFR32 AES Interrupt */ 111 IADC_IRQn = 48, /*!< 48 EFR32 IADC Interrupt */ 112 MSC_IRQn = 49, /*!< 49 EFR32 MSC Interrupt */ 113 DPLL0_IRQn = 50, /*!< 50 EFR32 DPLL0 Interrupt */ 114 PDM_IRQn = 51, /*!< 51 EFR32 PDM Interrupt */ 115 SW0_IRQn = 52, /*!< 52 EFR32 SW0 Interrupt */ 116 SW1_IRQn = 53, /*!< 53 EFR32 SW1 Interrupt */ 117 SW2_IRQn = 54, /*!< 54 EFR32 SW2 Interrupt */ 118 SW3_IRQn = 55, /*!< 55 EFR32 SW3 Interrupt */ 119 KERNEL0_IRQn = 56, /*!< 56 EFR32 KERNEL0 Interrupt */ 120 KERNEL1_IRQn = 57, /*!< 57 EFR32 KERNEL1 Interrupt */ 121 M33CTI0_IRQn = 58, /*!< 58 EFR32 M33CTI0 Interrupt */ 122 M33CTI1_IRQn = 59, /*!< 59 EFR32 M33CTI1 Interrupt */ 123 EMUEFP_IRQn = 60, /*!< 60 EFR32 EMUEFP Interrupt */ 124 DCDC_IRQn = 61, /*!< 61 EFR32 DCDC Interrupt */ 125 EUART0_RX_IRQn = 62, /*!< 62 EFR32 EUART0_RX Interrupt */ 126 EUART0_TX_IRQn = 63, /*!< 63 EFR32 EUART0_TX Interrupt */ 127 } IRQn_Type; 128 129 /**************************************************************************//** 130 * @defgroup EFR32BG22C224F512GN32_Core EFR32BG22C224F512GN32 Core 131 * @{ 132 * @brief Processor and Core Peripheral Section 133 *****************************************************************************/ 134 135 #define __CM33_REV 0x0004U /**< Cortex-M33 Core revision */ 136 #define __DSP_PRESENT 1U /**< Presence of DSP */ 137 #define __FPU_PRESENT 1U /**< Presence of FPU */ 138 #define __MPU_PRESENT 1U /**< Presence of MPU */ 139 #define __SAUREGION_PRESENT 1U /**< Presence of FPU */ 140 #define __TZ_PRESENT 1U /**< Presence of TrustZone */ 141 #define __VTOR_PRESENT 1U /**< Presence of VTOR register in SCB */ 142 #define __NVIC_PRIO_BITS 4U /**< NVIC interrupt priority bits */ 143 #define __Vendor_SysTickConfig 0U /**< Is 1 if different SysTick counter is used */ 144 145 /** @} End of group EFR32BG22C224F512GN32_Core */ 146 147 /**************************************************************************//** 148 * @defgroup EFR32BG22C224F512GN32_Part EFR32BG22C224F512GN32 Part 149 * @{ 150 ******************************************************************************/ 151 152 /** Part number */ 153 154 /* If part number is not defined as compiler option, define it */ 155 #if !defined(EFR32BG22C224F512GN32) 156 #define EFR32BG22C224F512GN32 1 /**< FULL Part */ 157 #endif 158 159 /** Configure part number */ 160 #define PART_NUMBER "EFR32BG22C224F512GN32" /**< Part Number */ 161 162 /** Family / Line / Series / Config */ 163 #define _EFR32_BLUE_FAMILY 1 /** Device Family Name Identifier */ 164 #define _EFR32_BG_FAMILY 1 /** Device Family Identifier */ 165 #define _EFR_DEVICE 1 /** Product Line Identifier */ 166 #define _SILICON_LABS_32B_SERIES_2 /** Product Series Identifier */ 167 #define _SILICON_LABS_32B_SERIES 2 /** Product Series Identifier */ 168 #define _SILICON_LABS_32B_SERIES_2_CONFIG_2 /** Product Config Identifier */ 169 #define _SILICON_LABS_32B_SERIES_2_CONFIG 2 /** Product Config Identifier */ 170 #define _SILICON_LABS_GECKO_INTERNAL_SDID 205 /** Silicon Labs internal use only */ 171 #define _SILICON_LABS_GECKO_INTERNAL_SDID_205 /** Silicon Labs internal use only */ 172 #define _SILICON_LABS_SECURITY_FEATURE_SE 0 /** Mid */ 173 #define _SILICON_LABS_SECURITY_FEATURE_VAULT 1 /** High */ 174 #define _SILICON_LABS_SECURITY_FEATURE_ROT 2 /** Root Of Trust */ 175 #define _SILICON_LABS_SECURITY_FEATURE _SILICON_LABS_SECURITY_FEATURE_ROT /** Security feature set */ 176 #define _SILICON_LABS_DCDC_FEATURE_NOTUSED 0 /** Not Used */ 177 #define _SILICON_LABS_DCDC_FEATURE_DCDC_BUCK 1 /** Includes Buck DCDC */ 178 #define _SILICON_LABS_DCDC_FEATURE_DCDC_BOOST 2 /** Includes Boost DCDC */ 179 #define _SILICON_LABS_DCDC_FEATURE_DCDC_BOB 3 /** Includes Buck or Boost DCDC */ 180 #define _SILICON_LABS_DCDC_FEATURE _SILICON_LABS_DCDC_FEATURE_DCDC_BUCK /** DCDC feature set */ 181 #define _SILICON_LABS_EFR32_RADIO_NONE 0 /** No radio present */ 182 #define _SILICON_LABS_EFR32_RADIO_SUBGHZ 1 /** Radio supports Sub-GHz */ 183 #define _SILICON_LABS_EFR32_RADIO_2G4HZ 2 /** Radio supports 2.4 GHz */ 184 #define _SILICON_LABS_EFR32_RADIO_DUALBAND 3 /** Radio supports dual band */ 185 #define _SILICON_LABS_EFR32_RADIO_TYPE _SILICON_LABS_EFR32_RADIO_2G4HZ /** Radio type */ 186 #define _SILICON_LABS_EFR32_2G4HZ_HP_PA_MAX_OUTPUT_DBM 6 /** Radio 2G4HZ HP PA output power */ 187 #define _SILICON_LABS_EFR32_2G4HZ_LP_PA_MAX_OUTPUT_DBM 0 /** Radio 2G4HZ LP PA output power */ 188 #define _SILICON_LABS_EFR32_2G4HZ_HP_PA_PRESENT /** Radio 2G4HZ HP PA is present */ 189 #define _SILICON_LABS_EFR32_2G4HZ_LP_PA_PRESENT /** Radio 2G4HZ LP PA is present */ 190 #define LFRCO_PRECISION_MODE 1 /** Precision mode of LFRCO enabled or disabled */ 191 192 /** Memory Base addresses and limits */ 193 #define FLASH_MEM_BASE (0x00000000UL) /** FLASH_MEM base address */ 194 #define FLASH_MEM_SIZE (0x00080000UL) /** FLASH_MEM available address space */ 195 #define FLASH_MEM_END (0x0007FFFFUL) /** FLASH_MEM end address */ 196 #define FLASH_MEM_BITS (0x14UL) /** FLASH_MEM used bits */ 197 #define MSC_FLASH_MEM_BASE (0x00000000UL) /** MSC_FLASH_MEM base address */ 198 #define MSC_FLASH_MEM_SIZE (0x00080000UL) /** MSC_FLASH_MEM available address space */ 199 #define MSC_FLASH_MEM_END (0x0007FFFFUL) /** MSC_FLASH_MEM end address */ 200 #define MSC_FLASH_MEM_BITS (0x14UL) /** MSC_FLASH_MEM used bits */ 201 #define MSC_FLASH_USERDATA_MEM_BASE (0x0FE00000UL) /** MSC_FLASH_USERDATA_MEM base address */ 202 #define MSC_FLASH_USERDATA_MEM_SIZE (0x00000400UL) /** MSC_FLASH_USERDATA_MEM available address space */ 203 #define MSC_FLASH_USERDATA_MEM_END (0x0FE003FFUL) /** MSC_FLASH_USERDATA_MEM end address */ 204 #define MSC_FLASH_USERDATA_MEM_BITS (0xBUL) /** MSC_FLASH_USERDATA_MEM used bits */ 205 #define USERDATA_BASE (0x0FE00000UL) /** USERDATA base address */ 206 #define USERDATA_SIZE (0x00000400UL) /** USERDATA available address space */ 207 #define USERDATA_END (0x0FE003FFUL) /** USERDATA end address */ 208 #define USERDATA_BITS (0xBUL) /** USERDATA used bits */ 209 #define MSC_FLASH_DEVINFO_MEM_BASE (0x0FE08000UL) /** MSC_FLASH_DEVINFO_MEM base address */ 210 #define MSC_FLASH_DEVINFO_MEM_SIZE (0x00000400UL) /** MSC_FLASH_DEVINFO_MEM available address space */ 211 #define MSC_FLASH_DEVINFO_MEM_END (0x0FE083FFUL) /** MSC_FLASH_DEVINFO_MEM end address */ 212 #define MSC_FLASH_DEVINFO_MEM_BITS (0xBUL) /** MSC_FLASH_DEVINFO_MEM used bits */ 213 #define MSC_FLASH_CHIPCONFIG_MEM_BASE (0x0FE0E000UL) /** MSC_FLASH_CHIPCONFIG_MEM base address */ 214 #define MSC_FLASH_CHIPCONFIG_MEM_SIZE (0x00000600UL) /** MSC_FLASH_CHIPCONFIG_MEM available address space */ 215 #define MSC_FLASH_CHIPCONFIG_MEM_END (0x0FE0E5FFUL) /** MSC_FLASH_CHIPCONFIG_MEM end address */ 216 #define MSC_FLASH_CHIPCONFIG_MEM_BITS (0xBUL) /** MSC_FLASH_CHIPCONFIG_MEM used bits */ 217 #define DMEM_RAM0_RAM_MEM_BASE (0x20000000UL) /** DMEM_RAM0_RAM_MEM base address */ 218 #define DMEM_RAM0_RAM_MEM_SIZE (0x00008000UL) /** DMEM_RAM0_RAM_MEM available address space */ 219 #define DMEM_RAM0_RAM_MEM_END (0x20007FFFUL) /** DMEM_RAM0_RAM_MEM end address */ 220 #define DMEM_RAM0_RAM_MEM_BITS (0x10UL) /** DMEM_RAM0_RAM_MEM used bits */ 221 #define RAM_MEM_BASE (0x20000000UL) /** RAM_MEM base address */ 222 #define RAM_MEM_SIZE (0x00008000UL) /** RAM_MEM available address space */ 223 #define RAM_MEM_END (0x20007FFFUL) /** RAM_MEM end address */ 224 #define RAM_MEM_BITS (0x10UL) /** RAM_MEM used bits */ 225 #define CRYPTOACC_RNGOUT_FIFO_S_MEM_BASE (0x4C024000UL) /** CRYPTOACC_RNGOUT_FIFO_S_MEM base address */ 226 #define CRYPTOACC_RNGOUT_FIFO_S_MEM_SIZE (0x00004000UL) /** CRYPTOACC_RNGOUT_FIFO_S_MEM available address space */ 227 #define CRYPTOACC_RNGOUT_FIFO_S_MEM_END (0x4C027FFFUL) /** CRYPTOACC_RNGOUT_FIFO_S_MEM end address */ 228 #define CRYPTOACC_RNGOUT_FIFO_S_MEM_BITS (0xFUL) /** CRYPTOACC_RNGOUT_FIFO_S_MEM used bits */ 229 #define CRYPTOACC_PKRAM_MAIN_S_MEM_BASE (0x4C028000UL) /** CRYPTOACC_PKRAM_MAIN_S_MEM base address */ 230 #define CRYPTOACC_PKRAM_MAIN_S_MEM_SIZE (0x00001000UL) /** CRYPTOACC_PKRAM_MAIN_S_MEM available address space */ 231 #define CRYPTOACC_PKRAM_MAIN_S_MEM_END (0x4C028FFFUL) /** CRYPTOACC_PKRAM_MAIN_S_MEM end address */ 232 #define CRYPTOACC_PKRAM_MAIN_S_MEM_BITS (0xDUL) /** CRYPTOACC_PKRAM_MAIN_S_MEM used bits */ 233 #define CRYPTOACC_RNGOUT_FIFO_MEM_BASE (0x5C024000UL) /** CRYPTOACC_RNGOUT_FIFO_MEM base address */ 234 #define CRYPTOACC_RNGOUT_FIFO_MEM_SIZE (0x00004000UL) /** CRYPTOACC_RNGOUT_FIFO_MEM available address space */ 235 #define CRYPTOACC_RNGOUT_FIFO_MEM_END (0x5C027FFFUL) /** CRYPTOACC_RNGOUT_FIFO_MEM end address */ 236 #define CRYPTOACC_RNGOUT_FIFO_MEM_BITS (0xFUL) /** CRYPTOACC_RNGOUT_FIFO_MEM used bits */ 237 #define CRYPTOACC_RNGOUT_FIFO_NS_MEM_BASE (0x5C024000UL) /** CRYPTOACC_RNGOUT_FIFO_NS_MEM base address */ 238 #define CRYPTOACC_RNGOUT_FIFO_NS_MEM_SIZE (0x00004000UL) /** CRYPTOACC_RNGOUT_FIFO_NS_MEM available address space */ 239 #define CRYPTOACC_RNGOUT_FIFO_NS_MEM_END (0x5C027FFFUL) /** CRYPTOACC_RNGOUT_FIFO_NS_MEM end address */ 240 #define CRYPTOACC_RNGOUT_FIFO_NS_MEM_BITS (0xFUL) /** CRYPTOACC_RNGOUT_FIFO_NS_MEM used bits */ 241 #define CRYPTOACC_PKRAM_MAIN_MEM_BASE (0x5C028000UL) /** CRYPTOACC_PKRAM_MAIN_MEM base address */ 242 #define CRYPTOACC_PKRAM_MAIN_MEM_SIZE (0x00001000UL) /** CRYPTOACC_PKRAM_MAIN_MEM available address space */ 243 #define CRYPTOACC_PKRAM_MAIN_MEM_END (0x5C028FFFUL) /** CRYPTOACC_PKRAM_MAIN_MEM end address */ 244 #define CRYPTOACC_PKRAM_MAIN_MEM_BITS (0xDUL) /** CRYPTOACC_PKRAM_MAIN_MEM used bits */ 245 #define CRYPTOACC_PKRAM_MAIN_NS_MEM_BASE (0x5C028000UL) /** CRYPTOACC_PKRAM_MAIN_NS_MEM base address */ 246 #define CRYPTOACC_PKRAM_MAIN_NS_MEM_SIZE (0x00001000UL) /** CRYPTOACC_PKRAM_MAIN_NS_MEM available address space */ 247 #define CRYPTOACC_PKRAM_MAIN_NS_MEM_END (0x5C028FFFUL) /** CRYPTOACC_PKRAM_MAIN_NS_MEM end address */ 248 #define CRYPTOACC_PKRAM_MAIN_NS_MEM_BITS (0xDUL) /** CRYPTOACC_PKRAM_MAIN_NS_MEM used bits */ 249 #define RDMEM_SEQRAM_S_MEM_BASE (0xA0000000UL) /** RDMEM_SEQRAM_S_MEM base address */ 250 #define RDMEM_SEQRAM_S_MEM_SIZE (0x00004000UL) /** RDMEM_SEQRAM_S_MEM available address space */ 251 #define RDMEM_SEQRAM_S_MEM_END (0xA0003FFFUL) /** RDMEM_SEQRAM_S_MEM end address */ 252 #define RDMEM_SEQRAM_S_MEM_BITS (0xFUL) /** RDMEM_SEQRAM_S_MEM used bits */ 253 #define RDMEM_FRCRAM_S_MEM_BASE (0xA0004000UL) /** RDMEM_FRCRAM_S_MEM base address */ 254 #define RDMEM_FRCRAM_S_MEM_SIZE (0x00001000UL) /** RDMEM_FRCRAM_S_MEM available address space */ 255 #define RDMEM_FRCRAM_S_MEM_END (0xA0004FFFUL) /** RDMEM_FRCRAM_S_MEM end address */ 256 #define RDMEM_FRCRAM_S_MEM_BITS (0xDUL) /** RDMEM_FRCRAM_S_MEM used bits */ 257 #define RDMEM_SEQRAM_NS_MEM_BASE (0xB0000000UL) /** RDMEM_SEQRAM_NS_MEM base address */ 258 #define RDMEM_SEQRAM_NS_MEM_SIZE (0x00004000UL) /** RDMEM_SEQRAM_NS_MEM available address space */ 259 #define RDMEM_SEQRAM_NS_MEM_END (0xB0003FFFUL) /** RDMEM_SEQRAM_NS_MEM end address */ 260 #define RDMEM_SEQRAM_NS_MEM_BITS (0xFUL) /** RDMEM_SEQRAM_NS_MEM used bits */ 261 #define RDMEM_SEQRAM_SEQRAM_MEM_BASE (0xB0000000UL) /** RDMEM_SEQRAM_SEQRAM_MEM base address */ 262 #define RDMEM_SEQRAM_SEQRAM_MEM_SIZE (0x00004000UL) /** RDMEM_SEQRAM_SEQRAM_MEM available address space */ 263 #define RDMEM_SEQRAM_SEQRAM_MEM_END (0xB0003FFFUL) /** RDMEM_SEQRAM_SEQRAM_MEM end address */ 264 #define RDMEM_SEQRAM_SEQRAM_MEM_BITS (0xFUL) /** RDMEM_SEQRAM_SEQRAM_MEM used bits */ 265 #define RDMEM_FRCRAM_FRCRAM_MEM_BASE (0xB0004000UL) /** RDMEM_FRCRAM_FRCRAM_MEM base address */ 266 #define RDMEM_FRCRAM_FRCRAM_MEM_SIZE (0x00001000UL) /** RDMEM_FRCRAM_FRCRAM_MEM available address space */ 267 #define RDMEM_FRCRAM_FRCRAM_MEM_END (0xB0004FFFUL) /** RDMEM_FRCRAM_FRCRAM_MEM end address */ 268 #define RDMEM_FRCRAM_FRCRAM_MEM_BITS (0xDUL) /** RDMEM_FRCRAM_FRCRAM_MEM used bits */ 269 #define RDMEM_FRCRAM_NS_MEM_BASE (0xB0004000UL) /** RDMEM_FRCRAM_NS_MEM base address */ 270 #define RDMEM_FRCRAM_NS_MEM_SIZE (0x00001000UL) /** RDMEM_FRCRAM_NS_MEM available address space */ 271 #define RDMEM_FRCRAM_NS_MEM_END (0xB0004FFFUL) /** RDMEM_FRCRAM_NS_MEM end address */ 272 #define RDMEM_FRCRAM_NS_MEM_BITS (0xDUL) /** RDMEM_FRCRAM_NS_MEM used bits */ 273 274 /** Flash and SRAM limits for EFR32BG22C224F512GN32 */ 275 #define FLASH_BASE (0x00000000UL) /**< Flash Base Address */ 276 #define FLASH_SIZE (0x00080000UL) /**< Available Flash Memory */ 277 #define FLASH_PAGE_SIZE (0x00002000UL) /**< Flash Memory page size */ 278 #define SRAM_BASE (0x20000000UL) /**< SRAM Base Address */ 279 #define SRAM_SIZE (0x00008000UL) /**< Available SRAM Memory */ 280 #define DMA_CHAN_COUNT LDMA_CH_NUM /**< Number of DMA channels */ 281 #define EXT_IRQ_COUNT 64 /**< Number of External (NVIC) interrupts */ 282 283 /* GPIO Avalibility Info */ 284 #define GPIO_PA_INDEX 0U /**< Index of port PA */ 285 #define GPIO_PA_COUNT 7U /**< Number of pins on port PA */ 286 #define GPIO_PA_MASK (0x007FUL) /**< Port PA pin mask */ 287 #define GPIO_PA_PIN0 1U /**< GPIO pin PA0 is present. */ 288 #define GPIO_PA_PIN1 1U /**< GPIO pin PA1 is present. */ 289 #define GPIO_PA_PIN2 1U /**< GPIO pin PA2 is present. */ 290 #define GPIO_PA_PIN3 1U /**< GPIO pin PA3 is present. */ 291 #define GPIO_PA_PIN4 1U /**< GPIO pin PA4 is present. */ 292 #define GPIO_PA_PIN5 1U /**< GPIO pin PA5 is present. */ 293 #define GPIO_PA_PIN6 1U /**< GPIO pin PA6 is present. */ 294 #define GPIO_PB_INDEX 1U /**< Index of port PB */ 295 #define GPIO_PB_COUNT 3U /**< Number of pins on port PB */ 296 #define GPIO_PB_MASK (0x0007UL) /**< Port PB pin mask */ 297 #define GPIO_PB_PIN0 1U /**< GPIO pin PB0 is present. */ 298 #define GPIO_PB_PIN1 1U /**< GPIO pin PB1 is present. */ 299 #define GPIO_PB_PIN2 1U /**< GPIO pin PB2 is present. */ 300 #define GPIO_PC_INDEX 2U /**< Index of port PC */ 301 #define GPIO_PC_COUNT 6U /**< Number of pins on port PC */ 302 #define GPIO_PC_MASK (0x003FUL) /**< Port PC pin mask */ 303 #define GPIO_PC_PIN0 1U /**< GPIO pin PC0 is present. */ 304 #define GPIO_PC_PIN1 1U /**< GPIO pin PC1 is present. */ 305 #define GPIO_PC_PIN2 1U /**< GPIO pin PC2 is present. */ 306 #define GPIO_PC_PIN3 1U /**< GPIO pin PC3 is present. */ 307 #define GPIO_PC_PIN4 1U /**< GPIO pin PC4 is present. */ 308 #define GPIO_PC_PIN5 1U /**< GPIO pin PC5 is present. */ 309 #define GPIO_PD_INDEX 3U /**< Index of port PD */ 310 #define GPIO_PD_COUNT 2U /**< Number of pins on port PD */ 311 #define GPIO_PD_MASK (0x0003UL) /**< Port PD pin mask */ 312 #define GPIO_PD_PIN0 1U /**< GPIO pin PD0 is present. */ 313 #define GPIO_PD_PIN1 1U /**< GPIO pin PD1 is present. */ 314 315 /* Fixed Resource Locations */ 316 #define GPIO_SWCLK_PORT GPIO_PA_INDEX /**< Port of SWCLK.*/ 317 #define GPIO_SWCLK_PIN 1U /**< Pin of SWCLK.*/ 318 #define GPIO_SWDIO_PORT GPIO_PA_INDEX /**< Port of SWDIO.*/ 319 #define GPIO_SWDIO_PIN 2U /**< Pin of SWDIO.*/ 320 #define GPIO_SWV_PORT GPIO_PA_INDEX /**< Port of SWV.*/ 321 #define GPIO_SWV_PIN 3U /**< Pin of SWV.*/ 322 #define GPIO_TDI_PORT GPIO_PA_INDEX /**< Port of TDI.*/ 323 #define GPIO_TDI_PIN 4U /**< Pin of TDI.*/ 324 #define GPIO_TDO_PORT GPIO_PA_INDEX /**< Port of TDO.*/ 325 #define GPIO_TDO_PIN 3U /**< Pin of TDO.*/ 326 #define GPIO_TRACECLK_PORT GPIO_PA_INDEX /**< Port of TRACECLK.*/ 327 #define GPIO_TRACECLK_PIN 4U /**< Pin of TRACECLK.*/ 328 #define GPIO_TRACEDATA0_PORT GPIO_PA_INDEX /**< Port of TRACEDATA0.*/ 329 #define GPIO_TRACEDATA0_PIN 3U /**< Pin of TRACEDATA0.*/ 330 #define GPIO_EM4WU0_PORT GPIO_PA_INDEX /**< Port of EM4WU0.*/ 331 #define GPIO_EM4WU0_PIN 5U /**< Pin of EM4WU0.*/ 332 #define GPIO_EM4WU3_PORT GPIO_PB_INDEX /**< Port of EM4WU3.*/ 333 #define GPIO_EM4WU3_PIN 1U /**< Pin of EM4WU3.*/ 334 #define GPIO_EM4WU6_PORT GPIO_PC_INDEX /**< Port of EM4WU6.*/ 335 #define GPIO_EM4WU6_PIN 0U /**< Pin of EM4WU6.*/ 336 #define GPIO_EM4WU7_PORT GPIO_PC_INDEX /**< Port of EM4WU7.*/ 337 #define GPIO_EM4WU7_PIN 5U /**< Pin of EM4WU7.*/ 338 #define GPIO_THMSW_EN_PORT GPIO_PC_INDEX /**< Port of THMSW_EN.*/ 339 #define GPIO_THMSW_EN_PIN 0U /**< Pin of THMSW_EN.*/ 340 #define IADC0_VREFP_PORT GPIO_PA_INDEX /**< Port of VREFP.*/ 341 #define IADC0_VREFP_PIN 0U /**< Pin of VREFP.*/ 342 #define LFXO_LFXTAL_I_PORT GPIO_PD_INDEX /**< Port of LFXTAL_I.*/ 343 #define LFXO_LFXTAL_I_PIN 1U /**< Pin of LFXTAL_I.*/ 344 #define LFXO_LFXTAL_O_PORT GPIO_PD_INDEX /**< Port of LFXTAL_O.*/ 345 #define LFXO_LFXTAL_O_PIN 0U /**< Pin of LFXTAL_O.*/ 346 #define LFXO_LF_EXTCLK_PORT GPIO_PD_INDEX /**< Port of LF_EXTCLK.*/ 347 #define LFXO_LF_EXTCLK_PIN 1U /**< Pin of LF_EXTCLK.*/ 348 349 /* Part number capabilities */ 350 #define BURAM_PRESENT /** BURAM is available in this part */ 351 #define BURAM_COUNT 1 /** 1 BURAMs available */ 352 #define BURTC_PRESENT /** BURTC is available in this part */ 353 #define BURTC_COUNT 1 /** 1 BURTCs available */ 354 #define CMU_PRESENT /** CMU is available in this part */ 355 #define CMU_COUNT 1 /** 1 CMUs available */ 356 #define CRYPTOACC_PRESENT /** CRYPTOACC is available in this part */ 357 #define CRYPTOACC_COUNT 1 /** 1 CRYPTOACCs available */ 358 #define DCDC_PRESENT /** DCDC is available in this part */ 359 #define DCDC_COUNT 1 /** 1 DCDCs available */ 360 #define DPLL_PRESENT /** DPLL is available in this part */ 361 #define DPLL_COUNT 1 /** 1 DPLLs available */ 362 #define EMU_PRESENT /** EMU is available in this part */ 363 #define EMU_COUNT 1 /** 1 EMUs available */ 364 #define EUART_PRESENT /** EUART is available in this part */ 365 #define EUART_COUNT 1 /** 1 EUARTs available */ 366 #define FSRCO_PRESENT /** FSRCO is available in this part */ 367 #define FSRCO_COUNT 1 /** 1 FSRCOs available */ 368 #define GPCRC_PRESENT /** GPCRC is available in this part */ 369 #define GPCRC_COUNT 1 /** 1 GPCRCs available */ 370 #define GPIO_PRESENT /** GPIO is available in this part */ 371 #define GPIO_COUNT 1 /** 1 GPIOs available */ 372 #define HFRCO_PRESENT /** HFRCO is available in this part */ 373 #define HFRCO_COUNT 1 /** 1 HFRCOs available */ 374 #define HFXO_PRESENT /** HFXO is available in this part */ 375 #define HFXO_COUNT 1 /** 1 HFXOs available */ 376 #define I2C_PRESENT /** I2C is available in this part */ 377 #define I2C_COUNT 2 /** 2 I2Cs available */ 378 #define IADC_PRESENT /** IADC is available in this part */ 379 #define IADC_COUNT 1 /** 1 IADCs available */ 380 #define ICACHE_PRESENT /** ICACHE is available in this part */ 381 #define ICACHE_COUNT 1 /** 1 ICACHEs available */ 382 #define LDMA_PRESENT /** LDMA is available in this part */ 383 #define LDMA_COUNT 1 /** 1 LDMAs available */ 384 #define LDMAXBAR_PRESENT /** LDMAXBAR is available in this part */ 385 #define LDMAXBAR_COUNT 1 /** 1 LDMAXBARs available */ 386 #define LETIMER_PRESENT /** LETIMER is available in this part */ 387 #define LETIMER_COUNT 1 /** 1 LETIMERs available */ 388 #define LFRCO_PRESENT /** LFRCO is available in this part */ 389 #define LFRCO_COUNT 1 /** 1 LFRCOs available */ 390 #define LFXO_PRESENT /** LFXO is available in this part */ 391 #define LFXO_COUNT 1 /** 1 LFXOs available */ 392 #define MSC_PRESENT /** MSC is available in this part */ 393 #define MSC_COUNT 1 /** 1 MSCs available */ 394 #define PDM_PRESENT /** PDM is available in this part */ 395 #define PDM_COUNT 1 /** 1 PDMs available */ 396 #define PRORTC_PRESENT /** PRORTC is available in this part */ 397 #define PRORTC_COUNT 1 /** 1 PRORTCs available */ 398 #define PRS_PRESENT /** PRS is available in this part */ 399 #define PRS_COUNT 1 /** 1 PRSs available */ 400 #define RADIOAES_PRESENT /** RADIOAES is available in this part */ 401 #define RADIOAES_COUNT 1 /** 1 RADIOAESs available */ 402 #define RTCC_PRESENT /** RTCC is available in this part */ 403 #define RTCC_COUNT 1 /** 1 RTCCs available */ 404 #define SMU_PRESENT /** SMU is available in this part */ 405 #define SMU_COUNT 1 /** 1 SMUs available */ 406 #define SYSCFG_PRESENT /** SYSCFG is available in this part */ 407 #define SYSCFG_COUNT 1 /** 1 SYSCFGs available */ 408 #define TIMER_PRESENT /** TIMER is available in this part */ 409 #define TIMER_COUNT 5 /** 5 TIMERs available */ 410 #define ULFRCO_PRESENT /** ULFRCO is available in this part */ 411 #define ULFRCO_COUNT 1 /** 1 ULFRCOs available */ 412 #define USART_PRESENT /** USART is available in this part */ 413 #define USART_COUNT 2 /** 2 USARTs available */ 414 #define WDOG_PRESENT /** WDOG is available in this part */ 415 #define WDOG_COUNT 1 /** 1 WDOGs available */ 416 #define DEVINFO_PRESENT /** DEVINFO is available in this part */ 417 #define DEVINFO_COUNT 1 /** 1 DEVINFOs available */ 418 419 /* Include standard ARM headers for the core */ 420 #include "core_cm33.h" /* Core Header File */ 421 #include "system_efr32bg22.h" /* System Header File */ 422 423 /** @} End of group EFR32BG22C224F512GN32_Part */ 424 425 /**************************************************************************//** 426 * @defgroup EFR32BG22C224F512GN32_Peripheral_TypeDefs EFR32BG22C224F512GN32 Peripheral TypeDefs 427 * @{ 428 * @brief Device Specific Peripheral Register Structures 429 *****************************************************************************/ 430 #include "efr32bg22_emu.h" 431 #include "efr32bg22_cmu.h" 432 #include "efr32bg22_hfxo.h" 433 #include "efr32bg22_hfrco.h" 434 #include "efr32bg22_fsrco.h" 435 #include "efr32bg22_dpll.h" 436 #include "efr32bg22_lfxo.h" 437 #include "efr32bg22_lfrco.h" 438 #include "efr32bg22_ulfrco.h" 439 #include "efr32bg22_msc.h" 440 #include "efr32bg22_icache.h" 441 #include "efr32bg22_prs.h" 442 #include "efr32bg22_gpio.h" 443 #include "efr32bg22_ldma.h" 444 #include "efr32bg22_ldmaxbar.h" 445 #include "efr32bg22_timer.h" 446 #include "efr32bg22_usart.h" 447 #include "efr32bg22_burtc.h" 448 #include "efr32bg22_i2c.h" 449 #include "efr32bg22_syscfg.h" 450 #include "efr32bg22_buram.h" 451 #include "efr32bg22_gpcrc.h" 452 #include "efr32bg22_dcdc.h" 453 #include "efr32bg22_pdm.h" 454 #include "efr32bg22_aes.h" 455 #include "efr32bg22_smu.h" 456 #include "efr32bg22_rtcc.h" 457 #include "efr32bg22_letimer.h" 458 #include "efr32bg22_iadc.h" 459 #include "efr32bg22_wdog.h" 460 #include "efr32bg22_eusart.h" 461 #include "efr32bg22_cryptoacc.h" 462 #include "efr32bg22_devinfo.h" 463 464 /* Custom headers for LDMAXBAR and PRS mappings */ 465 #include "efr32bg22_prs_signals.h" 466 #include "efr32bg22_dma_descriptor.h" 467 #include "efr32bg22_ldmaxbar_defines.h" 468 469 /** @} End of group EFR32BG22C224F512GN32_Peripheral_TypeDefs */ 470 471 /**************************************************************************//** 472 * @defgroup EFR32BG22C224F512GN32_Peripheral_Base EFR32BG22C224F512GN32 Peripheral Memory Map 473 * @{ 474 *****************************************************************************/ 475 476 #define EMU_S_BASE (0x40004000UL) /* EMU_S base address */ 477 #define CMU_S_BASE (0x40008000UL) /* CMU_S base address */ 478 #define HFXO0_S_BASE (0x4000C000UL) /* HFXO0_S base address */ 479 #define HFRCO0_S_BASE (0x40010000UL) /* HFRCO0_S base address */ 480 #define FSRCO_S_BASE (0x40018000UL) /* FSRCO_S base address */ 481 #define DPLL0_S_BASE (0x4001C000UL) /* DPLL0_S base address */ 482 #define LFXO_S_BASE (0x40020000UL) /* LFXO_S base address */ 483 #define LFRCO_S_BASE (0x40024000UL) /* LFRCO_S base address */ 484 #define ULFRCO_S_BASE (0x40028000UL) /* ULFRCO_S base address */ 485 #define MSC_S_BASE (0x40030000UL) /* MSC_S base address */ 486 #define ICACHE0_S_BASE (0x40034000UL) /* ICACHE0_S base address */ 487 #define PRS_S_BASE (0x40038000UL) /* PRS_S base address */ 488 #define GPIO_S_BASE (0x4003C000UL) /* GPIO_S base address */ 489 #define LDMA_S_BASE (0x40040000UL) /* LDMA_S base address */ 490 #define LDMAXBAR_S_BASE (0x40044000UL) /* LDMAXBAR_S base address */ 491 #define TIMER0_S_BASE (0x40048000UL) /* TIMER0_S base address */ 492 #define TIMER1_S_BASE (0x4004C000UL) /* TIMER1_S base address */ 493 #define TIMER2_S_BASE (0x40050000UL) /* TIMER2_S base address */ 494 #define TIMER3_S_BASE (0x40054000UL) /* TIMER3_S base address */ 495 #define TIMER4_S_BASE (0x40058000UL) /* TIMER4_S base address */ 496 #define USART0_S_BASE (0x4005C000UL) /* USART0_S base address */ 497 #define USART1_S_BASE (0x40060000UL) /* USART1_S base address */ 498 #define BURTC_S_BASE (0x40064000UL) /* BURTC_S base address */ 499 #define I2C1_S_BASE (0x40068000UL) /* I2C1_S base address */ 500 #define SYSCFG_S_CFGNS_BASE (0x40078000UL) /* SYSCFG_S_CFGNS base address */ 501 #define SYSCFG_S_BASE (0x4007C000UL) /* SYSCFG_S base address */ 502 #define BURAM_S_BASE (0x40080000UL) /* BURAM_S base address */ 503 #define GPCRC_S_BASE (0x40088000UL) /* GPCRC_S base address */ 504 #define DCDC_S_BASE (0x40094000UL) /* DCDC_S base address */ 505 #define PDM_S_BASE (0x40098000UL) /* PDM_S base address */ 506 #define RADIOAES_S_BASE (0x44000000UL) /* RADIOAES_S base address */ 507 #define SMU_S_BASE (0x44008000UL) /* SMU_S base address */ 508 #define SMU_S_CFGNS_BASE (0x4400C000UL) /* SMU_S_CFGNS base address */ 509 #define RTCC_S_BASE (0x48000000UL) /* RTCC_S base address */ 510 #define LETIMER0_S_BASE (0x4A000000UL) /* LETIMER0_S base address */ 511 #define IADC0_S_BASE (0x4A004000UL) /* IADC0_S base address */ 512 #define I2C0_S_BASE (0x4A010000UL) /* I2C0_S base address */ 513 #define WDOG0_S_BASE (0x4A018000UL) /* WDOG0_S base address */ 514 #define EUART0_S_BASE (0x4A030000UL) /* EUART0_S base address */ 515 #define CRYPTOACC_S_BASE (0x4C020000UL) /* CRYPTOACC_S base address */ 516 #define CRYPTOACC_S_RNGCTRL_BASE (0x4C021000UL) /* CRYPTOACC_S_RNGCTRL base address */ 517 #define CRYPTOACC_S_PKCTRL_BASE (0x4C022000UL) /* CRYPTOACC_S_PKCTRL base address */ 518 #define PRORTC_S_BASE (0xA8000000UL) /* PRORTC_S base address */ 519 #define EMU_NS_BASE (0x50004000UL) /* EMU_NS base address */ 520 #define CMU_NS_BASE (0x50008000UL) /* CMU_NS base address */ 521 #define HFXO0_NS_BASE (0x5000C000UL) /* HFXO0_NS base address */ 522 #define HFRCO0_NS_BASE (0x50010000UL) /* HFRCO0_NS base address */ 523 #define FSRCO_NS_BASE (0x50018000UL) /* FSRCO_NS base address */ 524 #define DPLL0_NS_BASE (0x5001C000UL) /* DPLL0_NS base address */ 525 #define LFXO_NS_BASE (0x50020000UL) /* LFXO_NS base address */ 526 #define LFRCO_NS_BASE (0x50024000UL) /* LFRCO_NS base address */ 527 #define ULFRCO_NS_BASE (0x50028000UL) /* ULFRCO_NS base address */ 528 #define MSC_NS_BASE (0x50030000UL) /* MSC_NS base address */ 529 #define ICACHE0_NS_BASE (0x50034000UL) /* ICACHE0_NS base address */ 530 #define PRS_NS_BASE (0x50038000UL) /* PRS_NS base address */ 531 #define GPIO_NS_BASE (0x5003C000UL) /* GPIO_NS base address */ 532 #define LDMA_NS_BASE (0x50040000UL) /* LDMA_NS base address */ 533 #define LDMAXBAR_NS_BASE (0x50044000UL) /* LDMAXBAR_NS base address */ 534 #define TIMER0_NS_BASE (0x50048000UL) /* TIMER0_NS base address */ 535 #define TIMER1_NS_BASE (0x5004C000UL) /* TIMER1_NS base address */ 536 #define TIMER2_NS_BASE (0x50050000UL) /* TIMER2_NS base address */ 537 #define TIMER3_NS_BASE (0x50054000UL) /* TIMER3_NS base address */ 538 #define TIMER4_NS_BASE (0x50058000UL) /* TIMER4_NS base address */ 539 #define USART0_NS_BASE (0x5005C000UL) /* USART0_NS base address */ 540 #define USART1_NS_BASE (0x50060000UL) /* USART1_NS base address */ 541 #define BURTC_NS_BASE (0x50064000UL) /* BURTC_NS base address */ 542 #define I2C1_NS_BASE (0x50068000UL) /* I2C1_NS base address */ 543 #define SYSCFG_NS_CFGNS_BASE (0x50078000UL) /* SYSCFG_NS_CFGNS base address */ 544 #define SYSCFG_NS_BASE (0x5007C000UL) /* SYSCFG_NS base address */ 545 #define BURAM_NS_BASE (0x50080000UL) /* BURAM_NS base address */ 546 #define GPCRC_NS_BASE (0x50088000UL) /* GPCRC_NS base address */ 547 #define DCDC_NS_BASE (0x50094000UL) /* DCDC_NS base address */ 548 #define PDM_NS_BASE (0x50098000UL) /* PDM_NS base address */ 549 #define RADIOAES_NS_BASE (0x54000000UL) /* RADIOAES_NS base address */ 550 #define SMU_NS_BASE (0x54008000UL) /* SMU_NS base address */ 551 #define SMU_NS_CFGNS_BASE (0x5400C000UL) /* SMU_NS_CFGNS base address */ 552 #define RTCC_NS_BASE (0x58000000UL) /* RTCC_NS base address */ 553 #define LETIMER0_NS_BASE (0x5A000000UL) /* LETIMER0_NS base address */ 554 #define IADC0_NS_BASE (0x5A004000UL) /* IADC0_NS base address */ 555 #define I2C0_NS_BASE (0x5A010000UL) /* I2C0_NS base address */ 556 #define WDOG0_NS_BASE (0x5A018000UL) /* WDOG0_NS base address */ 557 #define EUART0_NS_BASE (0x5A030000UL) /* EUART0_NS base address */ 558 #define CRYPTOACC_NS_BASE (0x5C020000UL) /* CRYPTOACC_NS base address */ 559 #define CRYPTOACC_NS_RNGCTRL_BASE (0x5C021000UL) /* CRYPTOACC_NS_RNGCTRL base address */ 560 #define CRYPTOACC_NS_PKCTRL_BASE (0x5C022000UL) /* CRYPTOACC_NS_PKCTRL base address */ 561 #define PRORTC_NS_BASE (0xB8000000UL) /* PRORTC_NS base address */ 562 563 #if defined(SL_COMPONENT_CATALOG_PRESENT) 564 #include "sl_component_catalog.h" 565 566 #endif 567 #if defined(SL_CATALOG_TRUSTZONE_SECURE_CONFIG_PRESENT) 568 #include "sl_trustzone_secure_config.h" 569 570 #endif 571 572 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_EMU_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_EMU_S) && (SL_TRUSTZONE_PERIPHERAL_EMU_S != 0))) 573 #define EMU_BASE (EMU_S_BASE) /* EMU base address */ 574 #else 575 #define EMU_BASE (EMU_NS_BASE) /* EMU base address */ 576 #endif /* SL_TRUSTZONE_PERIPHERAL_EMU_S */ 577 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_CMU_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_CMU_S) && (SL_TRUSTZONE_PERIPHERAL_CMU_S != 0))) 578 #define CMU_BASE (CMU_S_BASE) /* CMU base address */ 579 #else 580 #define CMU_BASE (CMU_NS_BASE) /* CMU base address */ 581 #endif /* SL_TRUSTZONE_PERIPHERAL_CMU_S */ 582 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_HFXO0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_HFXO0_S) && (SL_TRUSTZONE_PERIPHERAL_HFXO0_S != 0))) 583 #define HFXO0_BASE (HFXO0_S_BASE) /* HFXO0 base address */ 584 #else 585 #define HFXO0_BASE (HFXO0_NS_BASE) /* HFXO0 base address */ 586 #endif /* SL_TRUSTZONE_PERIPHERAL_HFXO0_S */ 587 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_HFRCO0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_HFRCO0_S) && (SL_TRUSTZONE_PERIPHERAL_HFRCO0_S != 0))) 588 #define HFRCO0_BASE (HFRCO0_S_BASE) /* HFRCO0 base address */ 589 #else 590 #define HFRCO0_BASE (HFRCO0_NS_BASE) /* HFRCO0 base address */ 591 #endif /* SL_TRUSTZONE_PERIPHERAL_HFRCO0_S */ 592 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_FSRCO_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_FSRCO_S) && (SL_TRUSTZONE_PERIPHERAL_FSRCO_S != 0))) 593 #define FSRCO_BASE (FSRCO_S_BASE) /* FSRCO base address */ 594 #else 595 #define FSRCO_BASE (FSRCO_NS_BASE) /* FSRCO base address */ 596 #endif /* SL_TRUSTZONE_PERIPHERAL_FSRCO_S */ 597 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_DPLL0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_DPLL0_S) && (SL_TRUSTZONE_PERIPHERAL_DPLL0_S != 0))) 598 #define DPLL0_BASE (DPLL0_S_BASE) /* DPLL0 base address */ 599 #else 600 #define DPLL0_BASE (DPLL0_NS_BASE) /* DPLL0 base address */ 601 #endif /* SL_TRUSTZONE_PERIPHERAL_DPLL0_S */ 602 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_LFXO_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_LFXO_S) && (SL_TRUSTZONE_PERIPHERAL_LFXO_S != 0))) 603 #define LFXO_BASE (LFXO_S_BASE) /* LFXO base address */ 604 #else 605 #define LFXO_BASE (LFXO_NS_BASE) /* LFXO base address */ 606 #endif /* SL_TRUSTZONE_PERIPHERAL_LFXO_S */ 607 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_LFRCO_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_LFRCO_S) && (SL_TRUSTZONE_PERIPHERAL_LFRCO_S != 0))) 608 #define LFRCO_BASE (LFRCO_S_BASE) /* LFRCO base address */ 609 #else 610 #define LFRCO_BASE (LFRCO_NS_BASE) /* LFRCO base address */ 611 #endif /* SL_TRUSTZONE_PERIPHERAL_LFRCO_S */ 612 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_ULFRCO_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_ULFRCO_S) && (SL_TRUSTZONE_PERIPHERAL_ULFRCO_S != 0))) 613 #define ULFRCO_BASE (ULFRCO_S_BASE) /* ULFRCO base address */ 614 #else 615 #define ULFRCO_BASE (ULFRCO_NS_BASE) /* ULFRCO base address */ 616 #endif /* SL_TRUSTZONE_PERIPHERAL_ULFRCO_S */ 617 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_MSC_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_MSC_S) && (SL_TRUSTZONE_PERIPHERAL_MSC_S != 0))) 618 #define MSC_BASE (MSC_S_BASE) /* MSC base address */ 619 #else 620 #define MSC_BASE (MSC_NS_BASE) /* MSC base address */ 621 #endif /* SL_TRUSTZONE_PERIPHERAL_MSC_S */ 622 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_ICACHE0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_ICACHE0_S) && (SL_TRUSTZONE_PERIPHERAL_ICACHE0_S != 0))) 623 #define ICACHE0_BASE (ICACHE0_S_BASE) /* ICACHE0 base address */ 624 #else 625 #define ICACHE0_BASE (ICACHE0_NS_BASE) /* ICACHE0 base address */ 626 #endif /* SL_TRUSTZONE_PERIPHERAL_ICACHE0_S */ 627 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_PRS_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_PRS_S) && (SL_TRUSTZONE_PERIPHERAL_PRS_S != 0))) 628 #define PRS_BASE (PRS_S_BASE) /* PRS base address */ 629 #else 630 #define PRS_BASE (PRS_NS_BASE) /* PRS base address */ 631 #endif /* SL_TRUSTZONE_PERIPHERAL_PRS_S */ 632 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_GPIO_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_GPIO_S) && (SL_TRUSTZONE_PERIPHERAL_GPIO_S != 0))) 633 #define GPIO_BASE (GPIO_S_BASE) /* GPIO base address */ 634 #else 635 #define GPIO_BASE (GPIO_NS_BASE) /* GPIO base address */ 636 #endif /* SL_TRUSTZONE_PERIPHERAL_GPIO_S */ 637 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_LDMA_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_LDMA_S) && (SL_TRUSTZONE_PERIPHERAL_LDMA_S != 0))) 638 #define LDMA_BASE (LDMA_S_BASE) /* LDMA base address */ 639 #else 640 #define LDMA_BASE (LDMA_NS_BASE) /* LDMA base address */ 641 #endif /* SL_TRUSTZONE_PERIPHERAL_LDMA_S */ 642 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_LDMAXBAR_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_LDMAXBAR_S) && (SL_TRUSTZONE_PERIPHERAL_LDMAXBAR_S != 0))) 643 #define LDMAXBAR_BASE (LDMAXBAR_S_BASE) /* LDMAXBAR base address */ 644 #else 645 #define LDMAXBAR_BASE (LDMAXBAR_NS_BASE) /* LDMAXBAR base address */ 646 #endif /* SL_TRUSTZONE_PERIPHERAL_LDMAXBAR_S */ 647 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_TIMER0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_TIMER0_S) && (SL_TRUSTZONE_PERIPHERAL_TIMER0_S != 0))) 648 #define TIMER0_BASE (TIMER0_S_BASE) /* TIMER0 base address */ 649 #else 650 #define TIMER0_BASE (TIMER0_NS_BASE) /* TIMER0 base address */ 651 #endif /* SL_TRUSTZONE_PERIPHERAL_TIMER0_S */ 652 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_TIMER1_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_TIMER1_S) && (SL_TRUSTZONE_PERIPHERAL_TIMER1_S != 0))) 653 #define TIMER1_BASE (TIMER1_S_BASE) /* TIMER1 base address */ 654 #else 655 #define TIMER1_BASE (TIMER1_NS_BASE) /* TIMER1 base address */ 656 #endif /* SL_TRUSTZONE_PERIPHERAL_TIMER1_S */ 657 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_TIMER2_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_TIMER2_S) && (SL_TRUSTZONE_PERIPHERAL_TIMER2_S != 0))) 658 #define TIMER2_BASE (TIMER2_S_BASE) /* TIMER2 base address */ 659 #else 660 #define TIMER2_BASE (TIMER2_NS_BASE) /* TIMER2 base address */ 661 #endif /* SL_TRUSTZONE_PERIPHERAL_TIMER2_S */ 662 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_TIMER3_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_TIMER3_S) && (SL_TRUSTZONE_PERIPHERAL_TIMER3_S != 0))) 663 #define TIMER3_BASE (TIMER3_S_BASE) /* TIMER3 base address */ 664 #else 665 #define TIMER3_BASE (TIMER3_NS_BASE) /* TIMER3 base address */ 666 #endif /* SL_TRUSTZONE_PERIPHERAL_TIMER3_S */ 667 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_TIMER4_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_TIMER4_S) && (SL_TRUSTZONE_PERIPHERAL_TIMER4_S != 0))) 668 #define TIMER4_BASE (TIMER4_S_BASE) /* TIMER4 base address */ 669 #else 670 #define TIMER4_BASE (TIMER4_NS_BASE) /* TIMER4 base address */ 671 #endif /* SL_TRUSTZONE_PERIPHERAL_TIMER4_S */ 672 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_USART0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_USART0_S) && (SL_TRUSTZONE_PERIPHERAL_USART0_S != 0))) 673 #define USART0_BASE (USART0_S_BASE) /* USART0 base address */ 674 #else 675 #define USART0_BASE (USART0_NS_BASE) /* USART0 base address */ 676 #endif /* SL_TRUSTZONE_PERIPHERAL_USART0_S */ 677 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_USART1_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_USART1_S) && (SL_TRUSTZONE_PERIPHERAL_USART1_S != 0))) 678 #define USART1_BASE (USART1_S_BASE) /* USART1 base address */ 679 #else 680 #define USART1_BASE (USART1_NS_BASE) /* USART1 base address */ 681 #endif /* SL_TRUSTZONE_PERIPHERAL_USART1_S */ 682 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_BURTC_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_BURTC_S) && (SL_TRUSTZONE_PERIPHERAL_BURTC_S != 0))) 683 #define BURTC_BASE (BURTC_S_BASE) /* BURTC base address */ 684 #else 685 #define BURTC_BASE (BURTC_NS_BASE) /* BURTC base address */ 686 #endif /* SL_TRUSTZONE_PERIPHERAL_BURTC_S */ 687 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_I2C1_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_I2C1_S) && (SL_TRUSTZONE_PERIPHERAL_I2C1_S != 0))) 688 #define I2C1_BASE (I2C1_S_BASE) /* I2C1 base address */ 689 #else 690 #define I2C1_BASE (I2C1_NS_BASE) /* I2C1 base address */ 691 #endif /* SL_TRUSTZONE_PERIPHERAL_I2C1_S */ 692 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_SYSCFG_CFGNS_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_SYSCFG_CFGNS_S) && (SL_TRUSTZONE_PERIPHERAL_SYSCFG_CFGNS_S != 0))) 693 #define SYSCFG_CFGNS_BASE (SYSCFG_S_CFGNS_BASE) /* SYSCFG_CFGNS base address */ 694 #else 695 #define SYSCFG_CFGNS_BASE (SYSCFG_NS_CFGNS_BASE) /* SYSCFG_CFGNS base address */ 696 #endif /* SL_TRUSTZONE_PERIPHERAL_SYSCFG_CFGNS_S */ 697 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_SYSCFG_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_SYSCFG_S) && (SL_TRUSTZONE_PERIPHERAL_SYSCFG_S != 0))) 698 #define SYSCFG_BASE (SYSCFG_S_BASE) /* SYSCFG base address */ 699 #else 700 #define SYSCFG_BASE (SYSCFG_NS_BASE) /* SYSCFG base address */ 701 #endif /* SL_TRUSTZONE_PERIPHERAL_SYSCFG_S */ 702 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_BURAM_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_BURAM_S) && (SL_TRUSTZONE_PERIPHERAL_BURAM_S != 0))) 703 #define BURAM_BASE (BURAM_S_BASE) /* BURAM base address */ 704 #else 705 #define BURAM_BASE (BURAM_NS_BASE) /* BURAM base address */ 706 #endif /* SL_TRUSTZONE_PERIPHERAL_BURAM_S */ 707 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_GPCRC_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_GPCRC_S) && (SL_TRUSTZONE_PERIPHERAL_GPCRC_S != 0))) 708 #define GPCRC_BASE (GPCRC_S_BASE) /* GPCRC base address */ 709 #else 710 #define GPCRC_BASE (GPCRC_NS_BASE) /* GPCRC base address */ 711 #endif /* SL_TRUSTZONE_PERIPHERAL_GPCRC_S */ 712 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_DCDC_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_DCDC_S) && (SL_TRUSTZONE_PERIPHERAL_DCDC_S != 0))) 713 #define DCDC_BASE (DCDC_S_BASE) /* DCDC base address */ 714 #else 715 #define DCDC_BASE (DCDC_NS_BASE) /* DCDC base address */ 716 #endif /* SL_TRUSTZONE_PERIPHERAL_DCDC_S */ 717 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_PDM_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_PDM_S) && (SL_TRUSTZONE_PERIPHERAL_PDM_S != 0))) 718 #define PDM_BASE (PDM_S_BASE) /* PDM base address */ 719 #else 720 #define PDM_BASE (PDM_NS_BASE) /* PDM base address */ 721 #endif /* SL_TRUSTZONE_PERIPHERAL_PDM_S */ 722 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_RADIOAES_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_RADIOAES_S) && (SL_TRUSTZONE_PERIPHERAL_RADIOAES_S != 0))) 723 #define RADIOAES_BASE (RADIOAES_S_BASE) /* RADIOAES base address */ 724 #else 725 #define RADIOAES_BASE (RADIOAES_NS_BASE) /* RADIOAES base address */ 726 #endif /* SL_TRUSTZONE_PERIPHERAL_RADIOAES_S */ 727 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_SMU_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_SMU_S) && (SL_TRUSTZONE_PERIPHERAL_SMU_S != 0))) 728 #define SMU_BASE (SMU_S_BASE) /* SMU base address */ 729 #else 730 #define SMU_BASE (SMU_S_BASE) /* SMU base address */ 731 #endif /* SL_TRUSTZONE_PERIPHERAL_SMU_S */ 732 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_SMU_CFGNS_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_SMU_CFGNS_S) && (SL_TRUSTZONE_PERIPHERAL_SMU_CFGNS_S != 0))) 733 #define SMU_CFGNS_BASE (SMU_S_CFGNS_BASE) /* SMU_CFGNS base address */ 734 #else 735 #define SMU_CFGNS_BASE (SMU_NS_CFGNS_BASE) /* SMU_CFGNS base address */ 736 #endif /* SL_TRUSTZONE_PERIPHERAL_SMU_CFGNS_S */ 737 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_RTCC_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_RTCC_S) && (SL_TRUSTZONE_PERIPHERAL_RTCC_S != 0))) 738 #define RTCC_BASE (RTCC_S_BASE) /* RTCC base address */ 739 #else 740 #define RTCC_BASE (RTCC_NS_BASE) /* RTCC base address */ 741 #endif /* SL_TRUSTZONE_PERIPHERAL_RTCC_S */ 742 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_LETIMER0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_LETIMER0_S) && (SL_TRUSTZONE_PERIPHERAL_LETIMER0_S != 0))) 743 #define LETIMER0_BASE (LETIMER0_S_BASE) /* LETIMER0 base address */ 744 #else 745 #define LETIMER0_BASE (LETIMER0_NS_BASE) /* LETIMER0 base address */ 746 #endif /* SL_TRUSTZONE_PERIPHERAL_LETIMER0_S */ 747 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_IADC0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_IADC0_S) && (SL_TRUSTZONE_PERIPHERAL_IADC0_S != 0))) 748 #define IADC0_BASE (IADC0_S_BASE) /* IADC0 base address */ 749 #else 750 #define IADC0_BASE (IADC0_NS_BASE) /* IADC0 base address */ 751 #endif /* SL_TRUSTZONE_PERIPHERAL_IADC0_S */ 752 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_I2C0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_I2C0_S) && (SL_TRUSTZONE_PERIPHERAL_I2C0_S != 0))) 753 #define I2C0_BASE (I2C0_S_BASE) /* I2C0 base address */ 754 #else 755 #define I2C0_BASE (I2C0_NS_BASE) /* I2C0 base address */ 756 #endif /* SL_TRUSTZONE_PERIPHERAL_I2C0_S */ 757 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_WDOG0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_WDOG0_S) && (SL_TRUSTZONE_PERIPHERAL_WDOG0_S != 0))) 758 #define WDOG0_BASE (WDOG0_S_BASE) /* WDOG0 base address */ 759 #else 760 #define WDOG0_BASE (WDOG0_NS_BASE) /* WDOG0 base address */ 761 #endif /* SL_TRUSTZONE_PERIPHERAL_WDOG0_S */ 762 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_EUART0_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_EUART0_S) && (SL_TRUSTZONE_PERIPHERAL_EUART0_S != 0))) 763 #define EUART0_BASE (EUART0_S_BASE) /* EUART0 base address */ 764 #else 765 #define EUART0_BASE (EUART0_NS_BASE) /* EUART0 base address */ 766 #endif /* SL_TRUSTZONE_PERIPHERAL_EUART0_S */ 767 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_S) && (SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_S != 0))) 768 #define CRYPTOACC_BASE (CRYPTOACC_S_BASE) /* CRYPTOACC base address */ 769 #else 770 #define CRYPTOACC_BASE (CRYPTOACC_NS_BASE) /* CRYPTOACC base address */ 771 #endif /* SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_S */ 772 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_RNGCTRL_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_RNGCTRL_S) && (SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_RNGCTRL_S != 0))) 773 #define CRYPTOACC_RNGCTRL_BASE (CRYPTOACC_S_RNGCTRL_BASE) /* CRYPTOACC_RNGCTRL base address */ 774 #else 775 #define CRYPTOACC_RNGCTRL_BASE (CRYPTOACC_NS_RNGCTRL_BASE) /* CRYPTOACC_RNGCTRL base address */ 776 #endif /* SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_RNGCTRL_S */ 777 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_PKCTRL_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_PKCTRL_S) && (SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_PKCTRL_S != 0))) 778 #define CRYPTOACC_PKCTRL_BASE (CRYPTOACC_S_PKCTRL_BASE) /* CRYPTOACC_PKCTRL base address */ 779 #else 780 #define CRYPTOACC_PKCTRL_BASE (CRYPTOACC_NS_PKCTRL_BASE) /* CRYPTOACC_PKCTRL base address */ 781 #endif /* SL_TRUSTZONE_PERIPHERAL_CRYPTOACC_PKCTRL_S */ 782 #if ((defined(SL_TRUSTZONE_SECURE) && !defined(SL_TRUSTZONE_PERIPHERAL_PRORTC_S)) || (defined(SL_TRUSTZONE_PERIPHERAL_PRORTC_S) && (SL_TRUSTZONE_PERIPHERAL_PRORTC_S != 0))) 783 #define PRORTC_BASE (PRORTC_S_BASE) /* PRORTC base address */ 784 #else 785 #define PRORTC_BASE (PRORTC_NS_BASE) /* PRORTC base address */ 786 #endif /* SL_TRUSTZONE_PERIPHERAL_PRORTC_S */ 787 788 #define DEVINFO_BASE (0x0FE08000UL) /* DEVINFO base address */ 789 /** @} End of group EFR32BG22C224F512GN32_Peripheral_Base */ 790 791 /**************************************************************************//** 792 * @defgroup EFR32BG22C224F512GN32_Peripheral_Declaration EFR32BG22C224F512GN32 Peripheral Declarations Map 793 * @{ 794 *****************************************************************************/ 795 796 #define EMU_S ((EMU_TypeDef *) EMU_S_BASE) /**< EMU_S base pointer */ 797 #define CMU_S ((CMU_TypeDef *) CMU_S_BASE) /**< CMU_S base pointer */ 798 #define HFXO0_S ((HFXO_TypeDef *) HFXO0_S_BASE) /**< HFXO0_S base pointer */ 799 #define HFRCO0_S ((HFRCO_TypeDef *) HFRCO0_S_BASE) /**< HFRCO0_S base pointer */ 800 #define FSRCO_S ((FSRCO_TypeDef *) FSRCO_S_BASE) /**< FSRCO_S base pointer */ 801 #define DPLL0_S ((DPLL_TypeDef *) DPLL0_S_BASE) /**< DPLL0_S base pointer */ 802 #define LFXO_S ((LFXO_TypeDef *) LFXO_S_BASE) /**< LFXO_S base pointer */ 803 #define LFRCO_S ((LFRCO_TypeDef *) LFRCO_S_BASE) /**< LFRCO_S base pointer */ 804 #define ULFRCO_S ((ULFRCO_TypeDef *) ULFRCO_S_BASE) /**< ULFRCO_S base pointer */ 805 #define MSC_S ((MSC_TypeDef *) MSC_S_BASE) /**< MSC_S base pointer */ 806 #define ICACHE0_S ((ICACHE_TypeDef *) ICACHE0_S_BASE) /**< ICACHE0_S base pointer */ 807 #define PRS_S ((PRS_TypeDef *) PRS_S_BASE) /**< PRS_S base pointer */ 808 #define GPIO_S ((GPIO_TypeDef *) GPIO_S_BASE) /**< GPIO_S base pointer */ 809 #define LDMA_S ((LDMA_TypeDef *) LDMA_S_BASE) /**< LDMA_S base pointer */ 810 #define LDMAXBAR_S ((LDMAXBAR_TypeDef *) LDMAXBAR_S_BASE) /**< LDMAXBAR_S base pointer */ 811 #define TIMER0_S ((TIMER_TypeDef *) TIMER0_S_BASE) /**< TIMER0_S base pointer */ 812 #define TIMER1_S ((TIMER_TypeDef *) TIMER1_S_BASE) /**< TIMER1_S base pointer */ 813 #define TIMER2_S ((TIMER_TypeDef *) TIMER2_S_BASE) /**< TIMER2_S base pointer */ 814 #define TIMER3_S ((TIMER_TypeDef *) TIMER3_S_BASE) /**< TIMER3_S base pointer */ 815 #define TIMER4_S ((TIMER_TypeDef *) TIMER4_S_BASE) /**< TIMER4_S base pointer */ 816 #define USART0_S ((USART_TypeDef *) USART0_S_BASE) /**< USART0_S base pointer */ 817 #define USART1_S ((USART_TypeDef *) USART1_S_BASE) /**< USART1_S base pointer */ 818 #define BURTC_S ((BURTC_TypeDef *) BURTC_S_BASE) /**< BURTC_S base pointer */ 819 #define I2C1_S ((I2C_TypeDef *) I2C1_S_BASE) /**< I2C1_S base pointer */ 820 #define SYSCFG_S_CFGNS ((SYSCFG_CFGNS_TypeDef *) SYSCFG_S_CFGNS_BASE) /**< SYSCFG_S_CFGNS base pointer */ 821 #define SYSCFG_S ((SYSCFG_TypeDef *) SYSCFG_S_BASE) /**< SYSCFG_S base pointer */ 822 #define BURAM_S ((BURAM_TypeDef *) BURAM_S_BASE) /**< BURAM_S base pointer */ 823 #define GPCRC_S ((GPCRC_TypeDef *) GPCRC_S_BASE) /**< GPCRC_S base pointer */ 824 #define DCDC_S ((DCDC_TypeDef *) DCDC_S_BASE) /**< DCDC_S base pointer */ 825 #define PDM_S ((PDM_TypeDef *) PDM_S_BASE) /**< PDM_S base pointer */ 826 #define RADIOAES_S ((AES_TypeDef *) RADIOAES_S_BASE) /**< RADIOAES_S base pointer */ 827 #define SMU_S ((SMU_TypeDef *) SMU_S_BASE) /**< SMU_S base pointer */ 828 #define SMU_S_CFGNS ((SMU_CFGNS_TypeDef *) SMU_S_CFGNS_BASE) /**< SMU_S_CFGNS base pointer */ 829 #define RTCC_S ((RTCC_TypeDef *) RTCC_S_BASE) /**< RTCC_S base pointer */ 830 #define LETIMER0_S ((LETIMER_TypeDef *) LETIMER0_S_BASE) /**< LETIMER0_S base pointer */ 831 #define IADC0_S ((IADC_TypeDef *) IADC0_S_BASE) /**< IADC0_S base pointer */ 832 #define I2C0_S ((I2C_TypeDef *) I2C0_S_BASE) /**< I2C0_S base pointer */ 833 #define WDOG0_S ((WDOG_TypeDef *) WDOG0_S_BASE) /**< WDOG0_S base pointer */ 834 #define EUART0_S ((EUSART_TypeDef *) EUART0_S_BASE) /**< EUART0_S base pointer */ 835 #define CRYPTOACC_S ((CRYPTOACC_TypeDef *) CRYPTOACC_S_BASE) /**< CRYPTOACC_S base pointer */ 836 #define CRYPTOACC_S_RNGCTRL ((CRYPTOACC_RNGCTRL_TypeDef *) CRYPTOACC_S_RNGCTRL_BASE) /**< CRYPTOACC_S_RNGCTRL base pointer */ 837 #define CRYPTOACC_S_PKCTRL ((CRYPTOACC_PKCTRL_TypeDef *) CRYPTOACC_S_PKCTRL_BASE) /**< CRYPTOACC_S_PKCTRL base pointer */ 838 #define PRORTC_S ((RTCC_TypeDef *) PRORTC_S_BASE) /**< PRORTC_S base pointer */ 839 #define EMU_NS ((EMU_TypeDef *) EMU_NS_BASE) /**< EMU_NS base pointer */ 840 #define CMU_NS ((CMU_TypeDef *) CMU_NS_BASE) /**< CMU_NS base pointer */ 841 #define HFXO0_NS ((HFXO_TypeDef *) HFXO0_NS_BASE) /**< HFXO0_NS base pointer */ 842 #define HFRCO0_NS ((HFRCO_TypeDef *) HFRCO0_NS_BASE) /**< HFRCO0_NS base pointer */ 843 #define FSRCO_NS ((FSRCO_TypeDef *) FSRCO_NS_BASE) /**< FSRCO_NS base pointer */ 844 #define DPLL0_NS ((DPLL_TypeDef *) DPLL0_NS_BASE) /**< DPLL0_NS base pointer */ 845 #define LFXO_NS ((LFXO_TypeDef *) LFXO_NS_BASE) /**< LFXO_NS base pointer */ 846 #define LFRCO_NS ((LFRCO_TypeDef *) LFRCO_NS_BASE) /**< LFRCO_NS base pointer */ 847 #define ULFRCO_NS ((ULFRCO_TypeDef *) ULFRCO_NS_BASE) /**< ULFRCO_NS base pointer */ 848 #define MSC_NS ((MSC_TypeDef *) MSC_NS_BASE) /**< MSC_NS base pointer */ 849 #define ICACHE0_NS ((ICACHE_TypeDef *) ICACHE0_NS_BASE) /**< ICACHE0_NS base pointer */ 850 #define PRS_NS ((PRS_TypeDef *) PRS_NS_BASE) /**< PRS_NS base pointer */ 851 #define GPIO_NS ((GPIO_TypeDef *) GPIO_NS_BASE) /**< GPIO_NS base pointer */ 852 #define LDMA_NS ((LDMA_TypeDef *) LDMA_NS_BASE) /**< LDMA_NS base pointer */ 853 #define LDMAXBAR_NS ((LDMAXBAR_TypeDef *) LDMAXBAR_NS_BASE) /**< LDMAXBAR_NS base pointer */ 854 #define TIMER0_NS ((TIMER_TypeDef *) TIMER0_NS_BASE) /**< TIMER0_NS base pointer */ 855 #define TIMER1_NS ((TIMER_TypeDef *) TIMER1_NS_BASE) /**< TIMER1_NS base pointer */ 856 #define TIMER2_NS ((TIMER_TypeDef *) TIMER2_NS_BASE) /**< TIMER2_NS base pointer */ 857 #define TIMER3_NS ((TIMER_TypeDef *) TIMER3_NS_BASE) /**< TIMER3_NS base pointer */ 858 #define TIMER4_NS ((TIMER_TypeDef *) TIMER4_NS_BASE) /**< TIMER4_NS base pointer */ 859 #define USART0_NS ((USART_TypeDef *) USART0_NS_BASE) /**< USART0_NS base pointer */ 860 #define USART1_NS ((USART_TypeDef *) USART1_NS_BASE) /**< USART1_NS base pointer */ 861 #define BURTC_NS ((BURTC_TypeDef *) BURTC_NS_BASE) /**< BURTC_NS base pointer */ 862 #define I2C1_NS ((I2C_TypeDef *) I2C1_NS_BASE) /**< I2C1_NS base pointer */ 863 #define SYSCFG_NS_CFGNS ((SYSCFG_CFGNS_TypeDef *) SYSCFG_NS_CFGNS_BASE) /**< SYSCFG_NS_CFGNS base pointer */ 864 #define SYSCFG_NS ((SYSCFG_TypeDef *) SYSCFG_NS_BASE) /**< SYSCFG_NS base pointer */ 865 #define BURAM_NS ((BURAM_TypeDef *) BURAM_NS_BASE) /**< BURAM_NS base pointer */ 866 #define GPCRC_NS ((GPCRC_TypeDef *) GPCRC_NS_BASE) /**< GPCRC_NS base pointer */ 867 #define DCDC_NS ((DCDC_TypeDef *) DCDC_NS_BASE) /**< DCDC_NS base pointer */ 868 #define PDM_NS ((PDM_TypeDef *) PDM_NS_BASE) /**< PDM_NS base pointer */ 869 #define RADIOAES_NS ((AES_TypeDef *) RADIOAES_NS_BASE) /**< RADIOAES_NS base pointer */ 870 #define SMU_NS ((SMU_TypeDef *) SMU_NS_BASE) /**< SMU_NS base pointer */ 871 #define SMU_NS_CFGNS ((SMU_CFGNS_TypeDef *) SMU_NS_CFGNS_BASE) /**< SMU_NS_CFGNS base pointer */ 872 #define RTCC_NS ((RTCC_TypeDef *) RTCC_NS_BASE) /**< RTCC_NS base pointer */ 873 #define LETIMER0_NS ((LETIMER_TypeDef *) LETIMER0_NS_BASE) /**< LETIMER0_NS base pointer */ 874 #define IADC0_NS ((IADC_TypeDef *) IADC0_NS_BASE) /**< IADC0_NS base pointer */ 875 #define I2C0_NS ((I2C_TypeDef *) I2C0_NS_BASE) /**< I2C0_NS base pointer */ 876 #define WDOG0_NS ((WDOG_TypeDef *) WDOG0_NS_BASE) /**< WDOG0_NS base pointer */ 877 #define EUART0_NS ((EUSART_TypeDef *) EUART0_NS_BASE) /**< EUART0_NS base pointer */ 878 #define CRYPTOACC_NS ((CRYPTOACC_TypeDef *) CRYPTOACC_NS_BASE) /**< CRYPTOACC_NS base pointer */ 879 #define CRYPTOACC_NS_RNGCTRL ((CRYPTOACC_RNGCTRL_TypeDef *) CRYPTOACC_NS_RNGCTRL_BASE) /**< CRYPTOACC_NS_RNGCTRL base pointer */ 880 #define CRYPTOACC_NS_PKCTRL ((CRYPTOACC_PKCTRL_TypeDef *) CRYPTOACC_NS_PKCTRL_BASE) /**< CRYPTOACC_NS_PKCTRL base pointer */ 881 #define PRORTC_NS ((RTCC_TypeDef *) PRORTC_NS_BASE) /**< PRORTC_NS base pointer */ 882 #define EMU ((EMU_TypeDef *) EMU_BASE) /**< EMU base pointer */ 883 #define CMU ((CMU_TypeDef *) CMU_BASE) /**< CMU base pointer */ 884 #define HFXO0 ((HFXO_TypeDef *) HFXO0_BASE) /**< HFXO0 base pointer */ 885 #define HFRCO0 ((HFRCO_TypeDef *) HFRCO0_BASE) /**< HFRCO0 base pointer */ 886 #define FSRCO ((FSRCO_TypeDef *) FSRCO_BASE) /**< FSRCO base pointer */ 887 #define DPLL0 ((DPLL_TypeDef *) DPLL0_BASE) /**< DPLL0 base pointer */ 888 #define LFXO ((LFXO_TypeDef *) LFXO_BASE) /**< LFXO base pointer */ 889 #define LFRCO ((LFRCO_TypeDef *) LFRCO_BASE) /**< LFRCO base pointer */ 890 #define ULFRCO ((ULFRCO_TypeDef *) ULFRCO_BASE) /**< ULFRCO base pointer */ 891 #define MSC ((MSC_TypeDef *) MSC_BASE) /**< MSC base pointer */ 892 #define ICACHE0 ((ICACHE_TypeDef *) ICACHE0_BASE) /**< ICACHE0 base pointer */ 893 #define PRS ((PRS_TypeDef *) PRS_BASE) /**< PRS base pointer */ 894 #define GPIO ((GPIO_TypeDef *) GPIO_BASE) /**< GPIO base pointer */ 895 #define LDMA ((LDMA_TypeDef *) LDMA_BASE) /**< LDMA base pointer */ 896 #define LDMAXBAR ((LDMAXBAR_TypeDef *) LDMAXBAR_BASE) /**< LDMAXBAR base pointer */ 897 #define TIMER0 ((TIMER_TypeDef *) TIMER0_BASE) /**< TIMER0 base pointer */ 898 #define TIMER1 ((TIMER_TypeDef *) TIMER1_BASE) /**< TIMER1 base pointer */ 899 #define TIMER2 ((TIMER_TypeDef *) TIMER2_BASE) /**< TIMER2 base pointer */ 900 #define TIMER3 ((TIMER_TypeDef *) TIMER3_BASE) /**< TIMER3 base pointer */ 901 #define TIMER4 ((TIMER_TypeDef *) TIMER4_BASE) /**< TIMER4 base pointer */ 902 #define USART0 ((USART_TypeDef *) USART0_BASE) /**< USART0 base pointer */ 903 #define USART1 ((USART_TypeDef *) USART1_BASE) /**< USART1 base pointer */ 904 #define BURTC ((BURTC_TypeDef *) BURTC_BASE) /**< BURTC base pointer */ 905 #define I2C1 ((I2C_TypeDef *) I2C1_BASE) /**< I2C1 base pointer */ 906 #define SYSCFG_CFGNS ((SYSCFG_CFGNS_TypeDef *) SYSCFG_CFGNS_BASE) /**< SYSCFG_CFGNS base pointer */ 907 #define SYSCFG ((SYSCFG_TypeDef *) SYSCFG_BASE) /**< SYSCFG base pointer */ 908 #define BURAM ((BURAM_TypeDef *) BURAM_BASE) /**< BURAM base pointer */ 909 #define GPCRC ((GPCRC_TypeDef *) GPCRC_BASE) /**< GPCRC base pointer */ 910 #define DCDC ((DCDC_TypeDef *) DCDC_BASE) /**< DCDC base pointer */ 911 #define PDM ((PDM_TypeDef *) PDM_BASE) /**< PDM base pointer */ 912 #define RADIOAES ((AES_TypeDef *) RADIOAES_BASE) /**< RADIOAES base pointer */ 913 #define SMU ((SMU_TypeDef *) SMU_BASE) /**< SMU base pointer */ 914 #define SMU_CFGNS ((SMU_CFGNS_TypeDef *) SMU_CFGNS_BASE) /**< SMU_CFGNS base pointer */ 915 #define RTCC ((RTCC_TypeDef *) RTCC_BASE) /**< RTCC base pointer */ 916 #define LETIMER0 ((LETIMER_TypeDef *) LETIMER0_BASE) /**< LETIMER0 base pointer */ 917 #define IADC0 ((IADC_TypeDef *) IADC0_BASE) /**< IADC0 base pointer */ 918 #define I2C0 ((I2C_TypeDef *) I2C0_BASE) /**< I2C0 base pointer */ 919 #define WDOG0 ((WDOG_TypeDef *) WDOG0_BASE) /**< WDOG0 base pointer */ 920 #define EUART0 ((EUSART_TypeDef *) EUART0_BASE) /**< EUART0 base pointer */ 921 #define CRYPTOACC ((CRYPTOACC_TypeDef *) CRYPTOACC_BASE) /**< CRYPTOACC base pointer */ 922 #define CRYPTOACC_RNGCTRL ((CRYPTOACC_RNGCTRL_TypeDef *) CRYPTOACC_RNGCTRL_BASE) /**< CRYPTOACC_RNGCTRL base pointer */ 923 #define CRYPTOACC_PKCTRL ((CRYPTOACC_PKCTRL_TypeDef *) CRYPTOACC_PKCTRL_BASE) /**< CRYPTOACC_PKCTRL base pointer */ 924 #define PRORTC ((RTCC_TypeDef *) PRORTC_BASE) /**< PRORTC base pointer */ 925 #define DEVINFO ((DEVINFO_TypeDef *) DEVINFO_BASE) /**< DEVINFO base pointer */ 926 /** @} End of group EFR32BG22C224F512GN32_Peripheral_Declaration */ 927 928 /**************************************************************************//** 929 * @defgroup EFR32BG22C224F512GN32_Peripheral_Parameters EFR32BG22C224F512GN32 Peripheral Parameters 930 * @{ 931 * @brief Device peripheral parameter values 932 *****************************************************************************/ 933 934 /* Common peripheral register block offsets. */ 935 #define PER_REG_BLOCK_SET_OFFSET 0x1000UL /**< Offset to SET register block */ 936 #define PER_REG_BLOCK_CLR_OFFSET 0x2000UL /**< Offset to CLEAR register block */ 937 #define PER_REG_BLOCK_TGL_OFFSET 0x3000UL /**< Offset to TOGGLE register block */ 938 #define MSC_CDA_PRESENT 0x1UL /**> */ 939 #define MSC_FDIO_WIDTH 0x40UL /**> None */ 940 #define MSC_FLASHADDRBITS 0x13UL /**> None */ 941 #define MSC_FLASHBLOCKADDRBITS 0x13UL /**> None */ 942 #define MSC_FLASH_BLOCK_INFO_PCOUNT 0xCUL /**> None */ 943 #define MSC_INFOADDRBITS 0x10UL /**> None */ 944 #define MSC_INFOBLOCKADDRBITS 0x10UL /**> None */ 945 #define MSC_INFO_PSIZE_BITS 0xCUL /**> None */ 946 #define MSC_MAIN_PSIZE_BITS 0xCUL /**> None */ 947 #define MSC_MTP_PRESENT 0x1UL /**> */ 948 #define MSC_REDUNDANCY 0x2UL /**> None */ 949 #define MSC_UD_IN_MTP_PAGE 0x0UL /**> */ 950 #define MSC_YADDRBITS 0x6UL /**> */ 951 #define SYSROM_WORDS 0x700UL /**> Number of words in ROM */ 952 #define SYSROM_ROM_SIZE_BYTES 0x1C00UL /**> Number of bytes in ROM */ 953 #define DMEM_BANK0_SIZE 0x6000UL /**> Bank0 Size */ 954 #define DMEM_BANK1_SIZE 0x2000UL /**> Bank1 Size */ 955 #define DMEM_BANK2_SIZE 0x0UL /**> Bank2 Size */ 956 #define DMEM_BANK3_SIZE 0x0UL /**> Bank3 Size */ 957 #define DMEM_BANK4_SIZE 0x0UL /**> Bank4 Size */ 958 #define DMEM_BANK5_SIZE 0x0UL /**> Bank5 Size */ 959 #define DMEM_BANK6_SIZE 0x0UL /**> Bank6 Size */ 960 #define DMEM_BANK7_SIZE 0x0UL /**> Bank7 Size */ 961 #define DMEM_NUM_BANKS 0x2UL /**> Number of Banks */ 962 #define DMEM_SIZE 0x8000UL /**> Total size */ 963 #define LFXO_NO_CTUNE 0x0UL /**> CTUNE Not Present */ 964 #define LFXO_CTUNE 0x1UL /**> CTUNE Present */ 965 #define ICACHE0_AHB_LITE 0x0UL /**> AHB Lite */ 966 #define ICACHE0_CACHEABLE_SIZE 0x200UL /**> Cache Size */ 967 #define ICACHE0_CACHEABLE_START 0x12UL /**> Cache Start */ 968 #define ICACHE0_DEFAULT_OFF 0x1UL /**> Default off */ 969 #define ICACHE0_FLASH_SIZE 0x80000UL /**> Flash size */ 970 #define ICACHE0_FLASH_START 0x0UL /**> Flash start */ 971 #define ICACHE0_LOOPCACHE_MEM_ADDR_BITS 0x3UL /**> Loopcache Memory Address bits */ 972 #define ICACHE0_LOOPCACHE_STICKINESS_BITS 0x4UL /**> Loopcache Stickiness bits */ 973 #define ICACHE0_PARITY_BITS 0x1UL /**> Use Parity */ 974 #define ICACHE0_PC_BITS 0x20UL /**> Performance Counter bits */ 975 #define ICACHE0_PIPE_STAGE 0x1UL /**> Pipeline Stage */ 976 #define ICACHE0_RAM_ADDR_BITS 0x0UL /**> RAM Address bits */ 977 #define ICACHE0_RAM_DATA_BITS 0x0UL /**> RAM Data bits */ 978 #define ICACHE0_SET_BITS 0x5UL /**> Set bits */ 979 #define ICACHE0_USE_HREADY_GATING 0x1UL /**> Use HREADY gating */ 980 #define ICACHE0_USE_IDLE_GATING 0x1UL /**> Use IDLE gating */ 981 #define ICACHE0_USE_LOOPCACHE 0x1UL /**> Use Loopcache */ 982 #define ICACHE0_WAY_BITS 0x1UL /**> Way bits */ 983 #define ICACHE0_WORDS_PER_BLOCK 0x0UL /**> Words Per Block */ 984 #define ICACHE0_WPB_BITS 0x1UL /**> Words Per Block bits */ 985 #define ICACHE0_WPL_BITS 0x3UL /**> Words Per Line bits */ 986 #define PRS_ASYNC_CH_NUM 0xCUL /**> None */ 987 #define PRS_PRSSEL_WIDTH 0x4UL /**> New Param */ 988 #define PRS_SPRSSEL_WIDTH 0x2UL /**> New Param */ 989 #define PRS_SYNC_CH_NUM 0x4UL /**> None */ 990 #define GPIO_MODE_WIDTH 0x4UL /**> Mode Width */ 991 #define GPIO_NUM_EM4_WU 0xCUL /**> New Param */ 992 #define GPIO_NUM_EVEN_PA 0x5UL /**> Num of even pins port A */ 993 #define GPIO_NUM_EVEN_PB 0x3UL /**> Num of even pins port B */ 994 #define GPIO_NUM_EVEN_PC 0x4UL /**> Num of even pins port C */ 995 #define GPIO_NUM_EVEN_PD 0x2UL /**> Num of even pins port D */ 996 #define GPIO_NUM_EXT_INT 0xCUL /**> New Param */ 997 #define GPIO_NUM_EXT_INT_L 0x8UL /**> New Param */ 998 #define GPIO_NUM_EXT_INT_U 0x4UL /**> New Param */ 999 #define GPIO_NUM_EXT_INT_U_ZERO 0x0UL /**> New Param */ 1000 #define GPIO_NUM_ODD_PA 0x4UL /**> Num of odd pins port A */ 1001 #define GPIO_NUM_ODD_PB 0x2UL /**> Num of odd pins port B */ 1002 #define GPIO_NUM_ODD_PC 0x4UL /**> Num of odd pins port C */ 1003 #define GPIO_NUM_ODD_PD 0x2UL /**> Num of odd pins port D */ 1004 #define GPIO_PINSEL_WIDTH 0x4UL /**> Route config pin select width */ 1005 #define GPIO_PORTSEL_WIDTH 0x2UL /**> Route config port select width */ 1006 #define GPIO_PORT_A_WIDTH 0x9UL /**> Port A Width */ 1007 #define GPIO_PORT_A_WIDTH_ZERO 0x0UL /**> Port A Width is Zero */ 1008 #define GPIO_PORT_A_WL 0x8UL /**> New Param */ 1009 #define GPIO_PORT_A_WU 0x1UL /**> New Param */ 1010 #define GPIO_PORT_A_WU_ZERO 0x0UL /**> New Param */ 1011 #define GPIO_PORT_B_WIDTH 0x5UL /**> Port B Width */ 1012 #define GPIO_PORT_B_WIDTH_ZERO 0x0UL /**> Port B Width is Zero */ 1013 #define GPIO_PORT_B_WL 0x5UL /**> New Param */ 1014 #define GPIO_PORT_B_WU 0x0UL /**> New Param */ 1015 #define GPIO_PORT_B_WU_ZERO 0x1UL /**> New Param */ 1016 #define GPIO_PORT_C_WIDTH 0x8UL /**> Port C Width */ 1017 #define GPIO_PORT_C_WIDTH_ZERO 0x0UL /**> Port C Width is Zero */ 1018 #define GPIO_PORT_C_WL 0x8UL /**> New Param */ 1019 #define GPIO_PORT_C_WU 0x0UL /**> New Param */ 1020 #define GPIO_PORT_C_WU_ZERO 0x1UL /**> New Param */ 1021 #define GPIO_PORT_D_WIDTH 0x4UL /**> Port D Width */ 1022 #define GPIO_PORT_D_WIDTH_ZERO 0x0UL /**> Port D Width is Zero */ 1023 #define GPIO_PORT_D_WL 0x4UL /**> New Param */ 1024 #define GPIO_PORT_D_WU 0x0UL /**> New Param */ 1025 #define GPIO_PORT_D_WU_ZERO 0x1UL /**> New Param */ 1026 #define GPIO_SLEWRATE_WIDTH 0x3UL /**> Slew Rate Width Param */ 1027 #define LDMA_CH_BITS 0x5UL /**> New Param */ 1028 #define LDMA_CH_NUM 0x8UL /**> New Param */ 1029 #define LDMA_FIFO_BITS 0x5UL /**> New Param */ 1030 #define LDMA_FIFO_DEPTH 0x10UL /**> New Param */ 1031 #define LDMAXBAR_CH_BITS 0x5UL /**> None */ 1032 #define LDMAXBAR_CH_NUM 0x8UL /**> None */ 1033 #define LDMAXBAR_SIGSEL_W 0x4UL /**> New Param */ 1034 #define LDMAXBAR_SOURCESEL_W 0x6UL /**> New Param */ 1035 #define TIMER0_CC_NUM 0x3UL /**> Number of Compare/Capture Channels */ 1036 #define TIMER0_CNTWIDTH 0x20UL /**> Counter Width */ 1037 #define TIMER0_DTI 0x1UL /**> Dead-time insertion enabled */ 1038 #define TIMER0_DTI_CC_NUM 0x3UL /**> Number of DTI Channels */ 1039 #define TIMER0_NO_DTI 0x0UL /**> */ 1040 #define TIMER1_CC_NUM 0x3UL /**> Number of Compare/Capture Channels */ 1041 #define TIMER1_CNTWIDTH 0x10UL /**> Counter Width */ 1042 #define TIMER1_DTI 0x1UL /**> Dead-time insertion enabled */ 1043 #define TIMER1_DTI_CC_NUM 0x3UL /**> Number of DTI Channels */ 1044 #define TIMER1_NO_DTI 0x0UL /**> */ 1045 #define TIMER2_CC_NUM 0x3UL /**> Number of Compare/Capture Channels */ 1046 #define TIMER2_CNTWIDTH 0x10UL /**> Counter Width */ 1047 #define TIMER2_DTI 0x1UL /**> Dead-time insertion enabled */ 1048 #define TIMER2_DTI_CC_NUM 0x3UL /**> Number of DTI Channels */ 1049 #define TIMER2_NO_DTI 0x0UL /**> */ 1050 #define TIMER3_CC_NUM 0x3UL /**> Number of Compare/Capture Channels */ 1051 #define TIMER3_CNTWIDTH 0x10UL /**> Counter Width */ 1052 #define TIMER3_DTI 0x1UL /**> Dead-time insertion enabled */ 1053 #define TIMER3_DTI_CC_NUM 0x3UL /**> Number of DTI Channels */ 1054 #define TIMER3_NO_DTI 0x0UL /**> */ 1055 #define TIMER4_CC_NUM 0x3UL /**> Number of Compare/Capture Channels */ 1056 #define TIMER4_CNTWIDTH 0x10UL /**> Counter Width */ 1057 #define TIMER4_DTI 0x1UL /**> Dead-time insertion enabled */ 1058 #define TIMER4_DTI_CC_NUM 0x3UL /**> Number of DTI Channels */ 1059 #define TIMER4_NO_DTI 0x0UL /**> */ 1060 #define USART0_AUTOTX_REG 0x1UL /**> None */ 1061 #define USART0_AUTOTX_REG_B 0x0UL /**> None */ 1062 #define USART0_AUTOTX_TRIGGER 0x1UL /**> None */ 1063 #define USART0_AUTOTX_TRIGGER_B 0x0UL /**> New Param */ 1064 #define USART0_CLK_PRS 0x1UL /**> None */ 1065 #define USART0_CLK_PRS_B 0x0UL /**> New Param */ 1066 #define USART0_FLOW_CONTROL 0x1UL /**> None */ 1067 #define USART0_FLOW_CONTROL_B 0x0UL /**> New Param */ 1068 #define USART0_I2S 0x1UL /**> None */ 1069 #define USART0_I2S_B 0x0UL /**> New Param */ 1070 #define USART0_IRDA_AVAILABLE 0x1UL /**> None */ 1071 #define USART0_IRDA_AVAILABLE_B 0x0UL /**> New Param */ 1072 #define USART0_MVDIS_FUNC 0x1UL /**> None */ 1073 #define USART0_MVDIS_FUNC_B 0x0UL /**> New Param */ 1074 #define USART0_RX_PRS 0x1UL /**> None */ 1075 #define USART0_RX_PRS_B 0x0UL /**> New Param */ 1076 #define USART0_SC_AVAILABLE 0x1UL /**> None */ 1077 #define USART0_SC_AVAILABLE_B 0x0UL /**> New Param */ 1078 #define USART0_SYNC_AVAILABLE 0x1UL /**> None */ 1079 #define USART0_SYNC_AVAILABLE_B 0x0UL /**> New Param */ 1080 #define USART0_SYNC_LATE_SAMPLE 0x1UL /**> None */ 1081 #define USART0_SYNC_LATE_SAMPLE_B 0x0UL /**> New Param */ 1082 #define USART0_TIMER 0x1UL /**> New Param */ 1083 #define USART0_TIMER_B 0x0UL /**> New Param */ 1084 #define USART1_AUTOTX_REG 0x1UL /**> None */ 1085 #define USART1_AUTOTX_REG_B 0x0UL /**> None */ 1086 #define USART1_AUTOTX_TRIGGER 0x1UL /**> None */ 1087 #define USART1_AUTOTX_TRIGGER_B 0x0UL /**> New Param */ 1088 #define USART1_CLK_PRS 0x1UL /**> None */ 1089 #define USART1_CLK_PRS_B 0x0UL /**> New Param */ 1090 #define USART1_FLOW_CONTROL 0x1UL /**> None */ 1091 #define USART1_FLOW_CONTROL_B 0x0UL /**> New Param */ 1092 #define USART1_I2S 0x1UL /**> None */ 1093 #define USART1_I2S_B 0x0UL /**> New Param */ 1094 #define USART1_IRDA_AVAILABLE 0x1UL /**> None */ 1095 #define USART1_IRDA_AVAILABLE_B 0x0UL /**> New Param */ 1096 #define USART1_MVDIS_FUNC 0x1UL /**> None */ 1097 #define USART1_MVDIS_FUNC_B 0x0UL /**> New Param */ 1098 #define USART1_RX_PRS 0x1UL /**> None */ 1099 #define USART1_RX_PRS_B 0x0UL /**> New Param */ 1100 #define USART1_SC_AVAILABLE 0x1UL /**> None */ 1101 #define USART1_SC_AVAILABLE_B 0x0UL /**> New Param */ 1102 #define USART1_SYNC_AVAILABLE 0x1UL /**> None */ 1103 #define USART1_SYNC_AVAILABLE_B 0x0UL /**> New Param */ 1104 #define USART1_SYNC_LATE_SAMPLE 0x1UL /**> None */ 1105 #define USART1_SYNC_LATE_SAMPLE_B 0x0UL /**> New Param */ 1106 #define USART1_TIMER 0x1UL /**> New Param */ 1107 #define USART1_TIMER_B 0x0UL /**> New Param */ 1108 #define BURTC_CNTWIDTH 0x20UL /**> None */ 1109 #define BURTC_PRECNT_WIDTH 0xFUL /**> */ 1110 #define I2C1_DELAY 0x7D0UL /**> Delay cell selection */ 1111 #define I2C1_DELAY_CHAIN_NUM 0x2UL /**> Number of delay chain */ 1112 #define SYSCFG_CHIP_FAMILY 0x34UL /**> CHIP Family */ 1113 #define SYSCFG_DEMODRAM_INST_COUNT 0x1UL /**> */ 1114 #define SYSCFG_FRCRAM_INST_COUNT 0x1UL /**> */ 1115 #define SYSCFG_RAM0_INST_COUNT 0x2UL /**> None */ 1116 #define SYSCFG_SEQRAM_INST_COUNT 0x2UL /**> None */ 1117 #define SYSCFG_SWINT_NUM 0x4UL /**> Software interupts */ 1118 #define DCDC_DCDCMODE_WIDTH 0x1UL /**> Mode register width */ 1119 #define DCDC_DRVSPEED_WIDTH 0x2UL /**> Drive Speed bitfield width */ 1120 #define DCDC_IPKVAL_WIDTH 0x4UL /**> Peak Current Setting bitfield Width */ 1121 #define DCDC_VCMPIBIAS_WIDTH 0x2UL /**> VCMP ibias bitfield width */ 1122 #define PDM_FIFO_LEN 0x4UL /**> New Param */ 1123 #define PDM_NUM_CH 0x2UL /**> None */ 1124 #define PDM_CH2_PRESENT_B 0x1UL /**> New Param */ 1125 #define PDM_CH3_PRESENT_B 0x1UL /**> New Param */ 1126 #define PDM_NUM_CH_WIDTH 0x1UL /**> New Param */ 1127 #define PDM_PIPELINE 0x0UL /**> None */ 1128 #define PDM_STEREO23_PRESENT_B 0x1UL /**> New Param */ 1129 #define RADIOAES_SIDECHANNEL_COUNTERMEASURES 0x0UL /**> Enable sidechannel counter measures */ 1130 #define SMU_NUM_BMPUS 0x5UL /**> Number of BMPUs */ 1131 #define SMU_NUM_PPU_PERIPHS 0x30UL /**> Number of PPU Peripherals */ 1132 #define SMU_NUM_PPU_PERIPHS_MOD_32 0x10UL /**> Number of PPU Peripherals (mod 32) */ 1133 #define SMU_NUM_PPU_PERIPHS_SUB_32 0x10UL /**> Number of PPU peripherals minus 32 */ 1134 #define SMU_PERIPHID_BITS 0x8UL /**> Bits used for Peripheral ID */ 1135 #define RTCC_CC_NUM 0x3UL /**> None */ 1136 #define LETIMER0_CNT_WIDTH 0x18UL /**> Count Width */ 1137 #define IADC0_CONFIGNUM 0x2UL /**> CONFIG */ 1138 #define IADC0_FULLRANGEUNIPOLAR 0x0UL /**> FULLRANGEUNIPOLAR */ 1139 #define IADC0_SCANBYTES 0x1UL /**> SCANBYTES */ 1140 #define IADC0_ENTRIES 0x10UL /**> ENTRIES */ 1141 #define I2C0_DELAY 0x3E8UL /**> Delay cell selection */ 1142 #define I2C0_DELAY_CHAIN_NUM 0x2UL /**> Number of delay chain */ 1143 #define WDOG0_PCNUM 0x2UL /**> None */ 1144 #define EUART0_USE_AS_LEUART 0x1UL /**> LEUART instace */ 1145 #define EUART0_USE_AS_UART 0x0UL /**> UART instance */ 1146 #define RDMEM_FRC_BANK0_SIZE 0x1000UL /**> FRC_RAM_BANK0_SIZE */ 1147 #define RDMEM_FRC_BANK1_SIZE 0x0UL /**> FRC_RAM_BANK1_SIZE */ 1148 #define RDMEM_FRC_BANK2_SIZE 0x0UL /**> FRC_RAM_BANK2_SIZE */ 1149 #define RDMEM_FRC_BANK3_SIZE 0x0UL /**> FRC_RAM_BANK3_SIZE */ 1150 #define RDMEM_FRC_BANK4_SIZE 0x0UL /**> FRC_RAM_BANK4_SIZE */ 1151 #define RDMEM_FRC_BANK5_SIZE 0x0UL /**> FRC_RAM_BANK5_SIZE */ 1152 #define RDMEM_FRC_BANK6_SIZE 0x0UL /**> FRC_RAM_BANK6_SIZE */ 1153 #define RDMEM_FRC_BANK7_SIZE 0x0UL /**> FRC_RAM_BANK7_SIZE */ 1154 #define RDMEM_FRC_NUM_BANK 0x1UL /**> FRC_NUM_BANK */ 1155 #define RDMEM_FRC_RAMADDRBITS 0xCUL /**> FRC RAM ADDRBITS */ 1156 #define RDMEM_FRC_RAMADDRMINBITS 0xCUL /**> FRC RAM address bits for one bank */ 1157 #define RDMEM_FRC_RAMECCADDR_WIDTH 0x20UL /**> FRC RAM ECC Address width */ 1158 #define RDMEM_FRC_RAM_BWE_WIDTH 0x27UL /**> FRCRAM BWE width */ 1159 #define RDMEM_FRC_RAM_DATA_WIDTH 0x27UL /**> FRC_RAM_DATA_WIDTH */ 1160 #define RDMEM_FRC_RAM_ECC_EN 0x1UL /**> FRC RAM ECCEN */ 1161 #define RDMEM_FRC_RAM_TOTAL_SIZE 0x1000UL /**> FRC_RAM_TOTAL_SIZE */ 1162 #define RDMEM_SEQ_BANK0_SIZE 0x2000UL /**> SEQ_RAM_BANK0_SIZE */ 1163 #define RDMEM_SEQ_BANK1_SIZE 0x2000UL /**> SEQ_RAM_BANK1_SIZE */ 1164 #define RDMEM_SEQ_BANK2_SIZE 0x0UL /**> SEQ_RAM_BANK2_SIZE */ 1165 #define RDMEM_SEQ_BANK3_SIZE 0x0UL /**> SEQ_RAM_BANK3_SIZE */ 1166 #define RDMEM_SEQ_BANK4_SIZE 0x0UL /**> SEQ_RAM_BANK4_SIZE */ 1167 #define RDMEM_SEQ_BANK5_SIZE 0x0UL /**> SEQ_RAM_BANK5_SIZE */ 1168 #define RDMEM_SEQ_BANK6_SIZE 0x0UL /**> SEQ_RAM_BANK6_SIZE */ 1169 #define RDMEM_SEQ_BANK7_SIZE 0x0UL /**> SEQ_RAM_BANK7_SIZE */ 1170 #define RDMEM_SEQ_NUM_BANK 0x2UL /**> SEQ_NUM_BANK */ 1171 #define RDMEM_SEQ_RAMADDRBITS 0xEUL /**> SEQ RAM ADDRBITS */ 1172 #define RDMEM_SEQ_RAMADDRMINBITS 0xDUL /**> SEQ RAM address bits for one bank */ 1173 #define RDMEM_SEQ_RAMECCADDR_WIDTH 0x20UL /**> SEQ RAM ECC Address width */ 1174 #define RDMEM_SEQ_RAM_BWE_WIDTH 0x27UL /**> SEQRAM BWE width */ 1175 #define RDMEM_SEQ_RAM_DATA_WIDTH 0x27UL /**> SEQ_RAM_DATA_WIDTH */ 1176 #define RDMEM_SEQ_RAM_ECC_EN 0x1UL /**> SEQ RAM ECCEN */ 1177 #define RDMEM_SEQ_RAM_TOTAL_SIZE 0x4000UL /**> SEQ_RAM_TOTAL_SIZE */ 1178 #define PRORTC_CC_NUM 0x2UL /**> None */ 1179 1180 /* Instance macros for I2C */ 1181 #define I2C(n) (((n) == 0) ? I2C0 \ 1182 : ((n) == 1) ? I2C1 \ 1183 : 0x0UL) 1184 #define I2C_NUM(ref) (((ref) == I2C0) ? 0 \ 1185 : ((ref) == I2C1) ? 1 \ 1186 : -1) 1187 #define I2C_DELAY(n) (((n) == 0) ? I2C0_DELAY \ 1188 : ((n) == 1) ? I2C1_DELAY \ 1189 : 0x0UL) 1190 #define I2C_DELAY_CHAIN_NUM(n) (((n) == 0) ? I2C0_DELAY_CHAIN_NUM \ 1191 : ((n) == 1) ? I2C1_DELAY_CHAIN_NUM \ 1192 : 0x0UL) 1193 1194 /* Instance macros for TIMER */ 1195 #define TIMER(n) (((n) == 0) ? TIMER0 \ 1196 : ((n) == 1) ? TIMER1 \ 1197 : ((n) == 2) ? TIMER2 \ 1198 : ((n) == 3) ? TIMER3 \ 1199 : ((n) == 4) ? TIMER4 \ 1200 : 0x0UL) 1201 #define TIMER_NUM(ref) (((ref) == TIMER0) ? 0 \ 1202 : ((ref) == TIMER1) ? 1 \ 1203 : ((ref) == TIMER2) ? 2 \ 1204 : ((ref) == TIMER3) ? 3 \ 1205 : ((ref) == TIMER4) ? 4 \ 1206 : -1) 1207 #define TIMER_CC_NUM(n) (((n) == 0) ? TIMER0_CC_NUM \ 1208 : ((n) == 1) ? TIMER1_CC_NUM \ 1209 : ((n) == 2) ? TIMER2_CC_NUM \ 1210 : ((n) == 3) ? TIMER3_CC_NUM \ 1211 : ((n) == 4) ? TIMER4_CC_NUM \ 1212 : 0x0UL) 1213 #define TIMER_CNTWIDTH(n) (((n) == 0) ? TIMER0_CNTWIDTH \ 1214 : ((n) == 1) ? TIMER1_CNTWIDTH \ 1215 : ((n) == 2) ? TIMER2_CNTWIDTH \ 1216 : ((n) == 3) ? TIMER3_CNTWIDTH \ 1217 : ((n) == 4) ? TIMER4_CNTWIDTH \ 1218 : 0x0UL) 1219 #define TIMER_DTI(n) (((n) == 0) ? TIMER0_DTI \ 1220 : ((n) == 1) ? TIMER1_DTI \ 1221 : ((n) == 2) ? TIMER2_DTI \ 1222 : ((n) == 3) ? TIMER3_DTI \ 1223 : ((n) == 4) ? TIMER4_DTI \ 1224 : 0x0UL) 1225 #define TIMER_DTI_CC_NUM(n) (((n) == 0) ? TIMER0_DTI_CC_NUM \ 1226 : ((n) == 1) ? TIMER1_DTI_CC_NUM \ 1227 : ((n) == 2) ? TIMER2_DTI_CC_NUM \ 1228 : ((n) == 3) ? TIMER3_DTI_CC_NUM \ 1229 : ((n) == 4) ? TIMER4_DTI_CC_NUM \ 1230 : 0x0UL) 1231 #define TIMER_NO_DTI(n) (((n) == 0) ? TIMER0_NO_DTI \ 1232 : ((n) == 1) ? TIMER1_NO_DTI \ 1233 : ((n) == 2) ? TIMER2_NO_DTI \ 1234 : ((n) == 3) ? TIMER3_NO_DTI \ 1235 : ((n) == 4) ? TIMER4_NO_DTI \ 1236 : 0x0UL) 1237 1238 /* Instance macros for USART */ 1239 #define USART(n) (((n) == 0) ? USART0 \ 1240 : ((n) == 1) ? USART1 \ 1241 : 0x0UL) 1242 #define USART_NUM(ref) (((ref) == USART0) ? 0 \ 1243 : ((ref) == USART1) ? 1 \ 1244 : -1) 1245 #define USART_AUTOTX_REG(n) (((n) == 0) ? USART0_AUTOTX_REG \ 1246 : ((n) == 1) ? USART1_AUTOTX_REG \ 1247 : 0x0UL) 1248 #define USART_AUTOTX_REG_B(n) (((n) == 0) ? USART0_AUTOTX_REG_B \ 1249 : ((n) == 1) ? USART1_AUTOTX_REG_B \ 1250 : 0x0UL) 1251 #define USART_AUTOTX_TRIGGER(n) (((n) == 0) ? USART0_AUTOTX_TRIGGER \ 1252 : ((n) == 1) ? USART1_AUTOTX_TRIGGER \ 1253 : 0x0UL) 1254 #define USART_AUTOTX_TRIGGER_B(n) (((n) == 0) ? USART0_AUTOTX_TRIGGER_B \ 1255 : ((n) == 1) ? USART1_AUTOTX_TRIGGER_B \ 1256 : 0x0UL) 1257 #define USART_CLK_PRS(n) (((n) == 0) ? USART0_CLK_PRS \ 1258 : ((n) == 1) ? USART1_CLK_PRS \ 1259 : 0x0UL) 1260 #define USART_CLK_PRS_B(n) (((n) == 0) ? USART0_CLK_PRS_B \ 1261 : ((n) == 1) ? USART1_CLK_PRS_B \ 1262 : 0x0UL) 1263 #define USART_FLOW_CONTROL(n) (((n) == 0) ? USART0_FLOW_CONTROL \ 1264 : ((n) == 1) ? USART1_FLOW_CONTROL \ 1265 : 0x0UL) 1266 #define USART_FLOW_CONTROL_B(n) (((n) == 0) ? USART0_FLOW_CONTROL_B \ 1267 : ((n) == 1) ? USART1_FLOW_CONTROL_B \ 1268 : 0x0UL) 1269 #define USART_I2S(n) (((n) == 0) ? USART0_I2S \ 1270 : ((n) == 1) ? USART1_I2S \ 1271 : 0x0UL) 1272 #define USART_I2S_B(n) (((n) == 0) ? USART0_I2S_B \ 1273 : ((n) == 1) ? USART1_I2S_B \ 1274 : 0x0UL) 1275 #define USART_IRDA_AVAILABLE(n) (((n) == 0) ? USART0_IRDA_AVAILABLE \ 1276 : ((n) == 1) ? USART1_IRDA_AVAILABLE \ 1277 : 0x0UL) 1278 #define USART_IRDA_AVAILABLE_B(n) (((n) == 0) ? USART0_IRDA_AVAILABLE_B \ 1279 : ((n) == 1) ? USART1_IRDA_AVAILABLE_B \ 1280 : 0x0UL) 1281 #define USART_MVDIS_FUNC(n) (((n) == 0) ? USART0_MVDIS_FUNC \ 1282 : ((n) == 1) ? USART1_MVDIS_FUNC \ 1283 : 0x0UL) 1284 #define USART_MVDIS_FUNC_B(n) (((n) == 0) ? USART0_MVDIS_FUNC_B \ 1285 : ((n) == 1) ? USART1_MVDIS_FUNC_B \ 1286 : 0x0UL) 1287 #define USART_RX_PRS(n) (((n) == 0) ? USART0_RX_PRS \ 1288 : ((n) == 1) ? USART1_RX_PRS \ 1289 : 0x0UL) 1290 #define USART_RX_PRS_B(n) (((n) == 0) ? USART0_RX_PRS_B \ 1291 : ((n) == 1) ? USART1_RX_PRS_B \ 1292 : 0x0UL) 1293 #define USART_SC_AVAILABLE(n) (((n) == 0) ? USART0_SC_AVAILABLE \ 1294 : ((n) == 1) ? USART1_SC_AVAILABLE \ 1295 : 0x0UL) 1296 #define USART_SC_AVAILABLE_B(n) (((n) == 0) ? USART0_SC_AVAILABLE_B \ 1297 : ((n) == 1) ? USART1_SC_AVAILABLE_B \ 1298 : 0x0UL) 1299 #define USART_SYNC_AVAILABLE(n) (((n) == 0) ? USART0_SYNC_AVAILABLE \ 1300 : ((n) == 1) ? USART1_SYNC_AVAILABLE \ 1301 : 0x0UL) 1302 #define USART_SYNC_AVAILABLE_B(n) (((n) == 0) ? USART0_SYNC_AVAILABLE_B \ 1303 : ((n) == 1) ? USART1_SYNC_AVAILABLE_B \ 1304 : 0x0UL) 1305 #define USART_SYNC_LATE_SAMPLE(n) (((n) == 0) ? USART0_SYNC_LATE_SAMPLE \ 1306 : ((n) == 1) ? USART1_SYNC_LATE_SAMPLE \ 1307 : 0x0UL) 1308 #define USART_SYNC_LATE_SAMPLE_B(n) (((n) == 0) ? USART0_SYNC_LATE_SAMPLE_B \ 1309 : ((n) == 1) ? USART1_SYNC_LATE_SAMPLE_B \ 1310 : 0x0UL) 1311 #define USART_TIMER(n) (((n) == 0) ? USART0_TIMER \ 1312 : ((n) == 1) ? USART1_TIMER \ 1313 : 0x0UL) 1314 #define USART_TIMER_B(n) (((n) == 0) ? USART0_TIMER_B \ 1315 : ((n) == 1) ? USART1_TIMER_B \ 1316 : 0x0UL) 1317 1318 /** @} End of group EFR32BG22C224F512GN32_Peripheral_Parameters */ 1319 1320 /** @} End of group EFR32BG22C224F512GN32 */ 1321 /** @}} End of group Parts */ 1322 1323 #ifdef __cplusplus 1324 } 1325 #endif 1326 #endif 1327