1 /* 2 * Copyright 1997-2016 Freescale Semiconductor, Inc. 3 * Copyright 2016-2021 NXP 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 8 /*! 9 * @file S32Z2_SCB.h 10 * @version 1.3 11 * @date 2021-07-14 12 * @brief Peripheral Access Layer for S32Z2_SCB 13 * 14 * This file contains register definitions and macros for easy access to their 15 * bit fields. 16 * 17 * This file assumes LITTLE endian system. 18 */ 19 20 /** 21 * @page misra_violations MISRA-C:2012 violations 22 * 23 * @section [global] 24 * Violates MISRA 2012 Advisory Rule 2.3, local typedef not referenced 25 * The SoC header defines typedef for all modules. 26 * 27 * @section [global] 28 * Violates MISRA 2012 Advisory Rule 2.5, local macro not referenced 29 * The SoC header defines macros for all modules and registers. 30 * 31 * @section [global] 32 * Violates MISRA 2012 Advisory Directive 4.9, Function-like macro 33 * These are generated macros used for accessing the bit-fields from registers. 34 * 35 * @section [global] 36 * Violates MISRA 2012 Required Rule 5.1, identifier clash 37 * The supported compilers use more than 31 significant characters for identifiers. 38 * 39 * @section [global] 40 * Violates MISRA 2012 Required Rule 5.2, identifier clash 41 * The supported compilers use more than 31 significant characters for identifiers. 42 * 43 * @section [global] 44 * Violates MISRA 2012 Required Rule 5.4, identifier clash 45 * The supported compilers use more than 31 significant characters for identifiers. 46 * 47 * @section [global] 48 * Violates MISRA 2012 Required Rule 5.5, identifier clash 49 * The supported compilers use more than 31 significant characters for identifiers. 50 * 51 * @section [global] 52 * Violates MISRA 2012 Required Rule 21.1, defined macro '__I' is reserved to the compiler 53 * This type qualifier is needed to ensure correct I/O access and addressing. 54 */ 55 56 57 /* Prevention from multiple including the same memory map */ 58 #if !defined(S32Z2_SCB_H_) /* Check if memory map has not been already included */ 59 #define S32Z2_SCB_H_ 60 61 #include "S32Z2_COMMON.h" 62 63 /* ---------------------------------------------------------------------------- 64 -- S32_SCB Peripheral Access Layer 65 ---------------------------------------------------------------------------- */ 66 67 /*! 68 * @addtogroup S32_SCB_Peripheral_Access_Layer S32_SCB Peripheral Access Layer 69 * @{ 70 */ 71 72 /** S32_SCB - Size of Registers Arrays */ 73 #define S32_SCB_ID_MMFR_COUNT 4u 74 #define S32_SCB_ID_ISAR_COUNT 5u 75 #define S32_SCB_PID_COUNT 8u 76 #define S32_SCB_CID_COUNT 4u 77 78 /** S32_SCB - Register Layout Typedef */ 79 typedef struct { 80 uint8_t RESERVED_0[8]; 81 __IO uint32_t ACTLR; /**< Auxiliary Control Register, offset: 0x8 */ 82 uint8_t RESERVED_1[3316]; 83 __I uint32_t CPUID; /**< CPUID Base Register, offset: 0xD00 */ 84 __IO uint32_t ICSR; /**< Interrupt Control and State Register, offset: 0xD04 */ 85 __IO uint32_t VTOR; /**< Vector Table Offset Register, offset: 0xD08 */ 86 __IO uint32_t AIRCR; /**< Application Interrupt and Reset Control Register, offset: 0xD0C */ 87 __IO uint32_t SCR; /**< System Control Register, offset: 0xD10 */ 88 __IO uint32_t CCR; /**< Configuration and Control Register, offset: 0xD14 */ 89 __IO uint32_t SHPR1; /**< System Handler Priority Register 1, offset: 0xD18 */ 90 __IO uint32_t SHPR2; /**< System Handler Priority Register 2, offset: 0xD1C */ 91 __IO uint32_t SHPR3; /**< System Handler Priority Register 3, offset: 0xD20 */ 92 __IO uint32_t SHCSR; /**< System Handler Control and State Register, offset: 0xD24 */ 93 __IO uint32_t CFSR; /**< Configurable Fault Status Registers, offset: 0xD28 */ 94 __IO uint32_t HFSR; /**< HardFault Status Register, offset: 0xD2C */ 95 __IO uint32_t DFSR; /**< Debug Fault Status Register, offset: 0xD30 */ 96 __IO uint32_t MMFAR; /**< Memanage Fault Address Register, offset: 0xD34 */ 97 __IO uint32_t BFAR; /**< BusFault Address Registerd, offset: 0xD38 */ 98 __IO uint32_t AFSR; /**< Auxiliary Fault Status Register, offset: 0xD3C */ 99 __I uint32_t ID_PFR0; /**< Processor Feature Register 0, offset: 0xD40 */ 100 __I uint32_t ID_PFR1; /**< Processor Feature Register 1, offset: 0xD44 */ 101 __I uint32_t ID_DFR0; /**< Debug Feature Register 0, offset: 0xD48 */ 102 __I uint32_t ID_AFR0; /**< Auxiliary Feature Register 0, offset: 0xD4C */ 103 __I uint32_t ID_MMFR[S32_SCB_ID_MMFR_COUNT]; /**< Memory Model Feature Register 0..Memory Model Feature Register 3, array offset: 0xD50, array step: 0x4 */ 104 __I uint32_t ID_ISAR[S32_SCB_ID_ISAR_COUNT]; /**< Instruction Set Attributes Register 0..Instruction Set Attributes Register 4, array offset: 0xD60, array step: 0x4 */ 105 uint8_t RESERVED_2[4]; 106 __I uint32_t CLIDR; /**< Cache Level ID Register, offset: 0xD78 */ 107 __I uint32_t CTR; /**< Cache Type Register, offset: 0xD7C */ 108 __I uint32_t CCSIDR; /**< Cache Size ID Register, offset: 0xD80 */ 109 __IO uint32_t CSSELR; /**< Cache Size Selection Register, offset: 0xD84 */ 110 __IO uint32_t CPACR; /**< Coprocessor Access Control Register, offset: 0xD88 */ 111 __IO uint32_t NSACR; /**< Non-secure Coprocessor Access Control Register, offset: 0xD8C */ 112 uint8_t RESERVED_3[368]; 113 __O uint32_t STIR; /**< Software Triggered Interrupt Register, offset: 0xF00 */ 114 uint8_t RESERVED_4[48]; 115 __IO uint32_t FPCCR; /**< Floating-point Context Control Register, offset: 0xF34 */ 116 __IO uint32_t FPCAR; /**< Floating-point Context Address Register, offset: 0xF38 */ 117 __IO uint32_t FPDSCR; /**< Floating-point Default Status Control Register, offset: 0xF3C */ 118 uint8_t RESERVED_5[16]; 119 __O uint32_t ICIALLU; /**< Instruction cache invalidate all to Point of Unification (PoU), offset: 0xF50 */ 120 uint8_t RESERVED_6[4]; 121 __O uint32_t ICIMVAU; /**< Instruction cache invalidate by address to PoU, offset: 0xF58 */ 122 __O uint32_t DCIMVAC; /**< Data cache invalidate by address to Point of Coherency (PoC), offset: 0xF5C */ 123 __O uint32_t DCISW; /**< Data cache invalidate by set/way, offset: 0xF60 */ 124 __O uint32_t DCCMVAU; /**< Data cache by address to PoU, offset: 0xF64 */ 125 __O uint32_t DCCMVAC; /**< Data cache clean by address to PoC, offset: 0xF68 */ 126 __O uint32_t DCCSW; /**< Data cache clean by set/way, offset: 0xF6C */ 127 __O uint32_t DCCIMVAC; /**< Data cache clean and invalidate by address to PoC, offset: 0xF70 */ 128 __O uint32_t DCCISW; /**< Data cache clean and invalidate by set/way, offset: 0xF74 */ 129 __I uint32_t BPIALL; /**< Not implemented - RAZ/WI, offset: 0xF78 */ 130 uint8_t RESERVED_7[20]; 131 __IO uint32_t ITCMCR; /**< Instruction Tightly-Coupled Memory Control Register, offset: 0xF90 */ 132 __IO uint32_t DTCMCR; /**< Data Tightly-Coupled Memory Control Register, offset: 0xF94 */ 133 __IO uint32_t AHBPCR; /**< AHBP control register, offset: 0xF98 */ 134 __IO uint32_t CACR; /**< L1 Cache Control Register, offset: 0xF9C */ 135 __IO uint32_t AHBSCR; /**< AHB Slave Control Register, offset: 0xFA0 */ 136 uint8_t RESERVED_8[4]; 137 __IO uint32_t ABFSR; /**< Asynchronous Bus Fault Status Register, offset: 0xFA8 */ 138 uint8_t RESERVED_9[4]; 139 __IO uint32_t IEBR0; /**< Instruction Error bank Register 0, offset: 0xFB0 */ 140 __IO uint32_t IEBR1h; /**< Instruction Error bank Register 1, offset: 0xFB4 */ 141 __IO uint32_t DEBR0h; /**< Data Error bank Register 0, offset: 0xFB8 */ 142 __IO uint32_t DEBR1h; /**< Data Error bank Register 1, offset: 0xFBC */ 143 uint8_t RESERVED_10[16]; 144 __I uint32_t PID[S32_SCB_PID_COUNT]; /**< Peripheral identification register 0..Peripheral identification register 7, array offset: 0xFD0, array step: 0x4 */ 145 __I uint32_t CID[S32_SCB_CID_COUNT]; /**< Component identification register 0..Component identification register 3, array offset: 0xFF0, array step: 0x4 */ 146 } S32_SCB_Type, *S32_SCB_MemMapPtr; 147 148 /** Number of instances of the S32_SCB module. */ 149 #define S32_SCB_INSTANCE_COUNT (1u) 150 151 /* S32_SCB - Peripheral instance base addresses */ 152 /** Peripheral S32_SCB base address */ 153 #define IP_S32_SCB_BASE (0xE000E000u) 154 /** Peripheral S32_SCB base pointer */ 155 #define S32_SCB ((S32_SCB_Type *)IP_S32_SCB_BASE) 156 /** Array initializer of S32_SCB peripheral base addresses */ 157 #define IP_S32_SCB_BASE_ADDRS { IP_S32_SCB_BASE } 158 /** Array initializer of S32_SCB peripheral base pointers */ 159 #define IP_S32_SCB_BASE_PTRS { IP_S32_SCB } 160 161 /* ---------------------------------------------------------------------------- 162 -- S32_SCB Register Masks 163 ---------------------------------------------------------------------------- */ 164 165 /*! 166 * @addtogroup S32_SCB_Register_Masks S32_SCB Register Masks 167 * @{ 168 */ 169 170 /* ACTLR Bit Fields */ 171 #define S32_SCB_ACTLR_ACTLR_MASK 0xFFFFFFFFu 172 #define S32_SCB_ACTLR_ACTLR_SHIFT 0u 173 #define S32_SCB_ACTLR_ACTLR_WIDTH 32u 174 #define S32_SCB_ACTLR_ACTLR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ACTLR_ACTLR_SHIFT))&S32_SCB_ACTLR_ACTLR_MASK) 175 /* CPUID Bit Fields */ 176 #define S32_SCB_CPUID_REVISION_MASK 0xFu 177 #define S32_SCB_CPUID_REVISION_SHIFT 0u 178 #define S32_SCB_CPUID_REVISION_WIDTH 4u 179 #define S32_SCB_CPUID_REVISION(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CPUID_REVISION_SHIFT))&S32_SCB_CPUID_REVISION_MASK) 180 #define S32_SCB_CPUID_PARTNO_MASK 0xFFF0u 181 #define S32_SCB_CPUID_PARTNO_SHIFT 4u 182 #define S32_SCB_CPUID_PARTNO_WIDTH 12u 183 #define S32_SCB_CPUID_PARTNO(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CPUID_PARTNO_SHIFT))&S32_SCB_CPUID_PARTNO_MASK) 184 #define S32_SCB_CPUID_VARIANT_MASK 0xF00000u 185 #define S32_SCB_CPUID_VARIANT_SHIFT 20u 186 #define S32_SCB_CPUID_VARIANT_WIDTH 4u 187 #define S32_SCB_CPUID_VARIANT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CPUID_VARIANT_SHIFT))&S32_SCB_CPUID_VARIANT_MASK) 188 #define S32_SCB_CPUID_IMPLEMENTER_MASK 0xFF000000u 189 #define S32_SCB_CPUID_IMPLEMENTER_SHIFT 24u 190 #define S32_SCB_CPUID_IMPLEMENTER_WIDTH 8u 191 #define S32_SCB_CPUID_IMPLEMENTER(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CPUID_IMPLEMENTER_SHIFT))&S32_SCB_CPUID_IMPLEMENTER_MASK) 192 /* ICSR Bit Fields */ 193 #define S32_SCB_ICSR_VECTACTIVE_MASK 0x1FFu 194 #define S32_SCB_ICSR_VECTACTIVE_SHIFT 0u 195 #define S32_SCB_ICSR_VECTACTIVE_WIDTH 9u 196 #define S32_SCB_ICSR_VECTACTIVE(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_VECTACTIVE_SHIFT))&S32_SCB_ICSR_VECTACTIVE_MASK) 197 #define S32_SCB_ICSR_RETTOBASE_MASK 0x800u 198 #define S32_SCB_ICSR_RETTOBASE_SHIFT 11u 199 #define S32_SCB_ICSR_RETTOBASE_WIDTH 1u 200 #define S32_SCB_ICSR_RETTOBASE(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_RETTOBASE_SHIFT))&S32_SCB_ICSR_RETTOBASE_MASK) 201 #define S32_SCB_ICSR_VECTPENDING_MASK 0x3F000u 202 #define S32_SCB_ICSR_VECTPENDING_SHIFT 12u 203 #define S32_SCB_ICSR_VECTPENDING_WIDTH 6u 204 #define S32_SCB_ICSR_VECTPENDING(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_VECTPENDING_SHIFT))&S32_SCB_ICSR_VECTPENDING_MASK) 205 #define S32_SCB_ICSR_ISRPENDING_MASK 0x400000u 206 #define S32_SCB_ICSR_ISRPENDING_SHIFT 22u 207 #define S32_SCB_ICSR_ISRPENDING_WIDTH 1u 208 #define S32_SCB_ICSR_ISRPENDING(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_ISRPENDING_SHIFT))&S32_SCB_ICSR_ISRPENDING_MASK) 209 #define S32_SCB_ICSR_ISRPREEMPT_MASK 0x800000u 210 #define S32_SCB_ICSR_ISRPREEMPT_SHIFT 23u 211 #define S32_SCB_ICSR_ISRPREEMPT_WIDTH 1u 212 #define S32_SCB_ICSR_ISRPREEMPT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_ISRPREEMPT_SHIFT))&S32_SCB_ICSR_ISRPREEMPT_MASK) 213 #define S32_SCB_ICSR_PENDSTCLR_MASK 0x2000000u 214 #define S32_SCB_ICSR_PENDSTCLR_SHIFT 25u 215 #define S32_SCB_ICSR_PENDSTCLR_WIDTH 1u 216 #define S32_SCB_ICSR_PENDSTCLR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_PENDSTCLR_SHIFT))&S32_SCB_ICSR_PENDSTCLR_MASK) 217 #define S32_SCB_ICSR_PENDSTSET_MASK 0x4000000u 218 #define S32_SCB_ICSR_PENDSTSET_SHIFT 26u 219 #define S32_SCB_ICSR_PENDSTSET_WIDTH 1u 220 #define S32_SCB_ICSR_PENDSTSET(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_PENDSTSET_SHIFT))&S32_SCB_ICSR_PENDSTSET_MASK) 221 #define S32_SCB_ICSR_PENDSVCLR_MASK 0x8000000u 222 #define S32_SCB_ICSR_PENDSVCLR_SHIFT 27u 223 #define S32_SCB_ICSR_PENDSVCLR_WIDTH 1u 224 #define S32_SCB_ICSR_PENDSVCLR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_PENDSVCLR_SHIFT))&S32_SCB_ICSR_PENDSVCLR_MASK) 225 #define S32_SCB_ICSR_PENDSVSET_MASK 0x10000000u 226 #define S32_SCB_ICSR_PENDSVSET_SHIFT 28u 227 #define S32_SCB_ICSR_PENDSVSET_WIDTH 1u 228 #define S32_SCB_ICSR_PENDSVSET(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_PENDSVSET_SHIFT))&S32_SCB_ICSR_PENDSVSET_MASK) 229 #define S32_SCB_ICSR_NMIPENDSET_MASK 0x80000000u 230 #define S32_SCB_ICSR_NMIPENDSET_SHIFT 31u 231 #define S32_SCB_ICSR_NMIPENDSET_WIDTH 1u 232 #define S32_SCB_ICSR_NMIPENDSET(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICSR_NMIPENDSET_SHIFT))&S32_SCB_ICSR_NMIPENDSET_MASK) 233 /* VTOR Bit Fields */ 234 #define S32_SCB_VTOR_TBLOFF_MASK 0xFFFFFF80u 235 #define S32_SCB_VTOR_TBLOFF_SHIFT 7u 236 #define S32_SCB_VTOR_TBLOFF_WIDTH 25u 237 #define S32_SCB_VTOR_TBLOFF(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_VTOR_TBLOFF_SHIFT))&S32_SCB_VTOR_TBLOFF_MASK) 238 /* AIRCR Bit Fields */ 239 #define S32_SCB_AIRCR_AIRCR_MASK 0xFFFFFFFFu 240 #define S32_SCB_AIRCR_AIRCR_SHIFT 0u 241 #define S32_SCB_AIRCR_AIRCR_WIDTH 32u 242 #define S32_SCB_AIRCR_AIRCR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_AIRCR_AIRCR_SHIFT))&S32_SCB_AIRCR_AIRCR_MASK) 243 /* SCR Bit Fields */ 244 #define S32_SCB_SCR_SLEEPONEXIT_MASK 0x2u 245 #define S32_SCB_SCR_SLEEPONEXIT_SHIFT 1u 246 #define S32_SCB_SCR_SLEEPONEXIT_WIDTH 1u 247 #define S32_SCB_SCR_SLEEPONEXIT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SCR_SLEEPONEXIT_SHIFT))&S32_SCB_SCR_SLEEPONEXIT_MASK) 248 #define S32_SCB_SCR_SLEEPDEEP_MASK 0x4u 249 #define S32_SCB_SCR_SLEEPDEEP_SHIFT 2u 250 #define S32_SCB_SCR_SLEEPDEEP_WIDTH 1u 251 #define S32_SCB_SCR_SLEEPDEEP(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SCR_SLEEPDEEP_SHIFT))&S32_SCB_SCR_SLEEPDEEP_MASK) 252 #define S32_SCB_SCR_SEVONPEND_MASK 0x10u 253 #define S32_SCB_SCR_SEVONPEND_SHIFT 4u 254 #define S32_SCB_SCR_SEVONPEND_WIDTH 1u 255 #define S32_SCB_SCR_SEVONPEND(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SCR_SEVONPEND_SHIFT))&S32_SCB_SCR_SEVONPEND_MASK) 256 /* CCR Bit Fields */ 257 #define S32_SCB_CCR_CCR_MASK 0xFFFFFFFFu 258 #define S32_SCB_CCR_CCR_SHIFT 0u 259 #define S32_SCB_CCR_CCR_WIDTH 32u 260 #define S32_SCB_CCR_CCR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CCR_CCR_SHIFT))&S32_SCB_CCR_CCR_MASK) 261 /* SHPR1 Bit Fields */ 262 #define S32_SCB_SHPR1_SHPR1_MASK 0xFFFFFFFFu 263 #define S32_SCB_SHPR1_SHPR1_SHIFT 0u 264 #define S32_SCB_SHPR1_SHPR1_WIDTH 32u 265 #define S32_SCB_SHPR1_SHPR1(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHPR1_SHPR1_SHIFT))&S32_SCB_SHPR1_SHPR1_MASK) 266 /* SHPR2 Bit Fields */ 267 #define S32_SCB_SHPR2_SHPR2_MASK 0xFFFFFFFFu 268 #define S32_SCB_SHPR2_SHPR2_SHIFT 0u 269 #define S32_SCB_SHPR2_SHPR2_WIDTH 32u 270 #define S32_SCB_SHPR2_SHPR2(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHPR2_SHPR2_SHIFT))&S32_SCB_SHPR2_SHPR2_MASK) 271 /* SHPR3 Bit Fields */ 272 #define S32_SCB_SHPR3_SHPR3_MASK 0xFFFFFFFFu 273 #define S32_SCB_SHPR3_SHPR3_SHIFT 0u 274 #define S32_SCB_SHPR3_SHPR3_WIDTH 32u 275 #define S32_SCB_SHPR3_SHPR3(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHPR3_SHPR3_SHIFT))&S32_SCB_SHPR3_SHPR3_MASK) 276 /* SHCSR Bit Fields */ 277 #define S32_SCB_SHCSR_MEMFAULTACT_MASK 0x1u 278 #define S32_SCB_SHCSR_MEMFAULTACT_SHIFT 0u 279 #define S32_SCB_SHCSR_MEMFAULTACT_WIDTH 1u 280 #define S32_SCB_SHCSR_MEMFAULTACT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_MEMFAULTACT_SHIFT))&S32_SCB_SHCSR_MEMFAULTACT_MASK) 281 #define S32_SCB_SHCSR_BUSFAULTACT_MASK 0x2u 282 #define S32_SCB_SHCSR_BUSFAULTACT_SHIFT 1u 283 #define S32_SCB_SHCSR_BUSFAULTACT_WIDTH 1u 284 #define S32_SCB_SHCSR_BUSFAULTACT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_BUSFAULTACT_SHIFT))&S32_SCB_SHCSR_BUSFAULTACT_MASK) 285 #define S32_SCB_SHCSR_USGFAULTACT_MASK 0x8u 286 #define S32_SCB_SHCSR_USGFAULTACT_SHIFT 3u 287 #define S32_SCB_SHCSR_USGFAULTACT_WIDTH 1u 288 #define S32_SCB_SHCSR_USGFAULTACT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_USGFAULTACT_SHIFT))&S32_SCB_SHCSR_USGFAULTACT_MASK) 289 #define S32_SCB_SHCSR_SVCALLACT_MASK 0x80u 290 #define S32_SCB_SHCSR_SVCALLACT_SHIFT 7u 291 #define S32_SCB_SHCSR_SVCALLACT_WIDTH 1u 292 #define S32_SCB_SHCSR_SVCALLACT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_SVCALLACT_SHIFT))&S32_SCB_SHCSR_SVCALLACT_MASK) 293 #define S32_SCB_SHCSR_MONITORACT_MASK 0x100u 294 #define S32_SCB_SHCSR_MONITORACT_SHIFT 8u 295 #define S32_SCB_SHCSR_MONITORACT_WIDTH 1u 296 #define S32_SCB_SHCSR_MONITORACT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_MONITORACT_SHIFT))&S32_SCB_SHCSR_MONITORACT_MASK) 297 #define S32_SCB_SHCSR_PENDSVACT_MASK 0x400u 298 #define S32_SCB_SHCSR_PENDSVACT_SHIFT 10u 299 #define S32_SCB_SHCSR_PENDSVACT_WIDTH 1u 300 #define S32_SCB_SHCSR_PENDSVACT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_PENDSVACT_SHIFT))&S32_SCB_SHCSR_PENDSVACT_MASK) 301 #define S32_SCB_SHCSR_SYSTICKACT_MASK 0x800u 302 #define S32_SCB_SHCSR_SYSTICKACT_SHIFT 11u 303 #define S32_SCB_SHCSR_SYSTICKACT_WIDTH 1u 304 #define S32_SCB_SHCSR_SYSTICKACT(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_SYSTICKACT_SHIFT))&S32_SCB_SHCSR_SYSTICKACT_MASK) 305 #define S32_SCB_SHCSR_USGFAULTPENDED_MASK 0x1000u 306 #define S32_SCB_SHCSR_USGFAULTPENDED_SHIFT 12u 307 #define S32_SCB_SHCSR_USGFAULTPENDED_WIDTH 1u 308 #define S32_SCB_SHCSR_USGFAULTPENDED(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_USGFAULTPENDED_SHIFT))&S32_SCB_SHCSR_USGFAULTPENDED_MASK) 309 #define S32_SCB_SHCSR_MEMFAULTPENDED_MASK 0x2000u 310 #define S32_SCB_SHCSR_MEMFAULTPENDED_SHIFT 13u 311 #define S32_SCB_SHCSR_MEMFAULTPENDED_WIDTH 1u 312 #define S32_SCB_SHCSR_MEMFAULTPENDED(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_MEMFAULTPENDED_SHIFT))&S32_SCB_SHCSR_MEMFAULTPENDED_MASK) 313 #define S32_SCB_SHCSR_BUSFAULTPENDED_MASK 0x4000u 314 #define S32_SCB_SHCSR_BUSFAULTPENDED_SHIFT 14u 315 #define S32_SCB_SHCSR_BUSFAULTPENDED_WIDTH 1u 316 #define S32_SCB_SHCSR_BUSFAULTPENDED(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_BUSFAULTPENDED_SHIFT))&S32_SCB_SHCSR_BUSFAULTPENDED_MASK) 317 #define S32_SCB_SHCSR_SVCALLPENDED_MASK 0x8000u 318 #define S32_SCB_SHCSR_SVCALLPENDED_SHIFT 15u 319 #define S32_SCB_SHCSR_SVCALLPENDED_WIDTH 1u 320 #define S32_SCB_SHCSR_SVCALLPENDED(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_SVCALLPENDED_SHIFT))&S32_SCB_SHCSR_SVCALLPENDED_MASK) 321 #define S32_SCB_SHCSR_MEMFAULTENA_MASK 0x10000u 322 #define S32_SCB_SHCSR_MEMFAULTENA_SHIFT 16u 323 #define S32_SCB_SHCSR_MEMFAULTENA_WIDTH 1u 324 #define S32_SCB_SHCSR_MEMFAULTENA(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_MEMFAULTENA_SHIFT))&S32_SCB_SHCSR_MEMFAULTENA_MASK) 325 #define S32_SCB_SHCSR_BUSFAULTENA_MASK 0x20000u 326 #define S32_SCB_SHCSR_BUSFAULTENA_SHIFT 17u 327 #define S32_SCB_SHCSR_BUSFAULTENA_WIDTH 1u 328 #define S32_SCB_SHCSR_BUSFAULTENA(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_BUSFAULTENA_SHIFT))&S32_SCB_SHCSR_BUSFAULTENA_MASK) 329 #define S32_SCB_SHCSR_USGFAULTENA_MASK 0x40000u 330 #define S32_SCB_SHCSR_USGFAULTENA_SHIFT 18u 331 #define S32_SCB_SHCSR_USGFAULTENA_WIDTH 1u 332 #define S32_SCB_SHCSR_USGFAULTENA(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_SHCSR_USGFAULTENA_SHIFT))&S32_SCB_SHCSR_USGFAULTENA_MASK) 333 /* CFSR Bit Fields */ 334 #define S32_SCB_CFSR_MMFSR_IACCVIOL_MASK 0x1u 335 #define S32_SCB_CFSR_MMFSR_IACCVIOL_SHIFT 0u 336 #define S32_SCB_CFSR_MMFSR_IACCVIOL_WIDTH 1u 337 #define S32_SCB_CFSR_MMFSR_IACCVIOL(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_MMFSR_IACCVIOL_SHIFT))&S32_SCB_CFSR_MMFSR_IACCVIOL_MASK) 338 #define S32_SCB_CFSR_MMFSR_DACCVIOL_MASK 0x2u 339 #define S32_SCB_CFSR_MMFSR_DACCVIOL_SHIFT 1u 340 #define S32_SCB_CFSR_MMFSR_DACCVIOL_WIDTH 1u 341 #define S32_SCB_CFSR_MMFSR_DACCVIOL(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_MMFSR_DACCVIOL_SHIFT))&S32_SCB_CFSR_MMFSR_DACCVIOL_MASK) 342 #define S32_SCB_CFSR_MMFSR_MUNSTKERR_MASK 0x8u 343 #define S32_SCB_CFSR_MMFSR_MUNSTKERR_SHIFT 3u 344 #define S32_SCB_CFSR_MMFSR_MUNSTKERR_WIDTH 1u 345 #define S32_SCB_CFSR_MMFSR_MUNSTKERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_MMFSR_MUNSTKERR_SHIFT))&S32_SCB_CFSR_MMFSR_MUNSTKERR_MASK) 346 #define S32_SCB_CFSR_MMFSR_MSTKERR_MASK 0x10u 347 #define S32_SCB_CFSR_MMFSR_MSTKERR_SHIFT 4u 348 #define S32_SCB_CFSR_MMFSR_MSTKERR_WIDTH 1u 349 #define S32_SCB_CFSR_MMFSR_MSTKERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_MMFSR_MSTKERR_SHIFT))&S32_SCB_CFSR_MMFSR_MSTKERR_MASK) 350 #define S32_SCB_CFSR_MMFSR_MLSPERR_MASK 0x20u 351 #define S32_SCB_CFSR_MMFSR_MLSPERR_SHIFT 5u 352 #define S32_SCB_CFSR_MMFSR_MLSPERR_WIDTH 1u 353 #define S32_SCB_CFSR_MMFSR_MLSPERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_MMFSR_MLSPERR_SHIFT))&S32_SCB_CFSR_MMFSR_MLSPERR_MASK) 354 #define S32_SCB_CFSR_MMFSR_MMARVALID_MASK 0x80u 355 #define S32_SCB_CFSR_MMFSR_MMARVALID_SHIFT 7u 356 #define S32_SCB_CFSR_MMFSR_MMARVALID_WIDTH 1u 357 #define S32_SCB_CFSR_MMFSR_MMARVALID(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_MMFSR_MMARVALID_SHIFT))&S32_SCB_CFSR_MMFSR_MMARVALID_MASK) 358 #define S32_SCB_CFSR_BFSR_IBUSERR_MASK 0x100u 359 #define S32_SCB_CFSR_BFSR_IBUSERR_SHIFT 8u 360 #define S32_SCB_CFSR_BFSR_IBUSERR_WIDTH 1u 361 #define S32_SCB_CFSR_BFSR_IBUSERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_BFSR_IBUSERR_SHIFT))&S32_SCB_CFSR_BFSR_IBUSERR_MASK) 362 #define S32_SCB_CFSR_BFSR_PRECISERR_MASK 0x200u 363 #define S32_SCB_CFSR_BFSR_PRECISERR_SHIFT 9u 364 #define S32_SCB_CFSR_BFSR_PRECISERR_WIDTH 1u 365 #define S32_SCB_CFSR_BFSR_PRECISERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_BFSR_PRECISERR_SHIFT))&S32_SCB_CFSR_BFSR_PRECISERR_MASK) 366 #define S32_SCB_CFSR_BFSR_IMPRECISERR_MASK 0x400u 367 #define S32_SCB_CFSR_BFSR_IMPRECISERR_SHIFT 10u 368 #define S32_SCB_CFSR_BFSR_IMPRECISERR_WIDTH 1u 369 #define S32_SCB_CFSR_BFSR_IMPRECISERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_BFSR_IMPRECISERR_SHIFT))&S32_SCB_CFSR_BFSR_IMPRECISERR_MASK) 370 #define S32_SCB_CFSR_BFSR_UNSTKERR_MASK 0x800u 371 #define S32_SCB_CFSR_BFSR_UNSTKERR_SHIFT 11u 372 #define S32_SCB_CFSR_BFSR_UNSTKERR_WIDTH 1u 373 #define S32_SCB_CFSR_BFSR_UNSTKERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_BFSR_UNSTKERR_SHIFT))&S32_SCB_CFSR_BFSR_UNSTKERR_MASK) 374 #define S32_SCB_CFSR_BFSR_STKERR_MASK 0x1000u 375 #define S32_SCB_CFSR_BFSR_STKERR_SHIFT 12u 376 #define S32_SCB_CFSR_BFSR_STKERR_WIDTH 1u 377 #define S32_SCB_CFSR_BFSR_STKERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_BFSR_STKERR_SHIFT))&S32_SCB_CFSR_BFSR_STKERR_MASK) 378 #define S32_SCB_CFSR_BFSR_LSPERR_MASK 0x2000u 379 #define S32_SCB_CFSR_BFSR_LSPERR_SHIFT 13u 380 #define S32_SCB_CFSR_BFSR_LSPERR_WIDTH 1u 381 #define S32_SCB_CFSR_BFSR_LSPERR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_BFSR_LSPERR_SHIFT))&S32_SCB_CFSR_BFSR_LSPERR_MASK) 382 #define S32_SCB_CFSR_BFSR_BFARVALID_MASK 0x8000u 383 #define S32_SCB_CFSR_BFSR_BFARVALID_SHIFT 15u 384 #define S32_SCB_CFSR_BFSR_BFARVALID_WIDTH 1u 385 #define S32_SCB_CFSR_BFSR_BFARVALID(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_BFSR_BFARVALID_SHIFT))&S32_SCB_CFSR_BFSR_BFARVALID_MASK) 386 #define S32_SCB_CFSR_UFSR_UNDEFINSTR_MASK 0x10000u 387 #define S32_SCB_CFSR_UFSR_UNDEFINSTR_SHIFT 16u 388 #define S32_SCB_CFSR_UFSR_UNDEFINSTR_WIDTH 1u 389 #define S32_SCB_CFSR_UFSR_UNDEFINSTR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_UFSR_UNDEFINSTR_SHIFT))&S32_SCB_CFSR_UFSR_UNDEFINSTR_MASK) 390 #define S32_SCB_CFSR_UFSR_INVSTATE_MASK 0x20000u 391 #define S32_SCB_CFSR_UFSR_INVSTATE_SHIFT 17u 392 #define S32_SCB_CFSR_UFSR_INVSTATE_WIDTH 1u 393 #define S32_SCB_CFSR_UFSR_INVSTATE(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_UFSR_INVSTATE_SHIFT))&S32_SCB_CFSR_UFSR_INVSTATE_MASK) 394 #define S32_SCB_CFSR_UFSR_INVPC_MASK 0x40000u 395 #define S32_SCB_CFSR_UFSR_INVPC_SHIFT 18u 396 #define S32_SCB_CFSR_UFSR_INVPC_WIDTH 1u 397 #define S32_SCB_CFSR_UFSR_INVPC(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_UFSR_INVPC_SHIFT))&S32_SCB_CFSR_UFSR_INVPC_MASK) 398 #define S32_SCB_CFSR_UFSR_NOCP_MASK 0x80000u 399 #define S32_SCB_CFSR_UFSR_NOCP_SHIFT 19u 400 #define S32_SCB_CFSR_UFSR_NOCP_WIDTH 1u 401 #define S32_SCB_CFSR_UFSR_NOCP(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_UFSR_NOCP_SHIFT))&S32_SCB_CFSR_UFSR_NOCP_MASK) 402 #define S32_SCB_CFSR_UFSR_UNALIGNED_MASK 0x1000000u 403 #define S32_SCB_CFSR_UFSR_UNALIGNED_SHIFT 24u 404 #define S32_SCB_CFSR_UFSR_UNALIGNED_WIDTH 1u 405 #define S32_SCB_CFSR_UFSR_UNALIGNED(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_UFSR_UNALIGNED_SHIFT))&S32_SCB_CFSR_UFSR_UNALIGNED_MASK) 406 #define S32_SCB_CFSR_UFSR_DIVBYZERO_MASK 0x2000000u 407 #define S32_SCB_CFSR_UFSR_DIVBYZERO_SHIFT 25u 408 #define S32_SCB_CFSR_UFSR_DIVBYZERO_WIDTH 1u 409 #define S32_SCB_CFSR_UFSR_DIVBYZERO(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CFSR_UFSR_DIVBYZERO_SHIFT))&S32_SCB_CFSR_UFSR_DIVBYZERO_MASK) 410 /* HFSR Bit Fields */ 411 #define S32_SCB_HFSR_HFSR_MASK 0xFFFFFFFFu 412 #define S32_SCB_HFSR_HFSR_SHIFT 0u 413 #define S32_SCB_HFSR_HFSR_WIDTH 32u 414 #define S32_SCB_HFSR_HFSR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_HFSR_HFSR_SHIFT))&S32_SCB_HFSR_HFSR_MASK) 415 /* DFSR Bit Fields */ 416 #define S32_SCB_DFSR_DFSR_MASK 0xFFFFFFFFu 417 #define S32_SCB_DFSR_DFSR_SHIFT 0u 418 #define S32_SCB_DFSR_DFSR_WIDTH 32u 419 #define S32_SCB_DFSR_DFSR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DFSR_DFSR_SHIFT))&S32_SCB_DFSR_DFSR_MASK) 420 /* MMFAR Bit Fields */ 421 #define S32_SCB_MMFAR_MMFAR_MASK 0xFFFFFFFFu 422 #define S32_SCB_MMFAR_MMFAR_SHIFT 0u 423 #define S32_SCB_MMFAR_MMFAR_WIDTH 32u 424 #define S32_SCB_MMFAR_MMFAR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_MMFAR_MMFAR_SHIFT))&S32_SCB_MMFAR_MMFAR_MASK) 425 /* BFAR Bit Fields */ 426 #define S32_SCB_BFAR_BFAR_MASK 0xFFFFFFFFu 427 #define S32_SCB_BFAR_BFAR_SHIFT 0u 428 #define S32_SCB_BFAR_BFAR_WIDTH 32u 429 #define S32_SCB_BFAR_BFAR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_BFAR_BFAR_SHIFT))&S32_SCB_BFAR_BFAR_MASK) 430 /* AFSR Bit Fields */ 431 #define S32_SCB_AFSR_AFSR_MASK 0xFFFFFFFFu 432 #define S32_SCB_AFSR_AFSR_SHIFT 0u 433 #define S32_SCB_AFSR_AFSR_WIDTH 32u 434 #define S32_SCB_AFSR_AFSR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_AFSR_AFSR_SHIFT))&S32_SCB_AFSR_AFSR_MASK) 435 /* ID_PFR0 Bit Fields */ 436 #define S32_SCB_ID_PFR0_ID_PFR0_MASK 0xFFFFFFFFu 437 #define S32_SCB_ID_PFR0_ID_PFR0_SHIFT 0u 438 #define S32_SCB_ID_PFR0_ID_PFR0_WIDTH 32u 439 #define S32_SCB_ID_PFR0_ID_PFR0(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_PFR0_ID_PFR0_SHIFT))&S32_SCB_ID_PFR0_ID_PFR0_MASK) 440 /* ID_PFR1 Bit Fields */ 441 #define S32_SCB_ID_PFR1_ID_PFR1_MASK 0xFFFFFFFFu 442 #define S32_SCB_ID_PFR1_ID_PFR1_SHIFT 0u 443 #define S32_SCB_ID_PFR1_ID_PFR1_WIDTH 32u 444 #define S32_SCB_ID_PFR1_ID_PFR1(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_PFR1_ID_PFR1_SHIFT))&S32_SCB_ID_PFR1_ID_PFR1_MASK) 445 /* ID_DFR0 Bit Fields */ 446 #define S32_SCB_ID_DFR0_ID_DFR0_MASK 0xFFFFFFFFu 447 #define S32_SCB_ID_DFR0_ID_DFR0_SHIFT 0u 448 #define S32_SCB_ID_DFR0_ID_DFR0_WIDTH 32u 449 #define S32_SCB_ID_DFR0_ID_DFR0(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_DFR0_ID_DFR0_SHIFT))&S32_SCB_ID_DFR0_ID_DFR0_MASK) 450 /* ID_AFR0 Bit Fields */ 451 #define S32_SCB_ID_AFR0_ID_AFR0_MASK 0xFFFFFFFFu 452 #define S32_SCB_ID_AFR0_ID_AFR0_SHIFT 0u 453 #define S32_SCB_ID_AFR0_ID_AFR0_WIDTH 32u 454 #define S32_SCB_ID_AFR0_ID_AFR0(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_AFR0_ID_AFR0_SHIFT))&S32_SCB_ID_AFR0_ID_AFR0_MASK) 455 /* ID_MMFR Bit Fields */ 456 #define S32_SCB_ID_MMFR_ID_MMFR0_MASK 0xFFFFFFFFu 457 #define S32_SCB_ID_MMFR_ID_MMFR0_SHIFT 0u 458 #define S32_SCB_ID_MMFR_ID_MMFR0_WIDTH 32u 459 #define S32_SCB_ID_MMFR_ID_MMFR0(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_MMFR_ID_MMFR0_SHIFT))&S32_SCB_ID_MMFR_ID_MMFR0_MASK) 460 #define S32_SCB_ID_MMFR_ID_MMFR1_MASK 0xFFFFFFFFu 461 #define S32_SCB_ID_MMFR_ID_MMFR1_SHIFT 0u 462 #define S32_SCB_ID_MMFR_ID_MMFR1_WIDTH 32u 463 #define S32_SCB_ID_MMFR_ID_MMFR1(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_MMFR_ID_MMFR1_SHIFT))&S32_SCB_ID_MMFR_ID_MMFR1_MASK) 464 #define S32_SCB_ID_MMFR_ID_MMFR2_MASK 0xFFFFFFFFu 465 #define S32_SCB_ID_MMFR_ID_MMFR2_SHIFT 0u 466 #define S32_SCB_ID_MMFR_ID_MMFR2_WIDTH 32u 467 #define S32_SCB_ID_MMFR_ID_MMFR2(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_MMFR_ID_MMFR2_SHIFT))&S32_SCB_ID_MMFR_ID_MMFR2_MASK) 468 #define S32_SCB_ID_MMFR_ID_MMFR3_MASK 0xFFFFFFFFu 469 #define S32_SCB_ID_MMFR_ID_MMFR3_SHIFT 0u 470 #define S32_SCB_ID_MMFR_ID_MMFR3_WIDTH 32u 471 #define S32_SCB_ID_MMFR_ID_MMFR3(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_MMFR_ID_MMFR3_SHIFT))&S32_SCB_ID_MMFR_ID_MMFR3_MASK) 472 /* ID_ISAR Bit Fields */ 473 #define S32_SCB_ID_ISAR_ID_ISAR0_MASK 0xFFFFFFFFu 474 #define S32_SCB_ID_ISAR_ID_ISAR0_SHIFT 0u 475 #define S32_SCB_ID_ISAR_ID_ISAR0_WIDTH 32u 476 #define S32_SCB_ID_ISAR_ID_ISAR0(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_ISAR_ID_ISAR0_SHIFT))&S32_SCB_ID_ISAR_ID_ISAR0_MASK) 477 #define S32_SCB_ID_ISAR_ID_ISAR1_MASK 0xFFFFFFFFu 478 #define S32_SCB_ID_ISAR_ID_ISAR1_SHIFT 0u 479 #define S32_SCB_ID_ISAR_ID_ISAR1_WIDTH 32u 480 #define S32_SCB_ID_ISAR_ID_ISAR1(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_ISAR_ID_ISAR1_SHIFT))&S32_SCB_ID_ISAR_ID_ISAR1_MASK) 481 #define S32_SCB_ID_ISAR_ID_ISAR2_MASK 0xFFFFFFFFu 482 #define S32_SCB_ID_ISAR_ID_ISAR2_SHIFT 0u 483 #define S32_SCB_ID_ISAR_ID_ISAR2_WIDTH 32u 484 #define S32_SCB_ID_ISAR_ID_ISAR2(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_ISAR_ID_ISAR2_SHIFT))&S32_SCB_ID_ISAR_ID_ISAR2_MASK) 485 #define S32_SCB_ID_ISAR_ID_ISAR3_MASK 0xFFFFFFFFu 486 #define S32_SCB_ID_ISAR_ID_ISAR3_SHIFT 0u 487 #define S32_SCB_ID_ISAR_ID_ISAR3_WIDTH 32u 488 #define S32_SCB_ID_ISAR_ID_ISAR3(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_ISAR_ID_ISAR3_SHIFT))&S32_SCB_ID_ISAR_ID_ISAR3_MASK) 489 #define S32_SCB_ID_ISAR_ID_ISAR4_MASK 0xFFFFFFFFu 490 #define S32_SCB_ID_ISAR_ID_ISAR4_SHIFT 0u 491 #define S32_SCB_ID_ISAR_ID_ISAR4_WIDTH 32u 492 #define S32_SCB_ID_ISAR_ID_ISAR4(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ID_ISAR_ID_ISAR4_SHIFT))&S32_SCB_ID_ISAR_ID_ISAR4_MASK) 493 /* CLIDR Bit Fields */ 494 #define S32_SCB_CLIDR_CLIDR_MASK 0xFFFFFFFFu 495 #define S32_SCB_CLIDR_CLIDR_SHIFT 0u 496 #define S32_SCB_CLIDR_CLIDR_WIDTH 32u 497 #define S32_SCB_CLIDR_CLIDR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CLIDR_CLIDR_SHIFT))&S32_SCB_CLIDR_CLIDR_MASK) 498 /* CTR Bit Fields */ 499 #define S32_SCB_CTR_CTR_MASK 0xFFFFFFFFu 500 #define S32_SCB_CTR_CTR_SHIFT 0u 501 #define S32_SCB_CTR_CTR_WIDTH 32u 502 #define S32_SCB_CTR_CTR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CTR_CTR_SHIFT))&S32_SCB_CTR_CTR_MASK) 503 /* CCSIDR Bit Fields */ 504 #define S32_SCB_CCSIDR_CCSIDR_MASK 0xFFFFFFFFu 505 #define S32_SCB_CCSIDR_CCSIDR_SHIFT 0u 506 #define S32_SCB_CCSIDR_CCSIDR_WIDTH 32u 507 #define S32_SCB_CCSIDR_CCSIDR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CCSIDR_CCSIDR_SHIFT))&S32_SCB_CCSIDR_CCSIDR_MASK) 508 /* CSSELR Bit Fields */ 509 #define S32_SCB_CSSELR_CSSELR_MASK 0xFFFFFFFFu 510 #define S32_SCB_CSSELR_CSSELR_SHIFT 0u 511 #define S32_SCB_CSSELR_CSSELR_WIDTH 32u 512 #define S32_SCB_CSSELR_CSSELR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CSSELR_CSSELR_SHIFT))&S32_SCB_CSSELR_CSSELR_MASK) 513 /* STIR Bit Fields */ 514 #define S32_SCB_STIR_STIR_MASK 0xFFFFFFFFu 515 #define S32_SCB_STIR_STIR_SHIFT 0u 516 #define S32_SCB_STIR_STIR_WIDTH 32u 517 #define S32_SCB_STIR_STIR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_STIR_STIR_SHIFT))&S32_SCB_STIR_STIR_MASK) 518 /* FPCCR Bit Fields */ 519 #define S32_SCB_FPCCR_FPCCR_MASK 0xFFFFFFFFu 520 #define S32_SCB_FPCCR_FPCCR_SHIFT 0u 521 #define S32_SCB_FPCCR_FPCCR_WIDTH 32u 522 #define S32_SCB_FPCCR_FPCCR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_FPCCR_FPCCR_SHIFT))&S32_SCB_FPCCR_FPCCR_MASK) 523 /* FPCAR Bit Fields */ 524 #define S32_SCB_FPCAR_FPCAR_MASK 0xFFFFFFFFu 525 #define S32_SCB_FPCAR_FPCAR_SHIFT 0u 526 #define S32_SCB_FPCAR_FPCAR_WIDTH 32u 527 #define S32_SCB_FPCAR_FPCAR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_FPCAR_FPCAR_SHIFT))&S32_SCB_FPCAR_FPCAR_MASK) 528 /* FPDSCR Bit Fields */ 529 #define S32_SCB_FPDSCR_FPDSCR_MASK 0xFFFFFFFFu 530 #define S32_SCB_FPDSCR_FPDSCR_SHIFT 0u 531 #define S32_SCB_FPDSCR_FPDSCR_WIDTH 32u 532 #define S32_SCB_FPDSCR_FPDSCR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_FPDSCR_FPDSCR_SHIFT))&S32_SCB_FPDSCR_FPDSCR_MASK) 533 /* ICIALLU Bit Fields */ 534 #define S32_SCB_ICIALLU_ICIALLU_MASK 0xFFFFFFFFu 535 #define S32_SCB_ICIALLU_ICIALLU_SHIFT 0u 536 #define S32_SCB_ICIALLU_ICIALLU_WIDTH 32u 537 #define S32_SCB_ICIALLU_ICIALLU(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICIALLU_ICIALLU_SHIFT))&S32_SCB_ICIALLU_ICIALLU_MASK) 538 /* ICIMVAU Bit Fields */ 539 #define S32_SCB_ICIMVAU_ICIMVAU_MASK 0xFFFFFFFFu 540 #define S32_SCB_ICIMVAU_ICIMVAU_SHIFT 0u 541 #define S32_SCB_ICIMVAU_ICIMVAU_WIDTH 32u 542 #define S32_SCB_ICIMVAU_ICIMVAU(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ICIMVAU_ICIMVAU_SHIFT))&S32_SCB_ICIMVAU_ICIMVAU_MASK) 543 /* DCIMVAC Bit Fields */ 544 #define S32_SCB_DCIMVAC_DCIMVAC_MASK 0xFFFFFFFFu 545 #define S32_SCB_DCIMVAC_DCIMVAC_SHIFT 0u 546 #define S32_SCB_DCIMVAC_DCIMVAC_WIDTH 32u 547 #define S32_SCB_DCIMVAC_DCIMVAC(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DCIMVAC_DCIMVAC_SHIFT))&S32_SCB_DCIMVAC_DCIMVAC_MASK) 548 /* DCISW Bit Fields */ 549 #define S32_SCB_DCISW_DCISW_MASK 0xFFFFFFFFu 550 #define S32_SCB_DCISW_DCISW_SHIFT 0u 551 #define S32_SCB_DCISW_DCISW_WIDTH 32u 552 #define S32_SCB_DCISW_DCISW(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DCISW_DCISW_SHIFT))&S32_SCB_DCISW_DCISW_MASK) 553 /* DCCMVAU Bit Fields */ 554 #define S32_SCB_DCCMVAU_DCCMVAU_MASK 0xFFFFFFFFu 555 #define S32_SCB_DCCMVAU_DCCMVAU_SHIFT 0u 556 #define S32_SCB_DCCMVAU_DCCMVAU_WIDTH 32u 557 #define S32_SCB_DCCMVAU_DCCMVAU(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DCCMVAU_DCCMVAU_SHIFT))&S32_SCB_DCCMVAU_DCCMVAU_MASK) 558 /* DCCMVAC Bit Fields */ 559 #define S32_SCB_DCCMVAC_DCCMVAC_MASK 0xFFFFFFFFu 560 #define S32_SCB_DCCMVAC_DCCMVAC_SHIFT 0u 561 #define S32_SCB_DCCMVAC_DCCMVAC_WIDTH 32u 562 #define S32_SCB_DCCMVAC_DCCMVAC(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DCCMVAC_DCCMVAC_SHIFT))&S32_SCB_DCCMVAC_DCCMVAC_MASK) 563 /* DCCSW Bit Fields */ 564 #define S32_SCB_DCCSW_DCCSW_MASK 0xFFFFFFFFu 565 #define S32_SCB_DCCSW_DCCSW_SHIFT 0u 566 #define S32_SCB_DCCSW_DCCSW_WIDTH 32u 567 #define S32_SCB_DCCSW_DCCSW(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DCCSW_DCCSW_SHIFT))&S32_SCB_DCCSW_DCCSW_MASK) 568 /* DCCIMVAC Bit Fields */ 569 #define S32_SCB_DCCIMVAC_DCCIMVAC_MASK 0xFFFFFFFFu 570 #define S32_SCB_DCCIMVAC_DCCIMVAC_SHIFT 0u 571 #define S32_SCB_DCCIMVAC_DCCIMVAC_WIDTH 32u 572 #define S32_SCB_DCCIMVAC_DCCIMVAC(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DCCIMVAC_DCCIMVAC_SHIFT))&S32_SCB_DCCIMVAC_DCCIMVAC_MASK) 573 /* DCCISW Bit Fields */ 574 #define S32_SCB_DCCISW_DCCISW_MASK 0xFFFFFFFFu 575 #define S32_SCB_DCCISW_DCCISW_SHIFT 0u 576 #define S32_SCB_DCCISW_DCCISW_WIDTH 32u 577 #define S32_SCB_DCCISW_DCCISW(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DCCISW_DCCISW_SHIFT))&S32_SCB_DCCISW_DCCISW_MASK) 578 /* BPIALL Bit Fields */ 579 #define S32_SCB_BPIALL_BPIALL_MASK 0xFFFFFFFFu 580 #define S32_SCB_BPIALL_BPIALL_SHIFT 0u 581 #define S32_SCB_BPIALL_BPIALL_WIDTH 32u 582 #define S32_SCB_BPIALL_BPIALL(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_BPIALL_BPIALL_SHIFT))&S32_SCB_BPIALL_BPIALL_MASK) 583 /* ITCMCR Bit Fields */ 584 #define S32_SCB_ITCMCR_ITCMCR_MASK 0xFFFFFFFFu 585 #define S32_SCB_ITCMCR_ITCMCR_SHIFT 0u 586 #define S32_SCB_ITCMCR_ITCMCR_WIDTH 32u 587 #define S32_SCB_ITCMCR_ITCMCR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ITCMCR_ITCMCR_SHIFT))&S32_SCB_ITCMCR_ITCMCR_MASK) 588 /* DTCMCR Bit Fields */ 589 #define S32_SCB_DTCMCR_DTCMCR_MASK 0xFFFFFFFFu 590 #define S32_SCB_DTCMCR_DTCMCR_SHIFT 0u 591 #define S32_SCB_DTCMCR_DTCMCR_WIDTH 32u 592 #define S32_SCB_DTCMCR_DTCMCR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DTCMCR_DTCMCR_SHIFT))&S32_SCB_DTCMCR_DTCMCR_MASK) 593 /* AHBPCR Bit Fields */ 594 #define S32_SCB_AHBPCR_AHBPCR_MASK 0xFFFFFFFFu 595 #define S32_SCB_AHBPCR_AHBPCR_SHIFT 0u 596 #define S32_SCB_AHBPCR_AHBPCR_WIDTH 32u 597 #define S32_SCB_AHBPCR_AHBPCR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_AHBPCR_AHBPCR_SHIFT))&S32_SCB_AHBPCR_AHBPCR_MASK) 598 /* CACR Bit Fields */ 599 #define S32_SCB_CACR_CACR_MASK 0xFFFFFFFFu 600 #define S32_SCB_CACR_CACR_SHIFT 0u 601 #define S32_SCB_CACR_CACR_WIDTH 32u 602 #define S32_SCB_CACR_CACR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CACR_CACR_SHIFT))&S32_SCB_CACR_CACR_MASK) 603 /* AHBSCR Bit Fields */ 604 #define S32_SCB_AHBSCR_AHBSCR_MASK 0xFFFFFFFFu 605 #define S32_SCB_AHBSCR_AHBSCR_SHIFT 0u 606 #define S32_SCB_AHBSCR_AHBSCR_WIDTH 32u 607 #define S32_SCB_AHBSCR_AHBSCR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_AHBSCR_AHBSCR_SHIFT))&S32_SCB_AHBSCR_AHBSCR_MASK) 608 /* ABFSR Bit Fields */ 609 #define S32_SCB_ABFSR_ABFSR_MASK 0xFFFFFFFFu 610 #define S32_SCB_ABFSR_ABFSR_SHIFT 0u 611 #define S32_SCB_ABFSR_ABFSR_WIDTH 32u 612 #define S32_SCB_ABFSR_ABFSR(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_ABFSR_ABFSR_SHIFT))&S32_SCB_ABFSR_ABFSR_MASK) 613 /* IEBR0 Bit Fields */ 614 #define S32_SCB_IEBR0_IEBR0_MASK 0xFFFFFFFFu 615 #define S32_SCB_IEBR0_IEBR0_SHIFT 0u 616 #define S32_SCB_IEBR0_IEBR0_WIDTH 32u 617 #define S32_SCB_IEBR0_IEBR0(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_IEBR0_IEBR0_SHIFT))&S32_SCB_IEBR0_IEBR0_MASK) 618 /* IEBR1h Bit Fields */ 619 #define S32_SCB_IEBR1h_IEBR1h_MASK 0xFFFFFFFFu 620 #define S32_SCB_IEBR1h_IEBR1h_SHIFT 0u 621 #define S32_SCB_IEBR1h_IEBR1h_WIDTH 32u 622 #define S32_SCB_IEBR1h_IEBR1h(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_IEBR1h_IEBR1h_SHIFT))&S32_SCB_IEBR1h_IEBR1h_MASK) 623 /* DEBR0h Bit Fields */ 624 #define S32_SCB_DEBR0h_DEBR0h_MASK 0xFFFFFFFFu 625 #define S32_SCB_DEBR0h_DEBR0h_SHIFT 0u 626 #define S32_SCB_DEBR0h_DEBR0h_WIDTH 32u 627 #define S32_SCB_DEBR0h_DEBR0h(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DEBR0h_DEBR0h_SHIFT))&S32_SCB_DEBR0h_DEBR0h_MASK) 628 /* DEBR1h Bit Fields */ 629 #define S32_SCB_DEBR1h_DEBR1h_MASK 0xFFFFFFFFu 630 #define S32_SCB_DEBR1h_DEBR1h_SHIFT 0u 631 #define S32_SCB_DEBR1h_DEBR1h_WIDTH 32u 632 #define S32_SCB_DEBR1h_DEBR1h(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_DEBR1h_DEBR1h_SHIFT))&S32_SCB_DEBR1h_DEBR1h_MASK) 633 /* PID Bit Fields */ 634 #define S32_SCB_PID_PID0_MASK 0xFFFFFFFFu 635 #define S32_SCB_PID_PID0_SHIFT 0u 636 #define S32_SCB_PID_PID0_WIDTH 32u 637 #define S32_SCB_PID_PID0(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_PID_PID0_SHIFT))&S32_SCB_PID_PID0_MASK) 638 #define S32_SCB_PID_PID1_MASK 0xFFFFFFFFu 639 #define S32_SCB_PID_PID1_SHIFT 0u 640 #define S32_SCB_PID_PID1_WIDTH 32u 641 #define S32_SCB_PID_PID1(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_PID_PID1_SHIFT))&S32_SCB_PID_PID1_MASK) 642 #define S32_SCB_PID_PID2_MASK 0xFFFFFFFFu 643 #define S32_SCB_PID_PID2_SHIFT 0u 644 #define S32_SCB_PID_PID2_WIDTH 32u 645 #define S32_SCB_PID_PID2(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_PID_PID2_SHIFT))&S32_SCB_PID_PID2_MASK) 646 #define S32_SCB_PID_PID3_MASK 0xFFFFFFFFu 647 #define S32_SCB_PID_PID3_SHIFT 0u 648 #define S32_SCB_PID_PID3_WIDTH 32u 649 #define S32_SCB_PID_PID3(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_PID_PID3_SHIFT))&S32_SCB_PID_PID3_MASK) 650 #define S32_SCB_PID_PID4_MASK 0xFFFFFFFFu 651 #define S32_SCB_PID_PID4_SHIFT 0u 652 #define S32_SCB_PID_PID4_WIDTH 32u 653 #define S32_SCB_PID_PID4(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_PID_PID4_SHIFT))&S32_SCB_PID_PID4_MASK) 654 #define S32_SCB_PID_PID5_MASK 0xFFFFFFFFu 655 #define S32_SCB_PID_PID5_SHIFT 0u 656 #define S32_SCB_PID_PID5_WIDTH 32u 657 #define S32_SCB_PID_PID5(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_PID_PID5_SHIFT))&S32_SCB_PID_PID5_MASK) 658 #define S32_SCB_PID_PID6_MASK 0xFFFFFFFFu 659 #define S32_SCB_PID_PID6_SHIFT 0u 660 #define S32_SCB_PID_PID6_WIDTH 32u 661 #define S32_SCB_PID_PID6(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_PID_PID6_SHIFT))&S32_SCB_PID_PID6_MASK) 662 #define S32_SCB_PID_PID7_MASK 0xFFFFFFFFu 663 #define S32_SCB_PID_PID7_SHIFT 0u 664 #define S32_SCB_PID_PID7_WIDTH 32u 665 #define S32_SCB_PID_PID7(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_PID_PID7_SHIFT))&S32_SCB_PID_PID7_MASK) 666 /* CID Bit Fields */ 667 #define S32_SCB_CID_CID0_MASK 0xFFFFFFFFu 668 #define S32_SCB_CID_CID0_SHIFT 0u 669 #define S32_SCB_CID_CID0_WIDTH 32u 670 #define S32_SCB_CID_CID0(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CID_CID0_SHIFT))&S32_SCB_CID_CID0_MASK) 671 #define S32_SCB_CID_CID1_MASK 0xFFFFFFFFu 672 #define S32_SCB_CID_CID1_SHIFT 0u 673 #define S32_SCB_CID_CID1_WIDTH 32u 674 #define S32_SCB_CID_CID1(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CID_CID1_SHIFT))&S32_SCB_CID_CID1_MASK) 675 #define S32_SCB_CID_CID2_MASK 0xFFFFFFFFu 676 #define S32_SCB_CID_CID2_SHIFT 0u 677 #define S32_SCB_CID_CID2_WIDTH 32u 678 #define S32_SCB_CID_CID2(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CID_CID2_SHIFT))&S32_SCB_CID_CID2_MASK) 679 #define S32_SCB_CID_CID3_MASK 0xFFFFFFFFu 680 #define S32_SCB_CID_CID3_SHIFT 0u 681 #define S32_SCB_CID_CID3_WIDTH 32u 682 #define S32_SCB_CID_CID3(x) (((uint32_t)(((uint32_t)(x))<<S32_SCB_CID_CID3_SHIFT))&S32_SCB_CID_CID3_MASK) 683 684 /*! 685 * @} 686 */ /* end of group S32_SCB_Register_Masks */ 687 688 /*! 689 * @} 690 */ /* end of group S32_SCB_Peripheral_Access_Layer */ 691 692 #endif /* #if !defined(S32Z2_SCB_H_) */ 693