1 /* 2 ** ################################################################### 3 ** Processor: MKM34Z128ACLL5 4 ** Compilers: Freescale C/C++ for Embedded ARM 5 ** GNU C Compiler 6 ** IAR ANSI C/C++ Compiler for ARM 7 ** Keil ARM C/C++ Compiler 8 ** MCUXpresso Compiler 9 ** 10 ** Reference manual: MKMxxZxxACxx5RM, Rev. 2, 10/2017 11 ** Version: rev. 1.0, 2014-07-22 12 ** Build: b210422 13 ** 14 ** Abstract: 15 ** CMSIS Peripheral Access Layer for MKM34ZA5 16 ** 17 ** Copyright 1997-2016 Freescale Semiconductor, Inc. 18 ** Copyright 2016-2021 NXP 19 ** All rights reserved. 20 ** 21 ** SPDX-License-Identifier: BSD-3-Clause 22 ** 23 ** http: www.nxp.com 24 ** mail: support@nxp.com 25 ** 26 ** Revisions: 27 ** - rev. 1.0 (2014-07-22) 28 ** Initial version. 29 ** 30 ** ################################################################### 31 */ 32 33 /*! 34 * @file MKM34ZA5.h 35 * @version 1.0 36 * @date 2014-07-22 37 * @brief CMSIS Peripheral Access Layer for MKM34ZA5 38 * 39 * CMSIS Peripheral Access Layer for MKM34ZA5 40 */ 41 42 #ifndef _MKM34ZA5_H_ 43 #define _MKM34ZA5_H_ /**< Symbol preventing repeated inclusion */ 44 45 /** Memory map major version (memory maps with equal major version number are 46 * compatible) */ 47 #define MCU_MEM_MAP_VERSION 0x0100U 48 /** Memory map minor version */ 49 #define MCU_MEM_MAP_VERSION_MINOR 0x0000U 50 51 52 /* ---------------------------------------------------------------------------- 53 -- Interrupt vector numbers 54 ---------------------------------------------------------------------------- */ 55 56 /*! 57 * @addtogroup Interrupt_vector_numbers Interrupt vector numbers 58 * @{ 59 */ 60 61 /** Interrupt Number Definitions */ 62 #define NUMBER_OF_INT_VECTORS 48 /**< Number of interrupts in the Vector table */ 63 64 typedef enum IRQn { 65 /* Auxiliary constants */ 66 NotAvail_IRQn = -128, /**< Not available device specific interrupt */ 67 68 /* Core interrupts */ 69 NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */ 70 HardFault_IRQn = -13, /**< Cortex-M0 SV Hard Fault Interrupt */ 71 SVCall_IRQn = -5, /**< Cortex-M0 SV Call Interrupt */ 72 PendSV_IRQn = -2, /**< Cortex-M0 Pend SV Interrupt */ 73 SysTick_IRQn = -1, /**< Cortex-M0 System Tick Interrupt */ 74 75 /* Device specific interrupts */ 76 DMA0_IRQn = 0, /**< DMA channel 0 transfer complete */ 77 DMA1_IRQn = 1, /**< DMA channel 1 transfer complete */ 78 DMA2_IRQn = 2, /**< DMA channel 2 transfer complete */ 79 DMA3_IRQn = 3, /**< DMA channel 3 transfer complete */ 80 SPI0_IRQn = 4, /**< SPI0 ORed interrupt */ 81 SPI1_IRQn = 5, /**< SPI1 ORed interrupt */ 82 PMC_IRQn = 6, /**< Low-voltage detect, low-voltage warning */ 83 TMR0_IRQn = 7, /**< Quad Timer Channel 0 */ 84 TMR1_IRQn = 8, /**< Quad Timer Channel 1 */ 85 TMR2_IRQn = 9, /**< Quad Timer Channel 2 */ 86 TMR3_IRQn = 10, /**< Quad Timer Channel 3 */ 87 PIT0_PIT1_IRQn = 11, /**< PIT0/PIT1 ORed interrupt */ 88 LLWU_IRQn = 12, /**< Low Leakage Wakeup */ 89 FTFA_IRQn = 13, /**< Command complete and read collision */ 90 CMP0_CMP1_IRQn = 14, /**< CMP0/CMP1 ORed interrupt */ 91 LCD_IRQn = 15, /**< LCD interrupt */ 92 ADC_IRQn = 16, /**< ADC interrupt */ 93 PTx_IRQn = 17, /**< Single interrupt vector for GPIOA,GPIOB,GPIOC,GPIOD,GPIOE,GPIOF,GPIOG,GPIOH,GPIOI */ 94 RNGA_IRQn = 18, /**< RNGA interrupt */ 95 UART0_UART1_IRQn = 19, /**< UART0/UART1 ORed interrupt */ 96 UART2_UART3_IRQn = 20, /**< UART2/UART3 ORed interrupt */ 97 AFE_CH0_IRQn = 21, /**< AFE Channel 0 */ 98 AFE_CH1_IRQn = 22, /**< AFE Channel 1 */ 99 AFE_CH2_IRQn = 23, /**< AFE Channel 2 */ 100 AFE_CH3_IRQn = 24, /**< AFE Channel 3 */ 101 RTC_IRQn = 25, /**< IRTC interrupt */ 102 I2C0_I2C1_IRQn = 26, /**< I2C0/I2C1 ORed interrupt */ 103 EWM_IRQn = 27, /**< External Watchdog Monitor */ 104 MCG_IRQn = 28, /**< MCG interrupt */ 105 WDOG_IRQn = 29, /**< WDOG ORed interrupt */ 106 LPTMR_IRQn = 30, /**< LPTMR interrupt */ 107 XBAR_IRQn = 31 /**< XBAR interrupt */ 108 } IRQn_Type; 109 110 /*! 111 * @} 112 */ /* end of group Interrupt_vector_numbers */ 113 114 115 /* ---------------------------------------------------------------------------- 116 -- Cortex M0 Core Configuration 117 ---------------------------------------------------------------------------- */ 118 119 /*! 120 * @addtogroup Cortex_Core_Configuration Cortex M0 Core Configuration 121 * @{ 122 */ 123 124 #define __CM0PLUS_REV 0x0000 /**< Core revision r0p0 */ 125 #define __MPU_PRESENT 0 /**< Defines if an MPU is present or not */ 126 #define __VTOR_PRESENT 1 /**< Defines if VTOR is present or not */ 127 #define __NVIC_PRIO_BITS 2 /**< Number of priority bits implemented in the NVIC */ 128 #define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */ 129 130 #include "core_cm0plus.h" /* Core Peripheral Access Layer */ 131 #include "system_MKM34ZA5.h" /* Device specific configuration file */ 132 133 /*! 134 * @} 135 */ /* end of group Cortex_Core_Configuration */ 136 137 138 /* ---------------------------------------------------------------------------- 139 -- Mapping Information 140 ---------------------------------------------------------------------------- */ 141 142 /*! 143 * @addtogroup Mapping_Information Mapping Information 144 * @{ 145 */ 146 147 /** Mapping Information */ 148 /*! 149 * @addtogroup edma_request 150 * @{ 151 */ 152 153 /******************************************************************************* 154 * Definitions 155 ******************************************************************************/ 156 157 /*! 158 * @brief Structure for the DMA hardware request 159 * 160 * Defines the structure for the DMA hardware request collections. The user can configure the 161 * hardware request into DMAMUX to trigger the DMA transfer accordingly. The index 162 * of the hardware request varies according to the to SoC. 163 */ 164 typedef enum _dma_request_source 165 { 166 kDmaRequestMux0Disable = 0|0x100U, /**< DMAMUX TriggerDisabled */ 167 kDmaRequestMux0SPI0Tx = 1|0x100U, /**< SPI0 Transmit (DMAMUX0) */ 168 kDmaRequestMux0SPI0Rx = 2|0x100U, /**< SPI0 Receive (DMAMUX0) */ 169 kDmaRequestMux0UART0Tx = 3|0x100U, /**< UART0 Transmit (DMAMUX0) */ 170 kDmaRequestMux0UART0Rx = 4|0x100U, /**< UART0 Receive (DMAMUX0) */ 171 kDmaRequestMux0I2C0 = 5|0x100U, /**< I2C0 (DMAMUX0) */ 172 kDmaRequestMux0XBAR = 6|0x100U, /**< XBAR (DMAMUX0) */ 173 kDmaRequestMux0UART3Tx = 7|0x100U, /**< UART3 Transmit (DMAMUX0) */ 174 kDmaRequestMux0UART3Rx = 8|0x100U, /**< UART3 Receive (DMAMUX0) */ 175 kDmaRequestMux0AFEChannel0 = 9|0x100U, /**< AFE channel 0 (DMAMUX0) */ 176 kDmaRequestMux0TMR0 = 10|0x100U, /**< TMR0 (DMAMUX0) */ 177 kDmaRequestMux0TMR3 = 11|0x100U, /**< TMR3 (DMAMUX0) */ 178 kDmaRequestMux0AFEChannel2 = 12|0x100U, /**< AFE channel 2 (DMAMUX0) */ 179 kDmaRequestMux0ADC = 13|0x100U, /**< ADC (DMAMUX0) */ 180 kDmaRequestMux0CMP0 = 14|0x100U, /**< CMP0 (DMAMUX0) */ 181 kDmaRequestMux0PTE = 15|0x100U, /**< PTE (DMAMUX0) */ 182 kDmaRequestMux0PTA = 16|0x100U, /**< PTA (DMAMUX0) */ 183 kDmaRequestMux0AlwaysEnabledslot17 = 17|0x100U, /**< DMAMUX Always Enabled slot */ 184 kDmaRequestMux0AlwaysEnabledslot18 = 18|0x100U, /**< DMAMUX Always Enabled slot */ 185 kDmaRequestMux0Reserved19 = 19|0x100U, /**< Reserved19 */ 186 kDmaRequestMux0Reserved20 = 20|0x100U, /**< Reserved20 */ 187 kDmaRequestMux0Reserved21 = 21|0x100U, /**< Reserved21 */ 188 kDmaRequestMux0Reserved22 = 22|0x100U, /**< Reserved22 */ 189 kDmaRequestMux0Reserved23 = 23|0x100U, /**< Reserved23 */ 190 kDmaRequestMux0Reserved24 = 24|0x100U, /**< Reserved24 */ 191 kDmaRequestMux0Reserved25 = 25|0x100U, /**< Reserved25 */ 192 kDmaRequestMux0Reserved26 = 26|0x100U, /**< Reserved26 */ 193 kDmaRequestMux0Reserved27 = 27|0x100U, /**< Reserved27 */ 194 kDmaRequestMux0Reserved28 = 28|0x100U, /**< Reserved28 */ 195 kDmaRequestMux0Reserved29 = 29|0x100U, /**< Reserved29 */ 196 kDmaRequestMux0Reserved30 = 30|0x100U, /**< Reserved30 */ 197 kDmaRequestMux0Reserved31 = 31|0x100U, /**< Reserved31 */ 198 kDmaRequestMux0Reserved32 = 32|0x100U, /**< Reserved32 */ 199 kDmaRequestMux0Reserved33 = 33|0x100U, /**< Reserved33 */ 200 kDmaRequestMux0Reserved34 = 34|0x100U, /**< Reserved34 */ 201 kDmaRequestMux0Reserved35 = 35|0x100U, /**< Reserved35 */ 202 kDmaRequestMux0Reserved36 = 36|0x100U, /**< Reserved36 */ 203 kDmaRequestMux0Reserved37 = 37|0x100U, /**< Reserved37 */ 204 kDmaRequestMux0Reserved38 = 38|0x100U, /**< Reserved38 */ 205 kDmaRequestMux0Reserved39 = 39|0x100U, /**< Reserved39 */ 206 kDmaRequestMux0Reserved40 = 40|0x100U, /**< Reserved40 */ 207 kDmaRequestMux0Reserved41 = 41|0x100U, /**< Reserved41 */ 208 kDmaRequestMux0Reserved42 = 42|0x100U, /**< Reserved42 */ 209 kDmaRequestMux0Reserved43 = 43|0x100U, /**< Reserved43 */ 210 kDmaRequestMux0Reserved44 = 44|0x100U, /**< Reserved44 */ 211 kDmaRequestMux0Reserved45 = 45|0x100U, /**< Reserved45 */ 212 kDmaRequestMux0Reserved46 = 46|0x100U, /**< Reserved46 */ 213 kDmaRequestMux0Reserved47 = 47|0x100U, /**< Reserved47 */ 214 kDmaRequestMux0Reserved48 = 48|0x100U, /**< Reserved48 */ 215 kDmaRequestMux0Reserved49 = 49|0x100U, /**< Reserved49 */ 216 kDmaRequestMux0Reserved50 = 50|0x100U, /**< Reserved50 */ 217 kDmaRequestMux0Reserved51 = 51|0x100U, /**< Reserved51 */ 218 kDmaRequestMux0Reserved52 = 52|0x100U, /**< Reserved52 */ 219 kDmaRequestMux0Reserved53 = 53|0x100U, /**< Reserved53 */ 220 kDmaRequestMux0Reserved54 = 54|0x100U, /**< Reserved54 */ 221 kDmaRequestMux0Reserved55 = 55|0x100U, /**< Reserved55 */ 222 kDmaRequestMux0Reserved56 = 56|0x100U, /**< Reserved56 */ 223 kDmaRequestMux0Reserved57 = 57|0x100U, /**< Reserved57 */ 224 kDmaRequestMux0Reserved58 = 58|0x100U, /**< Reserved58 */ 225 kDmaRequestMux0Reserved59 = 59|0x100U, /**< Reserved59 */ 226 kDmaRequestMux0Reserved60 = 60|0x100U, /**< Reserved60 */ 227 kDmaRequestMux0Reserved61 = 61|0x100U, /**< Reserved61 */ 228 kDmaRequestMux0Reserved62 = 62|0x100U, /**< Reserved62 */ 229 kDmaRequestMux0Reserved63 = 63|0x100U, /**< Reserved63 */ 230 kDmaRequestMux1Disable = 0|0x200U, /**< DMAMUX TriggerDisabled */ 231 kDmaRequestMux1SPI0Tx = 1|0x200U, /**< SPI0 Transmit (DMAMUX1) */ 232 kDmaRequestMux1SPI0Rx = 2|0x200U, /**< SPI0 Receive (DMAMUX1) */ 233 kDmaRequestMux1UART1Tx = 3|0x200U, /**< UART1 Transmit (DMAMUX1) */ 234 kDmaRequestMux1UART1Rx = 4|0x200U, /**< UART1 Receive (DMAMUX1) */ 235 kDmaRequestMux1I2C0 = 5|0x200U, /**< I2C0 (DMAMUX1) */ 236 kDmaRequestMux1XBAR = 6|0x200U, /**< XBAR (DMAMUX1) */ 237 kDmaRequestMux1UART3Tx = 7|0x200U, /**< UART3 Transmit (DMAMUX1) */ 238 kDmaRequestMux1UART3Rx = 8|0x200U, /**< UART3 Receive (DMAMUX1) */ 239 kDmaRequestMux1AFEChannel0 = 9|0x200U, /**< AFE channel 0 (DMAMUX1) */ 240 kDmaRequestMux1TMR0 = 10|0x200U, /**< TMR0 (DMAMUX1) */ 241 kDmaRequestMux1TMR3 = 11|0x200U, /**< TMR3 (DMAMUX1) */ 242 kDmaRequestMux1AFEChannel2 = 12|0x200U, /**< AFE channel 2 (DMAMUX1) */ 243 kDmaRequestMux1PTE = 13|0x200U, /**< PTE (DMAMUX1) */ 244 kDmaRequestMux1CMP0 = 14|0x200U, /**< CMP0 (DMAMUX1) */ 245 kDmaRequestMux1PTF = 15|0x200U, /**< PTF (DMAMUX1) */ 246 kDmaRequestMux1PTB = 16|0x200U, /**< PTB (DMAMUX1) */ 247 kDmaRequestMux1AlwaysEnabledslot17 = 17|0x200U, /**< DMAMUX Always Enabled slot */ 248 kDmaRequestMux1AlwaysEnabledslot18 = 18|0x200U, /**< DMAMUX Always Enabled slot */ 249 kDmaRequestMux1Reserved19 = 19|0x200U, /**< Reserved19 */ 250 kDmaRequestMux1Reserved20 = 20|0x200U, /**< Reserved20 */ 251 kDmaRequestMux1Reserved21 = 21|0x200U, /**< Reserved21 */ 252 kDmaRequestMux1Reserved22 = 22|0x200U, /**< Reserved22 */ 253 kDmaRequestMux1Reserved23 = 23|0x200U, /**< Reserved23 */ 254 kDmaRequestMux1Reserved24 = 24|0x200U, /**< Reserved24 */ 255 kDmaRequestMux1Reserved25 = 25|0x200U, /**< Reserved25 */ 256 kDmaRequestMux1Reserved26 = 26|0x200U, /**< Reserved26 */ 257 kDmaRequestMux1Reserved27 = 27|0x200U, /**< Reserved27 */ 258 kDmaRequestMux1Reserved28 = 28|0x200U, /**< Reserved28 */ 259 kDmaRequestMux1Reserved29 = 29|0x200U, /**< Reserved29 */ 260 kDmaRequestMux1Reserved30 = 30|0x200U, /**< Reserved30 */ 261 kDmaRequestMux1Reserved31 = 31|0x200U, /**< Reserved31 */ 262 kDmaRequestMux1Reserved32 = 32|0x200U, /**< Reserved32 */ 263 kDmaRequestMux1Reserved33 = 33|0x200U, /**< Reserved33 */ 264 kDmaRequestMux1Reserved34 = 34|0x200U, /**< Reserved34 */ 265 kDmaRequestMux1Reserved35 = 35|0x200U, /**< Reserved35 */ 266 kDmaRequestMux1Reserved36 = 36|0x200U, /**< Reserved36 */ 267 kDmaRequestMux1Reserved37 = 37|0x200U, /**< Reserved37 */ 268 kDmaRequestMux1Reserved38 = 38|0x200U, /**< Reserved38 */ 269 kDmaRequestMux1Reserved39 = 39|0x200U, /**< Reserved39 */ 270 kDmaRequestMux1Reserved40 = 40|0x200U, /**< Reserved40 */ 271 kDmaRequestMux1Reserved41 = 41|0x200U, /**< Reserved41 */ 272 kDmaRequestMux1Reserved42 = 42|0x200U, /**< Reserved42 */ 273 kDmaRequestMux1Reserved43 = 43|0x200U, /**< Reserved43 */ 274 kDmaRequestMux1Reserved44 = 44|0x200U, /**< Reserved44 */ 275 kDmaRequestMux1Reserved45 = 45|0x200U, /**< Reserved45 */ 276 kDmaRequestMux1Reserved46 = 46|0x200U, /**< Reserved46 */ 277 kDmaRequestMux1Reserved47 = 47|0x200U, /**< Reserved47 */ 278 kDmaRequestMux1Reserved48 = 48|0x200U, /**< Reserved48 */ 279 kDmaRequestMux1Reserved49 = 49|0x200U, /**< Reserved49 */ 280 kDmaRequestMux1Reserved50 = 50|0x200U, /**< Reserved50 */ 281 kDmaRequestMux1Reserved51 = 51|0x200U, /**< Reserved51 */ 282 kDmaRequestMux1Reserved52 = 52|0x200U, /**< Reserved52 */ 283 kDmaRequestMux1Reserved53 = 53|0x200U, /**< Reserved53 */ 284 kDmaRequestMux1Reserved54 = 54|0x200U, /**< Reserved54 */ 285 kDmaRequestMux1Reserved55 = 55|0x200U, /**< Reserved55 */ 286 kDmaRequestMux1Reserved56 = 56|0x200U, /**< Reserved56 */ 287 kDmaRequestMux1Reserved57 = 57|0x200U, /**< Reserved57 */ 288 kDmaRequestMux1Reserved58 = 58|0x200U, /**< Reserved58 */ 289 kDmaRequestMux1Reserved59 = 59|0x200U, /**< Reserved59 */ 290 kDmaRequestMux1Reserved60 = 60|0x200U, /**< Reserved60 */ 291 kDmaRequestMux1Reserved61 = 61|0x200U, /**< Reserved61 */ 292 kDmaRequestMux1Reserved62 = 62|0x200U, /**< Reserved62 */ 293 kDmaRequestMux1Reserved63 = 63|0x200U, /**< Reserved63 */ 294 kDmaRequestMux2Disable = 0|0x300U, /**< DMAMUX TriggerDisabled */ 295 kDmaRequestMux2SPI1Tx = 1|0x300U, /**< SPI1 Transmit (DMAMUX2) */ 296 kDmaRequestMux2SPI1Rx = 2|0x300U, /**< SPI1 Receive (DMAMUX2) */ 297 kDmaRequestMux2UART1Tx = 3|0x300U, /**< UART1 Transmit (DMAMUX2) */ 298 kDmaRequestMux2UART1Rx = 4|0x300U, /**< UART1 Receive (DMAMUX2) */ 299 kDmaRequestMux2I2C1 = 5|0x300U, /**< I2C1 (DMAMUX2) */ 300 kDmaRequestMux2XBAR = 6|0x300U, /**< XBAR (DMAMUX2) */ 301 kDmaRequestMux2UART2Tx = 7|0x300U, /**< UART2 Transmit (DMAMUX2) */ 302 kDmaRequestMux2UART2Rx = 8|0x300U, /**< UART2 Receive (DMAMUX2) */ 303 kDmaRequestMux2AFEChannel1 = 9|0x300U, /**< AFE channel 1 (DMAMUX2) */ 304 kDmaRequestMux2TMR2 = 10|0x300U, /**< TMR2 (DMAMUX2) */ 305 kDmaRequestMux2TMR1 = 11|0x300U, /**< TMR1 (DMAMUX2) */ 306 kDmaRequestMux2AFEChannel3 = 12|0x300U, /**< AFE channel 3 (DMAMUX2) */ 307 kDmaRequestMux2PTI = 13|0x300U, /**< PTI (DMAMUX2) */ 308 kDmaRequestMux2CMP1 = 14|0x300U, /**< CMP1 (DMAMUX2) */ 309 kDmaRequestMux2PTG = 15|0x300U, /**< PTG (DMAMUX2) */ 310 kDmaRequestMux2PTC = 16|0x300U, /**< PTC (DMAMUX2) */ 311 kDmaRequestMux2AlwaysEnabledslot17 = 17|0x300U, /**< DMAMUX Always Enabled slot */ 312 kDmaRequestMux2AlwaysEnabledslot18 = 18|0x300U, /**< DMAMUX Always Enabled slot */ 313 kDmaRequestMux2Reserved19 = 19|0x300U, /**< Reserved19 */ 314 kDmaRequestMux2Reserved20 = 20|0x300U, /**< Reserved20 */ 315 kDmaRequestMux2Reserved21 = 21|0x300U, /**< Reserved21 */ 316 kDmaRequestMux2Reserved22 = 22|0x300U, /**< Reserved22 */ 317 kDmaRequestMux2Reserved23 = 23|0x300U, /**< Reserved23 */ 318 kDmaRequestMux2Reserved24 = 24|0x300U, /**< Reserved24 */ 319 kDmaRequestMux2Reserved25 = 25|0x300U, /**< Reserved25 */ 320 kDmaRequestMux2Reserved26 = 26|0x300U, /**< Reserved26 */ 321 kDmaRequestMux2Reserved27 = 27|0x300U, /**< Reserved27 */ 322 kDmaRequestMux2Reserved28 = 28|0x300U, /**< Reserved28 */ 323 kDmaRequestMux2Reserved29 = 29|0x300U, /**< Reserved29 */ 324 kDmaRequestMux2Reserved30 = 30|0x300U, /**< Reserved30 */ 325 kDmaRequestMux2Reserved31 = 31|0x300U, /**< Reserved31 */ 326 kDmaRequestMux2Reserved32 = 32|0x300U, /**< Reserved32 */ 327 kDmaRequestMux2Reserved33 = 33|0x300U, /**< Reserved33 */ 328 kDmaRequestMux2Reserved34 = 34|0x300U, /**< Reserved34 */ 329 kDmaRequestMux2Reserved35 = 35|0x300U, /**< Reserved35 */ 330 kDmaRequestMux2Reserved36 = 36|0x300U, /**< Reserved36 */ 331 kDmaRequestMux2Reserved37 = 37|0x300U, /**< Reserved37 */ 332 kDmaRequestMux2Reserved38 = 38|0x300U, /**< Reserved38 */ 333 kDmaRequestMux2Reserved39 = 39|0x300U, /**< Reserved39 */ 334 kDmaRequestMux2Reserved40 = 40|0x300U, /**< Reserved40 */ 335 kDmaRequestMux2Reserved41 = 41|0x300U, /**< Reserved41 */ 336 kDmaRequestMux2Reserved42 = 42|0x300U, /**< Reserved42 */ 337 kDmaRequestMux2Reserved43 = 43|0x300U, /**< Reserved43 */ 338 kDmaRequestMux2Reserved44 = 44|0x300U, /**< Reserved44 */ 339 kDmaRequestMux2Reserved45 = 45|0x300U, /**< Reserved45 */ 340 kDmaRequestMux2Reserved46 = 46|0x300U, /**< Reserved46 */ 341 kDmaRequestMux2Reserved47 = 47|0x300U, /**< Reserved47 */ 342 kDmaRequestMux2Reserved48 = 48|0x300U, /**< Reserved48 */ 343 kDmaRequestMux2Reserved49 = 49|0x300U, /**< Reserved49 */ 344 kDmaRequestMux2Reserved50 = 50|0x300U, /**< Reserved50 */ 345 kDmaRequestMux2Reserved51 = 51|0x300U, /**< Reserved51 */ 346 kDmaRequestMux2Reserved52 = 52|0x300U, /**< Reserved52 */ 347 kDmaRequestMux2Reserved53 = 53|0x300U, /**< Reserved53 */ 348 kDmaRequestMux2Reserved54 = 54|0x300U, /**< Reserved54 */ 349 kDmaRequestMux2Reserved55 = 55|0x300U, /**< Reserved55 */ 350 kDmaRequestMux2Reserved56 = 56|0x300U, /**< Reserved56 */ 351 kDmaRequestMux2Reserved57 = 57|0x300U, /**< Reserved57 */ 352 kDmaRequestMux2Reserved58 = 58|0x300U, /**< Reserved58 */ 353 kDmaRequestMux2Reserved59 = 59|0x300U, /**< Reserved59 */ 354 kDmaRequestMux2Reserved60 = 60|0x300U, /**< Reserved60 */ 355 kDmaRequestMux2Reserved61 = 61|0x300U, /**< Reserved61 */ 356 kDmaRequestMux2Reserved62 = 62|0x300U, /**< Reserved62 */ 357 kDmaRequestMux2Reserved63 = 63|0x300U, /**< Reserved63 */ 358 kDmaRequestMux3Disable = 0|0x400U, /**< DMAMUX TriggerDisabled */ 359 kDmaRequestMux3SPI1Tx = 1|0x400U, /**< SPI1 Transmit (DMAMUX3) */ 360 kDmaRequestMux3SPI1Rx = 2|0x400U, /**< SPI1 Receive (DMAMUX3) */ 361 kDmaRequestMux3UART0Tx = 3|0x400U, /**< UART0 Transmit (DMAMUX3) */ 362 kDmaRequestMux3UART0Rx = 4|0x400U, /**< UART0 Receive (DMAMUX3) */ 363 kDmaRequestMux3I2C1 = 5|0x400U, /**< I2C1 (DMAMUX3) */ 364 kDmaRequestMux3XBAR = 6|0x400U, /**< XBAR (DMAMUX3) */ 365 kDmaRequestMux3UART2Tx = 7|0x400U, /**< UART2 Transmit (DMAMUX3) */ 366 kDmaRequestMux3UART2Rx = 8|0x400U, /**< UART2 Receive (DMAMUX3) */ 367 kDmaRequestMux3AFEChannel1 = 9|0x400U, /**< AFE channel 1 (DMAMUX3) */ 368 kDmaRequestMux3TMR2 = 10|0x400U, /**< TMR2 (DMAMUX3) */ 369 kDmaRequestMux3TMR1 = 11|0x400U, /**< TMR1 (DMAMUX3) */ 370 kDmaRequestMux3AFEChannel3 = 12|0x400U, /**< AFE channel 3 (DMAMUX3) */ 371 kDmaRequestMux3ADC = 13|0x400U, /**< ADC (DMAMUX3) */ 372 kDmaRequestMux3CMP1 = 14|0x400U, /**< CMP1 (DMAMUX3) */ 373 kDmaRequestMux3PTH = 15|0x400U, /**< PTH (DMAMUX3) */ 374 kDmaRequestMux3PTD = 16|0x400U, /**< PTD (DMAMUX3) */ 375 kDmaRequestMux3AlwaysEnabledslot17 = 17|0x400U, /**< DMAMUX Always Enabled slot */ 376 kDmaRequestMux3AlwaysEnabledslot18 = 18|0x400U, /**< DMAMUX Always Enabled slot */ 377 kDmaRequestMux3Reserved19 = 19|0x400U, /**< Reserved19 */ 378 kDmaRequestMux3Reserved20 = 20|0x400U, /**< Reserved20 */ 379 kDmaRequestMux3Reserved21 = 21|0x400U, /**< Reserved21 */ 380 kDmaRequestMux3Reserved22 = 22|0x400U, /**< Reserved22 */ 381 kDmaRequestMux3Reserved23 = 23|0x400U, /**< Reserved23 */ 382 kDmaRequestMux3Reserved24 = 24|0x400U, /**< Reserved24 */ 383 kDmaRequestMux3Reserved25 = 25|0x400U, /**< Reserved25 */ 384 kDmaRequestMux3Reserved26 = 26|0x400U, /**< Reserved26 */ 385 kDmaRequestMux3Reserved27 = 27|0x400U, /**< Reserved27 */ 386 kDmaRequestMux3Reserved28 = 28|0x400U, /**< Reserved28 */ 387 kDmaRequestMux3Reserved29 = 29|0x400U, /**< Reserved29 */ 388 kDmaRequestMux3Reserved30 = 30|0x400U, /**< Reserved30 */ 389 kDmaRequestMux3Reserved31 = 31|0x400U, /**< Reserved31 */ 390 kDmaRequestMux3Reserved32 = 32|0x400U, /**< Reserved32 */ 391 kDmaRequestMux3Reserved33 = 33|0x400U, /**< Reserved33 */ 392 kDmaRequestMux3Reserved34 = 34|0x400U, /**< Reserved34 */ 393 kDmaRequestMux3Reserved35 = 35|0x400U, /**< Reserved35 */ 394 kDmaRequestMux3Reserved36 = 36|0x400U, /**< Reserved36 */ 395 kDmaRequestMux3Reserved37 = 37|0x400U, /**< Reserved37 */ 396 kDmaRequestMux3Reserved38 = 38|0x400U, /**< Reserved38 */ 397 kDmaRequestMux3Reserved39 = 39|0x400U, /**< Reserved39 */ 398 kDmaRequestMux3Reserved40 = 40|0x400U, /**< Reserved40 */ 399 kDmaRequestMux3Reserved41 = 41|0x400U, /**< Reserved41 */ 400 kDmaRequestMux3Reserved42 = 42|0x400U, /**< Reserved42 */ 401 kDmaRequestMux3Reserved43 = 43|0x400U, /**< Reserved43 */ 402 kDmaRequestMux3Reserved44 = 44|0x400U, /**< Reserved44 */ 403 kDmaRequestMux3Reserved45 = 45|0x400U, /**< Reserved45 */ 404 kDmaRequestMux3Reserved46 = 46|0x400U, /**< Reserved46 */ 405 kDmaRequestMux3Reserved47 = 47|0x400U, /**< Reserved47 */ 406 kDmaRequestMux3Reserved48 = 48|0x400U, /**< Reserved48 */ 407 kDmaRequestMux3Reserved49 = 49|0x400U, /**< Reserved49 */ 408 kDmaRequestMux3Reserved50 = 50|0x400U, /**< Reserved50 */ 409 kDmaRequestMux3Reserved51 = 51|0x400U, /**< Reserved51 */ 410 kDmaRequestMux3Reserved52 = 52|0x400U, /**< Reserved52 */ 411 kDmaRequestMux3Reserved53 = 53|0x400U, /**< Reserved53 */ 412 kDmaRequestMux3Reserved54 = 54|0x400U, /**< Reserved54 */ 413 kDmaRequestMux3Reserved55 = 55|0x400U, /**< Reserved55 */ 414 kDmaRequestMux3Reserved56 = 56|0x400U, /**< Reserved56 */ 415 kDmaRequestMux3Reserved57 = 57|0x400U, /**< Reserved57 */ 416 kDmaRequestMux3Reserved58 = 58|0x400U, /**< Reserved58 */ 417 kDmaRequestMux3Reserved59 = 59|0x400U, /**< Reserved59 */ 418 kDmaRequestMux3Reserved60 = 60|0x400U, /**< Reserved60 */ 419 kDmaRequestMux3Reserved61 = 61|0x400U, /**< Reserved61 */ 420 kDmaRequestMux3Reserved62 = 62|0x400U, /**< Reserved62 */ 421 kDmaRequestMux3Reserved63 = 63|0x400U, /**< Reserved63 */ 422 } dma_request_source_t; 423 424 /* @} */ 425 426 typedef enum _xbar_input_signal 427 { 428 kXBAR_InputVdd = 0|0x100U, /**< Logic 1 (VDD) output assigned to XBAR_IN0 input. */ 429 kXBAR_InputVss = 1|0x100U, /**< Logic 0 (VSS) output assigned to XBAR_IN1 input. */ 430 kXBAR_InputAfeClock = 2|0x100U, /**< AFE modulator clock output output assigned to XBAR_IN2 input. */ 431 kXBAR_InputAfeModDataOutput = 3|0x100U, /**< AFE modulator data output output assigned to XBAR_IN3 input. */ 432 kXBAR_InputLptmrOutput = 4|0x100U, /**< LPTimer Output output assigned to XBAR_IN4 input. */ 433 kXBAR_InputClockOutput = 5|0x100U, /**< Clock Output output assigned to XBAR_IN5 input. */ 434 kXBAR_InputTmrCh0Output = 6|0x100U, /**< Quad Timer channel 0 output output assigned to XBAR_IN6 input. */ 435 kXBAR_InputTmrCh1Output = 7|0x100U, /**< Quad Timer channel 1 output output assigned to XBAR_IN7 input. */ 436 kXBAR_InputTmrCh2Output = 8|0x100U, /**< Quad Timer channel 2 output output assigned to XBAR_IN8 input. */ 437 kXBAR_InputTmrCh3Output = 9|0x100U, /**< Quad Timer channel 3 output output assigned to XBAR_IN9 input. */ 438 kXBAR_InputRtcClockOutput = 10|0x100U, /**< iRTC Clock Output output assigned to XBAR_IN10 input. */ 439 kXBAR_InputCmp0Output = 11|0x100U, /**< CMP0 Output output assigned to XBAR_IN11 input. */ 440 kXBAR_InputCmp1Output = 12|0x100U, /**< CMP1 Output output assigned to XBAR_IN12 input. */ 441 kXBAR_InputRtcAlarmOutput = 13|0x100U, /**< iRTC Alarm Output output assigned to XBAR_IN13 input. */ 442 kXBAR_InputUartTxOutput = 14|0x100U, /**< UART TX Output (after modulation) output assigned to XBAR_IN14 input. */ 443 kXBAR_InputEwmOutput = 15|0x100U, /**< EWM Output (EWM_OUT) output assigned to XBAR_IN15 input. */ 444 kXBAR_InputPitOut = 16|0x100U, /**< PIT Output output assigned to XBAR_IN16 input. */ 445 kXBAR_InputXbarIn0 = 17|0x100U, /**< XBAR Input pin 0 output assigned to XBAR_IN17 input. */ 446 kXBAR_InputXbarIn1 = 18|0x100U, /**< XBAR Input pin 1 output assigned to XBAR_IN18 input. */ 447 kXBAR_InputXbarIn2 = 19|0x100U, /**< XBAR Input pin 2 output assigned to XBAR_IN19 input. */ 448 kXBAR_InputXbarIn3 = 20|0x100U, /**< XBAR Input pin 3 output assigned to XBAR_IN20 input. */ 449 kXBAR_InputXbarIn4 = 21|0x100U, /**< XBAR Input pin 4 output assigned to XBAR_IN21 input. */ 450 kXBAR_InputXbarIn5 = 22|0x100U, /**< XBAR Input pin 5 output assigned to XBAR_IN22 input. */ 451 kXBAR_InputXbarIn6 = 23|0x100U, /**< XBAR Input pin 6 output assigned to XBAR_IN23 input. */ 452 kXBAR_InputXbarIn7 = 24|0x100U, /**< XBAR Input pin 7 output assigned to XBAR_IN24 input. */ 453 kXBAR_InputXbarIn8 = 25|0x100U, /**< XBAR Input pin 8 output assigned to XBAR_IN25 input. */ 454 kXBAR_InputAdcCocoFlag = 26|0x100U, /**< ORed conversion complete flag for all SAR ADC channels output assigned to XBAR_IN26 input. */ 455 kXBAR_InputAfeAllCocFlag = 27|0x100U, /**< ORed conversion complete flag for all AFE channels output assigned to XBAR_IN27 input. */ 456 kXBAR_InputAfeCh0CocFlag = 28|0x100U, /**< AFE Channel 0 conversion complete output assigned to XBAR_IN28 input. */ 457 kXBAR_InputAfeCh1CocFlag = 29|0x100U, /**< AFE Channel 1 conversion complete output assigned to XBAR_IN29 input. */ 458 kXBAR_InputAfeCh2CocFlag = 30|0x100U, /**< AFE Channel 2 conversion complete output assigned to XBAR_IN30 input. */ 459 kXBAR_InputAfeCh3CocFlag = 31|0x100U, /**< AFE Channel 3 conversion complete output assigned to XBAR_IN31 input. */ 460 kXBAR_InputDmaDoneSignal = 32|0x100U, /**< DMA Done Signal output assigned to XBAR_IN32 input. */ 461 } xbar_input_signal_t; 462 463 typedef enum _xbar_output_signal 464 { 465 kXBAR_OutputXbDmaInt = 0|0x100U, /**< XBAR_OUT0 output assigned to XBAR DMA request or Interrupt */ 466 kXBAR_OutputAfeCh0ExmodData = 1|0x100U, /**< XBAR_OUT1 output assigned to External modulator data input for AFE Channel 0 */ 467 kXBAR_OutputAfeCh1ExmodData = 2|0x100U, /**< XBAR_OUT2 output assigned to External modulator data input for AFE Channel 1 */ 468 kXBAR_OutputAfeCh2ExmodData = 3|0x100U, /**< XBAR_OUT3 output assigned to External modulator data input for AFE Channel 2 */ 469 kXBAR_OutputAfeCh3ExmodData = 4|0x100U, /**< XBAR_OUT4 output assigned to External modulator data input for AFE Channel 3 */ 470 kXBAR_OutputTmrCh0SecInput = 5|0x100U, /**< XBAR_OUT5 output assigned to Quad Timer channel 0 secondary input */ 471 kXBAR_OutputTmrCh1SecInput = 6|0x100U, /**< XBAR_OUT6 output assigned to Quad Timer channel 1 secondary input */ 472 kXBAR_OutputTmrCh2SecInput = 7|0x100U, /**< XBAR_OUT7 output assigned to Quad Timer channel 2 secondary input */ 473 kXBAR_OutputTmrCh3SecInput = 8|0x100U, /**< XBAR_OUT8 output assigned to Quad Timer channel 3 secondary input */ 474 kXBAR_OutputTmrClockInput1 = 9|0x100U, /**< XBAR_OUT9 output assigned to Quad Timer primary clock input 1 */ 475 kXBAR_OutputTmrClockInput2 = 10|0x100U, /**< XBAR_OUT10 output assigned to Quad Timer primary clock input 2 */ 476 kXBAR_OutputCmp0SampleWinInput = 11|0x100U, /**< XBAR_OUT11 output assigned to CMP0 Sample Window input */ 477 kXBAR_OutputCmp1SampleWinInput = 12|0x100U, /**< XBAR_OUT12 output assigned to CMP1 Sample Window input */ 478 kXBAR_OutputUartRxInput = 13|0x100U, /**< XBAR_OUT13 output assigned to UART Rx IrDA Input */ 479 kXBAR_OutputUartTxModCarrier = 14|0x100U, /**< XBAR_OUT14 output assigned to SIM UART Tx IrDA Modulator Carrier Input */ 480 kXBAR_OutputAdcTrgA = 15|0x100U, /**< XBAR_OUT15 output assigned to SAR ADC trigger select A pulse */ 481 kXBAR_OutputAdcTrgB = 16|0x100U, /**< XBAR_OUT16 output assigned to SAR ADC trigger select B pulse */ 482 kXBAR_OutputXbOut0 = 17|0x100U, /**< XBAR_OUT17 output assigned to XBAR Output pin 0 */ 483 kXBAR_OutputXbOut1 = 18|0x100U, /**< XBAR_OUT18 output assigned to XBAR Output pin 1 */ 484 kXBAR_OutputXbOut2 = 19|0x100U, /**< XBAR_OUT19 output assigned to XBAR Output pin 2 */ 485 kXBAR_OutputXbOut3 = 20|0x100U, /**< XBAR_OUT20 output assigned to XBAR Output pin 3 */ 486 kXBAR_OutputXbOut4 = 21|0x100U, /**< XBAR_OUT21 output assigned to XBAR Output pin 4 */ 487 kXBAR_OutputXbOut5 = 22|0x100U, /**< XBAR_OUT22 output assigned to XBAR Output pin 5 */ 488 kXBAR_OutputXbOut6 = 23|0x100U, /**< XBAR_OUT23 output assigned to XBAR Output pin 6 */ 489 kXBAR_OutputXbOut7 = 24|0x100U, /**< XBAR_OUT24 output assigned to XBAR Output pin 7 */ 490 kXBAR_OutputXbOut8 = 25|0x100U, /**< XBAR_OUT25 output assigned to XBAR Output pin 8 */ 491 kXBAR_OutputAdcTrgC = 26|0x100U, /**< XBAR_OUT26 output assigned to SAR ADC trigger select C pulse */ 492 kXBAR_OutputAdcTrgD = 27|0x100U, /**< XBAR_OUT27 output assigned to SAR ADC trigger select D pulse */ 493 kXBAR_OutputAfeCh0Trg = 28|0x100U, /**< XBAR_OUT28 output assigned to AFE Channel 0 Trigger */ 494 kXBAR_OutputAfeCh1Trg = 29|0x100U, /**< XBAR_OUT29 output assigned to AFE Channel 1 Trigger */ 495 kXBAR_OutputAfeCh2Trg = 30|0x100U, /**< XBAR_OUT30 output assigned to AFE Channel 2 Trigger */ 496 kXBAR_OutputAfeCh3Trg = 31|0x100U, /**< XBAR_OUT31 output assigned to AFE Channel 3 Trigger */ 497 kXBAR_OutputEwmIn = 32|0x100U, /**< XBAR_OUT32 output assigned to EWM input (EWM_IN) */ 498 } xbar_output_signal_t; 499 500 501 /*! 502 * @} 503 */ /* end of group Mapping_Information */ 504 505 506 /* ---------------------------------------------------------------------------- 507 -- Device Peripheral Access Layer 508 ---------------------------------------------------------------------------- */ 509 510 /*! 511 * @addtogroup Peripheral_access_layer Device Peripheral Access Layer 512 * @{ 513 */ 514 515 516 /* 517 ** Start of section using anonymous unions 518 */ 519 520 #if defined(__ARMCC_VERSION) 521 #if (__ARMCC_VERSION >= 6010050) 522 #pragma clang diagnostic push 523 #else 524 #pragma push 525 #pragma anon_unions 526 #endif 527 #elif defined(__CWCC__) 528 #pragma push 529 #pragma cpp_extensions on 530 #elif defined(__GNUC__) 531 /* anonymous unions are enabled by default */ 532 #elif defined(__IAR_SYSTEMS_ICC__) 533 #pragma language=extended 534 #else 535 #error Not supported compiler type 536 #endif 537 538 /* ---------------------------------------------------------------------------- 539 -- ADC Peripheral Access Layer 540 ---------------------------------------------------------------------------- */ 541 542 /*! 543 * @addtogroup ADC_Peripheral_Access_Layer ADC Peripheral Access Layer 544 * @{ 545 */ 546 547 /** ADC - Register Layout Typedef */ 548 typedef struct { 549 __IO uint32_t SC1[4]; /**< ADC Status and Control Registers 1, array offset: 0x0, array step: 0x4 */ 550 __IO uint32_t CFG1; /**< ADC Configuration Register 1, offset: 0x10 */ 551 __IO uint32_t CFG2; /**< ADC Configuration Register 2, offset: 0x14 */ 552 __I uint32_t R[4]; /**< ADC Data Result Register, array offset: 0x18, array step: 0x4 */ 553 __IO uint32_t CV1; /**< Compare Value Registers, offset: 0x28 */ 554 __IO uint32_t CV2; /**< Compare Value Registers, offset: 0x2C */ 555 __IO uint32_t SC2; /**< Status and Control Register 2, offset: 0x30 */ 556 __IO uint32_t SC3; /**< Status and Control Register 3, offset: 0x34 */ 557 __IO uint32_t OFS; /**< ADC Offset Correction Register, offset: 0x38 */ 558 __IO uint32_t PG; /**< ADC Plus-Side Gain Register, offset: 0x3C */ 559 uint8_t RESERVED_0[4]; 560 __IO uint32_t CLPD; /**< ADC Plus-Side General Calibration Value Register, offset: 0x44 */ 561 __IO uint32_t CLPS; /**< ADC Plus-Side General Calibration Value Register, offset: 0x48 */ 562 __IO uint32_t CLP4; /**< ADC Plus-Side General Calibration Value Register, offset: 0x4C */ 563 __IO uint32_t CLP3; /**< ADC Plus-Side General Calibration Value Register, offset: 0x50 */ 564 __IO uint32_t CLP2; /**< ADC Plus-Side General Calibration Value Register, offset: 0x54 */ 565 __IO uint32_t CLP1; /**< ADC Plus-Side General Calibration Value Register, offset: 0x58 */ 566 __IO uint32_t CLP0; /**< ADC Plus-Side General Calibration Value Register, offset: 0x5C */ 567 } ADC_Type; 568 569 /* ---------------------------------------------------------------------------- 570 -- ADC Register Masks 571 ---------------------------------------------------------------------------- */ 572 573 /*! 574 * @addtogroup ADC_Register_Masks ADC Register Masks 575 * @{ 576 */ 577 578 /*! @name SC1 - ADC Status and Control Registers 1 */ 579 /*! @{ */ 580 581 #define ADC_SC1_ADCH_MASK (0x1FU) 582 #define ADC_SC1_ADCH_SHIFT (0U) 583 /*! ADCH - Input channel select 584 * 0b00000..AD0 is selected as input. 585 * 0b00001..AD1 is selected as input. 586 * 0b00010..AD2 is selected as input. 587 * 0b00011..AD3 is selected as input. 588 * 0b00100..AD4 is selected as input. 589 * 0b00101..AD5 is selected as input. 590 * 0b00110..AD6 is selected as input. 591 * 0b00111..AD7 is selected as input. 592 * 0b01000..AD8 is selected as input. 593 * 0b01001..AD9 is selected as input. 594 * 0b01010..AD10 is selected as input. 595 * 0b01011..AD11 is selected as input. 596 * 0b01100..AD12 is selected as input. 597 * 0b01101..AD13 is selected as input. 598 * 0b01110..AD14 is selected as input. 599 * 0b01111..AD15 is selected as input. 600 * 0b10000..AD16 is selected as input. 601 * 0b10001..AD17 is selected as input. 602 * 0b10010..AD18 is selected as input. 603 * 0b10011..AD19 is selected as input. 604 * 0b10100..AD20 is selected as input. 605 * 0b10101..AD21 is selected as input. 606 * 0b10110..AD22 is selected as input. 607 * 0b10111..AD23 is selected as input. 608 * 0b11000..Reserved. 609 * 0b11001..Reserved. 610 * 0b11010..Temp Sensor (single-ended) is selected as input. 611 * 0b11011..Bandgap (single-ended) is selected as input. 612 * 0b11100..Reserved. 613 * 0b11101..VREFSH is selected as input. Voltage reference selected is determined by SC2[REFSEL]. 614 * 0b11110..VREFSL is selected as input. Voltage reference selected is determined by SC2[REFSEL]. 615 * 0b11111..Module is disabled. 616 */ 617 #define ADC_SC1_ADCH(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC1_ADCH_SHIFT)) & ADC_SC1_ADCH_MASK) 618 619 #define ADC_SC1_AIEN_MASK (0x40U) 620 #define ADC_SC1_AIEN_SHIFT (6U) 621 /*! AIEN - Interrupt Enable 622 * 0b0..Conversion complete interrupt is disabled. 623 * 0b1..Conversion complete interrupt is enabled. 624 */ 625 #define ADC_SC1_AIEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC1_AIEN_SHIFT)) & ADC_SC1_AIEN_MASK) 626 627 #define ADC_SC1_COCO_MASK (0x80U) 628 #define ADC_SC1_COCO_SHIFT (7U) 629 /*! COCO - Conversion Complete Flag 630 * 0b0..Conversion is not completed. 631 * 0b1..Conversion is completed. 632 */ 633 #define ADC_SC1_COCO(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC1_COCO_SHIFT)) & ADC_SC1_COCO_MASK) 634 /*! @} */ 635 636 /* The count of ADC_SC1 */ 637 #define ADC_SC1_COUNT (4U) 638 639 /*! @name CFG1 - ADC Configuration Register 1 */ 640 /*! @{ */ 641 642 #define ADC_CFG1_ADICLK_MASK (0x3U) 643 #define ADC_CFG1_ADICLK_SHIFT (0U) 644 /*! ADICLK - Input Clock Select 645 * 0b00..Bus clock 646 * 0b01..Bus clock divided by 2(BUSCLK/2) 647 * 0b10..Alternate clock (ALTCLK) 648 * 0b11..Asynchronous clock (ADACK) 649 */ 650 #define ADC_CFG1_ADICLK(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_ADICLK_SHIFT)) & ADC_CFG1_ADICLK_MASK) 651 652 #define ADC_CFG1_MODE_MASK (0xCU) 653 #define ADC_CFG1_MODE_SHIFT (2U) 654 /*! MODE - Conversion mode selection 655 * 0b00..It is single-ended 8-bit conversion. 656 * 0b01..It is single-ended 12-bit conversion . 657 * 0b10..It is single-ended 10-bit conversion. 658 * 0b11..It is single-ended 16-bit conversion.. 659 */ 660 #define ADC_CFG1_MODE(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_MODE_SHIFT)) & ADC_CFG1_MODE_MASK) 661 662 #define ADC_CFG1_ADLSMP_MASK (0x10U) 663 #define ADC_CFG1_ADLSMP_SHIFT (4U) 664 /*! ADLSMP - Sample Time Configuration 665 * 0b0..Short sample time. 666 * 0b1..Long sample time. 667 */ 668 #define ADC_CFG1_ADLSMP(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_ADLSMP_SHIFT)) & ADC_CFG1_ADLSMP_MASK) 669 670 #define ADC_CFG1_ADIV_MASK (0x60U) 671 #define ADC_CFG1_ADIV_SHIFT (5U) 672 /*! ADIV - Clock Divide Select 673 * 0b00..The divide ratio is 1 and the clock rate is input clock. 674 * 0b01..The divide ratio is 2 and the clock rate is (input clock)/2. 675 * 0b10..The divide ratio is 4 and the clock rate is (input clock)/4. 676 * 0b11..The divide ratio is 8 and the clock rate is (input clock)/8. 677 */ 678 #define ADC_CFG1_ADIV(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_ADIV_SHIFT)) & ADC_CFG1_ADIV_MASK) 679 680 #define ADC_CFG1_ADLPC_MASK (0x80U) 681 #define ADC_CFG1_ADLPC_SHIFT (7U) 682 /*! ADLPC - Low-Power Configuration 683 * 0b0..Normal power configuration. 684 * 0b1..Low-power configuration. The power is reduced at the expense of maximum clock speed. 685 */ 686 #define ADC_CFG1_ADLPC(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_ADLPC_SHIFT)) & ADC_CFG1_ADLPC_MASK) 687 /*! @} */ 688 689 /*! @name CFG2 - ADC Configuration Register 2 */ 690 /*! @{ */ 691 692 #define ADC_CFG2_ADLSTS_MASK (0x3U) 693 #define ADC_CFG2_ADLSTS_SHIFT (0U) 694 /*! ADLSTS - Long Sample Time Select 695 * 0b00..Default longest sample time; 20 extra ADCK cycles; 24 ADCK cycles total. 696 * 0b01..12 extra ADCK cycles; 16 ADCK cycles total sample time. 697 * 0b10..6 extra ADCK cycles; 10 ADCK cycles total sample time. 698 * 0b11..2 extra ADCK cycles; 6 ADCK cycles total sample time. 699 */ 700 #define ADC_CFG2_ADLSTS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG2_ADLSTS_SHIFT)) & ADC_CFG2_ADLSTS_MASK) 701 702 #define ADC_CFG2_ADHSC_MASK (0x4U) 703 #define ADC_CFG2_ADHSC_SHIFT (2U) 704 /*! ADHSC - High-Speed Configuration 705 * 0b0..Normal conversion sequence selected. 706 * 0b1..High-speed conversion sequence selected with 2 additional ADCK cycles to total conversion time. 707 */ 708 #define ADC_CFG2_ADHSC(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG2_ADHSC_SHIFT)) & ADC_CFG2_ADHSC_MASK) 709 710 #define ADC_CFG2_ADACKEN_MASK (0x8U) 711 #define ADC_CFG2_ADACKEN_SHIFT (3U) 712 /*! ADACKEN - Asynchronous Clock Output Enable 713 * 0b0..Asynchronous clock output disabled; Asynchronous clock is enabled only if selected by ADICLK and a conversion is active. 714 * 0b1..Asynchronous clock and clock output is enabled regardless of the state of the ADC. 715 */ 716 #define ADC_CFG2_ADACKEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG2_ADACKEN_SHIFT)) & ADC_CFG2_ADACKEN_MASK) 717 /*! @} */ 718 719 /*! @name R - ADC Data Result Register */ 720 /*! @{ */ 721 722 #define ADC_R_D_MASK (0xFFFFU) 723 #define ADC_R_D_SHIFT (0U) 724 /*! D - Data result 725 */ 726 #define ADC_R_D(x) (((uint32_t)(((uint32_t)(x)) << ADC_R_D_SHIFT)) & ADC_R_D_MASK) 727 /*! @} */ 728 729 /* The count of ADC_R */ 730 #define ADC_R_COUNT (4U) 731 732 /*! @name CV1 - Compare Value Registers */ 733 /*! @{ */ 734 735 #define ADC_CV1_CV_MASK (0xFFFFU) 736 #define ADC_CV1_CV_SHIFT (0U) 737 /*! CV - Compare Value. 738 */ 739 #define ADC_CV1_CV(x) (((uint32_t)(((uint32_t)(x)) << ADC_CV1_CV_SHIFT)) & ADC_CV1_CV_MASK) 740 /*! @} */ 741 742 /*! @name CV2 - Compare Value Registers */ 743 /*! @{ */ 744 745 #define ADC_CV2_CV_MASK (0xFFFFU) 746 #define ADC_CV2_CV_SHIFT (0U) 747 /*! CV - Compare Value. 748 */ 749 #define ADC_CV2_CV(x) (((uint32_t)(((uint32_t)(x)) << ADC_CV2_CV_SHIFT)) & ADC_CV2_CV_MASK) 750 /*! @} */ 751 752 /*! @name SC2 - Status and Control Register 2 */ 753 /*! @{ */ 754 755 #define ADC_SC2_REFSEL_MASK (0x3U) 756 #define ADC_SC2_REFSEL_SHIFT (0U) 757 /*! REFSEL - Voltage Reference Selection 758 * 0b00..Default voltage reference pin pair, that is, external pins VREFH and VREFL 759 * 0b01..Alternate reference pair, that is, VALTH and VALTL . This pair may be additional external pins or 760 * internal sources depending on the MCU configuration. See the chip configuration information for details 761 * specific to this MCU 762 * 0b10..Internal bandgap reference and associated ground reference (V BGH and V BGL ). Consult the Chip 763 * Configuration information for details specific to this MCU. 764 * 0b11..Reserved 765 */ 766 #define ADC_SC2_REFSEL(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_REFSEL_SHIFT)) & ADC_SC2_REFSEL_MASK) 767 768 #define ADC_SC2_DMAEN_MASK (0x4U) 769 #define ADC_SC2_DMAEN_SHIFT (2U) 770 /*! DMAEN - DMA Enable 771 * 0b0..DMA is disabled. 772 * 0b1..DMA is enabled and will assert the ADC DMA request during an ADC conversion complete event noted when any 773 * of the SC1n[COCO] flags is asserted. 774 */ 775 #define ADC_SC2_DMAEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_DMAEN_SHIFT)) & ADC_SC2_DMAEN_MASK) 776 777 #define ADC_SC2_ACREN_MASK (0x8U) 778 #define ADC_SC2_ACREN_SHIFT (3U) 779 /*! ACREN - Compare Function Range Enable 780 * 0b0..Range function disabled. Only CV1 is compared. 781 * 0b1..Range function enabled. Both CV1 and CV2 are compared. 782 */ 783 #define ADC_SC2_ACREN(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ACREN_SHIFT)) & ADC_SC2_ACREN_MASK) 784 785 #define ADC_SC2_ACFGT_MASK (0x10U) 786 #define ADC_SC2_ACFGT_SHIFT (4U) 787 /*! ACFGT - Compare Function Greater Than Enable 788 * 0b0..Configures less than threshold, outside range not inclusive and inside range not inclusive; functionality 789 * based on the values placed in CV1 and CV2. 790 * 0b1..Configures greater than or equal to threshold, outside and inside ranges inclusive; functionality based on the values placed in CV1 and CV2. 791 */ 792 #define ADC_SC2_ACFGT(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ACFGT_SHIFT)) & ADC_SC2_ACFGT_MASK) 793 794 #define ADC_SC2_ACFE_MASK (0x20U) 795 #define ADC_SC2_ACFE_SHIFT (5U) 796 /*! ACFE - Compare Function Enable 797 * 0b0..Compare function disabled. 798 * 0b1..Compare function enabled. 799 */ 800 #define ADC_SC2_ACFE(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ACFE_SHIFT)) & ADC_SC2_ACFE_MASK) 801 802 #define ADC_SC2_ADTRG_MASK (0x40U) 803 #define ADC_SC2_ADTRG_SHIFT (6U) 804 /*! ADTRG - Conversion Trigger Select 805 * 0b0..Software trigger selected. 806 * 0b1..Hardware trigger selected. 807 */ 808 #define ADC_SC2_ADTRG(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ADTRG_SHIFT)) & ADC_SC2_ADTRG_MASK) 809 810 #define ADC_SC2_ADACT_MASK (0x80U) 811 #define ADC_SC2_ADACT_SHIFT (7U) 812 /*! ADACT - Conversion Active 813 * 0b0..Conversion not in progress. 814 * 0b1..Conversion in progress. 815 */ 816 #define ADC_SC2_ADACT(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ADACT_SHIFT)) & ADC_SC2_ADACT_MASK) 817 /*! @} */ 818 819 /*! @name SC3 - Status and Control Register 3 */ 820 /*! @{ */ 821 822 #define ADC_SC3_AVGS_MASK (0x3U) 823 #define ADC_SC3_AVGS_SHIFT (0U) 824 /*! AVGS - Hardware Average Select 825 * 0b00..4 samples averaged. 826 * 0b01..8 samples averaged. 827 * 0b10..16 samples averaged. 828 * 0b11..32 samples averaged. 829 */ 830 #define ADC_SC3_AVGS(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_AVGS_SHIFT)) & ADC_SC3_AVGS_MASK) 831 832 #define ADC_SC3_AVGE_MASK (0x4U) 833 #define ADC_SC3_AVGE_SHIFT (2U) 834 /*! AVGE - Hardware Average Enable 835 * 0b0..Hardware average function disabled. 836 * 0b1..Hardware average function enabled. 837 */ 838 #define ADC_SC3_AVGE(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_AVGE_SHIFT)) & ADC_SC3_AVGE_MASK) 839 840 #define ADC_SC3_ADCO_MASK (0x8U) 841 #define ADC_SC3_ADCO_SHIFT (3U) 842 /*! ADCO - Continuous Conversion Enable 843 * 0b0..One conversion or one set of conversions if the hardware average function is enabled, that is, AVGE=1, after initiating a conversion. 844 * 0b1..Continuous conversions or sets of conversions if the hardware average function is enabled, that is, AVGE=1, after initiating a conversion. 845 */ 846 #define ADC_SC3_ADCO(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_ADCO_SHIFT)) & ADC_SC3_ADCO_MASK) 847 848 #define ADC_SC3_CALF_MASK (0x40U) 849 #define ADC_SC3_CALF_SHIFT (6U) 850 /*! CALF - Calibration Failed Flag 851 * 0b0..Calibration completed normally. 852 * 0b1..Calibration failed. ADC accuracy specifications are not guaranteed. 853 */ 854 #define ADC_SC3_CALF(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_CALF_SHIFT)) & ADC_SC3_CALF_MASK) 855 856 #define ADC_SC3_CAL_MASK (0x80U) 857 #define ADC_SC3_CAL_SHIFT (7U) 858 /*! CAL - Calibration 859 */ 860 #define ADC_SC3_CAL(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_CAL_SHIFT)) & ADC_SC3_CAL_MASK) 861 /*! @} */ 862 863 /*! @name OFS - ADC Offset Correction Register */ 864 /*! @{ */ 865 866 #define ADC_OFS_OFS_MASK (0xFFFFU) 867 #define ADC_OFS_OFS_SHIFT (0U) 868 /*! OFS - Offset Error Correction Value 869 */ 870 #define ADC_OFS_OFS(x) (((uint32_t)(((uint32_t)(x)) << ADC_OFS_OFS_SHIFT)) & ADC_OFS_OFS_MASK) 871 /*! @} */ 872 873 /*! @name PG - ADC Plus-Side Gain Register */ 874 /*! @{ */ 875 876 #define ADC_PG_PG_MASK (0xFFFFU) 877 #define ADC_PG_PG_SHIFT (0U) 878 /*! PG - Plus-Side Gain 879 */ 880 #define ADC_PG_PG(x) (((uint32_t)(((uint32_t)(x)) << ADC_PG_PG_SHIFT)) & ADC_PG_PG_MASK) 881 /*! @} */ 882 883 /*! @name CLPD - ADC Plus-Side General Calibration Value Register */ 884 /*! @{ */ 885 886 #define ADC_CLPD_CLPD_MASK (0x3FU) 887 #define ADC_CLPD_CLPD_SHIFT (0U) 888 /*! CLPD - Calibration Value 889 */ 890 #define ADC_CLPD_CLPD(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLPD_CLPD_SHIFT)) & ADC_CLPD_CLPD_MASK) 891 /*! @} */ 892 893 /*! @name CLPS - ADC Plus-Side General Calibration Value Register */ 894 /*! @{ */ 895 896 #define ADC_CLPS_CLPS_MASK (0x3FU) 897 #define ADC_CLPS_CLPS_SHIFT (0U) 898 /*! CLPS - Calibration Value 899 */ 900 #define ADC_CLPS_CLPS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLPS_CLPS_SHIFT)) & ADC_CLPS_CLPS_MASK) 901 /*! @} */ 902 903 /*! @name CLP4 - ADC Plus-Side General Calibration Value Register */ 904 /*! @{ */ 905 906 #define ADC_CLP4_CLP4_MASK (0x3FFU) 907 #define ADC_CLP4_CLP4_SHIFT (0U) 908 /*! CLP4 - Calibration Value 909 */ 910 #define ADC_CLP4_CLP4(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP4_CLP4_SHIFT)) & ADC_CLP4_CLP4_MASK) 911 /*! @} */ 912 913 /*! @name CLP3 - ADC Plus-Side General Calibration Value Register */ 914 /*! @{ */ 915 916 #define ADC_CLP3_CLP3_MASK (0x1FFU) 917 #define ADC_CLP3_CLP3_SHIFT (0U) 918 /*! CLP3 - Calibration Value 919 */ 920 #define ADC_CLP3_CLP3(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP3_CLP3_SHIFT)) & ADC_CLP3_CLP3_MASK) 921 /*! @} */ 922 923 /*! @name CLP2 - ADC Plus-Side General Calibration Value Register */ 924 /*! @{ */ 925 926 #define ADC_CLP2_CLP2_MASK (0xFFU) 927 #define ADC_CLP2_CLP2_SHIFT (0U) 928 /*! CLP2 - Calibration Value 929 */ 930 #define ADC_CLP2_CLP2(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP2_CLP2_SHIFT)) & ADC_CLP2_CLP2_MASK) 931 /*! @} */ 932 933 /*! @name CLP1 - ADC Plus-Side General Calibration Value Register */ 934 /*! @{ */ 935 936 #define ADC_CLP1_CLP1_MASK (0x7FU) 937 #define ADC_CLP1_CLP1_SHIFT (0U) 938 /*! CLP1 - Calibration Value 939 */ 940 #define ADC_CLP1_CLP1(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP1_CLP1_SHIFT)) & ADC_CLP1_CLP1_MASK) 941 /*! @} */ 942 943 /*! @name CLP0 - ADC Plus-Side General Calibration Value Register */ 944 /*! @{ */ 945 946 #define ADC_CLP0_CLP0_MASK (0x3FU) 947 #define ADC_CLP0_CLP0_SHIFT (0U) 948 /*! CLP0 - Calibration Value 949 */ 950 #define ADC_CLP0_CLP0(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP0_CLP0_SHIFT)) & ADC_CLP0_CLP0_MASK) 951 /*! @} */ 952 953 954 /*! 955 * @} 956 */ /* end of group ADC_Register_Masks */ 957 958 959 /* ADC - Peripheral instance base addresses */ 960 /** Peripheral ADC base address */ 961 #define ADC_BASE (0x4002B000u) 962 /** Peripheral ADC base pointer */ 963 #define ADC ((ADC_Type *)ADC_BASE) 964 /** Array initializer of ADC peripheral base addresses */ 965 #define ADC_BASE_ADDRS { ADC_BASE } 966 /** Array initializer of ADC peripheral base pointers */ 967 #define ADC_BASE_PTRS { ADC } 968 /** Interrupt vectors for the ADC peripheral type */ 969 #define ADC_IRQS { ADC_IRQn } 970 971 /*! 972 * @} 973 */ /* end of group ADC_Peripheral_Access_Layer */ 974 975 976 /* ---------------------------------------------------------------------------- 977 -- AFE Peripheral Access Layer 978 ---------------------------------------------------------------------------- */ 979 980 /*! 981 * @addtogroup AFE_Peripheral_Access_Layer AFE Peripheral Access Layer 982 * @{ 983 */ 984 985 /** AFE - Register Layout Typedef */ 986 typedef struct { 987 __IO uint32_t CFR[4]; /**< Channel0 Configuration Register..Channel3 Configuration Register, array offset: 0x0, array step: 0x4 */ 988 uint8_t RESERVED_0[8]; 989 __IO uint32_t CR; /**< Control Register, offset: 0x18 */ 990 __IO uint32_t CKR; /**< Clock Configuration Register, offset: 0x1C */ 991 __IO uint32_t DI; /**< DMA and Interrupt Register, offset: 0x20 */ 992 uint8_t RESERVED_1[8]; 993 __IO uint32_t DR[4]; /**< Channel0 Delay Register..Channel3 Delay Register, array offset: 0x2C, array step: 0x4 */ 994 uint8_t RESERVED_2[8]; 995 __I uint32_t RR[4]; /**< Channel0 Result Register..Channel3 Result Register, array offset: 0x44, array step: 0x4 */ 996 uint8_t RESERVED_3[8]; 997 __I uint32_t SR; /**< Status Register, offset: 0x5C */ 998 } AFE_Type; 999 1000 /* ---------------------------------------------------------------------------- 1001 -- AFE Register Masks 1002 ---------------------------------------------------------------------------- */ 1003 1004 /*! 1005 * @addtogroup AFE_Register_Masks AFE Register Masks 1006 * @{ 1007 */ 1008 1009 /*! @name CFR - Channel0 Configuration Register..Channel3 Configuration Register */ 1010 /*! @{ */ 1011 1012 #define AFE_CFR_HW_TRG_MASK (0x200U) 1013 #define AFE_CFR_HW_TRG_SHIFT (9U) 1014 /*! HW_TRG - Hardware Trigger Select 1015 * 0b0..Software trigger select 1016 * 0b1..Hardware trigger select 1017 */ 1018 #define AFE_CFR_HW_TRG(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_HW_TRG_SHIFT)) & AFE_CFR_HW_TRG_MASK) 1019 1020 #define AFE_CFR_DEC_CLK_INP_SEL_MASK (0x400U) 1021 #define AFE_CFR_DEC_CLK_INP_SEL_SHIFT (10U) 1022 /*! DEC_CLK_INP_SEL - Decimator Clock Input Select 1023 * 0b0..On the chip modulator clock will be used 1024 * 0b1..External clock will be used. 1025 */ 1026 #define AFE_CFR_DEC_CLK_INP_SEL(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_DEC_CLK_INP_SEL_SHIFT)) & AFE_CFR_DEC_CLK_INP_SEL_MASK) 1027 1028 #define AFE_CFR_DEC_CLK_EDGE_SEL_MASK (0x800U) 1029 #define AFE_CFR_DEC_CLK_EDGE_SEL_SHIFT (11U) 1030 /*! DEC_CLK_EDGE_SEL - Decimator Clock Edge Select 1031 * 0b0..Posedge will be used. 1032 * 0b1..Negedge will be used. 1033 */ 1034 #define AFE_CFR_DEC_CLK_EDGE_SEL(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_DEC_CLK_EDGE_SEL_SHIFT)) & AFE_CFR_DEC_CLK_EDGE_SEL_MASK) 1035 1036 #define AFE_CFR_CC_MASK (0x1000U) 1037 #define AFE_CFR_CC_SHIFT (12U) 1038 /*! CC - Continuous Conversion/Single Conversion Mode Select 1039 * 0b0..One conversion following a triggering event 1040 * 0b1..Continuous conversions following a triggering event. 1041 */ 1042 #define AFE_CFR_CC(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_CC_SHIFT)) & AFE_CFR_CC_MASK) 1043 1044 #define AFE_CFR_DEC_EN_MASK (0x2000U) 1045 #define AFE_CFR_DEC_EN_SHIFT (13U) 1046 /*! DEC_EN - Decimation Filter enable 1047 * 0b0..Decimation filter is disabled. 1048 * 0b1..Decimation filter is enabled. 1049 */ 1050 #define AFE_CFR_DEC_EN(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_DEC_EN_SHIFT)) & AFE_CFR_DEC_EN_MASK) 1051 1052 #define AFE_CFR_SD_MOD_EN_MASK (0x4000U) 1053 #define AFE_CFR_SD_MOD_EN_SHIFT (14U) 1054 /*! SD_MOD_EN - Sigma Delta Modulator enable 1055 * 0b0..SD ADC1 is disabled 1056 * 0b1..SD ADC1 is enabled 1057 */ 1058 #define AFE_CFR_SD_MOD_EN(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_SD_MOD_EN_SHIFT)) & AFE_CFR_SD_MOD_EN_MASK) 1059 1060 #define AFE_CFR_BYP_MODE_MASK (0x20000U) 1061 #define AFE_CFR_BYP_MODE_SHIFT (17U) 1062 /*! BYP_MODE - AFE Channel3 bypass mode 1063 * 0b0..Normal mode 1064 * 0b1..Bypass mode where ADC and PGA of channel0 are disabled. 1065 */ 1066 #define AFE_CFR_BYP_MODE(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_BYP_MODE_SHIFT)) & AFE_CFR_BYP_MODE_MASK) 1067 1068 #define AFE_CFR_PGA_GAIN_SEL_MASK (0x380000U) 1069 #define AFE_CFR_PGA_GAIN_SEL_SHIFT (19U) 1070 /*! PGA_GAIN_SEL - PGA Gain Select 1071 * 0b000..reserved 1072 * 0b001..1x (default) 1073 * 0b010..2x 1074 * 0b011..4x 1075 * 0b100..8x 1076 * 0b101..16x 1077 * 0b110..32x 1078 * 0b111..reserved 1079 */ 1080 #define AFE_CFR_PGA_GAIN_SEL(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_PGA_GAIN_SEL_SHIFT)) & AFE_CFR_PGA_GAIN_SEL_MASK) 1081 1082 #define AFE_CFR_PGA_EN_MASK (0x1000000U) 1083 #define AFE_CFR_PGA_EN_SHIFT (24U) 1084 /*! PGA_EN - PGA enable 1085 * 0b0..PGA disabled 1086 * 0b1..PGA enabled 1087 */ 1088 #define AFE_CFR_PGA_EN(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_PGA_EN_SHIFT)) & AFE_CFR_PGA_EN_MASK) 1089 1090 #define AFE_CFR_DEC_OSR_MASK (0xE0000000U) 1091 #define AFE_CFR_DEC_OSR_SHIFT (29U) 1092 /*! DEC_OSR - Decimator OverSampling Ratio select 1093 * 0b000..64 1094 * 0b001..128 1095 * 0b010..256 1096 * 0b011..512 1097 * 0b100..1024 1098 * 0b101..2048 1099 */ 1100 #define AFE_CFR_DEC_OSR(x) (((uint32_t)(((uint32_t)(x)) << AFE_CFR_DEC_OSR_SHIFT)) & AFE_CFR_DEC_OSR_MASK) 1101 /*! @} */ 1102 1103 /* The count of AFE_CFR */ 1104 #define AFE_CFR_COUNT (4U) 1105 1106 /*! @name CR - Control Register */ 1107 /*! @{ */ 1108 1109 #define AFE_CR_STRTUP_CNT_MASK (0xFE00U) 1110 #define AFE_CR_STRTUP_CNT_SHIFT (9U) 1111 /*! STRTUP_CNT - Start up count 1112 */ 1113 #define AFE_CR_STRTUP_CNT(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_STRTUP_CNT_SHIFT)) & AFE_CR_STRTUP_CNT_MASK) 1114 1115 #define AFE_CR_RESULT_FORMAT_MASK (0x40000U) 1116 #define AFE_CR_RESULT_FORMAT_SHIFT (18U) 1117 /*! RESULT_FORMAT - Result Format 1118 * 0b0..Left justified 2's complement 32-bit : SVVVVVVVVVVVVVVVVVVVVVVV00000000 where (S= sign bit , V=valid result value, 0=zero) 1119 * 0b1..Right justified 2's complement 32-bit : SSSSSSSSSVVVVVVVVVVVVVVVVVVVVVVV where (S= sign bit , V= valid result value, 0= zero) 1120 */ 1121 #define AFE_CR_RESULT_FORMAT(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_RESULT_FORMAT_SHIFT)) & AFE_CR_RESULT_FORMAT_MASK) 1122 1123 #define AFE_CR_DLY_OK_MASK (0x200000U) 1124 #define AFE_CR_DLY_OK_SHIFT (21U) 1125 /*! DLY_OK - Delay OK 1126 */ 1127 #define AFE_CR_DLY_OK(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_DLY_OK_SHIFT)) & AFE_CR_DLY_OK_MASK) 1128 1129 #define AFE_CR_RST_B_MASK (0x400000U) 1130 #define AFE_CR_RST_B_SHIFT (22U) 1131 /*! RST_B - Software Reset 1132 * 0b0..All ADCs, PGAs and Decimation filters are disabled. Clock Configuration bits will be reset. 1133 * 0b1...= All ADCs, PGAs and Decimation filters are enabled. 1134 */ 1135 #define AFE_CR_RST_B(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_RST_B_SHIFT)) & AFE_CR_RST_B_MASK) 1136 1137 #define AFE_CR_LPM_EN_MASK (0x2000000U) 1138 #define AFE_CR_LPM_EN_SHIFT (25U) 1139 /*! LPM_EN - Low power Mode enable 1140 * 0b0..AFE will be in normal mode 1141 * 0b1..AFE will be in low power mode. Setting this bit reduce the current consumption of ADC and Buffer 1142 * Amplifier , the max modulator clock frequency is below 1Mhz. 1143 */ 1144 #define AFE_CR_LPM_EN(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_LPM_EN_SHIFT)) & AFE_CR_LPM_EN_MASK) 1145 1146 #define AFE_CR_SOFT_TRG3_MASK (0x8000000U) 1147 #define AFE_CR_SOFT_TRG3_SHIFT (27U) 1148 /*! SOFT_TRG3 - Software Trigger3 1149 */ 1150 #define AFE_CR_SOFT_TRG3(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_SOFT_TRG3_SHIFT)) & AFE_CR_SOFT_TRG3_MASK) 1151 1152 #define AFE_CR_SOFT_TRG2_MASK (0x10000000U) 1153 #define AFE_CR_SOFT_TRG2_SHIFT (28U) 1154 /*! SOFT_TRG2 - Software Trigger2 1155 */ 1156 #define AFE_CR_SOFT_TRG2(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_SOFT_TRG2_SHIFT)) & AFE_CR_SOFT_TRG2_MASK) 1157 1158 #define AFE_CR_SOFT_TRG1_MASK (0x20000000U) 1159 #define AFE_CR_SOFT_TRG1_SHIFT (29U) 1160 /*! SOFT_TRG1 - Software Trigger1 1161 */ 1162 #define AFE_CR_SOFT_TRG1(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_SOFT_TRG1_SHIFT)) & AFE_CR_SOFT_TRG1_MASK) 1163 1164 #define AFE_CR_SOFT_TRG0_MASK (0x40000000U) 1165 #define AFE_CR_SOFT_TRG0_SHIFT (30U) 1166 /*! SOFT_TRG0 - Software Trigger0 1167 */ 1168 #define AFE_CR_SOFT_TRG0(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_SOFT_TRG0_SHIFT)) & AFE_CR_SOFT_TRG0_MASK) 1169 1170 #define AFE_CR_MSTR_EN_MASK (0x80000000U) 1171 #define AFE_CR_MSTR_EN_SHIFT (31U) 1172 /*! MSTR_EN - AFE Master Enable 1173 * 0b0..All ADCs are disabled. 1174 * 0b1..All ADCs and filters will get simultaneously enabled . 1175 */ 1176 #define AFE_CR_MSTR_EN(x) (((uint32_t)(((uint32_t)(x)) << AFE_CR_MSTR_EN_SHIFT)) & AFE_CR_MSTR_EN_MASK) 1177 /*! @} */ 1178 1179 /*! @name CKR - Clock Configuration Register */ 1180 /*! @{ */ 1181 1182 #define AFE_CKR_CLS_MASK (0x600000U) 1183 #define AFE_CKR_CLS_SHIFT (21U) 1184 /*! CLS - Clock Source Select 1185 * 0b00..mod_clk0 1186 * 0b01..mod_clk1 1187 * 0b10..mod_clk2 1188 * 0b11..mod_clk3 1189 */ 1190 #define AFE_CKR_CLS(x) (((uint32_t)(((uint32_t)(x)) << AFE_CKR_CLS_SHIFT)) & AFE_CKR_CLS_MASK) 1191 1192 #define AFE_CKR_DIV_MASK (0xF0000000U) 1193 #define AFE_CKR_DIV_SHIFT (28U) 1194 /*! DIV - Clock Divider Select 1195 * 0b0000..divide by 1 1196 * 0b0001..divide by 2 (default) 1197 * 0b0010..divide by 4 1198 * 0b0011..divide by 8 1199 * 0b0100..divide by 16 1200 * 0b0101..divide by 32 1201 * 0b0110..divide by 64 1202 * 0b0111..divide by 128 1203 * 0b1xxx..divide by 256 1204 */ 1205 #define AFE_CKR_DIV(x) (((uint32_t)(((uint32_t)(x)) << AFE_CKR_DIV_SHIFT)) & AFE_CKR_DIV_MASK) 1206 /*! @} */ 1207 1208 /*! @name DI - DMA and Interrupt Register */ 1209 /*! @{ */ 1210 1211 #define AFE_DI_INTEN3_MASK (0x800000U) 1212 #define AFE_DI_INTEN3_SHIFT (23U) 1213 /*! INTEN3 - Interrupt Enable 3 1214 */ 1215 #define AFE_DI_INTEN3(x) (((uint32_t)(((uint32_t)(x)) << AFE_DI_INTEN3_SHIFT)) & AFE_DI_INTEN3_MASK) 1216 1217 #define AFE_DI_INTEN2_MASK (0x1000000U) 1218 #define AFE_DI_INTEN2_SHIFT (24U) 1219 /*! INTEN2 - Interrupt Enable 2 1220 */ 1221 #define AFE_DI_INTEN2(x) (((uint32_t)(((uint32_t)(x)) << AFE_DI_INTEN2_SHIFT)) & AFE_DI_INTEN2_MASK) 1222 1223 #define AFE_DI_INTEN1_MASK (0x2000000U) 1224 #define AFE_DI_INTEN1_SHIFT (25U) 1225 /*! INTEN1 - Interrupt Enable 1 1226 */ 1227 #define AFE_DI_INTEN1(x) (((uint32_t)(((uint32_t)(x)) << AFE_DI_INTEN1_SHIFT)) & AFE_DI_INTEN1_MASK) 1228 1229 #define AFE_DI_INTEN0_MASK (0x4000000U) 1230 #define AFE_DI_INTEN0_SHIFT (26U) 1231 /*! INTEN0 - Interrupt Enable 0 1232 */ 1233 #define AFE_DI_INTEN0(x) (((uint32_t)(((uint32_t)(x)) << AFE_DI_INTEN0_SHIFT)) & AFE_DI_INTEN0_MASK) 1234 1235 #define AFE_DI_DMAEN3_MASK (0x10000000U) 1236 #define AFE_DI_DMAEN3_SHIFT (28U) 1237 /*! DMAEN3 - DMA Enable3 1238 */ 1239 #define AFE_DI_DMAEN3(x) (((uint32_t)(((uint32_t)(x)) << AFE_DI_DMAEN3_SHIFT)) & AFE_DI_DMAEN3_MASK) 1240 1241 #define AFE_DI_DMAEN2_MASK (0x20000000U) 1242 #define AFE_DI_DMAEN2_SHIFT (29U) 1243 /*! DMAEN2 - DMA Enable2 1244 */ 1245 #define AFE_DI_DMAEN2(x) (((uint32_t)(((uint32_t)(x)) << AFE_DI_DMAEN2_SHIFT)) & AFE_DI_DMAEN2_MASK) 1246 1247 #define AFE_DI_DMAEN1_MASK (0x40000000U) 1248 #define AFE_DI_DMAEN1_SHIFT (30U) 1249 /*! DMAEN1 - DMA Enable1 1250 */ 1251 #define AFE_DI_DMAEN1(x) (((uint32_t)(((uint32_t)(x)) << AFE_DI_DMAEN1_SHIFT)) & AFE_DI_DMAEN1_MASK) 1252 1253 #define AFE_DI_DMAEN0_MASK (0x80000000U) 1254 #define AFE_DI_DMAEN0_SHIFT (31U) 1255 /*! DMAEN0 - DMA Enable0 1256 */ 1257 #define AFE_DI_DMAEN0(x) (((uint32_t)(((uint32_t)(x)) << AFE_DI_DMAEN0_SHIFT)) & AFE_DI_DMAEN0_MASK) 1258 /*! @} */ 1259 1260 /*! @name DR - Channel0 Delay Register..Channel3 Delay Register */ 1261 /*! @{ */ 1262 1263 #define AFE_DR_DLY_MASK (0x7FFU) 1264 #define AFE_DR_DLY_SHIFT (0U) 1265 /*! DLY - Delay 1266 */ 1267 #define AFE_DR_DLY(x) (((uint32_t)(((uint32_t)(x)) << AFE_DR_DLY_SHIFT)) & AFE_DR_DLY_MASK) 1268 /*! @} */ 1269 1270 /* The count of AFE_DR */ 1271 #define AFE_DR_COUNT (4U) 1272 1273 /*! @name RR - Channel0 Result Register..Channel3 Result Register */ 1274 /*! @{ */ 1275 1276 #define AFE_RR_SDR_MASK (0x7FFFFFU) 1277 #define AFE_RR_SDR_SHIFT (0U) 1278 /*! SDR - Sample Data result 1279 */ 1280 #define AFE_RR_SDR(x) (((uint32_t)(((uint32_t)(x)) << AFE_RR_SDR_SHIFT)) & AFE_RR_SDR_MASK) 1281 1282 #define AFE_RR_SIGN_BITS_MASK (0xFF800000U) 1283 #define AFE_RR_SIGN_BITS_SHIFT (23U) 1284 /*! SIGN_BITS - Sign Bits 1285 */ 1286 #define AFE_RR_SIGN_BITS(x) (((uint32_t)(((uint32_t)(x)) << AFE_RR_SIGN_BITS_SHIFT)) & AFE_RR_SIGN_BITS_MASK) 1287 /*! @} */ 1288 1289 /* The count of AFE_RR */ 1290 #define AFE_RR_COUNT (4U) 1291 1292 /*! @name SR - Status Register */ 1293 /*! @{ */ 1294 1295 #define AFE_SR_RDY3_MASK (0x10000U) 1296 #define AFE_SR_RDY3_SHIFT (16U) 1297 /*! RDY3 - AFE Ready4 1298 * 0b0..AFE Channel3 is disabled or has not completed its start up period 1299 * 0b1..AFE Channel3 is ready to initiate conversions. 1300 */ 1301 #define AFE_SR_RDY3(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_RDY3_SHIFT)) & AFE_SR_RDY3_MASK) 1302 1303 #define AFE_SR_RDY2_MASK (0x20000U) 1304 #define AFE_SR_RDY2_SHIFT (17U) 1305 /*! RDY2 - AFE Ready3 1306 * 0b0..AFE Channel2 is disabled or has not completed its start up period 1307 * 0b1..AFE Channel2 is ready to initiate conversions. 1308 */ 1309 #define AFE_SR_RDY2(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_RDY2_SHIFT)) & AFE_SR_RDY2_MASK) 1310 1311 #define AFE_SR_RDY1_MASK (0x40000U) 1312 #define AFE_SR_RDY1_SHIFT (18U) 1313 /*! RDY1 - AFE Ready2 1314 * 0b0..AFE Channel1 is disabled or has not completed its start up period 1315 * 0b1..AFE Channel1 is ready to initiate conversions. 1316 */ 1317 #define AFE_SR_RDY1(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_RDY1_SHIFT)) & AFE_SR_RDY1_MASK) 1318 1319 #define AFE_SR_RDY0_MASK (0x80000U) 1320 #define AFE_SR_RDY0_SHIFT (19U) 1321 /*! RDY0 - AFE Ready1 1322 * 0b0..AFE Channel0 is disabled or has not completed its start up period 1323 * 0b1..AFE Channel0 is ready to initiate conversions. 1324 */ 1325 #define AFE_SR_RDY0(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_RDY0_SHIFT)) & AFE_SR_RDY0_MASK) 1326 1327 #define AFE_SR_OVR3_MASK (0x200000U) 1328 #define AFE_SR_OVR3_SHIFT (21U) 1329 /*! OVR3 - Overflow Flag 1330 */ 1331 #define AFE_SR_OVR3(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_OVR3_SHIFT)) & AFE_SR_OVR3_MASK) 1332 1333 #define AFE_SR_OVR2_MASK (0x400000U) 1334 #define AFE_SR_OVR2_SHIFT (22U) 1335 /*! OVR2 - Overflow Flag 1336 */ 1337 #define AFE_SR_OVR2(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_OVR2_SHIFT)) & AFE_SR_OVR2_MASK) 1338 1339 #define AFE_SR_OVR1_MASK (0x800000U) 1340 #define AFE_SR_OVR1_SHIFT (23U) 1341 /*! OVR1 - Overflow Flag 1342 */ 1343 #define AFE_SR_OVR1(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_OVR1_SHIFT)) & AFE_SR_OVR1_MASK) 1344 1345 #define AFE_SR_OVR0_MASK (0x1000000U) 1346 #define AFE_SR_OVR0_SHIFT (24U) 1347 /*! OVR0 - Overflow Flag 1348 */ 1349 #define AFE_SR_OVR0(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_OVR0_SHIFT)) & AFE_SR_OVR0_MASK) 1350 1351 #define AFE_SR_COC3_MASK (0x10000000U) 1352 #define AFE_SR_COC3_SHIFT (28U) 1353 /*! COC3 - Conversion Complete 1354 */ 1355 #define AFE_SR_COC3(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_COC3_SHIFT)) & AFE_SR_COC3_MASK) 1356 1357 #define AFE_SR_COC2_MASK (0x20000000U) 1358 #define AFE_SR_COC2_SHIFT (29U) 1359 /*! COC2 - Conversion Complete 1360 */ 1361 #define AFE_SR_COC2(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_COC2_SHIFT)) & AFE_SR_COC2_MASK) 1362 1363 #define AFE_SR_COC1_MASK (0x40000000U) 1364 #define AFE_SR_COC1_SHIFT (30U) 1365 /*! COC1 - Conversion Complete 1366 */ 1367 #define AFE_SR_COC1(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_COC1_SHIFT)) & AFE_SR_COC1_MASK) 1368 1369 #define AFE_SR_COC0_MASK (0x80000000U) 1370 #define AFE_SR_COC0_SHIFT (31U) 1371 /*! COC0 - Conversion Complete 1372 */ 1373 #define AFE_SR_COC0(x) (((uint32_t)(((uint32_t)(x)) << AFE_SR_COC0_SHIFT)) & AFE_SR_COC0_MASK) 1374 /*! @} */ 1375 1376 1377 /*! 1378 * @} 1379 */ /* end of group AFE_Register_Masks */ 1380 1381 1382 /* AFE - Peripheral instance base addresses */ 1383 /** Peripheral AFE base address */ 1384 #define AFE_BASE (0x40030000u) 1385 /** Peripheral AFE base pointer */ 1386 #define AFE ((AFE_Type *)AFE_BASE) 1387 /** Array initializer of AFE peripheral base addresses */ 1388 #define AFE_BASE_ADDRS { AFE_BASE } 1389 /** Array initializer of AFE peripheral base pointers */ 1390 #define AFE_BASE_PTRS { AFE } 1391 /** Interrupt vectors for the AFE peripheral type */ 1392 #define AFE_IRQS { { AFE_CH0_IRQn, AFE_CH1_IRQn, AFE_CH2_IRQn, AFE_CH3_IRQn } } 1393 1394 /*! 1395 * @} 1396 */ /* end of group AFE_Peripheral_Access_Layer */ 1397 1398 1399 /* ---------------------------------------------------------------------------- 1400 -- AIPS Peripheral Access Layer 1401 ---------------------------------------------------------------------------- */ 1402 1403 /*! 1404 * @addtogroup AIPS_Peripheral_Access_Layer AIPS Peripheral Access Layer 1405 * @{ 1406 */ 1407 1408 /** AIPS - Register Layout Typedef */ 1409 typedef struct { 1410 uint8_t RESERVED_0[32]; 1411 __IO uint32_t PACRA; /**< Peripheral Access Control Register, offset: 0x20 */ 1412 __IO uint32_t PACRB; /**< Peripheral Access Control Register, offset: 0x24 */ 1413 uint8_t RESERVED_1[24]; 1414 __IO uint32_t PACRE; /**< Peripheral Access Control Register, offset: 0x40 */ 1415 __IO uint32_t PACRF; /**< Peripheral Access Control Register, offset: 0x44 */ 1416 __IO uint32_t PACRG; /**< Peripheral Access Control Register, offset: 0x48 */ 1417 __IO uint32_t PACRH; /**< Peripheral Access Control Register, offset: 0x4C */ 1418 __IO uint32_t PACRI; /**< Peripheral Access Control Register, offset: 0x50 */ 1419 __IO uint32_t PACRJ; /**< Peripheral Access Control Register, offset: 0x54 */ 1420 __IO uint32_t PACRK; /**< Peripheral Access Control Register, offset: 0x58 */ 1421 __IO uint32_t PACRL; /**< Peripheral Access Control Register, offset: 0x5C */ 1422 __IO uint32_t PACRM; /**< Peripheral Access Control Register, offset: 0x60 */ 1423 __IO uint32_t PACRN; /**< Peripheral Access Control Register, offset: 0x64 */ 1424 __IO uint32_t PACRO; /**< Peripheral Access Control Register, offset: 0x68 */ 1425 __IO uint32_t PACRP; /**< Peripheral Access Control Register, offset: 0x6C */ 1426 } AIPS_Type; 1427 1428 /* ---------------------------------------------------------------------------- 1429 -- AIPS Register Masks 1430 ---------------------------------------------------------------------------- */ 1431 1432 /*! 1433 * @addtogroup AIPS_Register_Masks AIPS Register Masks 1434 * @{ 1435 */ 1436 1437 /*! @name PACRA - Peripheral Access Control Register */ 1438 /*! @{ */ 1439 1440 #define AIPS_PACRA_AC7_MASK (0x7U) 1441 #define AIPS_PACRA_AC7_SHIFT (0U) 1442 /*! AC7 - Attribute Check 1443 */ 1444 #define AIPS_PACRA_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_AC7_SHIFT)) & AIPS_PACRA_AC7_MASK) 1445 1446 #define AIPS_PACRA_RO7_MASK (0x8U) 1447 #define AIPS_PACRA_RO7_SHIFT (3U) 1448 /*! RO7 - Read Only 1449 * 0b0..Writes to corresponding AC field are allowed. 1450 * 0b1..Writes to corresponding AC field are ignored. 1451 */ 1452 #define AIPS_PACRA_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_RO7_SHIFT)) & AIPS_PACRA_RO7_MASK) 1453 1454 #define AIPS_PACRA_AC6_MASK (0x70U) 1455 #define AIPS_PACRA_AC6_SHIFT (4U) 1456 /*! AC6 - Attribute Check 1457 */ 1458 #define AIPS_PACRA_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_AC6_SHIFT)) & AIPS_PACRA_AC6_MASK) 1459 1460 #define AIPS_PACRA_RO6_MASK (0x80U) 1461 #define AIPS_PACRA_RO6_SHIFT (7U) 1462 /*! RO6 - Read Only 1463 * 0b0..Writes to corresponding AC field are allowed. 1464 * 0b1..Writes to corresponding AC field are ignored. 1465 */ 1466 #define AIPS_PACRA_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_RO6_SHIFT)) & AIPS_PACRA_RO6_MASK) 1467 1468 #define AIPS_PACRA_AC5_MASK (0x700U) 1469 #define AIPS_PACRA_AC5_SHIFT (8U) 1470 /*! AC5 - Attribute Check 1471 */ 1472 #define AIPS_PACRA_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_AC5_SHIFT)) & AIPS_PACRA_AC5_MASK) 1473 1474 #define AIPS_PACRA_RO5_MASK (0x800U) 1475 #define AIPS_PACRA_RO5_SHIFT (11U) 1476 /*! RO5 - Read Only 1477 * 0b0..Writes to corresponding AC field are allowed. 1478 * 0b1..Writes to corresponding AC field are ignored. 1479 */ 1480 #define AIPS_PACRA_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_RO5_SHIFT)) & AIPS_PACRA_RO5_MASK) 1481 1482 #define AIPS_PACRA_AC4_MASK (0x7000U) 1483 #define AIPS_PACRA_AC4_SHIFT (12U) 1484 /*! AC4 - Attribute Check 1485 */ 1486 #define AIPS_PACRA_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_AC4_SHIFT)) & AIPS_PACRA_AC4_MASK) 1487 1488 #define AIPS_PACRA_RO4_MASK (0x8000U) 1489 #define AIPS_PACRA_RO4_SHIFT (15U) 1490 /*! RO4 - Read Only 1491 * 0b0..Writes to corresponding AC field are allowed. 1492 * 0b1..Writes to corresponding AC field are ignored. 1493 */ 1494 #define AIPS_PACRA_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_RO4_SHIFT)) & AIPS_PACRA_RO4_MASK) 1495 1496 #define AIPS_PACRA_AC3_MASK (0x70000U) 1497 #define AIPS_PACRA_AC3_SHIFT (16U) 1498 /*! AC3 - Attribute Check 1499 */ 1500 #define AIPS_PACRA_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_AC3_SHIFT)) & AIPS_PACRA_AC3_MASK) 1501 1502 #define AIPS_PACRA_RO3_MASK (0x80000U) 1503 #define AIPS_PACRA_RO3_SHIFT (19U) 1504 /*! RO3 - Read Only 1505 * 0b0..Writes to corresponding AC field are allowed. 1506 * 0b1..Writes to corresponding AC field are ignored. 1507 */ 1508 #define AIPS_PACRA_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_RO3_SHIFT)) & AIPS_PACRA_RO3_MASK) 1509 1510 #define AIPS_PACRA_AC2_MASK (0x700000U) 1511 #define AIPS_PACRA_AC2_SHIFT (20U) 1512 /*! AC2 - Attribute Check 1513 */ 1514 #define AIPS_PACRA_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_AC2_SHIFT)) & AIPS_PACRA_AC2_MASK) 1515 1516 #define AIPS_PACRA_RO2_MASK (0x800000U) 1517 #define AIPS_PACRA_RO2_SHIFT (23U) 1518 /*! RO2 - Read Only 1519 * 0b0..Writes to corresponding AC field are allowed. 1520 * 0b1..Writes to corresponding AC field are ignored. 1521 */ 1522 #define AIPS_PACRA_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_RO2_SHIFT)) & AIPS_PACRA_RO2_MASK) 1523 1524 #define AIPS_PACRA_AC1_MASK (0x7000000U) 1525 #define AIPS_PACRA_AC1_SHIFT (24U) 1526 /*! AC1 - Attribute Check 1527 */ 1528 #define AIPS_PACRA_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_AC1_SHIFT)) & AIPS_PACRA_AC1_MASK) 1529 1530 #define AIPS_PACRA_RO1_MASK (0x8000000U) 1531 #define AIPS_PACRA_RO1_SHIFT (27U) 1532 /*! RO1 - Read Only 1533 * 0b0..Writes to corresponding AC field are allowed. 1534 * 0b1..Writes to corresponding AC field are ignored. 1535 */ 1536 #define AIPS_PACRA_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_RO1_SHIFT)) & AIPS_PACRA_RO1_MASK) 1537 1538 #define AIPS_PACRA_AC0_MASK (0x70000000U) 1539 #define AIPS_PACRA_AC0_SHIFT (28U) 1540 /*! AC0 - Attribute Check 1541 */ 1542 #define AIPS_PACRA_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_AC0_SHIFT)) & AIPS_PACRA_AC0_MASK) 1543 1544 #define AIPS_PACRA_RO0_MASK (0x80000000U) 1545 #define AIPS_PACRA_RO0_SHIFT (31U) 1546 /*! RO0 - Read Only 1547 * 0b0..Writes to corresponding AC field are allowed. 1548 * 0b1..Writes to corresponding AC field are ignored. 1549 */ 1550 #define AIPS_PACRA_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRA_RO0_SHIFT)) & AIPS_PACRA_RO0_MASK) 1551 /*! @} */ 1552 1553 /*! @name PACRB - Peripheral Access Control Register */ 1554 /*! @{ */ 1555 1556 #define AIPS_PACRB_AC7_MASK (0x7U) 1557 #define AIPS_PACRB_AC7_SHIFT (0U) 1558 /*! AC7 - Attribute Check 1559 */ 1560 #define AIPS_PACRB_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_AC7_SHIFT)) & AIPS_PACRB_AC7_MASK) 1561 1562 #define AIPS_PACRB_RO7_MASK (0x8U) 1563 #define AIPS_PACRB_RO7_SHIFT (3U) 1564 /*! RO7 - Read Only 1565 * 0b0..Writes to corresponding AC field are allowed. 1566 * 0b1..Writes to corresponding AC field are ignored. 1567 */ 1568 #define AIPS_PACRB_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_RO7_SHIFT)) & AIPS_PACRB_RO7_MASK) 1569 1570 #define AIPS_PACRB_AC6_MASK (0x70U) 1571 #define AIPS_PACRB_AC6_SHIFT (4U) 1572 /*! AC6 - Attribute Check 1573 */ 1574 #define AIPS_PACRB_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_AC6_SHIFT)) & AIPS_PACRB_AC6_MASK) 1575 1576 #define AIPS_PACRB_RO6_MASK (0x80U) 1577 #define AIPS_PACRB_RO6_SHIFT (7U) 1578 /*! RO6 - Read Only 1579 * 0b0..Writes to corresponding AC field are allowed. 1580 * 0b1..Writes to corresponding AC field are ignored. 1581 */ 1582 #define AIPS_PACRB_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_RO6_SHIFT)) & AIPS_PACRB_RO6_MASK) 1583 1584 #define AIPS_PACRB_AC5_MASK (0x700U) 1585 #define AIPS_PACRB_AC5_SHIFT (8U) 1586 /*! AC5 - Attribute Check 1587 */ 1588 #define AIPS_PACRB_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_AC5_SHIFT)) & AIPS_PACRB_AC5_MASK) 1589 1590 #define AIPS_PACRB_RO5_MASK (0x800U) 1591 #define AIPS_PACRB_RO5_SHIFT (11U) 1592 /*! RO5 - Read Only 1593 * 0b0..Writes to corresponding AC field are allowed. 1594 * 0b1..Writes to corresponding AC field are ignored. 1595 */ 1596 #define AIPS_PACRB_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_RO5_SHIFT)) & AIPS_PACRB_RO5_MASK) 1597 1598 #define AIPS_PACRB_AC4_MASK (0x7000U) 1599 #define AIPS_PACRB_AC4_SHIFT (12U) 1600 /*! AC4 - Attribute Check 1601 */ 1602 #define AIPS_PACRB_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_AC4_SHIFT)) & AIPS_PACRB_AC4_MASK) 1603 1604 #define AIPS_PACRB_RO4_MASK (0x8000U) 1605 #define AIPS_PACRB_RO4_SHIFT (15U) 1606 /*! RO4 - Read Only 1607 * 0b0..Writes to corresponding AC field are allowed. 1608 * 0b1..Writes to corresponding AC field are ignored. 1609 */ 1610 #define AIPS_PACRB_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_RO4_SHIFT)) & AIPS_PACRB_RO4_MASK) 1611 1612 #define AIPS_PACRB_AC3_MASK (0x70000U) 1613 #define AIPS_PACRB_AC3_SHIFT (16U) 1614 /*! AC3 - Attribute Check 1615 */ 1616 #define AIPS_PACRB_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_AC3_SHIFT)) & AIPS_PACRB_AC3_MASK) 1617 1618 #define AIPS_PACRB_RO3_MASK (0x80000U) 1619 #define AIPS_PACRB_RO3_SHIFT (19U) 1620 /*! RO3 - Read Only 1621 * 0b0..Writes to corresponding AC field are allowed. 1622 * 0b1..Writes to corresponding AC field are ignored. 1623 */ 1624 #define AIPS_PACRB_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_RO3_SHIFT)) & AIPS_PACRB_RO3_MASK) 1625 1626 #define AIPS_PACRB_AC2_MASK (0x700000U) 1627 #define AIPS_PACRB_AC2_SHIFT (20U) 1628 /*! AC2 - Attribute Check 1629 */ 1630 #define AIPS_PACRB_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_AC2_SHIFT)) & AIPS_PACRB_AC2_MASK) 1631 1632 #define AIPS_PACRB_RO2_MASK (0x800000U) 1633 #define AIPS_PACRB_RO2_SHIFT (23U) 1634 /*! RO2 - Read Only 1635 * 0b0..Writes to corresponding AC field are allowed. 1636 * 0b1..Writes to corresponding AC field are ignored. 1637 */ 1638 #define AIPS_PACRB_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_RO2_SHIFT)) & AIPS_PACRB_RO2_MASK) 1639 1640 #define AIPS_PACRB_AC1_MASK (0x7000000U) 1641 #define AIPS_PACRB_AC1_SHIFT (24U) 1642 /*! AC1 - Attribute Check 1643 */ 1644 #define AIPS_PACRB_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_AC1_SHIFT)) & AIPS_PACRB_AC1_MASK) 1645 1646 #define AIPS_PACRB_RO1_MASK (0x8000000U) 1647 #define AIPS_PACRB_RO1_SHIFT (27U) 1648 /*! RO1 - Read Only 1649 * 0b0..Writes to corresponding AC field are allowed. 1650 * 0b1..Writes to corresponding AC field are ignored. 1651 */ 1652 #define AIPS_PACRB_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_RO1_SHIFT)) & AIPS_PACRB_RO1_MASK) 1653 1654 #define AIPS_PACRB_AC0_MASK (0x70000000U) 1655 #define AIPS_PACRB_AC0_SHIFT (28U) 1656 /*! AC0 - Attribute Check 1657 */ 1658 #define AIPS_PACRB_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_AC0_SHIFT)) & AIPS_PACRB_AC0_MASK) 1659 1660 #define AIPS_PACRB_RO0_MASK (0x80000000U) 1661 #define AIPS_PACRB_RO0_SHIFT (31U) 1662 /*! RO0 - Read Only 1663 * 0b0..Writes to corresponding AC field are allowed. 1664 * 0b1..Writes to corresponding AC field are ignored. 1665 */ 1666 #define AIPS_PACRB_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRB_RO0_SHIFT)) & AIPS_PACRB_RO0_MASK) 1667 /*! @} */ 1668 1669 /*! @name PACRE - Peripheral Access Control Register */ 1670 /*! @{ */ 1671 1672 #define AIPS_PACRE_AC7_MASK (0x7U) 1673 #define AIPS_PACRE_AC7_SHIFT (0U) 1674 /*! AC7 - Attribute Check 1675 */ 1676 #define AIPS_PACRE_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_AC7_SHIFT)) & AIPS_PACRE_AC7_MASK) 1677 1678 #define AIPS_PACRE_RO7_MASK (0x8U) 1679 #define AIPS_PACRE_RO7_SHIFT (3U) 1680 /*! RO7 - Read Only 1681 * 0b0..Writes to corresponding AC field are allowed. 1682 * 0b1..Writes to corresponding AC field are ignored. 1683 */ 1684 #define AIPS_PACRE_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_RO7_SHIFT)) & AIPS_PACRE_RO7_MASK) 1685 1686 #define AIPS_PACRE_AC6_MASK (0x70U) 1687 #define AIPS_PACRE_AC6_SHIFT (4U) 1688 /*! AC6 - Attribute Check 1689 */ 1690 #define AIPS_PACRE_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_AC6_SHIFT)) & AIPS_PACRE_AC6_MASK) 1691 1692 #define AIPS_PACRE_RO6_MASK (0x80U) 1693 #define AIPS_PACRE_RO6_SHIFT (7U) 1694 /*! RO6 - Read Only 1695 * 0b0..Writes to corresponding AC field are allowed. 1696 * 0b1..Writes to corresponding AC field are ignored. 1697 */ 1698 #define AIPS_PACRE_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_RO6_SHIFT)) & AIPS_PACRE_RO6_MASK) 1699 1700 #define AIPS_PACRE_AC5_MASK (0x700U) 1701 #define AIPS_PACRE_AC5_SHIFT (8U) 1702 /*! AC5 - Attribute Check 1703 */ 1704 #define AIPS_PACRE_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_AC5_SHIFT)) & AIPS_PACRE_AC5_MASK) 1705 1706 #define AIPS_PACRE_RO5_MASK (0x800U) 1707 #define AIPS_PACRE_RO5_SHIFT (11U) 1708 /*! RO5 - Read Only 1709 * 0b0..Writes to corresponding AC field are allowed. 1710 * 0b1..Writes to corresponding AC field are ignored. 1711 */ 1712 #define AIPS_PACRE_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_RO5_SHIFT)) & AIPS_PACRE_RO5_MASK) 1713 1714 #define AIPS_PACRE_AC4_MASK (0x7000U) 1715 #define AIPS_PACRE_AC4_SHIFT (12U) 1716 /*! AC4 - Attribute Check 1717 */ 1718 #define AIPS_PACRE_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_AC4_SHIFT)) & AIPS_PACRE_AC4_MASK) 1719 1720 #define AIPS_PACRE_RO4_MASK (0x8000U) 1721 #define AIPS_PACRE_RO4_SHIFT (15U) 1722 /*! RO4 - Read Only 1723 * 0b0..Writes to corresponding AC field are allowed. 1724 * 0b1..Writes to corresponding AC field are ignored. 1725 */ 1726 #define AIPS_PACRE_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_RO4_SHIFT)) & AIPS_PACRE_RO4_MASK) 1727 1728 #define AIPS_PACRE_AC3_MASK (0x70000U) 1729 #define AIPS_PACRE_AC3_SHIFT (16U) 1730 /*! AC3 - Attribute Check 1731 */ 1732 #define AIPS_PACRE_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_AC3_SHIFT)) & AIPS_PACRE_AC3_MASK) 1733 1734 #define AIPS_PACRE_RO3_MASK (0x80000U) 1735 #define AIPS_PACRE_RO3_SHIFT (19U) 1736 /*! RO3 - Read Only 1737 * 0b0..Writes to corresponding AC field are allowed. 1738 * 0b1..Writes to corresponding AC field are ignored. 1739 */ 1740 #define AIPS_PACRE_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_RO3_SHIFT)) & AIPS_PACRE_RO3_MASK) 1741 1742 #define AIPS_PACRE_AC2_MASK (0x700000U) 1743 #define AIPS_PACRE_AC2_SHIFT (20U) 1744 /*! AC2 - Attribute Check 1745 */ 1746 #define AIPS_PACRE_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_AC2_SHIFT)) & AIPS_PACRE_AC2_MASK) 1747 1748 #define AIPS_PACRE_RO2_MASK (0x800000U) 1749 #define AIPS_PACRE_RO2_SHIFT (23U) 1750 /*! RO2 - Read Only 1751 * 0b0..Writes to corresponding AC field are allowed. 1752 * 0b1..Writes to corresponding AC field are ignored. 1753 */ 1754 #define AIPS_PACRE_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_RO2_SHIFT)) & AIPS_PACRE_RO2_MASK) 1755 1756 #define AIPS_PACRE_AC1_MASK (0x7000000U) 1757 #define AIPS_PACRE_AC1_SHIFT (24U) 1758 /*! AC1 - Attribute Check 1759 */ 1760 #define AIPS_PACRE_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_AC1_SHIFT)) & AIPS_PACRE_AC1_MASK) 1761 1762 #define AIPS_PACRE_RO1_MASK (0x8000000U) 1763 #define AIPS_PACRE_RO1_SHIFT (27U) 1764 /*! RO1 - Read Only 1765 * 0b0..Writes to corresponding AC field are allowed. 1766 * 0b1..Writes to corresponding AC field are ignored. 1767 */ 1768 #define AIPS_PACRE_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_RO1_SHIFT)) & AIPS_PACRE_RO1_MASK) 1769 1770 #define AIPS_PACRE_AC0_MASK (0x70000000U) 1771 #define AIPS_PACRE_AC0_SHIFT (28U) 1772 /*! AC0 - Attribute Check 1773 */ 1774 #define AIPS_PACRE_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_AC0_SHIFT)) & AIPS_PACRE_AC0_MASK) 1775 1776 #define AIPS_PACRE_RO0_MASK (0x80000000U) 1777 #define AIPS_PACRE_RO0_SHIFT (31U) 1778 /*! RO0 - Read Only 1779 * 0b0..Writes to corresponding AC field are allowed. 1780 * 0b1..Writes to corresponding AC field are ignored. 1781 */ 1782 #define AIPS_PACRE_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRE_RO0_SHIFT)) & AIPS_PACRE_RO0_MASK) 1783 /*! @} */ 1784 1785 /*! @name PACRF - Peripheral Access Control Register */ 1786 /*! @{ */ 1787 1788 #define AIPS_PACRF_AC7_MASK (0x7U) 1789 #define AIPS_PACRF_AC7_SHIFT (0U) 1790 /*! AC7 - Attribute Check 1791 */ 1792 #define AIPS_PACRF_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_AC7_SHIFT)) & AIPS_PACRF_AC7_MASK) 1793 1794 #define AIPS_PACRF_RO7_MASK (0x8U) 1795 #define AIPS_PACRF_RO7_SHIFT (3U) 1796 /*! RO7 - Read Only 1797 * 0b0..Writes to corresponding AC field are allowed. 1798 * 0b1..Writes to corresponding AC field are ignored. 1799 */ 1800 #define AIPS_PACRF_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_RO7_SHIFT)) & AIPS_PACRF_RO7_MASK) 1801 1802 #define AIPS_PACRF_AC6_MASK (0x70U) 1803 #define AIPS_PACRF_AC6_SHIFT (4U) 1804 /*! AC6 - Attribute Check 1805 */ 1806 #define AIPS_PACRF_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_AC6_SHIFT)) & AIPS_PACRF_AC6_MASK) 1807 1808 #define AIPS_PACRF_RO6_MASK (0x80U) 1809 #define AIPS_PACRF_RO6_SHIFT (7U) 1810 /*! RO6 - Read Only 1811 * 0b0..Writes to corresponding AC field are allowed. 1812 * 0b1..Writes to corresponding AC field are ignored. 1813 */ 1814 #define AIPS_PACRF_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_RO6_SHIFT)) & AIPS_PACRF_RO6_MASK) 1815 1816 #define AIPS_PACRF_AC5_MASK (0x700U) 1817 #define AIPS_PACRF_AC5_SHIFT (8U) 1818 /*! AC5 - Attribute Check 1819 */ 1820 #define AIPS_PACRF_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_AC5_SHIFT)) & AIPS_PACRF_AC5_MASK) 1821 1822 #define AIPS_PACRF_RO5_MASK (0x800U) 1823 #define AIPS_PACRF_RO5_SHIFT (11U) 1824 /*! RO5 - Read Only 1825 * 0b0..Writes to corresponding AC field are allowed. 1826 * 0b1..Writes to corresponding AC field are ignored. 1827 */ 1828 #define AIPS_PACRF_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_RO5_SHIFT)) & AIPS_PACRF_RO5_MASK) 1829 1830 #define AIPS_PACRF_AC4_MASK (0x7000U) 1831 #define AIPS_PACRF_AC4_SHIFT (12U) 1832 /*! AC4 - Attribute Check 1833 */ 1834 #define AIPS_PACRF_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_AC4_SHIFT)) & AIPS_PACRF_AC4_MASK) 1835 1836 #define AIPS_PACRF_RO4_MASK (0x8000U) 1837 #define AIPS_PACRF_RO4_SHIFT (15U) 1838 /*! RO4 - Read Only 1839 * 0b0..Writes to corresponding AC field are allowed. 1840 * 0b1..Writes to corresponding AC field are ignored. 1841 */ 1842 #define AIPS_PACRF_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_RO4_SHIFT)) & AIPS_PACRF_RO4_MASK) 1843 1844 #define AIPS_PACRF_AC3_MASK (0x70000U) 1845 #define AIPS_PACRF_AC3_SHIFT (16U) 1846 /*! AC3 - Attribute Check 1847 */ 1848 #define AIPS_PACRF_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_AC3_SHIFT)) & AIPS_PACRF_AC3_MASK) 1849 1850 #define AIPS_PACRF_RO3_MASK (0x80000U) 1851 #define AIPS_PACRF_RO3_SHIFT (19U) 1852 /*! RO3 - Read Only 1853 * 0b0..Writes to corresponding AC field are allowed. 1854 * 0b1..Writes to corresponding AC field are ignored. 1855 */ 1856 #define AIPS_PACRF_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_RO3_SHIFT)) & AIPS_PACRF_RO3_MASK) 1857 1858 #define AIPS_PACRF_AC2_MASK (0x700000U) 1859 #define AIPS_PACRF_AC2_SHIFT (20U) 1860 /*! AC2 - Attribute Check 1861 */ 1862 #define AIPS_PACRF_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_AC2_SHIFT)) & AIPS_PACRF_AC2_MASK) 1863 1864 #define AIPS_PACRF_RO2_MASK (0x800000U) 1865 #define AIPS_PACRF_RO2_SHIFT (23U) 1866 /*! RO2 - Read Only 1867 * 0b0..Writes to corresponding AC field are allowed. 1868 * 0b1..Writes to corresponding AC field are ignored. 1869 */ 1870 #define AIPS_PACRF_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_RO2_SHIFT)) & AIPS_PACRF_RO2_MASK) 1871 1872 #define AIPS_PACRF_AC1_MASK (0x7000000U) 1873 #define AIPS_PACRF_AC1_SHIFT (24U) 1874 /*! AC1 - Attribute Check 1875 */ 1876 #define AIPS_PACRF_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_AC1_SHIFT)) & AIPS_PACRF_AC1_MASK) 1877 1878 #define AIPS_PACRF_RO1_MASK (0x8000000U) 1879 #define AIPS_PACRF_RO1_SHIFT (27U) 1880 /*! RO1 - Read Only 1881 * 0b0..Writes to corresponding AC field are allowed. 1882 * 0b1..Writes to corresponding AC field are ignored. 1883 */ 1884 #define AIPS_PACRF_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_RO1_SHIFT)) & AIPS_PACRF_RO1_MASK) 1885 1886 #define AIPS_PACRF_AC0_MASK (0x70000000U) 1887 #define AIPS_PACRF_AC0_SHIFT (28U) 1888 /*! AC0 - Attribute Check 1889 */ 1890 #define AIPS_PACRF_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_AC0_SHIFT)) & AIPS_PACRF_AC0_MASK) 1891 1892 #define AIPS_PACRF_RO0_MASK (0x80000000U) 1893 #define AIPS_PACRF_RO0_SHIFT (31U) 1894 /*! RO0 - Read Only 1895 * 0b0..Writes to corresponding AC field are allowed. 1896 * 0b1..Writes to corresponding AC field are ignored. 1897 */ 1898 #define AIPS_PACRF_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRF_RO0_SHIFT)) & AIPS_PACRF_RO0_MASK) 1899 /*! @} */ 1900 1901 /*! @name PACRG - Peripheral Access Control Register */ 1902 /*! @{ */ 1903 1904 #define AIPS_PACRG_AC7_MASK (0x7U) 1905 #define AIPS_PACRG_AC7_SHIFT (0U) 1906 /*! AC7 - Attribute Check 1907 */ 1908 #define AIPS_PACRG_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_AC7_SHIFT)) & AIPS_PACRG_AC7_MASK) 1909 1910 #define AIPS_PACRG_RO7_MASK (0x8U) 1911 #define AIPS_PACRG_RO7_SHIFT (3U) 1912 /*! RO7 - Read Only 1913 * 0b0..Writes to corresponding AC field are allowed. 1914 * 0b1..Writes to corresponding AC field are ignored. 1915 */ 1916 #define AIPS_PACRG_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_RO7_SHIFT)) & AIPS_PACRG_RO7_MASK) 1917 1918 #define AIPS_PACRG_AC6_MASK (0x70U) 1919 #define AIPS_PACRG_AC6_SHIFT (4U) 1920 /*! AC6 - Attribute Check 1921 */ 1922 #define AIPS_PACRG_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_AC6_SHIFT)) & AIPS_PACRG_AC6_MASK) 1923 1924 #define AIPS_PACRG_RO6_MASK (0x80U) 1925 #define AIPS_PACRG_RO6_SHIFT (7U) 1926 /*! RO6 - Read Only 1927 * 0b0..Writes to corresponding AC field are allowed. 1928 * 0b1..Writes to corresponding AC field are ignored. 1929 */ 1930 #define AIPS_PACRG_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_RO6_SHIFT)) & AIPS_PACRG_RO6_MASK) 1931 1932 #define AIPS_PACRG_AC5_MASK (0x700U) 1933 #define AIPS_PACRG_AC5_SHIFT (8U) 1934 /*! AC5 - Attribute Check 1935 */ 1936 #define AIPS_PACRG_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_AC5_SHIFT)) & AIPS_PACRG_AC5_MASK) 1937 1938 #define AIPS_PACRG_RO5_MASK (0x800U) 1939 #define AIPS_PACRG_RO5_SHIFT (11U) 1940 /*! RO5 - Read Only 1941 * 0b0..Writes to corresponding AC field are allowed. 1942 * 0b1..Writes to corresponding AC field are ignored. 1943 */ 1944 #define AIPS_PACRG_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_RO5_SHIFT)) & AIPS_PACRG_RO5_MASK) 1945 1946 #define AIPS_PACRG_AC4_MASK (0x7000U) 1947 #define AIPS_PACRG_AC4_SHIFT (12U) 1948 /*! AC4 - Attribute Check 1949 */ 1950 #define AIPS_PACRG_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_AC4_SHIFT)) & AIPS_PACRG_AC4_MASK) 1951 1952 #define AIPS_PACRG_RO4_MASK (0x8000U) 1953 #define AIPS_PACRG_RO4_SHIFT (15U) 1954 /*! RO4 - Read Only 1955 * 0b0..Writes to corresponding AC field are allowed. 1956 * 0b1..Writes to corresponding AC field are ignored. 1957 */ 1958 #define AIPS_PACRG_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_RO4_SHIFT)) & AIPS_PACRG_RO4_MASK) 1959 1960 #define AIPS_PACRG_AC3_MASK (0x70000U) 1961 #define AIPS_PACRG_AC3_SHIFT (16U) 1962 /*! AC3 - Attribute Check 1963 */ 1964 #define AIPS_PACRG_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_AC3_SHIFT)) & AIPS_PACRG_AC3_MASK) 1965 1966 #define AIPS_PACRG_RO3_MASK (0x80000U) 1967 #define AIPS_PACRG_RO3_SHIFT (19U) 1968 /*! RO3 - Read Only 1969 * 0b0..Writes to corresponding AC field are allowed. 1970 * 0b1..Writes to corresponding AC field are ignored. 1971 */ 1972 #define AIPS_PACRG_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_RO3_SHIFT)) & AIPS_PACRG_RO3_MASK) 1973 1974 #define AIPS_PACRG_AC2_MASK (0x700000U) 1975 #define AIPS_PACRG_AC2_SHIFT (20U) 1976 /*! AC2 - Attribute Check 1977 */ 1978 #define AIPS_PACRG_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_AC2_SHIFT)) & AIPS_PACRG_AC2_MASK) 1979 1980 #define AIPS_PACRG_RO2_MASK (0x800000U) 1981 #define AIPS_PACRG_RO2_SHIFT (23U) 1982 /*! RO2 - Read Only 1983 * 0b0..Writes to corresponding AC field are allowed. 1984 * 0b1..Writes to corresponding AC field are ignored. 1985 */ 1986 #define AIPS_PACRG_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_RO2_SHIFT)) & AIPS_PACRG_RO2_MASK) 1987 1988 #define AIPS_PACRG_AC1_MASK (0x7000000U) 1989 #define AIPS_PACRG_AC1_SHIFT (24U) 1990 /*! AC1 - Attribute Check 1991 */ 1992 #define AIPS_PACRG_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_AC1_SHIFT)) & AIPS_PACRG_AC1_MASK) 1993 1994 #define AIPS_PACRG_RO1_MASK (0x8000000U) 1995 #define AIPS_PACRG_RO1_SHIFT (27U) 1996 /*! RO1 - Read Only 1997 * 0b0..Writes to corresponding AC field are allowed. 1998 * 0b1..Writes to corresponding AC field are ignored. 1999 */ 2000 #define AIPS_PACRG_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_RO1_SHIFT)) & AIPS_PACRG_RO1_MASK) 2001 2002 #define AIPS_PACRG_AC0_MASK (0x70000000U) 2003 #define AIPS_PACRG_AC0_SHIFT (28U) 2004 /*! AC0 - Attribute Check 2005 */ 2006 #define AIPS_PACRG_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_AC0_SHIFT)) & AIPS_PACRG_AC0_MASK) 2007 2008 #define AIPS_PACRG_RO0_MASK (0x80000000U) 2009 #define AIPS_PACRG_RO0_SHIFT (31U) 2010 /*! RO0 - Read Only 2011 * 0b0..Writes to corresponding AC field are allowed. 2012 * 0b1..Writes to corresponding AC field are ignored. 2013 */ 2014 #define AIPS_PACRG_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRG_RO0_SHIFT)) & AIPS_PACRG_RO0_MASK) 2015 /*! @} */ 2016 2017 /*! @name PACRH - Peripheral Access Control Register */ 2018 /*! @{ */ 2019 2020 #define AIPS_PACRH_AC7_MASK (0x7U) 2021 #define AIPS_PACRH_AC7_SHIFT (0U) 2022 /*! AC7 - Attribute Check 2023 */ 2024 #define AIPS_PACRH_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_AC7_SHIFT)) & AIPS_PACRH_AC7_MASK) 2025 2026 #define AIPS_PACRH_RO7_MASK (0x8U) 2027 #define AIPS_PACRH_RO7_SHIFT (3U) 2028 /*! RO7 - Read Only 2029 * 0b0..Writes to corresponding AC field are allowed. 2030 * 0b1..Writes to corresponding AC field are ignored. 2031 */ 2032 #define AIPS_PACRH_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_RO7_SHIFT)) & AIPS_PACRH_RO7_MASK) 2033 2034 #define AIPS_PACRH_AC6_MASK (0x70U) 2035 #define AIPS_PACRH_AC6_SHIFT (4U) 2036 /*! AC6 - Attribute Check 2037 */ 2038 #define AIPS_PACRH_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_AC6_SHIFT)) & AIPS_PACRH_AC6_MASK) 2039 2040 #define AIPS_PACRH_RO6_MASK (0x80U) 2041 #define AIPS_PACRH_RO6_SHIFT (7U) 2042 /*! RO6 - Read Only 2043 * 0b0..Writes to corresponding AC field are allowed. 2044 * 0b1..Writes to corresponding AC field are ignored. 2045 */ 2046 #define AIPS_PACRH_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_RO6_SHIFT)) & AIPS_PACRH_RO6_MASK) 2047 2048 #define AIPS_PACRH_AC5_MASK (0x700U) 2049 #define AIPS_PACRH_AC5_SHIFT (8U) 2050 /*! AC5 - Attribute Check 2051 */ 2052 #define AIPS_PACRH_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_AC5_SHIFT)) & AIPS_PACRH_AC5_MASK) 2053 2054 #define AIPS_PACRH_RO5_MASK (0x800U) 2055 #define AIPS_PACRH_RO5_SHIFT (11U) 2056 /*! RO5 - Read Only 2057 * 0b0..Writes to corresponding AC field are allowed. 2058 * 0b1..Writes to corresponding AC field are ignored. 2059 */ 2060 #define AIPS_PACRH_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_RO5_SHIFT)) & AIPS_PACRH_RO5_MASK) 2061 2062 #define AIPS_PACRH_AC4_MASK (0x7000U) 2063 #define AIPS_PACRH_AC4_SHIFT (12U) 2064 /*! AC4 - Attribute Check 2065 */ 2066 #define AIPS_PACRH_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_AC4_SHIFT)) & AIPS_PACRH_AC4_MASK) 2067 2068 #define AIPS_PACRH_RO4_MASK (0x8000U) 2069 #define AIPS_PACRH_RO4_SHIFT (15U) 2070 /*! RO4 - Read Only 2071 * 0b0..Writes to corresponding AC field are allowed. 2072 * 0b1..Writes to corresponding AC field are ignored. 2073 */ 2074 #define AIPS_PACRH_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_RO4_SHIFT)) & AIPS_PACRH_RO4_MASK) 2075 2076 #define AIPS_PACRH_AC3_MASK (0x70000U) 2077 #define AIPS_PACRH_AC3_SHIFT (16U) 2078 /*! AC3 - Attribute Check 2079 */ 2080 #define AIPS_PACRH_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_AC3_SHIFT)) & AIPS_PACRH_AC3_MASK) 2081 2082 #define AIPS_PACRH_RO3_MASK (0x80000U) 2083 #define AIPS_PACRH_RO3_SHIFT (19U) 2084 /*! RO3 - Read Only 2085 * 0b0..Writes to corresponding AC field are allowed. 2086 * 0b1..Writes to corresponding AC field are ignored. 2087 */ 2088 #define AIPS_PACRH_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_RO3_SHIFT)) & AIPS_PACRH_RO3_MASK) 2089 2090 #define AIPS_PACRH_AC2_MASK (0x700000U) 2091 #define AIPS_PACRH_AC2_SHIFT (20U) 2092 /*! AC2 - Attribute Check 2093 */ 2094 #define AIPS_PACRH_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_AC2_SHIFT)) & AIPS_PACRH_AC2_MASK) 2095 2096 #define AIPS_PACRH_RO2_MASK (0x800000U) 2097 #define AIPS_PACRH_RO2_SHIFT (23U) 2098 /*! RO2 - Read Only 2099 * 0b0..Writes to corresponding AC field are allowed. 2100 * 0b1..Writes to corresponding AC field are ignored. 2101 */ 2102 #define AIPS_PACRH_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_RO2_SHIFT)) & AIPS_PACRH_RO2_MASK) 2103 2104 #define AIPS_PACRH_AC1_MASK (0x7000000U) 2105 #define AIPS_PACRH_AC1_SHIFT (24U) 2106 /*! AC1 - Attribute Check 2107 */ 2108 #define AIPS_PACRH_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_AC1_SHIFT)) & AIPS_PACRH_AC1_MASK) 2109 2110 #define AIPS_PACRH_RO1_MASK (0x8000000U) 2111 #define AIPS_PACRH_RO1_SHIFT (27U) 2112 /*! RO1 - Read Only 2113 * 0b0..Writes to corresponding AC field are allowed. 2114 * 0b1..Writes to corresponding AC field are ignored. 2115 */ 2116 #define AIPS_PACRH_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_RO1_SHIFT)) & AIPS_PACRH_RO1_MASK) 2117 2118 #define AIPS_PACRH_AC0_MASK (0x70000000U) 2119 #define AIPS_PACRH_AC0_SHIFT (28U) 2120 /*! AC0 - Attribute Check 2121 */ 2122 #define AIPS_PACRH_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_AC0_SHIFT)) & AIPS_PACRH_AC0_MASK) 2123 2124 #define AIPS_PACRH_RO0_MASK (0x80000000U) 2125 #define AIPS_PACRH_RO0_SHIFT (31U) 2126 /*! RO0 - Read Only 2127 * 0b0..Writes to corresponding AC field are allowed. 2128 * 0b1..Writes to corresponding AC field are ignored. 2129 */ 2130 #define AIPS_PACRH_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRH_RO0_SHIFT)) & AIPS_PACRH_RO0_MASK) 2131 /*! @} */ 2132 2133 /*! @name PACRI - Peripheral Access Control Register */ 2134 /*! @{ */ 2135 2136 #define AIPS_PACRI_AC7_MASK (0x7U) 2137 #define AIPS_PACRI_AC7_SHIFT (0U) 2138 /*! AC7 - Attribute Check 2139 */ 2140 #define AIPS_PACRI_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_AC7_SHIFT)) & AIPS_PACRI_AC7_MASK) 2141 2142 #define AIPS_PACRI_RO7_MASK (0x8U) 2143 #define AIPS_PACRI_RO7_SHIFT (3U) 2144 /*! RO7 - Read Only 2145 * 0b0..Writes to corresponding AC field are allowed. 2146 * 0b1..Writes to corresponding AC field are ignored. 2147 */ 2148 #define AIPS_PACRI_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_RO7_SHIFT)) & AIPS_PACRI_RO7_MASK) 2149 2150 #define AIPS_PACRI_AC6_MASK (0x70U) 2151 #define AIPS_PACRI_AC6_SHIFT (4U) 2152 /*! AC6 - Attribute Check 2153 */ 2154 #define AIPS_PACRI_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_AC6_SHIFT)) & AIPS_PACRI_AC6_MASK) 2155 2156 #define AIPS_PACRI_RO6_MASK (0x80U) 2157 #define AIPS_PACRI_RO6_SHIFT (7U) 2158 /*! RO6 - Read Only 2159 * 0b0..Writes to corresponding AC field are allowed. 2160 * 0b1..Writes to corresponding AC field are ignored. 2161 */ 2162 #define AIPS_PACRI_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_RO6_SHIFT)) & AIPS_PACRI_RO6_MASK) 2163 2164 #define AIPS_PACRI_AC5_MASK (0x700U) 2165 #define AIPS_PACRI_AC5_SHIFT (8U) 2166 /*! AC5 - Attribute Check 2167 */ 2168 #define AIPS_PACRI_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_AC5_SHIFT)) & AIPS_PACRI_AC5_MASK) 2169 2170 #define AIPS_PACRI_RO5_MASK (0x800U) 2171 #define AIPS_PACRI_RO5_SHIFT (11U) 2172 /*! RO5 - Read Only 2173 * 0b0..Writes to corresponding AC field are allowed. 2174 * 0b1..Writes to corresponding AC field are ignored. 2175 */ 2176 #define AIPS_PACRI_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_RO5_SHIFT)) & AIPS_PACRI_RO5_MASK) 2177 2178 #define AIPS_PACRI_AC4_MASK (0x7000U) 2179 #define AIPS_PACRI_AC4_SHIFT (12U) 2180 /*! AC4 - Attribute Check 2181 */ 2182 #define AIPS_PACRI_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_AC4_SHIFT)) & AIPS_PACRI_AC4_MASK) 2183 2184 #define AIPS_PACRI_RO4_MASK (0x8000U) 2185 #define AIPS_PACRI_RO4_SHIFT (15U) 2186 /*! RO4 - Read Only 2187 * 0b0..Writes to corresponding AC field are allowed. 2188 * 0b1..Writes to corresponding AC field are ignored. 2189 */ 2190 #define AIPS_PACRI_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_RO4_SHIFT)) & AIPS_PACRI_RO4_MASK) 2191 2192 #define AIPS_PACRI_AC3_MASK (0x70000U) 2193 #define AIPS_PACRI_AC3_SHIFT (16U) 2194 /*! AC3 - Attribute Check 2195 */ 2196 #define AIPS_PACRI_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_AC3_SHIFT)) & AIPS_PACRI_AC3_MASK) 2197 2198 #define AIPS_PACRI_RO3_MASK (0x80000U) 2199 #define AIPS_PACRI_RO3_SHIFT (19U) 2200 /*! RO3 - Read Only 2201 * 0b0..Writes to corresponding AC field are allowed. 2202 * 0b1..Writes to corresponding AC field are ignored. 2203 */ 2204 #define AIPS_PACRI_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_RO3_SHIFT)) & AIPS_PACRI_RO3_MASK) 2205 2206 #define AIPS_PACRI_AC2_MASK (0x700000U) 2207 #define AIPS_PACRI_AC2_SHIFT (20U) 2208 /*! AC2 - Attribute Check 2209 */ 2210 #define AIPS_PACRI_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_AC2_SHIFT)) & AIPS_PACRI_AC2_MASK) 2211 2212 #define AIPS_PACRI_RO2_MASK (0x800000U) 2213 #define AIPS_PACRI_RO2_SHIFT (23U) 2214 /*! RO2 - Read Only 2215 * 0b0..Writes to corresponding AC field are allowed. 2216 * 0b1..Writes to corresponding AC field are ignored. 2217 */ 2218 #define AIPS_PACRI_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_RO2_SHIFT)) & AIPS_PACRI_RO2_MASK) 2219 2220 #define AIPS_PACRI_AC1_MASK (0x7000000U) 2221 #define AIPS_PACRI_AC1_SHIFT (24U) 2222 /*! AC1 - Attribute Check 2223 */ 2224 #define AIPS_PACRI_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_AC1_SHIFT)) & AIPS_PACRI_AC1_MASK) 2225 2226 #define AIPS_PACRI_RO1_MASK (0x8000000U) 2227 #define AIPS_PACRI_RO1_SHIFT (27U) 2228 /*! RO1 - Read Only 2229 * 0b0..Writes to corresponding AC field are allowed. 2230 * 0b1..Writes to corresponding AC field are ignored. 2231 */ 2232 #define AIPS_PACRI_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_RO1_SHIFT)) & AIPS_PACRI_RO1_MASK) 2233 2234 #define AIPS_PACRI_AC0_MASK (0x70000000U) 2235 #define AIPS_PACRI_AC0_SHIFT (28U) 2236 /*! AC0 - Attribute Check 2237 */ 2238 #define AIPS_PACRI_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_AC0_SHIFT)) & AIPS_PACRI_AC0_MASK) 2239 2240 #define AIPS_PACRI_RO0_MASK (0x80000000U) 2241 #define AIPS_PACRI_RO0_SHIFT (31U) 2242 /*! RO0 - Read Only 2243 * 0b0..Writes to corresponding AC field are allowed. 2244 * 0b1..Writes to corresponding AC field are ignored. 2245 */ 2246 #define AIPS_PACRI_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRI_RO0_SHIFT)) & AIPS_PACRI_RO0_MASK) 2247 /*! @} */ 2248 2249 /*! @name PACRJ - Peripheral Access Control Register */ 2250 /*! @{ */ 2251 2252 #define AIPS_PACRJ_AC7_MASK (0x7U) 2253 #define AIPS_PACRJ_AC7_SHIFT (0U) 2254 /*! AC7 - Attribute Check 2255 */ 2256 #define AIPS_PACRJ_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_AC7_SHIFT)) & AIPS_PACRJ_AC7_MASK) 2257 2258 #define AIPS_PACRJ_RO7_MASK (0x8U) 2259 #define AIPS_PACRJ_RO7_SHIFT (3U) 2260 /*! RO7 - Read Only 2261 * 0b0..Writes to corresponding AC field are allowed. 2262 * 0b1..Writes to corresponding AC field are ignored. 2263 */ 2264 #define AIPS_PACRJ_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_RO7_SHIFT)) & AIPS_PACRJ_RO7_MASK) 2265 2266 #define AIPS_PACRJ_AC6_MASK (0x70U) 2267 #define AIPS_PACRJ_AC6_SHIFT (4U) 2268 /*! AC6 - Attribute Check 2269 */ 2270 #define AIPS_PACRJ_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_AC6_SHIFT)) & AIPS_PACRJ_AC6_MASK) 2271 2272 #define AIPS_PACRJ_RO6_MASK (0x80U) 2273 #define AIPS_PACRJ_RO6_SHIFT (7U) 2274 /*! RO6 - Read Only 2275 * 0b0..Writes to corresponding AC field are allowed. 2276 * 0b1..Writes to corresponding AC field are ignored. 2277 */ 2278 #define AIPS_PACRJ_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_RO6_SHIFT)) & AIPS_PACRJ_RO6_MASK) 2279 2280 #define AIPS_PACRJ_AC5_MASK (0x700U) 2281 #define AIPS_PACRJ_AC5_SHIFT (8U) 2282 /*! AC5 - Attribute Check 2283 */ 2284 #define AIPS_PACRJ_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_AC5_SHIFT)) & AIPS_PACRJ_AC5_MASK) 2285 2286 #define AIPS_PACRJ_RO5_MASK (0x800U) 2287 #define AIPS_PACRJ_RO5_SHIFT (11U) 2288 /*! RO5 - Read Only 2289 * 0b0..Writes to corresponding AC field are allowed. 2290 * 0b1..Writes to corresponding AC field are ignored. 2291 */ 2292 #define AIPS_PACRJ_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_RO5_SHIFT)) & AIPS_PACRJ_RO5_MASK) 2293 2294 #define AIPS_PACRJ_AC4_MASK (0x7000U) 2295 #define AIPS_PACRJ_AC4_SHIFT (12U) 2296 /*! AC4 - Attribute Check 2297 */ 2298 #define AIPS_PACRJ_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_AC4_SHIFT)) & AIPS_PACRJ_AC4_MASK) 2299 2300 #define AIPS_PACRJ_RO4_MASK (0x8000U) 2301 #define AIPS_PACRJ_RO4_SHIFT (15U) 2302 /*! RO4 - Read Only 2303 * 0b0..Writes to corresponding AC field are allowed. 2304 * 0b1..Writes to corresponding AC field are ignored. 2305 */ 2306 #define AIPS_PACRJ_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_RO4_SHIFT)) & AIPS_PACRJ_RO4_MASK) 2307 2308 #define AIPS_PACRJ_AC3_MASK (0x70000U) 2309 #define AIPS_PACRJ_AC3_SHIFT (16U) 2310 /*! AC3 - Attribute Check 2311 */ 2312 #define AIPS_PACRJ_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_AC3_SHIFT)) & AIPS_PACRJ_AC3_MASK) 2313 2314 #define AIPS_PACRJ_RO3_MASK (0x80000U) 2315 #define AIPS_PACRJ_RO3_SHIFT (19U) 2316 /*! RO3 - Read Only 2317 * 0b0..Writes to corresponding AC field are allowed. 2318 * 0b1..Writes to corresponding AC field are ignored. 2319 */ 2320 #define AIPS_PACRJ_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_RO3_SHIFT)) & AIPS_PACRJ_RO3_MASK) 2321 2322 #define AIPS_PACRJ_AC2_MASK (0x700000U) 2323 #define AIPS_PACRJ_AC2_SHIFT (20U) 2324 /*! AC2 - Attribute Check 2325 */ 2326 #define AIPS_PACRJ_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_AC2_SHIFT)) & AIPS_PACRJ_AC2_MASK) 2327 2328 #define AIPS_PACRJ_RO2_MASK (0x800000U) 2329 #define AIPS_PACRJ_RO2_SHIFT (23U) 2330 /*! RO2 - Read Only 2331 * 0b0..Writes to corresponding AC field are allowed. 2332 * 0b1..Writes to corresponding AC field are ignored. 2333 */ 2334 #define AIPS_PACRJ_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_RO2_SHIFT)) & AIPS_PACRJ_RO2_MASK) 2335 2336 #define AIPS_PACRJ_AC1_MASK (0x7000000U) 2337 #define AIPS_PACRJ_AC1_SHIFT (24U) 2338 /*! AC1 - Attribute Check 2339 */ 2340 #define AIPS_PACRJ_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_AC1_SHIFT)) & AIPS_PACRJ_AC1_MASK) 2341 2342 #define AIPS_PACRJ_RO1_MASK (0x8000000U) 2343 #define AIPS_PACRJ_RO1_SHIFT (27U) 2344 /*! RO1 - Read Only 2345 * 0b0..Writes to corresponding AC field are allowed. 2346 * 0b1..Writes to corresponding AC field are ignored. 2347 */ 2348 #define AIPS_PACRJ_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_RO1_SHIFT)) & AIPS_PACRJ_RO1_MASK) 2349 2350 #define AIPS_PACRJ_AC0_MASK (0x70000000U) 2351 #define AIPS_PACRJ_AC0_SHIFT (28U) 2352 /*! AC0 - Attribute Check 2353 */ 2354 #define AIPS_PACRJ_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_AC0_SHIFT)) & AIPS_PACRJ_AC0_MASK) 2355 2356 #define AIPS_PACRJ_RO0_MASK (0x80000000U) 2357 #define AIPS_PACRJ_RO0_SHIFT (31U) 2358 /*! RO0 - Read Only 2359 * 0b0..Writes to corresponding AC field are allowed. 2360 * 0b1..Writes to corresponding AC field are ignored. 2361 */ 2362 #define AIPS_PACRJ_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRJ_RO0_SHIFT)) & AIPS_PACRJ_RO0_MASK) 2363 /*! @} */ 2364 2365 /*! @name PACRK - Peripheral Access Control Register */ 2366 /*! @{ */ 2367 2368 #define AIPS_PACRK_AC7_MASK (0x7U) 2369 #define AIPS_PACRK_AC7_SHIFT (0U) 2370 /*! AC7 - Attribute Check 2371 */ 2372 #define AIPS_PACRK_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_AC7_SHIFT)) & AIPS_PACRK_AC7_MASK) 2373 2374 #define AIPS_PACRK_RO7_MASK (0x8U) 2375 #define AIPS_PACRK_RO7_SHIFT (3U) 2376 /*! RO7 - Read Only 2377 * 0b0..Writes to corresponding AC field are allowed. 2378 * 0b1..Writes to corresponding AC field are ignored. 2379 */ 2380 #define AIPS_PACRK_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_RO7_SHIFT)) & AIPS_PACRK_RO7_MASK) 2381 2382 #define AIPS_PACRK_AC6_MASK (0x70U) 2383 #define AIPS_PACRK_AC6_SHIFT (4U) 2384 /*! AC6 - Attribute Check 2385 */ 2386 #define AIPS_PACRK_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_AC6_SHIFT)) & AIPS_PACRK_AC6_MASK) 2387 2388 #define AIPS_PACRK_RO6_MASK (0x80U) 2389 #define AIPS_PACRK_RO6_SHIFT (7U) 2390 /*! RO6 - Read Only 2391 * 0b0..Writes to corresponding AC field are allowed. 2392 * 0b1..Writes to corresponding AC field are ignored. 2393 */ 2394 #define AIPS_PACRK_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_RO6_SHIFT)) & AIPS_PACRK_RO6_MASK) 2395 2396 #define AIPS_PACRK_AC5_MASK (0x700U) 2397 #define AIPS_PACRK_AC5_SHIFT (8U) 2398 /*! AC5 - Attribute Check 2399 */ 2400 #define AIPS_PACRK_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_AC5_SHIFT)) & AIPS_PACRK_AC5_MASK) 2401 2402 #define AIPS_PACRK_RO5_MASK (0x800U) 2403 #define AIPS_PACRK_RO5_SHIFT (11U) 2404 /*! RO5 - Read Only 2405 * 0b0..Writes to corresponding AC field are allowed. 2406 * 0b1..Writes to corresponding AC field are ignored. 2407 */ 2408 #define AIPS_PACRK_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_RO5_SHIFT)) & AIPS_PACRK_RO5_MASK) 2409 2410 #define AIPS_PACRK_AC4_MASK (0x7000U) 2411 #define AIPS_PACRK_AC4_SHIFT (12U) 2412 /*! AC4 - Attribute Check 2413 */ 2414 #define AIPS_PACRK_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_AC4_SHIFT)) & AIPS_PACRK_AC4_MASK) 2415 2416 #define AIPS_PACRK_RO4_MASK (0x8000U) 2417 #define AIPS_PACRK_RO4_SHIFT (15U) 2418 /*! RO4 - Read Only 2419 * 0b0..Writes to corresponding AC field are allowed. 2420 * 0b1..Writes to corresponding AC field are ignored. 2421 */ 2422 #define AIPS_PACRK_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_RO4_SHIFT)) & AIPS_PACRK_RO4_MASK) 2423 2424 #define AIPS_PACRK_AC3_MASK (0x70000U) 2425 #define AIPS_PACRK_AC3_SHIFT (16U) 2426 /*! AC3 - Attribute Check 2427 */ 2428 #define AIPS_PACRK_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_AC3_SHIFT)) & AIPS_PACRK_AC3_MASK) 2429 2430 #define AIPS_PACRK_RO3_MASK (0x80000U) 2431 #define AIPS_PACRK_RO3_SHIFT (19U) 2432 /*! RO3 - Read Only 2433 * 0b0..Writes to corresponding AC field are allowed. 2434 * 0b1..Writes to corresponding AC field are ignored. 2435 */ 2436 #define AIPS_PACRK_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_RO3_SHIFT)) & AIPS_PACRK_RO3_MASK) 2437 2438 #define AIPS_PACRK_AC2_MASK (0x700000U) 2439 #define AIPS_PACRK_AC2_SHIFT (20U) 2440 /*! AC2 - Attribute Check 2441 */ 2442 #define AIPS_PACRK_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_AC2_SHIFT)) & AIPS_PACRK_AC2_MASK) 2443 2444 #define AIPS_PACRK_RO2_MASK (0x800000U) 2445 #define AIPS_PACRK_RO2_SHIFT (23U) 2446 /*! RO2 - Read Only 2447 * 0b0..Writes to corresponding AC field are allowed. 2448 * 0b1..Writes to corresponding AC field are ignored. 2449 */ 2450 #define AIPS_PACRK_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_RO2_SHIFT)) & AIPS_PACRK_RO2_MASK) 2451 2452 #define AIPS_PACRK_AC1_MASK (0x7000000U) 2453 #define AIPS_PACRK_AC1_SHIFT (24U) 2454 /*! AC1 - Attribute Check 2455 */ 2456 #define AIPS_PACRK_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_AC1_SHIFT)) & AIPS_PACRK_AC1_MASK) 2457 2458 #define AIPS_PACRK_RO1_MASK (0x8000000U) 2459 #define AIPS_PACRK_RO1_SHIFT (27U) 2460 /*! RO1 - Read Only 2461 * 0b0..Writes to corresponding AC field are allowed. 2462 * 0b1..Writes to corresponding AC field are ignored. 2463 */ 2464 #define AIPS_PACRK_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_RO1_SHIFT)) & AIPS_PACRK_RO1_MASK) 2465 2466 #define AIPS_PACRK_AC0_MASK (0x70000000U) 2467 #define AIPS_PACRK_AC0_SHIFT (28U) 2468 /*! AC0 - Attribute Check 2469 */ 2470 #define AIPS_PACRK_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_AC0_SHIFT)) & AIPS_PACRK_AC0_MASK) 2471 2472 #define AIPS_PACRK_RO0_MASK (0x80000000U) 2473 #define AIPS_PACRK_RO0_SHIFT (31U) 2474 /*! RO0 - Read Only 2475 * 0b0..Writes to corresponding AC field are allowed. 2476 * 0b1..Writes to corresponding AC field are ignored. 2477 */ 2478 #define AIPS_PACRK_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRK_RO0_SHIFT)) & AIPS_PACRK_RO0_MASK) 2479 /*! @} */ 2480 2481 /*! @name PACRL - Peripheral Access Control Register */ 2482 /*! @{ */ 2483 2484 #define AIPS_PACRL_AC7_MASK (0x7U) 2485 #define AIPS_PACRL_AC7_SHIFT (0U) 2486 /*! AC7 - Attribute Check 2487 */ 2488 #define AIPS_PACRL_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_AC7_SHIFT)) & AIPS_PACRL_AC7_MASK) 2489 2490 #define AIPS_PACRL_RO7_MASK (0x8U) 2491 #define AIPS_PACRL_RO7_SHIFT (3U) 2492 /*! RO7 - Read Only 2493 * 0b0..Writes to corresponding AC field are allowed. 2494 * 0b1..Writes to corresponding AC field are ignored. 2495 */ 2496 #define AIPS_PACRL_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_RO7_SHIFT)) & AIPS_PACRL_RO7_MASK) 2497 2498 #define AIPS_PACRL_AC6_MASK (0x70U) 2499 #define AIPS_PACRL_AC6_SHIFT (4U) 2500 /*! AC6 - Attribute Check 2501 */ 2502 #define AIPS_PACRL_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_AC6_SHIFT)) & AIPS_PACRL_AC6_MASK) 2503 2504 #define AIPS_PACRL_RO6_MASK (0x80U) 2505 #define AIPS_PACRL_RO6_SHIFT (7U) 2506 /*! RO6 - Read Only 2507 * 0b0..Writes to corresponding AC field are allowed. 2508 * 0b1..Writes to corresponding AC field are ignored. 2509 */ 2510 #define AIPS_PACRL_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_RO6_SHIFT)) & AIPS_PACRL_RO6_MASK) 2511 2512 #define AIPS_PACRL_AC5_MASK (0x700U) 2513 #define AIPS_PACRL_AC5_SHIFT (8U) 2514 /*! AC5 - Attribute Check 2515 */ 2516 #define AIPS_PACRL_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_AC5_SHIFT)) & AIPS_PACRL_AC5_MASK) 2517 2518 #define AIPS_PACRL_RO5_MASK (0x800U) 2519 #define AIPS_PACRL_RO5_SHIFT (11U) 2520 /*! RO5 - Read Only 2521 * 0b0..Writes to corresponding AC field are allowed. 2522 * 0b1..Writes to corresponding AC field are ignored. 2523 */ 2524 #define AIPS_PACRL_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_RO5_SHIFT)) & AIPS_PACRL_RO5_MASK) 2525 2526 #define AIPS_PACRL_AC4_MASK (0x7000U) 2527 #define AIPS_PACRL_AC4_SHIFT (12U) 2528 /*! AC4 - Attribute Check 2529 */ 2530 #define AIPS_PACRL_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_AC4_SHIFT)) & AIPS_PACRL_AC4_MASK) 2531 2532 #define AIPS_PACRL_RO4_MASK (0x8000U) 2533 #define AIPS_PACRL_RO4_SHIFT (15U) 2534 /*! RO4 - Read Only 2535 * 0b0..Writes to corresponding AC field are allowed. 2536 * 0b1..Writes to corresponding AC field are ignored. 2537 */ 2538 #define AIPS_PACRL_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_RO4_SHIFT)) & AIPS_PACRL_RO4_MASK) 2539 2540 #define AIPS_PACRL_AC3_MASK (0x70000U) 2541 #define AIPS_PACRL_AC3_SHIFT (16U) 2542 /*! AC3 - Attribute Check 2543 */ 2544 #define AIPS_PACRL_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_AC3_SHIFT)) & AIPS_PACRL_AC3_MASK) 2545 2546 #define AIPS_PACRL_RO3_MASK (0x80000U) 2547 #define AIPS_PACRL_RO3_SHIFT (19U) 2548 /*! RO3 - Read Only 2549 * 0b0..Writes to corresponding AC field are allowed. 2550 * 0b1..Writes to corresponding AC field are ignored. 2551 */ 2552 #define AIPS_PACRL_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_RO3_SHIFT)) & AIPS_PACRL_RO3_MASK) 2553 2554 #define AIPS_PACRL_AC2_MASK (0x700000U) 2555 #define AIPS_PACRL_AC2_SHIFT (20U) 2556 /*! AC2 - Attribute Check 2557 */ 2558 #define AIPS_PACRL_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_AC2_SHIFT)) & AIPS_PACRL_AC2_MASK) 2559 2560 #define AIPS_PACRL_RO2_MASK (0x800000U) 2561 #define AIPS_PACRL_RO2_SHIFT (23U) 2562 /*! RO2 - Read Only 2563 * 0b0..Writes to corresponding AC field are allowed. 2564 * 0b1..Writes to corresponding AC field are ignored. 2565 */ 2566 #define AIPS_PACRL_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_RO2_SHIFT)) & AIPS_PACRL_RO2_MASK) 2567 2568 #define AIPS_PACRL_AC1_MASK (0x7000000U) 2569 #define AIPS_PACRL_AC1_SHIFT (24U) 2570 /*! AC1 - Attribute Check 2571 */ 2572 #define AIPS_PACRL_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_AC1_SHIFT)) & AIPS_PACRL_AC1_MASK) 2573 2574 #define AIPS_PACRL_RO1_MASK (0x8000000U) 2575 #define AIPS_PACRL_RO1_SHIFT (27U) 2576 /*! RO1 - Read Only 2577 * 0b0..Writes to corresponding AC field are allowed. 2578 * 0b1..Writes to corresponding AC field are ignored. 2579 */ 2580 #define AIPS_PACRL_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_RO1_SHIFT)) & AIPS_PACRL_RO1_MASK) 2581 2582 #define AIPS_PACRL_AC0_MASK (0x70000000U) 2583 #define AIPS_PACRL_AC0_SHIFT (28U) 2584 /*! AC0 - Attribute Check 2585 */ 2586 #define AIPS_PACRL_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_AC0_SHIFT)) & AIPS_PACRL_AC0_MASK) 2587 2588 #define AIPS_PACRL_RO0_MASK (0x80000000U) 2589 #define AIPS_PACRL_RO0_SHIFT (31U) 2590 /*! RO0 - Read Only 2591 * 0b0..Writes to corresponding AC field are allowed. 2592 * 0b1..Writes to corresponding AC field are ignored. 2593 */ 2594 #define AIPS_PACRL_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRL_RO0_SHIFT)) & AIPS_PACRL_RO0_MASK) 2595 /*! @} */ 2596 2597 /*! @name PACRM - Peripheral Access Control Register */ 2598 /*! @{ */ 2599 2600 #define AIPS_PACRM_AC7_MASK (0x7U) 2601 #define AIPS_PACRM_AC7_SHIFT (0U) 2602 /*! AC7 - Attribute Check 2603 */ 2604 #define AIPS_PACRM_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_AC7_SHIFT)) & AIPS_PACRM_AC7_MASK) 2605 2606 #define AIPS_PACRM_RO7_MASK (0x8U) 2607 #define AIPS_PACRM_RO7_SHIFT (3U) 2608 /*! RO7 - Read Only 2609 * 0b0..Writes to corresponding AC field are allowed. 2610 * 0b1..Writes to corresponding AC field are ignored. 2611 */ 2612 #define AIPS_PACRM_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_RO7_SHIFT)) & AIPS_PACRM_RO7_MASK) 2613 2614 #define AIPS_PACRM_AC6_MASK (0x70U) 2615 #define AIPS_PACRM_AC6_SHIFT (4U) 2616 /*! AC6 - Attribute Check 2617 */ 2618 #define AIPS_PACRM_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_AC6_SHIFT)) & AIPS_PACRM_AC6_MASK) 2619 2620 #define AIPS_PACRM_RO6_MASK (0x80U) 2621 #define AIPS_PACRM_RO6_SHIFT (7U) 2622 /*! RO6 - Read Only 2623 * 0b0..Writes to corresponding AC field are allowed. 2624 * 0b1..Writes to corresponding AC field are ignored. 2625 */ 2626 #define AIPS_PACRM_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_RO6_SHIFT)) & AIPS_PACRM_RO6_MASK) 2627 2628 #define AIPS_PACRM_AC5_MASK (0x700U) 2629 #define AIPS_PACRM_AC5_SHIFT (8U) 2630 /*! AC5 - Attribute Check 2631 */ 2632 #define AIPS_PACRM_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_AC5_SHIFT)) & AIPS_PACRM_AC5_MASK) 2633 2634 #define AIPS_PACRM_RO5_MASK (0x800U) 2635 #define AIPS_PACRM_RO5_SHIFT (11U) 2636 /*! RO5 - Read Only 2637 * 0b0..Writes to corresponding AC field are allowed. 2638 * 0b1..Writes to corresponding AC field are ignored. 2639 */ 2640 #define AIPS_PACRM_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_RO5_SHIFT)) & AIPS_PACRM_RO5_MASK) 2641 2642 #define AIPS_PACRM_AC4_MASK (0x7000U) 2643 #define AIPS_PACRM_AC4_SHIFT (12U) 2644 /*! AC4 - Attribute Check 2645 */ 2646 #define AIPS_PACRM_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_AC4_SHIFT)) & AIPS_PACRM_AC4_MASK) 2647 2648 #define AIPS_PACRM_RO4_MASK (0x8000U) 2649 #define AIPS_PACRM_RO4_SHIFT (15U) 2650 /*! RO4 - Read Only 2651 * 0b0..Writes to corresponding AC field are allowed. 2652 * 0b1..Writes to corresponding AC field are ignored. 2653 */ 2654 #define AIPS_PACRM_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_RO4_SHIFT)) & AIPS_PACRM_RO4_MASK) 2655 2656 #define AIPS_PACRM_AC3_MASK (0x70000U) 2657 #define AIPS_PACRM_AC3_SHIFT (16U) 2658 /*! AC3 - Attribute Check 2659 */ 2660 #define AIPS_PACRM_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_AC3_SHIFT)) & AIPS_PACRM_AC3_MASK) 2661 2662 #define AIPS_PACRM_RO3_MASK (0x80000U) 2663 #define AIPS_PACRM_RO3_SHIFT (19U) 2664 /*! RO3 - Read Only 2665 * 0b0..Writes to corresponding AC field are allowed. 2666 * 0b1..Writes to corresponding AC field are ignored. 2667 */ 2668 #define AIPS_PACRM_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_RO3_SHIFT)) & AIPS_PACRM_RO3_MASK) 2669 2670 #define AIPS_PACRM_AC2_MASK (0x700000U) 2671 #define AIPS_PACRM_AC2_SHIFT (20U) 2672 /*! AC2 - Attribute Check 2673 */ 2674 #define AIPS_PACRM_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_AC2_SHIFT)) & AIPS_PACRM_AC2_MASK) 2675 2676 #define AIPS_PACRM_RO2_MASK (0x800000U) 2677 #define AIPS_PACRM_RO2_SHIFT (23U) 2678 /*! RO2 - Read Only 2679 * 0b0..Writes to corresponding AC field are allowed. 2680 * 0b1..Writes to corresponding AC field are ignored. 2681 */ 2682 #define AIPS_PACRM_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_RO2_SHIFT)) & AIPS_PACRM_RO2_MASK) 2683 2684 #define AIPS_PACRM_AC1_MASK (0x7000000U) 2685 #define AIPS_PACRM_AC1_SHIFT (24U) 2686 /*! AC1 - Attribute Check 2687 */ 2688 #define AIPS_PACRM_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_AC1_SHIFT)) & AIPS_PACRM_AC1_MASK) 2689 2690 #define AIPS_PACRM_RO1_MASK (0x8000000U) 2691 #define AIPS_PACRM_RO1_SHIFT (27U) 2692 /*! RO1 - Read Only 2693 * 0b0..Writes to corresponding AC field are allowed. 2694 * 0b1..Writes to corresponding AC field are ignored. 2695 */ 2696 #define AIPS_PACRM_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_RO1_SHIFT)) & AIPS_PACRM_RO1_MASK) 2697 2698 #define AIPS_PACRM_AC0_MASK (0x70000000U) 2699 #define AIPS_PACRM_AC0_SHIFT (28U) 2700 /*! AC0 - Attribute Check 2701 */ 2702 #define AIPS_PACRM_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_AC0_SHIFT)) & AIPS_PACRM_AC0_MASK) 2703 2704 #define AIPS_PACRM_RO0_MASK (0x80000000U) 2705 #define AIPS_PACRM_RO0_SHIFT (31U) 2706 /*! RO0 - Read Only 2707 * 0b0..Writes to corresponding AC field are allowed. 2708 * 0b1..Writes to corresponding AC field are ignored. 2709 */ 2710 #define AIPS_PACRM_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRM_RO0_SHIFT)) & AIPS_PACRM_RO0_MASK) 2711 /*! @} */ 2712 2713 /*! @name PACRN - Peripheral Access Control Register */ 2714 /*! @{ */ 2715 2716 #define AIPS_PACRN_AC7_MASK (0x7U) 2717 #define AIPS_PACRN_AC7_SHIFT (0U) 2718 /*! AC7 - Attribute Check 2719 */ 2720 #define AIPS_PACRN_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_AC7_SHIFT)) & AIPS_PACRN_AC7_MASK) 2721 2722 #define AIPS_PACRN_RO7_MASK (0x8U) 2723 #define AIPS_PACRN_RO7_SHIFT (3U) 2724 /*! RO7 - Read Only 2725 * 0b0..Writes to corresponding AC field are allowed. 2726 * 0b1..Writes to corresponding AC field are ignored. 2727 */ 2728 #define AIPS_PACRN_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_RO7_SHIFT)) & AIPS_PACRN_RO7_MASK) 2729 2730 #define AIPS_PACRN_AC6_MASK (0x70U) 2731 #define AIPS_PACRN_AC6_SHIFT (4U) 2732 /*! AC6 - Attribute Check 2733 */ 2734 #define AIPS_PACRN_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_AC6_SHIFT)) & AIPS_PACRN_AC6_MASK) 2735 2736 #define AIPS_PACRN_RO6_MASK (0x80U) 2737 #define AIPS_PACRN_RO6_SHIFT (7U) 2738 /*! RO6 - Read Only 2739 * 0b0..Writes to corresponding AC field are allowed. 2740 * 0b1..Writes to corresponding AC field are ignored. 2741 */ 2742 #define AIPS_PACRN_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_RO6_SHIFT)) & AIPS_PACRN_RO6_MASK) 2743 2744 #define AIPS_PACRN_AC5_MASK (0x700U) 2745 #define AIPS_PACRN_AC5_SHIFT (8U) 2746 /*! AC5 - Attribute Check 2747 */ 2748 #define AIPS_PACRN_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_AC5_SHIFT)) & AIPS_PACRN_AC5_MASK) 2749 2750 #define AIPS_PACRN_RO5_MASK (0x800U) 2751 #define AIPS_PACRN_RO5_SHIFT (11U) 2752 /*! RO5 - Read Only 2753 * 0b0..Writes to corresponding AC field are allowed. 2754 * 0b1..Writes to corresponding AC field are ignored. 2755 */ 2756 #define AIPS_PACRN_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_RO5_SHIFT)) & AIPS_PACRN_RO5_MASK) 2757 2758 #define AIPS_PACRN_AC4_MASK (0x7000U) 2759 #define AIPS_PACRN_AC4_SHIFT (12U) 2760 /*! AC4 - Attribute Check 2761 */ 2762 #define AIPS_PACRN_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_AC4_SHIFT)) & AIPS_PACRN_AC4_MASK) 2763 2764 #define AIPS_PACRN_RO4_MASK (0x8000U) 2765 #define AIPS_PACRN_RO4_SHIFT (15U) 2766 /*! RO4 - Read Only 2767 * 0b0..Writes to corresponding AC field are allowed. 2768 * 0b1..Writes to corresponding AC field are ignored. 2769 */ 2770 #define AIPS_PACRN_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_RO4_SHIFT)) & AIPS_PACRN_RO4_MASK) 2771 2772 #define AIPS_PACRN_AC3_MASK (0x70000U) 2773 #define AIPS_PACRN_AC3_SHIFT (16U) 2774 /*! AC3 - Attribute Check 2775 */ 2776 #define AIPS_PACRN_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_AC3_SHIFT)) & AIPS_PACRN_AC3_MASK) 2777 2778 #define AIPS_PACRN_RO3_MASK (0x80000U) 2779 #define AIPS_PACRN_RO3_SHIFT (19U) 2780 /*! RO3 - Read Only 2781 * 0b0..Writes to corresponding AC field are allowed. 2782 * 0b1..Writes to corresponding AC field are ignored. 2783 */ 2784 #define AIPS_PACRN_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_RO3_SHIFT)) & AIPS_PACRN_RO3_MASK) 2785 2786 #define AIPS_PACRN_AC2_MASK (0x700000U) 2787 #define AIPS_PACRN_AC2_SHIFT (20U) 2788 /*! AC2 - Attribute Check 2789 */ 2790 #define AIPS_PACRN_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_AC2_SHIFT)) & AIPS_PACRN_AC2_MASK) 2791 2792 #define AIPS_PACRN_RO2_MASK (0x800000U) 2793 #define AIPS_PACRN_RO2_SHIFT (23U) 2794 /*! RO2 - Read Only 2795 * 0b0..Writes to corresponding AC field are allowed. 2796 * 0b1..Writes to corresponding AC field are ignored. 2797 */ 2798 #define AIPS_PACRN_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_RO2_SHIFT)) & AIPS_PACRN_RO2_MASK) 2799 2800 #define AIPS_PACRN_AC1_MASK (0x7000000U) 2801 #define AIPS_PACRN_AC1_SHIFT (24U) 2802 /*! AC1 - Attribute Check 2803 */ 2804 #define AIPS_PACRN_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_AC1_SHIFT)) & AIPS_PACRN_AC1_MASK) 2805 2806 #define AIPS_PACRN_RO1_MASK (0x8000000U) 2807 #define AIPS_PACRN_RO1_SHIFT (27U) 2808 /*! RO1 - Read Only 2809 * 0b0..Writes to corresponding AC field are allowed. 2810 * 0b1..Writes to corresponding AC field are ignored. 2811 */ 2812 #define AIPS_PACRN_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_RO1_SHIFT)) & AIPS_PACRN_RO1_MASK) 2813 2814 #define AIPS_PACRN_AC0_MASK (0x70000000U) 2815 #define AIPS_PACRN_AC0_SHIFT (28U) 2816 /*! AC0 - Attribute Check 2817 */ 2818 #define AIPS_PACRN_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_AC0_SHIFT)) & AIPS_PACRN_AC0_MASK) 2819 2820 #define AIPS_PACRN_RO0_MASK (0x80000000U) 2821 #define AIPS_PACRN_RO0_SHIFT (31U) 2822 /*! RO0 - Read Only 2823 * 0b0..Writes to corresponding AC field are allowed. 2824 * 0b1..Writes to corresponding AC field are ignored. 2825 */ 2826 #define AIPS_PACRN_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRN_RO0_SHIFT)) & AIPS_PACRN_RO0_MASK) 2827 /*! @} */ 2828 2829 /*! @name PACRO - Peripheral Access Control Register */ 2830 /*! @{ */ 2831 2832 #define AIPS_PACRO_AC7_MASK (0x7U) 2833 #define AIPS_PACRO_AC7_SHIFT (0U) 2834 /*! AC7 - Attribute Check 2835 */ 2836 #define AIPS_PACRO_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_AC7_SHIFT)) & AIPS_PACRO_AC7_MASK) 2837 2838 #define AIPS_PACRO_RO7_MASK (0x8U) 2839 #define AIPS_PACRO_RO7_SHIFT (3U) 2840 /*! RO7 - Read Only 2841 * 0b0..Writes to corresponding AC field are allowed. 2842 * 0b1..Writes to corresponding AC field are ignored. 2843 */ 2844 #define AIPS_PACRO_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_RO7_SHIFT)) & AIPS_PACRO_RO7_MASK) 2845 2846 #define AIPS_PACRO_AC6_MASK (0x70U) 2847 #define AIPS_PACRO_AC6_SHIFT (4U) 2848 /*! AC6 - Attribute Check 2849 */ 2850 #define AIPS_PACRO_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_AC6_SHIFT)) & AIPS_PACRO_AC6_MASK) 2851 2852 #define AIPS_PACRO_RO6_MASK (0x80U) 2853 #define AIPS_PACRO_RO6_SHIFT (7U) 2854 /*! RO6 - Read Only 2855 * 0b0..Writes to corresponding AC field are allowed. 2856 * 0b1..Writes to corresponding AC field are ignored. 2857 */ 2858 #define AIPS_PACRO_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_RO6_SHIFT)) & AIPS_PACRO_RO6_MASK) 2859 2860 #define AIPS_PACRO_AC5_MASK (0x700U) 2861 #define AIPS_PACRO_AC5_SHIFT (8U) 2862 /*! AC5 - Attribute Check 2863 */ 2864 #define AIPS_PACRO_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_AC5_SHIFT)) & AIPS_PACRO_AC5_MASK) 2865 2866 #define AIPS_PACRO_RO5_MASK (0x800U) 2867 #define AIPS_PACRO_RO5_SHIFT (11U) 2868 /*! RO5 - Read Only 2869 * 0b0..Writes to corresponding AC field are allowed. 2870 * 0b1..Writes to corresponding AC field are ignored. 2871 */ 2872 #define AIPS_PACRO_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_RO5_SHIFT)) & AIPS_PACRO_RO5_MASK) 2873 2874 #define AIPS_PACRO_AC4_MASK (0x7000U) 2875 #define AIPS_PACRO_AC4_SHIFT (12U) 2876 /*! AC4 - Attribute Check 2877 */ 2878 #define AIPS_PACRO_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_AC4_SHIFT)) & AIPS_PACRO_AC4_MASK) 2879 2880 #define AIPS_PACRO_RO4_MASK (0x8000U) 2881 #define AIPS_PACRO_RO4_SHIFT (15U) 2882 /*! RO4 - Read Only 2883 * 0b0..Writes to corresponding AC field are allowed. 2884 * 0b1..Writes to corresponding AC field are ignored. 2885 */ 2886 #define AIPS_PACRO_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_RO4_SHIFT)) & AIPS_PACRO_RO4_MASK) 2887 2888 #define AIPS_PACRO_AC3_MASK (0x70000U) 2889 #define AIPS_PACRO_AC3_SHIFT (16U) 2890 /*! AC3 - Attribute Check 2891 */ 2892 #define AIPS_PACRO_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_AC3_SHIFT)) & AIPS_PACRO_AC3_MASK) 2893 2894 #define AIPS_PACRO_RO3_MASK (0x80000U) 2895 #define AIPS_PACRO_RO3_SHIFT (19U) 2896 /*! RO3 - Read Only 2897 * 0b0..Writes to corresponding AC field are allowed. 2898 * 0b1..Writes to corresponding AC field are ignored. 2899 */ 2900 #define AIPS_PACRO_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_RO3_SHIFT)) & AIPS_PACRO_RO3_MASK) 2901 2902 #define AIPS_PACRO_AC2_MASK (0x700000U) 2903 #define AIPS_PACRO_AC2_SHIFT (20U) 2904 /*! AC2 - Attribute Check 2905 */ 2906 #define AIPS_PACRO_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_AC2_SHIFT)) & AIPS_PACRO_AC2_MASK) 2907 2908 #define AIPS_PACRO_RO2_MASK (0x800000U) 2909 #define AIPS_PACRO_RO2_SHIFT (23U) 2910 /*! RO2 - Read Only 2911 * 0b0..Writes to corresponding AC field are allowed. 2912 * 0b1..Writes to corresponding AC field are ignored. 2913 */ 2914 #define AIPS_PACRO_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_RO2_SHIFT)) & AIPS_PACRO_RO2_MASK) 2915 2916 #define AIPS_PACRO_AC1_MASK (0x7000000U) 2917 #define AIPS_PACRO_AC1_SHIFT (24U) 2918 /*! AC1 - Attribute Check 2919 */ 2920 #define AIPS_PACRO_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_AC1_SHIFT)) & AIPS_PACRO_AC1_MASK) 2921 2922 #define AIPS_PACRO_RO1_MASK (0x8000000U) 2923 #define AIPS_PACRO_RO1_SHIFT (27U) 2924 /*! RO1 - Read Only 2925 * 0b0..Writes to corresponding AC field are allowed. 2926 * 0b1..Writes to corresponding AC field are ignored. 2927 */ 2928 #define AIPS_PACRO_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_RO1_SHIFT)) & AIPS_PACRO_RO1_MASK) 2929 2930 #define AIPS_PACRO_AC0_MASK (0x70000000U) 2931 #define AIPS_PACRO_AC0_SHIFT (28U) 2932 /*! AC0 - Attribute Check 2933 */ 2934 #define AIPS_PACRO_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_AC0_SHIFT)) & AIPS_PACRO_AC0_MASK) 2935 2936 #define AIPS_PACRO_RO0_MASK (0x80000000U) 2937 #define AIPS_PACRO_RO0_SHIFT (31U) 2938 /*! RO0 - Read Only 2939 * 0b0..Writes to corresponding AC field are allowed. 2940 * 0b1..Writes to corresponding AC field are ignored. 2941 */ 2942 #define AIPS_PACRO_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRO_RO0_SHIFT)) & AIPS_PACRO_RO0_MASK) 2943 /*! @} */ 2944 2945 /*! @name PACRP - Peripheral Access Control Register */ 2946 /*! @{ */ 2947 2948 #define AIPS_PACRP_AC7_MASK (0x7U) 2949 #define AIPS_PACRP_AC7_SHIFT (0U) 2950 /*! AC7 - Attribute Check 2951 */ 2952 #define AIPS_PACRP_AC7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_AC7_SHIFT)) & AIPS_PACRP_AC7_MASK) 2953 2954 #define AIPS_PACRP_RO7_MASK (0x8U) 2955 #define AIPS_PACRP_RO7_SHIFT (3U) 2956 /*! RO7 - Read Only 2957 * 0b0..Writes to corresponding AC field are allowed. 2958 * 0b1..Writes to corresponding AC field are ignored. 2959 */ 2960 #define AIPS_PACRP_RO7(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_RO7_SHIFT)) & AIPS_PACRP_RO7_MASK) 2961 2962 #define AIPS_PACRP_AC6_MASK (0x70U) 2963 #define AIPS_PACRP_AC6_SHIFT (4U) 2964 /*! AC6 - Attribute Check 2965 */ 2966 #define AIPS_PACRP_AC6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_AC6_SHIFT)) & AIPS_PACRP_AC6_MASK) 2967 2968 #define AIPS_PACRP_RO6_MASK (0x80U) 2969 #define AIPS_PACRP_RO6_SHIFT (7U) 2970 /*! RO6 - Read Only 2971 * 0b0..Writes to corresponding AC field are allowed. 2972 * 0b1..Writes to corresponding AC field are ignored. 2973 */ 2974 #define AIPS_PACRP_RO6(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_RO6_SHIFT)) & AIPS_PACRP_RO6_MASK) 2975 2976 #define AIPS_PACRP_AC5_MASK (0x700U) 2977 #define AIPS_PACRP_AC5_SHIFT (8U) 2978 /*! AC5 - Attribute Check 2979 */ 2980 #define AIPS_PACRP_AC5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_AC5_SHIFT)) & AIPS_PACRP_AC5_MASK) 2981 2982 #define AIPS_PACRP_RO5_MASK (0x800U) 2983 #define AIPS_PACRP_RO5_SHIFT (11U) 2984 /*! RO5 - Read Only 2985 * 0b0..Writes to corresponding AC field are allowed. 2986 * 0b1..Writes to corresponding AC field are ignored. 2987 */ 2988 #define AIPS_PACRP_RO5(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_RO5_SHIFT)) & AIPS_PACRP_RO5_MASK) 2989 2990 #define AIPS_PACRP_AC4_MASK (0x7000U) 2991 #define AIPS_PACRP_AC4_SHIFT (12U) 2992 /*! AC4 - Attribute Check 2993 */ 2994 #define AIPS_PACRP_AC4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_AC4_SHIFT)) & AIPS_PACRP_AC4_MASK) 2995 2996 #define AIPS_PACRP_RO4_MASK (0x8000U) 2997 #define AIPS_PACRP_RO4_SHIFT (15U) 2998 /*! RO4 - Read Only 2999 * 0b0..Writes to corresponding AC field are allowed. 3000 * 0b1..Writes to corresponding AC field are ignored. 3001 */ 3002 #define AIPS_PACRP_RO4(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_RO4_SHIFT)) & AIPS_PACRP_RO4_MASK) 3003 3004 #define AIPS_PACRP_AC3_MASK (0x70000U) 3005 #define AIPS_PACRP_AC3_SHIFT (16U) 3006 /*! AC3 - Attribute Check 3007 */ 3008 #define AIPS_PACRP_AC3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_AC3_SHIFT)) & AIPS_PACRP_AC3_MASK) 3009 3010 #define AIPS_PACRP_RO3_MASK (0x80000U) 3011 #define AIPS_PACRP_RO3_SHIFT (19U) 3012 /*! RO3 - Read Only 3013 * 0b0..Writes to corresponding AC field are allowed. 3014 * 0b1..Writes to corresponding AC field are ignored. 3015 */ 3016 #define AIPS_PACRP_RO3(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_RO3_SHIFT)) & AIPS_PACRP_RO3_MASK) 3017 3018 #define AIPS_PACRP_AC2_MASK (0x700000U) 3019 #define AIPS_PACRP_AC2_SHIFT (20U) 3020 /*! AC2 - Attribute Check 3021 */ 3022 #define AIPS_PACRP_AC2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_AC2_SHIFT)) & AIPS_PACRP_AC2_MASK) 3023 3024 #define AIPS_PACRP_RO2_MASK (0x800000U) 3025 #define AIPS_PACRP_RO2_SHIFT (23U) 3026 /*! RO2 - Read Only 3027 * 0b0..Writes to corresponding AC field are allowed. 3028 * 0b1..Writes to corresponding AC field are ignored. 3029 */ 3030 #define AIPS_PACRP_RO2(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_RO2_SHIFT)) & AIPS_PACRP_RO2_MASK) 3031 3032 #define AIPS_PACRP_AC1_MASK (0x7000000U) 3033 #define AIPS_PACRP_AC1_SHIFT (24U) 3034 /*! AC1 - Attribute Check 3035 */ 3036 #define AIPS_PACRP_AC1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_AC1_SHIFT)) & AIPS_PACRP_AC1_MASK) 3037 3038 #define AIPS_PACRP_RO1_MASK (0x8000000U) 3039 #define AIPS_PACRP_RO1_SHIFT (27U) 3040 /*! RO1 - Read Only 3041 * 0b0..Writes to corresponding AC field are allowed. 3042 * 0b1..Writes to corresponding AC field are ignored. 3043 */ 3044 #define AIPS_PACRP_RO1(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_RO1_SHIFT)) & AIPS_PACRP_RO1_MASK) 3045 3046 #define AIPS_PACRP_AC0_MASK (0x70000000U) 3047 #define AIPS_PACRP_AC0_SHIFT (28U) 3048 /*! AC0 - Attribute Check 3049 */ 3050 #define AIPS_PACRP_AC0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_AC0_SHIFT)) & AIPS_PACRP_AC0_MASK) 3051 3052 #define AIPS_PACRP_RO0_MASK (0x80000000U) 3053 #define AIPS_PACRP_RO0_SHIFT (31U) 3054 /*! RO0 - Read Only 3055 * 0b0..Writes to corresponding AC field are allowed. 3056 * 0b1..Writes to corresponding AC field are ignored. 3057 */ 3058 #define AIPS_PACRP_RO0(x) (((uint32_t)(((uint32_t)(x)) << AIPS_PACRP_RO0_SHIFT)) & AIPS_PACRP_RO0_MASK) 3059 /*! @} */ 3060 3061 3062 /*! 3063 * @} 3064 */ /* end of group AIPS_Register_Masks */ 3065 3066 3067 /* AIPS - Peripheral instance base addresses */ 3068 /** Peripheral AIPS base address */ 3069 #define AIPS_BASE (0x40000000u) 3070 /** Peripheral AIPS base pointer */ 3071 #define AIPS ((AIPS_Type *)AIPS_BASE) 3072 /** Array initializer of AIPS peripheral base addresses */ 3073 #define AIPS_BASE_ADDRS { AIPS_BASE } 3074 /** Array initializer of AIPS peripheral base pointers */ 3075 #define AIPS_BASE_PTRS { AIPS } 3076 3077 /*! 3078 * @} 3079 */ /* end of group AIPS_Peripheral_Access_Layer */ 3080 3081 3082 /* ---------------------------------------------------------------------------- 3083 -- CMP Peripheral Access Layer 3084 ---------------------------------------------------------------------------- */ 3085 3086 /*! 3087 * @addtogroup CMP_Peripheral_Access_Layer CMP Peripheral Access Layer 3088 * @{ 3089 */ 3090 3091 /** CMP - Register Layout Typedef */ 3092 typedef struct { 3093 __IO uint8_t CR0; /**< CMP Control Register 0, offset: 0x0 */ 3094 __IO uint8_t CR1; /**< CMP Control Register 1, offset: 0x1 */ 3095 __IO uint8_t FPR; /**< CMP Filter Period Register, offset: 0x2 */ 3096 __IO uint8_t SCR; /**< CMP Status and Control Register, offset: 0x3 */ 3097 __IO uint8_t DACCR; /**< DAC Control Register, offset: 0x4 */ 3098 __IO uint8_t MUXCR; /**< MUX Control Register, offset: 0x5 */ 3099 } CMP_Type; 3100 3101 /* ---------------------------------------------------------------------------- 3102 -- CMP Register Masks 3103 ---------------------------------------------------------------------------- */ 3104 3105 /*! 3106 * @addtogroup CMP_Register_Masks CMP Register Masks 3107 * @{ 3108 */ 3109 3110 /*! @name CR0 - CMP Control Register 0 */ 3111 /*! @{ */ 3112 3113 #define CMP_CR0_HYSTCTR_MASK (0x3U) 3114 #define CMP_CR0_HYSTCTR_SHIFT (0U) 3115 /*! HYSTCTR - Comparator hard block hysteresis control 3116 * 0b00..Level 0 3117 * 0b01..Level 1 3118 * 0b10..Level 2 3119 * 0b11..Level 3 3120 */ 3121 #define CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) 3122 3123 #define CMP_CR0_FILTER_CNT_MASK (0x70U) 3124 #define CMP_CR0_FILTER_CNT_SHIFT (4U) 3125 /*! FILTER_CNT - Filter Sample Count 3126 * 0b000..Filter is disabled. If SE = 1, then COUT is a logic 0. This is not a legal state, and is not recommended. If SE = 0, COUT = COUTA. 3127 * 0b001..One sample must agree. The comparator output is simply sampled. 3128 * 0b010..2 consecutive samples must agree. 3129 * 0b011..3 consecutive samples must agree. 3130 * 0b100..4 consecutive samples must agree. 3131 * 0b101..5 consecutive samples must agree. 3132 * 0b110..6 consecutive samples must agree. 3133 * 0b111..7 consecutive samples must agree. 3134 */ 3135 #define CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) 3136 /*! @} */ 3137 3138 /*! @name CR1 - CMP Control Register 1 */ 3139 /*! @{ */ 3140 3141 #define CMP_CR1_EN_MASK (0x1U) 3142 #define CMP_CR1_EN_SHIFT (0U) 3143 /*! EN - Comparator Module Enable 3144 * 0b0..Analog Comparator is disabled. 3145 * 0b1..Analog Comparator is enabled. 3146 */ 3147 #define CMP_CR1_EN(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) 3148 3149 #define CMP_CR1_OPE_MASK (0x2U) 3150 #define CMP_CR1_OPE_SHIFT (1U) 3151 /*! OPE - Comparator Output Pin Enable 3152 * 0b0..CMPO is not available on the associated CMPO output pin. 3153 * 0b1..CMPO is available on the associated CMPO output pin. 3154 */ 3155 #define CMP_CR1_OPE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) 3156 3157 #define CMP_CR1_COS_MASK (0x4U) 3158 #define CMP_CR1_COS_SHIFT (2U) 3159 /*! COS - Comparator Output Select 3160 * 0b0..Set the filtered comparator output (CMPO) to equal COUT. 3161 * 0b1..Set the unfiltered comparator output (CMPO) to equal COUTA. 3162 */ 3163 #define CMP_CR1_COS(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) 3164 3165 #define CMP_CR1_INV_MASK (0x8U) 3166 #define CMP_CR1_INV_SHIFT (3U) 3167 /*! INV - Comparator INVERT 3168 * 0b0..Does not invert the comparator output. 3169 * 0b1..Inverts the comparator output. 3170 */ 3171 #define CMP_CR1_INV(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) 3172 3173 #define CMP_CR1_PMODE_MASK (0x10U) 3174 #define CMP_CR1_PMODE_SHIFT (4U) 3175 /*! PMODE - Power Mode Select 3176 * 0b0..Low-Speed (LS) Comparison mode selected. In this mode, CMP has slower output propagation delay and lower current consumption. 3177 * 0b1..High-Speed (HS) Comparison mode selected. In this mode, CMP has faster output propagation delay and higher current consumption. 3178 */ 3179 #define CMP_CR1_PMODE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) 3180 3181 #define CMP_CR1_TRIGM_MASK (0x20U) 3182 #define CMP_CR1_TRIGM_SHIFT (5U) 3183 /*! TRIGM - Trigger Mode Enable 3184 * 0b0..Trigger mode is disabled. 3185 * 0b1..Trigger mode is enabled. 3186 */ 3187 #define CMP_CR1_TRIGM(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK) 3188 3189 #define CMP_CR1_WE_MASK (0x40U) 3190 #define CMP_CR1_WE_SHIFT (6U) 3191 /*! WE - Windowing Enable 3192 * 0b0..Windowing mode is not selected. 3193 * 0b1..Windowing mode is selected. 3194 */ 3195 #define CMP_CR1_WE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) 3196 3197 #define CMP_CR1_SE_MASK (0x80U) 3198 #define CMP_CR1_SE_SHIFT (7U) 3199 /*! SE - Sample Enable 3200 * 0b0..Sampling mode is not selected. 3201 * 0b1..Sampling mode is selected. 3202 */ 3203 #define CMP_CR1_SE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) 3204 /*! @} */ 3205 3206 /*! @name FPR - CMP Filter Period Register */ 3207 /*! @{ */ 3208 3209 #define CMP_FPR_FILT_PER_MASK (0xFFU) 3210 #define CMP_FPR_FILT_PER_SHIFT (0U) 3211 /*! FILT_PER - Filter Sample Period 3212 */ 3213 #define CMP_FPR_FILT_PER(x) (((uint8_t)(((uint8_t)(x)) << CMP_FPR_FILT_PER_SHIFT)) & CMP_FPR_FILT_PER_MASK) 3214 /*! @} */ 3215 3216 /*! @name SCR - CMP Status and Control Register */ 3217 /*! @{ */ 3218 3219 #define CMP_SCR_COUT_MASK (0x1U) 3220 #define CMP_SCR_COUT_SHIFT (0U) 3221 /*! COUT - Analog Comparator Output 3222 */ 3223 #define CMP_SCR_COUT(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_COUT_SHIFT)) & CMP_SCR_COUT_MASK) 3224 3225 #define CMP_SCR_CFF_MASK (0x2U) 3226 #define CMP_SCR_CFF_SHIFT (1U) 3227 /*! CFF - Analog Comparator Flag Falling 3228 * 0b0..Falling-edge on COUT has not been detected. 3229 * 0b1..Falling-edge on COUT has occurred. 3230 */ 3231 #define CMP_SCR_CFF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) 3232 3233 #define CMP_SCR_CFR_MASK (0x4U) 3234 #define CMP_SCR_CFR_SHIFT (2U) 3235 /*! CFR - Analog Comparator Flag Rising 3236 * 0b0..Rising-edge on COUT has not been detected. 3237 * 0b1..Rising-edge on COUT has occurred. 3238 */ 3239 #define CMP_SCR_CFR(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) 3240 3241 #define CMP_SCR_IEF_MASK (0x8U) 3242 #define CMP_SCR_IEF_SHIFT (3U) 3243 /*! IEF - Comparator Interrupt Enable Falling 3244 * 0b0..Interrupt is disabled. 3245 * 0b1..Interrupt is enabled. 3246 */ 3247 #define CMP_SCR_IEF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) 3248 3249 #define CMP_SCR_IER_MASK (0x10U) 3250 #define CMP_SCR_IER_SHIFT (4U) 3251 /*! IER - Comparator Interrupt Enable Rising 3252 * 0b0..Interrupt is disabled. 3253 * 0b1..Interrupt is enabled. 3254 */ 3255 #define CMP_SCR_IER(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) 3256 3257 #define CMP_SCR_DMAEN_MASK (0x40U) 3258 #define CMP_SCR_DMAEN_SHIFT (6U) 3259 /*! DMAEN - DMA Enable Control 3260 * 0b0..DMA is disabled. 3261 * 0b1..DMA is enabled. 3262 */ 3263 #define CMP_SCR_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) 3264 /*! @} */ 3265 3266 /*! @name DACCR - DAC Control Register */ 3267 /*! @{ */ 3268 3269 #define CMP_DACCR_VOSEL_MASK (0x3FU) 3270 #define CMP_DACCR_VOSEL_SHIFT (0U) 3271 /*! VOSEL - DAC Output Voltage Select 3272 */ 3273 #define CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK) 3274 3275 #define CMP_DACCR_VRSEL_MASK (0x40U) 3276 #define CMP_DACCR_VRSEL_SHIFT (6U) 3277 /*! VRSEL - Supply Voltage Reference Source Select 3278 * 0b0..Vin1 is selected as resistor ladder network supply reference. 3279 * 0b1..Vin2 is selected as resistor ladder network supply reference. 3280 */ 3281 #define CMP_DACCR_VRSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) 3282 3283 #define CMP_DACCR_DACEN_MASK (0x80U) 3284 #define CMP_DACCR_DACEN_SHIFT (7U) 3285 /*! DACEN - DAC Enable 3286 * 0b0..DAC is disabled. 3287 * 0b1..DAC is enabled. 3288 */ 3289 #define CMP_DACCR_DACEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) 3290 /*! @} */ 3291 3292 /*! @name MUXCR - MUX Control Register */ 3293 /*! @{ */ 3294 3295 #define CMP_MUXCR_MSEL_MASK (0x7U) 3296 #define CMP_MUXCR_MSEL_SHIFT (0U) 3297 /*! MSEL - Minus Input Mux Control 3298 * 0b000..IN0 3299 * 0b001..IN1 3300 * 0b010..IN2 3301 * 0b011..IN3 3302 * 0b100..IN4 3303 * 0b101..IN5 3304 * 0b110..IN6 3305 * 0b111..IN7 3306 */ 3307 #define CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) 3308 3309 #define CMP_MUXCR_PSEL_MASK (0x38U) 3310 #define CMP_MUXCR_PSEL_SHIFT (3U) 3311 /*! PSEL - Plus Input Mux Control 3312 * 0b000..IN0 3313 * 0b001..IN1 3314 * 0b010..IN2 3315 * 0b011..IN3 3316 * 0b100..IN4 3317 * 0b101..IN5 3318 * 0b110..IN6 3319 * 0b111..IN7 3320 */ 3321 #define CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) 3322 /*! @} */ 3323 3324 3325 /*! 3326 * @} 3327 */ /* end of group CMP_Register_Masks */ 3328 3329 3330 /* CMP - Peripheral instance base addresses */ 3331 /** Peripheral CMP0 base address */ 3332 #define CMP0_BASE (0x40072000u) 3333 /** Peripheral CMP0 base pointer */ 3334 #define CMP0 ((CMP_Type *)CMP0_BASE) 3335 /** Peripheral CMP1 base address */ 3336 #define CMP1_BASE (0x40072008u) 3337 /** Peripheral CMP1 base pointer */ 3338 #define CMP1 ((CMP_Type *)CMP1_BASE) 3339 /** Array initializer of CMP peripheral base addresses */ 3340 #define CMP_BASE_ADDRS { CMP0_BASE, CMP1_BASE } 3341 /** Array initializer of CMP peripheral base pointers */ 3342 #define CMP_BASE_PTRS { CMP0, CMP1 } 3343 /** Interrupt vectors for the CMP peripheral type */ 3344 #define CMP_IRQS { CMP0_CMP1_IRQn, CMP0_CMP1_IRQn } 3345 3346 /*! 3347 * @} 3348 */ /* end of group CMP_Peripheral_Access_Layer */ 3349 3350 3351 /* ---------------------------------------------------------------------------- 3352 -- CRC Peripheral Access Layer 3353 ---------------------------------------------------------------------------- */ 3354 3355 /*! 3356 * @addtogroup CRC_Peripheral_Access_Layer CRC Peripheral Access Layer 3357 * @{ 3358 */ 3359 3360 /** CRC - Register Layout Typedef */ 3361 typedef struct { 3362 union { /* offset: 0x0 */ 3363 struct { /* offset: 0x0 */ 3364 __IO uint8_t DATALL; /**< CRC_DATALL register., offset: 0x0 */ 3365 __IO uint8_t DATALU; /**< CRC_DATALU register., offset: 0x1 */ 3366 __IO uint8_t DATAHL; /**< CRC_DATAHL register., offset: 0x2 */ 3367 __IO uint8_t DATAHU; /**< CRC_DATAHU register., offset: 0x3 */ 3368 } ACCESS8BIT; 3369 struct { /* offset: 0x0 */ 3370 __IO uint16_t DATAL; /**< CRC_DATAL register., offset: 0x0 */ 3371 __IO uint16_t DATAH; /**< CRC_DATAH register., offset: 0x2 */ 3372 } ACCESS16BIT; 3373 __IO uint32_t DATA; /**< CRC Data register, offset: 0x0 */ 3374 }; 3375 union { /* offset: 0x4 */ 3376 struct { /* offset: 0x4 */ 3377 __IO uint8_t GPOLYLL; /**< CRC_GPOLYLL register., offset: 0x4 */ 3378 __IO uint8_t GPOLYLU; /**< CRC_GPOLYLU register., offset: 0x5 */ 3379 __IO uint8_t GPOLYHL; /**< CRC_GPOLYHL register., offset: 0x6 */ 3380 __IO uint8_t GPOLYHU; /**< CRC_GPOLYHU register., offset: 0x7 */ 3381 } GPOLY_ACCESS8BIT; 3382 struct { /* offset: 0x4 */ 3383 __IO uint16_t GPOLYL; /**< CRC_GPOLYL register., offset: 0x4 */ 3384 __IO uint16_t GPOLYH; /**< CRC_GPOLYH register., offset: 0x6 */ 3385 } GPOLY_ACCESS16BIT; 3386 __IO uint32_t GPOLY; /**< CRC Polynomial register, offset: 0x4 */ 3387 }; 3388 union { /* offset: 0x8 */ 3389 struct { /* offset: 0x8 */ 3390 uint8_t RESERVED_0[3]; 3391 __IO uint8_t CTRLHU; /**< CRC_CTRLHU register., offset: 0xB */ 3392 } CTRL_ACCESS8BIT; 3393 __IO uint32_t CTRL; /**< CRC Control register, offset: 0x8 */ 3394 }; 3395 } CRC_Type; 3396 3397 /* ---------------------------------------------------------------------------- 3398 -- CRC Register Masks 3399 ---------------------------------------------------------------------------- */ 3400 3401 /*! 3402 * @addtogroup CRC_Register_Masks CRC Register Masks 3403 * @{ 3404 */ 3405 3406 /*! @name DATALL - CRC_DATALL register. */ 3407 /*! @{ */ 3408 3409 #define CRC_DATALL_DATALL_MASK (0xFFU) 3410 #define CRC_DATALL_DATALL_SHIFT (0U) 3411 /*! DATALL - CRCLL stores the first 8 bits of the 32 bit DATA 3412 */ 3413 #define CRC_DATALL_DATALL(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATALL_DATALL_SHIFT)) & CRC_DATALL_DATALL_MASK) 3414 /*! @} */ 3415 3416 /*! @name DATALU - CRC_DATALU register. */ 3417 /*! @{ */ 3418 3419 #define CRC_DATALU_DATALU_MASK (0xFFU) 3420 #define CRC_DATALU_DATALU_SHIFT (0U) 3421 /*! DATALU - DATALL stores the second 8 bits of the 32 bit CRC 3422 */ 3423 #define CRC_DATALU_DATALU(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATALU_DATALU_SHIFT)) & CRC_DATALU_DATALU_MASK) 3424 /*! @} */ 3425 3426 /*! @name DATAHL - CRC_DATAHL register. */ 3427 /*! @{ */ 3428 3429 #define CRC_DATAHL_DATAHL_MASK (0xFFU) 3430 #define CRC_DATAHL_DATAHL_SHIFT (0U) 3431 /*! DATAHL - DATAHL stores the third 8 bits of the 32 bit CRC 3432 */ 3433 #define CRC_DATAHL_DATAHL(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATAHL_DATAHL_SHIFT)) & CRC_DATAHL_DATAHL_MASK) 3434 /*! @} */ 3435 3436 /*! @name DATAHU - CRC_DATAHU register. */ 3437 /*! @{ */ 3438 3439 #define CRC_DATAHU_DATAHU_MASK (0xFFU) 3440 #define CRC_DATAHU_DATAHU_SHIFT (0U) 3441 /*! DATAHU - DATAHU stores the fourth 8 bits of the 32 bit CRC 3442 */ 3443 #define CRC_DATAHU_DATAHU(x) (((uint8_t)(((uint8_t)(x)) << CRC_DATAHU_DATAHU_SHIFT)) & CRC_DATAHU_DATAHU_MASK) 3444 /*! @} */ 3445 3446 /*! @name DATAL - CRC_DATAL register. */ 3447 /*! @{ */ 3448 3449 #define CRC_DATAL_DATAL_MASK (0xFFFFU) 3450 #define CRC_DATAL_DATAL_SHIFT (0U) 3451 /*! DATAL - DATAL stores the lower 16 bits of the 16/32 bit CRC 3452 */ 3453 #define CRC_DATAL_DATAL(x) (((uint16_t)(((uint16_t)(x)) << CRC_DATAL_DATAL_SHIFT)) & CRC_DATAL_DATAL_MASK) 3454 /*! @} */ 3455 3456 /*! @name DATAH - CRC_DATAH register. */ 3457 /*! @{ */ 3458 3459 #define CRC_DATAH_DATAH_MASK (0xFFFFU) 3460 #define CRC_DATAH_DATAH_SHIFT (0U) 3461 /*! DATAH - DATAH stores the high 16 bits of the 16/32 bit CRC 3462 */ 3463 #define CRC_DATAH_DATAH(x) (((uint16_t)(((uint16_t)(x)) << CRC_DATAH_DATAH_SHIFT)) & CRC_DATAH_DATAH_MASK) 3464 /*! @} */ 3465 3466 /*! @name DATA - CRC Data register */ 3467 /*! @{ */ 3468 3469 #define CRC_DATA_LL_MASK (0xFFU) 3470 #define CRC_DATA_LL_SHIFT (0U) 3471 /*! LL - CRC Low Lower Byte 3472 */ 3473 #define CRC_DATA_LL(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_LL_SHIFT)) & CRC_DATA_LL_MASK) 3474 3475 #define CRC_DATA_LU_MASK (0xFF00U) 3476 #define CRC_DATA_LU_SHIFT (8U) 3477 /*! LU - CRC Low Upper Byte 3478 */ 3479 #define CRC_DATA_LU(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_LU_SHIFT)) & CRC_DATA_LU_MASK) 3480 3481 #define CRC_DATA_HL_MASK (0xFF0000U) 3482 #define CRC_DATA_HL_SHIFT (16U) 3483 /*! HL - CRC High Lower Byte 3484 */ 3485 #define CRC_DATA_HL(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_HL_SHIFT)) & CRC_DATA_HL_MASK) 3486 3487 #define CRC_DATA_HU_MASK (0xFF000000U) 3488 #define CRC_DATA_HU_SHIFT (24U) 3489 /*! HU - CRC High Upper Byte 3490 */ 3491 #define CRC_DATA_HU(x) (((uint32_t)(((uint32_t)(x)) << CRC_DATA_HU_SHIFT)) & CRC_DATA_HU_MASK) 3492 /*! @} */ 3493 3494 /*! @name GPOLYLL - CRC_GPOLYLL register. */ 3495 /*! @{ */ 3496 3497 #define CRC_GPOLYLL_GPOLYLL_MASK (0xFFU) 3498 #define CRC_GPOLYLL_GPOLYLL_SHIFT (0U) 3499 /*! GPOLYLL - POLYLL stores the first 8 bits of the 32 bit CRC 3500 */ 3501 #define CRC_GPOLYLL_GPOLYLL(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYLL_GPOLYLL_SHIFT)) & CRC_GPOLYLL_GPOLYLL_MASK) 3502 /*! @} */ 3503 3504 /*! @name GPOLYLU - CRC_GPOLYLU register. */ 3505 /*! @{ */ 3506 3507 #define CRC_GPOLYLU_GPOLYLU_MASK (0xFFU) 3508 #define CRC_GPOLYLU_GPOLYLU_SHIFT (0U) 3509 /*! GPOLYLU - POLYLL stores the second 8 bits of the 32 bit CRC 3510 */ 3511 #define CRC_GPOLYLU_GPOLYLU(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYLU_GPOLYLU_SHIFT)) & CRC_GPOLYLU_GPOLYLU_MASK) 3512 /*! @} */ 3513 3514 /*! @name GPOLYHL - CRC_GPOLYHL register. */ 3515 /*! @{ */ 3516 3517 #define CRC_GPOLYHL_GPOLYHL_MASK (0xFFU) 3518 #define CRC_GPOLYHL_GPOLYHL_SHIFT (0U) 3519 /*! GPOLYHL - POLYHL stores the third 8 bits of the 32 bit CRC 3520 */ 3521 #define CRC_GPOLYHL_GPOLYHL(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYHL_GPOLYHL_SHIFT)) & CRC_GPOLYHL_GPOLYHL_MASK) 3522 /*! @} */ 3523 3524 /*! @name GPOLYHU - CRC_GPOLYHU register. */ 3525 /*! @{ */ 3526 3527 #define CRC_GPOLYHU_GPOLYHU_MASK (0xFFU) 3528 #define CRC_GPOLYHU_GPOLYHU_SHIFT (0U) 3529 /*! GPOLYHU - POLYHU stores the fourth 8 bits of the 32 bit CRC 3530 */ 3531 #define CRC_GPOLYHU_GPOLYHU(x) (((uint8_t)(((uint8_t)(x)) << CRC_GPOLYHU_GPOLYHU_SHIFT)) & CRC_GPOLYHU_GPOLYHU_MASK) 3532 /*! @} */ 3533 3534 /*! @name GPOLYL - CRC_GPOLYL register. */ 3535 /*! @{ */ 3536 3537 #define CRC_GPOLYL_GPOLYL_MASK (0xFFFFU) 3538 #define CRC_GPOLYL_GPOLYL_SHIFT (0U) 3539 /*! GPOLYL - POLYL stores the lower 16 bits of the 16/32 bit CRC polynomial value 3540 */ 3541 #define CRC_GPOLYL_GPOLYL(x) (((uint16_t)(((uint16_t)(x)) << CRC_GPOLYL_GPOLYL_SHIFT)) & CRC_GPOLYL_GPOLYL_MASK) 3542 /*! @} */ 3543 3544 /*! @name GPOLYH - CRC_GPOLYH register. */ 3545 /*! @{ */ 3546 3547 #define CRC_GPOLYH_GPOLYH_MASK (0xFFFFU) 3548 #define CRC_GPOLYH_GPOLYH_SHIFT (0U) 3549 /*! GPOLYH - POLYH stores the high 16 bits of the 16/32 bit CRC polynomial value 3550 */ 3551 #define CRC_GPOLYH_GPOLYH(x) (((uint16_t)(((uint16_t)(x)) << CRC_GPOLYH_GPOLYH_SHIFT)) & CRC_GPOLYH_GPOLYH_MASK) 3552 /*! @} */ 3553 3554 /*! @name GPOLY - CRC Polynomial register */ 3555 /*! @{ */ 3556 3557 #define CRC_GPOLY_LOW_MASK (0xFFFFU) 3558 #define CRC_GPOLY_LOW_SHIFT (0U) 3559 /*! LOW - Low Polynominal Half-word 3560 */ 3561 #define CRC_GPOLY_LOW(x) (((uint32_t)(((uint32_t)(x)) << CRC_GPOLY_LOW_SHIFT)) & CRC_GPOLY_LOW_MASK) 3562 3563 #define CRC_GPOLY_HIGH_MASK (0xFFFF0000U) 3564 #define CRC_GPOLY_HIGH_SHIFT (16U) 3565 /*! HIGH - High Polynominal Half-word 3566 */ 3567 #define CRC_GPOLY_HIGH(x) (((uint32_t)(((uint32_t)(x)) << CRC_GPOLY_HIGH_SHIFT)) & CRC_GPOLY_HIGH_MASK) 3568 /*! @} */ 3569 3570 /*! @name CTRLHU - CRC_CTRLHU register. */ 3571 /*! @{ */ 3572 3573 #define CRC_CTRLHU_TCRC_MASK (0x1U) 3574 #define CRC_CTRLHU_TCRC_SHIFT (0U) 3575 /*! TCRC 3576 * 0b0..16-bit CRC protocol. 3577 * 0b1..32-bit CRC protocol. 3578 */ 3579 #define CRC_CTRLHU_TCRC(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_TCRC_SHIFT)) & CRC_CTRLHU_TCRC_MASK) 3580 3581 #define CRC_CTRLHU_WAS_MASK (0x2U) 3582 #define CRC_CTRLHU_WAS_SHIFT (1U) 3583 /*! WAS 3584 * 0b0..Writes to CRC data register are data values. 3585 * 0b1..Writes to CRC data reguster are seed values. 3586 */ 3587 #define CRC_CTRLHU_WAS(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_WAS_SHIFT)) & CRC_CTRLHU_WAS_MASK) 3588 3589 #define CRC_CTRLHU_FXOR_MASK (0x4U) 3590 #define CRC_CTRLHU_FXOR_SHIFT (2U) 3591 /*! FXOR 3592 * 0b0..No XOR on reading. 3593 * 0b1..Invert or complement the read value of CRC data register. 3594 */ 3595 #define CRC_CTRLHU_FXOR(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_FXOR_SHIFT)) & CRC_CTRLHU_FXOR_MASK) 3596 3597 #define CRC_CTRLHU_TOTR_MASK (0x30U) 3598 #define CRC_CTRLHU_TOTR_SHIFT (4U) 3599 /*! TOTR 3600 * 0b00..No Transposition. 3601 * 0b01..Bits in bytes are transposed, bytes are not transposed. 3602 * 0b10..Both bits in bytes and bytes are transposed. 3603 * 0b11..Only bytes are transposed; no bits in a byte are transposed. 3604 */ 3605 #define CRC_CTRLHU_TOTR(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_TOTR_SHIFT)) & CRC_CTRLHU_TOTR_MASK) 3606 3607 #define CRC_CTRLHU_TOT_MASK (0xC0U) 3608 #define CRC_CTRLHU_TOT_SHIFT (6U) 3609 /*! TOT 3610 * 0b00..No Transposition. 3611 * 0b01..Bits in bytes are transposed, bytes are not transposed. 3612 * 0b10..Both bits in bytes and bytes are transposed. 3613 * 0b11..Only bytes are transposed; no bits in a byte are transposed. 3614 */ 3615 #define CRC_CTRLHU_TOT(x) (((uint8_t)(((uint8_t)(x)) << CRC_CTRLHU_TOT_SHIFT)) & CRC_CTRLHU_TOT_MASK) 3616 /*! @} */ 3617 3618 /*! @name CTRL - CRC Control register */ 3619 /*! @{ */ 3620 3621 #define CRC_CTRL_TCRC_MASK (0x1000000U) 3622 #define CRC_CTRL_TCRC_SHIFT (24U) 3623 /*! TCRC 3624 * 0b0..16-bit CRC protocol. 3625 * 0b1..32-bit CRC protocol. 3626 */ 3627 #define CRC_CTRL_TCRC(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_TCRC_SHIFT)) & CRC_CTRL_TCRC_MASK) 3628 3629 #define CRC_CTRL_WAS_MASK (0x2000000U) 3630 #define CRC_CTRL_WAS_SHIFT (25U) 3631 /*! WAS - Write CRC Data Register As Seed 3632 * 0b0..Writes to the CRC data register are data values. 3633 * 0b1..Writes to the CRC data register are seed values. 3634 */ 3635 #define CRC_CTRL_WAS(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_WAS_SHIFT)) & CRC_CTRL_WAS_MASK) 3636 3637 #define CRC_CTRL_FXOR_MASK (0x4000000U) 3638 #define CRC_CTRL_FXOR_SHIFT (26U) 3639 /*! FXOR - Complement Read Of CRC Data Register 3640 * 0b0..No XOR on reading. 3641 * 0b1..Invert or complement the read value of the CRC Data register. 3642 */ 3643 #define CRC_CTRL_FXOR(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_FXOR_SHIFT)) & CRC_CTRL_FXOR_MASK) 3644 3645 #define CRC_CTRL_TOTR_MASK (0x30000000U) 3646 #define CRC_CTRL_TOTR_SHIFT (28U) 3647 /*! TOTR - Type Of Transpose For Read 3648 * 0b00..No transposition. 3649 * 0b01..Bits in bytes are transposed; bytes are not transposed. 3650 * 0b10..Both bits in bytes and bytes are transposed. 3651 * 0b11..Only bytes are transposed; no bits in a byte are transposed. 3652 */ 3653 #define CRC_CTRL_TOTR(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_TOTR_SHIFT)) & CRC_CTRL_TOTR_MASK) 3654 3655 #define CRC_CTRL_TOT_MASK (0xC0000000U) 3656 #define CRC_CTRL_TOT_SHIFT (30U) 3657 /*! TOT - Type Of Transpose For Writes 3658 * 0b00..No transposition. 3659 * 0b01..Bits in bytes are transposed; bytes are not transposed. 3660 * 0b10..Both bits in bytes and bytes are transposed. 3661 * 0b11..Only bytes are transposed; no bits in a byte are transposed. 3662 */ 3663 #define CRC_CTRL_TOT(x) (((uint32_t)(((uint32_t)(x)) << CRC_CTRL_TOT_SHIFT)) & CRC_CTRL_TOT_MASK) 3664 /*! @} */ 3665 3666 3667 /*! 3668 * @} 3669 */ /* end of group CRC_Register_Masks */ 3670 3671 3672 /* CRC - Peripheral instance base addresses */ 3673 /** Peripheral CRC base address */ 3674 #define CRC_BASE (0x40034000u) 3675 /** Peripheral CRC base pointer */ 3676 #define CRC0 ((CRC_Type *)CRC_BASE) 3677 /** Array initializer of CRC peripheral base addresses */ 3678 #define CRC_BASE_ADDRS { CRC_BASE } 3679 /** Array initializer of CRC peripheral base pointers */ 3680 #define CRC_BASE_PTRS { CRC0 } 3681 3682 /*! 3683 * @} 3684 */ /* end of group CRC_Peripheral_Access_Layer */ 3685 3686 3687 /* ---------------------------------------------------------------------------- 3688 -- DMA Peripheral Access Layer 3689 ---------------------------------------------------------------------------- */ 3690 3691 /*! 3692 * @addtogroup DMA_Peripheral_Access_Layer DMA Peripheral Access Layer 3693 * @{ 3694 */ 3695 3696 /** DMA - Register Layout Typedef */ 3697 typedef struct { 3698 uint8_t RESERVED_0[256]; 3699 struct { /* offset: 0x100, array step: 0x10 */ 3700 __IO uint32_t SAR; /**< Source Address Register, array offset: 0x100, array step: 0x10 */ 3701 __IO uint32_t DAR; /**< Destination Address Register, array offset: 0x104, array step: 0x10 */ 3702 union { /* offset: 0x108, array step: 0x10 */ 3703 struct { /* offset: 0x108, array step: 0x10 */ 3704 uint8_t RESERVED_0[3]; 3705 uint8_t DSR; /**< DMA_DSR0 register...DMA_DSR3 register., array offset: 0x10B, array step: 0x10 */ 3706 } DMA_DSR_ACCESS8BIT; 3707 __IO uint32_t DSR_BCR; /**< DMA Status Register / Byte Count Register, array offset: 0x108, array step: 0x10 */ 3708 }; 3709 __IO uint32_t DCR; /**< DMA Control Register, array offset: 0x10C, array step: 0x10 */ 3710 } DMA[4]; 3711 } DMA_Type; 3712 3713 /* ---------------------------------------------------------------------------- 3714 -- DMA Register Masks 3715 ---------------------------------------------------------------------------- */ 3716 3717 /*! 3718 * @addtogroup DMA_Register_Masks DMA Register Masks 3719 * @{ 3720 */ 3721 3722 /*! @name SAR - Source Address Register */ 3723 /*! @{ */ 3724 3725 #define DMA_SAR_SAR_MASK (0xFFFFFFFFU) 3726 #define DMA_SAR_SAR_SHIFT (0U) 3727 /*! SAR - SAR 3728 */ 3729 #define DMA_SAR_SAR(x) (((uint32_t)(((uint32_t)(x)) << DMA_SAR_SAR_SHIFT)) & DMA_SAR_SAR_MASK) 3730 /*! @} */ 3731 3732 /* The count of DMA_SAR */ 3733 #define DMA_SAR_COUNT (4U) 3734 3735 /*! @name DAR - Destination Address Register */ 3736 /*! @{ */ 3737 3738 #define DMA_DAR_DAR_MASK (0xFFFFFFFFU) 3739 #define DMA_DAR_DAR_SHIFT (0U) 3740 /*! DAR - DAR 3741 */ 3742 #define DMA_DAR_DAR(x) (((uint32_t)(((uint32_t)(x)) << DMA_DAR_DAR_SHIFT)) & DMA_DAR_DAR_MASK) 3743 /*! @} */ 3744 3745 /* The count of DMA_DAR */ 3746 #define DMA_DAR_COUNT (4U) 3747 3748 /* The count of DMA_DSR */ 3749 #define DMA_DSR_COUNT (4U) 3750 3751 /*! @name DSR_BCR - DMA Status Register / Byte Count Register */ 3752 /*! @{ */ 3753 3754 #define DMA_DSR_BCR_BCR_MASK (0xFFFFFFU) 3755 #define DMA_DSR_BCR_BCR_SHIFT (0U) 3756 /*! BCR - BCR 3757 */ 3758 #define DMA_DSR_BCR_BCR(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_BCR_SHIFT)) & DMA_DSR_BCR_BCR_MASK) 3759 3760 #define DMA_DSR_BCR_DONE_MASK (0x1000000U) 3761 #define DMA_DSR_BCR_DONE_SHIFT (24U) 3762 /*! DONE - Transactions Done 3763 * 0b0..DMA transfer is not yet complete. Writing a 0 has no effect. 3764 * 0b1..DMA transfer completed. Writing a 1 to this bit clears all DMA status bits and should be used in an 3765 * interrupt service routine to clear the DMA interrupt and error bits. 3766 */ 3767 #define DMA_DSR_BCR_DONE(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_DONE_SHIFT)) & DMA_DSR_BCR_DONE_MASK) 3768 3769 #define DMA_DSR_BCR_BSY_MASK (0x2000000U) 3770 #define DMA_DSR_BCR_BSY_SHIFT (25U) 3771 /*! BSY - Busy 3772 * 0b0..DMA channel is inactive. Cleared when the DMA has finished the last transaction. 3773 * 0b1..BSY is set the first time the channel is enabled after a transfer is initiated. 3774 */ 3775 #define DMA_DSR_BCR_BSY(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_BSY_SHIFT)) & DMA_DSR_BCR_BSY_MASK) 3776 3777 #define DMA_DSR_BCR_REQ_MASK (0x4000000U) 3778 #define DMA_DSR_BCR_REQ_SHIFT (26U) 3779 /*! REQ - Request 3780 * 0b0..No request is pending or the channel is currently active. Cleared when the channel is selected. 3781 * 0b1..The DMA channel has a transfer remaining and the channel is not selected. 3782 */ 3783 #define DMA_DSR_BCR_REQ(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_REQ_SHIFT)) & DMA_DSR_BCR_REQ_MASK) 3784 3785 #define DMA_DSR_BCR_BED_MASK (0x10000000U) 3786 #define DMA_DSR_BCR_BED_SHIFT (28U) 3787 /*! BED - Bus Error on Destination 3788 * 0b0..No bus error occurred. 3789 * 0b1..The DMA channel terminated with a bus error during the write portion of a transfer. 3790 */ 3791 #define DMA_DSR_BCR_BED(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_BED_SHIFT)) & DMA_DSR_BCR_BED_MASK) 3792 3793 #define DMA_DSR_BCR_BES_MASK (0x20000000U) 3794 #define DMA_DSR_BCR_BES_SHIFT (29U) 3795 /*! BES - Bus Error on Source 3796 * 0b0..No bus error occurred. 3797 * 0b1..The DMA channel terminated with a bus error during the read portion of a transfer. 3798 */ 3799 #define DMA_DSR_BCR_BES(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_BES_SHIFT)) & DMA_DSR_BCR_BES_MASK) 3800 3801 #define DMA_DSR_BCR_CE_MASK (0x40000000U) 3802 #define DMA_DSR_BCR_CE_SHIFT (30U) 3803 /*! CE - Configuration Error 3804 * 0b0..No configuration error exists. 3805 * 0b1..A configuration error has occurred. 3806 */ 3807 #define DMA_DSR_BCR_CE(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_CE_SHIFT)) & DMA_DSR_BCR_CE_MASK) 3808 /*! @} */ 3809 3810 /* The count of DMA_DSR_BCR */ 3811 #define DMA_DSR_BCR_COUNT (4U) 3812 3813 /*! @name DCR - DMA Control Register */ 3814 /*! @{ */ 3815 3816 #define DMA_DCR_LCH2_MASK (0x3U) 3817 #define DMA_DCR_LCH2_SHIFT (0U) 3818 /*! LCH2 - Link Channel 2 3819 * 0b00..DMA Channel 0 3820 * 0b01..DMA Channel 1 3821 * 0b10..DMA Channel 2 3822 * 0b11..DMA Channel 3 3823 */ 3824 #define DMA_DCR_LCH2(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_LCH2_SHIFT)) & DMA_DCR_LCH2_MASK) 3825 3826 #define DMA_DCR_LCH1_MASK (0xCU) 3827 #define DMA_DCR_LCH1_SHIFT (2U) 3828 /*! LCH1 - Link Channel 1 3829 * 0b00..DMA Channel 0 3830 * 0b01..DMA Channel 1 3831 * 0b10..DMA Channel 2 3832 * 0b11..DMA Channel 3 3833 */ 3834 #define DMA_DCR_LCH1(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_LCH1_SHIFT)) & DMA_DCR_LCH1_MASK) 3835 3836 #define DMA_DCR_LINKCC_MASK (0x30U) 3837 #define DMA_DCR_LINKCC_SHIFT (4U) 3838 /*! LINKCC - Link Channel Control 3839 * 0b00..No channel-to-channel linking 3840 * 0b01..Perform a link to channel LCH1 after each cycle-steal transfer followed by a link to LCH2 after the BCR decrements to 0. 3841 * 0b10..Perform a link to channel LCH1 after each cycle-steal transfer 3842 * 0b11..Perform a link to channel LCH1 after the BCR decrements to 0. 3843 */ 3844 #define DMA_DCR_LINKCC(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_LINKCC_SHIFT)) & DMA_DCR_LINKCC_MASK) 3845 3846 #define DMA_DCR_D_REQ_MASK (0x80U) 3847 #define DMA_DCR_D_REQ_SHIFT (7U) 3848 /*! D_REQ - Disable Request 3849 * 0b0..ERQ bit is not affected. 3850 * 0b1..ERQ bit is cleared when the BCR is exhausted. 3851 */ 3852 #define DMA_DCR_D_REQ(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_D_REQ_SHIFT)) & DMA_DCR_D_REQ_MASK) 3853 3854 #define DMA_DCR_DMOD_MASK (0xF00U) 3855 #define DMA_DCR_DMOD_SHIFT (8U) 3856 /*! DMOD - Destination Address Modulo 3857 * 0b0000..Buffer disabled 3858 * 0b0001..Circular buffer size is 16 bytes 3859 * 0b0010..Circular buffer size is 32 bytes 3860 * 0b0011..Circular buffer size is 64 bytes 3861 * 0b0100..Circular buffer size is 128 bytes 3862 * 0b0101..Circular buffer size is 256 bytes 3863 * 0b0110..Circular buffer size is 512 bytes 3864 * 0b0111..Circular buffer size is 1 KB 3865 * 0b1000..Circular buffer size is 2 KB 3866 * 0b1001..Circular buffer size is 4 KB 3867 * 0b1010..Circular buffer size is 8 KB 3868 * 0b1011..Circular buffer size is 16 KB 3869 * 0b1100..Circular buffer size is 32 KB 3870 * 0b1101..Circular buffer size is 64 KB 3871 * 0b1110..Circular buffer size is 128 KB 3872 * 0b1111..Circular buffer size is 256 KB 3873 */ 3874 #define DMA_DCR_DMOD(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_DMOD_SHIFT)) & DMA_DCR_DMOD_MASK) 3875 3876 #define DMA_DCR_SMOD_MASK (0xF000U) 3877 #define DMA_DCR_SMOD_SHIFT (12U) 3878 /*! SMOD - Source Address Modulo 3879 * 0b0000..Buffer disabled 3880 * 0b0001..Circular buffer size is 16 bytes. 3881 * 0b0010..Circular buffer size is 32 bytes. 3882 * 0b0011..Circular buffer size is 64 bytes. 3883 * 0b0100..Circular buffer size is 128 bytes. 3884 * 0b0101..Circular buffer size is 256 bytes. 3885 * 0b0110..Circular buffer size is 512 bytes. 3886 * 0b0111..Circular buffer size is 1 KB. 3887 * 0b1000..Circular buffer size is 2 KB. 3888 * 0b1001..Circular buffer size is 4 KB. 3889 * 0b1010..Circular buffer size is 8 KB. 3890 * 0b1011..Circular buffer size is 16 KB. 3891 * 0b1100..Circular buffer size is 32 KB. 3892 * 0b1101..Circular buffer size is 64 KB. 3893 * 0b1110..Circular buffer size is 128 KB. 3894 * 0b1111..Circular buffer size is 256 KB. 3895 */ 3896 #define DMA_DCR_SMOD(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_SMOD_SHIFT)) & DMA_DCR_SMOD_MASK) 3897 3898 #define DMA_DCR_START_MASK (0x10000U) 3899 #define DMA_DCR_START_SHIFT (16U) 3900 /*! START - Start Transfer 3901 * 0b0..DMA inactive 3902 * 0b1..The DMA begins the transfer in accordance to the values in the TCDn. START is cleared automatically after 3903 * one module clock and always reads as logic 0. 3904 */ 3905 #define DMA_DCR_START(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_START_SHIFT)) & DMA_DCR_START_MASK) 3906 3907 #define DMA_DCR_DSIZE_MASK (0x60000U) 3908 #define DMA_DCR_DSIZE_SHIFT (17U) 3909 /*! DSIZE - Destination Size 3910 * 0b00..32-bit 3911 * 0b01..8-bit 3912 * 0b10..16-bit 3913 * 0b11..Reserved (generates a configuration error (DSRn[CE]) if incorrectly specified at time of channel activation) 3914 */ 3915 #define DMA_DCR_DSIZE(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_DSIZE_SHIFT)) & DMA_DCR_DSIZE_MASK) 3916 3917 #define DMA_DCR_DINC_MASK (0x80000U) 3918 #define DMA_DCR_DINC_SHIFT (19U) 3919 /*! DINC - Destination Increment 3920 * 0b0..No change to the DAR after a successful transfer. 3921 * 0b1..The DAR increments by 1, 2, 4 depending upon the size of the transfer. 3922 */ 3923 #define DMA_DCR_DINC(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_DINC_SHIFT)) & DMA_DCR_DINC_MASK) 3924 3925 #define DMA_DCR_SSIZE_MASK (0x300000U) 3926 #define DMA_DCR_SSIZE_SHIFT (20U) 3927 /*! SSIZE - Source Size 3928 * 0b00..32-bit 3929 * 0b01..8-bit 3930 * 0b10..16-bit 3931 * 0b11..Reserved (generates a configuration error (DSRn[CE]) if incorrectly specified at time of channel activation) 3932 */ 3933 #define DMA_DCR_SSIZE(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_SSIZE_SHIFT)) & DMA_DCR_SSIZE_MASK) 3934 3935 #define DMA_DCR_SINC_MASK (0x400000U) 3936 #define DMA_DCR_SINC_SHIFT (22U) 3937 /*! SINC - Source Increment 3938 * 0b0..No change to SAR after a successful transfer. 3939 * 0b1..The SAR increments by 1, 2, 4 as determined by the transfer size. 3940 */ 3941 #define DMA_DCR_SINC(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_SINC_SHIFT)) & DMA_DCR_SINC_MASK) 3942 3943 #define DMA_DCR_EADREQ_MASK (0x800000U) 3944 #define DMA_DCR_EADREQ_SHIFT (23U) 3945 /*! EADREQ - Enable asynchronous DMA requests 3946 * 0b0..Disabled 3947 * 0b1..Enabled 3948 */ 3949 #define DMA_DCR_EADREQ(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_EADREQ_SHIFT)) & DMA_DCR_EADREQ_MASK) 3950 3951 #define DMA_DCR_UMNSM_MASK (0x3000000U) 3952 #define DMA_DCR_UMNSM_SHIFT (24U) 3953 /*! UMNSM - User Mode, Nonsecure Mode 3954 * 0b00..Channel attributes are set to the current mode. 3955 * 0b01..If the current mode is privileged and secure, then attributes are set to {privileged, secure}. 3956 * Otherwise, writing this value terminates in an error. 3957 * 0b10..If the current mode is privileged and secure or if the current mode is user and secure, then attributes 3958 * are set to {user, secure}. Otherwise, writing this value terminates in an error. 3959 * 0b11..If the current mode is privileged and secure, user and secure, or user and nonsecure, then attributes are set to {user, nonsecure}. 3960 */ 3961 #define DMA_DCR_UMNSM(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_UMNSM_SHIFT)) & DMA_DCR_UMNSM_MASK) 3962 3963 #define DMA_DCR_CHACR_MASK (0xC000000U) 3964 #define DMA_DCR_CHACR_SHIFT (26U) 3965 /*! CHACR - Channel Access Control 3966 */ 3967 #define DMA_DCR_CHACR(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_CHACR_SHIFT)) & DMA_DCR_CHACR_MASK) 3968 3969 #define DMA_DCR_AA_MASK (0x10000000U) 3970 #define DMA_DCR_AA_SHIFT (28U) 3971 /*! AA - Auto-align 3972 * 0b0..Auto-align disabled 3973 * 0b1..If SSIZE indicates a transfer no smaller than DSIZE, source accesses are auto-aligned; otherwise, 3974 * destination accesses are auto-aligned. Source alignment takes precedence over destination alignment. If 3975 * auto-alignment is enabled, the appropriate address register increments, regardless of DINC or SINC. 3976 */ 3977 #define DMA_DCR_AA(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_AA_SHIFT)) & DMA_DCR_AA_MASK) 3978 3979 #define DMA_DCR_CS_MASK (0x20000000U) 3980 #define DMA_DCR_CS_SHIFT (29U) 3981 /*! CS - Cycle Steal 3982 * 0b0..DMA continuously makes read/write transfers until the BCR decrements to 0. 3983 * 0b1..Forces a single read/write transfer per request. 3984 */ 3985 #define DMA_DCR_CS(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_CS_SHIFT)) & DMA_DCR_CS_MASK) 3986 3987 #define DMA_DCR_ERQ_MASK (0x40000000U) 3988 #define DMA_DCR_ERQ_SHIFT (30U) 3989 /*! ERQ - Enable Peripheral Request 3990 * 0b0..Peripheral request is ignored. 3991 * 0b1..Enables peripheral request to initiate transfer. A software-initiated request (setting START) is always enabled. 3992 */ 3993 #define DMA_DCR_ERQ(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_ERQ_SHIFT)) & DMA_DCR_ERQ_MASK) 3994 3995 #define DMA_DCR_EINT_MASK (0x80000000U) 3996 #define DMA_DCR_EINT_SHIFT (31U) 3997 /*! EINT - Enable Interrupt on Completion of Transfer 3998 * 0b0..No interrupt is generated. 3999 * 0b1..Interrupt signal is enabled. 4000 */ 4001 #define DMA_DCR_EINT(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_EINT_SHIFT)) & DMA_DCR_EINT_MASK) 4002 /*! @} */ 4003 4004 /* The count of DMA_DCR */ 4005 #define DMA_DCR_COUNT (4U) 4006 4007 4008 /*! 4009 * @} 4010 */ /* end of group DMA_Register_Masks */ 4011 4012 4013 /* DMA - Peripheral instance base addresses */ 4014 /** Peripheral DMA base address */ 4015 #define DMA_BASE (0x40008000u) 4016 /** Peripheral DMA base pointer */ 4017 #define DMA0 ((DMA_Type *)DMA_BASE) 4018 /** Array initializer of DMA peripheral base addresses */ 4019 #define DMA_BASE_ADDRS { DMA_BASE } 4020 /** Array initializer of DMA peripheral base pointers */ 4021 #define DMA_BASE_PTRS { DMA0 } 4022 /** Interrupt vectors for the DMA peripheral type */ 4023 #define DMA_CHN_IRQS { { DMA0_IRQn, DMA1_IRQn, DMA2_IRQn, DMA3_IRQn } } 4024 4025 /*! 4026 * @} 4027 */ /* end of group DMA_Peripheral_Access_Layer */ 4028 4029 4030 /* ---------------------------------------------------------------------------- 4031 -- DMAMUX Peripheral Access Layer 4032 ---------------------------------------------------------------------------- */ 4033 4034 /*! 4035 * @addtogroup DMAMUX_Peripheral_Access_Layer DMAMUX Peripheral Access Layer 4036 * @{ 4037 */ 4038 4039 /** DMAMUX - Register Layout Typedef */ 4040 typedef struct { 4041 __IO uint8_t CHCFG[1]; /**< Channel Configuration register, array offset: 0x0, array step: 0x1 */ 4042 } DMAMUX_Type; 4043 4044 /* ---------------------------------------------------------------------------- 4045 -- DMAMUX Register Masks 4046 ---------------------------------------------------------------------------- */ 4047 4048 /*! 4049 * @addtogroup DMAMUX_Register_Masks DMAMUX Register Masks 4050 * @{ 4051 */ 4052 4053 /*! @name CHCFG - Channel Configuration register */ 4054 /*! @{ */ 4055 4056 #define DMAMUX_CHCFG_SOURCE_MASK (0x3FU) 4057 #define DMAMUX_CHCFG_SOURCE_SHIFT (0U) 4058 /*! SOURCE - DMA Channel Source (Slot) 4059 */ 4060 #define DMAMUX_CHCFG_SOURCE(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFG_SOURCE_SHIFT)) & DMAMUX_CHCFG_SOURCE_MASK) 4061 4062 #define DMAMUX_CHCFG_TRIG_MASK (0x40U) 4063 #define DMAMUX_CHCFG_TRIG_SHIFT (6U) 4064 /*! TRIG - DMA Channel Trigger Enable 4065 * 0b0..Triggering is disabled. If triggering is disabled and ENBL is set, the DMA Channel will simply route the 4066 * specified source to the DMA channel. (Normal mode) 4067 * 0b1..Triggering is enabled. If triggering is enabled and ENBL is set, the DMAMUX is in Periodic Trigger mode. 4068 */ 4069 #define DMAMUX_CHCFG_TRIG(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFG_TRIG_SHIFT)) & DMAMUX_CHCFG_TRIG_MASK) 4070 4071 #define DMAMUX_CHCFG_ENBL_MASK (0x80U) 4072 #define DMAMUX_CHCFG_ENBL_SHIFT (7U) 4073 /*! ENBL - DMA Channel Enable 4074 * 0b0..DMA channel is disabled. This mode is primarily used during configuration of the DMAMux. The DMA has 4075 * separate channel enables/disables, which should be used to disable or reconfigure a DMA channel. 4076 * 0b1..DMA channel is enabled 4077 */ 4078 #define DMAMUX_CHCFG_ENBL(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFG_ENBL_SHIFT)) & DMAMUX_CHCFG_ENBL_MASK) 4079 /*! @} */ 4080 4081 /* The count of DMAMUX_CHCFG */ 4082 #define DMAMUX_CHCFG_COUNT (1U) 4083 4084 4085 /*! 4086 * @} 4087 */ /* end of group DMAMUX_Register_Masks */ 4088 4089 4090 /* DMAMUX - Peripheral instance base addresses */ 4091 /** Peripheral DMAMUX0 base address */ 4092 #define DMAMUX0_BASE (0x40021000u) 4093 /** Peripheral DMAMUX0 base pointer */ 4094 #define DMAMUX0 ((DMAMUX_Type *)DMAMUX0_BASE) 4095 /** Peripheral DMAMUX1 base address */ 4096 #define DMAMUX1_BASE (0x40022000u) 4097 /** Peripheral DMAMUX1 base pointer */ 4098 #define DMAMUX1 ((DMAMUX_Type *)DMAMUX1_BASE) 4099 /** Peripheral DMAMUX2 base address */ 4100 #define DMAMUX2_BASE (0x40023000u) 4101 /** Peripheral DMAMUX2 base pointer */ 4102 #define DMAMUX2 ((DMAMUX_Type *)DMAMUX2_BASE) 4103 /** Peripheral DMAMUX3 base address */ 4104 #define DMAMUX3_BASE (0x40024000u) 4105 /** Peripheral DMAMUX3 base pointer */ 4106 #define DMAMUX3 ((DMAMUX_Type *)DMAMUX3_BASE) 4107 /** Array initializer of DMAMUX peripheral base addresses */ 4108 #define DMAMUX_BASE_ADDRS { DMAMUX0_BASE, DMAMUX1_BASE, DMAMUX2_BASE, DMAMUX3_BASE } 4109 /** Array initializer of DMAMUX peripheral base pointers */ 4110 #define DMAMUX_BASE_PTRS { DMAMUX0, DMAMUX1, DMAMUX2, DMAMUX3 } 4111 4112 /*! 4113 * @} 4114 */ /* end of group DMAMUX_Peripheral_Access_Layer */ 4115 4116 4117 /* ---------------------------------------------------------------------------- 4118 -- EWM Peripheral Access Layer 4119 ---------------------------------------------------------------------------- */ 4120 4121 /*! 4122 * @addtogroup EWM_Peripheral_Access_Layer EWM Peripheral Access Layer 4123 * @{ 4124 */ 4125 4126 /** EWM - Register Layout Typedef */ 4127 typedef struct { 4128 __IO uint8_t CTRL; /**< Control Register, offset: 0x0 */ 4129 __O uint8_t SERV; /**< Service Register, offset: 0x1 */ 4130 __IO uint8_t CMPL; /**< Compare Low Register, offset: 0x2 */ 4131 __IO uint8_t CMPH; /**< Compare High Register, offset: 0x3 */ 4132 } EWM_Type; 4133 4134 /* ---------------------------------------------------------------------------- 4135 -- EWM Register Masks 4136 ---------------------------------------------------------------------------- */ 4137 4138 /*! 4139 * @addtogroup EWM_Register_Masks EWM Register Masks 4140 * @{ 4141 */ 4142 4143 /*! @name CTRL - Control Register */ 4144 /*! @{ */ 4145 4146 #define EWM_CTRL_EWMEN_MASK (0x1U) 4147 #define EWM_CTRL_EWMEN_SHIFT (0U) 4148 /*! EWMEN - EWM enable. 4149 */ 4150 #define EWM_CTRL_EWMEN(x) (((uint8_t)(((uint8_t)(x)) << EWM_CTRL_EWMEN_SHIFT)) & EWM_CTRL_EWMEN_MASK) 4151 4152 #define EWM_CTRL_ASSIN_MASK (0x2U) 4153 #define EWM_CTRL_ASSIN_SHIFT (1U) 4154 /*! ASSIN - EWM_in's Assertion State Select. 4155 */ 4156 #define EWM_CTRL_ASSIN(x) (((uint8_t)(((uint8_t)(x)) << EWM_CTRL_ASSIN_SHIFT)) & EWM_CTRL_ASSIN_MASK) 4157 4158 #define EWM_CTRL_INEN_MASK (0x4U) 4159 #define EWM_CTRL_INEN_SHIFT (2U) 4160 /*! INEN - Input Enable. 4161 */ 4162 #define EWM_CTRL_INEN(x) (((uint8_t)(((uint8_t)(x)) << EWM_CTRL_INEN_SHIFT)) & EWM_CTRL_INEN_MASK) 4163 4164 #define EWM_CTRL_INTEN_MASK (0x8U) 4165 #define EWM_CTRL_INTEN_SHIFT (3U) 4166 /*! INTEN - Interrupt Enable. 4167 */ 4168 #define EWM_CTRL_INTEN(x) (((uint8_t)(((uint8_t)(x)) << EWM_CTRL_INTEN_SHIFT)) & EWM_CTRL_INTEN_MASK) 4169 /*! @} */ 4170 4171 /*! @name SERV - Service Register */ 4172 /*! @{ */ 4173 4174 #define EWM_SERV_SERVICE_MASK (0xFFU) 4175 #define EWM_SERV_SERVICE_SHIFT (0U) 4176 #define EWM_SERV_SERVICE(x) (((uint8_t)(((uint8_t)(x)) << EWM_SERV_SERVICE_SHIFT)) & EWM_SERV_SERVICE_MASK) 4177 /*! @} */ 4178 4179 /*! @name CMPL - Compare Low Register */ 4180 /*! @{ */ 4181 4182 #define EWM_CMPL_COMPAREL_MASK (0xFFU) 4183 #define EWM_CMPL_COMPAREL_SHIFT (0U) 4184 #define EWM_CMPL_COMPAREL(x) (((uint8_t)(((uint8_t)(x)) << EWM_CMPL_COMPAREL_SHIFT)) & EWM_CMPL_COMPAREL_MASK) 4185 /*! @} */ 4186 4187 /*! @name CMPH - Compare High Register */ 4188 /*! @{ */ 4189 4190 #define EWM_CMPH_COMPAREH_MASK (0xFFU) 4191 #define EWM_CMPH_COMPAREH_SHIFT (0U) 4192 #define EWM_CMPH_COMPAREH(x) (((uint8_t)(((uint8_t)(x)) << EWM_CMPH_COMPAREH_SHIFT)) & EWM_CMPH_COMPAREH_MASK) 4193 /*! @} */ 4194 4195 4196 /*! 4197 * @} 4198 */ /* end of group EWM_Register_Masks */ 4199 4200 4201 /* EWM - Peripheral instance base addresses */ 4202 /** Peripheral EWM base address */ 4203 #define EWM_BASE (0x40061000u) 4204 /** Peripheral EWM base pointer */ 4205 #define EWM ((EWM_Type *)EWM_BASE) 4206 /** Array initializer of EWM peripheral base addresses */ 4207 #define EWM_BASE_ADDRS { EWM_BASE } 4208 /** Array initializer of EWM peripheral base pointers */ 4209 #define EWM_BASE_PTRS { EWM } 4210 /** Interrupt vectors for the EWM peripheral type */ 4211 #define EWM_IRQS { EWM_IRQn } 4212 4213 /*! 4214 * @} 4215 */ /* end of group EWM_Peripheral_Access_Layer */ 4216 4217 4218 /* ---------------------------------------------------------------------------- 4219 -- FTFA Peripheral Access Layer 4220 ---------------------------------------------------------------------------- */ 4221 4222 /*! 4223 * @addtogroup FTFA_Peripheral_Access_Layer FTFA Peripheral Access Layer 4224 * @{ 4225 */ 4226 4227 /** FTFA - Register Layout Typedef */ 4228 typedef struct { 4229 __IO uint8_t FSTAT; /**< Flash Status Register, offset: 0x0 */ 4230 __IO uint8_t FCNFG; /**< Flash Configuration Register, offset: 0x1 */ 4231 __I uint8_t FSEC; /**< Flash Security Register, offset: 0x2 */ 4232 __I uint8_t FOPT; /**< Flash Option Register, offset: 0x3 */ 4233 __IO uint8_t FCCOB3; /**< Flash Common Command Object Registers, offset: 0x4 */ 4234 __IO uint8_t FCCOB2; /**< Flash Common Command Object Registers, offset: 0x5 */ 4235 __IO uint8_t FCCOB1; /**< Flash Common Command Object Registers, offset: 0x6 */ 4236 __IO uint8_t FCCOB0; /**< Flash Common Command Object Registers, offset: 0x7 */ 4237 __IO uint8_t FCCOB7; /**< Flash Common Command Object Registers, offset: 0x8 */ 4238 __IO uint8_t FCCOB6; /**< Flash Common Command Object Registers, offset: 0x9 */ 4239 __IO uint8_t FCCOB5; /**< Flash Common Command Object Registers, offset: 0xA */ 4240 __IO uint8_t FCCOB4; /**< Flash Common Command Object Registers, offset: 0xB */ 4241 __IO uint8_t FCCOBB; /**< Flash Common Command Object Registers, offset: 0xC */ 4242 __IO uint8_t FCCOBA; /**< Flash Common Command Object Registers, offset: 0xD */ 4243 __IO uint8_t FCCOB9; /**< Flash Common Command Object Registers, offset: 0xE */ 4244 __IO uint8_t FCCOB8; /**< Flash Common Command Object Registers, offset: 0xF */ 4245 __IO uint8_t FPROT3; /**< Program Flash Protection Registers, offset: 0x10 */ 4246 __IO uint8_t FPROT2; /**< Program Flash Protection Registers, offset: 0x11 */ 4247 __IO uint8_t FPROT1; /**< Program Flash Protection Registers, offset: 0x12 */ 4248 __IO uint8_t FPROT0; /**< Program Flash Protection Registers, offset: 0x13 */ 4249 } FTFA_Type; 4250 4251 /* ---------------------------------------------------------------------------- 4252 -- FTFA Register Masks 4253 ---------------------------------------------------------------------------- */ 4254 4255 /*! 4256 * @addtogroup FTFA_Register_Masks FTFA Register Masks 4257 * @{ 4258 */ 4259 4260 /*! @name FSTAT - Flash Status Register */ 4261 /*! @{ */ 4262 4263 #define FTFA_FSTAT_MGSTAT0_MASK (0x1U) 4264 #define FTFA_FSTAT_MGSTAT0_SHIFT (0U) 4265 /*! MGSTAT0 - Memory Controller Command Completion Status Flag 4266 */ 4267 #define FTFA_FSTAT_MGSTAT0(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_MGSTAT0_SHIFT)) & FTFA_FSTAT_MGSTAT0_MASK) 4268 4269 #define FTFA_FSTAT_FPVIOL_MASK (0x10U) 4270 #define FTFA_FSTAT_FPVIOL_SHIFT (4U) 4271 /*! FPVIOL - Flash Protection Violation Flag 4272 * 0b0..No protection violation detected 4273 * 0b1..Protection violation detected 4274 */ 4275 #define FTFA_FSTAT_FPVIOL(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_FPVIOL_SHIFT)) & FTFA_FSTAT_FPVIOL_MASK) 4276 4277 #define FTFA_FSTAT_ACCERR_MASK (0x20U) 4278 #define FTFA_FSTAT_ACCERR_SHIFT (5U) 4279 /*! ACCERR - Flash Access Error Flag 4280 * 0b0..No access error detected 4281 * 0b1..Access error detected 4282 */ 4283 #define FTFA_FSTAT_ACCERR(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_ACCERR_SHIFT)) & FTFA_FSTAT_ACCERR_MASK) 4284 4285 #define FTFA_FSTAT_RDCOLERR_MASK (0x40U) 4286 #define FTFA_FSTAT_RDCOLERR_SHIFT (6U) 4287 /*! RDCOLERR - Flash Read Collision Error Flag 4288 * 0b0..No collision error detected 4289 * 0b1..Collision error detected 4290 */ 4291 #define FTFA_FSTAT_RDCOLERR(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_RDCOLERR_SHIFT)) & FTFA_FSTAT_RDCOLERR_MASK) 4292 4293 #define FTFA_FSTAT_CCIF_MASK (0x80U) 4294 #define FTFA_FSTAT_CCIF_SHIFT (7U) 4295 /*! CCIF - Command Complete Interrupt Flag 4296 * 0b0..Flash command in progress 4297 * 0b1..Flash command has completed 4298 */ 4299 #define FTFA_FSTAT_CCIF(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_CCIF_SHIFT)) & FTFA_FSTAT_CCIF_MASK) 4300 /*! @} */ 4301 4302 /*! @name FCNFG - Flash Configuration Register */ 4303 /*! @{ */ 4304 4305 #define FTFA_FCNFG_ERSSUSP_MASK (0x10U) 4306 #define FTFA_FCNFG_ERSSUSP_SHIFT (4U) 4307 /*! ERSSUSP - Erase Suspend 4308 * 0b0..No suspend requested 4309 * 0b1..Suspend the current Erase Flash Sector command execution. 4310 */ 4311 #define FTFA_FCNFG_ERSSUSP(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCNFG_ERSSUSP_SHIFT)) & FTFA_FCNFG_ERSSUSP_MASK) 4312 4313 #define FTFA_FCNFG_ERSAREQ_MASK (0x20U) 4314 #define FTFA_FCNFG_ERSAREQ_SHIFT (5U) 4315 /*! ERSAREQ - Erase All Request 4316 * 0b0..No request or request complete 4317 * 0b1..Request to: run the Erase All Blocks command, verify the erased state, program the security byte in the 4318 * Flash Configuration Field to the unsecure state, and release MCU security by setting the FSEC[SEC] field to 4319 * the unsecure state. 4320 */ 4321 #define FTFA_FCNFG_ERSAREQ(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCNFG_ERSAREQ_SHIFT)) & FTFA_FCNFG_ERSAREQ_MASK) 4322 4323 #define FTFA_FCNFG_RDCOLLIE_MASK (0x40U) 4324 #define FTFA_FCNFG_RDCOLLIE_SHIFT (6U) 4325 /*! RDCOLLIE - Read Collision Error Interrupt Enable 4326 * 0b0..Read collision error interrupt disabled 4327 * 0b1..Read collision error interrupt enabled. An interrupt request is generated whenever a flash memory read 4328 * collision error is detected (see the description of FSTAT[RDCOLERR]). 4329 */ 4330 #define FTFA_FCNFG_RDCOLLIE(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCNFG_RDCOLLIE_SHIFT)) & FTFA_FCNFG_RDCOLLIE_MASK) 4331 4332 #define FTFA_FCNFG_CCIE_MASK (0x80U) 4333 #define FTFA_FCNFG_CCIE_SHIFT (7U) 4334 /*! CCIE - Command Complete Interrupt Enable 4335 * 0b0..Command complete interrupt disabled 4336 * 0b1..Command complete interrupt enabled. An interrupt request is generated whenever the FSTAT[CCIF] flag is set. 4337 */ 4338 #define FTFA_FCNFG_CCIE(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCNFG_CCIE_SHIFT)) & FTFA_FCNFG_CCIE_MASK) 4339 /*! @} */ 4340 4341 /*! @name FSEC - Flash Security Register */ 4342 /*! @{ */ 4343 4344 #define FTFA_FSEC_SEC_MASK (0x3U) 4345 #define FTFA_FSEC_SEC_SHIFT (0U) 4346 /*! SEC - Flash Security 4347 * 0b00..MCU security status is secure. 4348 * 0b01..MCU security status is secure. 4349 * 0b10..MCU security status is unsecure. (The standard shipping condition of the flash memory module is unsecure.) 4350 * 0b11..MCU security status is secure. 4351 */ 4352 #define FTFA_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSEC_SEC_SHIFT)) & FTFA_FSEC_SEC_MASK) 4353 4354 #define FTFA_FSEC_FSLACC_MASK (0xCU) 4355 #define FTFA_FSEC_FSLACC_SHIFT (2U) 4356 /*! FSLACC - Factory Security Level Access Code 4357 * 0b00..NXP factory access granted 4358 * 0b01..NXP factory access denied 4359 * 0b10..NXP factory access denied 4360 * 0b11..NXP factory access granted 4361 */ 4362 #define FTFA_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSEC_FSLACC_SHIFT)) & FTFA_FSEC_FSLACC_MASK) 4363 4364 #define FTFA_FSEC_MEEN_MASK (0x30U) 4365 #define FTFA_FSEC_MEEN_SHIFT (4U) 4366 /*! MEEN - Mass Erase Enable 4367 * 0b00..Mass erase is enabled 4368 * 0b01..Mass erase is enabled 4369 * 0b10..Mass erase is disabled 4370 * 0b11..Mass erase is enabled 4371 */ 4372 #define FTFA_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSEC_MEEN_SHIFT)) & FTFA_FSEC_MEEN_MASK) 4373 4374 #define FTFA_FSEC_KEYEN_MASK (0xC0U) 4375 #define FTFA_FSEC_KEYEN_SHIFT (6U) 4376 /*! KEYEN - Backdoor Key Security Enable 4377 * 0b00..Backdoor key access disabled 4378 * 0b01..Backdoor key access disabled (preferred KEYEN state to disable backdoor key access) 4379 * 0b10..Backdoor key access enabled 4380 * 0b11..Backdoor key access disabled 4381 */ 4382 #define FTFA_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSEC_KEYEN_SHIFT)) & FTFA_FSEC_KEYEN_MASK) 4383 /*! @} */ 4384 4385 /*! @name FOPT - Flash Option Register */ 4386 /*! @{ */ 4387 4388 #define FTFA_FOPT_OPT_MASK (0xFFU) 4389 #define FTFA_FOPT_OPT_SHIFT (0U) 4390 /*! OPT - Nonvolatile Option 4391 */ 4392 #define FTFA_FOPT_OPT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FOPT_OPT_SHIFT)) & FTFA_FOPT_OPT_MASK) 4393 /*! @} */ 4394 4395 /*! @name FCCOB3 - Flash Common Command Object Registers */ 4396 /*! @{ */ 4397 4398 #define FTFA_FCCOB3_CCOBn_MASK (0xFFU) 4399 #define FTFA_FCCOB3_CCOBn_SHIFT (0U) 4400 #define FTFA_FCCOB3_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB3_CCOBn_SHIFT)) & FTFA_FCCOB3_CCOBn_MASK) 4401 /*! @} */ 4402 4403 /*! @name FCCOB2 - Flash Common Command Object Registers */ 4404 /*! @{ */ 4405 4406 #define FTFA_FCCOB2_CCOBn_MASK (0xFFU) 4407 #define FTFA_FCCOB2_CCOBn_SHIFT (0U) 4408 #define FTFA_FCCOB2_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB2_CCOBn_SHIFT)) & FTFA_FCCOB2_CCOBn_MASK) 4409 /*! @} */ 4410 4411 /*! @name FCCOB1 - Flash Common Command Object Registers */ 4412 /*! @{ */ 4413 4414 #define FTFA_FCCOB1_CCOBn_MASK (0xFFU) 4415 #define FTFA_FCCOB1_CCOBn_SHIFT (0U) 4416 #define FTFA_FCCOB1_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB1_CCOBn_SHIFT)) & FTFA_FCCOB1_CCOBn_MASK) 4417 /*! @} */ 4418 4419 /*! @name FCCOB0 - Flash Common Command Object Registers */ 4420 /*! @{ */ 4421 4422 #define FTFA_FCCOB0_CCOBn_MASK (0xFFU) 4423 #define FTFA_FCCOB0_CCOBn_SHIFT (0U) 4424 #define FTFA_FCCOB0_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB0_CCOBn_SHIFT)) & FTFA_FCCOB0_CCOBn_MASK) 4425 /*! @} */ 4426 4427 /*! @name FCCOB7 - Flash Common Command Object Registers */ 4428 /*! @{ */ 4429 4430 #define FTFA_FCCOB7_CCOBn_MASK (0xFFU) 4431 #define FTFA_FCCOB7_CCOBn_SHIFT (0U) 4432 #define FTFA_FCCOB7_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB7_CCOBn_SHIFT)) & FTFA_FCCOB7_CCOBn_MASK) 4433 /*! @} */ 4434 4435 /*! @name FCCOB6 - Flash Common Command Object Registers */ 4436 /*! @{ */ 4437 4438 #define FTFA_FCCOB6_CCOBn_MASK (0xFFU) 4439 #define FTFA_FCCOB6_CCOBn_SHIFT (0U) 4440 #define FTFA_FCCOB6_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB6_CCOBn_SHIFT)) & FTFA_FCCOB6_CCOBn_MASK) 4441 /*! @} */ 4442 4443 /*! @name FCCOB5 - Flash Common Command Object Registers */ 4444 /*! @{ */ 4445 4446 #define FTFA_FCCOB5_CCOBn_MASK (0xFFU) 4447 #define FTFA_FCCOB5_CCOBn_SHIFT (0U) 4448 #define FTFA_FCCOB5_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB5_CCOBn_SHIFT)) & FTFA_FCCOB5_CCOBn_MASK) 4449 /*! @} */ 4450 4451 /*! @name FCCOB4 - Flash Common Command Object Registers */ 4452 /*! @{ */ 4453 4454 #define FTFA_FCCOB4_CCOBn_MASK (0xFFU) 4455 #define FTFA_FCCOB4_CCOBn_SHIFT (0U) 4456 #define FTFA_FCCOB4_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB4_CCOBn_SHIFT)) & FTFA_FCCOB4_CCOBn_MASK) 4457 /*! @} */ 4458 4459 /*! @name FCCOBB - Flash Common Command Object Registers */ 4460 /*! @{ */ 4461 4462 #define FTFA_FCCOBB_CCOBn_MASK (0xFFU) 4463 #define FTFA_FCCOBB_CCOBn_SHIFT (0U) 4464 #define FTFA_FCCOBB_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOBB_CCOBn_SHIFT)) & FTFA_FCCOBB_CCOBn_MASK) 4465 /*! @} */ 4466 4467 /*! @name FCCOBA - Flash Common Command Object Registers */ 4468 /*! @{ */ 4469 4470 #define FTFA_FCCOBA_CCOBn_MASK (0xFFU) 4471 #define FTFA_FCCOBA_CCOBn_SHIFT (0U) 4472 #define FTFA_FCCOBA_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOBA_CCOBn_SHIFT)) & FTFA_FCCOBA_CCOBn_MASK) 4473 /*! @} */ 4474 4475 /*! @name FCCOB9 - Flash Common Command Object Registers */ 4476 /*! @{ */ 4477 4478 #define FTFA_FCCOB9_CCOBn_MASK (0xFFU) 4479 #define FTFA_FCCOB9_CCOBn_SHIFT (0U) 4480 #define FTFA_FCCOB9_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB9_CCOBn_SHIFT)) & FTFA_FCCOB9_CCOBn_MASK) 4481 /*! @} */ 4482 4483 /*! @name FCCOB8 - Flash Common Command Object Registers */ 4484 /*! @{ */ 4485 4486 #define FTFA_FCCOB8_CCOBn_MASK (0xFFU) 4487 #define FTFA_FCCOB8_CCOBn_SHIFT (0U) 4488 #define FTFA_FCCOB8_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB8_CCOBn_SHIFT)) & FTFA_FCCOB8_CCOBn_MASK) 4489 /*! @} */ 4490 4491 /*! @name FPROT3 - Program Flash Protection Registers */ 4492 /*! @{ */ 4493 4494 #define FTFA_FPROT3_PROT_MASK (0xFFU) 4495 #define FTFA_FPROT3_PROT_SHIFT (0U) 4496 /*! PROT - Program Flash Region Protect 4497 * 0b00000000..Program flash region is protected. 4498 * 0b00000001..Program flash region is not protected 4499 */ 4500 #define FTFA_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FPROT3_PROT_SHIFT)) & FTFA_FPROT3_PROT_MASK) 4501 /*! @} */ 4502 4503 /*! @name FPROT2 - Program Flash Protection Registers */ 4504 /*! @{ */ 4505 4506 #define FTFA_FPROT2_PROT_MASK (0xFFU) 4507 #define FTFA_FPROT2_PROT_SHIFT (0U) 4508 /*! PROT - Program Flash Region Protect 4509 * 0b00000000..Program flash region is protected. 4510 * 0b00000001..Program flash region is not protected 4511 */ 4512 #define FTFA_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FPROT2_PROT_SHIFT)) & FTFA_FPROT2_PROT_MASK) 4513 /*! @} */ 4514 4515 /*! @name FPROT1 - Program Flash Protection Registers */ 4516 /*! @{ */ 4517 4518 #define FTFA_FPROT1_PROT_MASK (0xFFU) 4519 #define FTFA_FPROT1_PROT_SHIFT (0U) 4520 /*! PROT - Program Flash Region Protect 4521 * 0b00000000..Program flash region is protected. 4522 * 0b00000001..Program flash region is not protected 4523 */ 4524 #define FTFA_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FPROT1_PROT_SHIFT)) & FTFA_FPROT1_PROT_MASK) 4525 /*! @} */ 4526 4527 /*! @name FPROT0 - Program Flash Protection Registers */ 4528 /*! @{ */ 4529 4530 #define FTFA_FPROT0_PROT_MASK (0xFFU) 4531 #define FTFA_FPROT0_PROT_SHIFT (0U) 4532 /*! PROT - Program Flash Region Protect 4533 * 0b00000000..Program flash region is protected. 4534 * 0b00000001..Program flash region is not protected 4535 */ 4536 #define FTFA_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FPROT0_PROT_SHIFT)) & FTFA_FPROT0_PROT_MASK) 4537 /*! @} */ 4538 4539 4540 /*! 4541 * @} 4542 */ /* end of group FTFA_Register_Masks */ 4543 4544 4545 /* FTFA - Peripheral instance base addresses */ 4546 /** Peripheral FTFA base address */ 4547 #define FTFA_BASE (0x40020000u) 4548 /** Peripheral FTFA base pointer */ 4549 #define FTFA ((FTFA_Type *)FTFA_BASE) 4550 /** Array initializer of FTFA peripheral base addresses */ 4551 #define FTFA_BASE_ADDRS { FTFA_BASE } 4552 /** Array initializer of FTFA peripheral base pointers */ 4553 #define FTFA_BASE_PTRS { FTFA } 4554 /** Interrupt vectors for the FTFA peripheral type */ 4555 #define FTFA_COMMAND_COMPLETE_IRQS { FTFA_IRQn } 4556 4557 /*! 4558 * @} 4559 */ /* end of group FTFA_Peripheral_Access_Layer */ 4560 4561 4562 /* ---------------------------------------------------------------------------- 4563 -- GPIO Peripheral Access Layer 4564 ---------------------------------------------------------------------------- */ 4565 4566 /*! 4567 * @addtogroup GPIO_Peripheral_Access_Layer GPIO Peripheral Access Layer 4568 * @{ 4569 */ 4570 4571 /** GPIO - Register Layout Typedef */ 4572 typedef struct { 4573 __IO uint8_t PDOR; /**< Port Data Output Register, offset: 0x0 */ 4574 uint8_t RESERVED_0[15]; 4575 __I uint8_t PDIR; /**< Port Data Input Register, offset: 0x10 */ 4576 uint8_t RESERVED_1[3]; 4577 __IO uint8_t PDDR; /**< Port Data Direction Register, offset: 0x14 */ 4578 uint8_t RESERVED_2[7]; 4579 __IO uint8_t GACR; /**< GPIO Attribute Checker Register, offset: 0x1C */ 4580 } GPIO_Type; 4581 4582 /* ---------------------------------------------------------------------------- 4583 -- GPIO Register Masks 4584 ---------------------------------------------------------------------------- */ 4585 4586 /*! 4587 * @addtogroup GPIO_Register_Masks GPIO Register Masks 4588 * @{ 4589 */ 4590 4591 /*! @name PDOR - Port Data Output Register */ 4592 /*! @{ */ 4593 4594 #define GPIO_PDOR_PDO_MASK (0xFFU) 4595 #define GPIO_PDOR_PDO_SHIFT (0U) 4596 /*! PDO - Port Data Output 4597 * 0b00000000..Logic level 0 is driven on pin, provided pin is configured for general-purpose output. 4598 * 0b00000001..Logic level 1 is driven on pin, provided pin is configured for general-purpose output. 4599 */ 4600 #define GPIO_PDOR_PDO(x) (((uint8_t)(((uint8_t)(x)) << GPIO_PDOR_PDO_SHIFT)) & GPIO_PDOR_PDO_MASK) 4601 /*! @} */ 4602 4603 /*! @name PDIR - Port Data Input Register */ 4604 /*! @{ */ 4605 4606 #define GPIO_PDIR_PDI_MASK (0xFFU) 4607 #define GPIO_PDIR_PDI_SHIFT (0U) 4608 /*! PDI - Port Data Input 4609 * 0b00000000..Pin logic level is logic 0, or is not configured for use by digital function. 4610 * 0b00000001..Pin logic level is logic 1. 4611 */ 4612 #define GPIO_PDIR_PDI(x) (((uint8_t)(((uint8_t)(x)) << GPIO_PDIR_PDI_SHIFT)) & GPIO_PDIR_PDI_MASK) 4613 /*! @} */ 4614 4615 /*! @name PDDR - Port Data Direction Register */ 4616 /*! @{ */ 4617 4618 #define GPIO_PDDR_PDD_MASK (0xFFU) 4619 #define GPIO_PDDR_PDD_SHIFT (0U) 4620 /*! PDD - Port Data Direction 4621 * 0b00000000..Pin is configured as general-purpose input, for the GPIO function. 4622 * 0b00000001..Pin is configured as general-purpose output, for the GPIO function. 4623 */ 4624 #define GPIO_PDDR_PDD(x) (((uint8_t)(((uint8_t)(x)) << GPIO_PDDR_PDD_SHIFT)) & GPIO_PDDR_PDD_MASK) 4625 /*! @} */ 4626 4627 /*! @name GACR - GPIO Attribute Checker Register */ 4628 /*! @{ */ 4629 4630 #define GPIO_GACR_ACB_MASK (0x7U) 4631 #define GPIO_GACR_ACB_SHIFT (0U) 4632 /*! ACB - Attribute Check Byte 4633 * 0b000..User nonsecure: Read + Write; User Secure: Read + Write; Privileged Secure: Read + Write 4634 * 0b001..User nonsecure: Read; User Secure: Read + Write; Privileged Secure: Read + Write 4635 * 0b010..User nonsecure: None; User Secure: Read + Write; Privileged Secure: Read + Write 4636 * 0b011..User nonsecure: Read; User Secure: Read; Privileged Secure: Read + Write 4637 * 0b100..User nonsecure: None; User Secure: Read; Privileged Secure: Read + Write 4638 * 0b101..User nonsecure: None; User Secure: None; Privileged Secure: Read + Write 4639 * 0b110..User nonsecure: None; User Secure: None; Privileged Secure: Read 4640 * 0b111..User nonsecure: None; User Secure: None; Privileged Secure: None 4641 */ 4642 #define GPIO_GACR_ACB(x) (((uint8_t)(((uint8_t)(x)) << GPIO_GACR_ACB_SHIFT)) & GPIO_GACR_ACB_MASK) 4643 4644 #define GPIO_GACR_ROB_MASK (0x80U) 4645 #define GPIO_GACR_ROB_SHIFT (7U) 4646 /*! ROB - Read-Only Byte 4647 * 0b0..Writes to the ACB are allowed. 4648 * 0b1..Writes to the ACB are ignored. 4649 */ 4650 #define GPIO_GACR_ROB(x) (((uint8_t)(((uint8_t)(x)) << GPIO_GACR_ROB_SHIFT)) & GPIO_GACR_ROB_MASK) 4651 /*! @} */ 4652 4653 4654 /*! 4655 * @} 4656 */ /* end of group GPIO_Register_Masks */ 4657 4658 4659 /* GPIO - Peripheral instance base addresses */ 4660 /** Peripheral GPIOA base address */ 4661 #define GPIOA_BASE (0x400FF000u) 4662 /** Peripheral GPIOA base pointer */ 4663 #define GPIOA ((GPIO_Type *)GPIOA_BASE) 4664 /** Peripheral GPIOB base address */ 4665 #define GPIOB_BASE (0x400FF001u) 4666 /** Peripheral GPIOB base pointer */ 4667 #define GPIOB ((GPIO_Type *)GPIOB_BASE) 4668 /** Peripheral GPIOC base address */ 4669 #define GPIOC_BASE (0x400FF002u) 4670 /** Peripheral GPIOC base pointer */ 4671 #define GPIOC ((GPIO_Type *)GPIOC_BASE) 4672 /** Peripheral GPIOD base address */ 4673 #define GPIOD_BASE (0x400FF003u) 4674 /** Peripheral GPIOD base pointer */ 4675 #define GPIOD ((GPIO_Type *)GPIOD_BASE) 4676 /** Peripheral GPIOE base address */ 4677 #define GPIOE_BASE (0x400FF040u) 4678 /** Peripheral GPIOE base pointer */ 4679 #define GPIOE ((GPIO_Type *)GPIOE_BASE) 4680 /** Peripheral GPIOF base address */ 4681 #define GPIOF_BASE (0x400FF041u) 4682 /** Peripheral GPIOF base pointer */ 4683 #define GPIOF ((GPIO_Type *)GPIOF_BASE) 4684 /** Peripheral GPIOG base address */ 4685 #define GPIOG_BASE (0x400FF042u) 4686 /** Peripheral GPIOG base pointer */ 4687 #define GPIOG ((GPIO_Type *)GPIOG_BASE) 4688 /** Peripheral GPIOH base address */ 4689 #define GPIOH_BASE (0x400FF043u) 4690 /** Peripheral GPIOH base pointer */ 4691 #define GPIOH ((GPIO_Type *)GPIOH_BASE) 4692 /** Peripheral GPIOI base address */ 4693 #define GPIOI_BASE (0x400FF080u) 4694 /** Peripheral GPIOI base pointer */ 4695 #define GPIOI ((GPIO_Type *)GPIOI_BASE) 4696 /** Array initializer of GPIO peripheral base addresses */ 4697 #define GPIO_BASE_ADDRS { GPIOA_BASE, GPIOB_BASE, GPIOC_BASE, GPIOD_BASE, GPIOE_BASE, GPIOF_BASE, GPIOG_BASE, GPIOH_BASE, GPIOI_BASE } 4698 /** Array initializer of GPIO peripheral base pointers */ 4699 #define GPIO_BASE_PTRS { GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH, GPIOI } 4700 4701 /*! 4702 * @} 4703 */ /* end of group GPIO_Peripheral_Access_Layer */ 4704 4705 4706 /* ---------------------------------------------------------------------------- 4707 -- I2C Peripheral Access Layer 4708 ---------------------------------------------------------------------------- */ 4709 4710 /*! 4711 * @addtogroup I2C_Peripheral_Access_Layer I2C Peripheral Access Layer 4712 * @{ 4713 */ 4714 4715 /** I2C - Register Layout Typedef */ 4716 typedef struct { 4717 __IO uint8_t A1; /**< I2C Address Register 1, offset: 0x0 */ 4718 __IO uint8_t F; /**< I2C Frequency Divider register, offset: 0x1 */ 4719 __IO uint8_t C1; /**< I2C Control Register 1, offset: 0x2 */ 4720 __IO uint8_t S; /**< I2C Status register, offset: 0x3 */ 4721 __IO uint8_t D; /**< I2C Data I/O register, offset: 0x4 */ 4722 __IO uint8_t C2; /**< I2C Control Register 2, offset: 0x5 */ 4723 __IO uint8_t FLT; /**< I2C Programmable Input Glitch Filter Register, offset: 0x6 */ 4724 __IO uint8_t RA; /**< I2C Range Address register, offset: 0x7 */ 4725 __IO uint8_t SMB; /**< I2C SMBus Control and Status register, offset: 0x8 */ 4726 __IO uint8_t A2; /**< I2C Address Register 2, offset: 0x9 */ 4727 __IO uint8_t SLTH; /**< I2C SCL Low Timeout Register High, offset: 0xA */ 4728 __IO uint8_t SLTL; /**< I2C SCL Low Timeout Register Low, offset: 0xB */ 4729 } I2C_Type; 4730 4731 /* ---------------------------------------------------------------------------- 4732 -- I2C Register Masks 4733 ---------------------------------------------------------------------------- */ 4734 4735 /*! 4736 * @addtogroup I2C_Register_Masks I2C Register Masks 4737 * @{ 4738 */ 4739 4740 /*! @name A1 - I2C Address Register 1 */ 4741 /*! @{ */ 4742 4743 #define I2C_A1_AD_MASK (0xFEU) 4744 #define I2C_A1_AD_SHIFT (1U) 4745 /*! AD - Address 4746 */ 4747 #define I2C_A1_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_A1_AD_SHIFT)) & I2C_A1_AD_MASK) 4748 /*! @} */ 4749 4750 /*! @name F - I2C Frequency Divider register */ 4751 /*! @{ */ 4752 4753 #define I2C_F_ICR_MASK (0x3FU) 4754 #define I2C_F_ICR_SHIFT (0U) 4755 /*! ICR - ClockRate 4756 */ 4757 #define I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_ICR_SHIFT)) & I2C_F_ICR_MASK) 4758 4759 #define I2C_F_MULT_MASK (0xC0U) 4760 #define I2C_F_MULT_SHIFT (6U) 4761 /*! MULT - Multiplier Factor 4762 * 0b00..mul = 1 4763 * 0b01..mul = 2 4764 * 0b10..mul = 4 4765 * 0b11..Reserved 4766 */ 4767 #define I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) 4768 /*! @} */ 4769 4770 /*! @name C1 - I2C Control Register 1 */ 4771 /*! @{ */ 4772 4773 #define I2C_C1_DMAEN_MASK (0x1U) 4774 #define I2C_C1_DMAEN_SHIFT (0U) 4775 /*! DMAEN - DMA Enable 4776 * 0b0..All DMA signalling disabled. 4777 * 0b1..DMA transfer is enabled. While SMB[FACK] = 0, the following conditions trigger the DMA request: a data 4778 * byte is received, and either address or data is transmitted. (ACK/NACK is automatic) the first byte received 4779 * matches the A1 register or is a general call address. If any address matching occurs, S[IAAS] and S[TCF] 4780 * are set. If the direction of transfer is known from master to slave, then it is not required to check 4781 * S[SRW]. With this assumption, DMA can also be used in this case. In other cases, if the master reads data from 4782 * the slave, then it is required to rewrite the C1 register operation. With this assumption, DMA cannot be 4783 * used. When FACK = 1, an address or a data byte is transmitted. 4784 */ 4785 #define I2C_C1_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) 4786 4787 #define I2C_C1_WUEN_MASK (0x2U) 4788 #define I2C_C1_WUEN_SHIFT (1U) 4789 /*! WUEN - Wakeup Enable 4790 * 0b0..Normal operation. No interrupt generated when address matching in low power mode. 4791 * 0b1..Enables the wakeup function in low power mode. 4792 */ 4793 #define I2C_C1_WUEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) 4794 4795 #define I2C_C1_RSTA_MASK (0x4U) 4796 #define I2C_C1_RSTA_SHIFT (2U) 4797 /*! RSTA - Repeat START 4798 */ 4799 #define I2C_C1_RSTA(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_RSTA_SHIFT)) & I2C_C1_RSTA_MASK) 4800 4801 #define I2C_C1_TXAK_MASK (0x8U) 4802 #define I2C_C1_TXAK_SHIFT (3U) 4803 /*! TXAK - Transmit Acknowledge Enable 4804 * 0b0..An acknowledge signal is sent to the bus on the following receiving byte (if FACK is cleared) or the 4805 * current receiving byte (if FACK is set). 4806 * 0b1..No acknowledge signal is sent to the bus on the following receiving data byte (if FACK is cleared) or the 4807 * current receiving data byte (if FACK is set). 4808 */ 4809 #define I2C_C1_TXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) 4810 4811 #define I2C_C1_TX_MASK (0x10U) 4812 #define I2C_C1_TX_SHIFT (4U) 4813 /*! TX - Transmit Mode Select 4814 * 0b0..Receive 4815 * 0b1..Transmit 4816 */ 4817 #define I2C_C1_TX(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) 4818 4819 #define I2C_C1_MST_MASK (0x20U) 4820 #define I2C_C1_MST_SHIFT (5U) 4821 /*! MST - Master Mode Select 4822 * 0b0..Slave mode 4823 * 0b1..Master mode 4824 */ 4825 #define I2C_C1_MST(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) 4826 4827 #define I2C_C1_IICIE_MASK (0x40U) 4828 #define I2C_C1_IICIE_SHIFT (6U) 4829 /*! IICIE - I2C Interrupt Enable 4830 * 0b0..Disabled 4831 * 0b1..Enabled 4832 */ 4833 #define I2C_C1_IICIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) 4834 4835 #define I2C_C1_IICEN_MASK (0x80U) 4836 #define I2C_C1_IICEN_SHIFT (7U) 4837 /*! IICEN - I2C Enable 4838 * 0b0..Disabled 4839 * 0b1..Enabled 4840 */ 4841 #define I2C_C1_IICEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) 4842 /*! @} */ 4843 4844 /*! @name S - I2C Status register */ 4845 /*! @{ */ 4846 4847 #define I2C_S_RXAK_MASK (0x1U) 4848 #define I2C_S_RXAK_SHIFT (0U) 4849 /*! RXAK - Receive Acknowledge 4850 * 0b0..Acknowledge signal was received after the completion of one byte of data transmission on the bus 4851 * 0b1..No acknowledge signal detected 4852 */ 4853 #define I2C_S_RXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) 4854 4855 #define I2C_S_IICIF_MASK (0x2U) 4856 #define I2C_S_IICIF_SHIFT (1U) 4857 /*! IICIF - Interrupt Flag 4858 * 0b0..No interrupt pending 4859 * 0b1..Interrupt pending 4860 */ 4861 #define I2C_S_IICIF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) 4862 4863 #define I2C_S_SRW_MASK (0x4U) 4864 #define I2C_S_SRW_SHIFT (2U) 4865 /*! SRW - Slave Read/Write 4866 * 0b0..Slave receive, master writing to slave 4867 * 0b1..Slave transmit, master reading from slave 4868 */ 4869 #define I2C_S_SRW(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) 4870 4871 #define I2C_S_RAM_MASK (0x8U) 4872 #define I2C_S_RAM_SHIFT (3U) 4873 /*! RAM - Range Address Match 4874 * 0b0..Not addressed 4875 * 0b1..Addressed as a slave 4876 */ 4877 #define I2C_S_RAM(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) 4878 4879 #define I2C_S_ARBL_MASK (0x10U) 4880 #define I2C_S_ARBL_SHIFT (4U) 4881 /*! ARBL - Arbitration Lost 4882 * 0b0..Standard bus operation. 4883 * 0b1..Loss of arbitration. 4884 */ 4885 #define I2C_S_ARBL(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) 4886 4887 #define I2C_S_BUSY_MASK (0x20U) 4888 #define I2C_S_BUSY_SHIFT (5U) 4889 /*! BUSY - Bus Busy 4890 * 0b0..Bus is idle 4891 * 0b1..Bus is busy 4892 */ 4893 #define I2C_S_BUSY(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) 4894 4895 #define I2C_S_IAAS_MASK (0x40U) 4896 #define I2C_S_IAAS_SHIFT (6U) 4897 /*! IAAS - Addressed As A Slave 4898 * 0b0..Not addressed 4899 * 0b1..Addressed as a slave 4900 */ 4901 #define I2C_S_IAAS(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) 4902 4903 #define I2C_S_TCF_MASK (0x80U) 4904 #define I2C_S_TCF_SHIFT (7U) 4905 /*! TCF - Transfer Complete Flag 4906 * 0b0..Transfer in progress 4907 * 0b1..Transfer complete 4908 */ 4909 #define I2C_S_TCF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) 4910 /*! @} */ 4911 4912 /*! @name D - I2C Data I/O register */ 4913 /*! @{ */ 4914 4915 #define I2C_D_DATA_MASK (0xFFU) 4916 #define I2C_D_DATA_SHIFT (0U) 4917 /*! DATA - Data 4918 */ 4919 #define I2C_D_DATA(x) (((uint8_t)(((uint8_t)(x)) << I2C_D_DATA_SHIFT)) & I2C_D_DATA_MASK) 4920 /*! @} */ 4921 4922 /*! @name C2 - I2C Control Register 2 */ 4923 /*! @{ */ 4924 4925 #define I2C_C2_AD_MASK (0x7U) 4926 #define I2C_C2_AD_SHIFT (0U) 4927 /*! AD - Slave Address 4928 */ 4929 #define I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_AD_SHIFT)) & I2C_C2_AD_MASK) 4930 4931 #define I2C_C2_RMEN_MASK (0x8U) 4932 #define I2C_C2_RMEN_SHIFT (3U) 4933 /*! RMEN - Range Address Matching Enable 4934 * 0b0..Range mode disabled. No address matching occurs for an address within the range of values of the A1 and RA registers. 4935 * 0b1..Range mode enabled. Address matching occurs when a slave receives an address within the range of values of the A1 and RA registers. 4936 */ 4937 #define I2C_C2_RMEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) 4938 4939 #define I2C_C2_SBRC_MASK (0x10U) 4940 #define I2C_C2_SBRC_SHIFT (4U) 4941 /*! SBRC - Slave Baud Rate Control 4942 * 0b0..The slave baud rate follows the master baud rate and clock stretching may occur 4943 * 0b1..Slave baud rate is independent of the master baud rate 4944 */ 4945 #define I2C_C2_SBRC(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) 4946 4947 #define I2C_C2_HDRS_MASK (0x20U) 4948 #define I2C_C2_HDRS_SHIFT (5U) 4949 /*! HDRS - High Drive Select 4950 * 0b0..Normal drive mode 4951 * 0b1..High drive mode 4952 */ 4953 #define I2C_C2_HDRS(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) 4954 4955 #define I2C_C2_ADEXT_MASK (0x40U) 4956 #define I2C_C2_ADEXT_SHIFT (6U) 4957 /*! ADEXT - Address Extension 4958 * 0b0..7-bit address scheme 4959 * 0b1..10-bit address scheme 4960 */ 4961 #define I2C_C2_ADEXT(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) 4962 4963 #define I2C_C2_GCAEN_MASK (0x80U) 4964 #define I2C_C2_GCAEN_SHIFT (7U) 4965 /*! GCAEN - General Call Address Enable 4966 * 0b0..Disabled 4967 * 0b1..Enabled 4968 */ 4969 #define I2C_C2_GCAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) 4970 /*! @} */ 4971 4972 /*! @name FLT - I2C Programmable Input Glitch Filter Register */ 4973 /*! @{ */ 4974 4975 #define I2C_FLT_FLT_MASK (0xFU) 4976 #define I2C_FLT_FLT_SHIFT (0U) 4977 /*! FLT - I2C Programmable Filter Factor 4978 * 0b0000..No filter/bypass 4979 */ 4980 #define I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) 4981 4982 #define I2C_FLT_STARTF_MASK (0x10U) 4983 #define I2C_FLT_STARTF_SHIFT (4U) 4984 /*! STARTF - I2C Bus Start Detect Flag 4985 * 0b0..No start happens on I2C bus 4986 * 0b1..Start detected on I2C bus 4987 */ 4988 #define I2C_FLT_STARTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) 4989 4990 #define I2C_FLT_SSIE_MASK (0x20U) 4991 #define I2C_FLT_SSIE_SHIFT (5U) 4992 /*! SSIE - I2C Bus Stop or Start Interrupt Enable 4993 * 0b0..Stop or start detection interrupt is disabled 4994 * 0b1..Stop or start detection interrupt is enabled 4995 */ 4996 #define I2C_FLT_SSIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) 4997 4998 #define I2C_FLT_STOPF_MASK (0x40U) 4999 #define I2C_FLT_STOPF_SHIFT (6U) 5000 /*! STOPF - I2C Bus Stop Detect Flag 5001 * 0b0..No stop happens on I2C bus 5002 * 0b1..Stop detected on I2C bus 5003 */ 5004 #define I2C_FLT_STOPF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) 5005 5006 #define I2C_FLT_SHEN_MASK (0x80U) 5007 #define I2C_FLT_SHEN_SHIFT (7U) 5008 /*! SHEN - Stop Hold Enable 5009 * 0b0..Stop holdoff is disabled. The MCU's entry to stop mode is not gated. 5010 * 0b1..Stop holdoff is enabled. 5011 */ 5012 #define I2C_FLT_SHEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) 5013 /*! @} */ 5014 5015 /*! @name RA - I2C Range Address register */ 5016 /*! @{ */ 5017 5018 #define I2C_RA_RAD_MASK (0xFEU) 5019 #define I2C_RA_RAD_SHIFT (1U) 5020 /*! RAD - Range Slave Address 5021 */ 5022 #define I2C_RA_RAD(x) (((uint8_t)(((uint8_t)(x)) << I2C_RA_RAD_SHIFT)) & I2C_RA_RAD_MASK) 5023 /*! @} */ 5024 5025 /*! @name SMB - I2C SMBus Control and Status register */ 5026 /*! @{ */ 5027 5028 #define I2C_SMB_SHTF2IE_MASK (0x1U) 5029 #define I2C_SMB_SHTF2IE_SHIFT (0U) 5030 /*! SHTF2IE - SHTF2 Interrupt Enable 5031 * 0b0..SHTF2 interrupt is disabled 5032 * 0b1..SHTF2 interrupt is enabled 5033 */ 5034 #define I2C_SMB_SHTF2IE(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) 5035 5036 #define I2C_SMB_SHTF2_MASK (0x2U) 5037 #define I2C_SMB_SHTF2_SHIFT (1U) 5038 /*! SHTF2 - SCL High Timeout Flag 2 5039 * 0b0..No SCL high and SDA low timeout occurs 5040 * 0b1..SCL high and SDA low timeout occurs 5041 */ 5042 #define I2C_SMB_SHTF2(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) 5043 5044 #define I2C_SMB_SHTF1_MASK (0x4U) 5045 #define I2C_SMB_SHTF1_SHIFT (2U) 5046 /*! SHTF1 - SCL High Timeout Flag 1 5047 * 0b0..No SCL high and SDA high timeout occurs 5048 * 0b1..SCL high and SDA high timeout occurs 5049 */ 5050 #define I2C_SMB_SHTF1(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) 5051 5052 #define I2C_SMB_SLTF_MASK (0x8U) 5053 #define I2C_SMB_SLTF_SHIFT (3U) 5054 /*! SLTF - SCL Low Timeout Flag 5055 * 0b0..No low timeout occurs 5056 * 0b1..Low timeout occurs 5057 */ 5058 #define I2C_SMB_SLTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) 5059 5060 #define I2C_SMB_TCKSEL_MASK (0x10U) 5061 #define I2C_SMB_TCKSEL_SHIFT (4U) 5062 /*! TCKSEL - Timeout Counter Clock Select 5063 * 0b0..Timeout counter counts at the frequency of the I2C module clock / 64 5064 * 0b1..Timeout counter counts at the frequency of the I2C module clock 5065 */ 5066 #define I2C_SMB_TCKSEL(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) 5067 5068 #define I2C_SMB_SIICAEN_MASK (0x20U) 5069 #define I2C_SMB_SIICAEN_SHIFT (5U) 5070 /*! SIICAEN - Second I2C Address Enable 5071 * 0b0..I2C address register 2 matching is disabled 5072 * 0b1..I2C address register 2 matching is enabled 5073 */ 5074 #define I2C_SMB_SIICAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) 5075 5076 #define I2C_SMB_ALERTEN_MASK (0x40U) 5077 #define I2C_SMB_ALERTEN_SHIFT (6U) 5078 /*! ALERTEN - SMBus Alert Response Address Enable 5079 * 0b0..SMBus alert response address matching is disabled 5080 * 0b1..SMBus alert response address matching is enabled 5081 */ 5082 #define I2C_SMB_ALERTEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) 5083 5084 #define I2C_SMB_FACK_MASK (0x80U) 5085 #define I2C_SMB_FACK_SHIFT (7U) 5086 /*! FACK - Fast NACK/ACK Enable 5087 * 0b0..An ACK or NACK is sent on the following receiving data byte 5088 * 0b1..Writing 0 to TXAK after receiving a data byte generates an ACK. Writing 1 to TXAK after receiving a data byte generates a NACK. 5089 */ 5090 #define I2C_SMB_FACK(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) 5091 /*! @} */ 5092 5093 /*! @name A2 - I2C Address Register 2 */ 5094 /*! @{ */ 5095 5096 #define I2C_A2_SAD_MASK (0xFEU) 5097 #define I2C_A2_SAD_SHIFT (1U) 5098 /*! SAD - SMBus Address 5099 */ 5100 #define I2C_A2_SAD(x) (((uint8_t)(((uint8_t)(x)) << I2C_A2_SAD_SHIFT)) & I2C_A2_SAD_MASK) 5101 /*! @} */ 5102 5103 /*! @name SLTH - I2C SCL Low Timeout Register High */ 5104 /*! @{ */ 5105 5106 #define I2C_SLTH_SSLT_MASK (0xFFU) 5107 #define I2C_SLTH_SSLT_SHIFT (0U) 5108 /*! SSLT - SSLT[15:8] 5109 */ 5110 #define I2C_SLTH_SSLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_SLTH_SSLT_SHIFT)) & I2C_SLTH_SSLT_MASK) 5111 /*! @} */ 5112 5113 /*! @name SLTL - I2C SCL Low Timeout Register Low */ 5114 /*! @{ */ 5115 5116 #define I2C_SLTL_SSLT_MASK (0xFFU) 5117 #define I2C_SLTL_SSLT_SHIFT (0U) 5118 /*! SSLT - SSLT[7:0] 5119 */ 5120 #define I2C_SLTL_SSLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_SLTL_SSLT_SHIFT)) & I2C_SLTL_SSLT_MASK) 5121 /*! @} */ 5122 5123 5124 /*! 5125 * @} 5126 */ /* end of group I2C_Register_Masks */ 5127 5128 5129 /* I2C - Peripheral instance base addresses */ 5130 /** Peripheral I2C0 base address */ 5131 #define I2C0_BASE (0x40067000u) 5132 /** Peripheral I2C0 base pointer */ 5133 #define I2C0 ((I2C_Type *)I2C0_BASE) 5134 /** Peripheral I2C1 base address */ 5135 #define I2C1_BASE (0x40068000u) 5136 /** Peripheral I2C1 base pointer */ 5137 #define I2C1 ((I2C_Type *)I2C1_BASE) 5138 /** Array initializer of I2C peripheral base addresses */ 5139 #define I2C_BASE_ADDRS { I2C0_BASE, I2C1_BASE } 5140 /** Array initializer of I2C peripheral base pointers */ 5141 #define I2C_BASE_PTRS { I2C0, I2C1 } 5142 /** Interrupt vectors for the I2C peripheral type */ 5143 #define I2C_IRQS { I2C0_I2C1_IRQn, I2C0_I2C1_IRQn } 5144 5145 /*! 5146 * @} 5147 */ /* end of group I2C_Peripheral_Access_Layer */ 5148 5149 5150 /* ---------------------------------------------------------------------------- 5151 -- LCD Peripheral Access Layer 5152 ---------------------------------------------------------------------------- */ 5153 5154 /*! 5155 * @addtogroup LCD_Peripheral_Access_Layer LCD Peripheral Access Layer 5156 * @{ 5157 */ 5158 5159 /** LCD - Register Layout Typedef */ 5160 typedef struct { 5161 __IO uint32_t GCR; /**< LCD General Control Register, offset: 0x0 */ 5162 __IO uint32_t AR; /**< LCD Auxiliary Register, offset: 0x4 */ 5163 __IO uint32_t FDCR; /**< LCD Fault Detect Control Register, offset: 0x8 */ 5164 __IO uint32_t FDSR; /**< LCD Fault Detect Status Register, offset: 0xC */ 5165 __IO uint32_t PEN[2]; /**< LCD Pin Enable register, array offset: 0x10, array step: 0x4 */ 5166 __IO uint32_t BPEN[2]; /**< LCD Back Plane Enable register, array offset: 0x18, array step: 0x4 */ 5167 union { /* offset: 0x20 */ 5168 __IO uint8_t WF8B[64]; /**< LCD Waveform Register 0...LCD Waveform Register 63., array offset: 0x20, array step: 0x1 */ 5169 __IO uint32_t WF[16]; /**< LCD Waveform register, array offset: 0x20, array step: 0x4 */ 5170 }; 5171 } LCD_Type; 5172 5173 /* ---------------------------------------------------------------------------- 5174 -- LCD Register Masks 5175 ---------------------------------------------------------------------------- */ 5176 5177 /*! 5178 * @addtogroup LCD_Register_Masks LCD Register Masks 5179 * @{ 5180 */ 5181 5182 /*! @name GCR - LCD General Control Register */ 5183 /*! @{ */ 5184 5185 #define LCD_GCR_DUTY_MASK (0x7U) 5186 #define LCD_GCR_DUTY_SHIFT (0U) 5187 /*! DUTY - LCD duty select 5188 * 0b000..Use 1 BP (1/1 duty cycle). 5189 * 0b001..Use 2 BP (1/2 duty cycle). 5190 * 0b010..Use 3 BP (1/3 duty cycle). 5191 * 0b011..Use 4 BP (1/4 duty cycle). (Default) 5192 * 0b100..Use 5 BP (1/5 duty cycle). 5193 * 0b101..Use 6 BP (1/6 duty cycle). 5194 * 0b110..Use 7 BP (1/7 duty cycle). 5195 * 0b111..Use 8 BP (1/8 duty cycle). 5196 */ 5197 #define LCD_GCR_DUTY(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_DUTY_SHIFT)) & LCD_GCR_DUTY_MASK) 5198 5199 #define LCD_GCR_LCLK_MASK (0x38U) 5200 #define LCD_GCR_LCLK_SHIFT (3U) 5201 /*! LCLK - LCD Clock Prescaler 5202 */ 5203 #define LCD_GCR_LCLK(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCLK_SHIFT)) & LCD_GCR_LCLK_MASK) 5204 5205 #define LCD_GCR_SOURCE_MASK (0x40U) 5206 #define LCD_GCR_SOURCE_SHIFT (6U) 5207 /*! SOURCE - LCD Clock Source Select 5208 * 0b0..Selects the default clock as the LCD clock source. 5209 * 0b1..Selects the alternate clock as the LCD clock source. 5210 */ 5211 #define LCD_GCR_SOURCE(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_SOURCE_SHIFT)) & LCD_GCR_SOURCE_MASK) 5212 5213 #define LCD_GCR_LCDEN_MASK (0x80U) 5214 #define LCD_GCR_LCDEN_SHIFT (7U) 5215 /*! LCDEN - LCD Driver Enable 5216 * 0b0..All front plane and back plane pins are disabled. The LCD controller system is also disabled, and all LCD 5217 * waveform generation clocks are stopped. V LL3 is connected to V DD internally. 5218 * 0b1..LCD controller driver system is enabled, and front plane and back plane waveforms are generated. All LCD 5219 * pins, LCD_Pn, enabled using the LCD Pin Enable register, output an LCD driver waveform. The back plane 5220 * pins output an LCD driver back plane waveform based on the settings of DUTY[2:0]. Charge pump or resistor 5221 * bias is enabled. 5222 */ 5223 #define LCD_GCR_LCDEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCDEN_SHIFT)) & LCD_GCR_LCDEN_MASK) 5224 5225 #define LCD_GCR_LCDSTP_MASK (0x100U) 5226 #define LCD_GCR_LCDSTP_SHIFT (8U) 5227 /*! LCDSTP - LCD Stop 5228 * 0b0..Allows the LCD driver, charge pump, resistor bias network, and voltage regulator to continue running during Stop mode. 5229 * 0b1..Disables the LCD driver, charge pump, resistor bias network, and voltage regulator when MCU enters Stop mode. 5230 */ 5231 #define LCD_GCR_LCDSTP(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCDSTP_SHIFT)) & LCD_GCR_LCDSTP_MASK) 5232 5233 #define LCD_GCR_LCDDOZE_MASK (0x200U) 5234 #define LCD_GCR_LCDDOZE_SHIFT (9U) 5235 /*! LCDDOZE - LCD Doze enable 5236 * 0b0..Allows the LCD driver, charge pump, resistor bias network, and voltage regulator to continue running during Doze mode. 5237 * 0b1..Disables the LCD driver, charge pump, resistor bias network, and voltage regulator when MCU enters Doze mode. 5238 */ 5239 #define LCD_GCR_LCDDOZE(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCDDOZE_SHIFT)) & LCD_GCR_LCDDOZE_MASK) 5240 5241 #define LCD_GCR_ALTDIV_MASK (0x3000U) 5242 #define LCD_GCR_ALTDIV_SHIFT (12U) 5243 /*! ALTDIV - LCD Alternate Clock Divider 5244 * 0b00..Divide factor = 1 (No divide) 5245 * 0b01..Divide factor = 64 5246 * 0b10..Divide factor = 256 5247 * 0b11..Divide factor = 512 5248 */ 5249 #define LCD_GCR_ALTDIV(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_ALTDIV_SHIFT)) & LCD_GCR_ALTDIV_MASK) 5250 5251 #define LCD_GCR_FDCIEN_MASK (0x4000U) 5252 #define LCD_GCR_FDCIEN_SHIFT (14U) 5253 /*! FDCIEN - LCD Fault Detection Complete Interrupt Enable 5254 * 0b0..No interrupt request is generated by this event. 5255 * 0b1..When a fault is detected and FDCF bit is set, this event causes an interrupt request. 5256 */ 5257 #define LCD_GCR_FDCIEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_FDCIEN_SHIFT)) & LCD_GCR_FDCIEN_MASK) 5258 5259 #define LCD_GCR_LCDIEN_MASK (0x8000U) 5260 #define LCD_GCR_LCDIEN_SHIFT (15U) 5261 /*! LCDIEN - LCD Frame Frequency Interrupt Enable 5262 * 0b0..No interrupt request is generated by this event. 5263 * 0b1..When LCDIF bit is set, this event causes an interrupt request. 5264 */ 5265 #define LCD_GCR_LCDIEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCDIEN_SHIFT)) & LCD_GCR_LCDIEN_MASK) 5266 5267 #define LCD_GCR_VSUPPLY_MASK (0x20000U) 5268 #define LCD_GCR_VSUPPLY_SHIFT (17U) 5269 /*! VSUPPLY - Voltage Supply Control 5270 * 0b0..Drive VLL3 internally from VDD 5271 * 0b1..Drive VLL3 externally from VDD or drive VLL1 internally from vIREG 5272 */ 5273 #define LCD_GCR_VSUPPLY(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_VSUPPLY_SHIFT)) & LCD_GCR_VSUPPLY_MASK) 5274 5275 #define LCD_GCR_LADJ_MASK (0x300000U) 5276 #define LCD_GCR_LADJ_SHIFT (20U) 5277 /*! LADJ - Load Adjust 5278 */ 5279 #define LCD_GCR_LADJ(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LADJ_SHIFT)) & LCD_GCR_LADJ_MASK) 5280 5281 #define LCD_GCR_CPSEL_MASK (0x800000U) 5282 #define LCD_GCR_CPSEL_SHIFT (23U) 5283 /*! CPSEL - Charge Pump or Resistor Bias Select 5284 * 0b0..LCD charge pump is disabled. Resistor network selected. (The internal 1/3-bias is forced.) 5285 * 0b1..LCD charge pump is selected. Resistor network disabled. (The internal 1/3-bias is forced.) 5286 */ 5287 #define LCD_GCR_CPSEL(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_CPSEL_SHIFT)) & LCD_GCR_CPSEL_MASK) 5288 5289 #define LCD_GCR_RVTRIM_MASK (0xF000000U) 5290 #define LCD_GCR_RVTRIM_SHIFT (24U) 5291 /*! RVTRIM - Regulated Voltage Trim 5292 */ 5293 #define LCD_GCR_RVTRIM(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_RVTRIM_SHIFT)) & LCD_GCR_RVTRIM_MASK) 5294 5295 #define LCD_GCR_RVEN_MASK (0x80000000U) 5296 #define LCD_GCR_RVEN_SHIFT (31U) 5297 /*! RVEN - Regulated Voltage Enable 5298 * 0b0..Regulated voltage disabled. 5299 * 0b1..Regulated voltage enabled. 5300 */ 5301 #define LCD_GCR_RVEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_RVEN_SHIFT)) & LCD_GCR_RVEN_MASK) 5302 /*! @} */ 5303 5304 /*! @name AR - LCD Auxiliary Register */ 5305 /*! @{ */ 5306 5307 #define LCD_AR_BRATE_MASK (0x7U) 5308 #define LCD_AR_BRATE_SHIFT (0U) 5309 /*! BRATE - Blink-rate configuration 5310 */ 5311 #define LCD_AR_BRATE(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_BRATE_SHIFT)) & LCD_AR_BRATE_MASK) 5312 5313 #define LCD_AR_BMODE_MASK (0x8U) 5314 #define LCD_AR_BMODE_SHIFT (3U) 5315 /*! BMODE - Blink mode 5316 * 0b0..Display blank during the blink period. 5317 * 0b1..Display alternate display during blink period (Ignored if duty is 5 or greater). 5318 */ 5319 #define LCD_AR_BMODE(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_BMODE_SHIFT)) & LCD_AR_BMODE_MASK) 5320 5321 #define LCD_AR_BLANK_MASK (0x20U) 5322 #define LCD_AR_BLANK_SHIFT (5U) 5323 /*! BLANK - Blank display mode 5324 * 0b0..Normal or alternate display mode. 5325 * 0b1..Blank display mode. 5326 */ 5327 #define LCD_AR_BLANK(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_BLANK_SHIFT)) & LCD_AR_BLANK_MASK) 5328 5329 #define LCD_AR_ALT_MASK (0x40U) 5330 #define LCD_AR_ALT_SHIFT (6U) 5331 /*! ALT - Alternate display mode 5332 * 0b0..Normal display mode. 5333 * 0b1..Alternate display mode. 5334 */ 5335 #define LCD_AR_ALT(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_ALT_SHIFT)) & LCD_AR_ALT_MASK) 5336 5337 #define LCD_AR_BLINK_MASK (0x80U) 5338 #define LCD_AR_BLINK_SHIFT (7U) 5339 /*! BLINK - Blink command 5340 * 0b0..Disables blinking. 5341 * 0b1..Starts blinking at blinking frequency specified by LCD blink rate calculation. 5342 */ 5343 #define LCD_AR_BLINK(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_BLINK_SHIFT)) & LCD_AR_BLINK_MASK) 5344 5345 #define LCD_AR_LCDIF_MASK (0x8000U) 5346 #define LCD_AR_LCDIF_SHIFT (15U) 5347 /*! LCDIF - LCD Frame Frequency Interrupt flag 5348 * 0b0..Frame frequency interrupt condition has not occurred. 5349 * 0b1..Start of SLCD frame has occurred. 5350 */ 5351 #define LCD_AR_LCDIF(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_LCDIF_SHIFT)) & LCD_AR_LCDIF_MASK) 5352 /*! @} */ 5353 5354 /*! @name FDCR - LCD Fault Detect Control Register */ 5355 /*! @{ */ 5356 5357 #define LCD_FDCR_FDPINID_MASK (0x3FU) 5358 #define LCD_FDCR_FDPINID_SHIFT (0U) 5359 /*! FDPINID - Fault Detect Pin ID 5360 * 0b000000..Fault detection for LCD_P0 pin. 5361 * 0b000001..Fault detection for LCD_P1 pin. 5362 * 0b111111..Fault detection for LCD_P63 pin. 5363 */ 5364 #define LCD_FDCR_FDPINID(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDPINID_SHIFT)) & LCD_FDCR_FDPINID_MASK) 5365 5366 #define LCD_FDCR_FDBPEN_MASK (0x40U) 5367 #define LCD_FDCR_FDBPEN_SHIFT (6U) 5368 /*! FDBPEN - Fault Detect Back Plane Enable 5369 * 0b0..Type of the selected pin under fault detect test is front plane. 5370 * 0b1..Type of the selected pin under fault detect test is back plane. 5371 */ 5372 #define LCD_FDCR_FDBPEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDBPEN_SHIFT)) & LCD_FDCR_FDBPEN_MASK) 5373 5374 #define LCD_FDCR_FDEN_MASK (0x80U) 5375 #define LCD_FDCR_FDEN_SHIFT (7U) 5376 /*! FDEN - Fault Detect Enable 5377 * 0b0..Disable fault detection. 5378 * 0b1..Enable fault detection. 5379 */ 5380 #define LCD_FDCR_FDEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDEN_SHIFT)) & LCD_FDCR_FDEN_MASK) 5381 5382 #define LCD_FDCR_FDSWW_MASK (0xE00U) 5383 #define LCD_FDCR_FDSWW_SHIFT (9U) 5384 /*! FDSWW - Fault Detect Sample Window Width 5385 * 0b000..Sample window width is 4 sample clock cycles. 5386 * 0b001..Sample window width is 8 sample clock cycles. 5387 * 0b010..Sample window width is 16 sample clock cycles. 5388 * 0b011..Sample window width is 32 sample clock cycles. 5389 * 0b100..Sample window width is 64 sample clock cycles. 5390 * 0b101..Sample window width is 128 sample clock cycles. 5391 * 0b110..Sample window width is 256 sample clock cycles. 5392 * 0b111..Sample window width is 512 sample clock cycles. 5393 */ 5394 #define LCD_FDCR_FDSWW(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDSWW_SHIFT)) & LCD_FDCR_FDSWW_MASK) 5395 5396 #define LCD_FDCR_FDPRS_MASK (0x7000U) 5397 #define LCD_FDCR_FDPRS_SHIFT (12U) 5398 /*! FDPRS - Fault Detect Clock Prescaler 5399 * 0b000..1/1 bus clock. 5400 * 0b001..1/2 bus clock. 5401 * 0b010..1/4 bus clock. 5402 * 0b011..1/8 bus clock. 5403 * 0b100..1/16 bus clock. 5404 * 0b101..1/32 bus clock. 5405 * 0b110..1/64 bus clock. 5406 * 0b111..1/128 bus clock. 5407 */ 5408 #define LCD_FDCR_FDPRS(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDPRS_SHIFT)) & LCD_FDCR_FDPRS_MASK) 5409 /*! @} */ 5410 5411 /*! @name FDSR - LCD Fault Detect Status Register */ 5412 /*! @{ */ 5413 5414 #define LCD_FDSR_FDCNT_MASK (0xFFU) 5415 #define LCD_FDSR_FDCNT_SHIFT (0U) 5416 /*! FDCNT - Fault Detect Counter 5417 * 0b00000000..No "one" samples. 5418 * 0b00000001..1 "one" samples. 5419 * 0b00000010..2 "one" samples. 5420 * 0b11111110..254 "one" samples. 5421 * 0b11111111..255 or more "one" samples. The FDCNT can overflow. Therefore, FDSWW and FDPRS must be reconfigured for proper sampling. 5422 */ 5423 #define LCD_FDSR_FDCNT(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDSR_FDCNT_SHIFT)) & LCD_FDSR_FDCNT_MASK) 5424 5425 #define LCD_FDSR_FDCF_MASK (0x8000U) 5426 #define LCD_FDSR_FDCF_SHIFT (15U) 5427 /*! FDCF - Fault Detection Complete Flag 5428 * 0b0..Fault detection is not completed. 5429 * 0b1..Fault detection is completed. 5430 */ 5431 #define LCD_FDSR_FDCF(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDSR_FDCF_SHIFT)) & LCD_FDSR_FDCF_MASK) 5432 /*! @} */ 5433 5434 /*! @name PEN - LCD Pin Enable register */ 5435 /*! @{ */ 5436 5437 #define LCD_PEN_PEN_MASK (0xFFFFFFFFU) 5438 #define LCD_PEN_PEN_SHIFT (0U) 5439 /*! PEN - LCD Pin Enable 5440 * 0b00000000000000000000000000000000..LCD operation disabled on LCD_Pn. 5441 * 0b00000000000000000000000000000001..LCD operation enabled on LCD_Pn. 5442 */ 5443 #define LCD_PEN_PEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_PEN_PEN_SHIFT)) & LCD_PEN_PEN_MASK) 5444 /*! @} */ 5445 5446 /* The count of LCD_PEN */ 5447 #define LCD_PEN_COUNT (2U) 5448 5449 /*! @name BPEN - LCD Back Plane Enable register */ 5450 /*! @{ */ 5451 5452 #define LCD_BPEN_BPEN_MASK (0xFFFFFFFFU) 5453 #define LCD_BPEN_BPEN_SHIFT (0U) 5454 /*! BPEN - Back Plane Enable 5455 * 0b00000000000000000000000000000000..Front plane operation enabled on LCD_Pn. 5456 * 0b00000000000000000000000000000001..Back plane operation enabled on LCD_Pn. 5457 */ 5458 #define LCD_BPEN_BPEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_BPEN_BPEN_SHIFT)) & LCD_BPEN_BPEN_MASK) 5459 /*! @} */ 5460 5461 /* The count of LCD_BPEN */ 5462 #define LCD_BPEN_COUNT (2U) 5463 5464 /*! @name WF8B - LCD Waveform Register 0...LCD Waveform Register 63. */ 5465 /*! @{ */ 5466 5467 #define LCD_WF8B_BPALCD0_MASK (0x1U) 5468 #define LCD_WF8B_BPALCD0_SHIFT (0U) 5469 /*! BPALCD0 5470 * 0b0..LCD segment off or LCD backplane inactive for phase A 5471 * 0b1..LCD segment on or LCD backplane active for phase A 5472 */ 5473 #define LCD_WF8B_BPALCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD0_SHIFT)) & LCD_WF8B_BPALCD0_MASK) 5474 5475 #define LCD_WF8B_BPBLCD0_MASK (0x2U) 5476 #define LCD_WF8B_BPBLCD0_SHIFT (1U) 5477 /*! BPBLCD0 5478 * 0b0..LCD segment off or LCD backplane inactive for phase B 5479 * 0b1..LCD segment on or LCD backplane active for phase B 5480 */ 5481 #define LCD_WF8B_BPBLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD0_SHIFT)) & LCD_WF8B_BPBLCD0_MASK) 5482 5483 #define LCD_WF8B_BPCLCD0_MASK (0x4U) 5484 #define LCD_WF8B_BPCLCD0_SHIFT (2U) 5485 /*! BPCLCD0 5486 * 0b0..LCD segment off or LCD backplane inactive for phase C 5487 * 0b1..LCD segment on or LCD backplane active for phase C 5488 */ 5489 #define LCD_WF8B_BPCLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD0_SHIFT)) & LCD_WF8B_BPCLCD0_MASK) 5490 5491 #define LCD_WF8B_BPDLCD0_MASK (0x8U) 5492 #define LCD_WF8B_BPDLCD0_SHIFT (3U) 5493 /*! BPDLCD0 5494 * 0b0..LCD segment off or LCD backplane inactive for phase D 5495 * 0b1..LCD segment on or LCD backplane active for phase D 5496 */ 5497 #define LCD_WF8B_BPDLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD0_SHIFT)) & LCD_WF8B_BPDLCD0_MASK) 5498 5499 #define LCD_WF8B_BPELCD0_MASK (0x10U) 5500 #define LCD_WF8B_BPELCD0_SHIFT (4U) 5501 /*! BPELCD0 5502 * 0b0..LCD segment off or LCD backplane inactive for phase E 5503 * 0b1..LCD segment on or LCD backplane active for phase E 5504 */ 5505 #define LCD_WF8B_BPELCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD0_SHIFT)) & LCD_WF8B_BPELCD0_MASK) 5506 5507 #define LCD_WF8B_BPFLCD0_MASK (0x20U) 5508 #define LCD_WF8B_BPFLCD0_SHIFT (5U) 5509 /*! BPFLCD0 5510 * 0b0..LCD segment off or LCD backplane inactive for phase F 5511 * 0b1..LCD segment on or LCD backplane active for phase F 5512 */ 5513 #define LCD_WF8B_BPFLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD0_SHIFT)) & LCD_WF8B_BPFLCD0_MASK) 5514 5515 #define LCD_WF8B_BPGLCD0_MASK (0x40U) 5516 #define LCD_WF8B_BPGLCD0_SHIFT (6U) 5517 /*! BPGLCD0 5518 * 0b0..LCD segment off or LCD backplane inactive for phase G 5519 * 0b1..LCD segment on or LCD backplane active for phase G 5520 */ 5521 #define LCD_WF8B_BPGLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD0_SHIFT)) & LCD_WF8B_BPGLCD0_MASK) 5522 5523 #define LCD_WF8B_BPHLCD0_MASK (0x80U) 5524 #define LCD_WF8B_BPHLCD0_SHIFT (7U) 5525 /*! BPHLCD0 5526 * 0b0..LCD segment off or LCD backplane inactive for phase H 5527 * 0b1..LCD segment on or LCD backplane active for phase H 5528 */ 5529 #define LCD_WF8B_BPHLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD0_SHIFT)) & LCD_WF8B_BPHLCD0_MASK) 5530 5531 #define LCD_WF8B_BPALCD1_MASK (0x1U) 5532 #define LCD_WF8B_BPALCD1_SHIFT (0U) 5533 /*! BPALCD1 5534 * 0b0..LCD segment off or LCD backplane inactive for phase A 5535 * 0b1..LCD segment on or LCD backplane active for phase A 5536 */ 5537 #define LCD_WF8B_BPALCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD1_SHIFT)) & LCD_WF8B_BPALCD1_MASK) 5538 5539 #define LCD_WF8B_BPBLCD1_MASK (0x2U) 5540 #define LCD_WF8B_BPBLCD1_SHIFT (1U) 5541 /*! BPBLCD1 5542 * 0b0..LCD segment off or LCD backplane inactive for phase B 5543 * 0b1..LCD segment on or LCD backplane active for phase B 5544 */ 5545 #define LCD_WF8B_BPBLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD1_SHIFT)) & LCD_WF8B_BPBLCD1_MASK) 5546 5547 #define LCD_WF8B_BPCLCD1_MASK (0x4U) 5548 #define LCD_WF8B_BPCLCD1_SHIFT (2U) 5549 /*! BPCLCD1 5550 * 0b0..LCD segment off or LCD backplane inactive for phase C 5551 * 0b1..LCD segment on or LCD backplane active for phase C 5552 */ 5553 #define LCD_WF8B_BPCLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD1_SHIFT)) & LCD_WF8B_BPCLCD1_MASK) 5554 5555 #define LCD_WF8B_BPDLCD1_MASK (0x8U) 5556 #define LCD_WF8B_BPDLCD1_SHIFT (3U) 5557 /*! BPDLCD1 5558 * 0b0..LCD segment off or LCD backplane inactive for phase D 5559 * 0b1..LCD segment on or LCD backplane active for phase D 5560 */ 5561 #define LCD_WF8B_BPDLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD1_SHIFT)) & LCD_WF8B_BPDLCD1_MASK) 5562 5563 #define LCD_WF8B_BPELCD1_MASK (0x10U) 5564 #define LCD_WF8B_BPELCD1_SHIFT (4U) 5565 /*! BPELCD1 5566 * 0b0..LCD segment off or LCD backplane inactive for phase E 5567 * 0b1..LCD segment on or LCD backplane active for phase E 5568 */ 5569 #define LCD_WF8B_BPELCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD1_SHIFT)) & LCD_WF8B_BPELCD1_MASK) 5570 5571 #define LCD_WF8B_BPFLCD1_MASK (0x20U) 5572 #define LCD_WF8B_BPFLCD1_SHIFT (5U) 5573 /*! BPFLCD1 5574 * 0b0..LCD segment off or LCD backplane inactive for phase F 5575 * 0b1..LCD segment on or LCD backplane active for phase F 5576 */ 5577 #define LCD_WF8B_BPFLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD1_SHIFT)) & LCD_WF8B_BPFLCD1_MASK) 5578 5579 #define LCD_WF8B_BPGLCD1_MASK (0x40U) 5580 #define LCD_WF8B_BPGLCD1_SHIFT (6U) 5581 /*! BPGLCD1 5582 * 0b0..LCD segment off or LCD backplane inactive for phase G 5583 * 0b1..LCD segment on or LCD backplane active for phase G 5584 */ 5585 #define LCD_WF8B_BPGLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD1_SHIFT)) & LCD_WF8B_BPGLCD1_MASK) 5586 5587 #define LCD_WF8B_BPHLCD1_MASK (0x80U) 5588 #define LCD_WF8B_BPHLCD1_SHIFT (7U) 5589 /*! BPHLCD1 5590 * 0b0..LCD segment off or LCD backplane inactive for phase H 5591 * 0b1..LCD segment on or LCD backplane active for phase H 5592 */ 5593 #define LCD_WF8B_BPHLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD1_SHIFT)) & LCD_WF8B_BPHLCD1_MASK) 5594 5595 #define LCD_WF8B_BPALCD2_MASK (0x1U) 5596 #define LCD_WF8B_BPALCD2_SHIFT (0U) 5597 /*! BPALCD2 5598 * 0b0..LCD segment off or LCD backplane inactive for phase A 5599 * 0b1..LCD segment on or LCD backplane active for phase A 5600 */ 5601 #define LCD_WF8B_BPALCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD2_SHIFT)) & LCD_WF8B_BPALCD2_MASK) 5602 5603 #define LCD_WF8B_BPBLCD2_MASK (0x2U) 5604 #define LCD_WF8B_BPBLCD2_SHIFT (1U) 5605 /*! BPBLCD2 5606 * 0b0..LCD segment off or LCD backplane inactive for phase B 5607 * 0b1..LCD segment on or LCD backplane active for phase B 5608 */ 5609 #define LCD_WF8B_BPBLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD2_SHIFT)) & LCD_WF8B_BPBLCD2_MASK) 5610 5611 #define LCD_WF8B_BPCLCD2_MASK (0x4U) 5612 #define LCD_WF8B_BPCLCD2_SHIFT (2U) 5613 /*! BPCLCD2 5614 * 0b0..LCD segment off or LCD backplane inactive for phase C 5615 * 0b1..LCD segment on or LCD backplane active for phase C 5616 */ 5617 #define LCD_WF8B_BPCLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD2_SHIFT)) & LCD_WF8B_BPCLCD2_MASK) 5618 5619 #define LCD_WF8B_BPDLCD2_MASK (0x8U) 5620 #define LCD_WF8B_BPDLCD2_SHIFT (3U) 5621 /*! BPDLCD2 5622 * 0b0..LCD segment off or LCD backplane inactive for phase D 5623 * 0b1..LCD segment on or LCD backplane active for phase D 5624 */ 5625 #define LCD_WF8B_BPDLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD2_SHIFT)) & LCD_WF8B_BPDLCD2_MASK) 5626 5627 #define LCD_WF8B_BPELCD2_MASK (0x10U) 5628 #define LCD_WF8B_BPELCD2_SHIFT (4U) 5629 /*! BPELCD2 5630 * 0b0..LCD segment off or LCD backplane inactive for phase E 5631 * 0b1..LCD segment on or LCD backplane active for phase E 5632 */ 5633 #define LCD_WF8B_BPELCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD2_SHIFT)) & LCD_WF8B_BPELCD2_MASK) 5634 5635 #define LCD_WF8B_BPFLCD2_MASK (0x20U) 5636 #define LCD_WF8B_BPFLCD2_SHIFT (5U) 5637 /*! BPFLCD2 5638 * 0b0..LCD segment off or LCD backplane inactive for phase F 5639 * 0b1..LCD segment on or LCD backplane active for phase F 5640 */ 5641 #define LCD_WF8B_BPFLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD2_SHIFT)) & LCD_WF8B_BPFLCD2_MASK) 5642 5643 #define LCD_WF8B_BPGLCD2_MASK (0x40U) 5644 #define LCD_WF8B_BPGLCD2_SHIFT (6U) 5645 /*! BPGLCD2 5646 * 0b0..LCD segment off or LCD backplane inactive for phase G 5647 * 0b1..LCD segment on or LCD backplane active for phase G 5648 */ 5649 #define LCD_WF8B_BPGLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD2_SHIFT)) & LCD_WF8B_BPGLCD2_MASK) 5650 5651 #define LCD_WF8B_BPHLCD2_MASK (0x80U) 5652 #define LCD_WF8B_BPHLCD2_SHIFT (7U) 5653 /*! BPHLCD2 5654 * 0b0..LCD segment off or LCD backplane inactive for phase H 5655 * 0b1..LCD segment on or LCD backplane active for phase H 5656 */ 5657 #define LCD_WF8B_BPHLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD2_SHIFT)) & LCD_WF8B_BPHLCD2_MASK) 5658 5659 #define LCD_WF8B_BPALCD3_MASK (0x1U) 5660 #define LCD_WF8B_BPALCD3_SHIFT (0U) 5661 /*! BPALCD3 5662 * 0b0..LCD segment off or LCD backplane inactive for phase A 5663 * 0b1..LCD segment on or LCD backplane active for phase A 5664 */ 5665 #define LCD_WF8B_BPALCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD3_SHIFT)) & LCD_WF8B_BPALCD3_MASK) 5666 5667 #define LCD_WF8B_BPBLCD3_MASK (0x2U) 5668 #define LCD_WF8B_BPBLCD3_SHIFT (1U) 5669 /*! BPBLCD3 5670 * 0b0..LCD segment off or LCD backplane inactive for phase B 5671 * 0b1..LCD segment on or LCD backplane active for phase B 5672 */ 5673 #define LCD_WF8B_BPBLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD3_SHIFT)) & LCD_WF8B_BPBLCD3_MASK) 5674 5675 #define LCD_WF8B_BPCLCD3_MASK (0x4U) 5676 #define LCD_WF8B_BPCLCD3_SHIFT (2U) 5677 /*! BPCLCD3 5678 * 0b0..LCD segment off or LCD backplane inactive for phase C 5679 * 0b1..LCD segment on or LCD backplane active for phase C 5680 */ 5681 #define LCD_WF8B_BPCLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD3_SHIFT)) & LCD_WF8B_BPCLCD3_MASK) 5682 5683 #define LCD_WF8B_BPDLCD3_MASK (0x8U) 5684 #define LCD_WF8B_BPDLCD3_SHIFT (3U) 5685 /*! BPDLCD3 5686 * 0b0..LCD segment off or LCD backplane inactive for phase D 5687 * 0b1..LCD segment on or LCD backplane active for phase D 5688 */ 5689 #define LCD_WF8B_BPDLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD3_SHIFT)) & LCD_WF8B_BPDLCD3_MASK) 5690 5691 #define LCD_WF8B_BPELCD3_MASK (0x10U) 5692 #define LCD_WF8B_BPELCD3_SHIFT (4U) 5693 /*! BPELCD3 5694 * 0b0..LCD segment off or LCD backplane inactive for phase E 5695 * 0b1..LCD segment on or LCD backplane active for phase E 5696 */ 5697 #define LCD_WF8B_BPELCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD3_SHIFT)) & LCD_WF8B_BPELCD3_MASK) 5698 5699 #define LCD_WF8B_BPFLCD3_MASK (0x20U) 5700 #define LCD_WF8B_BPFLCD3_SHIFT (5U) 5701 /*! BPFLCD3 5702 * 0b0..LCD segment off or LCD backplane inactive for phase F 5703 * 0b1..LCD segment on or LCD backplane active for phase F 5704 */ 5705 #define LCD_WF8B_BPFLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD3_SHIFT)) & LCD_WF8B_BPFLCD3_MASK) 5706 5707 #define LCD_WF8B_BPGLCD3_MASK (0x40U) 5708 #define LCD_WF8B_BPGLCD3_SHIFT (6U) 5709 /*! BPGLCD3 5710 * 0b0..LCD segment off or LCD backplane inactive for phase G 5711 * 0b1..LCD segment on or LCD backplane active for phase G 5712 */ 5713 #define LCD_WF8B_BPGLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD3_SHIFT)) & LCD_WF8B_BPGLCD3_MASK) 5714 5715 #define LCD_WF8B_BPHLCD3_MASK (0x80U) 5716 #define LCD_WF8B_BPHLCD3_SHIFT (7U) 5717 /*! BPHLCD3 5718 * 0b0..LCD segment off or LCD backplane inactive for phase H 5719 * 0b1..LCD segment on or LCD backplane active for phase H 5720 */ 5721 #define LCD_WF8B_BPHLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD3_SHIFT)) & LCD_WF8B_BPHLCD3_MASK) 5722 5723 #define LCD_WF8B_BPALCD4_MASK (0x1U) 5724 #define LCD_WF8B_BPALCD4_SHIFT (0U) 5725 /*! BPALCD4 5726 * 0b0..LCD segment off or LCD backplane inactive for phase A 5727 * 0b1..LCD segment on or LCD backplane active for phase A 5728 */ 5729 #define LCD_WF8B_BPALCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD4_SHIFT)) & LCD_WF8B_BPALCD4_MASK) 5730 5731 #define LCD_WF8B_BPBLCD4_MASK (0x2U) 5732 #define LCD_WF8B_BPBLCD4_SHIFT (1U) 5733 /*! BPBLCD4 5734 * 0b0..LCD segment off or LCD backplane inactive for phase B 5735 * 0b1..LCD segment on or LCD backplane active for phase B 5736 */ 5737 #define LCD_WF8B_BPBLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD4_SHIFT)) & LCD_WF8B_BPBLCD4_MASK) 5738 5739 #define LCD_WF8B_BPCLCD4_MASK (0x4U) 5740 #define LCD_WF8B_BPCLCD4_SHIFT (2U) 5741 /*! BPCLCD4 5742 * 0b0..LCD segment off or LCD backplane inactive for phase C 5743 * 0b1..LCD segment on or LCD backplane active for phase C 5744 */ 5745 #define LCD_WF8B_BPCLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD4_SHIFT)) & LCD_WF8B_BPCLCD4_MASK) 5746 5747 #define LCD_WF8B_BPDLCD4_MASK (0x8U) 5748 #define LCD_WF8B_BPDLCD4_SHIFT (3U) 5749 /*! BPDLCD4 5750 * 0b0..LCD segment off or LCD backplane inactive for phase D 5751 * 0b1..LCD segment on or LCD backplane active for phase D 5752 */ 5753 #define LCD_WF8B_BPDLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD4_SHIFT)) & LCD_WF8B_BPDLCD4_MASK) 5754 5755 #define LCD_WF8B_BPELCD4_MASK (0x10U) 5756 #define LCD_WF8B_BPELCD4_SHIFT (4U) 5757 /*! BPELCD4 5758 * 0b0..LCD segment off or LCD backplane inactive for phase E 5759 * 0b1..LCD segment on or LCD backplane active for phase E 5760 */ 5761 #define LCD_WF8B_BPELCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD4_SHIFT)) & LCD_WF8B_BPELCD4_MASK) 5762 5763 #define LCD_WF8B_BPFLCD4_MASK (0x20U) 5764 #define LCD_WF8B_BPFLCD4_SHIFT (5U) 5765 /*! BPFLCD4 5766 * 0b0..LCD segment off or LCD backplane inactive for phase F 5767 * 0b1..LCD segment on or LCD backplane active for phase F 5768 */ 5769 #define LCD_WF8B_BPFLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD4_SHIFT)) & LCD_WF8B_BPFLCD4_MASK) 5770 5771 #define LCD_WF8B_BPGLCD4_MASK (0x40U) 5772 #define LCD_WF8B_BPGLCD4_SHIFT (6U) 5773 /*! BPGLCD4 5774 * 0b0..LCD segment off or LCD backplane inactive for phase G 5775 * 0b1..LCD segment on or LCD backplane active for phase G 5776 */ 5777 #define LCD_WF8B_BPGLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD4_SHIFT)) & LCD_WF8B_BPGLCD4_MASK) 5778 5779 #define LCD_WF8B_BPHLCD4_MASK (0x80U) 5780 #define LCD_WF8B_BPHLCD4_SHIFT (7U) 5781 /*! BPHLCD4 5782 * 0b0..LCD segment off or LCD backplane inactive for phase H 5783 * 0b1..LCD segment on or LCD backplane active for phase H 5784 */ 5785 #define LCD_WF8B_BPHLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD4_SHIFT)) & LCD_WF8B_BPHLCD4_MASK) 5786 5787 #define LCD_WF8B_BPALCD5_MASK (0x1U) 5788 #define LCD_WF8B_BPALCD5_SHIFT (0U) 5789 /*! BPALCD5 5790 * 0b0..LCD segment off or LCD backplane inactive for phase A 5791 * 0b1..LCD segment on or LCD backplane active for phase A 5792 */ 5793 #define LCD_WF8B_BPALCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD5_SHIFT)) & LCD_WF8B_BPALCD5_MASK) 5794 5795 #define LCD_WF8B_BPBLCD5_MASK (0x2U) 5796 #define LCD_WF8B_BPBLCD5_SHIFT (1U) 5797 /*! BPBLCD5 5798 * 0b0..LCD segment off or LCD backplane inactive for phase B 5799 * 0b1..LCD segment on or LCD backplane active for phase B 5800 */ 5801 #define LCD_WF8B_BPBLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD5_SHIFT)) & LCD_WF8B_BPBLCD5_MASK) 5802 5803 #define LCD_WF8B_BPCLCD5_MASK (0x4U) 5804 #define LCD_WF8B_BPCLCD5_SHIFT (2U) 5805 /*! BPCLCD5 5806 * 0b0..LCD segment off or LCD backplane inactive for phase C 5807 * 0b1..LCD segment on or LCD backplane active for phase C 5808 */ 5809 #define LCD_WF8B_BPCLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD5_SHIFT)) & LCD_WF8B_BPCLCD5_MASK) 5810 5811 #define LCD_WF8B_BPDLCD5_MASK (0x8U) 5812 #define LCD_WF8B_BPDLCD5_SHIFT (3U) 5813 /*! BPDLCD5 5814 * 0b0..LCD segment off or LCD backplane inactive for phase D 5815 * 0b1..LCD segment on or LCD backplane active for phase D 5816 */ 5817 #define LCD_WF8B_BPDLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD5_SHIFT)) & LCD_WF8B_BPDLCD5_MASK) 5818 5819 #define LCD_WF8B_BPELCD5_MASK (0x10U) 5820 #define LCD_WF8B_BPELCD5_SHIFT (4U) 5821 /*! BPELCD5 5822 * 0b0..LCD segment off or LCD backplane inactive for phase E 5823 * 0b1..LCD segment on or LCD backplane active for phase E 5824 */ 5825 #define LCD_WF8B_BPELCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD5_SHIFT)) & LCD_WF8B_BPELCD5_MASK) 5826 5827 #define LCD_WF8B_BPFLCD5_MASK (0x20U) 5828 #define LCD_WF8B_BPFLCD5_SHIFT (5U) 5829 /*! BPFLCD5 5830 * 0b0..LCD segment off or LCD backplane inactive for phase F 5831 * 0b1..LCD segment on or LCD backplane active for phase F 5832 */ 5833 #define LCD_WF8B_BPFLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD5_SHIFT)) & LCD_WF8B_BPFLCD5_MASK) 5834 5835 #define LCD_WF8B_BPGLCD5_MASK (0x40U) 5836 #define LCD_WF8B_BPGLCD5_SHIFT (6U) 5837 /*! BPGLCD5 5838 * 0b0..LCD segment off or LCD backplane inactive for phase G 5839 * 0b1..LCD segment on or LCD backplane active for phase G 5840 */ 5841 #define LCD_WF8B_BPGLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD5_SHIFT)) & LCD_WF8B_BPGLCD5_MASK) 5842 5843 #define LCD_WF8B_BPHLCD5_MASK (0x80U) 5844 #define LCD_WF8B_BPHLCD5_SHIFT (7U) 5845 /*! BPHLCD5 5846 * 0b0..LCD segment off or LCD backplane inactive for phase H 5847 * 0b1..LCD segment on or LCD backplane active for phase H 5848 */ 5849 #define LCD_WF8B_BPHLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD5_SHIFT)) & LCD_WF8B_BPHLCD5_MASK) 5850 5851 #define LCD_WF8B_BPALCD6_MASK (0x1U) 5852 #define LCD_WF8B_BPALCD6_SHIFT (0U) 5853 /*! BPALCD6 5854 * 0b0..LCD segment off or LCD backplane inactive for phase A 5855 * 0b1..LCD segment on or LCD backplane active for phase A 5856 */ 5857 #define LCD_WF8B_BPALCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD6_SHIFT)) & LCD_WF8B_BPALCD6_MASK) 5858 5859 #define LCD_WF8B_BPBLCD6_MASK (0x2U) 5860 #define LCD_WF8B_BPBLCD6_SHIFT (1U) 5861 /*! BPBLCD6 5862 * 0b0..LCD segment off or LCD backplane inactive for phase B 5863 * 0b1..LCD segment on or LCD backplane active for phase B 5864 */ 5865 #define LCD_WF8B_BPBLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD6_SHIFT)) & LCD_WF8B_BPBLCD6_MASK) 5866 5867 #define LCD_WF8B_BPCLCD6_MASK (0x4U) 5868 #define LCD_WF8B_BPCLCD6_SHIFT (2U) 5869 /*! BPCLCD6 5870 * 0b0..LCD segment off or LCD backplane inactive for phase C 5871 * 0b1..LCD segment on or LCD backplane active for phase C 5872 */ 5873 #define LCD_WF8B_BPCLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD6_SHIFT)) & LCD_WF8B_BPCLCD6_MASK) 5874 5875 #define LCD_WF8B_BPDLCD6_MASK (0x8U) 5876 #define LCD_WF8B_BPDLCD6_SHIFT (3U) 5877 /*! BPDLCD6 5878 * 0b0..LCD segment off or LCD backplane inactive for phase D 5879 * 0b1..LCD segment on or LCD backplane active for phase D 5880 */ 5881 #define LCD_WF8B_BPDLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD6_SHIFT)) & LCD_WF8B_BPDLCD6_MASK) 5882 5883 #define LCD_WF8B_BPELCD6_MASK (0x10U) 5884 #define LCD_WF8B_BPELCD6_SHIFT (4U) 5885 /*! BPELCD6 5886 * 0b0..LCD segment off or LCD backplane inactive for phase E 5887 * 0b1..LCD segment on or LCD backplane active for phase E 5888 */ 5889 #define LCD_WF8B_BPELCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD6_SHIFT)) & LCD_WF8B_BPELCD6_MASK) 5890 5891 #define LCD_WF8B_BPFLCD6_MASK (0x20U) 5892 #define LCD_WF8B_BPFLCD6_SHIFT (5U) 5893 /*! BPFLCD6 5894 * 0b0..LCD segment off or LCD backplane inactive for phase F 5895 * 0b1..LCD segment on or LCD backplane active for phase F 5896 */ 5897 #define LCD_WF8B_BPFLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD6_SHIFT)) & LCD_WF8B_BPFLCD6_MASK) 5898 5899 #define LCD_WF8B_BPGLCD6_MASK (0x40U) 5900 #define LCD_WF8B_BPGLCD6_SHIFT (6U) 5901 /*! BPGLCD6 5902 * 0b0..LCD segment off or LCD backplane inactive for phase G 5903 * 0b1..LCD segment on or LCD backplane active for phase G 5904 */ 5905 #define LCD_WF8B_BPGLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD6_SHIFT)) & LCD_WF8B_BPGLCD6_MASK) 5906 5907 #define LCD_WF8B_BPHLCD6_MASK (0x80U) 5908 #define LCD_WF8B_BPHLCD6_SHIFT (7U) 5909 /*! BPHLCD6 5910 * 0b0..LCD segment off or LCD backplane inactive for phase H 5911 * 0b1..LCD segment on or LCD backplane active for phase H 5912 */ 5913 #define LCD_WF8B_BPHLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD6_SHIFT)) & LCD_WF8B_BPHLCD6_MASK) 5914 5915 #define LCD_WF8B_BPALCD7_MASK (0x1U) 5916 #define LCD_WF8B_BPALCD7_SHIFT (0U) 5917 /*! BPALCD7 5918 * 0b0..LCD segment off or LCD backplane inactive for phase A 5919 * 0b1..LCD segment on or LCD backplane active for phase A 5920 */ 5921 #define LCD_WF8B_BPALCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD7_SHIFT)) & LCD_WF8B_BPALCD7_MASK) 5922 5923 #define LCD_WF8B_BPBLCD7_MASK (0x2U) 5924 #define LCD_WF8B_BPBLCD7_SHIFT (1U) 5925 /*! BPBLCD7 5926 * 0b0..LCD segment off or LCD backplane inactive for phase B 5927 * 0b1..LCD segment on or LCD backplane active for phase B 5928 */ 5929 #define LCD_WF8B_BPBLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD7_SHIFT)) & LCD_WF8B_BPBLCD7_MASK) 5930 5931 #define LCD_WF8B_BPCLCD7_MASK (0x4U) 5932 #define LCD_WF8B_BPCLCD7_SHIFT (2U) 5933 /*! BPCLCD7 5934 * 0b0..LCD segment off or LCD backplane inactive for phase C 5935 * 0b1..LCD segment on or LCD backplane active for phase C 5936 */ 5937 #define LCD_WF8B_BPCLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD7_SHIFT)) & LCD_WF8B_BPCLCD7_MASK) 5938 5939 #define LCD_WF8B_BPDLCD7_MASK (0x8U) 5940 #define LCD_WF8B_BPDLCD7_SHIFT (3U) 5941 /*! BPDLCD7 5942 * 0b0..LCD segment off or LCD backplane inactive for phase D 5943 * 0b1..LCD segment on or LCD backplane active for phase D 5944 */ 5945 #define LCD_WF8B_BPDLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD7_SHIFT)) & LCD_WF8B_BPDLCD7_MASK) 5946 5947 #define LCD_WF8B_BPELCD7_MASK (0x10U) 5948 #define LCD_WF8B_BPELCD7_SHIFT (4U) 5949 /*! BPELCD7 5950 * 0b0..LCD segment off or LCD backplane inactive for phase E 5951 * 0b1..LCD segment on or LCD backplane active for phase E 5952 */ 5953 #define LCD_WF8B_BPELCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD7_SHIFT)) & LCD_WF8B_BPELCD7_MASK) 5954 5955 #define LCD_WF8B_BPFLCD7_MASK (0x20U) 5956 #define LCD_WF8B_BPFLCD7_SHIFT (5U) 5957 /*! BPFLCD7 5958 * 0b0..LCD segment off or LCD backplane inactive for phase F 5959 * 0b1..LCD segment on or LCD backplane active for phase F 5960 */ 5961 #define LCD_WF8B_BPFLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD7_SHIFT)) & LCD_WF8B_BPFLCD7_MASK) 5962 5963 #define LCD_WF8B_BPGLCD7_MASK (0x40U) 5964 #define LCD_WF8B_BPGLCD7_SHIFT (6U) 5965 /*! BPGLCD7 5966 * 0b0..LCD segment off or LCD backplane inactive for phase G 5967 * 0b1..LCD segment on or LCD backplane active for phase G 5968 */ 5969 #define LCD_WF8B_BPGLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD7_SHIFT)) & LCD_WF8B_BPGLCD7_MASK) 5970 5971 #define LCD_WF8B_BPHLCD7_MASK (0x80U) 5972 #define LCD_WF8B_BPHLCD7_SHIFT (7U) 5973 /*! BPHLCD7 5974 * 0b0..LCD segment off or LCD backplane inactive for phase H 5975 * 0b1..LCD segment on or LCD backplane active for phase H 5976 */ 5977 #define LCD_WF8B_BPHLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD7_SHIFT)) & LCD_WF8B_BPHLCD7_MASK) 5978 5979 #define LCD_WF8B_BPALCD8_MASK (0x1U) 5980 #define LCD_WF8B_BPALCD8_SHIFT (0U) 5981 /*! BPALCD8 5982 * 0b0..LCD segment off or LCD backplane inactive for phase A 5983 * 0b1..LCD segment on or LCD backplane active for phase A 5984 */ 5985 #define LCD_WF8B_BPALCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD8_SHIFT)) & LCD_WF8B_BPALCD8_MASK) 5986 5987 #define LCD_WF8B_BPBLCD8_MASK (0x2U) 5988 #define LCD_WF8B_BPBLCD8_SHIFT (1U) 5989 /*! BPBLCD8 5990 * 0b0..LCD segment off or LCD backplane inactive for phase B 5991 * 0b1..LCD segment on or LCD backplane active for phase B 5992 */ 5993 #define LCD_WF8B_BPBLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD8_SHIFT)) & LCD_WF8B_BPBLCD8_MASK) 5994 5995 #define LCD_WF8B_BPCLCD8_MASK (0x4U) 5996 #define LCD_WF8B_BPCLCD8_SHIFT (2U) 5997 /*! BPCLCD8 5998 * 0b0..LCD segment off or LCD backplane inactive for phase C 5999 * 0b1..LCD segment on or LCD backplane active for phase C 6000 */ 6001 #define LCD_WF8B_BPCLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD8_SHIFT)) & LCD_WF8B_BPCLCD8_MASK) 6002 6003 #define LCD_WF8B_BPDLCD8_MASK (0x8U) 6004 #define LCD_WF8B_BPDLCD8_SHIFT (3U) 6005 /*! BPDLCD8 6006 * 0b0..LCD segment off or LCD backplane inactive for phase D 6007 * 0b1..LCD segment on or LCD backplane active for phase D 6008 */ 6009 #define LCD_WF8B_BPDLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD8_SHIFT)) & LCD_WF8B_BPDLCD8_MASK) 6010 6011 #define LCD_WF8B_BPELCD8_MASK (0x10U) 6012 #define LCD_WF8B_BPELCD8_SHIFT (4U) 6013 /*! BPELCD8 6014 * 0b0..LCD segment off or LCD backplane inactive for phase E 6015 * 0b1..LCD segment on or LCD backplane active for phase E 6016 */ 6017 #define LCD_WF8B_BPELCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD8_SHIFT)) & LCD_WF8B_BPELCD8_MASK) 6018 6019 #define LCD_WF8B_BPFLCD8_MASK (0x20U) 6020 #define LCD_WF8B_BPFLCD8_SHIFT (5U) 6021 /*! BPFLCD8 6022 * 0b0..LCD segment off or LCD backplane inactive for phase F 6023 * 0b1..LCD segment on or LCD backplane active for phase F 6024 */ 6025 #define LCD_WF8B_BPFLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD8_SHIFT)) & LCD_WF8B_BPFLCD8_MASK) 6026 6027 #define LCD_WF8B_BPGLCD8_MASK (0x40U) 6028 #define LCD_WF8B_BPGLCD8_SHIFT (6U) 6029 /*! BPGLCD8 6030 * 0b0..LCD segment off or LCD backplane inactive for phase G 6031 * 0b1..LCD segment on or LCD backplane active for phase G 6032 */ 6033 #define LCD_WF8B_BPGLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD8_SHIFT)) & LCD_WF8B_BPGLCD8_MASK) 6034 6035 #define LCD_WF8B_BPHLCD8_MASK (0x80U) 6036 #define LCD_WF8B_BPHLCD8_SHIFT (7U) 6037 /*! BPHLCD8 6038 * 0b0..LCD segment off or LCD backplane inactive for phase H 6039 * 0b1..LCD segment on or LCD backplane active for phase H 6040 */ 6041 #define LCD_WF8B_BPHLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD8_SHIFT)) & LCD_WF8B_BPHLCD8_MASK) 6042 6043 #define LCD_WF8B_BPALCD9_MASK (0x1U) 6044 #define LCD_WF8B_BPALCD9_SHIFT (0U) 6045 /*! BPALCD9 6046 * 0b0..LCD segment off or LCD backplane inactive for phase A 6047 * 0b1..LCD segment on or LCD backplane active for phase A 6048 */ 6049 #define LCD_WF8B_BPALCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD9_SHIFT)) & LCD_WF8B_BPALCD9_MASK) 6050 6051 #define LCD_WF8B_BPBLCD9_MASK (0x2U) 6052 #define LCD_WF8B_BPBLCD9_SHIFT (1U) 6053 /*! BPBLCD9 6054 * 0b0..LCD segment off or LCD backplane inactive for phase B 6055 * 0b1..LCD segment on or LCD backplane active for phase B 6056 */ 6057 #define LCD_WF8B_BPBLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD9_SHIFT)) & LCD_WF8B_BPBLCD9_MASK) 6058 6059 #define LCD_WF8B_BPCLCD9_MASK (0x4U) 6060 #define LCD_WF8B_BPCLCD9_SHIFT (2U) 6061 /*! BPCLCD9 6062 * 0b0..LCD segment off or LCD backplane inactive for phase C 6063 * 0b1..LCD segment on or LCD backplane active for phase C 6064 */ 6065 #define LCD_WF8B_BPCLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD9_SHIFT)) & LCD_WF8B_BPCLCD9_MASK) 6066 6067 #define LCD_WF8B_BPDLCD9_MASK (0x8U) 6068 #define LCD_WF8B_BPDLCD9_SHIFT (3U) 6069 /*! BPDLCD9 6070 * 0b0..LCD segment off or LCD backplane inactive for phase D 6071 * 0b1..LCD segment on or LCD backplane active for phase D 6072 */ 6073 #define LCD_WF8B_BPDLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD9_SHIFT)) & LCD_WF8B_BPDLCD9_MASK) 6074 6075 #define LCD_WF8B_BPELCD9_MASK (0x10U) 6076 #define LCD_WF8B_BPELCD9_SHIFT (4U) 6077 /*! BPELCD9 6078 * 0b0..LCD segment off or LCD backplane inactive for phase E 6079 * 0b1..LCD segment on or LCD backplane active for phase E 6080 */ 6081 #define LCD_WF8B_BPELCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD9_SHIFT)) & LCD_WF8B_BPELCD9_MASK) 6082 6083 #define LCD_WF8B_BPFLCD9_MASK (0x20U) 6084 #define LCD_WF8B_BPFLCD9_SHIFT (5U) 6085 /*! BPFLCD9 6086 * 0b0..LCD segment off or LCD backplane inactive for phase F 6087 * 0b1..LCD segment on or LCD backplane active for phase F 6088 */ 6089 #define LCD_WF8B_BPFLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD9_SHIFT)) & LCD_WF8B_BPFLCD9_MASK) 6090 6091 #define LCD_WF8B_BPGLCD9_MASK (0x40U) 6092 #define LCD_WF8B_BPGLCD9_SHIFT (6U) 6093 /*! BPGLCD9 6094 * 0b0..LCD segment off or LCD backplane inactive for phase G 6095 * 0b1..LCD segment on or LCD backplane active for phase G 6096 */ 6097 #define LCD_WF8B_BPGLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD9_SHIFT)) & LCD_WF8B_BPGLCD9_MASK) 6098 6099 #define LCD_WF8B_BPHLCD9_MASK (0x80U) 6100 #define LCD_WF8B_BPHLCD9_SHIFT (7U) 6101 /*! BPHLCD9 6102 * 0b0..LCD segment off or LCD backplane inactive for phase H 6103 * 0b1..LCD segment on or LCD backplane active for phase H 6104 */ 6105 #define LCD_WF8B_BPHLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD9_SHIFT)) & LCD_WF8B_BPHLCD9_MASK) 6106 6107 #define LCD_WF8B_BPALCD10_MASK (0x1U) 6108 #define LCD_WF8B_BPALCD10_SHIFT (0U) 6109 /*! BPALCD10 6110 * 0b0..LCD segment off or LCD backplane inactive for phase A 6111 * 0b1..LCD segment on or LCD backplane active for phase A 6112 */ 6113 #define LCD_WF8B_BPALCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD10_SHIFT)) & LCD_WF8B_BPALCD10_MASK) 6114 6115 #define LCD_WF8B_BPBLCD10_MASK (0x2U) 6116 #define LCD_WF8B_BPBLCD10_SHIFT (1U) 6117 /*! BPBLCD10 6118 * 0b0..LCD segment off or LCD backplane inactive for phase B 6119 * 0b1..LCD segment on or LCD backplane active for phase B 6120 */ 6121 #define LCD_WF8B_BPBLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD10_SHIFT)) & LCD_WF8B_BPBLCD10_MASK) 6122 6123 #define LCD_WF8B_BPCLCD10_MASK (0x4U) 6124 #define LCD_WF8B_BPCLCD10_SHIFT (2U) 6125 /*! BPCLCD10 6126 * 0b0..LCD segment off or LCD backplane inactive for phase C 6127 * 0b1..LCD segment on or LCD backplane active for phase C 6128 */ 6129 #define LCD_WF8B_BPCLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD10_SHIFT)) & LCD_WF8B_BPCLCD10_MASK) 6130 6131 #define LCD_WF8B_BPDLCD10_MASK (0x8U) 6132 #define LCD_WF8B_BPDLCD10_SHIFT (3U) 6133 /*! BPDLCD10 6134 * 0b0..LCD segment off or LCD backplane inactive for phase D 6135 * 0b1..LCD segment on or LCD backplane active for phase D 6136 */ 6137 #define LCD_WF8B_BPDLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD10_SHIFT)) & LCD_WF8B_BPDLCD10_MASK) 6138 6139 #define LCD_WF8B_BPELCD10_MASK (0x10U) 6140 #define LCD_WF8B_BPELCD10_SHIFT (4U) 6141 /*! BPELCD10 6142 * 0b0..LCD segment off or LCD backplane inactive for phase E 6143 * 0b1..LCD segment on or LCD backplane active for phase E 6144 */ 6145 #define LCD_WF8B_BPELCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD10_SHIFT)) & LCD_WF8B_BPELCD10_MASK) 6146 6147 #define LCD_WF8B_BPFLCD10_MASK (0x20U) 6148 #define LCD_WF8B_BPFLCD10_SHIFT (5U) 6149 /*! BPFLCD10 6150 * 0b0..LCD segment off or LCD backplane inactive for phase F 6151 * 0b1..LCD segment on or LCD backplane active for phase F 6152 */ 6153 #define LCD_WF8B_BPFLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD10_SHIFT)) & LCD_WF8B_BPFLCD10_MASK) 6154 6155 #define LCD_WF8B_BPGLCD10_MASK (0x40U) 6156 #define LCD_WF8B_BPGLCD10_SHIFT (6U) 6157 /*! BPGLCD10 6158 * 0b0..LCD segment off or LCD backplane inactive for phase G 6159 * 0b1..LCD segment on or LCD backplane active for phase G 6160 */ 6161 #define LCD_WF8B_BPGLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD10_SHIFT)) & LCD_WF8B_BPGLCD10_MASK) 6162 6163 #define LCD_WF8B_BPHLCD10_MASK (0x80U) 6164 #define LCD_WF8B_BPHLCD10_SHIFT (7U) 6165 /*! BPHLCD10 6166 * 0b0..LCD segment off or LCD backplane inactive for phase H 6167 * 0b1..LCD segment on or LCD backplane active for phase H 6168 */ 6169 #define LCD_WF8B_BPHLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD10_SHIFT)) & LCD_WF8B_BPHLCD10_MASK) 6170 6171 #define LCD_WF8B_BPALCD11_MASK (0x1U) 6172 #define LCD_WF8B_BPALCD11_SHIFT (0U) 6173 /*! BPALCD11 6174 * 0b0..LCD segment off or LCD backplane inactive for phase A 6175 * 0b1..LCD segment on or LCD backplane active for phase A 6176 */ 6177 #define LCD_WF8B_BPALCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD11_SHIFT)) & LCD_WF8B_BPALCD11_MASK) 6178 6179 #define LCD_WF8B_BPBLCD11_MASK (0x2U) 6180 #define LCD_WF8B_BPBLCD11_SHIFT (1U) 6181 /*! BPBLCD11 6182 * 0b0..LCD segment off or LCD backplane inactive for phase B 6183 * 0b1..LCD segment on or LCD backplane active for phase B 6184 */ 6185 #define LCD_WF8B_BPBLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD11_SHIFT)) & LCD_WF8B_BPBLCD11_MASK) 6186 6187 #define LCD_WF8B_BPCLCD11_MASK (0x4U) 6188 #define LCD_WF8B_BPCLCD11_SHIFT (2U) 6189 /*! BPCLCD11 6190 * 0b0..LCD segment off or LCD backplane inactive for phase C 6191 * 0b1..LCD segment on or LCD backplane active for phase C 6192 */ 6193 #define LCD_WF8B_BPCLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD11_SHIFT)) & LCD_WF8B_BPCLCD11_MASK) 6194 6195 #define LCD_WF8B_BPDLCD11_MASK (0x8U) 6196 #define LCD_WF8B_BPDLCD11_SHIFT (3U) 6197 /*! BPDLCD11 6198 * 0b0..LCD segment off or LCD backplane inactive for phase D 6199 * 0b1..LCD segment on or LCD backplane active for phase D 6200 */ 6201 #define LCD_WF8B_BPDLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD11_SHIFT)) & LCD_WF8B_BPDLCD11_MASK) 6202 6203 #define LCD_WF8B_BPELCD11_MASK (0x10U) 6204 #define LCD_WF8B_BPELCD11_SHIFT (4U) 6205 /*! BPELCD11 6206 * 0b0..LCD segment off or LCD backplane inactive for phase E 6207 * 0b1..LCD segment on or LCD backplane active for phase E 6208 */ 6209 #define LCD_WF8B_BPELCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD11_SHIFT)) & LCD_WF8B_BPELCD11_MASK) 6210 6211 #define LCD_WF8B_BPFLCD11_MASK (0x20U) 6212 #define LCD_WF8B_BPFLCD11_SHIFT (5U) 6213 /*! BPFLCD11 6214 * 0b0..LCD segment off or LCD backplane inactive for phase F 6215 * 0b1..LCD segment on or LCD backplane active for phase F 6216 */ 6217 #define LCD_WF8B_BPFLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD11_SHIFT)) & LCD_WF8B_BPFLCD11_MASK) 6218 6219 #define LCD_WF8B_BPGLCD11_MASK (0x40U) 6220 #define LCD_WF8B_BPGLCD11_SHIFT (6U) 6221 /*! BPGLCD11 6222 * 0b0..LCD segment off or LCD backplane inactive for phase G 6223 * 0b1..LCD segment on or LCD backplane active for phase G 6224 */ 6225 #define LCD_WF8B_BPGLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD11_SHIFT)) & LCD_WF8B_BPGLCD11_MASK) 6226 6227 #define LCD_WF8B_BPHLCD11_MASK (0x80U) 6228 #define LCD_WF8B_BPHLCD11_SHIFT (7U) 6229 /*! BPHLCD11 6230 * 0b0..LCD segment off or LCD backplane inactive for phase H 6231 * 0b1..LCD segment on or LCD backplane active for phase H 6232 */ 6233 #define LCD_WF8B_BPHLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD11_SHIFT)) & LCD_WF8B_BPHLCD11_MASK) 6234 6235 #define LCD_WF8B_BPALCD12_MASK (0x1U) 6236 #define LCD_WF8B_BPALCD12_SHIFT (0U) 6237 /*! BPALCD12 6238 * 0b0..LCD segment off or LCD backplane inactive for phase A 6239 * 0b1..LCD segment on or LCD backplane active for phase A 6240 */ 6241 #define LCD_WF8B_BPALCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD12_SHIFT)) & LCD_WF8B_BPALCD12_MASK) 6242 6243 #define LCD_WF8B_BPBLCD12_MASK (0x2U) 6244 #define LCD_WF8B_BPBLCD12_SHIFT (1U) 6245 /*! BPBLCD12 6246 * 0b0..LCD segment off or LCD backplane inactive for phase B 6247 * 0b1..LCD segment on or LCD backplane active for phase B 6248 */ 6249 #define LCD_WF8B_BPBLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD12_SHIFT)) & LCD_WF8B_BPBLCD12_MASK) 6250 6251 #define LCD_WF8B_BPCLCD12_MASK (0x4U) 6252 #define LCD_WF8B_BPCLCD12_SHIFT (2U) 6253 /*! BPCLCD12 6254 * 0b0..LCD segment off or LCD backplane inactive for phase C 6255 * 0b1..LCD segment on or LCD backplane active for phase C 6256 */ 6257 #define LCD_WF8B_BPCLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD12_SHIFT)) & LCD_WF8B_BPCLCD12_MASK) 6258 6259 #define LCD_WF8B_BPDLCD12_MASK (0x8U) 6260 #define LCD_WF8B_BPDLCD12_SHIFT (3U) 6261 /*! BPDLCD12 6262 * 0b0..LCD segment off or LCD backplane inactive for phase D 6263 * 0b1..LCD segment on or LCD backplane active for phase D 6264 */ 6265 #define LCD_WF8B_BPDLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD12_SHIFT)) & LCD_WF8B_BPDLCD12_MASK) 6266 6267 #define LCD_WF8B_BPELCD12_MASK (0x10U) 6268 #define LCD_WF8B_BPELCD12_SHIFT (4U) 6269 /*! BPELCD12 6270 * 0b0..LCD segment off or LCD backplane inactive for phase E 6271 * 0b1..LCD segment on or LCD backplane active for phase E 6272 */ 6273 #define LCD_WF8B_BPELCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD12_SHIFT)) & LCD_WF8B_BPELCD12_MASK) 6274 6275 #define LCD_WF8B_BPFLCD12_MASK (0x20U) 6276 #define LCD_WF8B_BPFLCD12_SHIFT (5U) 6277 /*! BPFLCD12 6278 * 0b0..LCD segment off or LCD backplane inactive for phase F 6279 * 0b1..LCD segment on or LCD backplane active for phase F 6280 */ 6281 #define LCD_WF8B_BPFLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD12_SHIFT)) & LCD_WF8B_BPFLCD12_MASK) 6282 6283 #define LCD_WF8B_BPGLCD12_MASK (0x40U) 6284 #define LCD_WF8B_BPGLCD12_SHIFT (6U) 6285 /*! BPGLCD12 6286 * 0b0..LCD segment off or LCD backplane inactive for phase G 6287 * 0b1..LCD segment on or LCD backplane active for phase G 6288 */ 6289 #define LCD_WF8B_BPGLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD12_SHIFT)) & LCD_WF8B_BPGLCD12_MASK) 6290 6291 #define LCD_WF8B_BPHLCD12_MASK (0x80U) 6292 #define LCD_WF8B_BPHLCD12_SHIFT (7U) 6293 /*! BPHLCD12 6294 * 0b0..LCD segment off or LCD backplane inactive for phase H 6295 * 0b1..LCD segment on or LCD backplane active for phase H 6296 */ 6297 #define LCD_WF8B_BPHLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD12_SHIFT)) & LCD_WF8B_BPHLCD12_MASK) 6298 6299 #define LCD_WF8B_BPALCD13_MASK (0x1U) 6300 #define LCD_WF8B_BPALCD13_SHIFT (0U) 6301 /*! BPALCD13 6302 * 0b0..LCD segment off or LCD backplane inactive for phase A 6303 * 0b1..LCD segment on or LCD backplane active for phase A 6304 */ 6305 #define LCD_WF8B_BPALCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD13_SHIFT)) & LCD_WF8B_BPALCD13_MASK) 6306 6307 #define LCD_WF8B_BPBLCD13_MASK (0x2U) 6308 #define LCD_WF8B_BPBLCD13_SHIFT (1U) 6309 /*! BPBLCD13 6310 * 0b0..LCD segment off or LCD backplane inactive for phase B 6311 * 0b1..LCD segment on or LCD backplane active for phase B 6312 */ 6313 #define LCD_WF8B_BPBLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD13_SHIFT)) & LCD_WF8B_BPBLCD13_MASK) 6314 6315 #define LCD_WF8B_BPCLCD13_MASK (0x4U) 6316 #define LCD_WF8B_BPCLCD13_SHIFT (2U) 6317 /*! BPCLCD13 6318 * 0b0..LCD segment off or LCD backplane inactive for phase C 6319 * 0b1..LCD segment on or LCD backplane active for phase C 6320 */ 6321 #define LCD_WF8B_BPCLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD13_SHIFT)) & LCD_WF8B_BPCLCD13_MASK) 6322 6323 #define LCD_WF8B_BPDLCD13_MASK (0x8U) 6324 #define LCD_WF8B_BPDLCD13_SHIFT (3U) 6325 /*! BPDLCD13 6326 * 0b0..LCD segment off or LCD backplane inactive for phase D 6327 * 0b1..LCD segment on or LCD backplane active for phase D 6328 */ 6329 #define LCD_WF8B_BPDLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD13_SHIFT)) & LCD_WF8B_BPDLCD13_MASK) 6330 6331 #define LCD_WF8B_BPELCD13_MASK (0x10U) 6332 #define LCD_WF8B_BPELCD13_SHIFT (4U) 6333 /*! BPELCD13 6334 * 0b0..LCD segment off or LCD backplane inactive for phase E 6335 * 0b1..LCD segment on or LCD backplane active for phase E 6336 */ 6337 #define LCD_WF8B_BPELCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD13_SHIFT)) & LCD_WF8B_BPELCD13_MASK) 6338 6339 #define LCD_WF8B_BPFLCD13_MASK (0x20U) 6340 #define LCD_WF8B_BPFLCD13_SHIFT (5U) 6341 /*! BPFLCD13 6342 * 0b0..LCD segment off or LCD backplane inactive for phase F 6343 * 0b1..LCD segment on or LCD backplane active for phase F 6344 */ 6345 #define LCD_WF8B_BPFLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD13_SHIFT)) & LCD_WF8B_BPFLCD13_MASK) 6346 6347 #define LCD_WF8B_BPGLCD13_MASK (0x40U) 6348 #define LCD_WF8B_BPGLCD13_SHIFT (6U) 6349 /*! BPGLCD13 6350 * 0b0..LCD segment off or LCD backplane inactive for phase G 6351 * 0b1..LCD segment on or LCD backplane active for phase G 6352 */ 6353 #define LCD_WF8B_BPGLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD13_SHIFT)) & LCD_WF8B_BPGLCD13_MASK) 6354 6355 #define LCD_WF8B_BPHLCD13_MASK (0x80U) 6356 #define LCD_WF8B_BPHLCD13_SHIFT (7U) 6357 /*! BPHLCD13 6358 * 0b0..LCD segment off or LCD backplane inactive for phase H 6359 * 0b1..LCD segment on or LCD backplane active for phase H 6360 */ 6361 #define LCD_WF8B_BPHLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD13_SHIFT)) & LCD_WF8B_BPHLCD13_MASK) 6362 6363 #define LCD_WF8B_BPALCD14_MASK (0x1U) 6364 #define LCD_WF8B_BPALCD14_SHIFT (0U) 6365 /*! BPALCD14 6366 * 0b0..LCD segment off or LCD backplane inactive for phase A 6367 * 0b1..LCD segment on or LCD backplane active for phase A 6368 */ 6369 #define LCD_WF8B_BPALCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD14_SHIFT)) & LCD_WF8B_BPALCD14_MASK) 6370 6371 #define LCD_WF8B_BPBLCD14_MASK (0x2U) 6372 #define LCD_WF8B_BPBLCD14_SHIFT (1U) 6373 /*! BPBLCD14 6374 * 0b0..LCD segment off or LCD backplane inactive for phase B 6375 * 0b1..LCD segment on or LCD backplane active for phase B 6376 */ 6377 #define LCD_WF8B_BPBLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD14_SHIFT)) & LCD_WF8B_BPBLCD14_MASK) 6378 6379 #define LCD_WF8B_BPCLCD14_MASK (0x4U) 6380 #define LCD_WF8B_BPCLCD14_SHIFT (2U) 6381 /*! BPCLCD14 6382 * 0b0..LCD segment off or LCD backplane inactive for phase C 6383 * 0b1..LCD segment on or LCD backplane active for phase C 6384 */ 6385 #define LCD_WF8B_BPCLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD14_SHIFT)) & LCD_WF8B_BPCLCD14_MASK) 6386 6387 #define LCD_WF8B_BPDLCD14_MASK (0x8U) 6388 #define LCD_WF8B_BPDLCD14_SHIFT (3U) 6389 /*! BPDLCD14 6390 * 0b0..LCD segment off or LCD backplane inactive for phase D 6391 * 0b1..LCD segment on or LCD backplane active for phase D 6392 */ 6393 #define LCD_WF8B_BPDLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD14_SHIFT)) & LCD_WF8B_BPDLCD14_MASK) 6394 6395 #define LCD_WF8B_BPELCD14_MASK (0x10U) 6396 #define LCD_WF8B_BPELCD14_SHIFT (4U) 6397 /*! BPELCD14 6398 * 0b0..LCD segment off or LCD backplane inactive for phase E 6399 * 0b1..LCD segment on or LCD backplane active for phase E 6400 */ 6401 #define LCD_WF8B_BPELCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD14_SHIFT)) & LCD_WF8B_BPELCD14_MASK) 6402 6403 #define LCD_WF8B_BPFLCD14_MASK (0x20U) 6404 #define LCD_WF8B_BPFLCD14_SHIFT (5U) 6405 /*! BPFLCD14 6406 * 0b0..LCD segment off or LCD backplane inactive for phase F 6407 * 0b1..LCD segment on or LCD backplane active for phase F 6408 */ 6409 #define LCD_WF8B_BPFLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD14_SHIFT)) & LCD_WF8B_BPFLCD14_MASK) 6410 6411 #define LCD_WF8B_BPGLCD14_MASK (0x40U) 6412 #define LCD_WF8B_BPGLCD14_SHIFT (6U) 6413 /*! BPGLCD14 6414 * 0b0..LCD segment off or LCD backplane inactive for phase G 6415 * 0b1..LCD segment on or LCD backplane active for phase G 6416 */ 6417 #define LCD_WF8B_BPGLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD14_SHIFT)) & LCD_WF8B_BPGLCD14_MASK) 6418 6419 #define LCD_WF8B_BPHLCD14_MASK (0x80U) 6420 #define LCD_WF8B_BPHLCD14_SHIFT (7U) 6421 /*! BPHLCD14 6422 * 0b0..LCD segment off or LCD backplane inactive for phase H 6423 * 0b1..LCD segment on or LCD backplane active for phase H 6424 */ 6425 #define LCD_WF8B_BPHLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD14_SHIFT)) & LCD_WF8B_BPHLCD14_MASK) 6426 6427 #define LCD_WF8B_BPALCD15_MASK (0x1U) 6428 #define LCD_WF8B_BPALCD15_SHIFT (0U) 6429 /*! BPALCD15 6430 * 0b0..LCD segment off or LCD backplane inactive for phase A 6431 * 0b1..LCD segment on or LCD backplane active for phase A 6432 */ 6433 #define LCD_WF8B_BPALCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD15_SHIFT)) & LCD_WF8B_BPALCD15_MASK) 6434 6435 #define LCD_WF8B_BPBLCD15_MASK (0x2U) 6436 #define LCD_WF8B_BPBLCD15_SHIFT (1U) 6437 /*! BPBLCD15 6438 * 0b0..LCD segment off or LCD backplane inactive for phase B 6439 * 0b1..LCD segment on or LCD backplane active for phase B 6440 */ 6441 #define LCD_WF8B_BPBLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD15_SHIFT)) & LCD_WF8B_BPBLCD15_MASK) 6442 6443 #define LCD_WF8B_BPCLCD15_MASK (0x4U) 6444 #define LCD_WF8B_BPCLCD15_SHIFT (2U) 6445 /*! BPCLCD15 6446 * 0b0..LCD segment off or LCD backplane inactive for phase C 6447 * 0b1..LCD segment on or LCD backplane active for phase C 6448 */ 6449 #define LCD_WF8B_BPCLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD15_SHIFT)) & LCD_WF8B_BPCLCD15_MASK) 6450 6451 #define LCD_WF8B_BPDLCD15_MASK (0x8U) 6452 #define LCD_WF8B_BPDLCD15_SHIFT (3U) 6453 /*! BPDLCD15 6454 * 0b0..LCD segment off or LCD backplane inactive for phase D 6455 * 0b1..LCD segment on or LCD backplane active for phase D 6456 */ 6457 #define LCD_WF8B_BPDLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD15_SHIFT)) & LCD_WF8B_BPDLCD15_MASK) 6458 6459 #define LCD_WF8B_BPELCD15_MASK (0x10U) 6460 #define LCD_WF8B_BPELCD15_SHIFT (4U) 6461 /*! BPELCD15 6462 * 0b0..LCD segment off or LCD backplane inactive for phase E 6463 * 0b1..LCD segment on or LCD backplane active for phase E 6464 */ 6465 #define LCD_WF8B_BPELCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD15_SHIFT)) & LCD_WF8B_BPELCD15_MASK) 6466 6467 #define LCD_WF8B_BPFLCD15_MASK (0x20U) 6468 #define LCD_WF8B_BPFLCD15_SHIFT (5U) 6469 /*! BPFLCD15 6470 * 0b0..LCD segment off or LCD backplane inactive for phase F 6471 * 0b1..LCD segment on or LCD backplane active for phase F 6472 */ 6473 #define LCD_WF8B_BPFLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD15_SHIFT)) & LCD_WF8B_BPFLCD15_MASK) 6474 6475 #define LCD_WF8B_BPGLCD15_MASK (0x40U) 6476 #define LCD_WF8B_BPGLCD15_SHIFT (6U) 6477 /*! BPGLCD15 6478 * 0b0..LCD segment off or LCD backplane inactive for phase G 6479 * 0b1..LCD segment on or LCD backplane active for phase G 6480 */ 6481 #define LCD_WF8B_BPGLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD15_SHIFT)) & LCD_WF8B_BPGLCD15_MASK) 6482 6483 #define LCD_WF8B_BPHLCD15_MASK (0x80U) 6484 #define LCD_WF8B_BPHLCD15_SHIFT (7U) 6485 /*! BPHLCD15 6486 * 0b0..LCD segment off or LCD backplane inactive for phase H 6487 * 0b1..LCD segment on or LCD backplane active for phase H 6488 */ 6489 #define LCD_WF8B_BPHLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD15_SHIFT)) & LCD_WF8B_BPHLCD15_MASK) 6490 6491 #define LCD_WF8B_BPALCD16_MASK (0x1U) 6492 #define LCD_WF8B_BPALCD16_SHIFT (0U) 6493 /*! BPALCD16 6494 * 0b0..LCD segment off or LCD backplane inactive for phase A 6495 * 0b1..LCD segment on or LCD backplane active for phase A 6496 */ 6497 #define LCD_WF8B_BPALCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD16_SHIFT)) & LCD_WF8B_BPALCD16_MASK) 6498 6499 #define LCD_WF8B_BPBLCD16_MASK (0x2U) 6500 #define LCD_WF8B_BPBLCD16_SHIFT (1U) 6501 /*! BPBLCD16 6502 * 0b0..LCD segment off or LCD backplane inactive for phase B 6503 * 0b1..LCD segment on or LCD backplane active for phase B 6504 */ 6505 #define LCD_WF8B_BPBLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD16_SHIFT)) & LCD_WF8B_BPBLCD16_MASK) 6506 6507 #define LCD_WF8B_BPCLCD16_MASK (0x4U) 6508 #define LCD_WF8B_BPCLCD16_SHIFT (2U) 6509 /*! BPCLCD16 6510 * 0b0..LCD segment off or LCD backplane inactive for phase C 6511 * 0b1..LCD segment on or LCD backplane active for phase C 6512 */ 6513 #define LCD_WF8B_BPCLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD16_SHIFT)) & LCD_WF8B_BPCLCD16_MASK) 6514 6515 #define LCD_WF8B_BPDLCD16_MASK (0x8U) 6516 #define LCD_WF8B_BPDLCD16_SHIFT (3U) 6517 /*! BPDLCD16 6518 * 0b0..LCD segment off or LCD backplane inactive for phase D 6519 * 0b1..LCD segment on or LCD backplane active for phase D 6520 */ 6521 #define LCD_WF8B_BPDLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD16_SHIFT)) & LCD_WF8B_BPDLCD16_MASK) 6522 6523 #define LCD_WF8B_BPELCD16_MASK (0x10U) 6524 #define LCD_WF8B_BPELCD16_SHIFT (4U) 6525 /*! BPELCD16 6526 * 0b0..LCD segment off or LCD backplane inactive for phase E 6527 * 0b1..LCD segment on or LCD backplane active for phase E 6528 */ 6529 #define LCD_WF8B_BPELCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD16_SHIFT)) & LCD_WF8B_BPELCD16_MASK) 6530 6531 #define LCD_WF8B_BPFLCD16_MASK (0x20U) 6532 #define LCD_WF8B_BPFLCD16_SHIFT (5U) 6533 /*! BPFLCD16 6534 * 0b0..LCD segment off or LCD backplane inactive for phase F 6535 * 0b1..LCD segment on or LCD backplane active for phase F 6536 */ 6537 #define LCD_WF8B_BPFLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD16_SHIFT)) & LCD_WF8B_BPFLCD16_MASK) 6538 6539 #define LCD_WF8B_BPGLCD16_MASK (0x40U) 6540 #define LCD_WF8B_BPGLCD16_SHIFT (6U) 6541 /*! BPGLCD16 6542 * 0b0..LCD segment off or LCD backplane inactive for phase G 6543 * 0b1..LCD segment on or LCD backplane active for phase G 6544 */ 6545 #define LCD_WF8B_BPGLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD16_SHIFT)) & LCD_WF8B_BPGLCD16_MASK) 6546 6547 #define LCD_WF8B_BPHLCD16_MASK (0x80U) 6548 #define LCD_WF8B_BPHLCD16_SHIFT (7U) 6549 /*! BPHLCD16 6550 * 0b0..LCD segment off or LCD backplane inactive for phase H 6551 * 0b1..LCD segment on or LCD backplane active for phase H 6552 */ 6553 #define LCD_WF8B_BPHLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD16_SHIFT)) & LCD_WF8B_BPHLCD16_MASK) 6554 6555 #define LCD_WF8B_BPALCD17_MASK (0x1U) 6556 #define LCD_WF8B_BPALCD17_SHIFT (0U) 6557 /*! BPALCD17 6558 * 0b0..LCD segment off or LCD backplane inactive for phase A 6559 * 0b1..LCD segment on or LCD backplane active for phase A 6560 */ 6561 #define LCD_WF8B_BPALCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD17_SHIFT)) & LCD_WF8B_BPALCD17_MASK) 6562 6563 #define LCD_WF8B_BPBLCD17_MASK (0x2U) 6564 #define LCD_WF8B_BPBLCD17_SHIFT (1U) 6565 /*! BPBLCD17 6566 * 0b0..LCD segment off or LCD backplane inactive for phase B 6567 * 0b1..LCD segment on or LCD backplane active for phase B 6568 */ 6569 #define LCD_WF8B_BPBLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD17_SHIFT)) & LCD_WF8B_BPBLCD17_MASK) 6570 6571 #define LCD_WF8B_BPCLCD17_MASK (0x4U) 6572 #define LCD_WF8B_BPCLCD17_SHIFT (2U) 6573 /*! BPCLCD17 6574 * 0b0..LCD segment off or LCD backplane inactive for phase C 6575 * 0b1..LCD segment on or LCD backplane active for phase C 6576 */ 6577 #define LCD_WF8B_BPCLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD17_SHIFT)) & LCD_WF8B_BPCLCD17_MASK) 6578 6579 #define LCD_WF8B_BPDLCD17_MASK (0x8U) 6580 #define LCD_WF8B_BPDLCD17_SHIFT (3U) 6581 /*! BPDLCD17 6582 * 0b0..LCD segment off or LCD backplane inactive for phase D 6583 * 0b1..LCD segment on or LCD backplane active for phase D 6584 */ 6585 #define LCD_WF8B_BPDLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD17_SHIFT)) & LCD_WF8B_BPDLCD17_MASK) 6586 6587 #define LCD_WF8B_BPELCD17_MASK (0x10U) 6588 #define LCD_WF8B_BPELCD17_SHIFT (4U) 6589 /*! BPELCD17 6590 * 0b0..LCD segment off or LCD backplane inactive for phase E 6591 * 0b1..LCD segment on or LCD backplane active for phase E 6592 */ 6593 #define LCD_WF8B_BPELCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD17_SHIFT)) & LCD_WF8B_BPELCD17_MASK) 6594 6595 #define LCD_WF8B_BPFLCD17_MASK (0x20U) 6596 #define LCD_WF8B_BPFLCD17_SHIFT (5U) 6597 /*! BPFLCD17 6598 * 0b0..LCD segment off or LCD backplane inactive for phase F 6599 * 0b1..LCD segment on or LCD backplane active for phase F 6600 */ 6601 #define LCD_WF8B_BPFLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD17_SHIFT)) & LCD_WF8B_BPFLCD17_MASK) 6602 6603 #define LCD_WF8B_BPGLCD17_MASK (0x40U) 6604 #define LCD_WF8B_BPGLCD17_SHIFT (6U) 6605 /*! BPGLCD17 6606 * 0b0..LCD segment off or LCD backplane inactive for phase G 6607 * 0b1..LCD segment on or LCD backplane active for phase G 6608 */ 6609 #define LCD_WF8B_BPGLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD17_SHIFT)) & LCD_WF8B_BPGLCD17_MASK) 6610 6611 #define LCD_WF8B_BPHLCD17_MASK (0x80U) 6612 #define LCD_WF8B_BPHLCD17_SHIFT (7U) 6613 /*! BPHLCD17 6614 * 0b0..LCD segment off or LCD backplane inactive for phase H 6615 * 0b1..LCD segment on or LCD backplane active for phase H 6616 */ 6617 #define LCD_WF8B_BPHLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD17_SHIFT)) & LCD_WF8B_BPHLCD17_MASK) 6618 6619 #define LCD_WF8B_BPALCD18_MASK (0x1U) 6620 #define LCD_WF8B_BPALCD18_SHIFT (0U) 6621 /*! BPALCD18 6622 * 0b0..LCD segment off or LCD backplane inactive for phase A 6623 * 0b1..LCD segment on or LCD backplane active for phase A 6624 */ 6625 #define LCD_WF8B_BPALCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD18_SHIFT)) & LCD_WF8B_BPALCD18_MASK) 6626 6627 #define LCD_WF8B_BPBLCD18_MASK (0x2U) 6628 #define LCD_WF8B_BPBLCD18_SHIFT (1U) 6629 /*! BPBLCD18 6630 * 0b0..LCD segment off or LCD backplane inactive for phase B 6631 * 0b1..LCD segment on or LCD backplane active for phase B 6632 */ 6633 #define LCD_WF8B_BPBLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD18_SHIFT)) & LCD_WF8B_BPBLCD18_MASK) 6634 6635 #define LCD_WF8B_BPCLCD18_MASK (0x4U) 6636 #define LCD_WF8B_BPCLCD18_SHIFT (2U) 6637 /*! BPCLCD18 6638 * 0b0..LCD segment off or LCD backplane inactive for phase C 6639 * 0b1..LCD segment on or LCD backplane active for phase C 6640 */ 6641 #define LCD_WF8B_BPCLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD18_SHIFT)) & LCD_WF8B_BPCLCD18_MASK) 6642 6643 #define LCD_WF8B_BPDLCD18_MASK (0x8U) 6644 #define LCD_WF8B_BPDLCD18_SHIFT (3U) 6645 /*! BPDLCD18 6646 * 0b0..LCD segment off or LCD backplane inactive for phase D 6647 * 0b1..LCD segment on or LCD backplane active for phase D 6648 */ 6649 #define LCD_WF8B_BPDLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD18_SHIFT)) & LCD_WF8B_BPDLCD18_MASK) 6650 6651 #define LCD_WF8B_BPELCD18_MASK (0x10U) 6652 #define LCD_WF8B_BPELCD18_SHIFT (4U) 6653 /*! BPELCD18 6654 * 0b0..LCD segment off or LCD backplane inactive for phase E 6655 * 0b1..LCD segment on or LCD backplane active for phase E 6656 */ 6657 #define LCD_WF8B_BPELCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD18_SHIFT)) & LCD_WF8B_BPELCD18_MASK) 6658 6659 #define LCD_WF8B_BPFLCD18_MASK (0x20U) 6660 #define LCD_WF8B_BPFLCD18_SHIFT (5U) 6661 /*! BPFLCD18 6662 * 0b0..LCD segment off or LCD backplane inactive for phase F 6663 * 0b1..LCD segment on or LCD backplane active for phase F 6664 */ 6665 #define LCD_WF8B_BPFLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD18_SHIFT)) & LCD_WF8B_BPFLCD18_MASK) 6666 6667 #define LCD_WF8B_BPGLCD18_MASK (0x40U) 6668 #define LCD_WF8B_BPGLCD18_SHIFT (6U) 6669 /*! BPGLCD18 6670 * 0b0..LCD segment off or LCD backplane inactive for phase G 6671 * 0b1..LCD segment on or LCD backplane active for phase G 6672 */ 6673 #define LCD_WF8B_BPGLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD18_SHIFT)) & LCD_WF8B_BPGLCD18_MASK) 6674 6675 #define LCD_WF8B_BPHLCD18_MASK (0x80U) 6676 #define LCD_WF8B_BPHLCD18_SHIFT (7U) 6677 /*! BPHLCD18 6678 * 0b0..LCD segment off or LCD backplane inactive for phase H 6679 * 0b1..LCD segment on or LCD backplane active for phase H 6680 */ 6681 #define LCD_WF8B_BPHLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD18_SHIFT)) & LCD_WF8B_BPHLCD18_MASK) 6682 6683 #define LCD_WF8B_BPALCD19_MASK (0x1U) 6684 #define LCD_WF8B_BPALCD19_SHIFT (0U) 6685 /*! BPALCD19 6686 * 0b0..LCD segment off or LCD backplane inactive for phase A 6687 * 0b1..LCD segment on or LCD backplane active for phase A 6688 */ 6689 #define LCD_WF8B_BPALCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD19_SHIFT)) & LCD_WF8B_BPALCD19_MASK) 6690 6691 #define LCD_WF8B_BPBLCD19_MASK (0x2U) 6692 #define LCD_WF8B_BPBLCD19_SHIFT (1U) 6693 /*! BPBLCD19 6694 * 0b0..LCD segment off or LCD backplane inactive for phase B 6695 * 0b1..LCD segment on or LCD backplane active for phase B 6696 */ 6697 #define LCD_WF8B_BPBLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD19_SHIFT)) & LCD_WF8B_BPBLCD19_MASK) 6698 6699 #define LCD_WF8B_BPCLCD19_MASK (0x4U) 6700 #define LCD_WF8B_BPCLCD19_SHIFT (2U) 6701 /*! BPCLCD19 6702 * 0b0..LCD segment off or LCD backplane inactive for phase C 6703 * 0b1..LCD segment on or LCD backplane active for phase C 6704 */ 6705 #define LCD_WF8B_BPCLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD19_SHIFT)) & LCD_WF8B_BPCLCD19_MASK) 6706 6707 #define LCD_WF8B_BPDLCD19_MASK (0x8U) 6708 #define LCD_WF8B_BPDLCD19_SHIFT (3U) 6709 /*! BPDLCD19 6710 * 0b0..LCD segment off or LCD backplane inactive for phase D 6711 * 0b1..LCD segment on or LCD backplane active for phase D 6712 */ 6713 #define LCD_WF8B_BPDLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD19_SHIFT)) & LCD_WF8B_BPDLCD19_MASK) 6714 6715 #define LCD_WF8B_BPELCD19_MASK (0x10U) 6716 #define LCD_WF8B_BPELCD19_SHIFT (4U) 6717 /*! BPELCD19 6718 * 0b0..LCD segment off or LCD backplane inactive for phase E 6719 * 0b1..LCD segment on or LCD backplane active for phase E 6720 */ 6721 #define LCD_WF8B_BPELCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD19_SHIFT)) & LCD_WF8B_BPELCD19_MASK) 6722 6723 #define LCD_WF8B_BPFLCD19_MASK (0x20U) 6724 #define LCD_WF8B_BPFLCD19_SHIFT (5U) 6725 /*! BPFLCD19 6726 * 0b0..LCD segment off or LCD backplane inactive for phase F 6727 * 0b1..LCD segment on or LCD backplane active for phase F 6728 */ 6729 #define LCD_WF8B_BPFLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD19_SHIFT)) & LCD_WF8B_BPFLCD19_MASK) 6730 6731 #define LCD_WF8B_BPGLCD19_MASK (0x40U) 6732 #define LCD_WF8B_BPGLCD19_SHIFT (6U) 6733 /*! BPGLCD19 6734 * 0b0..LCD segment off or LCD backplane inactive for phase G 6735 * 0b1..LCD segment on or LCD backplane active for phase G 6736 */ 6737 #define LCD_WF8B_BPGLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD19_SHIFT)) & LCD_WF8B_BPGLCD19_MASK) 6738 6739 #define LCD_WF8B_BPHLCD19_MASK (0x80U) 6740 #define LCD_WF8B_BPHLCD19_SHIFT (7U) 6741 /*! BPHLCD19 6742 * 0b0..LCD segment off or LCD backplane inactive for phase H 6743 * 0b1..LCD segment on or LCD backplane active for phase H 6744 */ 6745 #define LCD_WF8B_BPHLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD19_SHIFT)) & LCD_WF8B_BPHLCD19_MASK) 6746 6747 #define LCD_WF8B_BPALCD20_MASK (0x1U) 6748 #define LCD_WF8B_BPALCD20_SHIFT (0U) 6749 /*! BPALCD20 6750 * 0b0..LCD segment off or LCD backplane inactive for phase A 6751 * 0b1..LCD segment on or LCD backplane active for phase A 6752 */ 6753 #define LCD_WF8B_BPALCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD20_SHIFT)) & LCD_WF8B_BPALCD20_MASK) 6754 6755 #define LCD_WF8B_BPBLCD20_MASK (0x2U) 6756 #define LCD_WF8B_BPBLCD20_SHIFT (1U) 6757 /*! BPBLCD20 6758 * 0b0..LCD segment off or LCD backplane inactive for phase B 6759 * 0b1..LCD segment on or LCD backplane active for phase B 6760 */ 6761 #define LCD_WF8B_BPBLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD20_SHIFT)) & LCD_WF8B_BPBLCD20_MASK) 6762 6763 #define LCD_WF8B_BPCLCD20_MASK (0x4U) 6764 #define LCD_WF8B_BPCLCD20_SHIFT (2U) 6765 /*! BPCLCD20 6766 * 0b0..LCD segment off or LCD backplane inactive for phase C 6767 * 0b1..LCD segment on or LCD backplane active for phase C 6768 */ 6769 #define LCD_WF8B_BPCLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD20_SHIFT)) & LCD_WF8B_BPCLCD20_MASK) 6770 6771 #define LCD_WF8B_BPDLCD20_MASK (0x8U) 6772 #define LCD_WF8B_BPDLCD20_SHIFT (3U) 6773 /*! BPDLCD20 6774 * 0b0..LCD segment off or LCD backplane inactive for phase D 6775 * 0b1..LCD segment on or LCD backplane active for phase D 6776 */ 6777 #define LCD_WF8B_BPDLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD20_SHIFT)) & LCD_WF8B_BPDLCD20_MASK) 6778 6779 #define LCD_WF8B_BPELCD20_MASK (0x10U) 6780 #define LCD_WF8B_BPELCD20_SHIFT (4U) 6781 /*! BPELCD20 6782 * 0b0..LCD segment off or LCD backplane inactive for phase E 6783 * 0b1..LCD segment on or LCD backplane active for phase E 6784 */ 6785 #define LCD_WF8B_BPELCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD20_SHIFT)) & LCD_WF8B_BPELCD20_MASK) 6786 6787 #define LCD_WF8B_BPFLCD20_MASK (0x20U) 6788 #define LCD_WF8B_BPFLCD20_SHIFT (5U) 6789 /*! BPFLCD20 6790 * 0b0..LCD segment off or LCD backplane inactive for phase F 6791 * 0b1..LCD segment on or LCD backplane active for phase F 6792 */ 6793 #define LCD_WF8B_BPFLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD20_SHIFT)) & LCD_WF8B_BPFLCD20_MASK) 6794 6795 #define LCD_WF8B_BPGLCD20_MASK (0x40U) 6796 #define LCD_WF8B_BPGLCD20_SHIFT (6U) 6797 /*! BPGLCD20 6798 * 0b0..LCD segment off or LCD backplane inactive for phase G 6799 * 0b1..LCD segment on or LCD backplane active for phase G 6800 */ 6801 #define LCD_WF8B_BPGLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD20_SHIFT)) & LCD_WF8B_BPGLCD20_MASK) 6802 6803 #define LCD_WF8B_BPHLCD20_MASK (0x80U) 6804 #define LCD_WF8B_BPHLCD20_SHIFT (7U) 6805 /*! BPHLCD20 6806 * 0b0..LCD segment off or LCD backplane inactive for phase H 6807 * 0b1..LCD segment on or LCD backplane active for phase H 6808 */ 6809 #define LCD_WF8B_BPHLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD20_SHIFT)) & LCD_WF8B_BPHLCD20_MASK) 6810 6811 #define LCD_WF8B_BPALCD21_MASK (0x1U) 6812 #define LCD_WF8B_BPALCD21_SHIFT (0U) 6813 /*! BPALCD21 6814 * 0b0..LCD segment off or LCD backplane inactive for phase A 6815 * 0b1..LCD segment on or LCD backplane active for phase A 6816 */ 6817 #define LCD_WF8B_BPALCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD21_SHIFT)) & LCD_WF8B_BPALCD21_MASK) 6818 6819 #define LCD_WF8B_BPBLCD21_MASK (0x2U) 6820 #define LCD_WF8B_BPBLCD21_SHIFT (1U) 6821 /*! BPBLCD21 6822 * 0b0..LCD segment off or LCD backplane inactive for phase B 6823 * 0b1..LCD segment on or LCD backplane active for phase B 6824 */ 6825 #define LCD_WF8B_BPBLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD21_SHIFT)) & LCD_WF8B_BPBLCD21_MASK) 6826 6827 #define LCD_WF8B_BPCLCD21_MASK (0x4U) 6828 #define LCD_WF8B_BPCLCD21_SHIFT (2U) 6829 /*! BPCLCD21 6830 * 0b0..LCD segment off or LCD backplane inactive for phase C 6831 * 0b1..LCD segment on or LCD backplane active for phase C 6832 */ 6833 #define LCD_WF8B_BPCLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD21_SHIFT)) & LCD_WF8B_BPCLCD21_MASK) 6834 6835 #define LCD_WF8B_BPDLCD21_MASK (0x8U) 6836 #define LCD_WF8B_BPDLCD21_SHIFT (3U) 6837 /*! BPDLCD21 6838 * 0b0..LCD segment off or LCD backplane inactive for phase D 6839 * 0b1..LCD segment on or LCD backplane active for phase D 6840 */ 6841 #define LCD_WF8B_BPDLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD21_SHIFT)) & LCD_WF8B_BPDLCD21_MASK) 6842 6843 #define LCD_WF8B_BPELCD21_MASK (0x10U) 6844 #define LCD_WF8B_BPELCD21_SHIFT (4U) 6845 /*! BPELCD21 6846 * 0b0..LCD segment off or LCD backplane inactive for phase E 6847 * 0b1..LCD segment on or LCD backplane active for phase E 6848 */ 6849 #define LCD_WF8B_BPELCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD21_SHIFT)) & LCD_WF8B_BPELCD21_MASK) 6850 6851 #define LCD_WF8B_BPFLCD21_MASK (0x20U) 6852 #define LCD_WF8B_BPFLCD21_SHIFT (5U) 6853 /*! BPFLCD21 6854 * 0b0..LCD segment off or LCD backplane inactive for phase F 6855 * 0b1..LCD segment on or LCD backplane active for phase F 6856 */ 6857 #define LCD_WF8B_BPFLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD21_SHIFT)) & LCD_WF8B_BPFLCD21_MASK) 6858 6859 #define LCD_WF8B_BPGLCD21_MASK (0x40U) 6860 #define LCD_WF8B_BPGLCD21_SHIFT (6U) 6861 /*! BPGLCD21 6862 * 0b0..LCD segment off or LCD backplane inactive for phase G 6863 * 0b1..LCD segment on or LCD backplane active for phase G 6864 */ 6865 #define LCD_WF8B_BPGLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD21_SHIFT)) & LCD_WF8B_BPGLCD21_MASK) 6866 6867 #define LCD_WF8B_BPHLCD21_MASK (0x80U) 6868 #define LCD_WF8B_BPHLCD21_SHIFT (7U) 6869 /*! BPHLCD21 6870 * 0b0..LCD segment off or LCD backplane inactive for phase H 6871 * 0b1..LCD segment on or LCD backplane active for phase H 6872 */ 6873 #define LCD_WF8B_BPHLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD21_SHIFT)) & LCD_WF8B_BPHLCD21_MASK) 6874 6875 #define LCD_WF8B_BPALCD22_MASK (0x1U) 6876 #define LCD_WF8B_BPALCD22_SHIFT (0U) 6877 /*! BPALCD22 6878 * 0b0..LCD segment off or LCD backplane inactive for phase A 6879 * 0b1..LCD segment on or LCD backplane active for phase A 6880 */ 6881 #define LCD_WF8B_BPALCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD22_SHIFT)) & LCD_WF8B_BPALCD22_MASK) 6882 6883 #define LCD_WF8B_BPBLCD22_MASK (0x2U) 6884 #define LCD_WF8B_BPBLCD22_SHIFT (1U) 6885 /*! BPBLCD22 6886 * 0b0..LCD segment off or LCD backplane inactive for phase B 6887 * 0b1..LCD segment on or LCD backplane active for phase B 6888 */ 6889 #define LCD_WF8B_BPBLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD22_SHIFT)) & LCD_WF8B_BPBLCD22_MASK) 6890 6891 #define LCD_WF8B_BPCLCD22_MASK (0x4U) 6892 #define LCD_WF8B_BPCLCD22_SHIFT (2U) 6893 /*! BPCLCD22 6894 * 0b0..LCD segment off or LCD backplane inactive for phase C 6895 * 0b1..LCD segment on or LCD backplane active for phase C 6896 */ 6897 #define LCD_WF8B_BPCLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD22_SHIFT)) & LCD_WF8B_BPCLCD22_MASK) 6898 6899 #define LCD_WF8B_BPDLCD22_MASK (0x8U) 6900 #define LCD_WF8B_BPDLCD22_SHIFT (3U) 6901 /*! BPDLCD22 6902 * 0b0..LCD segment off or LCD backplane inactive for phase D 6903 * 0b1..LCD segment on or LCD backplane active for phase D 6904 */ 6905 #define LCD_WF8B_BPDLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD22_SHIFT)) & LCD_WF8B_BPDLCD22_MASK) 6906 6907 #define LCD_WF8B_BPELCD22_MASK (0x10U) 6908 #define LCD_WF8B_BPELCD22_SHIFT (4U) 6909 /*! BPELCD22 6910 * 0b0..LCD segment off or LCD backplane inactive for phase E 6911 * 0b1..LCD segment on or LCD backplane active for phase E 6912 */ 6913 #define LCD_WF8B_BPELCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD22_SHIFT)) & LCD_WF8B_BPELCD22_MASK) 6914 6915 #define LCD_WF8B_BPFLCD22_MASK (0x20U) 6916 #define LCD_WF8B_BPFLCD22_SHIFT (5U) 6917 /*! BPFLCD22 6918 * 0b0..LCD segment off or LCD backplane inactive for phase F 6919 * 0b1..LCD segment on or LCD backplane active for phase F 6920 */ 6921 #define LCD_WF8B_BPFLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD22_SHIFT)) & LCD_WF8B_BPFLCD22_MASK) 6922 6923 #define LCD_WF8B_BPGLCD22_MASK (0x40U) 6924 #define LCD_WF8B_BPGLCD22_SHIFT (6U) 6925 /*! BPGLCD22 6926 * 0b0..LCD segment off or LCD backplane inactive for phase G 6927 * 0b1..LCD segment on or LCD backplane active for phase G 6928 */ 6929 #define LCD_WF8B_BPGLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD22_SHIFT)) & LCD_WF8B_BPGLCD22_MASK) 6930 6931 #define LCD_WF8B_BPHLCD22_MASK (0x80U) 6932 #define LCD_WF8B_BPHLCD22_SHIFT (7U) 6933 /*! BPHLCD22 6934 * 0b0..LCD segment off or LCD backplane inactive for phase H 6935 * 0b1..LCD segment on or LCD backplane active for phase H 6936 */ 6937 #define LCD_WF8B_BPHLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD22_SHIFT)) & LCD_WF8B_BPHLCD22_MASK) 6938 6939 #define LCD_WF8B_BPALCD23_MASK (0x1U) 6940 #define LCD_WF8B_BPALCD23_SHIFT (0U) 6941 /*! BPALCD23 6942 * 0b0..LCD segment off or LCD backplane inactive for phase A 6943 * 0b1..LCD segment on or LCD backplane active for phase A 6944 */ 6945 #define LCD_WF8B_BPALCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD23_SHIFT)) & LCD_WF8B_BPALCD23_MASK) 6946 6947 #define LCD_WF8B_BPBLCD23_MASK (0x2U) 6948 #define LCD_WF8B_BPBLCD23_SHIFT (1U) 6949 /*! BPBLCD23 6950 * 0b0..LCD segment off or LCD backplane inactive for phase B 6951 * 0b1..LCD segment on or LCD backplane active for phase B 6952 */ 6953 #define LCD_WF8B_BPBLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD23_SHIFT)) & LCD_WF8B_BPBLCD23_MASK) 6954 6955 #define LCD_WF8B_BPCLCD23_MASK (0x4U) 6956 #define LCD_WF8B_BPCLCD23_SHIFT (2U) 6957 /*! BPCLCD23 6958 * 0b0..LCD segment off or LCD backplane inactive for phase C 6959 * 0b1..LCD segment on or LCD backplane active for phase C 6960 */ 6961 #define LCD_WF8B_BPCLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD23_SHIFT)) & LCD_WF8B_BPCLCD23_MASK) 6962 6963 #define LCD_WF8B_BPDLCD23_MASK (0x8U) 6964 #define LCD_WF8B_BPDLCD23_SHIFT (3U) 6965 /*! BPDLCD23 6966 * 0b0..LCD segment off or LCD backplane inactive for phase D 6967 * 0b1..LCD segment on or LCD backplane active for phase D 6968 */ 6969 #define LCD_WF8B_BPDLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD23_SHIFT)) & LCD_WF8B_BPDLCD23_MASK) 6970 6971 #define LCD_WF8B_BPELCD23_MASK (0x10U) 6972 #define LCD_WF8B_BPELCD23_SHIFT (4U) 6973 /*! BPELCD23 6974 * 0b0..LCD segment off or LCD backplane inactive for phase E 6975 * 0b1..LCD segment on or LCD backplane active for phase E 6976 */ 6977 #define LCD_WF8B_BPELCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD23_SHIFT)) & LCD_WF8B_BPELCD23_MASK) 6978 6979 #define LCD_WF8B_BPFLCD23_MASK (0x20U) 6980 #define LCD_WF8B_BPFLCD23_SHIFT (5U) 6981 /*! BPFLCD23 6982 * 0b0..LCD segment off or LCD backplane inactive for phase F 6983 * 0b1..LCD segment on or LCD backplane active for phase F 6984 */ 6985 #define LCD_WF8B_BPFLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD23_SHIFT)) & LCD_WF8B_BPFLCD23_MASK) 6986 6987 #define LCD_WF8B_BPGLCD23_MASK (0x40U) 6988 #define LCD_WF8B_BPGLCD23_SHIFT (6U) 6989 /*! BPGLCD23 6990 * 0b0..LCD segment off or LCD backplane inactive for phase G 6991 * 0b1..LCD segment on or LCD backplane active for phase G 6992 */ 6993 #define LCD_WF8B_BPGLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD23_SHIFT)) & LCD_WF8B_BPGLCD23_MASK) 6994 6995 #define LCD_WF8B_BPHLCD23_MASK (0x80U) 6996 #define LCD_WF8B_BPHLCD23_SHIFT (7U) 6997 /*! BPHLCD23 6998 * 0b0..LCD segment off or LCD backplane inactive for phase H 6999 * 0b1..LCD segment on or LCD backplane active for phase H 7000 */ 7001 #define LCD_WF8B_BPHLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD23_SHIFT)) & LCD_WF8B_BPHLCD23_MASK) 7002 7003 #define LCD_WF8B_BPALCD24_MASK (0x1U) 7004 #define LCD_WF8B_BPALCD24_SHIFT (0U) 7005 /*! BPALCD24 7006 * 0b0..LCD segment off or LCD backplane inactive for phase A 7007 * 0b1..LCD segment on or LCD backplane active for phase A 7008 */ 7009 #define LCD_WF8B_BPALCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD24_SHIFT)) & LCD_WF8B_BPALCD24_MASK) 7010 7011 #define LCD_WF8B_BPBLCD24_MASK (0x2U) 7012 #define LCD_WF8B_BPBLCD24_SHIFT (1U) 7013 /*! BPBLCD24 7014 * 0b0..LCD segment off or LCD backplane inactive for phase B 7015 * 0b1..LCD segment on or LCD backplane active for phase B 7016 */ 7017 #define LCD_WF8B_BPBLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD24_SHIFT)) & LCD_WF8B_BPBLCD24_MASK) 7018 7019 #define LCD_WF8B_BPCLCD24_MASK (0x4U) 7020 #define LCD_WF8B_BPCLCD24_SHIFT (2U) 7021 /*! BPCLCD24 7022 * 0b0..LCD segment off or LCD backplane inactive for phase C 7023 * 0b1..LCD segment on or LCD backplane active for phase C 7024 */ 7025 #define LCD_WF8B_BPCLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD24_SHIFT)) & LCD_WF8B_BPCLCD24_MASK) 7026 7027 #define LCD_WF8B_BPDLCD24_MASK (0x8U) 7028 #define LCD_WF8B_BPDLCD24_SHIFT (3U) 7029 /*! BPDLCD24 7030 * 0b0..LCD segment off or LCD backplane inactive for phase D 7031 * 0b1..LCD segment on or LCD backplane active for phase D 7032 */ 7033 #define LCD_WF8B_BPDLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD24_SHIFT)) & LCD_WF8B_BPDLCD24_MASK) 7034 7035 #define LCD_WF8B_BPELCD24_MASK (0x10U) 7036 #define LCD_WF8B_BPELCD24_SHIFT (4U) 7037 /*! BPELCD24 7038 * 0b0..LCD segment off or LCD backplane inactive for phase E 7039 * 0b1..LCD segment on or LCD backplane active for phase E 7040 */ 7041 #define LCD_WF8B_BPELCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD24_SHIFT)) & LCD_WF8B_BPELCD24_MASK) 7042 7043 #define LCD_WF8B_BPFLCD24_MASK (0x20U) 7044 #define LCD_WF8B_BPFLCD24_SHIFT (5U) 7045 /*! BPFLCD24 7046 * 0b0..LCD segment off or LCD backplane inactive for phase F 7047 * 0b1..LCD segment on or LCD backplane active for phase F 7048 */ 7049 #define LCD_WF8B_BPFLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD24_SHIFT)) & LCD_WF8B_BPFLCD24_MASK) 7050 7051 #define LCD_WF8B_BPGLCD24_MASK (0x40U) 7052 #define LCD_WF8B_BPGLCD24_SHIFT (6U) 7053 /*! BPGLCD24 7054 * 0b0..LCD segment off or LCD backplane inactive for phase G 7055 * 0b1..LCD segment on or LCD backplane active for phase G 7056 */ 7057 #define LCD_WF8B_BPGLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD24_SHIFT)) & LCD_WF8B_BPGLCD24_MASK) 7058 7059 #define LCD_WF8B_BPHLCD24_MASK (0x80U) 7060 #define LCD_WF8B_BPHLCD24_SHIFT (7U) 7061 /*! BPHLCD24 7062 * 0b0..LCD segment off or LCD backplane inactive for phase H 7063 * 0b1..LCD segment on or LCD backplane active for phase H 7064 */ 7065 #define LCD_WF8B_BPHLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD24_SHIFT)) & LCD_WF8B_BPHLCD24_MASK) 7066 7067 #define LCD_WF8B_BPALCD25_MASK (0x1U) 7068 #define LCD_WF8B_BPALCD25_SHIFT (0U) 7069 /*! BPALCD25 7070 * 0b0..LCD segment off or LCD backplane inactive for phase A 7071 * 0b1..LCD segment on or LCD backplane active for phase A 7072 */ 7073 #define LCD_WF8B_BPALCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD25_SHIFT)) & LCD_WF8B_BPALCD25_MASK) 7074 7075 #define LCD_WF8B_BPBLCD25_MASK (0x2U) 7076 #define LCD_WF8B_BPBLCD25_SHIFT (1U) 7077 /*! BPBLCD25 7078 * 0b0..LCD segment off or LCD backplane inactive for phase B 7079 * 0b1..LCD segment on or LCD backplane active for phase B 7080 */ 7081 #define LCD_WF8B_BPBLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD25_SHIFT)) & LCD_WF8B_BPBLCD25_MASK) 7082 7083 #define LCD_WF8B_BPCLCD25_MASK (0x4U) 7084 #define LCD_WF8B_BPCLCD25_SHIFT (2U) 7085 /*! BPCLCD25 7086 * 0b0..LCD segment off or LCD backplane inactive for phase C 7087 * 0b1..LCD segment on or LCD backplane active for phase C 7088 */ 7089 #define LCD_WF8B_BPCLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD25_SHIFT)) & LCD_WF8B_BPCLCD25_MASK) 7090 7091 #define LCD_WF8B_BPDLCD25_MASK (0x8U) 7092 #define LCD_WF8B_BPDLCD25_SHIFT (3U) 7093 /*! BPDLCD25 7094 * 0b0..LCD segment off or LCD backplane inactive for phase D 7095 * 0b1..LCD segment on or LCD backplane active for phase D 7096 */ 7097 #define LCD_WF8B_BPDLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD25_SHIFT)) & LCD_WF8B_BPDLCD25_MASK) 7098 7099 #define LCD_WF8B_BPELCD25_MASK (0x10U) 7100 #define LCD_WF8B_BPELCD25_SHIFT (4U) 7101 /*! BPELCD25 7102 * 0b0..LCD segment off or LCD backplane inactive for phase E 7103 * 0b1..LCD segment on or LCD backplane active for phase E 7104 */ 7105 #define LCD_WF8B_BPELCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD25_SHIFT)) & LCD_WF8B_BPELCD25_MASK) 7106 7107 #define LCD_WF8B_BPFLCD25_MASK (0x20U) 7108 #define LCD_WF8B_BPFLCD25_SHIFT (5U) 7109 /*! BPFLCD25 7110 * 0b0..LCD segment off or LCD backplane inactive for phase F 7111 * 0b1..LCD segment on or LCD backplane active for phase F 7112 */ 7113 #define LCD_WF8B_BPFLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD25_SHIFT)) & LCD_WF8B_BPFLCD25_MASK) 7114 7115 #define LCD_WF8B_BPGLCD25_MASK (0x40U) 7116 #define LCD_WF8B_BPGLCD25_SHIFT (6U) 7117 /*! BPGLCD25 7118 * 0b0..LCD segment off or LCD backplane inactive for phase G 7119 * 0b1..LCD segment on or LCD backplane active for phase G 7120 */ 7121 #define LCD_WF8B_BPGLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD25_SHIFT)) & LCD_WF8B_BPGLCD25_MASK) 7122 7123 #define LCD_WF8B_BPHLCD25_MASK (0x80U) 7124 #define LCD_WF8B_BPHLCD25_SHIFT (7U) 7125 /*! BPHLCD25 7126 * 0b0..LCD segment off or LCD backplane inactive for phase H 7127 * 0b1..LCD segment on or LCD backplane active for phase H 7128 */ 7129 #define LCD_WF8B_BPHLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD25_SHIFT)) & LCD_WF8B_BPHLCD25_MASK) 7130 7131 #define LCD_WF8B_BPALCD26_MASK (0x1U) 7132 #define LCD_WF8B_BPALCD26_SHIFT (0U) 7133 /*! BPALCD26 7134 * 0b0..LCD segment off or LCD backplane inactive for phase A 7135 * 0b1..LCD segment on or LCD backplane active for phase A 7136 */ 7137 #define LCD_WF8B_BPALCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD26_SHIFT)) & LCD_WF8B_BPALCD26_MASK) 7138 7139 #define LCD_WF8B_BPBLCD26_MASK (0x2U) 7140 #define LCD_WF8B_BPBLCD26_SHIFT (1U) 7141 /*! BPBLCD26 7142 * 0b0..LCD segment off or LCD backplane inactive for phase B 7143 * 0b1..LCD segment on or LCD backplane active for phase B 7144 */ 7145 #define LCD_WF8B_BPBLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD26_SHIFT)) & LCD_WF8B_BPBLCD26_MASK) 7146 7147 #define LCD_WF8B_BPCLCD26_MASK (0x4U) 7148 #define LCD_WF8B_BPCLCD26_SHIFT (2U) 7149 /*! BPCLCD26 7150 * 0b0..LCD segment off or LCD backplane inactive for phase C 7151 * 0b1..LCD segment on or LCD backplane active for phase C 7152 */ 7153 #define LCD_WF8B_BPCLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD26_SHIFT)) & LCD_WF8B_BPCLCD26_MASK) 7154 7155 #define LCD_WF8B_BPDLCD26_MASK (0x8U) 7156 #define LCD_WF8B_BPDLCD26_SHIFT (3U) 7157 /*! BPDLCD26 7158 * 0b0..LCD segment off or LCD backplane inactive for phase D 7159 * 0b1..LCD segment on or LCD backplane active for phase D 7160 */ 7161 #define LCD_WF8B_BPDLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD26_SHIFT)) & LCD_WF8B_BPDLCD26_MASK) 7162 7163 #define LCD_WF8B_BPELCD26_MASK (0x10U) 7164 #define LCD_WF8B_BPELCD26_SHIFT (4U) 7165 /*! BPELCD26 7166 * 0b0..LCD segment off or LCD backplane inactive for phase E 7167 * 0b1..LCD segment on or LCD backplane active for phase E 7168 */ 7169 #define LCD_WF8B_BPELCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD26_SHIFT)) & LCD_WF8B_BPELCD26_MASK) 7170 7171 #define LCD_WF8B_BPFLCD26_MASK (0x20U) 7172 #define LCD_WF8B_BPFLCD26_SHIFT (5U) 7173 /*! BPFLCD26 7174 * 0b0..LCD segment off or LCD backplane inactive for phase F 7175 * 0b1..LCD segment on or LCD backplane active for phase F 7176 */ 7177 #define LCD_WF8B_BPFLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD26_SHIFT)) & LCD_WF8B_BPFLCD26_MASK) 7178 7179 #define LCD_WF8B_BPGLCD26_MASK (0x40U) 7180 #define LCD_WF8B_BPGLCD26_SHIFT (6U) 7181 /*! BPGLCD26 7182 * 0b0..LCD segment off or LCD backplane inactive for phase G 7183 * 0b1..LCD segment on or LCD backplane active for phase G 7184 */ 7185 #define LCD_WF8B_BPGLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD26_SHIFT)) & LCD_WF8B_BPGLCD26_MASK) 7186 7187 #define LCD_WF8B_BPHLCD26_MASK (0x80U) 7188 #define LCD_WF8B_BPHLCD26_SHIFT (7U) 7189 /*! BPHLCD26 7190 * 0b0..LCD segment off or LCD backplane inactive for phase H 7191 * 0b1..LCD segment on or LCD backplane active for phase H 7192 */ 7193 #define LCD_WF8B_BPHLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD26_SHIFT)) & LCD_WF8B_BPHLCD26_MASK) 7194 7195 #define LCD_WF8B_BPALCD27_MASK (0x1U) 7196 #define LCD_WF8B_BPALCD27_SHIFT (0U) 7197 /*! BPALCD27 7198 * 0b0..LCD segment off or LCD backplane inactive for phase A 7199 * 0b1..LCD segment on or LCD backplane active for phase A 7200 */ 7201 #define LCD_WF8B_BPALCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD27_SHIFT)) & LCD_WF8B_BPALCD27_MASK) 7202 7203 #define LCD_WF8B_BPBLCD27_MASK (0x2U) 7204 #define LCD_WF8B_BPBLCD27_SHIFT (1U) 7205 /*! BPBLCD27 7206 * 0b0..LCD segment off or LCD backplane inactive for phase B 7207 * 0b1..LCD segment on or LCD backplane active for phase B 7208 */ 7209 #define LCD_WF8B_BPBLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD27_SHIFT)) & LCD_WF8B_BPBLCD27_MASK) 7210 7211 #define LCD_WF8B_BPCLCD27_MASK (0x4U) 7212 #define LCD_WF8B_BPCLCD27_SHIFT (2U) 7213 /*! BPCLCD27 7214 * 0b0..LCD segment off or LCD backplane inactive for phase C 7215 * 0b1..LCD segment on or LCD backplane active for phase C 7216 */ 7217 #define LCD_WF8B_BPCLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD27_SHIFT)) & LCD_WF8B_BPCLCD27_MASK) 7218 7219 #define LCD_WF8B_BPDLCD27_MASK (0x8U) 7220 #define LCD_WF8B_BPDLCD27_SHIFT (3U) 7221 /*! BPDLCD27 7222 * 0b0..LCD segment off or LCD backplane inactive for phase D 7223 * 0b1..LCD segment on or LCD backplane active for phase D 7224 */ 7225 #define LCD_WF8B_BPDLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD27_SHIFT)) & LCD_WF8B_BPDLCD27_MASK) 7226 7227 #define LCD_WF8B_BPELCD27_MASK (0x10U) 7228 #define LCD_WF8B_BPELCD27_SHIFT (4U) 7229 /*! BPELCD27 7230 * 0b0..LCD segment off or LCD backplane inactive for phase E 7231 * 0b1..LCD segment on or LCD backplane active for phase E 7232 */ 7233 #define LCD_WF8B_BPELCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD27_SHIFT)) & LCD_WF8B_BPELCD27_MASK) 7234 7235 #define LCD_WF8B_BPFLCD27_MASK (0x20U) 7236 #define LCD_WF8B_BPFLCD27_SHIFT (5U) 7237 /*! BPFLCD27 7238 * 0b0..LCD segment off or LCD backplane inactive for phase F 7239 * 0b1..LCD segment on or LCD backplane active for phase F 7240 */ 7241 #define LCD_WF8B_BPFLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD27_SHIFT)) & LCD_WF8B_BPFLCD27_MASK) 7242 7243 #define LCD_WF8B_BPGLCD27_MASK (0x40U) 7244 #define LCD_WF8B_BPGLCD27_SHIFT (6U) 7245 /*! BPGLCD27 7246 * 0b0..LCD segment off or LCD backplane inactive for phase G 7247 * 0b1..LCD segment on or LCD backplane active for phase G 7248 */ 7249 #define LCD_WF8B_BPGLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD27_SHIFT)) & LCD_WF8B_BPGLCD27_MASK) 7250 7251 #define LCD_WF8B_BPHLCD27_MASK (0x80U) 7252 #define LCD_WF8B_BPHLCD27_SHIFT (7U) 7253 /*! BPHLCD27 7254 * 0b0..LCD segment off or LCD backplane inactive for phase H 7255 * 0b1..LCD segment on or LCD backplane active for phase H 7256 */ 7257 #define LCD_WF8B_BPHLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD27_SHIFT)) & LCD_WF8B_BPHLCD27_MASK) 7258 7259 #define LCD_WF8B_BPALCD28_MASK (0x1U) 7260 #define LCD_WF8B_BPALCD28_SHIFT (0U) 7261 /*! BPALCD28 7262 * 0b0..LCD segment off or LCD backplane inactive for phase A 7263 * 0b1..LCD segment on or LCD backplane active for phase A 7264 */ 7265 #define LCD_WF8B_BPALCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD28_SHIFT)) & LCD_WF8B_BPALCD28_MASK) 7266 7267 #define LCD_WF8B_BPBLCD28_MASK (0x2U) 7268 #define LCD_WF8B_BPBLCD28_SHIFT (1U) 7269 /*! BPBLCD28 7270 * 0b0..LCD segment off or LCD backplane inactive for phase B 7271 * 0b1..LCD segment on or LCD backplane active for phase B 7272 */ 7273 #define LCD_WF8B_BPBLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD28_SHIFT)) & LCD_WF8B_BPBLCD28_MASK) 7274 7275 #define LCD_WF8B_BPCLCD28_MASK (0x4U) 7276 #define LCD_WF8B_BPCLCD28_SHIFT (2U) 7277 /*! BPCLCD28 7278 * 0b0..LCD segment off or LCD backplane inactive for phase C 7279 * 0b1..LCD segment on or LCD backplane active for phase C 7280 */ 7281 #define LCD_WF8B_BPCLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD28_SHIFT)) & LCD_WF8B_BPCLCD28_MASK) 7282 7283 #define LCD_WF8B_BPDLCD28_MASK (0x8U) 7284 #define LCD_WF8B_BPDLCD28_SHIFT (3U) 7285 /*! BPDLCD28 7286 * 0b0..LCD segment off or LCD backplane inactive for phase D 7287 * 0b1..LCD segment on or LCD backplane active for phase D 7288 */ 7289 #define LCD_WF8B_BPDLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD28_SHIFT)) & LCD_WF8B_BPDLCD28_MASK) 7290 7291 #define LCD_WF8B_BPELCD28_MASK (0x10U) 7292 #define LCD_WF8B_BPELCD28_SHIFT (4U) 7293 /*! BPELCD28 7294 * 0b0..LCD segment off or LCD backplane inactive for phase E 7295 * 0b1..LCD segment on or LCD backplane active for phase E 7296 */ 7297 #define LCD_WF8B_BPELCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD28_SHIFT)) & LCD_WF8B_BPELCD28_MASK) 7298 7299 #define LCD_WF8B_BPFLCD28_MASK (0x20U) 7300 #define LCD_WF8B_BPFLCD28_SHIFT (5U) 7301 /*! BPFLCD28 7302 * 0b0..LCD segment off or LCD backplane inactive for phase F 7303 * 0b1..LCD segment on or LCD backplane active for phase F 7304 */ 7305 #define LCD_WF8B_BPFLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD28_SHIFT)) & LCD_WF8B_BPFLCD28_MASK) 7306 7307 #define LCD_WF8B_BPGLCD28_MASK (0x40U) 7308 #define LCD_WF8B_BPGLCD28_SHIFT (6U) 7309 /*! BPGLCD28 7310 * 0b0..LCD segment off or LCD backplane inactive for phase G 7311 * 0b1..LCD segment on or LCD backplane active for phase G 7312 */ 7313 #define LCD_WF8B_BPGLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD28_SHIFT)) & LCD_WF8B_BPGLCD28_MASK) 7314 7315 #define LCD_WF8B_BPHLCD28_MASK (0x80U) 7316 #define LCD_WF8B_BPHLCD28_SHIFT (7U) 7317 /*! BPHLCD28 7318 * 0b0..LCD segment off or LCD backplane inactive for phase H 7319 * 0b1..LCD segment on or LCD backplane active for phase H 7320 */ 7321 #define LCD_WF8B_BPHLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD28_SHIFT)) & LCD_WF8B_BPHLCD28_MASK) 7322 7323 #define LCD_WF8B_BPALCD29_MASK (0x1U) 7324 #define LCD_WF8B_BPALCD29_SHIFT (0U) 7325 /*! BPALCD29 7326 * 0b0..LCD segment off or LCD backplane inactive for phase A 7327 * 0b1..LCD segment on or LCD backplane active for phase A 7328 */ 7329 #define LCD_WF8B_BPALCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD29_SHIFT)) & LCD_WF8B_BPALCD29_MASK) 7330 7331 #define LCD_WF8B_BPBLCD29_MASK (0x2U) 7332 #define LCD_WF8B_BPBLCD29_SHIFT (1U) 7333 /*! BPBLCD29 7334 * 0b0..LCD segment off or LCD backplane inactive for phase B 7335 * 0b1..LCD segment on or LCD backplane active for phase B 7336 */ 7337 #define LCD_WF8B_BPBLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD29_SHIFT)) & LCD_WF8B_BPBLCD29_MASK) 7338 7339 #define LCD_WF8B_BPCLCD29_MASK (0x4U) 7340 #define LCD_WF8B_BPCLCD29_SHIFT (2U) 7341 /*! BPCLCD29 7342 * 0b0..LCD segment off or LCD backplane inactive for phase C 7343 * 0b1..LCD segment on or LCD backplane active for phase C 7344 */ 7345 #define LCD_WF8B_BPCLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD29_SHIFT)) & LCD_WF8B_BPCLCD29_MASK) 7346 7347 #define LCD_WF8B_BPDLCD29_MASK (0x8U) 7348 #define LCD_WF8B_BPDLCD29_SHIFT (3U) 7349 /*! BPDLCD29 7350 * 0b0..LCD segment off or LCD backplane inactive for phase D 7351 * 0b1..LCD segment on or LCD backplane active for phase D 7352 */ 7353 #define LCD_WF8B_BPDLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD29_SHIFT)) & LCD_WF8B_BPDLCD29_MASK) 7354 7355 #define LCD_WF8B_BPELCD29_MASK (0x10U) 7356 #define LCD_WF8B_BPELCD29_SHIFT (4U) 7357 /*! BPELCD29 7358 * 0b0..LCD segment off or LCD backplane inactive for phase E 7359 * 0b1..LCD segment on or LCD backplane active for phase E 7360 */ 7361 #define LCD_WF8B_BPELCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD29_SHIFT)) & LCD_WF8B_BPELCD29_MASK) 7362 7363 #define LCD_WF8B_BPFLCD29_MASK (0x20U) 7364 #define LCD_WF8B_BPFLCD29_SHIFT (5U) 7365 /*! BPFLCD29 7366 * 0b0..LCD segment off or LCD backplane inactive for phase F 7367 * 0b1..LCD segment on or LCD backplane active for phase F 7368 */ 7369 #define LCD_WF8B_BPFLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD29_SHIFT)) & LCD_WF8B_BPFLCD29_MASK) 7370 7371 #define LCD_WF8B_BPGLCD29_MASK (0x40U) 7372 #define LCD_WF8B_BPGLCD29_SHIFT (6U) 7373 /*! BPGLCD29 7374 * 0b0..LCD segment off or LCD backplane inactive for phase G 7375 * 0b1..LCD segment on or LCD backplane active for phase G 7376 */ 7377 #define LCD_WF8B_BPGLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD29_SHIFT)) & LCD_WF8B_BPGLCD29_MASK) 7378 7379 #define LCD_WF8B_BPHLCD29_MASK (0x80U) 7380 #define LCD_WF8B_BPHLCD29_SHIFT (7U) 7381 /*! BPHLCD29 7382 * 0b0..LCD segment off or LCD backplane inactive for phase H 7383 * 0b1..LCD segment on or LCD backplane active for phase H 7384 */ 7385 #define LCD_WF8B_BPHLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD29_SHIFT)) & LCD_WF8B_BPHLCD29_MASK) 7386 7387 #define LCD_WF8B_BPALCD30_MASK (0x1U) 7388 #define LCD_WF8B_BPALCD30_SHIFT (0U) 7389 /*! BPALCD30 7390 * 0b0..LCD segment off or LCD backplane inactive for phase A 7391 * 0b1..LCD segment on or LCD backplane active for phase A 7392 */ 7393 #define LCD_WF8B_BPALCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD30_SHIFT)) & LCD_WF8B_BPALCD30_MASK) 7394 7395 #define LCD_WF8B_BPBLCD30_MASK (0x2U) 7396 #define LCD_WF8B_BPBLCD30_SHIFT (1U) 7397 /*! BPBLCD30 7398 * 0b0..LCD segment off or LCD backplane inactive for phase B 7399 * 0b1..LCD segment on or LCD backplane active for phase B 7400 */ 7401 #define LCD_WF8B_BPBLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD30_SHIFT)) & LCD_WF8B_BPBLCD30_MASK) 7402 7403 #define LCD_WF8B_BPCLCD30_MASK (0x4U) 7404 #define LCD_WF8B_BPCLCD30_SHIFT (2U) 7405 /*! BPCLCD30 7406 * 0b0..LCD segment off or LCD backplane inactive for phase C 7407 * 0b1..LCD segment on or LCD backplane active for phase C 7408 */ 7409 #define LCD_WF8B_BPCLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD30_SHIFT)) & LCD_WF8B_BPCLCD30_MASK) 7410 7411 #define LCD_WF8B_BPDLCD30_MASK (0x8U) 7412 #define LCD_WF8B_BPDLCD30_SHIFT (3U) 7413 /*! BPDLCD30 7414 * 0b0..LCD segment off or LCD backplane inactive for phase D 7415 * 0b1..LCD segment on or LCD backplane active for phase D 7416 */ 7417 #define LCD_WF8B_BPDLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD30_SHIFT)) & LCD_WF8B_BPDLCD30_MASK) 7418 7419 #define LCD_WF8B_BPELCD30_MASK (0x10U) 7420 #define LCD_WF8B_BPELCD30_SHIFT (4U) 7421 /*! BPELCD30 7422 * 0b0..LCD segment off or LCD backplane inactive for phase E 7423 * 0b1..LCD segment on or LCD backplane active for phase E 7424 */ 7425 #define LCD_WF8B_BPELCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD30_SHIFT)) & LCD_WF8B_BPELCD30_MASK) 7426 7427 #define LCD_WF8B_BPFLCD30_MASK (0x20U) 7428 #define LCD_WF8B_BPFLCD30_SHIFT (5U) 7429 /*! BPFLCD30 7430 * 0b0..LCD segment off or LCD backplane inactive for phase F 7431 * 0b1..LCD segment on or LCD backplane active for phase F 7432 */ 7433 #define LCD_WF8B_BPFLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD30_SHIFT)) & LCD_WF8B_BPFLCD30_MASK) 7434 7435 #define LCD_WF8B_BPGLCD30_MASK (0x40U) 7436 #define LCD_WF8B_BPGLCD30_SHIFT (6U) 7437 /*! BPGLCD30 7438 * 0b0..LCD segment off or LCD backplane inactive for phase G 7439 * 0b1..LCD segment on or LCD backplane active for phase G 7440 */ 7441 #define LCD_WF8B_BPGLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD30_SHIFT)) & LCD_WF8B_BPGLCD30_MASK) 7442 7443 #define LCD_WF8B_BPHLCD30_MASK (0x80U) 7444 #define LCD_WF8B_BPHLCD30_SHIFT (7U) 7445 /*! BPHLCD30 7446 * 0b0..LCD segment off or LCD backplane inactive for phase H 7447 * 0b1..LCD segment on or LCD backplane active for phase H 7448 */ 7449 #define LCD_WF8B_BPHLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD30_SHIFT)) & LCD_WF8B_BPHLCD30_MASK) 7450 7451 #define LCD_WF8B_BPALCD31_MASK (0x1U) 7452 #define LCD_WF8B_BPALCD31_SHIFT (0U) 7453 /*! BPALCD31 7454 * 0b0..LCD segment off or LCD backplane inactive for phase A 7455 * 0b1..LCD segment on or LCD backplane active for phase A 7456 */ 7457 #define LCD_WF8B_BPALCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD31_SHIFT)) & LCD_WF8B_BPALCD31_MASK) 7458 7459 #define LCD_WF8B_BPBLCD31_MASK (0x2U) 7460 #define LCD_WF8B_BPBLCD31_SHIFT (1U) 7461 /*! BPBLCD31 7462 * 0b0..LCD segment off or LCD backplane inactive for phase B 7463 * 0b1..LCD segment on or LCD backplane active for phase B 7464 */ 7465 #define LCD_WF8B_BPBLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD31_SHIFT)) & LCD_WF8B_BPBLCD31_MASK) 7466 7467 #define LCD_WF8B_BPCLCD31_MASK (0x4U) 7468 #define LCD_WF8B_BPCLCD31_SHIFT (2U) 7469 /*! BPCLCD31 7470 * 0b0..LCD segment off or LCD backplane inactive for phase C 7471 * 0b1..LCD segment on or LCD backplane active for phase C 7472 */ 7473 #define LCD_WF8B_BPCLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD31_SHIFT)) & LCD_WF8B_BPCLCD31_MASK) 7474 7475 #define LCD_WF8B_BPDLCD31_MASK (0x8U) 7476 #define LCD_WF8B_BPDLCD31_SHIFT (3U) 7477 /*! BPDLCD31 7478 * 0b0..LCD segment off or LCD backplane inactive for phase D 7479 * 0b1..LCD segment on or LCD backplane active for phase D 7480 */ 7481 #define LCD_WF8B_BPDLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD31_SHIFT)) & LCD_WF8B_BPDLCD31_MASK) 7482 7483 #define LCD_WF8B_BPELCD31_MASK (0x10U) 7484 #define LCD_WF8B_BPELCD31_SHIFT (4U) 7485 /*! BPELCD31 7486 * 0b0..LCD segment off or LCD backplane inactive for phase E 7487 * 0b1..LCD segment on or LCD backplane active for phase E 7488 */ 7489 #define LCD_WF8B_BPELCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD31_SHIFT)) & LCD_WF8B_BPELCD31_MASK) 7490 7491 #define LCD_WF8B_BPFLCD31_MASK (0x20U) 7492 #define LCD_WF8B_BPFLCD31_SHIFT (5U) 7493 /*! BPFLCD31 7494 * 0b0..LCD segment off or LCD backplane inactive for phase F 7495 * 0b1..LCD segment on or LCD backplane active for phase F 7496 */ 7497 #define LCD_WF8B_BPFLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD31_SHIFT)) & LCD_WF8B_BPFLCD31_MASK) 7498 7499 #define LCD_WF8B_BPGLCD31_MASK (0x40U) 7500 #define LCD_WF8B_BPGLCD31_SHIFT (6U) 7501 /*! BPGLCD31 7502 * 0b0..LCD segment off or LCD backplane inactive for phase G 7503 * 0b1..LCD segment on or LCD backplane active for phase G 7504 */ 7505 #define LCD_WF8B_BPGLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD31_SHIFT)) & LCD_WF8B_BPGLCD31_MASK) 7506 7507 #define LCD_WF8B_BPHLCD31_MASK (0x80U) 7508 #define LCD_WF8B_BPHLCD31_SHIFT (7U) 7509 /*! BPHLCD31 7510 * 0b0..LCD segment off or LCD backplane inactive for phase H 7511 * 0b1..LCD segment on or LCD backplane active for phase H 7512 */ 7513 #define LCD_WF8B_BPHLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD31_SHIFT)) & LCD_WF8B_BPHLCD31_MASK) 7514 7515 #define LCD_WF8B_BPALCD32_MASK (0x1U) 7516 #define LCD_WF8B_BPALCD32_SHIFT (0U) 7517 /*! BPALCD32 7518 * 0b0..LCD segment off or LCD backplane inactive for phase A 7519 * 0b1..LCD segment on or LCD backplane active for phase A 7520 */ 7521 #define LCD_WF8B_BPALCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD32_SHIFT)) & LCD_WF8B_BPALCD32_MASK) 7522 7523 #define LCD_WF8B_BPBLCD32_MASK (0x2U) 7524 #define LCD_WF8B_BPBLCD32_SHIFT (1U) 7525 /*! BPBLCD32 7526 * 0b0..LCD segment off or LCD backplane inactive for phase B 7527 * 0b1..LCD segment on or LCD backplane active for phase B 7528 */ 7529 #define LCD_WF8B_BPBLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD32_SHIFT)) & LCD_WF8B_BPBLCD32_MASK) 7530 7531 #define LCD_WF8B_BPCLCD32_MASK (0x4U) 7532 #define LCD_WF8B_BPCLCD32_SHIFT (2U) 7533 /*! BPCLCD32 7534 * 0b0..LCD segment off or LCD backplane inactive for phase C 7535 * 0b1..LCD segment on or LCD backplane active for phase C 7536 */ 7537 #define LCD_WF8B_BPCLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD32_SHIFT)) & LCD_WF8B_BPCLCD32_MASK) 7538 7539 #define LCD_WF8B_BPDLCD32_MASK (0x8U) 7540 #define LCD_WF8B_BPDLCD32_SHIFT (3U) 7541 /*! BPDLCD32 7542 * 0b0..LCD segment off or LCD backplane inactive for phase D 7543 * 0b1..LCD segment on or LCD backplane active for phase D 7544 */ 7545 #define LCD_WF8B_BPDLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD32_SHIFT)) & LCD_WF8B_BPDLCD32_MASK) 7546 7547 #define LCD_WF8B_BPELCD32_MASK (0x10U) 7548 #define LCD_WF8B_BPELCD32_SHIFT (4U) 7549 /*! BPELCD32 7550 * 0b0..LCD segment off or LCD backplane inactive for phase E 7551 * 0b1..LCD segment on or LCD backplane active for phase E 7552 */ 7553 #define LCD_WF8B_BPELCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD32_SHIFT)) & LCD_WF8B_BPELCD32_MASK) 7554 7555 #define LCD_WF8B_BPFLCD32_MASK (0x20U) 7556 #define LCD_WF8B_BPFLCD32_SHIFT (5U) 7557 /*! BPFLCD32 7558 * 0b0..LCD segment off or LCD backplane inactive for phase F 7559 * 0b1..LCD segment on or LCD backplane active for phase F 7560 */ 7561 #define LCD_WF8B_BPFLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD32_SHIFT)) & LCD_WF8B_BPFLCD32_MASK) 7562 7563 #define LCD_WF8B_BPGLCD32_MASK (0x40U) 7564 #define LCD_WF8B_BPGLCD32_SHIFT (6U) 7565 /*! BPGLCD32 7566 * 0b0..LCD segment off or LCD backplane inactive for phase G 7567 * 0b1..LCD segment on or LCD backplane active for phase G 7568 */ 7569 #define LCD_WF8B_BPGLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD32_SHIFT)) & LCD_WF8B_BPGLCD32_MASK) 7570 7571 #define LCD_WF8B_BPHLCD32_MASK (0x80U) 7572 #define LCD_WF8B_BPHLCD32_SHIFT (7U) 7573 /*! BPHLCD32 7574 * 0b0..LCD segment off or LCD backplane inactive for phase H 7575 * 0b1..LCD segment on or LCD backplane active for phase H 7576 */ 7577 #define LCD_WF8B_BPHLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD32_SHIFT)) & LCD_WF8B_BPHLCD32_MASK) 7578 7579 #define LCD_WF8B_BPALCD33_MASK (0x1U) 7580 #define LCD_WF8B_BPALCD33_SHIFT (0U) 7581 /*! BPALCD33 7582 * 0b0..LCD segment off or LCD backplane inactive for phase A 7583 * 0b1..LCD segment on or LCD backplane active for phase A 7584 */ 7585 #define LCD_WF8B_BPALCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD33_SHIFT)) & LCD_WF8B_BPALCD33_MASK) 7586 7587 #define LCD_WF8B_BPBLCD33_MASK (0x2U) 7588 #define LCD_WF8B_BPBLCD33_SHIFT (1U) 7589 /*! BPBLCD33 7590 * 0b0..LCD segment off or LCD backplane inactive for phase B 7591 * 0b1..LCD segment on or LCD backplane active for phase B 7592 */ 7593 #define LCD_WF8B_BPBLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD33_SHIFT)) & LCD_WF8B_BPBLCD33_MASK) 7594 7595 #define LCD_WF8B_BPCLCD33_MASK (0x4U) 7596 #define LCD_WF8B_BPCLCD33_SHIFT (2U) 7597 /*! BPCLCD33 7598 * 0b0..LCD segment off or LCD backplane inactive for phase C 7599 * 0b1..LCD segment on or LCD backplane active for phase C 7600 */ 7601 #define LCD_WF8B_BPCLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD33_SHIFT)) & LCD_WF8B_BPCLCD33_MASK) 7602 7603 #define LCD_WF8B_BPDLCD33_MASK (0x8U) 7604 #define LCD_WF8B_BPDLCD33_SHIFT (3U) 7605 /*! BPDLCD33 7606 * 0b0..LCD segment off or LCD backplane inactive for phase D 7607 * 0b1..LCD segment on or LCD backplane active for phase D 7608 */ 7609 #define LCD_WF8B_BPDLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD33_SHIFT)) & LCD_WF8B_BPDLCD33_MASK) 7610 7611 #define LCD_WF8B_BPELCD33_MASK (0x10U) 7612 #define LCD_WF8B_BPELCD33_SHIFT (4U) 7613 /*! BPELCD33 7614 * 0b0..LCD segment off or LCD backplane inactive for phase E 7615 * 0b1..LCD segment on or LCD backplane active for phase E 7616 */ 7617 #define LCD_WF8B_BPELCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD33_SHIFT)) & LCD_WF8B_BPELCD33_MASK) 7618 7619 #define LCD_WF8B_BPFLCD33_MASK (0x20U) 7620 #define LCD_WF8B_BPFLCD33_SHIFT (5U) 7621 /*! BPFLCD33 7622 * 0b0..LCD segment off or LCD backplane inactive for phase F 7623 * 0b1..LCD segment on or LCD backplane active for phase F 7624 */ 7625 #define LCD_WF8B_BPFLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD33_SHIFT)) & LCD_WF8B_BPFLCD33_MASK) 7626 7627 #define LCD_WF8B_BPGLCD33_MASK (0x40U) 7628 #define LCD_WF8B_BPGLCD33_SHIFT (6U) 7629 /*! BPGLCD33 7630 * 0b0..LCD segment off or LCD backplane inactive for phase G 7631 * 0b1..LCD segment on or LCD backplane active for phase G 7632 */ 7633 #define LCD_WF8B_BPGLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD33_SHIFT)) & LCD_WF8B_BPGLCD33_MASK) 7634 7635 #define LCD_WF8B_BPHLCD33_MASK (0x80U) 7636 #define LCD_WF8B_BPHLCD33_SHIFT (7U) 7637 /*! BPHLCD33 7638 * 0b0..LCD segment off or LCD backplane inactive for phase H 7639 * 0b1..LCD segment on or LCD backplane active for phase H 7640 */ 7641 #define LCD_WF8B_BPHLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD33_SHIFT)) & LCD_WF8B_BPHLCD33_MASK) 7642 7643 #define LCD_WF8B_BPALCD34_MASK (0x1U) 7644 #define LCD_WF8B_BPALCD34_SHIFT (0U) 7645 /*! BPALCD34 7646 * 0b0..LCD segment off or LCD backplane inactive for phase A 7647 * 0b1..LCD segment on or LCD backplane active for phase A 7648 */ 7649 #define LCD_WF8B_BPALCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD34_SHIFT)) & LCD_WF8B_BPALCD34_MASK) 7650 7651 #define LCD_WF8B_BPBLCD34_MASK (0x2U) 7652 #define LCD_WF8B_BPBLCD34_SHIFT (1U) 7653 /*! BPBLCD34 7654 * 0b0..LCD segment off or LCD backplane inactive for phase B 7655 * 0b1..LCD segment on or LCD backplane active for phase B 7656 */ 7657 #define LCD_WF8B_BPBLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD34_SHIFT)) & LCD_WF8B_BPBLCD34_MASK) 7658 7659 #define LCD_WF8B_BPCLCD34_MASK (0x4U) 7660 #define LCD_WF8B_BPCLCD34_SHIFT (2U) 7661 /*! BPCLCD34 7662 * 0b0..LCD segment off or LCD backplane inactive for phase C 7663 * 0b1..LCD segment on or LCD backplane active for phase C 7664 */ 7665 #define LCD_WF8B_BPCLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD34_SHIFT)) & LCD_WF8B_BPCLCD34_MASK) 7666 7667 #define LCD_WF8B_BPDLCD34_MASK (0x8U) 7668 #define LCD_WF8B_BPDLCD34_SHIFT (3U) 7669 /*! BPDLCD34 7670 * 0b0..LCD segment off or LCD backplane inactive for phase D 7671 * 0b1..LCD segment on or LCD backplane active for phase D 7672 */ 7673 #define LCD_WF8B_BPDLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD34_SHIFT)) & LCD_WF8B_BPDLCD34_MASK) 7674 7675 #define LCD_WF8B_BPELCD34_MASK (0x10U) 7676 #define LCD_WF8B_BPELCD34_SHIFT (4U) 7677 /*! BPELCD34 7678 * 0b0..LCD segment off or LCD backplane inactive for phase E 7679 * 0b1..LCD segment on or LCD backplane active for phase E 7680 */ 7681 #define LCD_WF8B_BPELCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD34_SHIFT)) & LCD_WF8B_BPELCD34_MASK) 7682 7683 #define LCD_WF8B_BPFLCD34_MASK (0x20U) 7684 #define LCD_WF8B_BPFLCD34_SHIFT (5U) 7685 /*! BPFLCD34 7686 * 0b0..LCD segment off or LCD backplane inactive for phase F 7687 * 0b1..LCD segment on or LCD backplane active for phase F 7688 */ 7689 #define LCD_WF8B_BPFLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD34_SHIFT)) & LCD_WF8B_BPFLCD34_MASK) 7690 7691 #define LCD_WF8B_BPGLCD34_MASK (0x40U) 7692 #define LCD_WF8B_BPGLCD34_SHIFT (6U) 7693 /*! BPGLCD34 7694 * 0b0..LCD segment off or LCD backplane inactive for phase G 7695 * 0b1..LCD segment on or LCD backplane active for phase G 7696 */ 7697 #define LCD_WF8B_BPGLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD34_SHIFT)) & LCD_WF8B_BPGLCD34_MASK) 7698 7699 #define LCD_WF8B_BPHLCD34_MASK (0x80U) 7700 #define LCD_WF8B_BPHLCD34_SHIFT (7U) 7701 /*! BPHLCD34 7702 * 0b0..LCD segment off or LCD backplane inactive for phase H 7703 * 0b1..LCD segment on or LCD backplane active for phase H 7704 */ 7705 #define LCD_WF8B_BPHLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD34_SHIFT)) & LCD_WF8B_BPHLCD34_MASK) 7706 7707 #define LCD_WF8B_BPALCD35_MASK (0x1U) 7708 #define LCD_WF8B_BPALCD35_SHIFT (0U) 7709 /*! BPALCD35 7710 * 0b0..LCD segment off or LCD backplane inactive for phase A 7711 * 0b1..LCD segment on or LCD backplane active for phase A 7712 */ 7713 #define LCD_WF8B_BPALCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD35_SHIFT)) & LCD_WF8B_BPALCD35_MASK) 7714 7715 #define LCD_WF8B_BPBLCD35_MASK (0x2U) 7716 #define LCD_WF8B_BPBLCD35_SHIFT (1U) 7717 /*! BPBLCD35 7718 * 0b0..LCD segment off or LCD backplane inactive for phase B 7719 * 0b1..LCD segment on or LCD backplane active for phase B 7720 */ 7721 #define LCD_WF8B_BPBLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD35_SHIFT)) & LCD_WF8B_BPBLCD35_MASK) 7722 7723 #define LCD_WF8B_BPCLCD35_MASK (0x4U) 7724 #define LCD_WF8B_BPCLCD35_SHIFT (2U) 7725 /*! BPCLCD35 7726 * 0b0..LCD segment off or LCD backplane inactive for phase C 7727 * 0b1..LCD segment on or LCD backplane active for phase C 7728 */ 7729 #define LCD_WF8B_BPCLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD35_SHIFT)) & LCD_WF8B_BPCLCD35_MASK) 7730 7731 #define LCD_WF8B_BPDLCD35_MASK (0x8U) 7732 #define LCD_WF8B_BPDLCD35_SHIFT (3U) 7733 /*! BPDLCD35 7734 * 0b0..LCD segment off or LCD backplane inactive for phase D 7735 * 0b1..LCD segment on or LCD backplane active for phase D 7736 */ 7737 #define LCD_WF8B_BPDLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD35_SHIFT)) & LCD_WF8B_BPDLCD35_MASK) 7738 7739 #define LCD_WF8B_BPELCD35_MASK (0x10U) 7740 #define LCD_WF8B_BPELCD35_SHIFT (4U) 7741 /*! BPELCD35 7742 * 0b0..LCD segment off or LCD backplane inactive for phase E 7743 * 0b1..LCD segment on or LCD backplane active for phase E 7744 */ 7745 #define LCD_WF8B_BPELCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD35_SHIFT)) & LCD_WF8B_BPELCD35_MASK) 7746 7747 #define LCD_WF8B_BPFLCD35_MASK (0x20U) 7748 #define LCD_WF8B_BPFLCD35_SHIFT (5U) 7749 /*! BPFLCD35 7750 * 0b0..LCD segment off or LCD backplane inactive for phase F 7751 * 0b1..LCD segment on or LCD backplane active for phase F 7752 */ 7753 #define LCD_WF8B_BPFLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD35_SHIFT)) & LCD_WF8B_BPFLCD35_MASK) 7754 7755 #define LCD_WF8B_BPGLCD35_MASK (0x40U) 7756 #define LCD_WF8B_BPGLCD35_SHIFT (6U) 7757 /*! BPGLCD35 7758 * 0b0..LCD segment off or LCD backplane inactive for phase G 7759 * 0b1..LCD segment on or LCD backplane active for phase G 7760 */ 7761 #define LCD_WF8B_BPGLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD35_SHIFT)) & LCD_WF8B_BPGLCD35_MASK) 7762 7763 #define LCD_WF8B_BPHLCD35_MASK (0x80U) 7764 #define LCD_WF8B_BPHLCD35_SHIFT (7U) 7765 /*! BPHLCD35 7766 * 0b0..LCD segment off or LCD backplane inactive for phase H 7767 * 0b1..LCD segment on or LCD backplane active for phase H 7768 */ 7769 #define LCD_WF8B_BPHLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD35_SHIFT)) & LCD_WF8B_BPHLCD35_MASK) 7770 7771 #define LCD_WF8B_BPALCD36_MASK (0x1U) 7772 #define LCD_WF8B_BPALCD36_SHIFT (0U) 7773 /*! BPALCD36 7774 * 0b0..LCD segment off or LCD backplane inactive for phase A 7775 * 0b1..LCD segment on or LCD backplane active for phase A 7776 */ 7777 #define LCD_WF8B_BPALCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD36_SHIFT)) & LCD_WF8B_BPALCD36_MASK) 7778 7779 #define LCD_WF8B_BPBLCD36_MASK (0x2U) 7780 #define LCD_WF8B_BPBLCD36_SHIFT (1U) 7781 /*! BPBLCD36 7782 * 0b0..LCD segment off or LCD backplane inactive for phase B 7783 * 0b1..LCD segment on or LCD backplane active for phase B 7784 */ 7785 #define LCD_WF8B_BPBLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD36_SHIFT)) & LCD_WF8B_BPBLCD36_MASK) 7786 7787 #define LCD_WF8B_BPCLCD36_MASK (0x4U) 7788 #define LCD_WF8B_BPCLCD36_SHIFT (2U) 7789 /*! BPCLCD36 7790 * 0b0..LCD segment off or LCD backplane inactive for phase C 7791 * 0b1..LCD segment on or LCD backplane active for phase C 7792 */ 7793 #define LCD_WF8B_BPCLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD36_SHIFT)) & LCD_WF8B_BPCLCD36_MASK) 7794 7795 #define LCD_WF8B_BPDLCD36_MASK (0x8U) 7796 #define LCD_WF8B_BPDLCD36_SHIFT (3U) 7797 /*! BPDLCD36 7798 * 0b0..LCD segment off or LCD backplane inactive for phase D 7799 * 0b1..LCD segment on or LCD backplane active for phase D 7800 */ 7801 #define LCD_WF8B_BPDLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD36_SHIFT)) & LCD_WF8B_BPDLCD36_MASK) 7802 7803 #define LCD_WF8B_BPELCD36_MASK (0x10U) 7804 #define LCD_WF8B_BPELCD36_SHIFT (4U) 7805 /*! BPELCD36 7806 * 0b0..LCD segment off or LCD backplane inactive for phase E 7807 * 0b1..LCD segment on or LCD backplane active for phase E 7808 */ 7809 #define LCD_WF8B_BPELCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD36_SHIFT)) & LCD_WF8B_BPELCD36_MASK) 7810 7811 #define LCD_WF8B_BPFLCD36_MASK (0x20U) 7812 #define LCD_WF8B_BPFLCD36_SHIFT (5U) 7813 /*! BPFLCD36 7814 * 0b0..LCD segment off or LCD backplane inactive for phase F 7815 * 0b1..LCD segment on or LCD backplane active for phase F 7816 */ 7817 #define LCD_WF8B_BPFLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD36_SHIFT)) & LCD_WF8B_BPFLCD36_MASK) 7818 7819 #define LCD_WF8B_BPGLCD36_MASK (0x40U) 7820 #define LCD_WF8B_BPGLCD36_SHIFT (6U) 7821 /*! BPGLCD36 7822 * 0b0..LCD segment off or LCD backplane inactive for phase G 7823 * 0b1..LCD segment on or LCD backplane active for phase G 7824 */ 7825 #define LCD_WF8B_BPGLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD36_SHIFT)) & LCD_WF8B_BPGLCD36_MASK) 7826 7827 #define LCD_WF8B_BPHLCD36_MASK (0x80U) 7828 #define LCD_WF8B_BPHLCD36_SHIFT (7U) 7829 /*! BPHLCD36 7830 * 0b0..LCD segment off or LCD backplane inactive for phase H 7831 * 0b1..LCD segment on or LCD backplane active for phase H 7832 */ 7833 #define LCD_WF8B_BPHLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD36_SHIFT)) & LCD_WF8B_BPHLCD36_MASK) 7834 7835 #define LCD_WF8B_BPALCD37_MASK (0x1U) 7836 #define LCD_WF8B_BPALCD37_SHIFT (0U) 7837 /*! BPALCD37 7838 * 0b0..LCD segment off or LCD backplane inactive for phase A 7839 * 0b1..LCD segment on or LCD backplane active for phase A 7840 */ 7841 #define LCD_WF8B_BPALCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD37_SHIFT)) & LCD_WF8B_BPALCD37_MASK) 7842 7843 #define LCD_WF8B_BPBLCD37_MASK (0x2U) 7844 #define LCD_WF8B_BPBLCD37_SHIFT (1U) 7845 /*! BPBLCD37 7846 * 0b0..LCD segment off or LCD backplane inactive for phase B 7847 * 0b1..LCD segment on or LCD backplane active for phase B 7848 */ 7849 #define LCD_WF8B_BPBLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD37_SHIFT)) & LCD_WF8B_BPBLCD37_MASK) 7850 7851 #define LCD_WF8B_BPCLCD37_MASK (0x4U) 7852 #define LCD_WF8B_BPCLCD37_SHIFT (2U) 7853 /*! BPCLCD37 7854 * 0b0..LCD segment off or LCD backplane inactive for phase C 7855 * 0b1..LCD segment on or LCD backplane active for phase C 7856 */ 7857 #define LCD_WF8B_BPCLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD37_SHIFT)) & LCD_WF8B_BPCLCD37_MASK) 7858 7859 #define LCD_WF8B_BPDLCD37_MASK (0x8U) 7860 #define LCD_WF8B_BPDLCD37_SHIFT (3U) 7861 /*! BPDLCD37 7862 * 0b0..LCD segment off or LCD backplane inactive for phase D 7863 * 0b1..LCD segment on or LCD backplane active for phase D 7864 */ 7865 #define LCD_WF8B_BPDLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD37_SHIFT)) & LCD_WF8B_BPDLCD37_MASK) 7866 7867 #define LCD_WF8B_BPELCD37_MASK (0x10U) 7868 #define LCD_WF8B_BPELCD37_SHIFT (4U) 7869 /*! BPELCD37 7870 * 0b0..LCD segment off or LCD backplane inactive for phase E 7871 * 0b1..LCD segment on or LCD backplane active for phase E 7872 */ 7873 #define LCD_WF8B_BPELCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD37_SHIFT)) & LCD_WF8B_BPELCD37_MASK) 7874 7875 #define LCD_WF8B_BPFLCD37_MASK (0x20U) 7876 #define LCD_WF8B_BPFLCD37_SHIFT (5U) 7877 /*! BPFLCD37 7878 * 0b0..LCD segment off or LCD backplane inactive for phase F 7879 * 0b1..LCD segment on or LCD backplane active for phase F 7880 */ 7881 #define LCD_WF8B_BPFLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD37_SHIFT)) & LCD_WF8B_BPFLCD37_MASK) 7882 7883 #define LCD_WF8B_BPGLCD37_MASK (0x40U) 7884 #define LCD_WF8B_BPGLCD37_SHIFT (6U) 7885 /*! BPGLCD37 7886 * 0b0..LCD segment off or LCD backplane inactive for phase G 7887 * 0b1..LCD segment on or LCD backplane active for phase G 7888 */ 7889 #define LCD_WF8B_BPGLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD37_SHIFT)) & LCD_WF8B_BPGLCD37_MASK) 7890 7891 #define LCD_WF8B_BPHLCD37_MASK (0x80U) 7892 #define LCD_WF8B_BPHLCD37_SHIFT (7U) 7893 /*! BPHLCD37 7894 * 0b0..LCD segment off or LCD backplane inactive for phase H 7895 * 0b1..LCD segment on or LCD backplane active for phase H 7896 */ 7897 #define LCD_WF8B_BPHLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD37_SHIFT)) & LCD_WF8B_BPHLCD37_MASK) 7898 7899 #define LCD_WF8B_BPALCD38_MASK (0x1U) 7900 #define LCD_WF8B_BPALCD38_SHIFT (0U) 7901 /*! BPALCD38 7902 * 0b0..LCD segment off or LCD backplane inactive for phase A 7903 * 0b1..LCD segment on or LCD backplane active for phase A 7904 */ 7905 #define LCD_WF8B_BPALCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD38_SHIFT)) & LCD_WF8B_BPALCD38_MASK) 7906 7907 #define LCD_WF8B_BPBLCD38_MASK (0x2U) 7908 #define LCD_WF8B_BPBLCD38_SHIFT (1U) 7909 /*! BPBLCD38 7910 * 0b0..LCD segment off or LCD backplane inactive for phase B 7911 * 0b1..LCD segment on or LCD backplane active for phase B 7912 */ 7913 #define LCD_WF8B_BPBLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD38_SHIFT)) & LCD_WF8B_BPBLCD38_MASK) 7914 7915 #define LCD_WF8B_BPCLCD38_MASK (0x4U) 7916 #define LCD_WF8B_BPCLCD38_SHIFT (2U) 7917 /*! BPCLCD38 7918 * 0b0..LCD segment off or LCD backplane inactive for phase C 7919 * 0b1..LCD segment on or LCD backplane active for phase C 7920 */ 7921 #define LCD_WF8B_BPCLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD38_SHIFT)) & LCD_WF8B_BPCLCD38_MASK) 7922 7923 #define LCD_WF8B_BPDLCD38_MASK (0x8U) 7924 #define LCD_WF8B_BPDLCD38_SHIFT (3U) 7925 /*! BPDLCD38 7926 * 0b0..LCD segment off or LCD backplane inactive for phase D 7927 * 0b1..LCD segment on or LCD backplane active for phase D 7928 */ 7929 #define LCD_WF8B_BPDLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD38_SHIFT)) & LCD_WF8B_BPDLCD38_MASK) 7930 7931 #define LCD_WF8B_BPELCD38_MASK (0x10U) 7932 #define LCD_WF8B_BPELCD38_SHIFT (4U) 7933 /*! BPELCD38 7934 * 0b0..LCD segment off or LCD backplane inactive for phase E 7935 * 0b1..LCD segment on or LCD backplane active for phase E 7936 */ 7937 #define LCD_WF8B_BPELCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD38_SHIFT)) & LCD_WF8B_BPELCD38_MASK) 7938 7939 #define LCD_WF8B_BPFLCD38_MASK (0x20U) 7940 #define LCD_WF8B_BPFLCD38_SHIFT (5U) 7941 /*! BPFLCD38 7942 * 0b0..LCD segment off or LCD backplane inactive for phase F 7943 * 0b1..LCD segment on or LCD backplane active for phase F 7944 */ 7945 #define LCD_WF8B_BPFLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD38_SHIFT)) & LCD_WF8B_BPFLCD38_MASK) 7946 7947 #define LCD_WF8B_BPGLCD38_MASK (0x40U) 7948 #define LCD_WF8B_BPGLCD38_SHIFT (6U) 7949 /*! BPGLCD38 7950 * 0b0..LCD segment off or LCD backplane inactive for phase G 7951 * 0b1..LCD segment on or LCD backplane active for phase G 7952 */ 7953 #define LCD_WF8B_BPGLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD38_SHIFT)) & LCD_WF8B_BPGLCD38_MASK) 7954 7955 #define LCD_WF8B_BPHLCD38_MASK (0x80U) 7956 #define LCD_WF8B_BPHLCD38_SHIFT (7U) 7957 /*! BPHLCD38 7958 * 0b0..LCD segment off or LCD backplane inactive for phase H 7959 * 0b1..LCD segment on or LCD backplane active for phase H 7960 */ 7961 #define LCD_WF8B_BPHLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD38_SHIFT)) & LCD_WF8B_BPHLCD38_MASK) 7962 7963 #define LCD_WF8B_BPALCD39_MASK (0x1U) 7964 #define LCD_WF8B_BPALCD39_SHIFT (0U) 7965 /*! BPALCD39 7966 * 0b0..LCD segment off or LCD backplane inactive for phase A 7967 * 0b1..LCD segment on or LCD backplane active for phase A 7968 */ 7969 #define LCD_WF8B_BPALCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD39_SHIFT)) & LCD_WF8B_BPALCD39_MASK) 7970 7971 #define LCD_WF8B_BPBLCD39_MASK (0x2U) 7972 #define LCD_WF8B_BPBLCD39_SHIFT (1U) 7973 /*! BPBLCD39 7974 * 0b0..LCD segment off or LCD backplane inactive for phase B 7975 * 0b1..LCD segment on or LCD backplane active for phase B 7976 */ 7977 #define LCD_WF8B_BPBLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD39_SHIFT)) & LCD_WF8B_BPBLCD39_MASK) 7978 7979 #define LCD_WF8B_BPCLCD39_MASK (0x4U) 7980 #define LCD_WF8B_BPCLCD39_SHIFT (2U) 7981 /*! BPCLCD39 7982 * 0b0..LCD segment off or LCD backplane inactive for phase C 7983 * 0b1..LCD segment on or LCD backplane active for phase C 7984 */ 7985 #define LCD_WF8B_BPCLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD39_SHIFT)) & LCD_WF8B_BPCLCD39_MASK) 7986 7987 #define LCD_WF8B_BPDLCD39_MASK (0x8U) 7988 #define LCD_WF8B_BPDLCD39_SHIFT (3U) 7989 /*! BPDLCD39 7990 * 0b0..LCD segment off or LCD backplane inactive for phase D 7991 * 0b1..LCD segment on or LCD backplane active for phase D 7992 */ 7993 #define LCD_WF8B_BPDLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD39_SHIFT)) & LCD_WF8B_BPDLCD39_MASK) 7994 7995 #define LCD_WF8B_BPELCD39_MASK (0x10U) 7996 #define LCD_WF8B_BPELCD39_SHIFT (4U) 7997 /*! BPELCD39 7998 * 0b0..LCD segment off or LCD backplane inactive for phase E 7999 * 0b1..LCD segment on or LCD backplane active for phase E 8000 */ 8001 #define LCD_WF8B_BPELCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD39_SHIFT)) & LCD_WF8B_BPELCD39_MASK) 8002 8003 #define LCD_WF8B_BPFLCD39_MASK (0x20U) 8004 #define LCD_WF8B_BPFLCD39_SHIFT (5U) 8005 /*! BPFLCD39 8006 * 0b0..LCD segment off or LCD backplane inactive for phase F 8007 * 0b1..LCD segment on or LCD backplane active for phase F 8008 */ 8009 #define LCD_WF8B_BPFLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD39_SHIFT)) & LCD_WF8B_BPFLCD39_MASK) 8010 8011 #define LCD_WF8B_BPGLCD39_MASK (0x40U) 8012 #define LCD_WF8B_BPGLCD39_SHIFT (6U) 8013 /*! BPGLCD39 8014 * 0b0..LCD segment off or LCD backplane inactive for phase G 8015 * 0b1..LCD segment on or LCD backplane active for phase G 8016 */ 8017 #define LCD_WF8B_BPGLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD39_SHIFT)) & LCD_WF8B_BPGLCD39_MASK) 8018 8019 #define LCD_WF8B_BPHLCD39_MASK (0x80U) 8020 #define LCD_WF8B_BPHLCD39_SHIFT (7U) 8021 /*! BPHLCD39 8022 * 0b0..LCD segment off or LCD backplane inactive for phase H 8023 * 0b1..LCD segment on or LCD backplane active for phase H 8024 */ 8025 #define LCD_WF8B_BPHLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD39_SHIFT)) & LCD_WF8B_BPHLCD39_MASK) 8026 8027 #define LCD_WF8B_BPALCD40_MASK (0x1U) 8028 #define LCD_WF8B_BPALCD40_SHIFT (0U) 8029 /*! BPALCD40 8030 * 0b0..LCD segment off or LCD backplane inactive for phase A 8031 * 0b1..LCD segment on or LCD backplane active for phase A 8032 */ 8033 #define LCD_WF8B_BPALCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD40_SHIFT)) & LCD_WF8B_BPALCD40_MASK) 8034 8035 #define LCD_WF8B_BPBLCD40_MASK (0x2U) 8036 #define LCD_WF8B_BPBLCD40_SHIFT (1U) 8037 /*! BPBLCD40 8038 * 0b0..LCD segment off or LCD backplane inactive for phase B 8039 * 0b1..LCD segment on or LCD backplane active for phase B 8040 */ 8041 #define LCD_WF8B_BPBLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD40_SHIFT)) & LCD_WF8B_BPBLCD40_MASK) 8042 8043 #define LCD_WF8B_BPCLCD40_MASK (0x4U) 8044 #define LCD_WF8B_BPCLCD40_SHIFT (2U) 8045 /*! BPCLCD40 8046 * 0b0..LCD segment off or LCD backplane inactive for phase C 8047 * 0b1..LCD segment on or LCD backplane active for phase C 8048 */ 8049 #define LCD_WF8B_BPCLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD40_SHIFT)) & LCD_WF8B_BPCLCD40_MASK) 8050 8051 #define LCD_WF8B_BPDLCD40_MASK (0x8U) 8052 #define LCD_WF8B_BPDLCD40_SHIFT (3U) 8053 /*! BPDLCD40 8054 * 0b0..LCD segment off or LCD backplane inactive for phase D 8055 * 0b1..LCD segment on or LCD backplane active for phase D 8056 */ 8057 #define LCD_WF8B_BPDLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD40_SHIFT)) & LCD_WF8B_BPDLCD40_MASK) 8058 8059 #define LCD_WF8B_BPELCD40_MASK (0x10U) 8060 #define LCD_WF8B_BPELCD40_SHIFT (4U) 8061 /*! BPELCD40 8062 * 0b0..LCD segment off or LCD backplane inactive for phase E 8063 * 0b1..LCD segment on or LCD backplane active for phase E 8064 */ 8065 #define LCD_WF8B_BPELCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD40_SHIFT)) & LCD_WF8B_BPELCD40_MASK) 8066 8067 #define LCD_WF8B_BPFLCD40_MASK (0x20U) 8068 #define LCD_WF8B_BPFLCD40_SHIFT (5U) 8069 /*! BPFLCD40 8070 * 0b0..LCD segment off or LCD backplane inactive for phase F 8071 * 0b1..LCD segment on or LCD backplane active for phase F 8072 */ 8073 #define LCD_WF8B_BPFLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD40_SHIFT)) & LCD_WF8B_BPFLCD40_MASK) 8074 8075 #define LCD_WF8B_BPGLCD40_MASK (0x40U) 8076 #define LCD_WF8B_BPGLCD40_SHIFT (6U) 8077 /*! BPGLCD40 8078 * 0b0..LCD segment off or LCD backplane inactive for phase G 8079 * 0b1..LCD segment on or LCD backplane active for phase G 8080 */ 8081 #define LCD_WF8B_BPGLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD40_SHIFT)) & LCD_WF8B_BPGLCD40_MASK) 8082 8083 #define LCD_WF8B_BPHLCD40_MASK (0x80U) 8084 #define LCD_WF8B_BPHLCD40_SHIFT (7U) 8085 /*! BPHLCD40 8086 * 0b0..LCD segment off or LCD backplane inactive for phase H 8087 * 0b1..LCD segment on or LCD backplane active for phase H 8088 */ 8089 #define LCD_WF8B_BPHLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD40_SHIFT)) & LCD_WF8B_BPHLCD40_MASK) 8090 8091 #define LCD_WF8B_BPALCD41_MASK (0x1U) 8092 #define LCD_WF8B_BPALCD41_SHIFT (0U) 8093 /*! BPALCD41 8094 * 0b0..LCD segment off or LCD backplane inactive for phase A 8095 * 0b1..LCD segment on or LCD backplane active for phase A 8096 */ 8097 #define LCD_WF8B_BPALCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD41_SHIFT)) & LCD_WF8B_BPALCD41_MASK) 8098 8099 #define LCD_WF8B_BPBLCD41_MASK (0x2U) 8100 #define LCD_WF8B_BPBLCD41_SHIFT (1U) 8101 /*! BPBLCD41 8102 * 0b0..LCD segment off or LCD backplane inactive for phase B 8103 * 0b1..LCD segment on or LCD backplane active for phase B 8104 */ 8105 #define LCD_WF8B_BPBLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD41_SHIFT)) & LCD_WF8B_BPBLCD41_MASK) 8106 8107 #define LCD_WF8B_BPCLCD41_MASK (0x4U) 8108 #define LCD_WF8B_BPCLCD41_SHIFT (2U) 8109 /*! BPCLCD41 8110 * 0b0..LCD segment off or LCD backplane inactive for phase C 8111 * 0b1..LCD segment on or LCD backplane active for phase C 8112 */ 8113 #define LCD_WF8B_BPCLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD41_SHIFT)) & LCD_WF8B_BPCLCD41_MASK) 8114 8115 #define LCD_WF8B_BPDLCD41_MASK (0x8U) 8116 #define LCD_WF8B_BPDLCD41_SHIFT (3U) 8117 /*! BPDLCD41 8118 * 0b0..LCD segment off or LCD backplane inactive for phase D 8119 * 0b1..LCD segment on or LCD backplane active for phase D 8120 */ 8121 #define LCD_WF8B_BPDLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD41_SHIFT)) & LCD_WF8B_BPDLCD41_MASK) 8122 8123 #define LCD_WF8B_BPELCD41_MASK (0x10U) 8124 #define LCD_WF8B_BPELCD41_SHIFT (4U) 8125 /*! BPELCD41 8126 * 0b0..LCD segment off or LCD backplane inactive for phase E 8127 * 0b1..LCD segment on or LCD backplane active for phase E 8128 */ 8129 #define LCD_WF8B_BPELCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD41_SHIFT)) & LCD_WF8B_BPELCD41_MASK) 8130 8131 #define LCD_WF8B_BPFLCD41_MASK (0x20U) 8132 #define LCD_WF8B_BPFLCD41_SHIFT (5U) 8133 /*! BPFLCD41 8134 * 0b0..LCD segment off or LCD backplane inactive for phase F 8135 * 0b1..LCD segment on or LCD backplane active for phase F 8136 */ 8137 #define LCD_WF8B_BPFLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD41_SHIFT)) & LCD_WF8B_BPFLCD41_MASK) 8138 8139 #define LCD_WF8B_BPGLCD41_MASK (0x40U) 8140 #define LCD_WF8B_BPGLCD41_SHIFT (6U) 8141 /*! BPGLCD41 8142 * 0b0..LCD segment off or LCD backplane inactive for phase G 8143 * 0b1..LCD segment on or LCD backplane active for phase G 8144 */ 8145 #define LCD_WF8B_BPGLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD41_SHIFT)) & LCD_WF8B_BPGLCD41_MASK) 8146 8147 #define LCD_WF8B_BPHLCD41_MASK (0x80U) 8148 #define LCD_WF8B_BPHLCD41_SHIFT (7U) 8149 /*! BPHLCD41 8150 * 0b0..LCD segment off or LCD backplane inactive for phase H 8151 * 0b1..LCD segment on or LCD backplane active for phase H 8152 */ 8153 #define LCD_WF8B_BPHLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD41_SHIFT)) & LCD_WF8B_BPHLCD41_MASK) 8154 8155 #define LCD_WF8B_BPALCD42_MASK (0x1U) 8156 #define LCD_WF8B_BPALCD42_SHIFT (0U) 8157 /*! BPALCD42 8158 * 0b0..LCD segment off or LCD backplane inactive for phase A 8159 * 0b1..LCD segment on or LCD backplane active for phase A 8160 */ 8161 #define LCD_WF8B_BPALCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD42_SHIFT)) & LCD_WF8B_BPALCD42_MASK) 8162 8163 #define LCD_WF8B_BPBLCD42_MASK (0x2U) 8164 #define LCD_WF8B_BPBLCD42_SHIFT (1U) 8165 /*! BPBLCD42 8166 * 0b0..LCD segment off or LCD backplane inactive for phase B 8167 * 0b1..LCD segment on or LCD backplane active for phase B 8168 */ 8169 #define LCD_WF8B_BPBLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD42_SHIFT)) & LCD_WF8B_BPBLCD42_MASK) 8170 8171 #define LCD_WF8B_BPCLCD42_MASK (0x4U) 8172 #define LCD_WF8B_BPCLCD42_SHIFT (2U) 8173 /*! BPCLCD42 8174 * 0b0..LCD segment off or LCD backplane inactive for phase C 8175 * 0b1..LCD segment on or LCD backplane active for phase C 8176 */ 8177 #define LCD_WF8B_BPCLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD42_SHIFT)) & LCD_WF8B_BPCLCD42_MASK) 8178 8179 #define LCD_WF8B_BPDLCD42_MASK (0x8U) 8180 #define LCD_WF8B_BPDLCD42_SHIFT (3U) 8181 /*! BPDLCD42 8182 * 0b0..LCD segment off or LCD backplane inactive for phase D 8183 * 0b1..LCD segment on or LCD backplane active for phase D 8184 */ 8185 #define LCD_WF8B_BPDLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD42_SHIFT)) & LCD_WF8B_BPDLCD42_MASK) 8186 8187 #define LCD_WF8B_BPELCD42_MASK (0x10U) 8188 #define LCD_WF8B_BPELCD42_SHIFT (4U) 8189 /*! BPELCD42 8190 * 0b0..LCD segment off or LCD backplane inactive for phase E 8191 * 0b1..LCD segment on or LCD backplane active for phase E 8192 */ 8193 #define LCD_WF8B_BPELCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD42_SHIFT)) & LCD_WF8B_BPELCD42_MASK) 8194 8195 #define LCD_WF8B_BPFLCD42_MASK (0x20U) 8196 #define LCD_WF8B_BPFLCD42_SHIFT (5U) 8197 /*! BPFLCD42 8198 * 0b0..LCD segment off or LCD backplane inactive for phase F 8199 * 0b1..LCD segment on or LCD backplane active for phase F 8200 */ 8201 #define LCD_WF8B_BPFLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD42_SHIFT)) & LCD_WF8B_BPFLCD42_MASK) 8202 8203 #define LCD_WF8B_BPGLCD42_MASK (0x40U) 8204 #define LCD_WF8B_BPGLCD42_SHIFT (6U) 8205 /*! BPGLCD42 8206 * 0b0..LCD segment off or LCD backplane inactive for phase G 8207 * 0b1..LCD segment on or LCD backplane active for phase G 8208 */ 8209 #define LCD_WF8B_BPGLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD42_SHIFT)) & LCD_WF8B_BPGLCD42_MASK) 8210 8211 #define LCD_WF8B_BPHLCD42_MASK (0x80U) 8212 #define LCD_WF8B_BPHLCD42_SHIFT (7U) 8213 /*! BPHLCD42 8214 * 0b0..LCD segment off or LCD backplane inactive for phase H 8215 * 0b1..LCD segment on or LCD backplane active for phase H 8216 */ 8217 #define LCD_WF8B_BPHLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD42_SHIFT)) & LCD_WF8B_BPHLCD42_MASK) 8218 8219 #define LCD_WF8B_BPALCD43_MASK (0x1U) 8220 #define LCD_WF8B_BPALCD43_SHIFT (0U) 8221 /*! BPALCD43 8222 * 0b0..LCD segment off or LCD backplane inactive for phase A 8223 * 0b1..LCD segment on or LCD backplane active for phase A 8224 */ 8225 #define LCD_WF8B_BPALCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD43_SHIFT)) & LCD_WF8B_BPALCD43_MASK) 8226 8227 #define LCD_WF8B_BPBLCD43_MASK (0x2U) 8228 #define LCD_WF8B_BPBLCD43_SHIFT (1U) 8229 /*! BPBLCD43 8230 * 0b0..LCD segment off or LCD backplane inactive for phase B 8231 * 0b1..LCD segment on or LCD backplane active for phase B 8232 */ 8233 #define LCD_WF8B_BPBLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD43_SHIFT)) & LCD_WF8B_BPBLCD43_MASK) 8234 8235 #define LCD_WF8B_BPCLCD43_MASK (0x4U) 8236 #define LCD_WF8B_BPCLCD43_SHIFT (2U) 8237 /*! BPCLCD43 8238 * 0b0..LCD segment off or LCD backplane inactive for phase C 8239 * 0b1..LCD segment on or LCD backplane active for phase C 8240 */ 8241 #define LCD_WF8B_BPCLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD43_SHIFT)) & LCD_WF8B_BPCLCD43_MASK) 8242 8243 #define LCD_WF8B_BPDLCD43_MASK (0x8U) 8244 #define LCD_WF8B_BPDLCD43_SHIFT (3U) 8245 /*! BPDLCD43 8246 * 0b0..LCD segment off or LCD backplane inactive for phase D 8247 * 0b1..LCD segment on or LCD backplane active for phase D 8248 */ 8249 #define LCD_WF8B_BPDLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD43_SHIFT)) & LCD_WF8B_BPDLCD43_MASK) 8250 8251 #define LCD_WF8B_BPELCD43_MASK (0x10U) 8252 #define LCD_WF8B_BPELCD43_SHIFT (4U) 8253 /*! BPELCD43 8254 * 0b0..LCD segment off or LCD backplane inactive for phase E 8255 * 0b1..LCD segment on or LCD backplane active for phase E 8256 */ 8257 #define LCD_WF8B_BPELCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD43_SHIFT)) & LCD_WF8B_BPELCD43_MASK) 8258 8259 #define LCD_WF8B_BPFLCD43_MASK (0x20U) 8260 #define LCD_WF8B_BPFLCD43_SHIFT (5U) 8261 /*! BPFLCD43 8262 * 0b0..LCD segment off or LCD backplane inactive for phase F 8263 * 0b1..LCD segment on or LCD backplane active for phase F 8264 */ 8265 #define LCD_WF8B_BPFLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD43_SHIFT)) & LCD_WF8B_BPFLCD43_MASK) 8266 8267 #define LCD_WF8B_BPGLCD43_MASK (0x40U) 8268 #define LCD_WF8B_BPGLCD43_SHIFT (6U) 8269 /*! BPGLCD43 8270 * 0b0..LCD segment off or LCD backplane inactive for phase G 8271 * 0b1..LCD segment on or LCD backplane active for phase G 8272 */ 8273 #define LCD_WF8B_BPGLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD43_SHIFT)) & LCD_WF8B_BPGLCD43_MASK) 8274 8275 #define LCD_WF8B_BPHLCD43_MASK (0x80U) 8276 #define LCD_WF8B_BPHLCD43_SHIFT (7U) 8277 /*! BPHLCD43 8278 * 0b0..LCD segment off or LCD backplane inactive for phase H 8279 * 0b1..LCD segment on or LCD backplane active for phase H 8280 */ 8281 #define LCD_WF8B_BPHLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD43_SHIFT)) & LCD_WF8B_BPHLCD43_MASK) 8282 8283 #define LCD_WF8B_BPALCD44_MASK (0x1U) 8284 #define LCD_WF8B_BPALCD44_SHIFT (0U) 8285 /*! BPALCD44 8286 * 0b0..LCD segment off or LCD backplane inactive for phase A 8287 * 0b1..LCD segment on or LCD backplane active for phase A 8288 */ 8289 #define LCD_WF8B_BPALCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD44_SHIFT)) & LCD_WF8B_BPALCD44_MASK) 8290 8291 #define LCD_WF8B_BPBLCD44_MASK (0x2U) 8292 #define LCD_WF8B_BPBLCD44_SHIFT (1U) 8293 /*! BPBLCD44 8294 * 0b0..LCD segment off or LCD backplane inactive for phase B 8295 * 0b1..LCD segment on or LCD backplane active for phase B 8296 */ 8297 #define LCD_WF8B_BPBLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD44_SHIFT)) & LCD_WF8B_BPBLCD44_MASK) 8298 8299 #define LCD_WF8B_BPCLCD44_MASK (0x4U) 8300 #define LCD_WF8B_BPCLCD44_SHIFT (2U) 8301 /*! BPCLCD44 8302 * 0b0..LCD segment off or LCD backplane inactive for phase C 8303 * 0b1..LCD segment on or LCD backplane active for phase C 8304 */ 8305 #define LCD_WF8B_BPCLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD44_SHIFT)) & LCD_WF8B_BPCLCD44_MASK) 8306 8307 #define LCD_WF8B_BPDLCD44_MASK (0x8U) 8308 #define LCD_WF8B_BPDLCD44_SHIFT (3U) 8309 /*! BPDLCD44 8310 * 0b0..LCD segment off or LCD backplane inactive for phase D 8311 * 0b1..LCD segment on or LCD backplane active for phase D 8312 */ 8313 #define LCD_WF8B_BPDLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD44_SHIFT)) & LCD_WF8B_BPDLCD44_MASK) 8314 8315 #define LCD_WF8B_BPELCD44_MASK (0x10U) 8316 #define LCD_WF8B_BPELCD44_SHIFT (4U) 8317 /*! BPELCD44 8318 * 0b0..LCD segment off or LCD backplane inactive for phase E 8319 * 0b1..LCD segment on or LCD backplane active for phase E 8320 */ 8321 #define LCD_WF8B_BPELCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD44_SHIFT)) & LCD_WF8B_BPELCD44_MASK) 8322 8323 #define LCD_WF8B_BPFLCD44_MASK (0x20U) 8324 #define LCD_WF8B_BPFLCD44_SHIFT (5U) 8325 /*! BPFLCD44 8326 * 0b0..LCD segment off or LCD backplane inactive for phase F 8327 * 0b1..LCD segment on or LCD backplane active for phase F 8328 */ 8329 #define LCD_WF8B_BPFLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD44_SHIFT)) & LCD_WF8B_BPFLCD44_MASK) 8330 8331 #define LCD_WF8B_BPGLCD44_MASK (0x40U) 8332 #define LCD_WF8B_BPGLCD44_SHIFT (6U) 8333 /*! BPGLCD44 8334 * 0b0..LCD segment off or LCD backplane inactive for phase G 8335 * 0b1..LCD segment on or LCD backplane active for phase G 8336 */ 8337 #define LCD_WF8B_BPGLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD44_SHIFT)) & LCD_WF8B_BPGLCD44_MASK) 8338 8339 #define LCD_WF8B_BPHLCD44_MASK (0x80U) 8340 #define LCD_WF8B_BPHLCD44_SHIFT (7U) 8341 /*! BPHLCD44 8342 * 0b0..LCD segment off or LCD backplane inactive for phase H 8343 * 0b1..LCD segment on or LCD backplane active for phase H 8344 */ 8345 #define LCD_WF8B_BPHLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD44_SHIFT)) & LCD_WF8B_BPHLCD44_MASK) 8346 8347 #define LCD_WF8B_BPALCD45_MASK (0x1U) 8348 #define LCD_WF8B_BPALCD45_SHIFT (0U) 8349 /*! BPALCD45 8350 * 0b0..LCD segment off or LCD backplane inactive for phase A 8351 * 0b1..LCD segment on or LCD backplane active for phase A 8352 */ 8353 #define LCD_WF8B_BPALCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD45_SHIFT)) & LCD_WF8B_BPALCD45_MASK) 8354 8355 #define LCD_WF8B_BPBLCD45_MASK (0x2U) 8356 #define LCD_WF8B_BPBLCD45_SHIFT (1U) 8357 /*! BPBLCD45 8358 * 0b0..LCD segment off or LCD backplane inactive for phase B 8359 * 0b1..LCD segment on or LCD backplane active for phase B 8360 */ 8361 #define LCD_WF8B_BPBLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD45_SHIFT)) & LCD_WF8B_BPBLCD45_MASK) 8362 8363 #define LCD_WF8B_BPCLCD45_MASK (0x4U) 8364 #define LCD_WF8B_BPCLCD45_SHIFT (2U) 8365 /*! BPCLCD45 8366 * 0b0..LCD segment off or LCD backplane inactive for phase C 8367 * 0b1..LCD segment on or LCD backplane active for phase C 8368 */ 8369 #define LCD_WF8B_BPCLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD45_SHIFT)) & LCD_WF8B_BPCLCD45_MASK) 8370 8371 #define LCD_WF8B_BPDLCD45_MASK (0x8U) 8372 #define LCD_WF8B_BPDLCD45_SHIFT (3U) 8373 /*! BPDLCD45 8374 * 0b0..LCD segment off or LCD backplane inactive for phase D 8375 * 0b1..LCD segment on or LCD backplane active for phase D 8376 */ 8377 #define LCD_WF8B_BPDLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD45_SHIFT)) & LCD_WF8B_BPDLCD45_MASK) 8378 8379 #define LCD_WF8B_BPELCD45_MASK (0x10U) 8380 #define LCD_WF8B_BPELCD45_SHIFT (4U) 8381 /*! BPELCD45 8382 * 0b0..LCD segment off or LCD backplane inactive for phase E 8383 * 0b1..LCD segment on or LCD backplane active for phase E 8384 */ 8385 #define LCD_WF8B_BPELCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD45_SHIFT)) & LCD_WF8B_BPELCD45_MASK) 8386 8387 #define LCD_WF8B_BPFLCD45_MASK (0x20U) 8388 #define LCD_WF8B_BPFLCD45_SHIFT (5U) 8389 /*! BPFLCD45 8390 * 0b0..LCD segment off or LCD backplane inactive for phase F 8391 * 0b1..LCD segment on or LCD backplane active for phase F 8392 */ 8393 #define LCD_WF8B_BPFLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD45_SHIFT)) & LCD_WF8B_BPFLCD45_MASK) 8394 8395 #define LCD_WF8B_BPGLCD45_MASK (0x40U) 8396 #define LCD_WF8B_BPGLCD45_SHIFT (6U) 8397 /*! BPGLCD45 8398 * 0b0..LCD segment off or LCD backplane inactive for phase G 8399 * 0b1..LCD segment on or LCD backplane active for phase G 8400 */ 8401 #define LCD_WF8B_BPGLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD45_SHIFT)) & LCD_WF8B_BPGLCD45_MASK) 8402 8403 #define LCD_WF8B_BPHLCD45_MASK (0x80U) 8404 #define LCD_WF8B_BPHLCD45_SHIFT (7U) 8405 /*! BPHLCD45 8406 * 0b0..LCD segment off or LCD backplane inactive for phase H 8407 * 0b1..LCD segment on or LCD backplane active for phase H 8408 */ 8409 #define LCD_WF8B_BPHLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD45_SHIFT)) & LCD_WF8B_BPHLCD45_MASK) 8410 8411 #define LCD_WF8B_BPALCD46_MASK (0x1U) 8412 #define LCD_WF8B_BPALCD46_SHIFT (0U) 8413 /*! BPALCD46 8414 * 0b0..LCD segment off or LCD backplane inactive for phase A 8415 * 0b1..LCD segment on or LCD backplane active for phase A 8416 */ 8417 #define LCD_WF8B_BPALCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD46_SHIFT)) & LCD_WF8B_BPALCD46_MASK) 8418 8419 #define LCD_WF8B_BPBLCD46_MASK (0x2U) 8420 #define LCD_WF8B_BPBLCD46_SHIFT (1U) 8421 /*! BPBLCD46 8422 * 0b0..LCD segment off or LCD backplane inactive for phase B 8423 * 0b1..LCD segment on or LCD backplane active for phase B 8424 */ 8425 #define LCD_WF8B_BPBLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD46_SHIFT)) & LCD_WF8B_BPBLCD46_MASK) 8426 8427 #define LCD_WF8B_BPCLCD46_MASK (0x4U) 8428 #define LCD_WF8B_BPCLCD46_SHIFT (2U) 8429 /*! BPCLCD46 8430 * 0b0..LCD segment off or LCD backplane inactive for phase C 8431 * 0b1..LCD segment on or LCD backplane active for phase C 8432 */ 8433 #define LCD_WF8B_BPCLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD46_SHIFT)) & LCD_WF8B_BPCLCD46_MASK) 8434 8435 #define LCD_WF8B_BPDLCD46_MASK (0x8U) 8436 #define LCD_WF8B_BPDLCD46_SHIFT (3U) 8437 /*! BPDLCD46 8438 * 0b0..LCD segment off or LCD backplane inactive for phase D 8439 * 0b1..LCD segment on or LCD backplane active for phase D 8440 */ 8441 #define LCD_WF8B_BPDLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD46_SHIFT)) & LCD_WF8B_BPDLCD46_MASK) 8442 8443 #define LCD_WF8B_BPELCD46_MASK (0x10U) 8444 #define LCD_WF8B_BPELCD46_SHIFT (4U) 8445 /*! BPELCD46 8446 * 0b0..LCD segment off or LCD backplane inactive for phase E 8447 * 0b1..LCD segment on or LCD backplane active for phase E 8448 */ 8449 #define LCD_WF8B_BPELCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD46_SHIFT)) & LCD_WF8B_BPELCD46_MASK) 8450 8451 #define LCD_WF8B_BPFLCD46_MASK (0x20U) 8452 #define LCD_WF8B_BPFLCD46_SHIFT (5U) 8453 /*! BPFLCD46 8454 * 0b0..LCD segment off or LCD backplane inactive for phase F 8455 * 0b1..LCD segment on or LCD backplane active for phase F 8456 */ 8457 #define LCD_WF8B_BPFLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD46_SHIFT)) & LCD_WF8B_BPFLCD46_MASK) 8458 8459 #define LCD_WF8B_BPGLCD46_MASK (0x40U) 8460 #define LCD_WF8B_BPGLCD46_SHIFT (6U) 8461 /*! BPGLCD46 8462 * 0b0..LCD segment off or LCD backplane inactive for phase G 8463 * 0b1..LCD segment on or LCD backplane active for phase G 8464 */ 8465 #define LCD_WF8B_BPGLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD46_SHIFT)) & LCD_WF8B_BPGLCD46_MASK) 8466 8467 #define LCD_WF8B_BPHLCD46_MASK (0x80U) 8468 #define LCD_WF8B_BPHLCD46_SHIFT (7U) 8469 /*! BPHLCD46 8470 * 0b0..LCD segment off or LCD backplane inactive for phase H 8471 * 0b1..LCD segment on or LCD backplane active for phase H 8472 */ 8473 #define LCD_WF8B_BPHLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD46_SHIFT)) & LCD_WF8B_BPHLCD46_MASK) 8474 8475 #define LCD_WF8B_BPALCD47_MASK (0x1U) 8476 #define LCD_WF8B_BPALCD47_SHIFT (0U) 8477 /*! BPALCD47 8478 * 0b0..LCD segment off or LCD backplane inactive for phase A 8479 * 0b1..LCD segment on or LCD backplane active for phase A 8480 */ 8481 #define LCD_WF8B_BPALCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD47_SHIFT)) & LCD_WF8B_BPALCD47_MASK) 8482 8483 #define LCD_WF8B_BPBLCD47_MASK (0x2U) 8484 #define LCD_WF8B_BPBLCD47_SHIFT (1U) 8485 /*! BPBLCD47 8486 * 0b0..LCD segment off or LCD backplane inactive for phase B 8487 * 0b1..LCD segment on or LCD backplane active for phase B 8488 */ 8489 #define LCD_WF8B_BPBLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD47_SHIFT)) & LCD_WF8B_BPBLCD47_MASK) 8490 8491 #define LCD_WF8B_BPCLCD47_MASK (0x4U) 8492 #define LCD_WF8B_BPCLCD47_SHIFT (2U) 8493 /*! BPCLCD47 8494 * 0b0..LCD segment off or LCD backplane inactive for phase C 8495 * 0b1..LCD segment on or LCD backplane active for phase C 8496 */ 8497 #define LCD_WF8B_BPCLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD47_SHIFT)) & LCD_WF8B_BPCLCD47_MASK) 8498 8499 #define LCD_WF8B_BPDLCD47_MASK (0x8U) 8500 #define LCD_WF8B_BPDLCD47_SHIFT (3U) 8501 /*! BPDLCD47 8502 * 0b0..LCD segment off or LCD backplane inactive for phase D 8503 * 0b1..LCD segment on or LCD backplane active for phase D 8504 */ 8505 #define LCD_WF8B_BPDLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD47_SHIFT)) & LCD_WF8B_BPDLCD47_MASK) 8506 8507 #define LCD_WF8B_BPELCD47_MASK (0x10U) 8508 #define LCD_WF8B_BPELCD47_SHIFT (4U) 8509 /*! BPELCD47 8510 * 0b0..LCD segment off or LCD backplane inactive for phase E 8511 * 0b1..LCD segment on or LCD backplane active for phase E 8512 */ 8513 #define LCD_WF8B_BPELCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD47_SHIFT)) & LCD_WF8B_BPELCD47_MASK) 8514 8515 #define LCD_WF8B_BPFLCD47_MASK (0x20U) 8516 #define LCD_WF8B_BPFLCD47_SHIFT (5U) 8517 /*! BPFLCD47 8518 * 0b0..LCD segment off or LCD backplane inactive for phase F 8519 * 0b1..LCD segment on or LCD backplane active for phase F 8520 */ 8521 #define LCD_WF8B_BPFLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD47_SHIFT)) & LCD_WF8B_BPFLCD47_MASK) 8522 8523 #define LCD_WF8B_BPGLCD47_MASK (0x40U) 8524 #define LCD_WF8B_BPGLCD47_SHIFT (6U) 8525 /*! BPGLCD47 8526 * 0b0..LCD segment off or LCD backplane inactive for phase G 8527 * 0b1..LCD segment on or LCD backplane active for phase G 8528 */ 8529 #define LCD_WF8B_BPGLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD47_SHIFT)) & LCD_WF8B_BPGLCD47_MASK) 8530 8531 #define LCD_WF8B_BPHLCD47_MASK (0x80U) 8532 #define LCD_WF8B_BPHLCD47_SHIFT (7U) 8533 /*! BPHLCD47 8534 * 0b0..LCD segment off or LCD backplane inactive for phase H 8535 * 0b1..LCD segment on or LCD backplane active for phase H 8536 */ 8537 #define LCD_WF8B_BPHLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD47_SHIFT)) & LCD_WF8B_BPHLCD47_MASK) 8538 8539 #define LCD_WF8B_BPALCD48_MASK (0x1U) 8540 #define LCD_WF8B_BPALCD48_SHIFT (0U) 8541 /*! BPALCD48 8542 * 0b0..LCD segment off or LCD backplane inactive for phase A 8543 * 0b1..LCD segment on or LCD backplane active for phase A 8544 */ 8545 #define LCD_WF8B_BPALCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD48_SHIFT)) & LCD_WF8B_BPALCD48_MASK) 8546 8547 #define LCD_WF8B_BPBLCD48_MASK (0x2U) 8548 #define LCD_WF8B_BPBLCD48_SHIFT (1U) 8549 /*! BPBLCD48 8550 * 0b0..LCD segment off or LCD backplane inactive for phase B 8551 * 0b1..LCD segment on or LCD backplane active for phase B 8552 */ 8553 #define LCD_WF8B_BPBLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD48_SHIFT)) & LCD_WF8B_BPBLCD48_MASK) 8554 8555 #define LCD_WF8B_BPCLCD48_MASK (0x4U) 8556 #define LCD_WF8B_BPCLCD48_SHIFT (2U) 8557 /*! BPCLCD48 8558 * 0b0..LCD segment off or LCD backplane inactive for phase C 8559 * 0b1..LCD segment on or LCD backplane active for phase C 8560 */ 8561 #define LCD_WF8B_BPCLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD48_SHIFT)) & LCD_WF8B_BPCLCD48_MASK) 8562 8563 #define LCD_WF8B_BPDLCD48_MASK (0x8U) 8564 #define LCD_WF8B_BPDLCD48_SHIFT (3U) 8565 /*! BPDLCD48 8566 * 0b0..LCD segment off or LCD backplane inactive for phase D 8567 * 0b1..LCD segment on or LCD backplane active for phase D 8568 */ 8569 #define LCD_WF8B_BPDLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD48_SHIFT)) & LCD_WF8B_BPDLCD48_MASK) 8570 8571 #define LCD_WF8B_BPELCD48_MASK (0x10U) 8572 #define LCD_WF8B_BPELCD48_SHIFT (4U) 8573 /*! BPELCD48 8574 * 0b0..LCD segment off or LCD backplane inactive for phase E 8575 * 0b1..LCD segment on or LCD backplane active for phase E 8576 */ 8577 #define LCD_WF8B_BPELCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD48_SHIFT)) & LCD_WF8B_BPELCD48_MASK) 8578 8579 #define LCD_WF8B_BPFLCD48_MASK (0x20U) 8580 #define LCD_WF8B_BPFLCD48_SHIFT (5U) 8581 /*! BPFLCD48 8582 * 0b0..LCD segment off or LCD backplane inactive for phase F 8583 * 0b1..LCD segment on or LCD backplane active for phase F 8584 */ 8585 #define LCD_WF8B_BPFLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD48_SHIFT)) & LCD_WF8B_BPFLCD48_MASK) 8586 8587 #define LCD_WF8B_BPGLCD48_MASK (0x40U) 8588 #define LCD_WF8B_BPGLCD48_SHIFT (6U) 8589 /*! BPGLCD48 8590 * 0b0..LCD segment off or LCD backplane inactive for phase G 8591 * 0b1..LCD segment on or LCD backplane active for phase G 8592 */ 8593 #define LCD_WF8B_BPGLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD48_SHIFT)) & LCD_WF8B_BPGLCD48_MASK) 8594 8595 #define LCD_WF8B_BPHLCD48_MASK (0x80U) 8596 #define LCD_WF8B_BPHLCD48_SHIFT (7U) 8597 /*! BPHLCD48 8598 * 0b0..LCD segment off or LCD backplane inactive for phase H 8599 * 0b1..LCD segment on or LCD backplane active for phase H 8600 */ 8601 #define LCD_WF8B_BPHLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD48_SHIFT)) & LCD_WF8B_BPHLCD48_MASK) 8602 8603 #define LCD_WF8B_BPALCD49_MASK (0x1U) 8604 #define LCD_WF8B_BPALCD49_SHIFT (0U) 8605 /*! BPALCD49 8606 * 0b0..LCD segment off or LCD backplane inactive for phase A 8607 * 0b1..LCD segment on or LCD backplane active for phase A 8608 */ 8609 #define LCD_WF8B_BPALCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD49_SHIFT)) & LCD_WF8B_BPALCD49_MASK) 8610 8611 #define LCD_WF8B_BPBLCD49_MASK (0x2U) 8612 #define LCD_WF8B_BPBLCD49_SHIFT (1U) 8613 /*! BPBLCD49 8614 * 0b0..LCD segment off or LCD backplane inactive for phase B 8615 * 0b1..LCD segment on or LCD backplane active for phase B 8616 */ 8617 #define LCD_WF8B_BPBLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD49_SHIFT)) & LCD_WF8B_BPBLCD49_MASK) 8618 8619 #define LCD_WF8B_BPCLCD49_MASK (0x4U) 8620 #define LCD_WF8B_BPCLCD49_SHIFT (2U) 8621 /*! BPCLCD49 8622 * 0b0..LCD segment off or LCD backplane inactive for phase C 8623 * 0b1..LCD segment on or LCD backplane active for phase C 8624 */ 8625 #define LCD_WF8B_BPCLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD49_SHIFT)) & LCD_WF8B_BPCLCD49_MASK) 8626 8627 #define LCD_WF8B_BPDLCD49_MASK (0x8U) 8628 #define LCD_WF8B_BPDLCD49_SHIFT (3U) 8629 /*! BPDLCD49 8630 * 0b0..LCD segment off or LCD backplane inactive for phase D 8631 * 0b1..LCD segment on or LCD backplane active for phase D 8632 */ 8633 #define LCD_WF8B_BPDLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD49_SHIFT)) & LCD_WF8B_BPDLCD49_MASK) 8634 8635 #define LCD_WF8B_BPELCD49_MASK (0x10U) 8636 #define LCD_WF8B_BPELCD49_SHIFT (4U) 8637 /*! BPELCD49 8638 * 0b0..LCD segment off or LCD backplane inactive for phase E 8639 * 0b1..LCD segment on or LCD backplane active for phase E 8640 */ 8641 #define LCD_WF8B_BPELCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD49_SHIFT)) & LCD_WF8B_BPELCD49_MASK) 8642 8643 #define LCD_WF8B_BPFLCD49_MASK (0x20U) 8644 #define LCD_WF8B_BPFLCD49_SHIFT (5U) 8645 /*! BPFLCD49 8646 * 0b0..LCD segment off or LCD backplane inactive for phase F 8647 * 0b1..LCD segment on or LCD backplane active for phase F 8648 */ 8649 #define LCD_WF8B_BPFLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD49_SHIFT)) & LCD_WF8B_BPFLCD49_MASK) 8650 8651 #define LCD_WF8B_BPGLCD49_MASK (0x40U) 8652 #define LCD_WF8B_BPGLCD49_SHIFT (6U) 8653 /*! BPGLCD49 8654 * 0b0..LCD segment off or LCD backplane inactive for phase G 8655 * 0b1..LCD segment on or LCD backplane active for phase G 8656 */ 8657 #define LCD_WF8B_BPGLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD49_SHIFT)) & LCD_WF8B_BPGLCD49_MASK) 8658 8659 #define LCD_WF8B_BPHLCD49_MASK (0x80U) 8660 #define LCD_WF8B_BPHLCD49_SHIFT (7U) 8661 /*! BPHLCD49 8662 * 0b0..LCD segment off or LCD backplane inactive for phase H 8663 * 0b1..LCD segment on or LCD backplane active for phase H 8664 */ 8665 #define LCD_WF8B_BPHLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD49_SHIFT)) & LCD_WF8B_BPHLCD49_MASK) 8666 8667 #define LCD_WF8B_BPALCD50_MASK (0x1U) 8668 #define LCD_WF8B_BPALCD50_SHIFT (0U) 8669 /*! BPALCD50 8670 * 0b0..LCD segment off or LCD backplane inactive for phase A 8671 * 0b1..LCD segment on or LCD backplane active for phase A 8672 */ 8673 #define LCD_WF8B_BPALCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD50_SHIFT)) & LCD_WF8B_BPALCD50_MASK) 8674 8675 #define LCD_WF8B_BPBLCD50_MASK (0x2U) 8676 #define LCD_WF8B_BPBLCD50_SHIFT (1U) 8677 /*! BPBLCD50 8678 * 0b0..LCD segment off or LCD backplane inactive for phase B 8679 * 0b1..LCD segment on or LCD backplane active for phase B 8680 */ 8681 #define LCD_WF8B_BPBLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD50_SHIFT)) & LCD_WF8B_BPBLCD50_MASK) 8682 8683 #define LCD_WF8B_BPCLCD50_MASK (0x4U) 8684 #define LCD_WF8B_BPCLCD50_SHIFT (2U) 8685 /*! BPCLCD50 8686 * 0b0..LCD segment off or LCD backplane inactive for phase C 8687 * 0b1..LCD segment on or LCD backplane active for phase C 8688 */ 8689 #define LCD_WF8B_BPCLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD50_SHIFT)) & LCD_WF8B_BPCLCD50_MASK) 8690 8691 #define LCD_WF8B_BPDLCD50_MASK (0x8U) 8692 #define LCD_WF8B_BPDLCD50_SHIFT (3U) 8693 /*! BPDLCD50 8694 * 0b0..LCD segment off or LCD backplane inactive for phase D 8695 * 0b1..LCD segment on or LCD backplane active for phase D 8696 */ 8697 #define LCD_WF8B_BPDLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD50_SHIFT)) & LCD_WF8B_BPDLCD50_MASK) 8698 8699 #define LCD_WF8B_BPELCD50_MASK (0x10U) 8700 #define LCD_WF8B_BPELCD50_SHIFT (4U) 8701 /*! BPELCD50 8702 * 0b0..LCD segment off or LCD backplane inactive for phase E 8703 * 0b1..LCD segment on or LCD backplane active for phase E 8704 */ 8705 #define LCD_WF8B_BPELCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD50_SHIFT)) & LCD_WF8B_BPELCD50_MASK) 8706 8707 #define LCD_WF8B_BPFLCD50_MASK (0x20U) 8708 #define LCD_WF8B_BPFLCD50_SHIFT (5U) 8709 /*! BPFLCD50 8710 * 0b0..LCD segment off or LCD backplane inactive for phase F 8711 * 0b1..LCD segment on or LCD backplane active for phase F 8712 */ 8713 #define LCD_WF8B_BPFLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD50_SHIFT)) & LCD_WF8B_BPFLCD50_MASK) 8714 8715 #define LCD_WF8B_BPGLCD50_MASK (0x40U) 8716 #define LCD_WF8B_BPGLCD50_SHIFT (6U) 8717 /*! BPGLCD50 8718 * 0b0..LCD segment off or LCD backplane inactive for phase G 8719 * 0b1..LCD segment on or LCD backplane active for phase G 8720 */ 8721 #define LCD_WF8B_BPGLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD50_SHIFT)) & LCD_WF8B_BPGLCD50_MASK) 8722 8723 #define LCD_WF8B_BPHLCD50_MASK (0x80U) 8724 #define LCD_WF8B_BPHLCD50_SHIFT (7U) 8725 /*! BPHLCD50 8726 * 0b0..LCD segment off or LCD backplane inactive for phase H 8727 * 0b1..LCD segment on or LCD backplane active for phase H 8728 */ 8729 #define LCD_WF8B_BPHLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD50_SHIFT)) & LCD_WF8B_BPHLCD50_MASK) 8730 8731 #define LCD_WF8B_BPALCD51_MASK (0x1U) 8732 #define LCD_WF8B_BPALCD51_SHIFT (0U) 8733 /*! BPALCD51 8734 * 0b0..LCD segment off or LCD backplane inactive for phase A 8735 * 0b1..LCD segment on or LCD backplane active for phase A 8736 */ 8737 #define LCD_WF8B_BPALCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD51_SHIFT)) & LCD_WF8B_BPALCD51_MASK) 8738 8739 #define LCD_WF8B_BPBLCD51_MASK (0x2U) 8740 #define LCD_WF8B_BPBLCD51_SHIFT (1U) 8741 /*! BPBLCD51 8742 * 0b0..LCD segment off or LCD backplane inactive for phase B 8743 * 0b1..LCD segment on or LCD backplane active for phase B 8744 */ 8745 #define LCD_WF8B_BPBLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD51_SHIFT)) & LCD_WF8B_BPBLCD51_MASK) 8746 8747 #define LCD_WF8B_BPCLCD51_MASK (0x4U) 8748 #define LCD_WF8B_BPCLCD51_SHIFT (2U) 8749 /*! BPCLCD51 8750 * 0b0..LCD segment off or LCD backplane inactive for phase C 8751 * 0b1..LCD segment on or LCD backplane active for phase C 8752 */ 8753 #define LCD_WF8B_BPCLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD51_SHIFT)) & LCD_WF8B_BPCLCD51_MASK) 8754 8755 #define LCD_WF8B_BPDLCD51_MASK (0x8U) 8756 #define LCD_WF8B_BPDLCD51_SHIFT (3U) 8757 /*! BPDLCD51 8758 * 0b0..LCD segment off or LCD backplane inactive for phase D 8759 * 0b1..LCD segment on or LCD backplane active for phase D 8760 */ 8761 #define LCD_WF8B_BPDLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD51_SHIFT)) & LCD_WF8B_BPDLCD51_MASK) 8762 8763 #define LCD_WF8B_BPELCD51_MASK (0x10U) 8764 #define LCD_WF8B_BPELCD51_SHIFT (4U) 8765 /*! BPELCD51 8766 * 0b0..LCD segment off or LCD backplane inactive for phase E 8767 * 0b1..LCD segment on or LCD backplane active for phase E 8768 */ 8769 #define LCD_WF8B_BPELCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD51_SHIFT)) & LCD_WF8B_BPELCD51_MASK) 8770 8771 #define LCD_WF8B_BPFLCD51_MASK (0x20U) 8772 #define LCD_WF8B_BPFLCD51_SHIFT (5U) 8773 /*! BPFLCD51 8774 * 0b0..LCD segment off or LCD backplane inactive for phase F 8775 * 0b1..LCD segment on or LCD backplane active for phase F 8776 */ 8777 #define LCD_WF8B_BPFLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD51_SHIFT)) & LCD_WF8B_BPFLCD51_MASK) 8778 8779 #define LCD_WF8B_BPGLCD51_MASK (0x40U) 8780 #define LCD_WF8B_BPGLCD51_SHIFT (6U) 8781 /*! BPGLCD51 8782 * 0b0..LCD segment off or LCD backplane inactive for phase G 8783 * 0b1..LCD segment on or LCD backplane active for phase G 8784 */ 8785 #define LCD_WF8B_BPGLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD51_SHIFT)) & LCD_WF8B_BPGLCD51_MASK) 8786 8787 #define LCD_WF8B_BPHLCD51_MASK (0x80U) 8788 #define LCD_WF8B_BPHLCD51_SHIFT (7U) 8789 /*! BPHLCD51 8790 * 0b0..LCD segment off or LCD backplane inactive for phase H 8791 * 0b1..LCD segment on or LCD backplane active for phase H 8792 */ 8793 #define LCD_WF8B_BPHLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD51_SHIFT)) & LCD_WF8B_BPHLCD51_MASK) 8794 8795 #define LCD_WF8B_BPALCD52_MASK (0x1U) 8796 #define LCD_WF8B_BPALCD52_SHIFT (0U) 8797 /*! BPALCD52 8798 * 0b0..LCD segment off or LCD backplane inactive for phase A 8799 * 0b1..LCD segment on or LCD backplane active for phase A 8800 */ 8801 #define LCD_WF8B_BPALCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD52_SHIFT)) & LCD_WF8B_BPALCD52_MASK) 8802 8803 #define LCD_WF8B_BPBLCD52_MASK (0x2U) 8804 #define LCD_WF8B_BPBLCD52_SHIFT (1U) 8805 /*! BPBLCD52 8806 * 0b0..LCD segment off or LCD backplane inactive for phase B 8807 * 0b1..LCD segment on or LCD backplane active for phase B 8808 */ 8809 #define LCD_WF8B_BPBLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD52_SHIFT)) & LCD_WF8B_BPBLCD52_MASK) 8810 8811 #define LCD_WF8B_BPCLCD52_MASK (0x4U) 8812 #define LCD_WF8B_BPCLCD52_SHIFT (2U) 8813 /*! BPCLCD52 8814 * 0b0..LCD segment off or LCD backplane inactive for phase C 8815 * 0b1..LCD segment on or LCD backplane active for phase C 8816 */ 8817 #define LCD_WF8B_BPCLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD52_SHIFT)) & LCD_WF8B_BPCLCD52_MASK) 8818 8819 #define LCD_WF8B_BPDLCD52_MASK (0x8U) 8820 #define LCD_WF8B_BPDLCD52_SHIFT (3U) 8821 /*! BPDLCD52 8822 * 0b0..LCD segment off or LCD backplane inactive for phase D 8823 * 0b1..LCD segment on or LCD backplane active for phase D 8824 */ 8825 #define LCD_WF8B_BPDLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD52_SHIFT)) & LCD_WF8B_BPDLCD52_MASK) 8826 8827 #define LCD_WF8B_BPELCD52_MASK (0x10U) 8828 #define LCD_WF8B_BPELCD52_SHIFT (4U) 8829 /*! BPELCD52 8830 * 0b0..LCD segment off or LCD backplane inactive for phase E 8831 * 0b1..LCD segment on or LCD backplane active for phase E 8832 */ 8833 #define LCD_WF8B_BPELCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD52_SHIFT)) & LCD_WF8B_BPELCD52_MASK) 8834 8835 #define LCD_WF8B_BPFLCD52_MASK (0x20U) 8836 #define LCD_WF8B_BPFLCD52_SHIFT (5U) 8837 /*! BPFLCD52 8838 * 0b0..LCD segment off or LCD backplane inactive for phase F 8839 * 0b1..LCD segment on or LCD backplane active for phase F 8840 */ 8841 #define LCD_WF8B_BPFLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD52_SHIFT)) & LCD_WF8B_BPFLCD52_MASK) 8842 8843 #define LCD_WF8B_BPGLCD52_MASK (0x40U) 8844 #define LCD_WF8B_BPGLCD52_SHIFT (6U) 8845 /*! BPGLCD52 8846 * 0b0..LCD segment off or LCD backplane inactive for phase G 8847 * 0b1..LCD segment on or LCD backplane active for phase G 8848 */ 8849 #define LCD_WF8B_BPGLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD52_SHIFT)) & LCD_WF8B_BPGLCD52_MASK) 8850 8851 #define LCD_WF8B_BPHLCD52_MASK (0x80U) 8852 #define LCD_WF8B_BPHLCD52_SHIFT (7U) 8853 /*! BPHLCD52 8854 * 0b0..LCD segment off or LCD backplane inactive for phase H 8855 * 0b1..LCD segment on or LCD backplane active for phase H 8856 */ 8857 #define LCD_WF8B_BPHLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD52_SHIFT)) & LCD_WF8B_BPHLCD52_MASK) 8858 8859 #define LCD_WF8B_BPALCD53_MASK (0x1U) 8860 #define LCD_WF8B_BPALCD53_SHIFT (0U) 8861 /*! BPALCD53 8862 * 0b0..LCD segment off or LCD backplane inactive for phase A 8863 * 0b1..LCD segment on or LCD backplane active for phase A 8864 */ 8865 #define LCD_WF8B_BPALCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD53_SHIFT)) & LCD_WF8B_BPALCD53_MASK) 8866 8867 #define LCD_WF8B_BPBLCD53_MASK (0x2U) 8868 #define LCD_WF8B_BPBLCD53_SHIFT (1U) 8869 /*! BPBLCD53 8870 * 0b0..LCD segment off or LCD backplane inactive for phase B 8871 * 0b1..LCD segment on or LCD backplane active for phase B 8872 */ 8873 #define LCD_WF8B_BPBLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD53_SHIFT)) & LCD_WF8B_BPBLCD53_MASK) 8874 8875 #define LCD_WF8B_BPCLCD53_MASK (0x4U) 8876 #define LCD_WF8B_BPCLCD53_SHIFT (2U) 8877 /*! BPCLCD53 8878 * 0b0..LCD segment off or LCD backplane inactive for phase C 8879 * 0b1..LCD segment on or LCD backplane active for phase C 8880 */ 8881 #define LCD_WF8B_BPCLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD53_SHIFT)) & LCD_WF8B_BPCLCD53_MASK) 8882 8883 #define LCD_WF8B_BPDLCD53_MASK (0x8U) 8884 #define LCD_WF8B_BPDLCD53_SHIFT (3U) 8885 /*! BPDLCD53 8886 * 0b0..LCD segment off or LCD backplane inactive for phase D 8887 * 0b1..LCD segment on or LCD backplane active for phase D 8888 */ 8889 #define LCD_WF8B_BPDLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD53_SHIFT)) & LCD_WF8B_BPDLCD53_MASK) 8890 8891 #define LCD_WF8B_BPELCD53_MASK (0x10U) 8892 #define LCD_WF8B_BPELCD53_SHIFT (4U) 8893 /*! BPELCD53 8894 * 0b0..LCD segment off or LCD backplane inactive for phase E 8895 * 0b1..LCD segment on or LCD backplane active for phase E 8896 */ 8897 #define LCD_WF8B_BPELCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD53_SHIFT)) & LCD_WF8B_BPELCD53_MASK) 8898 8899 #define LCD_WF8B_BPFLCD53_MASK (0x20U) 8900 #define LCD_WF8B_BPFLCD53_SHIFT (5U) 8901 /*! BPFLCD53 8902 * 0b0..LCD segment off or LCD backplane inactive for phase F 8903 * 0b1..LCD segment on or LCD backplane active for phase F 8904 */ 8905 #define LCD_WF8B_BPFLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD53_SHIFT)) & LCD_WF8B_BPFLCD53_MASK) 8906 8907 #define LCD_WF8B_BPGLCD53_MASK (0x40U) 8908 #define LCD_WF8B_BPGLCD53_SHIFT (6U) 8909 /*! BPGLCD53 8910 * 0b0..LCD segment off or LCD backplane inactive for phase G 8911 * 0b1..LCD segment on or LCD backplane active for phase G 8912 */ 8913 #define LCD_WF8B_BPGLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD53_SHIFT)) & LCD_WF8B_BPGLCD53_MASK) 8914 8915 #define LCD_WF8B_BPHLCD53_MASK (0x80U) 8916 #define LCD_WF8B_BPHLCD53_SHIFT (7U) 8917 /*! BPHLCD53 8918 * 0b0..LCD segment off or LCD backplane inactive for phase H 8919 * 0b1..LCD segment on or LCD backplane active for phase H 8920 */ 8921 #define LCD_WF8B_BPHLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD53_SHIFT)) & LCD_WF8B_BPHLCD53_MASK) 8922 8923 #define LCD_WF8B_BPALCD54_MASK (0x1U) 8924 #define LCD_WF8B_BPALCD54_SHIFT (0U) 8925 /*! BPALCD54 8926 * 0b0..LCD segment off or LCD backplane inactive for phase A 8927 * 0b1..LCD segment on or LCD backplane active for phase A 8928 */ 8929 #define LCD_WF8B_BPALCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD54_SHIFT)) & LCD_WF8B_BPALCD54_MASK) 8930 8931 #define LCD_WF8B_BPBLCD54_MASK (0x2U) 8932 #define LCD_WF8B_BPBLCD54_SHIFT (1U) 8933 /*! BPBLCD54 8934 * 0b0..LCD segment off or LCD backplane inactive for phase B 8935 * 0b1..LCD segment on or LCD backplane active for phase B 8936 */ 8937 #define LCD_WF8B_BPBLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD54_SHIFT)) & LCD_WF8B_BPBLCD54_MASK) 8938 8939 #define LCD_WF8B_BPCLCD54_MASK (0x4U) 8940 #define LCD_WF8B_BPCLCD54_SHIFT (2U) 8941 /*! BPCLCD54 8942 * 0b0..LCD segment off or LCD backplane inactive for phase C 8943 * 0b1..LCD segment on or LCD backplane active for phase C 8944 */ 8945 #define LCD_WF8B_BPCLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD54_SHIFT)) & LCD_WF8B_BPCLCD54_MASK) 8946 8947 #define LCD_WF8B_BPDLCD54_MASK (0x8U) 8948 #define LCD_WF8B_BPDLCD54_SHIFT (3U) 8949 /*! BPDLCD54 8950 * 0b0..LCD segment off or LCD backplane inactive for phase D 8951 * 0b1..LCD segment on or LCD backplane active for phase D 8952 */ 8953 #define LCD_WF8B_BPDLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD54_SHIFT)) & LCD_WF8B_BPDLCD54_MASK) 8954 8955 #define LCD_WF8B_BPELCD54_MASK (0x10U) 8956 #define LCD_WF8B_BPELCD54_SHIFT (4U) 8957 /*! BPELCD54 8958 * 0b0..LCD segment off or LCD backplane inactive for phase E 8959 * 0b1..LCD segment on or LCD backplane active for phase E 8960 */ 8961 #define LCD_WF8B_BPELCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD54_SHIFT)) & LCD_WF8B_BPELCD54_MASK) 8962 8963 #define LCD_WF8B_BPFLCD54_MASK (0x20U) 8964 #define LCD_WF8B_BPFLCD54_SHIFT (5U) 8965 /*! BPFLCD54 8966 * 0b0..LCD segment off or LCD backplane inactive for phase F 8967 * 0b1..LCD segment on or LCD backplane active for phase F 8968 */ 8969 #define LCD_WF8B_BPFLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD54_SHIFT)) & LCD_WF8B_BPFLCD54_MASK) 8970 8971 #define LCD_WF8B_BPGLCD54_MASK (0x40U) 8972 #define LCD_WF8B_BPGLCD54_SHIFT (6U) 8973 /*! BPGLCD54 8974 * 0b0..LCD segment off or LCD backplane inactive for phase G 8975 * 0b1..LCD segment on or LCD backplane active for phase G 8976 */ 8977 #define LCD_WF8B_BPGLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD54_SHIFT)) & LCD_WF8B_BPGLCD54_MASK) 8978 8979 #define LCD_WF8B_BPHLCD54_MASK (0x80U) 8980 #define LCD_WF8B_BPHLCD54_SHIFT (7U) 8981 /*! BPHLCD54 8982 * 0b0..LCD segment off or LCD backplane inactive for phase H 8983 * 0b1..LCD segment on or LCD backplane active for phase H 8984 */ 8985 #define LCD_WF8B_BPHLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD54_SHIFT)) & LCD_WF8B_BPHLCD54_MASK) 8986 8987 #define LCD_WF8B_BPALCD55_MASK (0x1U) 8988 #define LCD_WF8B_BPALCD55_SHIFT (0U) 8989 /*! BPALCD55 8990 * 0b0..LCD segment off or LCD backplane inactive for phase A 8991 * 0b1..LCD segment on or LCD backplane active for phase A 8992 */ 8993 #define LCD_WF8B_BPALCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD55_SHIFT)) & LCD_WF8B_BPALCD55_MASK) 8994 8995 #define LCD_WF8B_BPBLCD55_MASK (0x2U) 8996 #define LCD_WF8B_BPBLCD55_SHIFT (1U) 8997 /*! BPBLCD55 8998 * 0b0..LCD segment off or LCD backplane inactive for phase B 8999 * 0b1..LCD segment on or LCD backplane active for phase B 9000 */ 9001 #define LCD_WF8B_BPBLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD55_SHIFT)) & LCD_WF8B_BPBLCD55_MASK) 9002 9003 #define LCD_WF8B_BPCLCD55_MASK (0x4U) 9004 #define LCD_WF8B_BPCLCD55_SHIFT (2U) 9005 /*! BPCLCD55 9006 * 0b0..LCD segment off or LCD backplane inactive for phase C 9007 * 0b1..LCD segment on or LCD backplane active for phase C 9008 */ 9009 #define LCD_WF8B_BPCLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD55_SHIFT)) & LCD_WF8B_BPCLCD55_MASK) 9010 9011 #define LCD_WF8B_BPDLCD55_MASK (0x8U) 9012 #define LCD_WF8B_BPDLCD55_SHIFT (3U) 9013 /*! BPDLCD55 9014 * 0b0..LCD segment off or LCD backplane inactive for phase D 9015 * 0b1..LCD segment on or LCD backplane active for phase D 9016 */ 9017 #define LCD_WF8B_BPDLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD55_SHIFT)) & LCD_WF8B_BPDLCD55_MASK) 9018 9019 #define LCD_WF8B_BPELCD55_MASK (0x10U) 9020 #define LCD_WF8B_BPELCD55_SHIFT (4U) 9021 /*! BPELCD55 9022 * 0b0..LCD segment off or LCD backplane inactive for phase E 9023 * 0b1..LCD segment on or LCD backplane active for phase E 9024 */ 9025 #define LCD_WF8B_BPELCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD55_SHIFT)) & LCD_WF8B_BPELCD55_MASK) 9026 9027 #define LCD_WF8B_BPFLCD55_MASK (0x20U) 9028 #define LCD_WF8B_BPFLCD55_SHIFT (5U) 9029 /*! BPFLCD55 9030 * 0b0..LCD segment off or LCD backplane inactive for phase F 9031 * 0b1..LCD segment on or LCD backplane active for phase F 9032 */ 9033 #define LCD_WF8B_BPFLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD55_SHIFT)) & LCD_WF8B_BPFLCD55_MASK) 9034 9035 #define LCD_WF8B_BPGLCD55_MASK (0x40U) 9036 #define LCD_WF8B_BPGLCD55_SHIFT (6U) 9037 /*! BPGLCD55 9038 * 0b0..LCD segment off or LCD backplane inactive for phase G 9039 * 0b1..LCD segment on or LCD backplane active for phase G 9040 */ 9041 #define LCD_WF8B_BPGLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD55_SHIFT)) & LCD_WF8B_BPGLCD55_MASK) 9042 9043 #define LCD_WF8B_BPHLCD55_MASK (0x80U) 9044 #define LCD_WF8B_BPHLCD55_SHIFT (7U) 9045 /*! BPHLCD55 9046 * 0b0..LCD segment off or LCD backplane inactive for phase H 9047 * 0b1..LCD segment on or LCD backplane active for phase H 9048 */ 9049 #define LCD_WF8B_BPHLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD55_SHIFT)) & LCD_WF8B_BPHLCD55_MASK) 9050 9051 #define LCD_WF8B_BPALCD56_MASK (0x1U) 9052 #define LCD_WF8B_BPALCD56_SHIFT (0U) 9053 /*! BPALCD56 9054 * 0b0..LCD segment off or LCD backplane inactive for phase A 9055 * 0b1..LCD segment on or LCD backplane active for phase A 9056 */ 9057 #define LCD_WF8B_BPALCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD56_SHIFT)) & LCD_WF8B_BPALCD56_MASK) 9058 9059 #define LCD_WF8B_BPBLCD56_MASK (0x2U) 9060 #define LCD_WF8B_BPBLCD56_SHIFT (1U) 9061 /*! BPBLCD56 9062 * 0b0..LCD segment off or LCD backplane inactive for phase B 9063 * 0b1..LCD segment on or LCD backplane active for phase B 9064 */ 9065 #define LCD_WF8B_BPBLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD56_SHIFT)) & LCD_WF8B_BPBLCD56_MASK) 9066 9067 #define LCD_WF8B_BPCLCD56_MASK (0x4U) 9068 #define LCD_WF8B_BPCLCD56_SHIFT (2U) 9069 /*! BPCLCD56 9070 * 0b0..LCD segment off or LCD backplane inactive for phase C 9071 * 0b1..LCD segment on or LCD backplane active for phase C 9072 */ 9073 #define LCD_WF8B_BPCLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD56_SHIFT)) & LCD_WF8B_BPCLCD56_MASK) 9074 9075 #define LCD_WF8B_BPDLCD56_MASK (0x8U) 9076 #define LCD_WF8B_BPDLCD56_SHIFT (3U) 9077 /*! BPDLCD56 9078 * 0b0..LCD segment off or LCD backplane inactive for phase D 9079 * 0b1..LCD segment on or LCD backplane active for phase D 9080 */ 9081 #define LCD_WF8B_BPDLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD56_SHIFT)) & LCD_WF8B_BPDLCD56_MASK) 9082 9083 #define LCD_WF8B_BPELCD56_MASK (0x10U) 9084 #define LCD_WF8B_BPELCD56_SHIFT (4U) 9085 /*! BPELCD56 9086 * 0b0..LCD segment off or LCD backplane inactive for phase E 9087 * 0b1..LCD segment on or LCD backplane active for phase E 9088 */ 9089 #define LCD_WF8B_BPELCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD56_SHIFT)) & LCD_WF8B_BPELCD56_MASK) 9090 9091 #define LCD_WF8B_BPFLCD56_MASK (0x20U) 9092 #define LCD_WF8B_BPFLCD56_SHIFT (5U) 9093 /*! BPFLCD56 9094 * 0b0..LCD segment off or LCD backplane inactive for phase F 9095 * 0b1..LCD segment on or LCD backplane active for phase F 9096 */ 9097 #define LCD_WF8B_BPFLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD56_SHIFT)) & LCD_WF8B_BPFLCD56_MASK) 9098 9099 #define LCD_WF8B_BPGLCD56_MASK (0x40U) 9100 #define LCD_WF8B_BPGLCD56_SHIFT (6U) 9101 /*! BPGLCD56 9102 * 0b0..LCD segment off or LCD backplane inactive for phase G 9103 * 0b1..LCD segment on or LCD backplane active for phase G 9104 */ 9105 #define LCD_WF8B_BPGLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD56_SHIFT)) & LCD_WF8B_BPGLCD56_MASK) 9106 9107 #define LCD_WF8B_BPHLCD56_MASK (0x80U) 9108 #define LCD_WF8B_BPHLCD56_SHIFT (7U) 9109 /*! BPHLCD56 9110 * 0b0..LCD segment off or LCD backplane inactive for phase H 9111 * 0b1..LCD segment on or LCD backplane active for phase H 9112 */ 9113 #define LCD_WF8B_BPHLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD56_SHIFT)) & LCD_WF8B_BPHLCD56_MASK) 9114 9115 #define LCD_WF8B_BPALCD57_MASK (0x1U) 9116 #define LCD_WF8B_BPALCD57_SHIFT (0U) 9117 /*! BPALCD57 9118 * 0b0..LCD segment off or LCD backplane inactive for phase A 9119 * 0b1..LCD segment on or LCD backplane active for phase A 9120 */ 9121 #define LCD_WF8B_BPALCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD57_SHIFT)) & LCD_WF8B_BPALCD57_MASK) 9122 9123 #define LCD_WF8B_BPBLCD57_MASK (0x2U) 9124 #define LCD_WF8B_BPBLCD57_SHIFT (1U) 9125 /*! BPBLCD57 9126 * 0b0..LCD segment off or LCD backplane inactive for phase B 9127 * 0b1..LCD segment on or LCD backplane active for phase B 9128 */ 9129 #define LCD_WF8B_BPBLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD57_SHIFT)) & LCD_WF8B_BPBLCD57_MASK) 9130 9131 #define LCD_WF8B_BPCLCD57_MASK (0x4U) 9132 #define LCD_WF8B_BPCLCD57_SHIFT (2U) 9133 /*! BPCLCD57 9134 * 0b0..LCD segment off or LCD backplane inactive for phase C 9135 * 0b1..LCD segment on or LCD backplane active for phase C 9136 */ 9137 #define LCD_WF8B_BPCLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD57_SHIFT)) & LCD_WF8B_BPCLCD57_MASK) 9138 9139 #define LCD_WF8B_BPDLCD57_MASK (0x8U) 9140 #define LCD_WF8B_BPDLCD57_SHIFT (3U) 9141 /*! BPDLCD57 9142 * 0b0..LCD segment off or LCD backplane inactive for phase D 9143 * 0b1..LCD segment on or LCD backplane active for phase D 9144 */ 9145 #define LCD_WF8B_BPDLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD57_SHIFT)) & LCD_WF8B_BPDLCD57_MASK) 9146 9147 #define LCD_WF8B_BPELCD57_MASK (0x10U) 9148 #define LCD_WF8B_BPELCD57_SHIFT (4U) 9149 /*! BPELCD57 9150 * 0b0..LCD segment off or LCD backplane inactive for phase E 9151 * 0b1..LCD segment on or LCD backplane active for phase E 9152 */ 9153 #define LCD_WF8B_BPELCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD57_SHIFT)) & LCD_WF8B_BPELCD57_MASK) 9154 9155 #define LCD_WF8B_BPFLCD57_MASK (0x20U) 9156 #define LCD_WF8B_BPFLCD57_SHIFT (5U) 9157 /*! BPFLCD57 9158 * 0b0..LCD segment off or LCD backplane inactive for phase F 9159 * 0b1..LCD segment on or LCD backplane active for phase F 9160 */ 9161 #define LCD_WF8B_BPFLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD57_SHIFT)) & LCD_WF8B_BPFLCD57_MASK) 9162 9163 #define LCD_WF8B_BPGLCD57_MASK (0x40U) 9164 #define LCD_WF8B_BPGLCD57_SHIFT (6U) 9165 /*! BPGLCD57 9166 * 0b0..LCD segment off or LCD backplane inactive for phase G 9167 * 0b1..LCD segment on or LCD backplane active for phase G 9168 */ 9169 #define LCD_WF8B_BPGLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD57_SHIFT)) & LCD_WF8B_BPGLCD57_MASK) 9170 9171 #define LCD_WF8B_BPHLCD57_MASK (0x80U) 9172 #define LCD_WF8B_BPHLCD57_SHIFT (7U) 9173 /*! BPHLCD57 9174 * 0b0..LCD segment off or LCD backplane inactive for phase H 9175 * 0b1..LCD segment on or LCD backplane active for phase H 9176 */ 9177 #define LCD_WF8B_BPHLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD57_SHIFT)) & LCD_WF8B_BPHLCD57_MASK) 9178 9179 #define LCD_WF8B_BPALCD58_MASK (0x1U) 9180 #define LCD_WF8B_BPALCD58_SHIFT (0U) 9181 /*! BPALCD58 9182 * 0b0..LCD segment off or LCD backplane inactive for phase A 9183 * 0b1..LCD segment on or LCD backplane active for phase A 9184 */ 9185 #define LCD_WF8B_BPALCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD58_SHIFT)) & LCD_WF8B_BPALCD58_MASK) 9186 9187 #define LCD_WF8B_BPBLCD58_MASK (0x2U) 9188 #define LCD_WF8B_BPBLCD58_SHIFT (1U) 9189 /*! BPBLCD58 9190 * 0b0..LCD segment off or LCD backplane inactive for phase B 9191 * 0b1..LCD segment on or LCD backplane active for phase B 9192 */ 9193 #define LCD_WF8B_BPBLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD58_SHIFT)) & LCD_WF8B_BPBLCD58_MASK) 9194 9195 #define LCD_WF8B_BPCLCD58_MASK (0x4U) 9196 #define LCD_WF8B_BPCLCD58_SHIFT (2U) 9197 /*! BPCLCD58 9198 * 0b0..LCD segment off or LCD backplane inactive for phase C 9199 * 0b1..LCD segment on or LCD backplane active for phase C 9200 */ 9201 #define LCD_WF8B_BPCLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD58_SHIFT)) & LCD_WF8B_BPCLCD58_MASK) 9202 9203 #define LCD_WF8B_BPDLCD58_MASK (0x8U) 9204 #define LCD_WF8B_BPDLCD58_SHIFT (3U) 9205 /*! BPDLCD58 9206 * 0b0..LCD segment off or LCD backplane inactive for phase D 9207 * 0b1..LCD segment on or LCD backplane active for phase D 9208 */ 9209 #define LCD_WF8B_BPDLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD58_SHIFT)) & LCD_WF8B_BPDLCD58_MASK) 9210 9211 #define LCD_WF8B_BPELCD58_MASK (0x10U) 9212 #define LCD_WF8B_BPELCD58_SHIFT (4U) 9213 /*! BPELCD58 9214 * 0b0..LCD segment off or LCD backplane inactive for phase E 9215 * 0b1..LCD segment on or LCD backplane active for phase E 9216 */ 9217 #define LCD_WF8B_BPELCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD58_SHIFT)) & LCD_WF8B_BPELCD58_MASK) 9218 9219 #define LCD_WF8B_BPFLCD58_MASK (0x20U) 9220 #define LCD_WF8B_BPFLCD58_SHIFT (5U) 9221 /*! BPFLCD58 9222 * 0b0..LCD segment off or LCD backplane inactive for phase F 9223 * 0b1..LCD segment on or LCD backplane active for phase F 9224 */ 9225 #define LCD_WF8B_BPFLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD58_SHIFT)) & LCD_WF8B_BPFLCD58_MASK) 9226 9227 #define LCD_WF8B_BPGLCD58_MASK (0x40U) 9228 #define LCD_WF8B_BPGLCD58_SHIFT (6U) 9229 /*! BPGLCD58 9230 * 0b0..LCD segment off or LCD backplane inactive for phase G 9231 * 0b1..LCD segment on or LCD backplane active for phase G 9232 */ 9233 #define LCD_WF8B_BPGLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD58_SHIFT)) & LCD_WF8B_BPGLCD58_MASK) 9234 9235 #define LCD_WF8B_BPHLCD58_MASK (0x80U) 9236 #define LCD_WF8B_BPHLCD58_SHIFT (7U) 9237 /*! BPHLCD58 9238 * 0b0..LCD segment off or LCD backplane inactive for phase H 9239 * 0b1..LCD segment on or LCD backplane active for phase H 9240 */ 9241 #define LCD_WF8B_BPHLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD58_SHIFT)) & LCD_WF8B_BPHLCD58_MASK) 9242 9243 #define LCD_WF8B_BPALCD59_MASK (0x1U) 9244 #define LCD_WF8B_BPALCD59_SHIFT (0U) 9245 /*! BPALCD59 9246 * 0b0..LCD segment off or LCD backplane inactive for phase A 9247 * 0b1..LCD segment on or LCD backplane active for phase A 9248 */ 9249 #define LCD_WF8B_BPALCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD59_SHIFT)) & LCD_WF8B_BPALCD59_MASK) 9250 9251 #define LCD_WF8B_BPBLCD59_MASK (0x2U) 9252 #define LCD_WF8B_BPBLCD59_SHIFT (1U) 9253 /*! BPBLCD59 9254 * 0b0..LCD segment off or LCD backplane inactive for phase B 9255 * 0b1..LCD segment on or LCD backplane active for phase B 9256 */ 9257 #define LCD_WF8B_BPBLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD59_SHIFT)) & LCD_WF8B_BPBLCD59_MASK) 9258 9259 #define LCD_WF8B_BPCLCD59_MASK (0x4U) 9260 #define LCD_WF8B_BPCLCD59_SHIFT (2U) 9261 /*! BPCLCD59 9262 * 0b0..LCD segment off or LCD backplane inactive for phase C 9263 * 0b1..LCD segment on or LCD backplane active for phase C 9264 */ 9265 #define LCD_WF8B_BPCLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD59_SHIFT)) & LCD_WF8B_BPCLCD59_MASK) 9266 9267 #define LCD_WF8B_BPDLCD59_MASK (0x8U) 9268 #define LCD_WF8B_BPDLCD59_SHIFT (3U) 9269 /*! BPDLCD59 9270 * 0b0..LCD segment off or LCD backplane inactive for phase D 9271 * 0b1..LCD segment on or LCD backplane active for phase D 9272 */ 9273 #define LCD_WF8B_BPDLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD59_SHIFT)) & LCD_WF8B_BPDLCD59_MASK) 9274 9275 #define LCD_WF8B_BPELCD59_MASK (0x10U) 9276 #define LCD_WF8B_BPELCD59_SHIFT (4U) 9277 /*! BPELCD59 9278 * 0b0..LCD segment off or LCD backplane inactive for phase E 9279 * 0b1..LCD segment on or LCD backplane active for phase E 9280 */ 9281 #define LCD_WF8B_BPELCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD59_SHIFT)) & LCD_WF8B_BPELCD59_MASK) 9282 9283 #define LCD_WF8B_BPFLCD59_MASK (0x20U) 9284 #define LCD_WF8B_BPFLCD59_SHIFT (5U) 9285 /*! BPFLCD59 9286 * 0b0..LCD segment off or LCD backplane inactive for phase F 9287 * 0b1..LCD segment on or LCD backplane active for phase F 9288 */ 9289 #define LCD_WF8B_BPFLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD59_SHIFT)) & LCD_WF8B_BPFLCD59_MASK) 9290 9291 #define LCD_WF8B_BPGLCD59_MASK (0x40U) 9292 #define LCD_WF8B_BPGLCD59_SHIFT (6U) 9293 /*! BPGLCD59 9294 * 0b0..LCD segment off or LCD backplane inactive for phase G 9295 * 0b1..LCD segment on or LCD backplane active for phase G 9296 */ 9297 #define LCD_WF8B_BPGLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD59_SHIFT)) & LCD_WF8B_BPGLCD59_MASK) 9298 9299 #define LCD_WF8B_BPHLCD59_MASK (0x80U) 9300 #define LCD_WF8B_BPHLCD59_SHIFT (7U) 9301 /*! BPHLCD59 9302 * 0b0..LCD segment off or LCD backplane inactive for phase H 9303 * 0b1..LCD segment on or LCD backplane active for phase H 9304 */ 9305 #define LCD_WF8B_BPHLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD59_SHIFT)) & LCD_WF8B_BPHLCD59_MASK) 9306 9307 #define LCD_WF8B_BPALCD60_MASK (0x1U) 9308 #define LCD_WF8B_BPALCD60_SHIFT (0U) 9309 /*! BPALCD60 9310 * 0b0..LCD segment off or LCD backplane inactive for phase A 9311 * 0b1..LCD segment on or LCD backplane active for phase A 9312 */ 9313 #define LCD_WF8B_BPALCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD60_SHIFT)) & LCD_WF8B_BPALCD60_MASK) 9314 9315 #define LCD_WF8B_BPBLCD60_MASK (0x2U) 9316 #define LCD_WF8B_BPBLCD60_SHIFT (1U) 9317 /*! BPBLCD60 9318 * 0b0..LCD segment off or LCD backplane inactive for phase B 9319 * 0b1..LCD segment on or LCD backplane active for phase B 9320 */ 9321 #define LCD_WF8B_BPBLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD60_SHIFT)) & LCD_WF8B_BPBLCD60_MASK) 9322 9323 #define LCD_WF8B_BPCLCD60_MASK (0x4U) 9324 #define LCD_WF8B_BPCLCD60_SHIFT (2U) 9325 /*! BPCLCD60 9326 * 0b0..LCD segment off or LCD backplane inactive for phase C 9327 * 0b1..LCD segment on or LCD backplane active for phase C 9328 */ 9329 #define LCD_WF8B_BPCLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD60_SHIFT)) & LCD_WF8B_BPCLCD60_MASK) 9330 9331 #define LCD_WF8B_BPDLCD60_MASK (0x8U) 9332 #define LCD_WF8B_BPDLCD60_SHIFT (3U) 9333 /*! BPDLCD60 9334 * 0b0..LCD segment off or LCD backplane inactive for phase D 9335 * 0b1..LCD segment on or LCD backplane active for phase D 9336 */ 9337 #define LCD_WF8B_BPDLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD60_SHIFT)) & LCD_WF8B_BPDLCD60_MASK) 9338 9339 #define LCD_WF8B_BPELCD60_MASK (0x10U) 9340 #define LCD_WF8B_BPELCD60_SHIFT (4U) 9341 /*! BPELCD60 9342 * 0b0..LCD segment off or LCD backplane inactive for phase E 9343 * 0b1..LCD segment on or LCD backplane active for phase E 9344 */ 9345 #define LCD_WF8B_BPELCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD60_SHIFT)) & LCD_WF8B_BPELCD60_MASK) 9346 9347 #define LCD_WF8B_BPFLCD60_MASK (0x20U) 9348 #define LCD_WF8B_BPFLCD60_SHIFT (5U) 9349 /*! BPFLCD60 9350 * 0b0..LCD segment off or LCD backplane inactive for phase F 9351 * 0b1..LCD segment on or LCD backplane active for phase F 9352 */ 9353 #define LCD_WF8B_BPFLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD60_SHIFT)) & LCD_WF8B_BPFLCD60_MASK) 9354 9355 #define LCD_WF8B_BPGLCD60_MASK (0x40U) 9356 #define LCD_WF8B_BPGLCD60_SHIFT (6U) 9357 /*! BPGLCD60 9358 * 0b0..LCD segment off or LCD backplane inactive for phase G 9359 * 0b1..LCD segment on or LCD backplane active for phase G 9360 */ 9361 #define LCD_WF8B_BPGLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD60_SHIFT)) & LCD_WF8B_BPGLCD60_MASK) 9362 9363 #define LCD_WF8B_BPHLCD60_MASK (0x80U) 9364 #define LCD_WF8B_BPHLCD60_SHIFT (7U) 9365 /*! BPHLCD60 9366 * 0b0..LCD segment off or LCD backplane inactive for phase H 9367 * 0b1..LCD segment on or LCD backplane active for phase H 9368 */ 9369 #define LCD_WF8B_BPHLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD60_SHIFT)) & LCD_WF8B_BPHLCD60_MASK) 9370 9371 #define LCD_WF8B_BPALCD61_MASK (0x1U) 9372 #define LCD_WF8B_BPALCD61_SHIFT (0U) 9373 /*! BPALCD61 9374 * 0b0..LCD segment off or LCD backplane inactive for phase A 9375 * 0b1..LCD segment on or LCD backplane active for phase A 9376 */ 9377 #define LCD_WF8B_BPALCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD61_SHIFT)) & LCD_WF8B_BPALCD61_MASK) 9378 9379 #define LCD_WF8B_BPBLCD61_MASK (0x2U) 9380 #define LCD_WF8B_BPBLCD61_SHIFT (1U) 9381 /*! BPBLCD61 9382 * 0b0..LCD segment off or LCD backplane inactive for phase B 9383 * 0b1..LCD segment on or LCD backplane active for phase B 9384 */ 9385 #define LCD_WF8B_BPBLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD61_SHIFT)) & LCD_WF8B_BPBLCD61_MASK) 9386 9387 #define LCD_WF8B_BPCLCD61_MASK (0x4U) 9388 #define LCD_WF8B_BPCLCD61_SHIFT (2U) 9389 /*! BPCLCD61 9390 * 0b0..LCD segment off or LCD backplane inactive for phase C 9391 * 0b1..LCD segment on or LCD backplane active for phase C 9392 */ 9393 #define LCD_WF8B_BPCLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD61_SHIFT)) & LCD_WF8B_BPCLCD61_MASK) 9394 9395 #define LCD_WF8B_BPDLCD61_MASK (0x8U) 9396 #define LCD_WF8B_BPDLCD61_SHIFT (3U) 9397 /*! BPDLCD61 9398 * 0b0..LCD segment off or LCD backplane inactive for phase D 9399 * 0b1..LCD segment on or LCD backplane active for phase D 9400 */ 9401 #define LCD_WF8B_BPDLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD61_SHIFT)) & LCD_WF8B_BPDLCD61_MASK) 9402 9403 #define LCD_WF8B_BPELCD61_MASK (0x10U) 9404 #define LCD_WF8B_BPELCD61_SHIFT (4U) 9405 /*! BPELCD61 9406 * 0b0..LCD segment off or LCD backplane inactive for phase E 9407 * 0b1..LCD segment on or LCD backplane active for phase E 9408 */ 9409 #define LCD_WF8B_BPELCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD61_SHIFT)) & LCD_WF8B_BPELCD61_MASK) 9410 9411 #define LCD_WF8B_BPFLCD61_MASK (0x20U) 9412 #define LCD_WF8B_BPFLCD61_SHIFT (5U) 9413 /*! BPFLCD61 9414 * 0b0..LCD segment off or LCD backplane inactive for phase F 9415 * 0b1..LCD segment on or LCD backplane active for phase F 9416 */ 9417 #define LCD_WF8B_BPFLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD61_SHIFT)) & LCD_WF8B_BPFLCD61_MASK) 9418 9419 #define LCD_WF8B_BPGLCD61_MASK (0x40U) 9420 #define LCD_WF8B_BPGLCD61_SHIFT (6U) 9421 /*! BPGLCD61 9422 * 0b0..LCD segment off or LCD backplane inactive for phase G 9423 * 0b1..LCD segment on or LCD backplane active for phase G 9424 */ 9425 #define LCD_WF8B_BPGLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD61_SHIFT)) & LCD_WF8B_BPGLCD61_MASK) 9426 9427 #define LCD_WF8B_BPHLCD61_MASK (0x80U) 9428 #define LCD_WF8B_BPHLCD61_SHIFT (7U) 9429 /*! BPHLCD61 9430 * 0b0..LCD segment off or LCD backplane inactive for phase H 9431 * 0b1..LCD segment on or LCD backplane active for phase H 9432 */ 9433 #define LCD_WF8B_BPHLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD61_SHIFT)) & LCD_WF8B_BPHLCD61_MASK) 9434 9435 #define LCD_WF8B_BPALCD62_MASK (0x1U) 9436 #define LCD_WF8B_BPALCD62_SHIFT (0U) 9437 /*! BPALCD62 9438 * 0b0..LCD segment off or LCD backplane inactive for phase A 9439 * 0b1..LCD segment on or LCD backplane active for phase A 9440 */ 9441 #define LCD_WF8B_BPALCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD62_SHIFT)) & LCD_WF8B_BPALCD62_MASK) 9442 9443 #define LCD_WF8B_BPBLCD62_MASK (0x2U) 9444 #define LCD_WF8B_BPBLCD62_SHIFT (1U) 9445 /*! BPBLCD62 9446 * 0b0..LCD segment off or LCD backplane inactive for phase B 9447 * 0b1..LCD segment on or LCD backplane active for phase B 9448 */ 9449 #define LCD_WF8B_BPBLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD62_SHIFT)) & LCD_WF8B_BPBLCD62_MASK) 9450 9451 #define LCD_WF8B_BPCLCD62_MASK (0x4U) 9452 #define LCD_WF8B_BPCLCD62_SHIFT (2U) 9453 /*! BPCLCD62 9454 * 0b0..LCD segment off or LCD backplane inactive for phase C 9455 * 0b1..LCD segment on or LCD backplane active for phase C 9456 */ 9457 #define LCD_WF8B_BPCLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD62_SHIFT)) & LCD_WF8B_BPCLCD62_MASK) 9458 9459 #define LCD_WF8B_BPDLCD62_MASK (0x8U) 9460 #define LCD_WF8B_BPDLCD62_SHIFT (3U) 9461 /*! BPDLCD62 9462 * 0b0..LCD segment off or LCD backplane inactive for phase D 9463 * 0b1..LCD segment on or LCD backplane active for phase D 9464 */ 9465 #define LCD_WF8B_BPDLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD62_SHIFT)) & LCD_WF8B_BPDLCD62_MASK) 9466 9467 #define LCD_WF8B_BPELCD62_MASK (0x10U) 9468 #define LCD_WF8B_BPELCD62_SHIFT (4U) 9469 /*! BPELCD62 9470 * 0b0..LCD segment off or LCD backplane inactive for phase E 9471 * 0b1..LCD segment on or LCD backplane active for phase E 9472 */ 9473 #define LCD_WF8B_BPELCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD62_SHIFT)) & LCD_WF8B_BPELCD62_MASK) 9474 9475 #define LCD_WF8B_BPFLCD62_MASK (0x20U) 9476 #define LCD_WF8B_BPFLCD62_SHIFT (5U) 9477 /*! BPFLCD62 9478 * 0b0..LCD segment off or LCD backplane inactive for phase F 9479 * 0b1..LCD segment on or LCD backplane active for phase F 9480 */ 9481 #define LCD_WF8B_BPFLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD62_SHIFT)) & LCD_WF8B_BPFLCD62_MASK) 9482 9483 #define LCD_WF8B_BPGLCD62_MASK (0x40U) 9484 #define LCD_WF8B_BPGLCD62_SHIFT (6U) 9485 /*! BPGLCD62 9486 * 0b0..LCD segment off or LCD backplane inactive for phase G 9487 * 0b1..LCD segment on or LCD backplane active for phase G 9488 */ 9489 #define LCD_WF8B_BPGLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD62_SHIFT)) & LCD_WF8B_BPGLCD62_MASK) 9490 9491 #define LCD_WF8B_BPHLCD62_MASK (0x80U) 9492 #define LCD_WF8B_BPHLCD62_SHIFT (7U) 9493 /*! BPHLCD62 9494 * 0b0..LCD segment off or LCD backplane inactive for phase H 9495 * 0b1..LCD segment on or LCD backplane active for phase H 9496 */ 9497 #define LCD_WF8B_BPHLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD62_SHIFT)) & LCD_WF8B_BPHLCD62_MASK) 9498 9499 #define LCD_WF8B_BPALCD63_MASK (0x1U) 9500 #define LCD_WF8B_BPALCD63_SHIFT (0U) 9501 /*! BPALCD63 9502 * 0b0..LCD segment off or LCD backplane inactive for phase A 9503 * 0b1..LCD segment on or LCD backplane active for phase A 9504 */ 9505 #define LCD_WF8B_BPALCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD63_SHIFT)) & LCD_WF8B_BPALCD63_MASK) 9506 9507 #define LCD_WF8B_BPBLCD63_MASK (0x2U) 9508 #define LCD_WF8B_BPBLCD63_SHIFT (1U) 9509 /*! BPBLCD63 9510 * 0b0..LCD segment off or LCD backplane inactive for phase B 9511 * 0b1..LCD segment on or LCD backplane active for phase B 9512 */ 9513 #define LCD_WF8B_BPBLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD63_SHIFT)) & LCD_WF8B_BPBLCD63_MASK) 9514 9515 #define LCD_WF8B_BPCLCD63_MASK (0x4U) 9516 #define LCD_WF8B_BPCLCD63_SHIFT (2U) 9517 /*! BPCLCD63 9518 * 0b0..LCD segment off or LCD backplane inactive for phase C 9519 * 0b1..LCD segment on or LCD backplane active for phase C 9520 */ 9521 #define LCD_WF8B_BPCLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD63_SHIFT)) & LCD_WF8B_BPCLCD63_MASK) 9522 9523 #define LCD_WF8B_BPDLCD63_MASK (0x8U) 9524 #define LCD_WF8B_BPDLCD63_SHIFT (3U) 9525 /*! BPDLCD63 9526 * 0b0..LCD segment off or LCD backplane inactive for phase D 9527 * 0b1..LCD segment on or LCD backplane active for phase D 9528 */ 9529 #define LCD_WF8B_BPDLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD63_SHIFT)) & LCD_WF8B_BPDLCD63_MASK) 9530 9531 #define LCD_WF8B_BPELCD63_MASK (0x10U) 9532 #define LCD_WF8B_BPELCD63_SHIFT (4U) 9533 /*! BPELCD63 9534 * 0b0..LCD segment off or LCD backplane inactive for phase E 9535 * 0b1..LCD segment on or LCD backplane active for phase E 9536 */ 9537 #define LCD_WF8B_BPELCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD63_SHIFT)) & LCD_WF8B_BPELCD63_MASK) 9538 9539 #define LCD_WF8B_BPFLCD63_MASK (0x20U) 9540 #define LCD_WF8B_BPFLCD63_SHIFT (5U) 9541 /*! BPFLCD63 9542 * 0b0..LCD segment off or LCD backplane inactive for phase F 9543 * 0b1..LCD segment on or LCD backplane active for phase F 9544 */ 9545 #define LCD_WF8B_BPFLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD63_SHIFT)) & LCD_WF8B_BPFLCD63_MASK) 9546 9547 #define LCD_WF8B_BPGLCD63_MASK (0x40U) 9548 #define LCD_WF8B_BPGLCD63_SHIFT (6U) 9549 /*! BPGLCD63 9550 * 0b0..LCD segment off or LCD backplane inactive for phase G 9551 * 0b1..LCD segment on or LCD backplane active for phase G 9552 */ 9553 #define LCD_WF8B_BPGLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD63_SHIFT)) & LCD_WF8B_BPGLCD63_MASK) 9554 9555 #define LCD_WF8B_BPHLCD63_MASK (0x80U) 9556 #define LCD_WF8B_BPHLCD63_SHIFT (7U) 9557 /*! BPHLCD63 9558 * 0b0..LCD segment off or LCD backplane inactive for phase H 9559 * 0b1..LCD segment on or LCD backplane active for phase H 9560 */ 9561 #define LCD_WF8B_BPHLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD63_SHIFT)) & LCD_WF8B_BPHLCD63_MASK) 9562 /*! @} */ 9563 9564 /* The count of LCD_WF8B */ 9565 #define LCD_WF8B_COUNT (64U) 9566 9567 /*! @name WF - LCD Waveform register */ 9568 /*! @{ */ 9569 9570 #define LCD_WF_WF0_MASK (0xFFU) 9571 #define LCD_WF_WF0_SHIFT (0U) 9572 #define LCD_WF_WF0(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF0_SHIFT)) & LCD_WF_WF0_MASK) 9573 9574 #define LCD_WF_WF1_MASK (0xFF00U) 9575 #define LCD_WF_WF1_SHIFT (8U) 9576 #define LCD_WF_WF1(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF1_SHIFT)) & LCD_WF_WF1_MASK) 9577 9578 #define LCD_WF_WF2_MASK (0xFF0000U) 9579 #define LCD_WF_WF2_SHIFT (16U) 9580 #define LCD_WF_WF2(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF2_SHIFT)) & LCD_WF_WF2_MASK) 9581 9582 #define LCD_WF_WF3_MASK (0xFF000000U) 9583 #define LCD_WF_WF3_SHIFT (24U) 9584 #define LCD_WF_WF3(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF3_SHIFT)) & LCD_WF_WF3_MASK) 9585 9586 #define LCD_WF_WF4_MASK (0xFFU) 9587 #define LCD_WF_WF4_SHIFT (0U) 9588 #define LCD_WF_WF4(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF4_SHIFT)) & LCD_WF_WF4_MASK) 9589 9590 #define LCD_WF_WF5_MASK (0xFF00U) 9591 #define LCD_WF_WF5_SHIFT (8U) 9592 #define LCD_WF_WF5(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF5_SHIFT)) & LCD_WF_WF5_MASK) 9593 9594 #define LCD_WF_WF6_MASK (0xFF0000U) 9595 #define LCD_WF_WF6_SHIFT (16U) 9596 #define LCD_WF_WF6(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF6_SHIFT)) & LCD_WF_WF6_MASK) 9597 9598 #define LCD_WF_WF7_MASK (0xFF000000U) 9599 #define LCD_WF_WF7_SHIFT (24U) 9600 #define LCD_WF_WF7(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF7_SHIFT)) & LCD_WF_WF7_MASK) 9601 9602 #define LCD_WF_WF8_MASK (0xFFU) 9603 #define LCD_WF_WF8_SHIFT (0U) 9604 #define LCD_WF_WF8(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF8_SHIFT)) & LCD_WF_WF8_MASK) 9605 9606 #define LCD_WF_WF9_MASK (0xFF00U) 9607 #define LCD_WF_WF9_SHIFT (8U) 9608 #define LCD_WF_WF9(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF9_SHIFT)) & LCD_WF_WF9_MASK) 9609 9610 #define LCD_WF_WF10_MASK (0xFF0000U) 9611 #define LCD_WF_WF10_SHIFT (16U) 9612 #define LCD_WF_WF10(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF10_SHIFT)) & LCD_WF_WF10_MASK) 9613 9614 #define LCD_WF_WF11_MASK (0xFF000000U) 9615 #define LCD_WF_WF11_SHIFT (24U) 9616 #define LCD_WF_WF11(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF11_SHIFT)) & LCD_WF_WF11_MASK) 9617 9618 #define LCD_WF_WF12_MASK (0xFFU) 9619 #define LCD_WF_WF12_SHIFT (0U) 9620 #define LCD_WF_WF12(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF12_SHIFT)) & LCD_WF_WF12_MASK) 9621 9622 #define LCD_WF_WF13_MASK (0xFF00U) 9623 #define LCD_WF_WF13_SHIFT (8U) 9624 #define LCD_WF_WF13(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF13_SHIFT)) & LCD_WF_WF13_MASK) 9625 9626 #define LCD_WF_WF14_MASK (0xFF0000U) 9627 #define LCD_WF_WF14_SHIFT (16U) 9628 #define LCD_WF_WF14(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF14_SHIFT)) & LCD_WF_WF14_MASK) 9629 9630 #define LCD_WF_WF15_MASK (0xFF000000U) 9631 #define LCD_WF_WF15_SHIFT (24U) 9632 #define LCD_WF_WF15(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF15_SHIFT)) & LCD_WF_WF15_MASK) 9633 9634 #define LCD_WF_WF16_MASK (0xFFU) 9635 #define LCD_WF_WF16_SHIFT (0U) 9636 #define LCD_WF_WF16(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF16_SHIFT)) & LCD_WF_WF16_MASK) 9637 9638 #define LCD_WF_WF17_MASK (0xFF00U) 9639 #define LCD_WF_WF17_SHIFT (8U) 9640 #define LCD_WF_WF17(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF17_SHIFT)) & LCD_WF_WF17_MASK) 9641 9642 #define LCD_WF_WF18_MASK (0xFF0000U) 9643 #define LCD_WF_WF18_SHIFT (16U) 9644 #define LCD_WF_WF18(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF18_SHIFT)) & LCD_WF_WF18_MASK) 9645 9646 #define LCD_WF_WF19_MASK (0xFF000000U) 9647 #define LCD_WF_WF19_SHIFT (24U) 9648 #define LCD_WF_WF19(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF19_SHIFT)) & LCD_WF_WF19_MASK) 9649 9650 #define LCD_WF_WF20_MASK (0xFFU) 9651 #define LCD_WF_WF20_SHIFT (0U) 9652 #define LCD_WF_WF20(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF20_SHIFT)) & LCD_WF_WF20_MASK) 9653 9654 #define LCD_WF_WF21_MASK (0xFF00U) 9655 #define LCD_WF_WF21_SHIFT (8U) 9656 #define LCD_WF_WF21(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF21_SHIFT)) & LCD_WF_WF21_MASK) 9657 9658 #define LCD_WF_WF22_MASK (0xFF0000U) 9659 #define LCD_WF_WF22_SHIFT (16U) 9660 #define LCD_WF_WF22(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF22_SHIFT)) & LCD_WF_WF22_MASK) 9661 9662 #define LCD_WF_WF23_MASK (0xFF000000U) 9663 #define LCD_WF_WF23_SHIFT (24U) 9664 #define LCD_WF_WF23(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF23_SHIFT)) & LCD_WF_WF23_MASK) 9665 9666 #define LCD_WF_WF24_MASK (0xFFU) 9667 #define LCD_WF_WF24_SHIFT (0U) 9668 #define LCD_WF_WF24(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF24_SHIFT)) & LCD_WF_WF24_MASK) 9669 9670 #define LCD_WF_WF25_MASK (0xFF00U) 9671 #define LCD_WF_WF25_SHIFT (8U) 9672 #define LCD_WF_WF25(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF25_SHIFT)) & LCD_WF_WF25_MASK) 9673 9674 #define LCD_WF_WF26_MASK (0xFF0000U) 9675 #define LCD_WF_WF26_SHIFT (16U) 9676 #define LCD_WF_WF26(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF26_SHIFT)) & LCD_WF_WF26_MASK) 9677 9678 #define LCD_WF_WF27_MASK (0xFF000000U) 9679 #define LCD_WF_WF27_SHIFT (24U) 9680 #define LCD_WF_WF27(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF27_SHIFT)) & LCD_WF_WF27_MASK) 9681 9682 #define LCD_WF_WF28_MASK (0xFFU) 9683 #define LCD_WF_WF28_SHIFT (0U) 9684 #define LCD_WF_WF28(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF28_SHIFT)) & LCD_WF_WF28_MASK) 9685 9686 #define LCD_WF_WF29_MASK (0xFF00U) 9687 #define LCD_WF_WF29_SHIFT (8U) 9688 #define LCD_WF_WF29(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF29_SHIFT)) & LCD_WF_WF29_MASK) 9689 9690 #define LCD_WF_WF30_MASK (0xFF0000U) 9691 #define LCD_WF_WF30_SHIFT (16U) 9692 #define LCD_WF_WF30(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF30_SHIFT)) & LCD_WF_WF30_MASK) 9693 9694 #define LCD_WF_WF31_MASK (0xFF000000U) 9695 #define LCD_WF_WF31_SHIFT (24U) 9696 #define LCD_WF_WF31(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF31_SHIFT)) & LCD_WF_WF31_MASK) 9697 9698 #define LCD_WF_WF32_MASK (0xFFU) 9699 #define LCD_WF_WF32_SHIFT (0U) 9700 #define LCD_WF_WF32(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF32_SHIFT)) & LCD_WF_WF32_MASK) 9701 9702 #define LCD_WF_WF33_MASK (0xFF00U) 9703 #define LCD_WF_WF33_SHIFT (8U) 9704 #define LCD_WF_WF33(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF33_SHIFT)) & LCD_WF_WF33_MASK) 9705 9706 #define LCD_WF_WF34_MASK (0xFF0000U) 9707 #define LCD_WF_WF34_SHIFT (16U) 9708 #define LCD_WF_WF34(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF34_SHIFT)) & LCD_WF_WF34_MASK) 9709 9710 #define LCD_WF_WF35_MASK (0xFF000000U) 9711 #define LCD_WF_WF35_SHIFT (24U) 9712 #define LCD_WF_WF35(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF35_SHIFT)) & LCD_WF_WF35_MASK) 9713 9714 #define LCD_WF_WF36_MASK (0xFFU) 9715 #define LCD_WF_WF36_SHIFT (0U) 9716 #define LCD_WF_WF36(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF36_SHIFT)) & LCD_WF_WF36_MASK) 9717 9718 #define LCD_WF_WF37_MASK (0xFF00U) 9719 #define LCD_WF_WF37_SHIFT (8U) 9720 #define LCD_WF_WF37(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF37_SHIFT)) & LCD_WF_WF37_MASK) 9721 9722 #define LCD_WF_WF38_MASK (0xFF0000U) 9723 #define LCD_WF_WF38_SHIFT (16U) 9724 #define LCD_WF_WF38(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF38_SHIFT)) & LCD_WF_WF38_MASK) 9725 9726 #define LCD_WF_WF39_MASK (0xFF000000U) 9727 #define LCD_WF_WF39_SHIFT (24U) 9728 #define LCD_WF_WF39(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF39_SHIFT)) & LCD_WF_WF39_MASK) 9729 9730 #define LCD_WF_WF40_MASK (0xFFU) 9731 #define LCD_WF_WF40_SHIFT (0U) 9732 #define LCD_WF_WF40(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF40_SHIFT)) & LCD_WF_WF40_MASK) 9733 9734 #define LCD_WF_WF41_MASK (0xFF00U) 9735 #define LCD_WF_WF41_SHIFT (8U) 9736 #define LCD_WF_WF41(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF41_SHIFT)) & LCD_WF_WF41_MASK) 9737 9738 #define LCD_WF_WF42_MASK (0xFF0000U) 9739 #define LCD_WF_WF42_SHIFT (16U) 9740 #define LCD_WF_WF42(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF42_SHIFT)) & LCD_WF_WF42_MASK) 9741 9742 #define LCD_WF_WF43_MASK (0xFF000000U) 9743 #define LCD_WF_WF43_SHIFT (24U) 9744 #define LCD_WF_WF43(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF43_SHIFT)) & LCD_WF_WF43_MASK) 9745 9746 #define LCD_WF_WF44_MASK (0xFFU) 9747 #define LCD_WF_WF44_SHIFT (0U) 9748 #define LCD_WF_WF44(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF44_SHIFT)) & LCD_WF_WF44_MASK) 9749 9750 #define LCD_WF_WF45_MASK (0xFF00U) 9751 #define LCD_WF_WF45_SHIFT (8U) 9752 #define LCD_WF_WF45(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF45_SHIFT)) & LCD_WF_WF45_MASK) 9753 9754 #define LCD_WF_WF46_MASK (0xFF0000U) 9755 #define LCD_WF_WF46_SHIFT (16U) 9756 #define LCD_WF_WF46(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF46_SHIFT)) & LCD_WF_WF46_MASK) 9757 9758 #define LCD_WF_WF47_MASK (0xFF000000U) 9759 #define LCD_WF_WF47_SHIFT (24U) 9760 #define LCD_WF_WF47(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF47_SHIFT)) & LCD_WF_WF47_MASK) 9761 9762 #define LCD_WF_WF48_MASK (0xFFU) 9763 #define LCD_WF_WF48_SHIFT (0U) 9764 #define LCD_WF_WF48(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF48_SHIFT)) & LCD_WF_WF48_MASK) 9765 9766 #define LCD_WF_WF49_MASK (0xFF00U) 9767 #define LCD_WF_WF49_SHIFT (8U) 9768 #define LCD_WF_WF49(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF49_SHIFT)) & LCD_WF_WF49_MASK) 9769 9770 #define LCD_WF_WF50_MASK (0xFF0000U) 9771 #define LCD_WF_WF50_SHIFT (16U) 9772 #define LCD_WF_WF50(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF50_SHIFT)) & LCD_WF_WF50_MASK) 9773 9774 #define LCD_WF_WF51_MASK (0xFF000000U) 9775 #define LCD_WF_WF51_SHIFT (24U) 9776 #define LCD_WF_WF51(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF51_SHIFT)) & LCD_WF_WF51_MASK) 9777 9778 #define LCD_WF_WF52_MASK (0xFFU) 9779 #define LCD_WF_WF52_SHIFT (0U) 9780 #define LCD_WF_WF52(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF52_SHIFT)) & LCD_WF_WF52_MASK) 9781 9782 #define LCD_WF_WF53_MASK (0xFF00U) 9783 #define LCD_WF_WF53_SHIFT (8U) 9784 #define LCD_WF_WF53(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF53_SHIFT)) & LCD_WF_WF53_MASK) 9785 9786 #define LCD_WF_WF54_MASK (0xFF0000U) 9787 #define LCD_WF_WF54_SHIFT (16U) 9788 #define LCD_WF_WF54(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF54_SHIFT)) & LCD_WF_WF54_MASK) 9789 9790 #define LCD_WF_WF55_MASK (0xFF000000U) 9791 #define LCD_WF_WF55_SHIFT (24U) 9792 #define LCD_WF_WF55(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF55_SHIFT)) & LCD_WF_WF55_MASK) 9793 9794 #define LCD_WF_WF56_MASK (0xFFU) 9795 #define LCD_WF_WF56_SHIFT (0U) 9796 #define LCD_WF_WF56(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF56_SHIFT)) & LCD_WF_WF56_MASK) 9797 9798 #define LCD_WF_WF57_MASK (0xFF00U) 9799 #define LCD_WF_WF57_SHIFT (8U) 9800 #define LCD_WF_WF57(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF57_SHIFT)) & LCD_WF_WF57_MASK) 9801 9802 #define LCD_WF_WF58_MASK (0xFF0000U) 9803 #define LCD_WF_WF58_SHIFT (16U) 9804 #define LCD_WF_WF58(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF58_SHIFT)) & LCD_WF_WF58_MASK) 9805 9806 #define LCD_WF_WF59_MASK (0xFF000000U) 9807 #define LCD_WF_WF59_SHIFT (24U) 9808 #define LCD_WF_WF59(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF59_SHIFT)) & LCD_WF_WF59_MASK) 9809 9810 #define LCD_WF_WF60_MASK (0xFFU) 9811 #define LCD_WF_WF60_SHIFT (0U) 9812 #define LCD_WF_WF60(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF60_SHIFT)) & LCD_WF_WF60_MASK) 9813 9814 #define LCD_WF_WF61_MASK (0xFF00U) 9815 #define LCD_WF_WF61_SHIFT (8U) 9816 #define LCD_WF_WF61(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF61_SHIFT)) & LCD_WF_WF61_MASK) 9817 9818 #define LCD_WF_WF62_MASK (0xFF0000U) 9819 #define LCD_WF_WF62_SHIFT (16U) 9820 #define LCD_WF_WF62(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF62_SHIFT)) & LCD_WF_WF62_MASK) 9821 9822 #define LCD_WF_WF63_MASK (0xFF000000U) 9823 #define LCD_WF_WF63_SHIFT (24U) 9824 #define LCD_WF_WF63(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF63_SHIFT)) & LCD_WF_WF63_MASK) 9825 /*! @} */ 9826 9827 /* The count of LCD_WF */ 9828 #define LCD_WF_COUNT (16U) 9829 9830 9831 /*! 9832 * @} 9833 */ /* end of group LCD_Register_Masks */ 9834 9835 9836 /* LCD - Peripheral instance base addresses */ 9837 /** Peripheral LCD base address */ 9838 #define LCD_BASE (0x40043000u) 9839 /** Peripheral LCD base pointer */ 9840 #define LCD ((LCD_Type *)LCD_BASE) 9841 /** Array initializer of LCD peripheral base addresses */ 9842 #define LCD_BASE_ADDRS { LCD_BASE } 9843 /** Array initializer of LCD peripheral base pointers */ 9844 #define LCD_BASE_PTRS { LCD } 9845 /** Interrupt vectors for the LCD peripheral type */ 9846 #define LCD_LCD_IRQS { LCD_IRQn } 9847 9848 /*! 9849 * @} 9850 */ /* end of group LCD_Peripheral_Access_Layer */ 9851 9852 9853 /* ---------------------------------------------------------------------------- 9854 -- LLWU Peripheral Access Layer 9855 ---------------------------------------------------------------------------- */ 9856 9857 /*! 9858 * @addtogroup LLWU_Peripheral_Access_Layer LLWU Peripheral Access Layer 9859 * @{ 9860 */ 9861 9862 /** LLWU - Register Layout Typedef */ 9863 typedef struct { 9864 __IO uint8_t PE1; /**< LLWU Pin Enable 1 register, offset: 0x0 */ 9865 __IO uint8_t PE2; /**< LLWU Pin Enable 2 register, offset: 0x1 */ 9866 __IO uint8_t PE3; /**< LLWU Pin Enable 3 register, offset: 0x2 */ 9867 __IO uint8_t PE4; /**< LLWU Pin Enable 4 register, offset: 0x3 */ 9868 __IO uint8_t ME; /**< LLWU Module Enable register, offset: 0x4 */ 9869 __IO uint8_t F1; /**< LLWU Flag 1 register, offset: 0x5 */ 9870 __IO uint8_t F2; /**< LLWU Flag 2 register, offset: 0x6 */ 9871 __I uint8_t F3; /**< LLWU Flag 3 register, offset: 0x7 */ 9872 __IO uint8_t FILT1; /**< LLWU Pin Filter 1 register, offset: 0x8 */ 9873 __IO uint8_t FILT2; /**< LLWU Pin Filter 2 register, offset: 0x9 */ 9874 } LLWU_Type; 9875 9876 /* ---------------------------------------------------------------------------- 9877 -- LLWU Register Masks 9878 ---------------------------------------------------------------------------- */ 9879 9880 /*! 9881 * @addtogroup LLWU_Register_Masks LLWU Register Masks 9882 * @{ 9883 */ 9884 9885 /*! @name PE1 - LLWU Pin Enable 1 register */ 9886 /*! @{ */ 9887 9888 #define LLWU_PE1_WUPE0_MASK (0x3U) 9889 #define LLWU_PE1_WUPE0_SHIFT (0U) 9890 /*! WUPE0 - Wakeup Pin Enable For LLWU_P0 9891 * 0b00..External input pin disabled as wakeup input 9892 * 0b01..External input pin enabled with rising edge detection 9893 * 0b10..External input pin enabled with falling edge detection 9894 * 0b11..External input pin enabled with any change detection 9895 */ 9896 #define LLWU_PE1_WUPE0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE0_SHIFT)) & LLWU_PE1_WUPE0_MASK) 9897 9898 #define LLWU_PE1_WUPE1_MASK (0xCU) 9899 #define LLWU_PE1_WUPE1_SHIFT (2U) 9900 /*! WUPE1 - Wakeup Pin Enable For LLWU_P1 9901 * 0b00..External input pin disabled as wakeup input 9902 * 0b01..External input pin enabled with rising edge detection 9903 * 0b10..External input pin enabled with falling edge detection 9904 * 0b11..External input pin enabled with any change detection 9905 */ 9906 #define LLWU_PE1_WUPE1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE1_SHIFT)) & LLWU_PE1_WUPE1_MASK) 9907 9908 #define LLWU_PE1_WUPE2_MASK (0x30U) 9909 #define LLWU_PE1_WUPE2_SHIFT (4U) 9910 /*! WUPE2 - Wakeup Pin Enable For LLWU_P2 9911 * 0b00..External input pin disabled as wakeup input 9912 * 0b01..External input pin enabled with rising edge detection 9913 * 0b10..External input pin enabled with falling edge detection 9914 * 0b11..External input pin enabled with any change detection 9915 */ 9916 #define LLWU_PE1_WUPE2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE2_SHIFT)) & LLWU_PE1_WUPE2_MASK) 9917 9918 #define LLWU_PE1_WUPE3_MASK (0xC0U) 9919 #define LLWU_PE1_WUPE3_SHIFT (6U) 9920 /*! WUPE3 - Wakeup Pin Enable For LLWU_P3 9921 * 0b00..External input pin disabled as wakeup input 9922 * 0b01..External input pin enabled with rising edge detection 9923 * 0b10..External input pin enabled with falling edge detection 9924 * 0b11..External input pin enabled with any change detection 9925 */ 9926 #define LLWU_PE1_WUPE3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE3_SHIFT)) & LLWU_PE1_WUPE3_MASK) 9927 /*! @} */ 9928 9929 /*! @name PE2 - LLWU Pin Enable 2 register */ 9930 /*! @{ */ 9931 9932 #define LLWU_PE2_WUPE4_MASK (0x3U) 9933 #define LLWU_PE2_WUPE4_SHIFT (0U) 9934 /*! WUPE4 - Wakeup Pin Enable For LLWU_P4 9935 * 0b00..External input pin disabled as wakeup input 9936 * 0b01..External input pin enabled with rising edge detection 9937 * 0b10..External input pin enabled with falling edge detection 9938 * 0b11..External input pin enabled with any change detection 9939 */ 9940 #define LLWU_PE2_WUPE4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE4_SHIFT)) & LLWU_PE2_WUPE4_MASK) 9941 9942 #define LLWU_PE2_WUPE5_MASK (0xCU) 9943 #define LLWU_PE2_WUPE5_SHIFT (2U) 9944 /*! WUPE5 - Wakeup Pin Enable For LLWU_P5 9945 * 0b00..External input pin disabled as wakeup input 9946 * 0b01..External input pin enabled with rising edge detection 9947 * 0b10..External input pin enabled with falling edge detection 9948 * 0b11..External input pin enabled with any change detection 9949 */ 9950 #define LLWU_PE2_WUPE5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE5_SHIFT)) & LLWU_PE2_WUPE5_MASK) 9951 9952 #define LLWU_PE2_WUPE6_MASK (0x30U) 9953 #define LLWU_PE2_WUPE6_SHIFT (4U) 9954 /*! WUPE6 - Wakeup Pin Enable For LLWU_P6 9955 * 0b00..External input pin disabled as wakeup input 9956 * 0b01..External input pin enabled with rising edge detection 9957 * 0b10..External input pin enabled with falling edge detection 9958 * 0b11..External input pin enabled with any change detection 9959 */ 9960 #define LLWU_PE2_WUPE6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE6_SHIFT)) & LLWU_PE2_WUPE6_MASK) 9961 9962 #define LLWU_PE2_WUPE7_MASK (0xC0U) 9963 #define LLWU_PE2_WUPE7_SHIFT (6U) 9964 /*! WUPE7 - Wakeup Pin Enable For LLWU_P7 9965 * 0b00..External input pin disabled as wakeup input 9966 * 0b01..External input pin enabled with rising edge detection 9967 * 0b10..External input pin enabled with falling edge detection 9968 * 0b11..External input pin enabled with any change detection 9969 */ 9970 #define LLWU_PE2_WUPE7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE7_SHIFT)) & LLWU_PE2_WUPE7_MASK) 9971 /*! @} */ 9972 9973 /*! @name PE3 - LLWU Pin Enable 3 register */ 9974 /*! @{ */ 9975 9976 #define LLWU_PE3_WUPE8_MASK (0x3U) 9977 #define LLWU_PE3_WUPE8_SHIFT (0U) 9978 /*! WUPE8 - Wakeup Pin Enable For LLWU_P8 9979 * 0b00..External input pin disabled as wakeup input 9980 * 0b01..External input pin enabled with rising edge detection 9981 * 0b10..External input pin enabled with falling edge detection 9982 * 0b11..External input pin enabled with any change detection 9983 */ 9984 #define LLWU_PE3_WUPE8(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE8_SHIFT)) & LLWU_PE3_WUPE8_MASK) 9985 9986 #define LLWU_PE3_WUPE9_MASK (0xCU) 9987 #define LLWU_PE3_WUPE9_SHIFT (2U) 9988 /*! WUPE9 - Wakeup Pin Enable For LLWU_P9 9989 * 0b00..External input pin disabled as wakeup input 9990 * 0b01..External input pin enabled with rising edge detection 9991 * 0b10..External input pin enabled with falling edge detection 9992 * 0b11..External input pin enabled with any change detection 9993 */ 9994 #define LLWU_PE3_WUPE9(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE9_SHIFT)) & LLWU_PE3_WUPE9_MASK) 9995 9996 #define LLWU_PE3_WUPE10_MASK (0x30U) 9997 #define LLWU_PE3_WUPE10_SHIFT (4U) 9998 /*! WUPE10 - Wakeup Pin Enable For LLWU_P10 9999 * 0b00..External input pin disabled as wakeup input 10000 * 0b01..External input pin enabled with rising edge detection 10001 * 0b10..External input pin enabled with falling edge detection 10002 * 0b11..External input pin enabled with any change detection 10003 */ 10004 #define LLWU_PE3_WUPE10(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE10_SHIFT)) & LLWU_PE3_WUPE10_MASK) 10005 10006 #define LLWU_PE3_WUPE11_MASK (0xC0U) 10007 #define LLWU_PE3_WUPE11_SHIFT (6U) 10008 /*! WUPE11 - Wakeup Pin Enable For LLWU_P11 10009 * 0b00..External input pin disabled as wakeup input 10010 * 0b01..External input pin enabled with rising edge detection 10011 * 0b10..External input pin enabled with falling edge detection 10012 * 0b11..External input pin enabled with any change detection 10013 */ 10014 #define LLWU_PE3_WUPE11(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE11_SHIFT)) & LLWU_PE3_WUPE11_MASK) 10015 /*! @} */ 10016 10017 /*! @name PE4 - LLWU Pin Enable 4 register */ 10018 /*! @{ */ 10019 10020 #define LLWU_PE4_WUPE12_MASK (0x3U) 10021 #define LLWU_PE4_WUPE12_SHIFT (0U) 10022 /*! WUPE12 - Wakeup Pin Enable For LLWU_P12 10023 * 0b00..External input pin disabled as wakeup input 10024 * 0b01..External input pin enabled with rising edge detection 10025 * 0b10..External input pin enabled with falling edge detection 10026 * 0b11..External input pin enabled with any change detection 10027 */ 10028 #define LLWU_PE4_WUPE12(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE12_SHIFT)) & LLWU_PE4_WUPE12_MASK) 10029 10030 #define LLWU_PE4_WUPE13_MASK (0xCU) 10031 #define LLWU_PE4_WUPE13_SHIFT (2U) 10032 /*! WUPE13 - Wakeup Pin Enable For LLWU_P13 10033 * 0b00..External input pin disabled as wakeup input 10034 * 0b01..External input pin enabled with rising edge detection 10035 * 0b10..External input pin enabled with falling edge detection 10036 * 0b11..External input pin enabled with any change detection 10037 */ 10038 #define LLWU_PE4_WUPE13(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE13_SHIFT)) & LLWU_PE4_WUPE13_MASK) 10039 10040 #define LLWU_PE4_WUPE14_MASK (0x30U) 10041 #define LLWU_PE4_WUPE14_SHIFT (4U) 10042 /*! WUPE14 - Wakeup Pin Enable For LLWU_P14 10043 * 0b00..External input pin disabled as wakeup input 10044 * 0b01..External input pin enabled with rising edge detection 10045 * 0b10..External input pin enabled with falling edge detection 10046 * 0b11..External input pin enabled with any change detection 10047 */ 10048 #define LLWU_PE4_WUPE14(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE14_SHIFT)) & LLWU_PE4_WUPE14_MASK) 10049 10050 #define LLWU_PE4_WUPE15_MASK (0xC0U) 10051 #define LLWU_PE4_WUPE15_SHIFT (6U) 10052 /*! WUPE15 - Wakeup Pin Enable For LLWU_P15 10053 * 0b00..External input pin disabled as wakeup input 10054 * 0b01..External input pin enabled with rising edge detection 10055 * 0b10..External input pin enabled with falling edge detection 10056 * 0b11..External input pin enabled with any change detection 10057 */ 10058 #define LLWU_PE4_WUPE15(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE15_SHIFT)) & LLWU_PE4_WUPE15_MASK) 10059 /*! @} */ 10060 10061 /*! @name ME - LLWU Module Enable register */ 10062 /*! @{ */ 10063 10064 #define LLWU_ME_WUME0_MASK (0x1U) 10065 #define LLWU_ME_WUME0_SHIFT (0U) 10066 /*! WUME0 - Wakeup Module Enable For Module 0 10067 * 0b0..Internal module flag not used as wakeup source 10068 * 0b1..Internal module flag used as wakeup source 10069 */ 10070 #define LLWU_ME_WUME0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME0_SHIFT)) & LLWU_ME_WUME0_MASK) 10071 10072 #define LLWU_ME_WUME1_MASK (0x2U) 10073 #define LLWU_ME_WUME1_SHIFT (1U) 10074 /*! WUME1 - Wakeup Module Enable for Module 1 10075 * 0b0..Internal module flag not used as wakeup source 10076 * 0b1..Internal module flag used as wakeup source 10077 */ 10078 #define LLWU_ME_WUME1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME1_SHIFT)) & LLWU_ME_WUME1_MASK) 10079 10080 #define LLWU_ME_WUME2_MASK (0x4U) 10081 #define LLWU_ME_WUME2_SHIFT (2U) 10082 /*! WUME2 - Wakeup Module Enable For Module 2 10083 * 0b0..Internal module flag not used as wakeup source 10084 * 0b1..Internal module flag used as wakeup source 10085 */ 10086 #define LLWU_ME_WUME2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME2_SHIFT)) & LLWU_ME_WUME2_MASK) 10087 10088 #define LLWU_ME_WUME3_MASK (0x8U) 10089 #define LLWU_ME_WUME3_SHIFT (3U) 10090 /*! WUME3 - Wakeup Module Enable For Module 3 10091 * 0b0..Internal module flag not used as wakeup source 10092 * 0b1..Internal module flag used as wakeup source 10093 */ 10094 #define LLWU_ME_WUME3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME3_SHIFT)) & LLWU_ME_WUME3_MASK) 10095 10096 #define LLWU_ME_WUME4_MASK (0x10U) 10097 #define LLWU_ME_WUME4_SHIFT (4U) 10098 /*! WUME4 - Wakeup Module Enable For Module 4 10099 * 0b0..Internal module flag not used as wakeup source 10100 * 0b1..Internal module flag used as wakeup source 10101 */ 10102 #define LLWU_ME_WUME4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME4_SHIFT)) & LLWU_ME_WUME4_MASK) 10103 10104 #define LLWU_ME_WUME5_MASK (0x20U) 10105 #define LLWU_ME_WUME5_SHIFT (5U) 10106 /*! WUME5 - Wakeup Module Enable For Module 5 10107 * 0b0..Internal module flag not used as wakeup source 10108 * 0b1..Internal module flag used as wakeup source 10109 */ 10110 #define LLWU_ME_WUME5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME5_SHIFT)) & LLWU_ME_WUME5_MASK) 10111 10112 #define LLWU_ME_WUME6_MASK (0x40U) 10113 #define LLWU_ME_WUME6_SHIFT (6U) 10114 /*! WUME6 - Wakeup Module Enable For Module 6 10115 * 0b0..Internal module flag not used as wakeup source 10116 * 0b1..Internal module flag used as wakeup source 10117 */ 10118 #define LLWU_ME_WUME6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME6_SHIFT)) & LLWU_ME_WUME6_MASK) 10119 10120 #define LLWU_ME_WUME7_MASK (0x80U) 10121 #define LLWU_ME_WUME7_SHIFT (7U) 10122 /*! WUME7 - Wakeup Module Enable For Module 7 10123 * 0b0..Internal module flag not used as wakeup source 10124 * 0b1..Internal module flag used as wakeup source 10125 */ 10126 #define LLWU_ME_WUME7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME7_SHIFT)) & LLWU_ME_WUME7_MASK) 10127 /*! @} */ 10128 10129 /*! @name F1 - LLWU Flag 1 register */ 10130 /*! @{ */ 10131 10132 #define LLWU_F1_WUF0_MASK (0x1U) 10133 #define LLWU_F1_WUF0_SHIFT (0U) 10134 /*! WUF0 - Wakeup Flag For LLWU_P0 10135 * 0b0..LLWU_P0 input was not a wakeup source 10136 * 0b1..LLWU_P0 input was a wakeup source 10137 */ 10138 #define LLWU_F1_WUF0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF0_SHIFT)) & LLWU_F1_WUF0_MASK) 10139 10140 #define LLWU_F1_WUF1_MASK (0x2U) 10141 #define LLWU_F1_WUF1_SHIFT (1U) 10142 /*! WUF1 - Wakeup Flag For LLWU_P1 10143 * 0b0..LLWU_P1 input was not a wakeup source 10144 * 0b1..LLWU_P1 input was a wakeup source 10145 */ 10146 #define LLWU_F1_WUF1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF1_SHIFT)) & LLWU_F1_WUF1_MASK) 10147 10148 #define LLWU_F1_WUF2_MASK (0x4U) 10149 #define LLWU_F1_WUF2_SHIFT (2U) 10150 /*! WUF2 - Wakeup Flag For LLWU_P2 10151 * 0b0..LLWU_P2 input was not a wakeup source 10152 * 0b1..LLWU_P2 input was a wakeup source 10153 */ 10154 #define LLWU_F1_WUF2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF2_SHIFT)) & LLWU_F1_WUF2_MASK) 10155 10156 #define LLWU_F1_WUF3_MASK (0x8U) 10157 #define LLWU_F1_WUF3_SHIFT (3U) 10158 /*! WUF3 - Wakeup Flag For LLWU_P3 10159 * 0b0..LLWU_P3 input was not a wake-up source 10160 * 0b1..LLWU_P3 input was a wake-up source 10161 */ 10162 #define LLWU_F1_WUF3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF3_SHIFT)) & LLWU_F1_WUF3_MASK) 10163 10164 #define LLWU_F1_WUF4_MASK (0x10U) 10165 #define LLWU_F1_WUF4_SHIFT (4U) 10166 /*! WUF4 - Wakeup Flag For LLWU_P4 10167 * 0b0..LLWU_P4 input was not a wakeup source 10168 * 0b1..LLWU_P4 input was a wakeup source 10169 */ 10170 #define LLWU_F1_WUF4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF4_SHIFT)) & LLWU_F1_WUF4_MASK) 10171 10172 #define LLWU_F1_WUF5_MASK (0x20U) 10173 #define LLWU_F1_WUF5_SHIFT (5U) 10174 /*! WUF5 - Wakeup Flag For LLWU_P5 10175 * 0b0..LLWU_P5 input was not a wakeup source 10176 * 0b1..LLWU_P5 input was a wakeup source 10177 */ 10178 #define LLWU_F1_WUF5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF5_SHIFT)) & LLWU_F1_WUF5_MASK) 10179 10180 #define LLWU_F1_WUF6_MASK (0x40U) 10181 #define LLWU_F1_WUF6_SHIFT (6U) 10182 /*! WUF6 - Wakeup Flag For LLWU_P6 10183 * 0b0..LLWU_P6 input was not a wakeup source 10184 * 0b1..LLWU_P6 input was a wakeup source 10185 */ 10186 #define LLWU_F1_WUF6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF6_SHIFT)) & LLWU_F1_WUF6_MASK) 10187 10188 #define LLWU_F1_WUF7_MASK (0x80U) 10189 #define LLWU_F1_WUF7_SHIFT (7U) 10190 /*! WUF7 - Wakeup Flag For LLWU_P7 10191 * 0b0..LLWU_P7 input was not a wakeup source 10192 * 0b1..LLWU_P7 input was a wakeup source 10193 */ 10194 #define LLWU_F1_WUF7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF7_SHIFT)) & LLWU_F1_WUF7_MASK) 10195 /*! @} */ 10196 10197 /*! @name F2 - LLWU Flag 2 register */ 10198 /*! @{ */ 10199 10200 #define LLWU_F2_WUF8_MASK (0x1U) 10201 #define LLWU_F2_WUF8_SHIFT (0U) 10202 /*! WUF8 - Wakeup Flag For LLWU_P8 10203 * 0b0..LLWU_P8 input was not a wakeup source 10204 * 0b1..LLWU_P8 input was a wakeup source 10205 */ 10206 #define LLWU_F2_WUF8(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF8_SHIFT)) & LLWU_F2_WUF8_MASK) 10207 10208 #define LLWU_F2_WUF9_MASK (0x2U) 10209 #define LLWU_F2_WUF9_SHIFT (1U) 10210 /*! WUF9 - Wakeup Flag For LLWU_P9 10211 * 0b0..LLWU_P9 input was not a wakeup source 10212 * 0b1..LLWU_P9 input was a wakeup source 10213 */ 10214 #define LLWU_F2_WUF9(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF9_SHIFT)) & LLWU_F2_WUF9_MASK) 10215 10216 #define LLWU_F2_WUF10_MASK (0x4U) 10217 #define LLWU_F2_WUF10_SHIFT (2U) 10218 /*! WUF10 - Wakeup Flag For LLWU_P10 10219 * 0b0..LLWU_P10 input was not a wakeup source 10220 * 0b1..LLWU_P10 input was a wakeup source 10221 */ 10222 #define LLWU_F2_WUF10(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF10_SHIFT)) & LLWU_F2_WUF10_MASK) 10223 10224 #define LLWU_F2_WUF11_MASK (0x8U) 10225 #define LLWU_F2_WUF11_SHIFT (3U) 10226 /*! WUF11 - Wakeup Flag For LLWU_P11 10227 * 0b0..LLWU_P11 input was not a wakeup source 10228 * 0b1..LLWU_P11 input was a wakeup source 10229 */ 10230 #define LLWU_F2_WUF11(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF11_SHIFT)) & LLWU_F2_WUF11_MASK) 10231 10232 #define LLWU_F2_WUF12_MASK (0x10U) 10233 #define LLWU_F2_WUF12_SHIFT (4U) 10234 /*! WUF12 - Wakeup Flag For LLWU_P12 10235 * 0b0..LLWU_P12 input was not a wakeup source 10236 * 0b1..LLWU_P12 input was a wakeup source 10237 */ 10238 #define LLWU_F2_WUF12(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF12_SHIFT)) & LLWU_F2_WUF12_MASK) 10239 10240 #define LLWU_F2_WUF13_MASK (0x20U) 10241 #define LLWU_F2_WUF13_SHIFT (5U) 10242 /*! WUF13 - Wakeup Flag For LLWU_P13 10243 * 0b0..LLWU_P13 input was not a wakeup source 10244 * 0b1..LLWU_P13 input was a wakeup source 10245 */ 10246 #define LLWU_F2_WUF13(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF13_SHIFT)) & LLWU_F2_WUF13_MASK) 10247 10248 #define LLWU_F2_WUF14_MASK (0x40U) 10249 #define LLWU_F2_WUF14_SHIFT (6U) 10250 /*! WUF14 - Wakeup Flag For LLWU_P14 10251 * 0b0..LLWU_P14 input was not a wakeup source 10252 * 0b1..LLWU_P14 input was a wakeup source 10253 */ 10254 #define LLWU_F2_WUF14(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF14_SHIFT)) & LLWU_F2_WUF14_MASK) 10255 10256 #define LLWU_F2_WUF15_MASK (0x80U) 10257 #define LLWU_F2_WUF15_SHIFT (7U) 10258 /*! WUF15 - Wakeup Flag For LLWU_P15 10259 * 0b0..LLWU_P15 input was not a wakeup source 10260 * 0b1..LLWU_P15 input was a wakeup source 10261 */ 10262 #define LLWU_F2_WUF15(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF15_SHIFT)) & LLWU_F2_WUF15_MASK) 10263 /*! @} */ 10264 10265 /*! @name F3 - LLWU Flag 3 register */ 10266 /*! @{ */ 10267 10268 #define LLWU_F3_MWUF0_MASK (0x1U) 10269 #define LLWU_F3_MWUF0_SHIFT (0U) 10270 /*! MWUF0 - Wakeup flag For module 0 10271 * 0b0..Module 0 input was not a wakeup source 10272 * 0b1..Module 0 input was a wakeup source 10273 */ 10274 #define LLWU_F3_MWUF0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF0_SHIFT)) & LLWU_F3_MWUF0_MASK) 10275 10276 #define LLWU_F3_MWUF1_MASK (0x2U) 10277 #define LLWU_F3_MWUF1_SHIFT (1U) 10278 /*! MWUF1 - Wakeup flag For module 1 10279 * 0b0..Module 1 input was not a wakeup source 10280 * 0b1..Module 1 input was a wakeup source 10281 */ 10282 #define LLWU_F3_MWUF1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF1_SHIFT)) & LLWU_F3_MWUF1_MASK) 10283 10284 #define LLWU_F3_MWUF2_MASK (0x4U) 10285 #define LLWU_F3_MWUF2_SHIFT (2U) 10286 /*! MWUF2 - Wakeup flag For module 2 10287 * 0b0..Module 2 input was not a wakeup source 10288 * 0b1..Module 2 input was a wakeup source 10289 */ 10290 #define LLWU_F3_MWUF2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF2_SHIFT)) & LLWU_F3_MWUF2_MASK) 10291 10292 #define LLWU_F3_MWUF3_MASK (0x8U) 10293 #define LLWU_F3_MWUF3_SHIFT (3U) 10294 /*! MWUF3 - Wakeup flag For module 3 10295 * 0b0..Module 3 input was not a wakeup source 10296 * 0b1..Module 3 input was a wakeup source 10297 */ 10298 #define LLWU_F3_MWUF3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF3_SHIFT)) & LLWU_F3_MWUF3_MASK) 10299 10300 #define LLWU_F3_MWUF4_MASK (0x10U) 10301 #define LLWU_F3_MWUF4_SHIFT (4U) 10302 /*! MWUF4 - Wakeup flag For module 4 10303 * 0b0..Module 4 input was not a wakeup source 10304 * 0b1..Module 4 input was a wakeup source 10305 */ 10306 #define LLWU_F3_MWUF4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF4_SHIFT)) & LLWU_F3_MWUF4_MASK) 10307 10308 #define LLWU_F3_MWUF5_MASK (0x20U) 10309 #define LLWU_F3_MWUF5_SHIFT (5U) 10310 /*! MWUF5 - Wakeup flag For module 5 10311 * 0b0..Module 5 input was not a wakeup source 10312 * 0b1..Module 5 input was a wakeup source 10313 */ 10314 #define LLWU_F3_MWUF5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF5_SHIFT)) & LLWU_F3_MWUF5_MASK) 10315 10316 #define LLWU_F3_MWUF6_MASK (0x40U) 10317 #define LLWU_F3_MWUF6_SHIFT (6U) 10318 /*! MWUF6 - Wakeup flag For module 6 10319 * 0b0..Module 6 input was not a wakeup source 10320 * 0b1..Module 6 input was a wakeup source 10321 */ 10322 #define LLWU_F3_MWUF6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF6_SHIFT)) & LLWU_F3_MWUF6_MASK) 10323 10324 #define LLWU_F3_MWUF7_MASK (0x80U) 10325 #define LLWU_F3_MWUF7_SHIFT (7U) 10326 /*! MWUF7 - Wakeup flag For module 7 10327 * 0b0..Module 7 input was not a wakeup source 10328 * 0b1..Module 7 input was a wakeup source 10329 */ 10330 #define LLWU_F3_MWUF7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF7_SHIFT)) & LLWU_F3_MWUF7_MASK) 10331 /*! @} */ 10332 10333 /*! @name FILT1 - LLWU Pin Filter 1 register */ 10334 /*! @{ */ 10335 10336 #define LLWU_FILT1_FILTSEL_MASK (0xFU) 10337 #define LLWU_FILT1_FILTSEL_SHIFT (0U) 10338 /*! FILTSEL - Filter Pin Select 10339 * 0b0000..Select LLWU_P0 for filter 10340 * 0b1111..Select LLWU_P15 for filter 10341 */ 10342 #define LLWU_FILT1_FILTSEL(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTSEL_SHIFT)) & LLWU_FILT1_FILTSEL_MASK) 10343 10344 #define LLWU_FILT1_FILTE_MASK (0x60U) 10345 #define LLWU_FILT1_FILTE_SHIFT (5U) 10346 /*! FILTE - Digital Filter On External Pin 10347 * 0b00..Filter disabled 10348 * 0b01..Filter posedge detect enabled 10349 * 0b10..Filter negedge detect enabled 10350 * 0b11..Filter any edge detect enabled 10351 */ 10352 #define LLWU_FILT1_FILTE(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTE_SHIFT)) & LLWU_FILT1_FILTE_MASK) 10353 10354 #define LLWU_FILT1_FILTF_MASK (0x80U) 10355 #define LLWU_FILT1_FILTF_SHIFT (7U) 10356 /*! FILTF - Filter Detect Flag 10357 * 0b0..Pin Filter 1 was not a wakeup source 10358 * 0b1..Pin Filter 1 was a wakeup source 10359 */ 10360 #define LLWU_FILT1_FILTF(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTF_SHIFT)) & LLWU_FILT1_FILTF_MASK) 10361 /*! @} */ 10362 10363 /*! @name FILT2 - LLWU Pin Filter 2 register */ 10364 /*! @{ */ 10365 10366 #define LLWU_FILT2_FILTSEL_MASK (0xFU) 10367 #define LLWU_FILT2_FILTSEL_SHIFT (0U) 10368 /*! FILTSEL - Filter Pin Select 10369 * 0b0000..Select LLWU_P0 for filter 10370 * 0b1111..Select LLWU_P15 for filter 10371 */ 10372 #define LLWU_FILT2_FILTSEL(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTSEL_SHIFT)) & LLWU_FILT2_FILTSEL_MASK) 10373 10374 #define LLWU_FILT2_FILTE_MASK (0x60U) 10375 #define LLWU_FILT2_FILTE_SHIFT (5U) 10376 /*! FILTE - Digital Filter On External Pin 10377 * 0b00..Filter disabled 10378 * 0b01..Filter posedge detect enabled 10379 * 0b10..Filter negedge detect enabled 10380 * 0b11..Filter any edge detect enabled 10381 */ 10382 #define LLWU_FILT2_FILTE(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTE_SHIFT)) & LLWU_FILT2_FILTE_MASK) 10383 10384 #define LLWU_FILT2_FILTF_MASK (0x80U) 10385 #define LLWU_FILT2_FILTF_SHIFT (7U) 10386 /*! FILTF - Filter Detect Flag 10387 * 0b0..Pin Filter 2 was not a wakeup source 10388 * 0b1..Pin Filter 2 was a wakeup source 10389 */ 10390 #define LLWU_FILT2_FILTF(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTF_SHIFT)) & LLWU_FILT2_FILTF_MASK) 10391 /*! @} */ 10392 10393 10394 /*! 10395 * @} 10396 */ /* end of group LLWU_Register_Masks */ 10397 10398 10399 /* LLWU - Peripheral instance base addresses */ 10400 /** Peripheral LLWU base address */ 10401 #define LLWU_BASE (0x4007C000u) 10402 /** Peripheral LLWU base pointer */ 10403 #define LLWU ((LLWU_Type *)LLWU_BASE) 10404 /** Array initializer of LLWU peripheral base addresses */ 10405 #define LLWU_BASE_ADDRS { LLWU_BASE } 10406 /** Array initializer of LLWU peripheral base pointers */ 10407 #define LLWU_BASE_PTRS { LLWU } 10408 /** Interrupt vectors for the LLWU peripheral type */ 10409 #define LLWU_IRQS { LLWU_IRQn } 10410 10411 /*! 10412 * @} 10413 */ /* end of group LLWU_Peripheral_Access_Layer */ 10414 10415 10416 /* ---------------------------------------------------------------------------- 10417 -- LPTMR Peripheral Access Layer 10418 ---------------------------------------------------------------------------- */ 10419 10420 /*! 10421 * @addtogroup LPTMR_Peripheral_Access_Layer LPTMR Peripheral Access Layer 10422 * @{ 10423 */ 10424 10425 /** LPTMR - Register Layout Typedef */ 10426 typedef struct { 10427 __IO uint32_t CSR; /**< Low Power Timer Control Status Register, offset: 0x0 */ 10428 __IO uint32_t PSR; /**< Low Power Timer Prescale Register, offset: 0x4 */ 10429 __IO uint32_t CMR; /**< Low Power Timer Compare Register, offset: 0x8 */ 10430 __IO uint32_t CNR; /**< Low Power Timer Counter Register, offset: 0xC */ 10431 } LPTMR_Type; 10432 10433 /* ---------------------------------------------------------------------------- 10434 -- LPTMR Register Masks 10435 ---------------------------------------------------------------------------- */ 10436 10437 /*! 10438 * @addtogroup LPTMR_Register_Masks LPTMR Register Masks 10439 * @{ 10440 */ 10441 10442 /*! @name CSR - Low Power Timer Control Status Register */ 10443 /*! @{ */ 10444 10445 #define LPTMR_CSR_TEN_MASK (0x1U) 10446 #define LPTMR_CSR_TEN_SHIFT (0U) 10447 /*! TEN - Timer Enable 10448 * 0b0..LPTMR is disabled and internal logic is reset. 10449 * 0b1..LPTMR is enabled. 10450 */ 10451 #define LPTMR_CSR_TEN(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TEN_SHIFT)) & LPTMR_CSR_TEN_MASK) 10452 10453 #define LPTMR_CSR_TMS_MASK (0x2U) 10454 #define LPTMR_CSR_TMS_SHIFT (1U) 10455 /*! TMS - Timer Mode Select 10456 * 0b0..Time Counter mode. 10457 * 0b1..Pulse Counter mode. 10458 */ 10459 #define LPTMR_CSR_TMS(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TMS_SHIFT)) & LPTMR_CSR_TMS_MASK) 10460 10461 #define LPTMR_CSR_TFC_MASK (0x4U) 10462 #define LPTMR_CSR_TFC_SHIFT (2U) 10463 /*! TFC - Timer Free-Running Counter 10464 * 0b0..CNR is reset whenever TCF is set. 10465 * 0b1..CNR is reset on overflow. 10466 */ 10467 #define LPTMR_CSR_TFC(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TFC_SHIFT)) & LPTMR_CSR_TFC_MASK) 10468 10469 #define LPTMR_CSR_TPP_MASK (0x8U) 10470 #define LPTMR_CSR_TPP_SHIFT (3U) 10471 /*! TPP - Timer Pin Polarity 10472 * 0b0..Pulse Counter input source is active-high, and the CNR will increment on the rising-edge. 10473 * 0b1..Pulse Counter input source is active-low, and the CNR will increment on the falling-edge. 10474 */ 10475 #define LPTMR_CSR_TPP(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TPP_SHIFT)) & LPTMR_CSR_TPP_MASK) 10476 10477 #define LPTMR_CSR_TPS_MASK (0x30U) 10478 #define LPTMR_CSR_TPS_SHIFT (4U) 10479 /*! TPS - Timer Pin Select 10480 * 0b00..Pulse counter input 0 is selected. 10481 * 0b01..Pulse counter input 1 is selected. 10482 * 0b10..Pulse counter input 2 is selected. 10483 * 0b11..Pulse counter input 3 is selected. 10484 */ 10485 #define LPTMR_CSR_TPS(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TPS_SHIFT)) & LPTMR_CSR_TPS_MASK) 10486 10487 #define LPTMR_CSR_TIE_MASK (0x40U) 10488 #define LPTMR_CSR_TIE_SHIFT (6U) 10489 /*! TIE - Timer Interrupt Enable 10490 * 0b0..Timer interrupt disabled. 10491 * 0b1..Timer interrupt enabled. 10492 */ 10493 #define LPTMR_CSR_TIE(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TIE_SHIFT)) & LPTMR_CSR_TIE_MASK) 10494 10495 #define LPTMR_CSR_TCF_MASK (0x80U) 10496 #define LPTMR_CSR_TCF_SHIFT (7U) 10497 /*! TCF - Timer Compare Flag 10498 * 0b0..The value of CNR is not equal to CMR and increments. 10499 * 0b1..The value of CNR is equal to CMR and increments. 10500 */ 10501 #define LPTMR_CSR_TCF(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TCF_SHIFT)) & LPTMR_CSR_TCF_MASK) 10502 /*! @} */ 10503 10504 /*! @name PSR - Low Power Timer Prescale Register */ 10505 /*! @{ */ 10506 10507 #define LPTMR_PSR_PCS_MASK (0x3U) 10508 #define LPTMR_PSR_PCS_SHIFT (0U) 10509 /*! PCS - Prescaler Clock Select 10510 * 0b00..Prescaler/glitch filter clock 0 selected. 10511 * 0b01..Prescaler/glitch filter clock 1 selected. 10512 * 0b10..Prescaler/glitch filter clock 2 selected. 10513 * 0b11..Prescaler/glitch filter clock 3 selected. 10514 */ 10515 #define LPTMR_PSR_PCS(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_PSR_PCS_SHIFT)) & LPTMR_PSR_PCS_MASK) 10516 10517 #define LPTMR_PSR_PBYP_MASK (0x4U) 10518 #define LPTMR_PSR_PBYP_SHIFT (2U) 10519 /*! PBYP - Prescaler Bypass 10520 * 0b0..Prescaler/glitch filter is enabled. 10521 * 0b1..Prescaler/glitch filter is bypassed. 10522 */ 10523 #define LPTMR_PSR_PBYP(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_PSR_PBYP_SHIFT)) & LPTMR_PSR_PBYP_MASK) 10524 10525 #define LPTMR_PSR_PRESCALE_MASK (0x78U) 10526 #define LPTMR_PSR_PRESCALE_SHIFT (3U) 10527 /*! PRESCALE - Prescale Value 10528 * 0b0000..Prescaler divides the prescaler clock by 2; glitch filter does not support this configuration. 10529 * 0b0001..Prescaler divides the prescaler clock by 4; glitch filter recognizes change on input pin after 2 rising clock edges. 10530 * 0b0010..Prescaler divides the prescaler clock by 8; glitch filter recognizes change on input pin after 4 rising clock edges. 10531 * 0b0011..Prescaler divides the prescaler clock by 16; glitch filter recognizes change on input pin after 8 rising clock edges. 10532 * 0b0100..Prescaler divides the prescaler clock by 32; glitch filter recognizes change on input pin after 16 rising clock edges. 10533 * 0b0101..Prescaler divides the prescaler clock by 64; glitch filter recognizes change on input pin after 32 rising clock edges. 10534 * 0b0110..Prescaler divides the prescaler clock by 128; glitch filter recognizes change on input pin after 64 rising clock edges. 10535 * 0b0111..Prescaler divides the prescaler clock by 256; glitch filter recognizes change on input pin after 128 rising clock edges. 10536 * 0b1000..Prescaler divides the prescaler clock by 512; glitch filter recognizes change on input pin after 256 rising clock edges. 10537 * 0b1001..Prescaler divides the prescaler clock by 1024; glitch filter recognizes change on input pin after 512 rising clock edges. 10538 * 0b1010..Prescaler divides the prescaler clock by 2048; glitch filter recognizes change on input pin after 1024 rising clock edges. 10539 * 0b1011..Prescaler divides the prescaler clock by 4096; glitch filter recognizes change on input pin after 2048 rising clock edges. 10540 * 0b1100..Prescaler divides the prescaler clock by 8192; glitch filter recognizes change on input pin after 4096 rising clock edges. 10541 * 0b1101..Prescaler divides the prescaler clock by 16,384; glitch filter recognizes change on input pin after 8192 rising clock edges. 10542 * 0b1110..Prescaler divides the prescaler clock by 32,768; glitch filter recognizes change on input pin after 16,384 rising clock edges. 10543 * 0b1111..Prescaler divides the prescaler clock by 65,536; glitch filter recognizes change on input pin after 32,768 rising clock edges. 10544 */ 10545 #define LPTMR_PSR_PRESCALE(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_PSR_PRESCALE_SHIFT)) & LPTMR_PSR_PRESCALE_MASK) 10546 /*! @} */ 10547 10548 /*! @name CMR - Low Power Timer Compare Register */ 10549 /*! @{ */ 10550 10551 #define LPTMR_CMR_COMPARE_MASK (0xFFFFU) 10552 #define LPTMR_CMR_COMPARE_SHIFT (0U) 10553 /*! COMPARE - Compare Value 10554 */ 10555 #define LPTMR_CMR_COMPARE(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CMR_COMPARE_SHIFT)) & LPTMR_CMR_COMPARE_MASK) 10556 /*! @} */ 10557 10558 /*! @name CNR - Low Power Timer Counter Register */ 10559 /*! @{ */ 10560 10561 #define LPTMR_CNR_COUNTER_MASK (0xFFFFU) 10562 #define LPTMR_CNR_COUNTER_SHIFT (0U) 10563 /*! COUNTER - Counter Value 10564 */ 10565 #define LPTMR_CNR_COUNTER(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CNR_COUNTER_SHIFT)) & LPTMR_CNR_COUNTER_MASK) 10566 /*! @} */ 10567 10568 10569 /*! 10570 * @} 10571 */ /* end of group LPTMR_Register_Masks */ 10572 10573 10574 /* LPTMR - Peripheral instance base addresses */ 10575 /** Peripheral LPTMR base address */ 10576 #define LPTMR_BASE (0x4003C000u) 10577 /** Peripheral LPTMR base pointer */ 10578 #define LPTMR ((LPTMR_Type *)LPTMR_BASE) 10579 /** Array initializer of LPTMR peripheral base addresses */ 10580 #define LPTMR_BASE_ADDRS { LPTMR_BASE } 10581 /** Array initializer of LPTMR peripheral base pointers */ 10582 #define LPTMR_BASE_PTRS { LPTMR } 10583 /** Interrupt vectors for the LPTMR peripheral type */ 10584 #define LPTMR_IRQS { LPTMR_IRQn } 10585 10586 /*! 10587 * @} 10588 */ /* end of group LPTMR_Peripheral_Access_Layer */ 10589 10590 10591 /* ---------------------------------------------------------------------------- 10592 -- MCG Peripheral Access Layer 10593 ---------------------------------------------------------------------------- */ 10594 10595 /*! 10596 * @addtogroup MCG_Peripheral_Access_Layer MCG Peripheral Access Layer 10597 * @{ 10598 */ 10599 10600 /** MCG - Register Layout Typedef */ 10601 typedef struct { 10602 __IO uint8_t C1; /**< MCG Control 1 Register, offset: 0x0 */ 10603 __IO uint8_t C2; /**< MCG Control 2 Register, offset: 0x1 */ 10604 __IO uint8_t C3; /**< MCG Control 3 Register, offset: 0x2 */ 10605 __IO uint8_t C4; /**< MCG Control 4 Register, offset: 0x3 */ 10606 __IO uint8_t C5; /**< MCG Control 5 Register, offset: 0x4 */ 10607 __IO uint8_t C6; /**< MCG Control 6 Register, offset: 0x5 */ 10608 __IO uint8_t S; /**< MCG Status Register, offset: 0x6 */ 10609 uint8_t RESERVED_0[1]; 10610 __IO uint8_t SC; /**< MCG Status and Control Register, offset: 0x8 */ 10611 uint8_t RESERVED_1[1]; 10612 __IO uint8_t ATCVH; /**< MCG Auto Trim Compare Value High Register, offset: 0xA */ 10613 __IO uint8_t ATCVL; /**< MCG Auto Trim Compare Value Low Register, offset: 0xB */ 10614 __IO uint8_t C7; /**< MCG Control 7 Register, offset: 0xC */ 10615 __IO uint8_t C8; /**< MCG Control 8 Register, offset: 0xD */ 10616 __I uint8_t C9; /**< MCG Control 9 Register, offset: 0xE */ 10617 } MCG_Type; 10618 10619 /* ---------------------------------------------------------------------------- 10620 -- MCG Register Masks 10621 ---------------------------------------------------------------------------- */ 10622 10623 /*! 10624 * @addtogroup MCG_Register_Masks MCG Register Masks 10625 * @{ 10626 */ 10627 10628 /*! @name C1 - MCG Control 1 Register */ 10629 /*! @{ */ 10630 10631 #define MCG_C1_IREFSTEN_MASK (0x1U) 10632 #define MCG_C1_IREFSTEN_SHIFT (0U) 10633 /*! IREFSTEN - Internal Reference Stop Enable 10634 * 0b0..Internal reference clock is disabled in Stop mode. 10635 * 0b1..Internal reference clock is enabled in Stop mode if IRCLKEN is set or if MCG is in FEI, FBI, or BLPI modes before entering Stop mode. 10636 */ 10637 #define MCG_C1_IREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_IREFSTEN_SHIFT)) & MCG_C1_IREFSTEN_MASK) 10638 10639 #define MCG_C1_IRCLKEN_MASK (0x2U) 10640 #define MCG_C1_IRCLKEN_SHIFT (1U) 10641 /*! IRCLKEN - Internal Reference Clock Enable 10642 * 0b0..MCGIRCLK inactive. 10643 * 0b1..MCGIRCLK active. 10644 */ 10645 #define MCG_C1_IRCLKEN(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_IRCLKEN_SHIFT)) & MCG_C1_IRCLKEN_MASK) 10646 10647 #define MCG_C1_IREFS_MASK (0x4U) 10648 #define MCG_C1_IREFS_SHIFT (2U) 10649 /*! IREFS - Internal Reference Select 10650 * 0b0..External reference clock is selected. 10651 * 0b1..The slow internal reference clock is selected. 10652 */ 10653 #define MCG_C1_IREFS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_IREFS_SHIFT)) & MCG_C1_IREFS_MASK) 10654 10655 #define MCG_C1_FRDIV_MASK (0x38U) 10656 #define MCG_C1_FRDIV_SHIFT (3U) 10657 /*! FRDIV - FLL External Reference Divider 10658 * 0b000..If RANGE = 0 , Divide Factor is 1; for all other RANGE values, Divide Factor is 32. 10659 * 0b001..If RANGE = 0 , Divide Factor is 2; for all other RANGE values, Divide Factor is 64. 10660 * 0b010..If RANGE = 0 , Divide Factor is 4; for all other RANGE values, Divide Factor is 128. 10661 * 0b011..If RANGE = 0 , Divide Factor is 8; for all other RANGE values, Divide Factor is 256. 10662 * 0b100..If RANGE = 0 , Divide Factor is 16; for all other RANGE values, Divide Factor is 512. 10663 * 0b101..If RANGE = 0 , Divide Factor is 32; for all other RANGE values, Divide Factor is 1024. 10664 * 0b110..If RANGE = 0 , Divide Factor is 64; for all other RANGE values, Divide Factor is 1280 . 10665 * 0b111..If RANGE = 0 , Divide Factor is 128; for all other RANGE values, Divide Factor is 1536 . 10666 */ 10667 #define MCG_C1_FRDIV(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_FRDIV_SHIFT)) & MCG_C1_FRDIV_MASK) 10668 10669 #define MCG_C1_CLKS_MASK (0xC0U) 10670 #define MCG_C1_CLKS_SHIFT (6U) 10671 /*! CLKS - Clock Source Select 10672 * 0b00..Encoding 0 - Output of FLL or PLL is selected (depends on PLLS control bit). 10673 * 0b01..Encoding 1 - Internal reference clock is selected. 10674 * 0b10..Encoding 2 - External reference clock is selected. 10675 * 0b11..Encoding 3 - Reserved. 10676 */ 10677 #define MCG_C1_CLKS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_CLKS_SHIFT)) & MCG_C1_CLKS_MASK) 10678 /*! @} */ 10679 10680 /*! @name C2 - MCG Control 2 Register */ 10681 /*! @{ */ 10682 10683 #define MCG_C2_IRCS_MASK (0x1U) 10684 #define MCG_C2_IRCS_SHIFT (0U) 10685 /*! IRCS - Internal Reference Clock Select 10686 * 0b0..Slow internal reference clock selected. 10687 * 0b1..Fast internal reference clock selected. 10688 */ 10689 #define MCG_C2_IRCS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_IRCS_SHIFT)) & MCG_C2_IRCS_MASK) 10690 10691 #define MCG_C2_LP_MASK (0x2U) 10692 #define MCG_C2_LP_SHIFT (1U) 10693 /*! LP - Low Power Select 10694 * 0b0..FLL or PLL is not disabled in bypass modes. 10695 * 0b1..FLL or PLL is disabled in bypass modes (lower power) 10696 */ 10697 #define MCG_C2_LP(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_LP_SHIFT)) & MCG_C2_LP_MASK) 10698 10699 #define MCG_C2_EREFS0_MASK (0x4U) 10700 #define MCG_C2_EREFS0_SHIFT (2U) 10701 /*! EREFS0 - External Reference Select 10702 * 0b0..External reference clock requested. 10703 * 0b1..Oscillator requested. 10704 */ 10705 #define MCG_C2_EREFS0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_EREFS0_SHIFT)) & MCG_C2_EREFS0_MASK) 10706 10707 #define MCG_C2_HGO0_MASK (0x8U) 10708 #define MCG_C2_HGO0_SHIFT (3U) 10709 /*! HGO0 - High Gain Oscillator Select 10710 * 0b0..Configure crystal oscillator for low-power operation. 10711 * 0b1..Configure crystal oscillator for high-gain operation. 10712 */ 10713 #define MCG_C2_HGO0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_HGO0_SHIFT)) & MCG_C2_HGO0_MASK) 10714 10715 #define MCG_C2_RANGE0_MASK (0x30U) 10716 #define MCG_C2_RANGE0_SHIFT (4U) 10717 /*! RANGE0 - Frequency Range Select 10718 * 0b00..Encoding 0 - Low frequency range selected for the crystal oscillator . 10719 * 0b01..Encoding 1 - High frequency range selected for the crystal oscillator . 10720 * 0b1x..Encoding 2 - Very high frequency range selected for the crystal oscillator . 10721 */ 10722 #define MCG_C2_RANGE0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_RANGE0_SHIFT)) & MCG_C2_RANGE0_MASK) 10723 10724 #define MCG_C2_LOCRE0_MASK (0x80U) 10725 #define MCG_C2_LOCRE0_SHIFT (7U) 10726 /*! LOCRE0 - Loss of Clock Reset Enable 10727 * 0b0..Interrupt request is generated on a loss of OSC external reference clock. 10728 * 0b1..Generate a reset request on a loss of OSC external reference clock. 10729 */ 10730 #define MCG_C2_LOCRE0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_LOCRE0_SHIFT)) & MCG_C2_LOCRE0_MASK) 10731 /*! @} */ 10732 10733 /*! @name C3 - MCG Control 3 Register */ 10734 /*! @{ */ 10735 10736 #define MCG_C3_SCTRIM_MASK (0xFFU) 10737 #define MCG_C3_SCTRIM_SHIFT (0U) 10738 /*! SCTRIM - Slow Internal Reference Clock Trim Setting 10739 */ 10740 #define MCG_C3_SCTRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_C3_SCTRIM_SHIFT)) & MCG_C3_SCTRIM_MASK) 10741 /*! @} */ 10742 10743 /*! @name C4 - MCG Control 4 Register */ 10744 /*! @{ */ 10745 10746 #define MCG_C4_SCFTRIM_MASK (0x1U) 10747 #define MCG_C4_SCFTRIM_SHIFT (0U) 10748 /*! SCFTRIM - Slow Internal Reference Clock Fine Trim 10749 */ 10750 #define MCG_C4_SCFTRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_SCFTRIM_SHIFT)) & MCG_C4_SCFTRIM_MASK) 10751 10752 #define MCG_C4_FCTRIM_MASK (0x1EU) 10753 #define MCG_C4_FCTRIM_SHIFT (1U) 10754 /*! FCTRIM - Fast Internal Reference Clock Trim Setting 10755 */ 10756 #define MCG_C4_FCTRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_FCTRIM_SHIFT)) & MCG_C4_FCTRIM_MASK) 10757 10758 #define MCG_C4_DRST_DRS_MASK (0x60U) 10759 #define MCG_C4_DRST_DRS_SHIFT (5U) 10760 /*! DRST_DRS - DCO Range Select 10761 * 0b00..Encoding 0 - Low range (reset default). 10762 * 0b01..Encoding 1 - Mid range. 10763 * 0b10..Encoding 2 - Mid-high range. 10764 * 0b11..Encoding 3 - High range. 10765 */ 10766 #define MCG_C4_DRST_DRS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_DRST_DRS_SHIFT)) & MCG_C4_DRST_DRS_MASK) 10767 10768 #define MCG_C4_DMX32_MASK (0x80U) 10769 #define MCG_C4_DMX32_SHIFT (7U) 10770 /*! DMX32 - DCO Maximum Frequency with 32.768 kHz Reference 10771 * 0b0..DCO has a default range of 25%. 10772 * 0b1..DCO is fine-tuned for maximum frequency with 32.768 kHz reference. 10773 */ 10774 #define MCG_C4_DMX32(x) (((uint8_t)(((uint8_t)(x)) << MCG_C4_DMX32_SHIFT)) & MCG_C4_DMX32_MASK) 10775 /*! @} */ 10776 10777 /*! @name C5 - MCG Control 5 Register */ 10778 /*! @{ */ 10779 10780 #define MCG_C5_PLLSTEN0_MASK (0x20U) 10781 #define MCG_C5_PLLSTEN0_SHIFT (5U) 10782 /*! PLLSTEN0 - PLL Stop Enable 10783 * 0b0..MCGPLLCLK is disabled in any of the Stop modes. 10784 * 0b1..MCGPLLCLK is enabled if system is in Normal Stop mode. 10785 */ 10786 #define MCG_C5_PLLSTEN0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C5_PLLSTEN0_SHIFT)) & MCG_C5_PLLSTEN0_MASK) 10787 10788 #define MCG_C5_PLLCLKEN0_MASK (0x40U) 10789 #define MCG_C5_PLLCLKEN0_SHIFT (6U) 10790 /*! PLLCLKEN0 - PLL Clock Enable 10791 * 0b0..MCGPLLCLK is inactive. 10792 * 0b1..MCGPLLCLK is active. 10793 */ 10794 #define MCG_C5_PLLCLKEN0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C5_PLLCLKEN0_SHIFT)) & MCG_C5_PLLCLKEN0_MASK) 10795 /*! @} */ 10796 10797 /*! @name C6 - MCG Control 6 Register */ 10798 /*! @{ */ 10799 10800 #define MCG_C6_CHGPMP_BIAS_MASK (0x1FU) 10801 #define MCG_C6_CHGPMP_BIAS_SHIFT (0U) 10802 /*! CHGPMP_BIAS - Directly controls the PLL Charge Pump Current. Appropiate selection of this value 10803 * is imperative to ensure stable operation of the PLL closed loop system. The default value for 10804 * this field is set to 5'b01000 out of reset which generates a nominal 750nA charge pump current 10805 * (lcp). 10806 */ 10807 #define MCG_C6_CHGPMP_BIAS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_CHGPMP_BIAS_SHIFT)) & MCG_C6_CHGPMP_BIAS_MASK) 10808 10809 #define MCG_C6_CME0_MASK (0x20U) 10810 #define MCG_C6_CME0_SHIFT (5U) 10811 /*! CME0 - Clock Monitor Enable 10812 * 0b0..External clock monitor is disabled for OSC. 10813 * 0b1..External clock monitor is enabled for OSC. 10814 */ 10815 #define MCG_C6_CME0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_CME0_SHIFT)) & MCG_C6_CME0_MASK) 10816 10817 #define MCG_C6_PLLS_MASK (0x40U) 10818 #define MCG_C6_PLLS_SHIFT (6U) 10819 /*! PLLS - PLL Select 10820 * 0b0..FLL is selected. 10821 * 0b1..PLL is selected (PLL reference clock must be in the range of 31.25-39.0625 KHz prior to setting the PLLS bit). 10822 */ 10823 #define MCG_C6_PLLS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_PLLS_SHIFT)) & MCG_C6_PLLS_MASK) 10824 10825 #define MCG_C6_LOLIE0_MASK (0x80U) 10826 #define MCG_C6_LOLIE0_SHIFT (7U) 10827 /*! LOLIE0 - Loss of Lock Interrrupt Enable 10828 * 0b0..No interrupt request is generated on loss of lock. 10829 * 0b1..Generate an interrupt request on loss of lock. 10830 */ 10831 #define MCG_C6_LOLIE0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C6_LOLIE0_SHIFT)) & MCG_C6_LOLIE0_MASK) 10832 /*! @} */ 10833 10834 /*! @name S - MCG Status Register */ 10835 /*! @{ */ 10836 10837 #define MCG_S_IRCST_MASK (0x1U) 10838 #define MCG_S_IRCST_SHIFT (0U) 10839 /*! IRCST - Internal Reference Clock Status 10840 * 0b0..Source of internal reference clock is the slow clock (32 kHz IRC). 10841 * 0b1..Source of internal reference clock is the fast clock (4 MHz IRC). 10842 */ 10843 #define MCG_S_IRCST(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_IRCST_SHIFT)) & MCG_S_IRCST_MASK) 10844 10845 #define MCG_S_OSCINIT0_MASK (0x2U) 10846 #define MCG_S_OSCINIT0_SHIFT (1U) 10847 /*! OSCINIT0 - OSC Initialization 10848 */ 10849 #define MCG_S_OSCINIT0(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_OSCINIT0_SHIFT)) & MCG_S_OSCINIT0_MASK) 10850 10851 #define MCG_S_CLKST_MASK (0xCU) 10852 #define MCG_S_CLKST_SHIFT (2U) 10853 /*! CLKST - Clock Mode Status 10854 * 0b00..Encoding 0 - Output of the FLL is selected (reset default). 10855 * 0b01..Encoding 1 - Internal reference clock is selected. 10856 * 0b10..Encoding 2 - External reference clock is selected. 10857 * 0b11..Encoding 3 - Output of the PLL is selected . 10858 */ 10859 #define MCG_S_CLKST(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_CLKST_SHIFT)) & MCG_S_CLKST_MASK) 10860 10861 #define MCG_S_IREFST_MASK (0x10U) 10862 #define MCG_S_IREFST_SHIFT (4U) 10863 /*! IREFST - Internal Reference Status 10864 * 0b0..Source of FLL reference clock is the external reference clock. 10865 * 0b1..Source of FLL reference clock is the internal reference clock. 10866 */ 10867 #define MCG_S_IREFST(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_IREFST_SHIFT)) & MCG_S_IREFST_MASK) 10868 10869 #define MCG_S_PLLST_MASK (0x20U) 10870 #define MCG_S_PLLST_SHIFT (5U) 10871 /*! PLLST - PLL Select Status 10872 * 0b0..Source of PLLS clock is FLL clock. 10873 * 0b1..Source of PLLS clock is PLL output clock. 10874 */ 10875 #define MCG_S_PLLST(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_PLLST_SHIFT)) & MCG_S_PLLST_MASK) 10876 10877 #define MCG_S_LOCK0_MASK (0x40U) 10878 #define MCG_S_LOCK0_SHIFT (6U) 10879 /*! LOCK0 - Lock Status 10880 * 0b0..PLL is currently unlocked. 10881 * 0b1..PLL is currently locked. 10882 */ 10883 #define MCG_S_LOCK0(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_LOCK0_SHIFT)) & MCG_S_LOCK0_MASK) 10884 10885 #define MCG_S_LOLS0_MASK (0x80U) 10886 #define MCG_S_LOLS0_SHIFT (7U) 10887 /*! LOLS0 - Loss of Lock Status 10888 * 0b0..PLL has not lost lock since LOLS 0 was last cleared. 10889 * 0b1..PLL has lost lock since LOLS 0 was last cleared. 10890 */ 10891 #define MCG_S_LOLS0(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_LOLS0_SHIFT)) & MCG_S_LOLS0_MASK) 10892 /*! @} */ 10893 10894 /*! @name SC - MCG Status and Control Register */ 10895 /*! @{ */ 10896 10897 #define MCG_SC_LOCS0_MASK (0x1U) 10898 #define MCG_SC_LOCS0_SHIFT (0U) 10899 /*! LOCS0 - OSC Loss of Clock Status 10900 * 0b0..Loss of OSC has not occurred. 10901 * 0b1..Loss of OSC has occurred. 10902 */ 10903 #define MCG_SC_LOCS0(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_LOCS0_SHIFT)) & MCG_SC_LOCS0_MASK) 10904 10905 #define MCG_SC_FCRDIV_MASK (0xEU) 10906 #define MCG_SC_FCRDIV_SHIFT (1U) 10907 /*! FCRDIV - Fast Clock Internal Reference Divider 10908 * 0b000..Divide Factor is 1 10909 * 0b001..Divide Factor is 2. 10910 * 0b010..Divide Factor is 4. 10911 * 0b011..Divide Factor is 8. 10912 * 0b100..Divide Factor is 16 10913 * 0b101..Divide Factor is 32 10914 * 0b110..Divide Factor is 64 10915 * 0b111..Divide Factor is 128. 10916 */ 10917 #define MCG_SC_FCRDIV(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_FCRDIV_SHIFT)) & MCG_SC_FCRDIV_MASK) 10918 10919 #define MCG_SC_FLTPRSRV_MASK (0x10U) 10920 #define MCG_SC_FLTPRSRV_SHIFT (4U) 10921 /*! FLTPRSRV - FLL Filter Preserve Enable 10922 * 0b0..FLL filter and FLL frequency will reset on changes to currect clock mode. 10923 * 0b1..Fll filter and FLL frequency retain their previous values during new clock mode change. 10924 */ 10925 #define MCG_SC_FLTPRSRV(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_FLTPRSRV_SHIFT)) & MCG_SC_FLTPRSRV_MASK) 10926 10927 #define MCG_SC_ATMF_MASK (0x20U) 10928 #define MCG_SC_ATMF_SHIFT (5U) 10929 /*! ATMF - Automatic Trim Machine Fail Flag 10930 * 0b0..Automatic Trim Machine completed normally. 10931 * 0b1..Automatic Trim Machine failed. 10932 */ 10933 #define MCG_SC_ATMF(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_ATMF_SHIFT)) & MCG_SC_ATMF_MASK) 10934 10935 #define MCG_SC_ATMS_MASK (0x40U) 10936 #define MCG_SC_ATMS_SHIFT (6U) 10937 /*! ATMS - Automatic Trim Machine Select 10938 * 0b0..32 kHz Internal Reference Clock selected. 10939 * 0b1..4 MHz Internal Reference Clock selected. 10940 */ 10941 #define MCG_SC_ATMS(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_ATMS_SHIFT)) & MCG_SC_ATMS_MASK) 10942 10943 #define MCG_SC_ATME_MASK (0x80U) 10944 #define MCG_SC_ATME_SHIFT (7U) 10945 /*! ATME - Automatic Trim Machine Enable 10946 * 0b0..Auto Trim Machine disabled. 10947 * 0b1..Auto Trim Machine enabled. 10948 */ 10949 #define MCG_SC_ATME(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_ATME_SHIFT)) & MCG_SC_ATME_MASK) 10950 /*! @} */ 10951 10952 /*! @name ATCVH - MCG Auto Trim Compare Value High Register */ 10953 /*! @{ */ 10954 10955 #define MCG_ATCVH_ATCVH_MASK (0xFFU) 10956 #define MCG_ATCVH_ATCVH_SHIFT (0U) 10957 /*! ATCVH - ATM Compare Value High 10958 */ 10959 #define MCG_ATCVH_ATCVH(x) (((uint8_t)(((uint8_t)(x)) << MCG_ATCVH_ATCVH_SHIFT)) & MCG_ATCVH_ATCVH_MASK) 10960 /*! @} */ 10961 10962 /*! @name ATCVL - MCG Auto Trim Compare Value Low Register */ 10963 /*! @{ */ 10964 10965 #define MCG_ATCVL_ATCVL_MASK (0xFFU) 10966 #define MCG_ATCVL_ATCVL_SHIFT (0U) 10967 /*! ATCVL - ATM Compare Value Low 10968 */ 10969 #define MCG_ATCVL_ATCVL(x) (((uint8_t)(((uint8_t)(x)) << MCG_ATCVL_ATCVL_SHIFT)) & MCG_ATCVL_ATCVL_MASK) 10970 /*! @} */ 10971 10972 /*! @name C7 - MCG Control 7 Register */ 10973 /*! @{ */ 10974 10975 #define MCG_C7_OSCSEL_MASK (0x1U) 10976 #define MCG_C7_OSCSEL_SHIFT (0U) 10977 /*! OSCSEL - MCG OSC Clock Select 10978 * 0b0..Selects Oscillator (OSCCLK). 10979 * 0b1..Selects 32 kHz RTC Oscillator. 10980 */ 10981 #define MCG_C7_OSCSEL(x) (((uint8_t)(((uint8_t)(x)) << MCG_C7_OSCSEL_SHIFT)) & MCG_C7_OSCSEL_MASK) 10982 10983 #define MCG_C7_PLL32KREFSEL_MASK (0xC0U) 10984 #define MCG_C7_PLL32KREFSEL_SHIFT (6U) 10985 /*! PLL32KREFSEL - MCG PLL 32Khz Reference Clock Select 10986 * 0b00..Selects 32 kHz RTC Oscillator. 10987 * 0b01..Selects 32 kHz IRC. 10988 * 0b10..Selects FLL FRDIV clock. 10989 * 0b11..Reserved. 10990 */ 10991 #define MCG_C7_PLL32KREFSEL(x) (((uint8_t)(((uint8_t)(x)) << MCG_C7_PLL32KREFSEL_SHIFT)) & MCG_C7_PLL32KREFSEL_MASK) 10992 /*! @} */ 10993 10994 /*! @name C8 - MCG Control 8 Register */ 10995 /*! @{ */ 10996 10997 #define MCG_C8_LOCS1_MASK (0x1U) 10998 #define MCG_C8_LOCS1_SHIFT (0U) 10999 /*! LOCS1 - RTC Loss of Clock Status 11000 * 0b0..Loss of RTC has not occur. 11001 * 0b1..Loss of RTC has occur 11002 */ 11003 #define MCG_C8_LOCS1(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_LOCS1_SHIFT)) & MCG_C8_LOCS1_MASK) 11004 11005 #define MCG_C8_COARSE_LOLIE_MASK (0x10U) 11006 #define MCG_C8_COARSE_LOLIE_SHIFT (4U) 11007 /*! COARSE_LOLIE - Loss of Coarse Lock Interrrupt Enable 11008 * 0b0..No interrupt request is generated on coarse loss of lock. 11009 * 0b1..Generate an interrupt request on coarse loss of lock. 11010 */ 11011 #define MCG_C8_COARSE_LOLIE(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_COARSE_LOLIE_SHIFT)) & MCG_C8_COARSE_LOLIE_MASK) 11012 11013 #define MCG_C8_CME1_MASK (0x20U) 11014 #define MCG_C8_CME1_SHIFT (5U) 11015 /*! CME1 - Clock Monitor Enable1 11016 * 0b0..External clock monitor is disabled for RTC clock. 11017 * 0b1..External clock monitor is enabled for RTC clock. 11018 */ 11019 #define MCG_C8_CME1(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_CME1_SHIFT)) & MCG_C8_CME1_MASK) 11020 11021 #define MCG_C8_LOLRE_MASK (0x40U) 11022 #define MCG_C8_LOLRE_SHIFT (6U) 11023 /*! LOLRE - PLL Loss of Lock Reset Enable 11024 * 0b0..Interrupt request is generated on a PLL loss of lock indication. The PLL loss of lock interrupt enable 11025 * bit must also be set to generate the interrupt request. 11026 * 0b1..Generate a reset request on a PLL loss of lock indication. 11027 */ 11028 #define MCG_C8_LOLRE(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_LOLRE_SHIFT)) & MCG_C8_LOLRE_MASK) 11029 11030 #define MCG_C8_LOCRE1_MASK (0x80U) 11031 #define MCG_C8_LOCRE1_SHIFT (7U) 11032 /*! LOCRE1 - Loss of Clock Reset Enable 11033 * 0b0..Interrupt request is generated on a loss of RTC external reference clock. 11034 * 0b1..Generate a reset request on a loss of RTC external reference clock 11035 */ 11036 #define MCG_C8_LOCRE1(x) (((uint8_t)(((uint8_t)(x)) << MCG_C8_LOCRE1_SHIFT)) & MCG_C8_LOCRE1_MASK) 11037 /*! @} */ 11038 11039 /*! @name C9 - MCG Control 9 Register */ 11040 /*! @{ */ 11041 11042 #define MCG_C9_COARSE_LOCK_MASK (0x40U) 11043 #define MCG_C9_COARSE_LOCK_SHIFT (6U) 11044 /*! COARSE_LOCK - Coarse Lock Status 11045 * 0b0..PLL is currently unlocked. 11046 * 0b1..PLL is currently locked after first sample. 11047 */ 11048 #define MCG_C9_COARSE_LOCK(x) (((uint8_t)(((uint8_t)(x)) << MCG_C9_COARSE_LOCK_SHIFT)) & MCG_C9_COARSE_LOCK_MASK) 11049 11050 #define MCG_C9_COARSE_LOLS_MASK (0x80U) 11051 #define MCG_C9_COARSE_LOLS_SHIFT (7U) 11052 /*! COARSE_LOLS - Coarse Loss of Lock Status 11053 * 0b0..PLL has not lost lock since COARSE_LOLS was last cleared. 11054 * 0b1..PLL has lost lock since COARSE_LOLS was last cleared. 11055 */ 11056 #define MCG_C9_COARSE_LOLS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C9_COARSE_LOLS_SHIFT)) & MCG_C9_COARSE_LOLS_MASK) 11057 /*! @} */ 11058 11059 11060 /*! 11061 * @} 11062 */ /* end of group MCG_Register_Masks */ 11063 11064 11065 /* MCG - Peripheral instance base addresses */ 11066 /** Peripheral MCG base address */ 11067 #define MCG_BASE (0x40064000u) 11068 /** Peripheral MCG base pointer */ 11069 #define MCG ((MCG_Type *)MCG_BASE) 11070 /** Array initializer of MCG peripheral base addresses */ 11071 #define MCG_BASE_ADDRS { MCG_BASE } 11072 /** Array initializer of MCG peripheral base pointers */ 11073 #define MCG_BASE_PTRS { MCG } 11074 /** Interrupt vectors for the MCG peripheral type */ 11075 #define MCG_IRQS { MCG_IRQn } 11076 /* MCG C2[EREFS] backward compatibility */ 11077 #define MCG_C2_EREFS_MASK (MCG_C2_EREFS0_MASK) 11078 #define MCG_C2_EREFS_SHIFT (MCG_C2_EREFS0_SHIFT) 11079 #define MCG_C2_EREFS_WIDTH (MCG_C2_EREFS0_WIDTH) 11080 #define MCG_C2_EREFS(x) (MCG_C2_EREFS0(x)) 11081 11082 /* MCG C2[HGO] backward compatibility */ 11083 #define MCG_C2_HGO_MASK (MCG_C2_HGO0_MASK) 11084 #define MCG_C2_HGO_SHIFT (MCG_C2_HGO0_SHIFT) 11085 #define MCG_C2_HGO_WIDTH (MCG_C2_HGO0_WIDTH) 11086 #define MCG_C2_HGO(x) (MCG_C2_HGO0(x)) 11087 11088 /* MCG C2[RANGE] backward compatibility */ 11089 #define MCG_C2_RANGE_MASK (MCG_C2_RANGE0_MASK) 11090 #define MCG_C2_RANGE_SHIFT (MCG_C2_RANGE0_SHIFT) 11091 #define MCG_C2_RANGE_WIDTH (MCG_C2_RANGE0_WIDTH) 11092 #define MCG_C2_RANGE(x) (MCG_C2_RANGE0(x)) 11093 11094 11095 /*! 11096 * @} 11097 */ /* end of group MCG_Peripheral_Access_Layer */ 11098 11099 11100 /* ---------------------------------------------------------------------------- 11101 -- MCM Peripheral Access Layer 11102 ---------------------------------------------------------------------------- */ 11103 11104 /*! 11105 * @addtogroup MCM_Peripheral_Access_Layer MCM Peripheral Access Layer 11106 * @{ 11107 */ 11108 11109 /** MCM - Register Layout Typedef */ 11110 typedef struct { 11111 uint8_t RESERVED_0[8]; 11112 __I uint16_t PLASC; /**< Crossbar Switch (AXBS) Slave Configuration, offset: 0x8 */ 11113 __I uint16_t PLAMC; /**< Crossbar Switch (AXBS) Master Configuration, offset: 0xA */ 11114 __IO uint32_t PLACR; /**< Platform Control Register, offset: 0xC */ 11115 uint8_t RESERVED_1[32]; 11116 __IO uint32_t PID; /**< Process ID register, offset: 0x30 */ 11117 uint8_t RESERVED_2[12]; 11118 __IO uint32_t CPO; /**< Compute Operation Control Register, offset: 0x40 */ 11119 uint8_t RESERVED_3[60]; 11120 __IO uint32_t MATCR[1]; /**< Master Attribute Configuration Register, array offset: 0x80, array step: 0x4 */ 11121 } MCM_Type; 11122 11123 /* ---------------------------------------------------------------------------- 11124 -- MCM Register Masks 11125 ---------------------------------------------------------------------------- */ 11126 11127 /*! 11128 * @addtogroup MCM_Register_Masks MCM Register Masks 11129 * @{ 11130 */ 11131 11132 /*! @name PLASC - Crossbar Switch (AXBS) Slave Configuration */ 11133 /*! @{ */ 11134 11135 #define MCM_PLASC_ASC_MASK (0xFFU) 11136 #define MCM_PLASC_ASC_SHIFT (0U) 11137 /*! ASC - Each bit in the ASC field indicates whether there is a corresponding connection to the 11138 * crossbar switch's slave input port. 11139 * 0b00000000..A bus slave connection to AXBS input port n is absent. 11140 * 0b00000001..A bus slave connection to AXBS input port n is present. 11141 */ 11142 #define MCM_PLASC_ASC(x) (((uint16_t)(((uint16_t)(x)) << MCM_PLASC_ASC_SHIFT)) & MCM_PLASC_ASC_MASK) 11143 /*! @} */ 11144 11145 /*! @name PLAMC - Crossbar Switch (AXBS) Master Configuration */ 11146 /*! @{ */ 11147 11148 #define MCM_PLAMC_AMC_MASK (0xFFU) 11149 #define MCM_PLAMC_AMC_SHIFT (0U) 11150 /*! AMC - Each bit in the AMC field indicates whether there is a corresponding connection to the AXBS master input port. 11151 * 0b00000000..A bus master connection to AXBS input port n is absent 11152 * 0b00000001..A bus master connection to AXBS input port n is present 11153 */ 11154 #define MCM_PLAMC_AMC(x) (((uint16_t)(((uint16_t)(x)) << MCM_PLAMC_AMC_SHIFT)) & MCM_PLAMC_AMC_MASK) 11155 /*! @} */ 11156 11157 /*! @name PLACR - Platform Control Register */ 11158 /*! @{ */ 11159 11160 #define MCM_PLACR_ARB_MASK (0x200U) 11161 #define MCM_PLACR_ARB_SHIFT (9U) 11162 /*! ARB - Arbitration select 11163 * 0b0..Fixed-priority arbitration for the crossbar masters 11164 * 0b1..Round-robin arbitration for the crossbar masters 11165 */ 11166 #define MCM_PLACR_ARB(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_ARB_SHIFT)) & MCM_PLACR_ARB_MASK) 11167 11168 #define MCM_PLACR_CFCC_MASK (0x400U) 11169 #define MCM_PLACR_CFCC_SHIFT (10U) 11170 /*! CFCC - Clear Flash Controller Cache 11171 */ 11172 #define MCM_PLACR_CFCC(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_CFCC_SHIFT)) & MCM_PLACR_CFCC_MASK) 11173 11174 #define MCM_PLACR_DFCDA_MASK (0x800U) 11175 #define MCM_PLACR_DFCDA_SHIFT (11U) 11176 /*! DFCDA - Disable Flash Controller Data Caching 11177 * 0b0..Enable flash controller data caching 11178 * 0b1..Disable flash controller data caching. 11179 */ 11180 #define MCM_PLACR_DFCDA(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_DFCDA_SHIFT)) & MCM_PLACR_DFCDA_MASK) 11181 11182 #define MCM_PLACR_DFCIC_MASK (0x1000U) 11183 #define MCM_PLACR_DFCIC_SHIFT (12U) 11184 /*! DFCIC - Disable Flash Controller Instruction Caching 11185 * 0b0..Enable flash controller instruction caching. 11186 * 0b1..Disable flash controller instruction caching. 11187 */ 11188 #define MCM_PLACR_DFCIC(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_DFCIC_SHIFT)) & MCM_PLACR_DFCIC_MASK) 11189 11190 #define MCM_PLACR_DFCC_MASK (0x2000U) 11191 #define MCM_PLACR_DFCC_SHIFT (13U) 11192 /*! DFCC - Disable Flash Controller Cache 11193 * 0b0..Enable flash controller cache. 11194 * 0b1..Disable flash controller cache. 11195 */ 11196 #define MCM_PLACR_DFCC(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_DFCC_SHIFT)) & MCM_PLACR_DFCC_MASK) 11197 11198 #define MCM_PLACR_EFDS_MASK (0x4000U) 11199 #define MCM_PLACR_EFDS_SHIFT (14U) 11200 /*! EFDS - Enable Flash Data Speculation 11201 * 0b0..Disable flash data speculation. 11202 * 0b1..Enable flash data speculation. 11203 */ 11204 #define MCM_PLACR_EFDS(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_EFDS_SHIFT)) & MCM_PLACR_EFDS_MASK) 11205 11206 #define MCM_PLACR_DFCS_MASK (0x8000U) 11207 #define MCM_PLACR_DFCS_SHIFT (15U) 11208 /*! DFCS - Disable Flash Controller Speculation 11209 * 0b0..Enable flash controller speculation. 11210 * 0b1..Disable flash controller speculation. 11211 */ 11212 #define MCM_PLACR_DFCS(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_DFCS_SHIFT)) & MCM_PLACR_DFCS_MASK) 11213 11214 #define MCM_PLACR_ESFC_MASK (0x10000U) 11215 #define MCM_PLACR_ESFC_SHIFT (16U) 11216 /*! ESFC - Enable Stalling Flash Controller 11217 * 0b0..Disable stalling flash controller when flash is busy. 11218 * 0b1..Enable stalling flash controller when flash is busy. 11219 */ 11220 #define MCM_PLACR_ESFC(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_ESFC_SHIFT)) & MCM_PLACR_ESFC_MASK) 11221 /*! @} */ 11222 11223 /*! @name PID - Process ID register */ 11224 /*! @{ */ 11225 11226 #define MCM_PID_PID_MASK (0xFFU) 11227 #define MCM_PID_PID_SHIFT (0U) 11228 /*! PID - M0_PID For MPU 11229 * 0b00000000..Reserved for privileged secure tasks 11230 */ 11231 #define MCM_PID_PID(x) (((uint32_t)(((uint32_t)(x)) << MCM_PID_PID_SHIFT)) & MCM_PID_PID_MASK) 11232 /*! @} */ 11233 11234 /*! @name CPO - Compute Operation Control Register */ 11235 /*! @{ */ 11236 11237 #define MCM_CPO_CPOREQ_MASK (0x1U) 11238 #define MCM_CPO_CPOREQ_SHIFT (0U) 11239 /*! CPOREQ - Compute Operation Request 11240 * 0b0..Request is cleared. 11241 * 0b1..Request Compute Operation. 11242 */ 11243 #define MCM_CPO_CPOREQ(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOREQ_SHIFT)) & MCM_CPO_CPOREQ_MASK) 11244 11245 #define MCM_CPO_CPOACK_MASK (0x2U) 11246 #define MCM_CPO_CPOACK_SHIFT (1U) 11247 /*! CPOACK - Compute Operation Acknowledge 11248 * 0b0..Compute operation entry has not completed or compute operation exit has completed. 11249 * 0b1..Compute operation entry has completed or compute operation exit has not completed. 11250 */ 11251 #define MCM_CPO_CPOACK(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOACK_SHIFT)) & MCM_CPO_CPOACK_MASK) 11252 11253 #define MCM_CPO_CPOWOI_MASK (0x4U) 11254 #define MCM_CPO_CPOWOI_SHIFT (2U) 11255 /*! CPOWOI - Compute Operation Wake-up on Interrupt 11256 * 0b0..No effect. 11257 * 0b1..When set, the CPOREQ is cleared on any interrupt or exception vector fetch. 11258 */ 11259 #define MCM_CPO_CPOWOI(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOWOI_SHIFT)) & MCM_CPO_CPOWOI_MASK) 11260 /*! @} */ 11261 11262 /*! @name MATCR - Master Attribute Configuration Register */ 11263 /*! @{ */ 11264 11265 #define MCM_MATCR_ATC0_MASK (0x7U) 11266 #define MCM_MATCR_ATC0_SHIFT (0U) 11267 /*! ATC0 - Attribute Configuration Master n 11268 * 0b00x..Master attributes are statically forced to {privileged, secure}. 11269 * 0b010..Master attributes are statically forced to {user, secure}. 11270 * 0b011..Master attributes are statically forced to {user, nonsecure}. 11271 * 0b100..Enable master attribute {privileged or user} and statically force {secure}. 11272 * 0b101..Enable master attribute {privileged or user} and statically force {nonsecure}. 11273 * 0b11x..Enable master attribute {privileged or user, secure or nonsecure} 11274 */ 11275 #define MCM_MATCR_ATC0(x) (((uint32_t)(((uint32_t)(x)) << MCM_MATCR_ATC0_SHIFT)) & MCM_MATCR_ATC0_MASK) 11276 11277 #define MCM_MATCR_RO0_MASK (0x80U) 11278 #define MCM_MATCR_RO0_SHIFT (7U) 11279 /*! RO0 - Read-Only Master n 11280 * 0b0..Writes to the ATCn are allowed. 11281 * 0b1..Writes to the ATCn are ignored. 11282 */ 11283 #define MCM_MATCR_RO0(x) (((uint32_t)(((uint32_t)(x)) << MCM_MATCR_RO0_SHIFT)) & MCM_MATCR_RO0_MASK) 11284 11285 #define MCM_MATCR_ATC2_MASK (0x70000U) 11286 #define MCM_MATCR_ATC2_SHIFT (16U) 11287 /*! ATC2 - Attribute Configuration Master n 11288 * 0b00x..Master attributes are statically forced to {privileged, secure}. 11289 * 0b010..Master attributes are statically forced to {user, secure}. 11290 * 0b011..Master attributes are statically forced to {user, nonsecure}. 11291 * 0b100..Enable master attribute {privileged or user} and statically force {secure}. 11292 * 0b101..Enable master attribute {privileged or user} and statically force {nonsecure}. 11293 * 0b11x..Enable master attribute {privileged or user, secure or nonsecure} 11294 */ 11295 #define MCM_MATCR_ATC2(x) (((uint32_t)(((uint32_t)(x)) << MCM_MATCR_ATC2_SHIFT)) & MCM_MATCR_ATC2_MASK) 11296 11297 #define MCM_MATCR_RO2_MASK (0x800000U) 11298 #define MCM_MATCR_RO2_SHIFT (23U) 11299 /*! RO2 - Read-Only Master n 11300 * 0b0..Writes to the ATCn are allowed. 11301 * 0b1..Writes to the ATCn are ignored. 11302 */ 11303 #define MCM_MATCR_RO2(x) (((uint32_t)(((uint32_t)(x)) << MCM_MATCR_RO2_SHIFT)) & MCM_MATCR_RO2_MASK) 11304 /*! @} */ 11305 11306 /* The count of MCM_MATCR */ 11307 #define MCM_MATCR_COUNT (1U) 11308 11309 11310 /*! 11311 * @} 11312 */ /* end of group MCM_Register_Masks */ 11313 11314 11315 /* MCM - Peripheral instance base addresses */ 11316 /** Peripheral MCM base address */ 11317 #define MCM_BASE (0xF0003000u) 11318 /** Peripheral MCM base pointer */ 11319 #define MCM ((MCM_Type *)MCM_BASE) 11320 /** Array initializer of MCM peripheral base addresses */ 11321 #define MCM_BASE_ADDRS { MCM_BASE } 11322 /** Array initializer of MCM peripheral base pointers */ 11323 #define MCM_BASE_PTRS { MCM } 11324 11325 /*! 11326 * @} 11327 */ /* end of group MCM_Peripheral_Access_Layer */ 11328 11329 11330 /* ---------------------------------------------------------------------------- 11331 -- MTB Peripheral Access Layer 11332 ---------------------------------------------------------------------------- */ 11333 11334 /*! 11335 * @addtogroup MTB_Peripheral_Access_Layer MTB Peripheral Access Layer 11336 * @{ 11337 */ 11338 11339 /** MTB - Register Layout Typedef */ 11340 typedef struct { 11341 __IO uint32_t POSITION; /**< MTB Position Register, offset: 0x0 */ 11342 __IO uint32_t MASTER; /**< MTB Master Register, offset: 0x4 */ 11343 __IO uint32_t FLOW; /**< MTB Flow Register, offset: 0x8 */ 11344 __I uint32_t BASE; /**< MTB Base Register, offset: 0xC */ 11345 uint8_t RESERVED_0[3824]; 11346 __I uint32_t MODECTRL; /**< Integration Mode Control Register, offset: 0xF00 */ 11347 uint8_t RESERVED_1[156]; 11348 __I uint32_t TAGSET; /**< Claim TAG Set Register, offset: 0xFA0 */ 11349 __I uint32_t TAGCLEAR; /**< Claim TAG Clear Register, offset: 0xFA4 */ 11350 uint8_t RESERVED_2[8]; 11351 __I uint32_t LOCKACCESS; /**< Lock Access Register, offset: 0xFB0 */ 11352 __I uint32_t LOCKSTAT; /**< Lock Status Register, offset: 0xFB4 */ 11353 __I uint32_t AUTHSTAT; /**< Authentication Status Register, offset: 0xFB8 */ 11354 __I uint32_t DEVICEARCH; /**< Device Architecture Register, offset: 0xFBC */ 11355 uint8_t RESERVED_3[8]; 11356 __I uint32_t DEVICECFG; /**< Device Configuration Register, offset: 0xFC8 */ 11357 __I uint32_t DEVICETYPID; /**< Device Type Identifier Register, offset: 0xFCC */ 11358 __I uint32_t PERIPHID4; /**< Peripheral ID Register, offset: 0xFD0 */ 11359 __I uint32_t PERIPHID5; /**< Peripheral ID Register, offset: 0xFD4 */ 11360 __I uint32_t PERIPHID6; /**< Peripheral ID Register, offset: 0xFD8 */ 11361 __I uint32_t PERIPHID7; /**< Peripheral ID Register, offset: 0xFDC */ 11362 __I uint32_t PERIPHID0; /**< Peripheral ID Register, offset: 0xFE0 */ 11363 __I uint32_t PERIPHID1; /**< Peripheral ID Register, offset: 0xFE4 */ 11364 __I uint32_t PERIPHID2; /**< Peripheral ID Register, offset: 0xFE8 */ 11365 __I uint32_t PERIPHID3; /**< Peripheral ID Register, offset: 0xFEC */ 11366 __I uint32_t COMPID[4]; /**< Component ID Register, array offset: 0xFF0, array step: 0x4 */ 11367 } MTB_Type; 11368 11369 /* ---------------------------------------------------------------------------- 11370 -- MTB Register Masks 11371 ---------------------------------------------------------------------------- */ 11372 11373 /*! 11374 * @addtogroup MTB_Register_Masks MTB Register Masks 11375 * @{ 11376 */ 11377 11378 /*! @name POSITION - MTB Position Register */ 11379 /*! @{ */ 11380 11381 #define MTB_POSITION_WRAP_MASK (0x4U) 11382 #define MTB_POSITION_WRAP_SHIFT (2U) 11383 /*! WRAP - WRAP 11384 */ 11385 #define MTB_POSITION_WRAP(x) (((uint32_t)(((uint32_t)(x)) << MTB_POSITION_WRAP_SHIFT)) & MTB_POSITION_WRAP_MASK) 11386 11387 #define MTB_POSITION_POINTER_MASK (0xFFFFFFF8U) 11388 #define MTB_POSITION_POINTER_SHIFT (3U) 11389 /*! POINTER - Trace Packet Address Pointer[28:0] 11390 */ 11391 #define MTB_POSITION_POINTER(x) (((uint32_t)(((uint32_t)(x)) << MTB_POSITION_POINTER_SHIFT)) & MTB_POSITION_POINTER_MASK) 11392 /*! @} */ 11393 11394 /*! @name MASTER - MTB Master Register */ 11395 /*! @{ */ 11396 11397 #define MTB_MASTER_MASK_MASK (0x1FU) 11398 #define MTB_MASTER_MASK_SHIFT (0U) 11399 /*! MASK - Mask 11400 */ 11401 #define MTB_MASTER_MASK(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_MASK_SHIFT)) & MTB_MASTER_MASK_MASK) 11402 11403 #define MTB_MASTER_TSTARTEN_MASK (0x20U) 11404 #define MTB_MASTER_TSTARTEN_SHIFT (5U) 11405 /*! TSTARTEN - Trace Start Input Enable 11406 */ 11407 #define MTB_MASTER_TSTARTEN(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_TSTARTEN_SHIFT)) & MTB_MASTER_TSTARTEN_MASK) 11408 11409 #define MTB_MASTER_TSTOPEN_MASK (0x40U) 11410 #define MTB_MASTER_TSTOPEN_SHIFT (6U) 11411 /*! TSTOPEN - Trace Stop Input Enable 11412 */ 11413 #define MTB_MASTER_TSTOPEN(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_TSTOPEN_SHIFT)) & MTB_MASTER_TSTOPEN_MASK) 11414 11415 #define MTB_MASTER_SFRWPRIV_MASK (0x80U) 11416 #define MTB_MASTER_SFRWPRIV_SHIFT (7U) 11417 /*! SFRWPRIV - Special Function Register Write Privilege 11418 */ 11419 #define MTB_MASTER_SFRWPRIV(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_SFRWPRIV_SHIFT)) & MTB_MASTER_SFRWPRIV_MASK) 11420 11421 #define MTB_MASTER_RAMPRIV_MASK (0x100U) 11422 #define MTB_MASTER_RAMPRIV_SHIFT (8U) 11423 /*! RAMPRIV - RAM Privilege 11424 */ 11425 #define MTB_MASTER_RAMPRIV(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_RAMPRIV_SHIFT)) & MTB_MASTER_RAMPRIV_MASK) 11426 11427 #define MTB_MASTER_HALTREQ_MASK (0x200U) 11428 #define MTB_MASTER_HALTREQ_SHIFT (9U) 11429 /*! HALTREQ - Halt Request 11430 */ 11431 #define MTB_MASTER_HALTREQ(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_HALTREQ_SHIFT)) & MTB_MASTER_HALTREQ_MASK) 11432 11433 #define MTB_MASTER_EN_MASK (0x80000000U) 11434 #define MTB_MASTER_EN_SHIFT (31U) 11435 /*! EN - Main Trace Enable 11436 */ 11437 #define MTB_MASTER_EN(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_EN_SHIFT)) & MTB_MASTER_EN_MASK) 11438 /*! @} */ 11439 11440 /*! @name FLOW - MTB Flow Register */ 11441 /*! @{ */ 11442 11443 #define MTB_FLOW_AUTOSTOP_MASK (0x1U) 11444 #define MTB_FLOW_AUTOSTOP_SHIFT (0U) 11445 /*! AUTOSTOP - AUTOSTOP 11446 */ 11447 #define MTB_FLOW_AUTOSTOP(x) (((uint32_t)(((uint32_t)(x)) << MTB_FLOW_AUTOSTOP_SHIFT)) & MTB_FLOW_AUTOSTOP_MASK) 11448 11449 #define MTB_FLOW_AUTOHALT_MASK (0x2U) 11450 #define MTB_FLOW_AUTOHALT_SHIFT (1U) 11451 /*! AUTOHALT - AUTOHALT 11452 */ 11453 #define MTB_FLOW_AUTOHALT(x) (((uint32_t)(((uint32_t)(x)) << MTB_FLOW_AUTOHALT_SHIFT)) & MTB_FLOW_AUTOHALT_MASK) 11454 11455 #define MTB_FLOW_WATERMARK_MASK (0xFFFFFFF8U) 11456 #define MTB_FLOW_WATERMARK_SHIFT (3U) 11457 /*! WATERMARK - WATERMARK[28:0] 11458 */ 11459 #define MTB_FLOW_WATERMARK(x) (((uint32_t)(((uint32_t)(x)) << MTB_FLOW_WATERMARK_SHIFT)) & MTB_FLOW_WATERMARK_MASK) 11460 /*! @} */ 11461 11462 /*! @name BASE - MTB Base Register */ 11463 /*! @{ */ 11464 11465 #define MTB_BASE_BASEADDR_MASK (0xFFFFFFFFU) 11466 #define MTB_BASE_BASEADDR_SHIFT (0U) 11467 /*! BASEADDR - BASEADDR 11468 */ 11469 #define MTB_BASE_BASEADDR(x) (((uint32_t)(((uint32_t)(x)) << MTB_BASE_BASEADDR_SHIFT)) & MTB_BASE_BASEADDR_MASK) 11470 /*! @} */ 11471 11472 /*! @name MODECTRL - Integration Mode Control Register */ 11473 /*! @{ */ 11474 11475 #define MTB_MODECTRL_MODECTRL_MASK (0xFFFFFFFFU) 11476 #define MTB_MODECTRL_MODECTRL_SHIFT (0U) 11477 /*! MODECTRL - MODECTRL 11478 */ 11479 #define MTB_MODECTRL_MODECTRL(x) (((uint32_t)(((uint32_t)(x)) << MTB_MODECTRL_MODECTRL_SHIFT)) & MTB_MODECTRL_MODECTRL_MASK) 11480 /*! @} */ 11481 11482 /*! @name TAGSET - Claim TAG Set Register */ 11483 /*! @{ */ 11484 11485 #define MTB_TAGSET_TAGSET_MASK (0xFFFFFFFFU) 11486 #define MTB_TAGSET_TAGSET_SHIFT (0U) 11487 /*! TAGSET - TAGSET 11488 */ 11489 #define MTB_TAGSET_TAGSET(x) (((uint32_t)(((uint32_t)(x)) << MTB_TAGSET_TAGSET_SHIFT)) & MTB_TAGSET_TAGSET_MASK) 11490 /*! @} */ 11491 11492 /*! @name TAGCLEAR - Claim TAG Clear Register */ 11493 /*! @{ */ 11494 11495 #define MTB_TAGCLEAR_TAGCLEAR_MASK (0xFFFFFFFFU) 11496 #define MTB_TAGCLEAR_TAGCLEAR_SHIFT (0U) 11497 /*! TAGCLEAR - TAGCLEAR 11498 */ 11499 #define MTB_TAGCLEAR_TAGCLEAR(x) (((uint32_t)(((uint32_t)(x)) << MTB_TAGCLEAR_TAGCLEAR_SHIFT)) & MTB_TAGCLEAR_TAGCLEAR_MASK) 11500 /*! @} */ 11501 11502 /*! @name LOCKACCESS - Lock Access Register */ 11503 /*! @{ */ 11504 11505 #define MTB_LOCKACCESS_LOCKACCESS_MASK (0xFFFFFFFFU) 11506 #define MTB_LOCKACCESS_LOCKACCESS_SHIFT (0U) 11507 #define MTB_LOCKACCESS_LOCKACCESS(x) (((uint32_t)(((uint32_t)(x)) << MTB_LOCKACCESS_LOCKACCESS_SHIFT)) & MTB_LOCKACCESS_LOCKACCESS_MASK) 11508 /*! @} */ 11509 11510 /*! @name LOCKSTAT - Lock Status Register */ 11511 /*! @{ */ 11512 11513 #define MTB_LOCKSTAT_LOCKSTAT_MASK (0xFFFFFFFFU) 11514 #define MTB_LOCKSTAT_LOCKSTAT_SHIFT (0U) 11515 /*! LOCKSTAT - LOCKSTAT 11516 */ 11517 #define MTB_LOCKSTAT_LOCKSTAT(x) (((uint32_t)(((uint32_t)(x)) << MTB_LOCKSTAT_LOCKSTAT_SHIFT)) & MTB_LOCKSTAT_LOCKSTAT_MASK) 11518 /*! @} */ 11519 11520 /*! @name AUTHSTAT - Authentication Status Register */ 11521 /*! @{ */ 11522 11523 #define MTB_AUTHSTAT_BIT0_MASK (0x1U) 11524 #define MTB_AUTHSTAT_BIT0_SHIFT (0U) 11525 #define MTB_AUTHSTAT_BIT0(x) (((uint32_t)(((uint32_t)(x)) << MTB_AUTHSTAT_BIT0_SHIFT)) & MTB_AUTHSTAT_BIT0_MASK) 11526 11527 #define MTB_AUTHSTAT_BIT2_MASK (0x4U) 11528 #define MTB_AUTHSTAT_BIT2_SHIFT (2U) 11529 /*! BIT2 - BIT2 11530 */ 11531 #define MTB_AUTHSTAT_BIT2(x) (((uint32_t)(((uint32_t)(x)) << MTB_AUTHSTAT_BIT2_SHIFT)) & MTB_AUTHSTAT_BIT2_MASK) 11532 /*! @} */ 11533 11534 /*! @name DEVICEARCH - Device Architecture Register */ 11535 /*! @{ */ 11536 11537 #define MTB_DEVICEARCH_DEVICEARCH_MASK (0xFFFFFFFFU) 11538 #define MTB_DEVICEARCH_DEVICEARCH_SHIFT (0U) 11539 /*! DEVICEARCH - DEVICEARCH 11540 */ 11541 #define MTB_DEVICEARCH_DEVICEARCH(x) (((uint32_t)(((uint32_t)(x)) << MTB_DEVICEARCH_DEVICEARCH_SHIFT)) & MTB_DEVICEARCH_DEVICEARCH_MASK) 11542 /*! @} */ 11543 11544 /*! @name DEVICECFG - Device Configuration Register */ 11545 /*! @{ */ 11546 11547 #define MTB_DEVICECFG_DEVICECFG_MASK (0xFFFFFFFFU) 11548 #define MTB_DEVICECFG_DEVICECFG_SHIFT (0U) 11549 /*! DEVICECFG - DEVICECFG 11550 */ 11551 #define MTB_DEVICECFG_DEVICECFG(x) (((uint32_t)(((uint32_t)(x)) << MTB_DEVICECFG_DEVICECFG_SHIFT)) & MTB_DEVICECFG_DEVICECFG_MASK) 11552 /*! @} */ 11553 11554 /*! @name DEVICETYPID - Device Type Identifier Register */ 11555 /*! @{ */ 11556 11557 #define MTB_DEVICETYPID_DEVICETYPID_MASK (0xFFFFFFFFU) 11558 #define MTB_DEVICETYPID_DEVICETYPID_SHIFT (0U) 11559 /*! DEVICETYPID - DEVICETYPID 11560 */ 11561 #define MTB_DEVICETYPID_DEVICETYPID(x) (((uint32_t)(((uint32_t)(x)) << MTB_DEVICETYPID_DEVICETYPID_SHIFT)) & MTB_DEVICETYPID_DEVICETYPID_MASK) 11562 /*! @} */ 11563 11564 /*! @name PERIPHID4 - Peripheral ID Register */ 11565 /*! @{ */ 11566 11567 #define MTB_PERIPHID4_PERIPHID_MASK (0xFFFFFFFFU) 11568 #define MTB_PERIPHID4_PERIPHID_SHIFT (0U) 11569 /*! PERIPHID - PERIPHID 11570 */ 11571 #define MTB_PERIPHID4_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID4_PERIPHID_SHIFT)) & MTB_PERIPHID4_PERIPHID_MASK) 11572 /*! @} */ 11573 11574 /*! @name PERIPHID5 - Peripheral ID Register */ 11575 /*! @{ */ 11576 11577 #define MTB_PERIPHID5_PERIPHID_MASK (0xFFFFFFFFU) 11578 #define MTB_PERIPHID5_PERIPHID_SHIFT (0U) 11579 /*! PERIPHID - PERIPHID 11580 */ 11581 #define MTB_PERIPHID5_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID5_PERIPHID_SHIFT)) & MTB_PERIPHID5_PERIPHID_MASK) 11582 /*! @} */ 11583 11584 /*! @name PERIPHID6 - Peripheral ID Register */ 11585 /*! @{ */ 11586 11587 #define MTB_PERIPHID6_PERIPHID_MASK (0xFFFFFFFFU) 11588 #define MTB_PERIPHID6_PERIPHID_SHIFT (0U) 11589 /*! PERIPHID - PERIPHID 11590 */ 11591 #define MTB_PERIPHID6_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID6_PERIPHID_SHIFT)) & MTB_PERIPHID6_PERIPHID_MASK) 11592 /*! @} */ 11593 11594 /*! @name PERIPHID7 - Peripheral ID Register */ 11595 /*! @{ */ 11596 11597 #define MTB_PERIPHID7_PERIPHID_MASK (0xFFFFFFFFU) 11598 #define MTB_PERIPHID7_PERIPHID_SHIFT (0U) 11599 /*! PERIPHID - PERIPHID 11600 */ 11601 #define MTB_PERIPHID7_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID7_PERIPHID_SHIFT)) & MTB_PERIPHID7_PERIPHID_MASK) 11602 /*! @} */ 11603 11604 /*! @name PERIPHID0 - Peripheral ID Register */ 11605 /*! @{ */ 11606 11607 #define MTB_PERIPHID0_PERIPHID_MASK (0xFFFFFFFFU) 11608 #define MTB_PERIPHID0_PERIPHID_SHIFT (0U) 11609 /*! PERIPHID - PERIPHID 11610 */ 11611 #define MTB_PERIPHID0_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID0_PERIPHID_SHIFT)) & MTB_PERIPHID0_PERIPHID_MASK) 11612 /*! @} */ 11613 11614 /*! @name PERIPHID1 - Peripheral ID Register */ 11615 /*! @{ */ 11616 11617 #define MTB_PERIPHID1_PERIPHID_MASK (0xFFFFFFFFU) 11618 #define MTB_PERIPHID1_PERIPHID_SHIFT (0U) 11619 /*! PERIPHID - PERIPHID 11620 */ 11621 #define MTB_PERIPHID1_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID1_PERIPHID_SHIFT)) & MTB_PERIPHID1_PERIPHID_MASK) 11622 /*! @} */ 11623 11624 /*! @name PERIPHID2 - Peripheral ID Register */ 11625 /*! @{ */ 11626 11627 #define MTB_PERIPHID2_PERIPHID_MASK (0xFFFFFFFFU) 11628 #define MTB_PERIPHID2_PERIPHID_SHIFT (0U) 11629 /*! PERIPHID - PERIPHID 11630 */ 11631 #define MTB_PERIPHID2_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID2_PERIPHID_SHIFT)) & MTB_PERIPHID2_PERIPHID_MASK) 11632 /*! @} */ 11633 11634 /*! @name PERIPHID3 - Peripheral ID Register */ 11635 /*! @{ */ 11636 11637 #define MTB_PERIPHID3_PERIPHID_MASK (0xFFFFFFFFU) 11638 #define MTB_PERIPHID3_PERIPHID_SHIFT (0U) 11639 /*! PERIPHID - PERIPHID 11640 */ 11641 #define MTB_PERIPHID3_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID3_PERIPHID_SHIFT)) & MTB_PERIPHID3_PERIPHID_MASK) 11642 /*! @} */ 11643 11644 /*! @name COMPID - Component ID Register */ 11645 /*! @{ */ 11646 11647 #define MTB_COMPID_COMPID_MASK (0xFFFFFFFFU) 11648 #define MTB_COMPID_COMPID_SHIFT (0U) 11649 /*! COMPID - Component ID 11650 */ 11651 #define MTB_COMPID_COMPID(x) (((uint32_t)(((uint32_t)(x)) << MTB_COMPID_COMPID_SHIFT)) & MTB_COMPID_COMPID_MASK) 11652 /*! @} */ 11653 11654 /* The count of MTB_COMPID */ 11655 #define MTB_COMPID_COUNT (4U) 11656 11657 11658 /*! 11659 * @} 11660 */ /* end of group MTB_Register_Masks */ 11661 11662 11663 /* MTB - Peripheral instance base addresses */ 11664 /** Peripheral MTB base address */ 11665 #define MTB_BASE (0xF0000000u) 11666 /** Peripheral MTB base pointer */ 11667 #define MTB ((MTB_Type *)MTB_BASE) 11668 /** Array initializer of MTB peripheral base addresses */ 11669 #define MTB_BASE_ADDRS { MTB_BASE } 11670 /** Array initializer of MTB peripheral base pointers */ 11671 #define MTB_BASE_PTRS { MTB } 11672 11673 /*! 11674 * @} 11675 */ /* end of group MTB_Peripheral_Access_Layer */ 11676 11677 11678 /* ---------------------------------------------------------------------------- 11679 -- MTBDWT Peripheral Access Layer 11680 ---------------------------------------------------------------------------- */ 11681 11682 /*! 11683 * @addtogroup MTBDWT_Peripheral_Access_Layer MTBDWT Peripheral Access Layer 11684 * @{ 11685 */ 11686 11687 /** MTBDWT - Register Layout Typedef */ 11688 typedef struct { 11689 __I uint32_t CTRL; /**< MTB DWT Control Register, offset: 0x0 */ 11690 uint8_t RESERVED_0[28]; 11691 struct { /* offset: 0x20, array step: 0x10 */ 11692 __IO uint32_t COMP; /**< MTB_DWT Comparator Register, array offset: 0x20, array step: 0x10 */ 11693 __IO uint32_t MASK; /**< MTB_DWT Comparator Mask Register, array offset: 0x24, array step: 0x10 */ 11694 __IO uint32_t FCT; /**< MTB_DWT Comparator Function Register 0..MTB_DWT Comparator Function Register 1, array offset: 0x28, array step: 0x10 */ 11695 uint8_t RESERVED_0[4]; 11696 } COMPARATOR[2]; 11697 uint8_t RESERVED_1[448]; 11698 __IO uint32_t TBCTRL; /**< MTB_DWT Trace Buffer Control Register, offset: 0x200 */ 11699 uint8_t RESERVED_2[3524]; 11700 __I uint32_t DEVICECFG; /**< Device Configuration Register, offset: 0xFC8 */ 11701 __I uint32_t DEVICETYPID; /**< Device Type Identifier Register, offset: 0xFCC */ 11702 __I uint32_t PERIPHID4; /**< Peripheral ID Register, offset: 0xFD0 */ 11703 __I uint32_t PERIPHID5; /**< Peripheral ID Register, offset: 0xFD4 */ 11704 __I uint32_t PERIPHID6; /**< Peripheral ID Register, offset: 0xFD8 */ 11705 __I uint32_t PERIPHID7; /**< Peripheral ID Register, offset: 0xFDC */ 11706 __I uint32_t PERIPHID0; /**< Peripheral ID Register, offset: 0xFE0 */ 11707 __I uint32_t PERIPHID1; /**< Peripheral ID Register, offset: 0xFE4 */ 11708 __I uint32_t PERIPHID2; /**< Peripheral ID Register, offset: 0xFE8 */ 11709 __I uint32_t PERIPHID3; /**< Peripheral ID Register, offset: 0xFEC */ 11710 __I uint32_t COMPID[4]; /**< Component ID Register, array offset: 0xFF0, array step: 0x4 */ 11711 } MTBDWT_Type; 11712 11713 /* ---------------------------------------------------------------------------- 11714 -- MTBDWT Register Masks 11715 ---------------------------------------------------------------------------- */ 11716 11717 /*! 11718 * @addtogroup MTBDWT_Register_Masks MTBDWT Register Masks 11719 * @{ 11720 */ 11721 11722 /*! @name CTRL - MTB DWT Control Register */ 11723 /*! @{ */ 11724 11725 #define MTBDWT_CTRL_DWTCFGCTRL_MASK (0xFFFFFFFU) 11726 #define MTBDWT_CTRL_DWTCFGCTRL_SHIFT (0U) 11727 /*! DWTCFGCTRL - DWT configuration controls 11728 */ 11729 #define MTBDWT_CTRL_DWTCFGCTRL(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_CTRL_DWTCFGCTRL_SHIFT)) & MTBDWT_CTRL_DWTCFGCTRL_MASK) 11730 11731 #define MTBDWT_CTRL_NUMCMP_MASK (0xF0000000U) 11732 #define MTBDWT_CTRL_NUMCMP_SHIFT (28U) 11733 /*! NUMCMP - Number of comparators 11734 */ 11735 #define MTBDWT_CTRL_NUMCMP(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_CTRL_NUMCMP_SHIFT)) & MTBDWT_CTRL_NUMCMP_MASK) 11736 /*! @} */ 11737 11738 /*! @name COMP - MTB_DWT Comparator Register */ 11739 /*! @{ */ 11740 11741 #define MTBDWT_COMP_COMP_MASK (0xFFFFFFFFU) 11742 #define MTBDWT_COMP_COMP_SHIFT (0U) 11743 /*! COMP - Reference value for comparison 11744 */ 11745 #define MTBDWT_COMP_COMP(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_COMP_COMP_SHIFT)) & MTBDWT_COMP_COMP_MASK) 11746 /*! @} */ 11747 11748 /* The count of MTBDWT_COMP */ 11749 #define MTBDWT_COMP_COUNT (2U) 11750 11751 /*! @name MASK - MTB_DWT Comparator Mask Register */ 11752 /*! @{ */ 11753 11754 #define MTBDWT_MASK_MASK_MASK (0x1FU) 11755 #define MTBDWT_MASK_MASK_SHIFT (0U) 11756 /*! MASK - MASK 11757 */ 11758 #define MTBDWT_MASK_MASK(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_MASK_MASK_SHIFT)) & MTBDWT_MASK_MASK_MASK) 11759 /*! @} */ 11760 11761 /* The count of MTBDWT_MASK */ 11762 #define MTBDWT_MASK_COUNT (2U) 11763 11764 /*! @name FCT - MTB_DWT Comparator Function Register 0..MTB_DWT Comparator Function Register 1 */ 11765 /*! @{ */ 11766 11767 #define MTBDWT_FCT_FUNCTION_MASK (0xFU) 11768 #define MTBDWT_FCT_FUNCTION_SHIFT (0U) 11769 /*! FUNCTION - Function 11770 * 0b0000..Disabled. 11771 * 0b0100..Instruction fetch. 11772 * 0b0101..Data operand read. 11773 * 0b0110..Data operand write. 11774 * 0b0111..Data operand (read + write). 11775 */ 11776 #define MTBDWT_FCT_FUNCTION(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_FUNCTION_SHIFT)) & MTBDWT_FCT_FUNCTION_MASK) 11777 11778 #define MTBDWT_FCT_DATAVMATCH_MASK (0x100U) 11779 #define MTBDWT_FCT_DATAVMATCH_SHIFT (8U) 11780 /*! DATAVMATCH - Data Value Match 11781 * 0b0..Perform address comparison. 11782 * 0b1..Perform data value comparison. 11783 */ 11784 #define MTBDWT_FCT_DATAVMATCH(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_DATAVMATCH_SHIFT)) & MTBDWT_FCT_DATAVMATCH_MASK) 11785 11786 #define MTBDWT_FCT_DATAVSIZE_MASK (0xC00U) 11787 #define MTBDWT_FCT_DATAVSIZE_SHIFT (10U) 11788 /*! DATAVSIZE - Data Value Size 11789 * 0b00..Byte. 11790 * 0b01..Halfword. 11791 * 0b10..Word. 11792 * 0b11..Reserved. Any attempts to use this value results in UNPREDICTABLE behavior. 11793 */ 11794 #define MTBDWT_FCT_DATAVSIZE(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_DATAVSIZE_SHIFT)) & MTBDWT_FCT_DATAVSIZE_MASK) 11795 11796 #define MTBDWT_FCT_DATAVADDR0_MASK (0xF000U) 11797 #define MTBDWT_FCT_DATAVADDR0_SHIFT (12U) 11798 /*! DATAVADDR0 - Data Value Address 0 11799 */ 11800 #define MTBDWT_FCT_DATAVADDR0(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_DATAVADDR0_SHIFT)) & MTBDWT_FCT_DATAVADDR0_MASK) 11801 11802 #define MTBDWT_FCT_MATCHED_MASK (0x1000000U) 11803 #define MTBDWT_FCT_MATCHED_SHIFT (24U) 11804 /*! MATCHED - Comparator match 11805 * 0b0..No match. 11806 * 0b1..Match occurred. 11807 */ 11808 #define MTBDWT_FCT_MATCHED(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_MATCHED_SHIFT)) & MTBDWT_FCT_MATCHED_MASK) 11809 /*! @} */ 11810 11811 /* The count of MTBDWT_FCT */ 11812 #define MTBDWT_FCT_COUNT (2U) 11813 11814 /*! @name TBCTRL - MTB_DWT Trace Buffer Control Register */ 11815 /*! @{ */ 11816 11817 #define MTBDWT_TBCTRL_ACOMP0_MASK (0x1U) 11818 #define MTBDWT_TBCTRL_ACOMP0_SHIFT (0U) 11819 /*! ACOMP0 - Action based on Comparator 0 match 11820 * 0b0..Trigger TSTOP based on the assertion of MTBDWT_FCT0[MATCHED]. 11821 * 0b1..Trigger TSTART based on the assertion of MTBDWT_FCT0[MATCHED]. 11822 */ 11823 #define MTBDWT_TBCTRL_ACOMP0(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_TBCTRL_ACOMP0_SHIFT)) & MTBDWT_TBCTRL_ACOMP0_MASK) 11824 11825 #define MTBDWT_TBCTRL_ACOMP1_MASK (0x2U) 11826 #define MTBDWT_TBCTRL_ACOMP1_SHIFT (1U) 11827 /*! ACOMP1 - Action based on Comparator 1 match 11828 * 0b0..Trigger TSTOP based on the assertion of MTBDWT_FCT1[MATCHED]. 11829 * 0b1..Trigger TSTART based on the assertion of MTBDWT_FCT1[MATCHED]. 11830 */ 11831 #define MTBDWT_TBCTRL_ACOMP1(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_TBCTRL_ACOMP1_SHIFT)) & MTBDWT_TBCTRL_ACOMP1_MASK) 11832 11833 #define MTBDWT_TBCTRL_NUMCOMP_MASK (0xF0000000U) 11834 #define MTBDWT_TBCTRL_NUMCOMP_SHIFT (28U) 11835 /*! NUMCOMP - Number of Comparators 11836 */ 11837 #define MTBDWT_TBCTRL_NUMCOMP(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_TBCTRL_NUMCOMP_SHIFT)) & MTBDWT_TBCTRL_NUMCOMP_MASK) 11838 /*! @} */ 11839 11840 /*! @name DEVICECFG - Device Configuration Register */ 11841 /*! @{ */ 11842 11843 #define MTBDWT_DEVICECFG_DEVICECFG_MASK (0xFFFFFFFFU) 11844 #define MTBDWT_DEVICECFG_DEVICECFG_SHIFT (0U) 11845 /*! DEVICECFG - DEVICECFG 11846 */ 11847 #define MTBDWT_DEVICECFG_DEVICECFG(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_DEVICECFG_DEVICECFG_SHIFT)) & MTBDWT_DEVICECFG_DEVICECFG_MASK) 11848 /*! @} */ 11849 11850 /*! @name DEVICETYPID - Device Type Identifier Register */ 11851 /*! @{ */ 11852 11853 #define MTBDWT_DEVICETYPID_DEVICETYPID_MASK (0xFFFFFFFFU) 11854 #define MTBDWT_DEVICETYPID_DEVICETYPID_SHIFT (0U) 11855 /*! DEVICETYPID - DEVICETYPID 11856 */ 11857 #define MTBDWT_DEVICETYPID_DEVICETYPID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_DEVICETYPID_DEVICETYPID_SHIFT)) & MTBDWT_DEVICETYPID_DEVICETYPID_MASK) 11858 /*! @} */ 11859 11860 /*! @name PERIPHID4 - Peripheral ID Register */ 11861 /*! @{ */ 11862 11863 #define MTBDWT_PERIPHID4_PERIPHID_MASK (0xFFFFFFFFU) 11864 #define MTBDWT_PERIPHID4_PERIPHID_SHIFT (0U) 11865 /*! PERIPHID - PERIPHID 11866 */ 11867 #define MTBDWT_PERIPHID4_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID4_PERIPHID_SHIFT)) & MTBDWT_PERIPHID4_PERIPHID_MASK) 11868 /*! @} */ 11869 11870 /*! @name PERIPHID5 - Peripheral ID Register */ 11871 /*! @{ */ 11872 11873 #define MTBDWT_PERIPHID5_PERIPHID_MASK (0xFFFFFFFFU) 11874 #define MTBDWT_PERIPHID5_PERIPHID_SHIFT (0U) 11875 /*! PERIPHID - PERIPHID 11876 */ 11877 #define MTBDWT_PERIPHID5_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID5_PERIPHID_SHIFT)) & MTBDWT_PERIPHID5_PERIPHID_MASK) 11878 /*! @} */ 11879 11880 /*! @name PERIPHID6 - Peripheral ID Register */ 11881 /*! @{ */ 11882 11883 #define MTBDWT_PERIPHID6_PERIPHID_MASK (0xFFFFFFFFU) 11884 #define MTBDWT_PERIPHID6_PERIPHID_SHIFT (0U) 11885 /*! PERIPHID - PERIPHID 11886 */ 11887 #define MTBDWT_PERIPHID6_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID6_PERIPHID_SHIFT)) & MTBDWT_PERIPHID6_PERIPHID_MASK) 11888 /*! @} */ 11889 11890 /*! @name PERIPHID7 - Peripheral ID Register */ 11891 /*! @{ */ 11892 11893 #define MTBDWT_PERIPHID7_PERIPHID_MASK (0xFFFFFFFFU) 11894 #define MTBDWT_PERIPHID7_PERIPHID_SHIFT (0U) 11895 /*! PERIPHID - PERIPHID 11896 */ 11897 #define MTBDWT_PERIPHID7_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID7_PERIPHID_SHIFT)) & MTBDWT_PERIPHID7_PERIPHID_MASK) 11898 /*! @} */ 11899 11900 /*! @name PERIPHID0 - Peripheral ID Register */ 11901 /*! @{ */ 11902 11903 #define MTBDWT_PERIPHID0_PERIPHID_MASK (0xFFFFFFFFU) 11904 #define MTBDWT_PERIPHID0_PERIPHID_SHIFT (0U) 11905 /*! PERIPHID - PERIPHID 11906 */ 11907 #define MTBDWT_PERIPHID0_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID0_PERIPHID_SHIFT)) & MTBDWT_PERIPHID0_PERIPHID_MASK) 11908 /*! @} */ 11909 11910 /*! @name PERIPHID1 - Peripheral ID Register */ 11911 /*! @{ */ 11912 11913 #define MTBDWT_PERIPHID1_PERIPHID_MASK (0xFFFFFFFFU) 11914 #define MTBDWT_PERIPHID1_PERIPHID_SHIFT (0U) 11915 /*! PERIPHID - PERIPHID 11916 */ 11917 #define MTBDWT_PERIPHID1_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID1_PERIPHID_SHIFT)) & MTBDWT_PERIPHID1_PERIPHID_MASK) 11918 /*! @} */ 11919 11920 /*! @name PERIPHID2 - Peripheral ID Register */ 11921 /*! @{ */ 11922 11923 #define MTBDWT_PERIPHID2_PERIPHID_MASK (0xFFFFFFFFU) 11924 #define MTBDWT_PERIPHID2_PERIPHID_SHIFT (0U) 11925 /*! PERIPHID - PERIPHID 11926 */ 11927 #define MTBDWT_PERIPHID2_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID2_PERIPHID_SHIFT)) & MTBDWT_PERIPHID2_PERIPHID_MASK) 11928 /*! @} */ 11929 11930 /*! @name PERIPHID3 - Peripheral ID Register */ 11931 /*! @{ */ 11932 11933 #define MTBDWT_PERIPHID3_PERIPHID_MASK (0xFFFFFFFFU) 11934 #define MTBDWT_PERIPHID3_PERIPHID_SHIFT (0U) 11935 /*! PERIPHID - PERIPHID 11936 */ 11937 #define MTBDWT_PERIPHID3_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID3_PERIPHID_SHIFT)) & MTBDWT_PERIPHID3_PERIPHID_MASK) 11938 /*! @} */ 11939 11940 /*! @name COMPID - Component ID Register */ 11941 /*! @{ */ 11942 11943 #define MTBDWT_COMPID_COMPID_MASK (0xFFFFFFFFU) 11944 #define MTBDWT_COMPID_COMPID_SHIFT (0U) 11945 /*! COMPID - Component ID 11946 */ 11947 #define MTBDWT_COMPID_COMPID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_COMPID_COMPID_SHIFT)) & MTBDWT_COMPID_COMPID_MASK) 11948 /*! @} */ 11949 11950 /* The count of MTBDWT_COMPID */ 11951 #define MTBDWT_COMPID_COUNT (4U) 11952 11953 11954 /*! 11955 * @} 11956 */ /* end of group MTBDWT_Register_Masks */ 11957 11958 11959 /* MTBDWT - Peripheral instance base addresses */ 11960 /** Peripheral MTBDWT base address */ 11961 #define MTBDWT_BASE (0xF0001000u) 11962 /** Peripheral MTBDWT base pointer */ 11963 #define MTBDWT ((MTBDWT_Type *)MTBDWT_BASE) 11964 /** Array initializer of MTBDWT peripheral base addresses */ 11965 #define MTBDWT_BASE_ADDRS { MTBDWT_BASE } 11966 /** Array initializer of MTBDWT peripheral base pointers */ 11967 #define MTBDWT_BASE_PTRS { MTBDWT } 11968 11969 /*! 11970 * @} 11971 */ /* end of group MTBDWT_Peripheral_Access_Layer */ 11972 11973 11974 /* ---------------------------------------------------------------------------- 11975 -- NV Peripheral Access Layer 11976 ---------------------------------------------------------------------------- */ 11977 11978 /*! 11979 * @addtogroup NV_Peripheral_Access_Layer NV Peripheral Access Layer 11980 * @{ 11981 */ 11982 11983 /** NV - Register Layout Typedef */ 11984 typedef struct { 11985 __I uint8_t BACKKEY3; /**< Backdoor Comparison Key 3., offset: 0x0 */ 11986 __I uint8_t BACKKEY2; /**< Backdoor Comparison Key 2., offset: 0x1 */ 11987 __I uint8_t BACKKEY1; /**< Backdoor Comparison Key 1., offset: 0x2 */ 11988 __I uint8_t BACKKEY0; /**< Backdoor Comparison Key 0., offset: 0x3 */ 11989 __I uint8_t BACKKEY7; /**< Backdoor Comparison Key 7., offset: 0x4 */ 11990 __I uint8_t BACKKEY6; /**< Backdoor Comparison Key 6., offset: 0x5 */ 11991 __I uint8_t BACKKEY5; /**< Backdoor Comparison Key 5., offset: 0x6 */ 11992 __I uint8_t BACKKEY4; /**< Backdoor Comparison Key 4., offset: 0x7 */ 11993 __I uint8_t FPROT3; /**< Non-volatile P-Flash Protection 1 - Low Register, offset: 0x8 */ 11994 __I uint8_t FPROT2; /**< Non-volatile P-Flash Protection 1 - High Register, offset: 0x9 */ 11995 __I uint8_t FPROT1; /**< Non-volatile P-Flash Protection 0 - Low Register, offset: 0xA */ 11996 __I uint8_t FPROT0; /**< Non-volatile P-Flash Protection 0 - High Register, offset: 0xB */ 11997 __I uint8_t FSEC; /**< Non-volatile Flash Security Register, offset: 0xC */ 11998 __I uint8_t FOPT; /**< Non-volatile Flash Option Register, offset: 0xD */ 11999 } NV_Type; 12000 12001 /* ---------------------------------------------------------------------------- 12002 -- NV Register Masks 12003 ---------------------------------------------------------------------------- */ 12004 12005 /*! 12006 * @addtogroup NV_Register_Masks NV Register Masks 12007 * @{ 12008 */ 12009 12010 /*! @name BACKKEY3 - Backdoor Comparison Key 3. */ 12011 /*! @{ */ 12012 12013 #define NV_BACKKEY3_KEY_MASK (0xFFU) 12014 #define NV_BACKKEY3_KEY_SHIFT (0U) 12015 /*! KEY - Backdoor Comparison Key. 12016 */ 12017 #define NV_BACKKEY3_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY3_KEY_SHIFT)) & NV_BACKKEY3_KEY_MASK) 12018 /*! @} */ 12019 12020 /*! @name BACKKEY2 - Backdoor Comparison Key 2. */ 12021 /*! @{ */ 12022 12023 #define NV_BACKKEY2_KEY_MASK (0xFFU) 12024 #define NV_BACKKEY2_KEY_SHIFT (0U) 12025 /*! KEY - Backdoor Comparison Key. 12026 */ 12027 #define NV_BACKKEY2_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY2_KEY_SHIFT)) & NV_BACKKEY2_KEY_MASK) 12028 /*! @} */ 12029 12030 /*! @name BACKKEY1 - Backdoor Comparison Key 1. */ 12031 /*! @{ */ 12032 12033 #define NV_BACKKEY1_KEY_MASK (0xFFU) 12034 #define NV_BACKKEY1_KEY_SHIFT (0U) 12035 /*! KEY - Backdoor Comparison Key. 12036 */ 12037 #define NV_BACKKEY1_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY1_KEY_SHIFT)) & NV_BACKKEY1_KEY_MASK) 12038 /*! @} */ 12039 12040 /*! @name BACKKEY0 - Backdoor Comparison Key 0. */ 12041 /*! @{ */ 12042 12043 #define NV_BACKKEY0_KEY_MASK (0xFFU) 12044 #define NV_BACKKEY0_KEY_SHIFT (0U) 12045 /*! KEY - Backdoor Comparison Key. 12046 */ 12047 #define NV_BACKKEY0_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY0_KEY_SHIFT)) & NV_BACKKEY0_KEY_MASK) 12048 /*! @} */ 12049 12050 /*! @name BACKKEY7 - Backdoor Comparison Key 7. */ 12051 /*! @{ */ 12052 12053 #define NV_BACKKEY7_KEY_MASK (0xFFU) 12054 #define NV_BACKKEY7_KEY_SHIFT (0U) 12055 /*! KEY - Backdoor Comparison Key. 12056 */ 12057 #define NV_BACKKEY7_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY7_KEY_SHIFT)) & NV_BACKKEY7_KEY_MASK) 12058 /*! @} */ 12059 12060 /*! @name BACKKEY6 - Backdoor Comparison Key 6. */ 12061 /*! @{ */ 12062 12063 #define NV_BACKKEY6_KEY_MASK (0xFFU) 12064 #define NV_BACKKEY6_KEY_SHIFT (0U) 12065 /*! KEY - Backdoor Comparison Key. 12066 */ 12067 #define NV_BACKKEY6_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY6_KEY_SHIFT)) & NV_BACKKEY6_KEY_MASK) 12068 /*! @} */ 12069 12070 /*! @name BACKKEY5 - Backdoor Comparison Key 5. */ 12071 /*! @{ */ 12072 12073 #define NV_BACKKEY5_KEY_MASK (0xFFU) 12074 #define NV_BACKKEY5_KEY_SHIFT (0U) 12075 /*! KEY - Backdoor Comparison Key. 12076 */ 12077 #define NV_BACKKEY5_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY5_KEY_SHIFT)) & NV_BACKKEY5_KEY_MASK) 12078 /*! @} */ 12079 12080 /*! @name BACKKEY4 - Backdoor Comparison Key 4. */ 12081 /*! @{ */ 12082 12083 #define NV_BACKKEY4_KEY_MASK (0xFFU) 12084 #define NV_BACKKEY4_KEY_SHIFT (0U) 12085 /*! KEY - Backdoor Comparison Key. 12086 */ 12087 #define NV_BACKKEY4_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY4_KEY_SHIFT)) & NV_BACKKEY4_KEY_MASK) 12088 /*! @} */ 12089 12090 /*! @name FPROT3 - Non-volatile P-Flash Protection 1 - Low Register */ 12091 /*! @{ */ 12092 12093 #define NV_FPROT3_PROT_MASK (0xFFU) 12094 #define NV_FPROT3_PROT_SHIFT (0U) 12095 /*! PROT - P-Flash Region Protect 12096 */ 12097 #define NV_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT3_PROT_SHIFT)) & NV_FPROT3_PROT_MASK) 12098 /*! @} */ 12099 12100 /*! @name FPROT2 - Non-volatile P-Flash Protection 1 - High Register */ 12101 /*! @{ */ 12102 12103 #define NV_FPROT2_PROT_MASK (0xFFU) 12104 #define NV_FPROT2_PROT_SHIFT (0U) 12105 /*! PROT - P-Flash Region Protect 12106 */ 12107 #define NV_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT2_PROT_SHIFT)) & NV_FPROT2_PROT_MASK) 12108 /*! @} */ 12109 12110 /*! @name FPROT1 - Non-volatile P-Flash Protection 0 - Low Register */ 12111 /*! @{ */ 12112 12113 #define NV_FPROT1_PROT_MASK (0xFFU) 12114 #define NV_FPROT1_PROT_SHIFT (0U) 12115 /*! PROT - P-Flash Region Protect 12116 */ 12117 #define NV_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT1_PROT_SHIFT)) & NV_FPROT1_PROT_MASK) 12118 /*! @} */ 12119 12120 /*! @name FPROT0 - Non-volatile P-Flash Protection 0 - High Register */ 12121 /*! @{ */ 12122 12123 #define NV_FPROT0_PROT_MASK (0xFFU) 12124 #define NV_FPROT0_PROT_SHIFT (0U) 12125 /*! PROT - P-Flash Region Protect 12126 */ 12127 #define NV_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT0_PROT_SHIFT)) & NV_FPROT0_PROT_MASK) 12128 /*! @} */ 12129 12130 /*! @name FSEC - Non-volatile Flash Security Register */ 12131 /*! @{ */ 12132 12133 #define NV_FSEC_SEC_MASK (0x3U) 12134 #define NV_FSEC_SEC_SHIFT (0U) 12135 /*! SEC - Flash Security 12136 * 0b10..MCU security status is unsecure 12137 * 0b11..MCU security status is secure 12138 */ 12139 #define NV_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_SEC_SHIFT)) & NV_FSEC_SEC_MASK) 12140 12141 #define NV_FSEC_FSLACC_MASK (0xCU) 12142 #define NV_FSEC_FSLACC_SHIFT (2U) 12143 /*! FSLACC - Freescale Failure Analysis Access Code 12144 * 0b10..Freescale factory access denied 12145 * 0b11..Freescale factory access granted 12146 */ 12147 #define NV_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_FSLACC_SHIFT)) & NV_FSEC_FSLACC_MASK) 12148 12149 #define NV_FSEC_MEEN_MASK (0x30U) 12150 #define NV_FSEC_MEEN_SHIFT (4U) 12151 /*! MEEN 12152 * 0b10..Mass erase is disabled 12153 * 0b11..Mass erase is enabled 12154 */ 12155 #define NV_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_MEEN_SHIFT)) & NV_FSEC_MEEN_MASK) 12156 12157 #define NV_FSEC_KEYEN_MASK (0xC0U) 12158 #define NV_FSEC_KEYEN_SHIFT (6U) 12159 /*! KEYEN - Backdoor Key Security Enable 12160 * 0b10..Backdoor key access enabled 12161 * 0b11..Backdoor key access disabled 12162 */ 12163 #define NV_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_KEYEN_SHIFT)) & NV_FSEC_KEYEN_MASK) 12164 /*! @} */ 12165 12166 /*! @name FOPT - Non-volatile Flash Option Register */ 12167 /*! @{ */ 12168 12169 #define NV_FOPT_LPBOOT_MASK (0x1U) 12170 #define NV_FOPT_LPBOOT_SHIFT (0U) 12171 /*! LPBOOT 12172 * 0b0..Low-power boot 12173 * 0b1..Normal boot 12174 */ 12175 #define NV_FOPT_LPBOOT(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_LPBOOT_SHIFT)) & NV_FOPT_LPBOOT_MASK) 12176 12177 #define NV_FOPT_NMI_EN_MASK (0x4U) 12178 #define NV_FOPT_NMI_EN_SHIFT (2U) 12179 /*! NMI_EN 12180 * 0b0..NMI interrupts are always blocked 12181 * 0b1..NMI_b pin/interrupts reset default to enabled 12182 */ 12183 #define NV_FOPT_NMI_EN(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_NMI_EN_SHIFT)) & NV_FOPT_NMI_EN_MASK) 12184 12185 #define NV_FOPT_EXE_MODE_MASK (0x8U) 12186 #define NV_FOPT_EXE_MODE_SHIFT (3U) 12187 /*! EXE_MODE 12188 * 0b0..Execution Mode is RUN Mode 12189 * 0b1..Execution Mode is VLPR Mode 12190 */ 12191 #define NV_FOPT_EXE_MODE(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_EXE_MODE_SHIFT)) & NV_FOPT_EXE_MODE_MASK) 12192 12193 #define NV_FOPT_CLK_SRC_MASK (0x20U) 12194 #define NV_FOPT_CLK_SRC_SHIFT (5U) 12195 /*! CLK_SRC 12196 * 0b0..Externally supplied clock used by Flash 12197 * 0b1..Internal clock source used by Flash 12198 */ 12199 #define NV_FOPT_CLK_SRC(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_CLK_SRC_SHIFT)) & NV_FOPT_CLK_SRC_MASK) 12200 /*! @} */ 12201 12202 12203 /*! 12204 * @} 12205 */ /* end of group NV_Register_Masks */ 12206 12207 12208 /* NV - Peripheral instance base addresses */ 12209 /** Peripheral FTFA_FlashConfig base address */ 12210 #define FTFA_FlashConfig_BASE (0x400u) 12211 /** Peripheral FTFA_FlashConfig base pointer */ 12212 #define FTFA_FlashConfig ((NV_Type *)FTFA_FlashConfig_BASE) 12213 /** Array initializer of NV peripheral base addresses */ 12214 #define NV_BASE_ADDRS { FTFA_FlashConfig_BASE } 12215 /** Array initializer of NV peripheral base pointers */ 12216 #define NV_BASE_PTRS { FTFA_FlashConfig } 12217 12218 /*! 12219 * @} 12220 */ /* end of group NV_Peripheral_Access_Layer */ 12221 12222 12223 /* ---------------------------------------------------------------------------- 12224 -- OSC Peripheral Access Layer 12225 ---------------------------------------------------------------------------- */ 12226 12227 /*! 12228 * @addtogroup OSC_Peripheral_Access_Layer OSC Peripheral Access Layer 12229 * @{ 12230 */ 12231 12232 /** OSC - Register Layout Typedef */ 12233 typedef struct { 12234 __IO uint8_t CR; /**< OSC Control Register, offset: 0x0 */ 12235 } OSC_Type; 12236 12237 /* ---------------------------------------------------------------------------- 12238 -- OSC Register Masks 12239 ---------------------------------------------------------------------------- */ 12240 12241 /*! 12242 * @addtogroup OSC_Register_Masks OSC Register Masks 12243 * @{ 12244 */ 12245 12246 /*! @name CR - OSC Control Register */ 12247 /*! @{ */ 12248 12249 #define OSC_CR_SC16P_MASK (0x1U) 12250 #define OSC_CR_SC16P_SHIFT (0U) 12251 /*! SC16P - Oscillator 16 pF Capacitor Load Configure 12252 * 0b0..Disable the selection. 12253 * 0b1..Add 16 pF capacitor to the oscillator load. 12254 */ 12255 #define OSC_CR_SC16P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) 12256 12257 #define OSC_CR_SC8P_MASK (0x2U) 12258 #define OSC_CR_SC8P_SHIFT (1U) 12259 /*! SC8P - Oscillator 8 pF Capacitor Load Configure 12260 * 0b0..Disable the selection. 12261 * 0b1..Add 8 pF capacitor to the oscillator load. 12262 */ 12263 #define OSC_CR_SC8P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) 12264 12265 #define OSC_CR_SC4P_MASK (0x4U) 12266 #define OSC_CR_SC4P_SHIFT (2U) 12267 /*! SC4P - Oscillator 4 pF Capacitor Load Configure 12268 * 0b0..Disable the selection. 12269 * 0b1..Add 4 pF capacitor to the oscillator load. 12270 */ 12271 #define OSC_CR_SC4P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) 12272 12273 #define OSC_CR_SC2P_MASK (0x8U) 12274 #define OSC_CR_SC2P_SHIFT (3U) 12275 /*! SC2P - Oscillator 2 pF Capacitor Load Configure 12276 * 0b0..Disable the selection. 12277 * 0b1..Add 2 pF capacitor to the oscillator load. 12278 */ 12279 #define OSC_CR_SC2P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) 12280 12281 #define OSC_CR_EREFSTEN_MASK (0x20U) 12282 #define OSC_CR_EREFSTEN_SHIFT (5U) 12283 /*! EREFSTEN - External Reference Stop Enable 12284 * 0b0..External reference clock is disabled in Stop mode. 12285 * 0b1..External reference clock stays enabled in Stop mode if ERCLKEN is set before entering Stop mode. 12286 */ 12287 #define OSC_CR_EREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) 12288 12289 #define OSC_CR_ERCLKEN_MASK (0x80U) 12290 #define OSC_CR_ERCLKEN_SHIFT (7U) 12291 /*! ERCLKEN - External Reference Enable 12292 * 0b0..External reference clock is inactive. 12293 * 0b1..External reference clock is enabled. 12294 */ 12295 #define OSC_CR_ERCLKEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) 12296 /*! @} */ 12297 12298 12299 /*! 12300 * @} 12301 */ /* end of group OSC_Register_Masks */ 12302 12303 12304 /* OSC - Peripheral instance base addresses */ 12305 /** Peripheral OSC base address */ 12306 #define OSC_BASE (0x40066000u) 12307 /** Peripheral OSC base pointer */ 12308 #define OSC ((OSC_Type *)OSC_BASE) 12309 /** Array initializer of OSC peripheral base addresses */ 12310 #define OSC_BASE_ADDRS { OSC_BASE } 12311 /** Array initializer of OSC peripheral base pointers */ 12312 #define OSC_BASE_PTRS { OSC } 12313 12314 /*! 12315 * @} 12316 */ /* end of group OSC_Peripheral_Access_Layer */ 12317 12318 12319 /* ---------------------------------------------------------------------------- 12320 -- PIT Peripheral Access Layer 12321 ---------------------------------------------------------------------------- */ 12322 12323 /*! 12324 * @addtogroup PIT_Peripheral_Access_Layer PIT Peripheral Access Layer 12325 * @{ 12326 */ 12327 12328 /** PIT - Register Layout Typedef */ 12329 typedef struct { 12330 __IO uint32_t MCR; /**< PIT Module Control Register, offset: 0x0 */ 12331 uint8_t RESERVED_0[252]; 12332 struct { /* offset: 0x100, array step: 0x10 */ 12333 __IO uint32_t LDVAL; /**< Timer Load Value Register, array offset: 0x100, array step: 0x10 */ 12334 __I uint32_t CVAL; /**< Current Timer Value Register, array offset: 0x104, array step: 0x10 */ 12335 __IO uint32_t TCTRL; /**< Timer Control Register, array offset: 0x108, array step: 0x10 */ 12336 __IO uint32_t TFLG; /**< Timer Flag Register, array offset: 0x10C, array step: 0x10 */ 12337 } CHANNEL[2]; 12338 } PIT_Type; 12339 12340 /* ---------------------------------------------------------------------------- 12341 -- PIT Register Masks 12342 ---------------------------------------------------------------------------- */ 12343 12344 /*! 12345 * @addtogroup PIT_Register_Masks PIT Register Masks 12346 * @{ 12347 */ 12348 12349 /*! @name MCR - PIT Module Control Register */ 12350 /*! @{ */ 12351 12352 #define PIT_MCR_FRZ_MASK (0x1U) 12353 #define PIT_MCR_FRZ_SHIFT (0U) 12354 /*! FRZ - Freeze 12355 * 0b0..Timers continue to run in Debug mode. 12356 * 0b1..Timers are stopped in Debug mode. 12357 */ 12358 #define PIT_MCR_FRZ(x) (((uint32_t)(((uint32_t)(x)) << PIT_MCR_FRZ_SHIFT)) & PIT_MCR_FRZ_MASK) 12359 12360 #define PIT_MCR_MDIS_MASK (0x2U) 12361 #define PIT_MCR_MDIS_SHIFT (1U) 12362 /*! MDIS - Module Disable - (PIT section) 12363 * 0b0..Clock for standard PIT timers is enabled. 12364 * 0b1..Clock for standard PIT timers is disabled. 12365 */ 12366 #define PIT_MCR_MDIS(x) (((uint32_t)(((uint32_t)(x)) << PIT_MCR_MDIS_SHIFT)) & PIT_MCR_MDIS_MASK) 12367 /*! @} */ 12368 12369 /*! @name LDVAL - Timer Load Value Register */ 12370 /*! @{ */ 12371 12372 #define PIT_LDVAL_TSV_MASK (0xFFFFFFFFU) 12373 #define PIT_LDVAL_TSV_SHIFT (0U) 12374 /*! TSV - Timer Start Value 12375 */ 12376 #define PIT_LDVAL_TSV(x) (((uint32_t)(((uint32_t)(x)) << PIT_LDVAL_TSV_SHIFT)) & PIT_LDVAL_TSV_MASK) 12377 /*! @} */ 12378 12379 /* The count of PIT_LDVAL */ 12380 #define PIT_LDVAL_COUNT (2U) 12381 12382 /*! @name CVAL - Current Timer Value Register */ 12383 /*! @{ */ 12384 12385 #define PIT_CVAL_TVL_MASK (0xFFFFFFFFU) 12386 #define PIT_CVAL_TVL_SHIFT (0U) 12387 /*! TVL - Current Timer Value 12388 */ 12389 #define PIT_CVAL_TVL(x) (((uint32_t)(((uint32_t)(x)) << PIT_CVAL_TVL_SHIFT)) & PIT_CVAL_TVL_MASK) 12390 /*! @} */ 12391 12392 /* The count of PIT_CVAL */ 12393 #define PIT_CVAL_COUNT (2U) 12394 12395 /*! @name TCTRL - Timer Control Register */ 12396 /*! @{ */ 12397 12398 #define PIT_TCTRL_TEN_MASK (0x1U) 12399 #define PIT_TCTRL_TEN_SHIFT (0U) 12400 /*! TEN - Timer Enable 12401 * 0b0..Timer n is disabled. 12402 * 0b1..Timer n is enabled. 12403 */ 12404 #define PIT_TCTRL_TEN(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRL_TEN_SHIFT)) & PIT_TCTRL_TEN_MASK) 12405 12406 #define PIT_TCTRL_TIE_MASK (0x2U) 12407 #define PIT_TCTRL_TIE_SHIFT (1U) 12408 /*! TIE - Timer Interrupt Enable 12409 * 0b0..Interrupt requests from Timer n are disabled. 12410 * 0b1..Interrupt will be requested whenever TIF is set. 12411 */ 12412 #define PIT_TCTRL_TIE(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRL_TIE_SHIFT)) & PIT_TCTRL_TIE_MASK) 12413 12414 #define PIT_TCTRL_CHN_MASK (0x4U) 12415 #define PIT_TCTRL_CHN_SHIFT (2U) 12416 /*! CHN - Chain Mode 12417 * 0b0..Timer is not chained. 12418 * 0b1..Timer is chained to previous timer. For example, for Channel 2, if this field is set, Timer 2 is chained to Timer 1. 12419 */ 12420 #define PIT_TCTRL_CHN(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRL_CHN_SHIFT)) & PIT_TCTRL_CHN_MASK) 12421 /*! @} */ 12422 12423 /* The count of PIT_TCTRL */ 12424 #define PIT_TCTRL_COUNT (2U) 12425 12426 /*! @name TFLG - Timer Flag Register */ 12427 /*! @{ */ 12428 12429 #define PIT_TFLG_TIF_MASK (0x1U) 12430 #define PIT_TFLG_TIF_SHIFT (0U) 12431 /*! TIF - Timer Interrupt Flag 12432 * 0b0..Timeout has not yet occurred. 12433 * 0b1..Timeout has occurred. 12434 */ 12435 #define PIT_TFLG_TIF(x) (((uint32_t)(((uint32_t)(x)) << PIT_TFLG_TIF_SHIFT)) & PIT_TFLG_TIF_MASK) 12436 /*! @} */ 12437 12438 /* The count of PIT_TFLG */ 12439 #define PIT_TFLG_COUNT (2U) 12440 12441 12442 /*! 12443 * @} 12444 */ /* end of group PIT_Register_Masks */ 12445 12446 12447 /* PIT - Peripheral instance base addresses */ 12448 /** Peripheral PIT0 base address */ 12449 #define PIT0_BASE (0x4002D000u) 12450 /** Peripheral PIT0 base pointer */ 12451 #define PIT0 ((PIT_Type *)PIT0_BASE) 12452 /** Peripheral PIT1 base address */ 12453 #define PIT1_BASE (0x4002E000u) 12454 /** Peripheral PIT1 base pointer */ 12455 #define PIT1 ((PIT_Type *)PIT1_BASE) 12456 /** Array initializer of PIT peripheral base addresses */ 12457 #define PIT_BASE_ADDRS { PIT0_BASE, PIT1_BASE } 12458 /** Array initializer of PIT peripheral base pointers */ 12459 #define PIT_BASE_PTRS { PIT0, PIT1 } 12460 /** Interrupt vectors for the PIT peripheral type */ 12461 #define PIT_IRQS { { PIT0_PIT1_IRQn, PIT0_PIT1_IRQn }, { PIT0_PIT1_IRQn, PIT0_PIT1_IRQn } } 12462 12463 /*! 12464 * @} 12465 */ /* end of group PIT_Peripheral_Access_Layer */ 12466 12467 12468 /* ---------------------------------------------------------------------------- 12469 -- PMC Peripheral Access Layer 12470 ---------------------------------------------------------------------------- */ 12471 12472 /*! 12473 * @addtogroup PMC_Peripheral_Access_Layer PMC Peripheral Access Layer 12474 * @{ 12475 */ 12476 12477 /** PMC - Register Layout Typedef */ 12478 typedef struct { 12479 __IO uint8_t LVDSC1; /**< Low Voltage Detect Status And Control 1 register, offset: 0x0 */ 12480 __IO uint8_t LVDSC2; /**< Low Voltage Detect Status And Control 2 register, offset: 0x1 */ 12481 __IO uint8_t REGSC; /**< Regulator Status And Control register, offset: 0x2 */ 12482 } PMC_Type; 12483 12484 /* ---------------------------------------------------------------------------- 12485 -- PMC Register Masks 12486 ---------------------------------------------------------------------------- */ 12487 12488 /*! 12489 * @addtogroup PMC_Register_Masks PMC Register Masks 12490 * @{ 12491 */ 12492 12493 /*! @name LVDSC1 - Low Voltage Detect Status And Control 1 register */ 12494 /*! @{ */ 12495 12496 #define PMC_LVDSC1_LVDV_MASK (0x3U) 12497 #define PMC_LVDSC1_LVDV_SHIFT (0U) 12498 /*! LVDV - Low-Voltage Detect Voltage Select 12499 * 0b00..Low trip point selected (V LVD = V LVDL ) 12500 * 0b01..High trip point selected (V LVD = V LVDH ) 12501 * 0b10..Reserved 12502 * 0b11..Reserved 12503 */ 12504 #define PMC_LVDSC1_LVDV(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDV_SHIFT)) & PMC_LVDSC1_LVDV_MASK) 12505 12506 #define PMC_LVDSC1_LVDRE_MASK (0x10U) 12507 #define PMC_LVDSC1_LVDRE_SHIFT (4U) 12508 /*! LVDRE - Low-Voltage Detect Reset Enable 12509 * 0b0..LVDF does not generate hardware resets 12510 * 0b1..Force an MCU reset when LVDF = 1 12511 */ 12512 #define PMC_LVDSC1_LVDRE(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDRE_SHIFT)) & PMC_LVDSC1_LVDRE_MASK) 12513 12514 #define PMC_LVDSC1_LVDIE_MASK (0x20U) 12515 #define PMC_LVDSC1_LVDIE_SHIFT (5U) 12516 /*! LVDIE - Low-Voltage Detect Interrupt Enable 12517 * 0b0..Hardware interrupt disabled (use polling) 12518 * 0b1..Request a hardware interrupt when LVDF = 1 12519 */ 12520 #define PMC_LVDSC1_LVDIE(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDIE_SHIFT)) & PMC_LVDSC1_LVDIE_MASK) 12521 12522 #define PMC_LVDSC1_LVDACK_MASK (0x40U) 12523 #define PMC_LVDSC1_LVDACK_SHIFT (6U) 12524 /*! LVDACK - Low-Voltage Detect Acknowledge 12525 */ 12526 #define PMC_LVDSC1_LVDACK(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDACK_SHIFT)) & PMC_LVDSC1_LVDACK_MASK) 12527 12528 #define PMC_LVDSC1_LVDF_MASK (0x80U) 12529 #define PMC_LVDSC1_LVDF_SHIFT (7U) 12530 /*! LVDF - Low-Voltage Detect Flag 12531 * 0b0..Low-voltage event not detected 12532 * 0b1..Low-voltage event detected 12533 */ 12534 #define PMC_LVDSC1_LVDF(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDF_SHIFT)) & PMC_LVDSC1_LVDF_MASK) 12535 /*! @} */ 12536 12537 /*! @name LVDSC2 - Low Voltage Detect Status And Control 2 register */ 12538 /*! @{ */ 12539 12540 #define PMC_LVDSC2_LVWV_MASK (0x3U) 12541 #define PMC_LVDSC2_LVWV_SHIFT (0U) 12542 /*! LVWV - Low-Voltage Warning Voltage Select 12543 * 0b00..Low trip point selected (VLVW = VLVW1) 12544 * 0b01..Mid 1 trip point selected (VLVW = VLVW2) 12545 * 0b10..Mid 2 trip point selected (VLVW = VLVW3) 12546 * 0b11..High trip point selected (VLVW = VLVW4) 12547 */ 12548 #define PMC_LVDSC2_LVWV(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWV_SHIFT)) & PMC_LVDSC2_LVWV_MASK) 12549 12550 #define PMC_LVDSC2_LVWIE_MASK (0x20U) 12551 #define PMC_LVDSC2_LVWIE_SHIFT (5U) 12552 /*! LVWIE - Low-Voltage Warning Interrupt Enable 12553 * 0b0..Hardware interrupt disabled (use polling) 12554 * 0b1..Request a hardware interrupt when LVWF = 1 12555 */ 12556 #define PMC_LVDSC2_LVWIE(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWIE_SHIFT)) & PMC_LVDSC2_LVWIE_MASK) 12557 12558 #define PMC_LVDSC2_LVWACK_MASK (0x40U) 12559 #define PMC_LVDSC2_LVWACK_SHIFT (6U) 12560 /*! LVWACK - Low-Voltage Warning Acknowledge 12561 */ 12562 #define PMC_LVDSC2_LVWACK(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWACK_SHIFT)) & PMC_LVDSC2_LVWACK_MASK) 12563 12564 #define PMC_LVDSC2_LVWF_MASK (0x80U) 12565 #define PMC_LVDSC2_LVWF_SHIFT (7U) 12566 /*! LVWF - Low-Voltage Warning Flag 12567 * 0b0..Low-voltage warning event not detected 12568 * 0b1..Low-voltage warning event detected 12569 */ 12570 #define PMC_LVDSC2_LVWF(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWF_SHIFT)) & PMC_LVDSC2_LVWF_MASK) 12571 /*! @} */ 12572 12573 /*! @name REGSC - Regulator Status And Control register */ 12574 /*! @{ */ 12575 12576 #define PMC_REGSC_BGBE_MASK (0x1U) 12577 #define PMC_REGSC_BGBE_SHIFT (0U) 12578 /*! BGBE - Bandgap Buffer Enable 12579 * 0b0..Bandgap buffer not enabled 12580 * 0b1..Bandgap buffer enabled 12581 */ 12582 #define PMC_REGSC_BGBE(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_BGBE_SHIFT)) & PMC_REGSC_BGBE_MASK) 12583 12584 #define PMC_REGSC_BGBDS_MASK (0x2U) 12585 #define PMC_REGSC_BGBDS_SHIFT (1U) 12586 /*! BGBDS - Bandgap Buffer Drive Select 12587 * 0b0..Low drive 12588 * 0b1..High drive 12589 */ 12590 #define PMC_REGSC_BGBDS(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_BGBDS_SHIFT)) & PMC_REGSC_BGBDS_MASK) 12591 12592 #define PMC_REGSC_REGONS_MASK (0x4U) 12593 #define PMC_REGSC_REGONS_SHIFT (2U) 12594 /*! REGONS - Regulator In Run Regulation Status 12595 * 0b0..Regulator is in stop regulation or in transition to/from it 12596 * 0b1..Regulator is in run regulation 12597 */ 12598 #define PMC_REGSC_REGONS(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_REGONS_SHIFT)) & PMC_REGSC_REGONS_MASK) 12599 12600 #define PMC_REGSC_ACKISO_MASK (0x8U) 12601 #define PMC_REGSC_ACKISO_SHIFT (3U) 12602 /*! ACKISO - Acknowledge Isolation 12603 * 0b0..Peripherals and I/O pads are in normal run state. 12604 * 0b1..Certain peripherals and I/O pads are in an isolated and latched state. 12605 */ 12606 #define PMC_REGSC_ACKISO(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_ACKISO_SHIFT)) & PMC_REGSC_ACKISO_MASK) 12607 12608 #define PMC_REGSC_BGEN_MASK (0x10U) 12609 #define PMC_REGSC_BGEN_SHIFT (4U) 12610 /*! BGEN - Bandgap Enable In VLPx Operation 12611 * 0b0..Bandgap voltage reference is disabled in VLPx , and VLLSx modes. 12612 * 0b1..Bandgap voltage reference is enabled in VLPx , and VLLSx modes. 12613 */ 12614 #define PMC_REGSC_BGEN(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_BGEN_SHIFT)) & PMC_REGSC_BGEN_MASK) 12615 /*! @} */ 12616 12617 12618 /*! 12619 * @} 12620 */ /* end of group PMC_Register_Masks */ 12621 12622 12623 /* PMC - Peripheral instance base addresses */ 12624 /** Peripheral PMC base address */ 12625 #define PMC_BASE (0x4007D000u) 12626 /** Peripheral PMC base pointer */ 12627 #define PMC ((PMC_Type *)PMC_BASE) 12628 /** Array initializer of PMC peripheral base addresses */ 12629 #define PMC_BASE_ADDRS { PMC_BASE } 12630 /** Array initializer of PMC peripheral base pointers */ 12631 #define PMC_BASE_PTRS { PMC } 12632 /** Interrupt vectors for the PMC peripheral type */ 12633 #define PMC_IRQS { PMC_IRQn } 12634 12635 /*! 12636 * @} 12637 */ /* end of group PMC_Peripheral_Access_Layer */ 12638 12639 12640 /* ---------------------------------------------------------------------------- 12641 -- PORT Peripheral Access Layer 12642 ---------------------------------------------------------------------------- */ 12643 12644 /*! 12645 * @addtogroup PORT_Peripheral_Access_Layer PORT Peripheral Access Layer 12646 * @{ 12647 */ 12648 12649 /** PORT - Register Layout Typedef */ 12650 typedef struct { 12651 __IO uint32_t PCR[8]; /**< Pin Control Register n, array offset: 0x0, array step: 0x4 */ 12652 uint8_t RESERVED_0[96]; 12653 __O uint32_t GPCLR; /**< Global Pin Control Low Register, offset: 0x80 */ 12654 __O uint32_t GPCHR; /**< Global Pin Control High Register, offset: 0x84 */ 12655 uint8_t RESERVED_1[24]; 12656 __IO uint32_t ISFR; /**< Interrupt Status Flag Register, offset: 0xA0 */ 12657 uint8_t RESERVED_2[28]; 12658 __IO uint32_t DFER; /**< Digital Filter Enable Register, offset: 0xC0 */ 12659 __IO uint32_t DFCR; /**< Digital Filter Clock Register, offset: 0xC4 */ 12660 __IO uint32_t DFWR; /**< Digital Filter Width Register, offset: 0xC8 */ 12661 } PORT_Type; 12662 12663 /* ---------------------------------------------------------------------------- 12664 -- PORT Register Masks 12665 ---------------------------------------------------------------------------- */ 12666 12667 /*! 12668 * @addtogroup PORT_Register_Masks PORT Register Masks 12669 * @{ 12670 */ 12671 12672 /*! @name PCR - Pin Control Register n */ 12673 /*! @{ */ 12674 12675 #define PORT_PCR_PS_MASK (0x1U) 12676 #define PORT_PCR_PS_SHIFT (0U) 12677 /*! PS - Pull Select 12678 * 0b0..Internal pulldown resistor is enabled on the corresponding pin, if the corresponding Port Pull Enable field is set. 12679 * 0b1..Internal pullup resistor is enabled on the corresponding pin, if the corresponding Port Pull Enable field is set. 12680 */ 12681 #define PORT_PCR_PS(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_PS_SHIFT)) & PORT_PCR_PS_MASK) 12682 12683 #define PORT_PCR_PE_MASK (0x2U) 12684 #define PORT_PCR_PE_SHIFT (1U) 12685 /*! PE - Pull Enable 12686 * 0b0..Internal pullup or pulldown resistor is not enabled on the corresponding pin. 12687 * 0b1..Internal pullup or pulldown resistor is enabled on the corresponding pin, if the pin is configured as a digital input. 12688 */ 12689 #define PORT_PCR_PE(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_PE_SHIFT)) & PORT_PCR_PE_MASK) 12690 12691 #define PORT_PCR_SRE_MASK (0x4U) 12692 #define PORT_PCR_SRE_SHIFT (2U) 12693 /*! SRE - Slew Rate Enable 12694 * 0b0..Fast slew rate is configured on the corresponding pin, if the pin is configured as a digital output. 12695 * 0b1..Slow slew rate is configured on the corresponding pin, if the pin is configured as a digital output. 12696 */ 12697 #define PORT_PCR_SRE(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_SRE_SHIFT)) & PORT_PCR_SRE_MASK) 12698 12699 #define PORT_PCR_MUX_MASK (0x700U) 12700 #define PORT_PCR_MUX_SHIFT (8U) 12701 /*! MUX - Pin Mux Control 12702 * 0b000..Pin disabled (analog). 12703 * 0b001..Alternative 1 (GPIO). 12704 * 0b010..Alternative 2 (chip-specific). 12705 * 0b011..Alternative 3 (chip-specific). 12706 * 0b100..Alternative 4 (chip-specific). 12707 * 0b101..Alternative 5 (chip-specific). 12708 * 0b110..Alternative 6 (chip-specific). 12709 * 0b111..Alternative 7 (chip-specific). 12710 */ 12711 #define PORT_PCR_MUX(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_MUX_SHIFT)) & PORT_PCR_MUX_MASK) 12712 12713 #define PORT_PCR_LK_MASK (0x8000U) 12714 #define PORT_PCR_LK_SHIFT (15U) 12715 /*! LK - Lock Register 12716 * 0b0..Pin Control Register fields [15:0] are not locked. 12717 * 0b1..Pin Control Register fields [15:0] are locked and cannot be updated until the next system reset. 12718 */ 12719 #define PORT_PCR_LK(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_LK_SHIFT)) & PORT_PCR_LK_MASK) 12720 12721 #define PORT_PCR_IRQC_MASK (0xF0000U) 12722 #define PORT_PCR_IRQC_SHIFT (16U) 12723 /*! IRQC - Interrupt Configuration 12724 * 0b0000..Interrupt/DMA request disabled. 12725 * 0b0001..DMA request on rising edge. 12726 * 0b0010..DMA request on falling edge. 12727 * 0b0011..DMA request on either edge. 12728 * 0b1000..Interrupt when logic zero. 12729 * 0b1001..Interrupt on rising edge. 12730 * 0b1010..Interrupt on falling edge. 12731 * 0b1011..Interrupt on either edge. 12732 * 0b1100..Interrupt when logic one. 12733 */ 12734 #define PORT_PCR_IRQC(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_IRQC_SHIFT)) & PORT_PCR_IRQC_MASK) 12735 12736 #define PORT_PCR_ISF_MASK (0x1000000U) 12737 #define PORT_PCR_ISF_SHIFT (24U) 12738 /*! ISF - Interrupt Status Flag 12739 * 0b0..Configured interrupt is not detected. 12740 * 0b1..Configured interrupt is detected. If the pin is configured to generate a DMA request, then the 12741 * corresponding flag will be cleared automatically at the completion of the requested DMA transfer. Otherwise, the 12742 * flag remains set until a logic one is written to the flag. If the pin is configured for a level sensitive 12743 * interrupt and the pin remains asserted, then the flag is set again immediately after it is cleared. 12744 */ 12745 #define PORT_PCR_ISF(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_ISF_SHIFT)) & PORT_PCR_ISF_MASK) 12746 /*! @} */ 12747 12748 /* The count of PORT_PCR */ 12749 #define PORT_PCR_COUNT (8U) 12750 12751 /*! @name GPCLR - Global Pin Control Low Register */ 12752 /*! @{ */ 12753 12754 #define PORT_GPCLR_GPWD_MASK (0xFFFFU) 12755 #define PORT_GPCLR_GPWD_SHIFT (0U) 12756 /*! GPWD - Global Pin Write Data 12757 */ 12758 #define PORT_GPCLR_GPWD(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCLR_GPWD_SHIFT)) & PORT_GPCLR_GPWD_MASK) 12759 12760 #define PORT_GPCLR_GPWE_MASK (0xFFFF0000U) 12761 #define PORT_GPCLR_GPWE_SHIFT (16U) 12762 /*! GPWE - Global Pin Write Enable 12763 * 0b0000000000000000..Corresponding Pin Control Register is not updated with the value in GPWD. 12764 * 0b0000000000000001..Corresponding Pin Control Register is updated with the value in GPWD. 12765 */ 12766 #define PORT_GPCLR_GPWE(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCLR_GPWE_SHIFT)) & PORT_GPCLR_GPWE_MASK) 12767 /*! @} */ 12768 12769 /*! @name GPCHR - Global Pin Control High Register */ 12770 /*! @{ */ 12771 12772 #define PORT_GPCHR_GPWD_MASK (0xFFFFU) 12773 #define PORT_GPCHR_GPWD_SHIFT (0U) 12774 /*! GPWD - Global Pin Write Data 12775 */ 12776 #define PORT_GPCHR_GPWD(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCHR_GPWD_SHIFT)) & PORT_GPCHR_GPWD_MASK) 12777 12778 #define PORT_GPCHR_GPWE_MASK (0xFFFF0000U) 12779 #define PORT_GPCHR_GPWE_SHIFT (16U) 12780 /*! GPWE - Global Pin Write Enable 12781 * 0b0000000000000000..Corresponding Pin Control Register is not updated with the value in GPWD. 12782 * 0b0000000000000001..Corresponding Pin Control Register is updated with the value in GPWD. 12783 */ 12784 #define PORT_GPCHR_GPWE(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCHR_GPWE_SHIFT)) & PORT_GPCHR_GPWE_MASK) 12785 /*! @} */ 12786 12787 /*! @name ISFR - Interrupt Status Flag Register */ 12788 /*! @{ */ 12789 12790 #define PORT_ISFR_ISF_MASK (0xFFFFFFFFU) 12791 #define PORT_ISFR_ISF_SHIFT (0U) 12792 /*! ISF - Interrupt Status Flag 12793 * 0b00000000000000000000000000000000..Configured interrupt is not detected. 12794 * 0b00000000000000000000000000000001..Configured interrupt is detected. If the pin is configured to generate a 12795 * DMA request, then the corresponding flag will be cleared automatically at 12796 * the completion of the requested DMA transfer. Otherwise, the flag remains set 12797 * until a logic one is written to the flag. If the pin is configured for a 12798 * level sensitive interrupt and the pin remains asserted, then the flag is set 12799 * again immediately after it is cleared. 12800 */ 12801 #define PORT_ISFR_ISF(x) (((uint32_t)(((uint32_t)(x)) << PORT_ISFR_ISF_SHIFT)) & PORT_ISFR_ISF_MASK) 12802 /*! @} */ 12803 12804 /*! @name DFER - Digital Filter Enable Register */ 12805 /*! @{ */ 12806 12807 #define PORT_DFER_DFE_MASK (0xFFFFFFFFU) 12808 #define PORT_DFER_DFE_SHIFT (0U) 12809 /*! DFE - Digital Filter Enable 12810 * 0b00000000000000000000000000000000..Digital filter is disabled on the corresponding pin and output of the digital filter is reset to zero. 12811 * 0b00000000000000000000000000000001..Digital filter is enabled on the corresponding pin, if the pin is configured as a digital input. 12812 */ 12813 #define PORT_DFER_DFE(x) (((uint32_t)(((uint32_t)(x)) << PORT_DFER_DFE_SHIFT)) & PORT_DFER_DFE_MASK) 12814 /*! @} */ 12815 12816 /*! @name DFCR - Digital Filter Clock Register */ 12817 /*! @{ */ 12818 12819 #define PORT_DFCR_CS_MASK (0x1U) 12820 #define PORT_DFCR_CS_SHIFT (0U) 12821 /*! CS - Clock Source 12822 * 0b0..Digital filters are clocked by the bus clock. 12823 * 0b1..Digital filters are clocked by the 1 kHz LPO clock. 12824 */ 12825 #define PORT_DFCR_CS(x) (((uint32_t)(((uint32_t)(x)) << PORT_DFCR_CS_SHIFT)) & PORT_DFCR_CS_MASK) 12826 /*! @} */ 12827 12828 /*! @name DFWR - Digital Filter Width Register */ 12829 /*! @{ */ 12830 12831 #define PORT_DFWR_FILT_MASK (0x1FU) 12832 #define PORT_DFWR_FILT_SHIFT (0U) 12833 /*! FILT - Filter Length 12834 */ 12835 #define PORT_DFWR_FILT(x) (((uint32_t)(((uint32_t)(x)) << PORT_DFWR_FILT_SHIFT)) & PORT_DFWR_FILT_MASK) 12836 /*! @} */ 12837 12838 12839 /*! 12840 * @} 12841 */ /* end of group PORT_Register_Masks */ 12842 12843 12844 /* PORT - Peripheral instance base addresses */ 12845 /** Peripheral PORTA base address */ 12846 #define PORTA_BASE (0x40046000u) 12847 /** Peripheral PORTA base pointer */ 12848 #define PORTA ((PORT_Type *)PORTA_BASE) 12849 /** Peripheral PORTB base address */ 12850 #define PORTB_BASE (0x40047000u) 12851 /** Peripheral PORTB base pointer */ 12852 #define PORTB ((PORT_Type *)PORTB_BASE) 12853 /** Peripheral PORTC base address */ 12854 #define PORTC_BASE (0x40048000u) 12855 /** Peripheral PORTC base pointer */ 12856 #define PORTC ((PORT_Type *)PORTC_BASE) 12857 /** Peripheral PORTD base address */ 12858 #define PORTD_BASE (0x40049000u) 12859 /** Peripheral PORTD base pointer */ 12860 #define PORTD ((PORT_Type *)PORTD_BASE) 12861 /** Peripheral PORTE base address */ 12862 #define PORTE_BASE (0x4004A000u) 12863 /** Peripheral PORTE base pointer */ 12864 #define PORTE ((PORT_Type *)PORTE_BASE) 12865 /** Peripheral PORTF base address */ 12866 #define PORTF_BASE (0x4004B000u) 12867 /** Peripheral PORTF base pointer */ 12868 #define PORTF ((PORT_Type *)PORTF_BASE) 12869 /** Peripheral PORTG base address */ 12870 #define PORTG_BASE (0x4004C000u) 12871 /** Peripheral PORTG base pointer */ 12872 #define PORTG ((PORT_Type *)PORTG_BASE) 12873 /** Peripheral PORTH base address */ 12874 #define PORTH_BASE (0x4004D000u) 12875 /** Peripheral PORTH base pointer */ 12876 #define PORTH ((PORT_Type *)PORTH_BASE) 12877 /** Peripheral PORTI base address */ 12878 #define PORTI_BASE (0x4004E000u) 12879 /** Peripheral PORTI base pointer */ 12880 #define PORTI ((PORT_Type *)PORTI_BASE) 12881 /** Array initializer of PORT peripheral base addresses */ 12882 #define PORT_BASE_ADDRS { PORTA_BASE, PORTB_BASE, PORTC_BASE, PORTD_BASE, PORTE_BASE, PORTF_BASE, PORTG_BASE, PORTH_BASE, PORTI_BASE } 12883 /** Array initializer of PORT peripheral base pointers */ 12884 #define PORT_BASE_PTRS { PORTA, PORTB, PORTC, PORTD, PORTE, PORTF, PORTG, PORTH, PORTI } 12885 /** Interrupt vectors for the PORT peripheral type */ 12886 #define PORT_IRQS { PTx_IRQn, PTx_IRQn, PTx_IRQn, PTx_IRQn, PTx_IRQn, PTx_IRQn, PTx_IRQn, PTx_IRQn, PTx_IRQn } 12887 12888 /*! 12889 * @} 12890 */ /* end of group PORT_Peripheral_Access_Layer */ 12891 12892 12893 /* ---------------------------------------------------------------------------- 12894 -- RCM Peripheral Access Layer 12895 ---------------------------------------------------------------------------- */ 12896 12897 /*! 12898 * @addtogroup RCM_Peripheral_Access_Layer RCM Peripheral Access Layer 12899 * @{ 12900 */ 12901 12902 /** RCM - Register Layout Typedef */ 12903 typedef struct { 12904 __I uint8_t SRS0; /**< System Reset Status Register 0, offset: 0x0 */ 12905 __I uint8_t SRS1; /**< System Reset Status Register 1, offset: 0x1 */ 12906 uint8_t RESERVED_0[2]; 12907 __IO uint8_t RPFC; /**< Reset Pin Filter Control register, offset: 0x4 */ 12908 __IO uint8_t RPFW; /**< Reset Pin Filter Width register, offset: 0x5 */ 12909 } RCM_Type; 12910 12911 /* ---------------------------------------------------------------------------- 12912 -- RCM Register Masks 12913 ---------------------------------------------------------------------------- */ 12914 12915 /*! 12916 * @addtogroup RCM_Register_Masks RCM Register Masks 12917 * @{ 12918 */ 12919 12920 /*! @name SRS0 - System Reset Status Register 0 */ 12921 /*! @{ */ 12922 12923 #define RCM_SRS0_WAKEUP_MASK (0x1U) 12924 #define RCM_SRS0_WAKEUP_SHIFT (0U) 12925 /*! WAKEUP - Low Leakage Wakeup Reset 12926 * 0b0..Reset not caused by wakeup source 12927 * 0b1..Reset caused by wakeup source 12928 */ 12929 #define RCM_SRS0_WAKEUP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_WAKEUP_SHIFT)) & RCM_SRS0_WAKEUP_MASK) 12930 12931 #define RCM_SRS0_LVD_MASK (0x2U) 12932 #define RCM_SRS0_LVD_SHIFT (1U) 12933 /*! LVD - Low-Voltage Detect Reset 12934 * 0b0..Reset not caused by LVD trip or POR 12935 * 0b1..Reset caused by LVD trip or POR 12936 */ 12937 #define RCM_SRS0_LVD(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_LVD_SHIFT)) & RCM_SRS0_LVD_MASK) 12938 12939 #define RCM_SRS0_LOC_MASK (0x4U) 12940 #define RCM_SRS0_LOC_SHIFT (2U) 12941 /*! LOC - Loss-of-Clock Reset 12942 * 0b0..Reset not caused by a loss of external clock. 12943 * 0b1..Reset caused by a loss of external clock. 12944 */ 12945 #define RCM_SRS0_LOC(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_LOC_SHIFT)) & RCM_SRS0_LOC_MASK) 12946 12947 #define RCM_SRS0_LOL_MASK (0x8U) 12948 #define RCM_SRS0_LOL_SHIFT (3U) 12949 /*! LOL - Loss-of-Lock Reset 12950 * 0b0..Reset not caused by a loss of lock in the PLL 12951 * 0b1..Reset caused by a loss of lock in the PLL 12952 */ 12953 #define RCM_SRS0_LOL(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_LOL_SHIFT)) & RCM_SRS0_LOL_MASK) 12954 12955 #define RCM_SRS0_WDOG_MASK (0x20U) 12956 #define RCM_SRS0_WDOG_SHIFT (5U) 12957 /*! WDOG - Watchdog 12958 * 0b0..Reset not caused by watchdog timeout 12959 * 0b1..Reset caused by watchdog timeout 12960 */ 12961 #define RCM_SRS0_WDOG(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_WDOG_SHIFT)) & RCM_SRS0_WDOG_MASK) 12962 12963 #define RCM_SRS0_PIN_MASK (0x40U) 12964 #define RCM_SRS0_PIN_SHIFT (6U) 12965 /*! PIN - External Reset Pin 12966 * 0b0..Reset not caused by external reset pin 12967 * 0b1..Reset caused by external reset pin 12968 */ 12969 #define RCM_SRS0_PIN(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_PIN_SHIFT)) & RCM_SRS0_PIN_MASK) 12970 12971 #define RCM_SRS0_POR_MASK (0x80U) 12972 #define RCM_SRS0_POR_SHIFT (7U) 12973 /*! POR - Power-On Reset 12974 * 0b0..Reset not caused by POR 12975 * 0b1..Reset caused by POR 12976 */ 12977 #define RCM_SRS0_POR(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_POR_SHIFT)) & RCM_SRS0_POR_MASK) 12978 /*! @} */ 12979 12980 /*! @name SRS1 - System Reset Status Register 1 */ 12981 /*! @{ */ 12982 12983 #define RCM_SRS1_LOCKUP_MASK (0x2U) 12984 #define RCM_SRS1_LOCKUP_SHIFT (1U) 12985 /*! LOCKUP - Core Lockup 12986 * 0b0..Reset not caused by core LOCKUP event 12987 * 0b1..Reset caused by core LOCKUP event 12988 */ 12989 #define RCM_SRS1_LOCKUP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_LOCKUP_SHIFT)) & RCM_SRS1_LOCKUP_MASK) 12990 12991 #define RCM_SRS1_SW_MASK (0x4U) 12992 #define RCM_SRS1_SW_SHIFT (2U) 12993 /*! SW - Software 12994 * 0b0..Reset not caused by software setting of SYSRESETREQ bit 12995 * 0b1..Reset caused by software setting of SYSRESETREQ bit 12996 */ 12997 #define RCM_SRS1_SW(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_SW_SHIFT)) & RCM_SRS1_SW_MASK) 12998 12999 #define RCM_SRS1_MDM_AP_MASK (0x8U) 13000 #define RCM_SRS1_MDM_AP_SHIFT (3U) 13001 /*! MDM_AP - MDM-AP System Reset Request 13002 * 0b0..Reset not caused by host debugger system setting of the System Reset Request bit 13003 * 0b1..Reset caused by host debugger system setting of the System Reset Request bit 13004 */ 13005 #define RCM_SRS1_MDM_AP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_MDM_AP_SHIFT)) & RCM_SRS1_MDM_AP_MASK) 13006 13007 #define RCM_SRS1_SACKERR_MASK (0x20U) 13008 #define RCM_SRS1_SACKERR_SHIFT (5U) 13009 /*! SACKERR - Stop Mode Acknowledge Error Reset 13010 * 0b0..Reset not caused by peripheral failure to acknowledge attempt to enter stop mode 13011 * 0b1..Reset caused by peripheral failure to acknowledge attempt to enter stop mode 13012 */ 13013 #define RCM_SRS1_SACKERR(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_SACKERR_SHIFT)) & RCM_SRS1_SACKERR_MASK) 13014 /*! @} */ 13015 13016 /*! @name RPFC - Reset Pin Filter Control register */ 13017 /*! @{ */ 13018 13019 #define RCM_RPFC_RSTFLTSRW_MASK (0x3U) 13020 #define RCM_RPFC_RSTFLTSRW_SHIFT (0U) 13021 /*! RSTFLTSRW - Reset Pin Filter Select in Run and Wait Modes 13022 * 0b00..All filtering disabled 13023 * 0b01..Bus clock filter enabled for normal operation 13024 * 0b10..LPO clock filter enabled for normal operation 13025 * 0b11..Reserved 13026 */ 13027 #define RCM_RPFC_RSTFLTSRW(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFC_RSTFLTSRW_SHIFT)) & RCM_RPFC_RSTFLTSRW_MASK) 13028 13029 #define RCM_RPFC_RSTFLTSS_MASK (0x4U) 13030 #define RCM_RPFC_RSTFLTSS_SHIFT (2U) 13031 /*! RSTFLTSS - Reset Pin Filter Select in Stop Mode 13032 * 0b0..All filtering disabled 13033 * 0b1..LPO clock filter enabled 13034 */ 13035 #define RCM_RPFC_RSTFLTSS(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFC_RSTFLTSS_SHIFT)) & RCM_RPFC_RSTFLTSS_MASK) 13036 /*! @} */ 13037 13038 /*! @name RPFW - Reset Pin Filter Width register */ 13039 /*! @{ */ 13040 13041 #define RCM_RPFW_RSTFLTSEL_MASK (0x1FU) 13042 #define RCM_RPFW_RSTFLTSEL_SHIFT (0U) 13043 /*! RSTFLTSEL - Reset Pin Filter Bus Clock Select 13044 * 0b00000..Bus clock filter count is 1 13045 * 0b00001..Bus clock filter count is 2 13046 * 0b00010..Bus clock filter count is 3 13047 * 0b00011..Bus clock filter count is 4 13048 * 0b00100..Bus clock filter count is 5 13049 * 0b00101..Bus clock filter count is 6 13050 * 0b00110..Bus clock filter count is 7 13051 * 0b00111..Bus clock filter count is 8 13052 * 0b01000..Bus clock filter count is 9 13053 * 0b01001..Bus clock filter count is 10 13054 * 0b01010..Bus clock filter count is 11 13055 * 0b01011..Bus clock filter count is 12 13056 * 0b01100..Bus clock filter count is 13 13057 * 0b01101..Bus clock filter count is 14 13058 * 0b01110..Bus clock filter count is 15 13059 * 0b01111..Bus clock filter count is 16 13060 * 0b10000..Bus clock filter count is 17 13061 * 0b10001..Bus clock filter count is 18 13062 * 0b10010..Bus clock filter count is 19 13063 * 0b10011..Bus clock filter count is 20 13064 * 0b10100..Bus clock filter count is 21 13065 * 0b10101..Bus clock filter count is 22 13066 * 0b10110..Bus clock filter count is 23 13067 * 0b10111..Bus clock filter count is 24 13068 * 0b11000..Bus clock filter count is 25 13069 * 0b11001..Bus clock filter count is 26 13070 * 0b11010..Bus clock filter count is 27 13071 * 0b11011..Bus clock filter count is 28 13072 * 0b11100..Bus clock filter count is 29 13073 * 0b11101..Bus clock filter count is 30 13074 * 0b11110..Bus clock filter count is 31 13075 * 0b11111..Bus clock filter count is 32 13076 */ 13077 #define RCM_RPFW_RSTFLTSEL(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFW_RSTFLTSEL_SHIFT)) & RCM_RPFW_RSTFLTSEL_MASK) 13078 /*! @} */ 13079 13080 13081 /*! 13082 * @} 13083 */ /* end of group RCM_Register_Masks */ 13084 13085 13086 /* RCM - Peripheral instance base addresses */ 13087 /** Peripheral RCM base address */ 13088 #define RCM_BASE (0x4007B000u) 13089 /** Peripheral RCM base pointer */ 13090 #define RCM ((RCM_Type *)RCM_BASE) 13091 /** Array initializer of RCM peripheral base addresses */ 13092 #define RCM_BASE_ADDRS { RCM_BASE } 13093 /** Array initializer of RCM peripheral base pointers */ 13094 #define RCM_BASE_PTRS { RCM } 13095 13096 /*! 13097 * @} 13098 */ /* end of group RCM_Peripheral_Access_Layer */ 13099 13100 13101 /* ---------------------------------------------------------------------------- 13102 -- RNG Peripheral Access Layer 13103 ---------------------------------------------------------------------------- */ 13104 13105 /*! 13106 * @addtogroup RNG_Peripheral_Access_Layer RNG Peripheral Access Layer 13107 * @{ 13108 */ 13109 13110 /** RNG - Register Layout Typedef */ 13111 typedef struct { 13112 __IO uint32_t CR; /**< RNGA Control Register, offset: 0x0 */ 13113 __I uint32_t SR; /**< RNGA Status Register, offset: 0x4 */ 13114 __O uint32_t ER; /**< RNGA Entropy Register, offset: 0x8 */ 13115 __I uint32_t OR; /**< RNGA Output Register, offset: 0xC */ 13116 } RNG_Type; 13117 13118 /* ---------------------------------------------------------------------------- 13119 -- RNG Register Masks 13120 ---------------------------------------------------------------------------- */ 13121 13122 /*! 13123 * @addtogroup RNG_Register_Masks RNG Register Masks 13124 * @{ 13125 */ 13126 13127 /*! @name CR - RNGA Control Register */ 13128 /*! @{ */ 13129 13130 #define RNG_CR_GO_MASK (0x1U) 13131 #define RNG_CR_GO_SHIFT (0U) 13132 /*! GO - Go 13133 * 0b0..Disabled 13134 * 0b1..Enabled 13135 */ 13136 #define RNG_CR_GO(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_GO_SHIFT)) & RNG_CR_GO_MASK) 13137 13138 #define RNG_CR_HA_MASK (0x2U) 13139 #define RNG_CR_HA_SHIFT (1U) 13140 /*! HA - High Assurance 13141 * 0b0..Disabled 13142 * 0b1..Enabled 13143 */ 13144 #define RNG_CR_HA(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_HA_SHIFT)) & RNG_CR_HA_MASK) 13145 13146 #define RNG_CR_INTM_MASK (0x4U) 13147 #define RNG_CR_INTM_SHIFT (2U) 13148 /*! INTM - Interrupt Mask 13149 * 0b0..Not masked 13150 * 0b1..Masked 13151 */ 13152 #define RNG_CR_INTM(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_INTM_SHIFT)) & RNG_CR_INTM_MASK) 13153 13154 #define RNG_CR_CLRI_MASK (0x8U) 13155 #define RNG_CR_CLRI_SHIFT (3U) 13156 /*! CLRI - Clear Interrupt 13157 * 0b0..Do not clear the interrupt. 13158 * 0b1..Clear the interrupt. When you write 1 to this field, RNGA then resets the error-interrupt indicator (SR[ERRI]). This bit always reads as 0. 13159 */ 13160 #define RNG_CR_CLRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_CLRI_SHIFT)) & RNG_CR_CLRI_MASK) 13161 13162 #define RNG_CR_SLP_MASK (0x10U) 13163 #define RNG_CR_SLP_SHIFT (4U) 13164 /*! SLP - Sleep 13165 * 0b0..Normal mode 13166 * 0b1..Sleep (low-power) mode 13167 */ 13168 #define RNG_CR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_CR_SLP_SHIFT)) & RNG_CR_SLP_MASK) 13169 /*! @} */ 13170 13171 /*! @name SR - RNGA Status Register */ 13172 /*! @{ */ 13173 13174 #define RNG_SR_SECV_MASK (0x1U) 13175 #define RNG_SR_SECV_SHIFT (0U) 13176 /*! SECV - Security Violation 13177 * 0b0..No security violation 13178 * 0b1..Security violation 13179 */ 13180 #define RNG_SR_SECV(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SECV_SHIFT)) & RNG_SR_SECV_MASK) 13181 13182 #define RNG_SR_LRS_MASK (0x2U) 13183 #define RNG_SR_LRS_SHIFT (1U) 13184 /*! LRS - Last Read Status 13185 * 0b0..No underflow 13186 * 0b1..Underflow 13187 */ 13188 #define RNG_SR_LRS(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_LRS_SHIFT)) & RNG_SR_LRS_MASK) 13189 13190 #define RNG_SR_ORU_MASK (0x4U) 13191 #define RNG_SR_ORU_SHIFT (2U) 13192 /*! ORU - Output Register Underflow 13193 * 0b0..No underflow 13194 * 0b1..Underflow 13195 */ 13196 #define RNG_SR_ORU(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ORU_SHIFT)) & RNG_SR_ORU_MASK) 13197 13198 #define RNG_SR_ERRI_MASK (0x8U) 13199 #define RNG_SR_ERRI_SHIFT (3U) 13200 /*! ERRI - Error Interrupt 13201 * 0b0..No underflow 13202 * 0b1..Underflow 13203 */ 13204 #define RNG_SR_ERRI(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_ERRI_SHIFT)) & RNG_SR_ERRI_MASK) 13205 13206 #define RNG_SR_SLP_MASK (0x10U) 13207 #define RNG_SR_SLP_SHIFT (4U) 13208 /*! SLP - Sleep 13209 * 0b0..Normal mode 13210 * 0b1..Sleep (low-power) mode 13211 */ 13212 #define RNG_SR_SLP(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_SLP_SHIFT)) & RNG_SR_SLP_MASK) 13213 13214 #define RNG_SR_OREG_LVL_MASK (0xFF00U) 13215 #define RNG_SR_OREG_LVL_SHIFT (8U) 13216 /*! OREG_LVL - Output Register Level 13217 * 0b00000000..No words (empty) 13218 * 0b00000001..One word (valid) 13219 */ 13220 #define RNG_SR_OREG_LVL(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_LVL_SHIFT)) & RNG_SR_OREG_LVL_MASK) 13221 13222 #define RNG_SR_OREG_SIZE_MASK (0xFF0000U) 13223 #define RNG_SR_OREG_SIZE_SHIFT (16U) 13224 /*! OREG_SIZE - Output Register Size 13225 * 0b00000001..One word (this value is fixed) 13226 */ 13227 #define RNG_SR_OREG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << RNG_SR_OREG_SIZE_SHIFT)) & RNG_SR_OREG_SIZE_MASK) 13228 /*! @} */ 13229 13230 /*! @name ER - RNGA Entropy Register */ 13231 /*! @{ */ 13232 13233 #define RNG_ER_EXT_ENT_MASK (0xFFFFFFFFU) 13234 #define RNG_ER_EXT_ENT_SHIFT (0U) 13235 /*! EXT_ENT - External Entropy 13236 */ 13237 #define RNG_ER_EXT_ENT(x) (((uint32_t)(((uint32_t)(x)) << RNG_ER_EXT_ENT_SHIFT)) & RNG_ER_EXT_ENT_MASK) 13238 /*! @} */ 13239 13240 /*! @name OR - RNGA Output Register */ 13241 /*! @{ */ 13242 13243 #define RNG_OR_RANDOUT_MASK (0xFFFFFFFFU) 13244 #define RNG_OR_RANDOUT_SHIFT (0U) 13245 /*! RANDOUT - Random Output 13246 * 0b00000000000000000000000000000000..Invalid data (if you read this field when it is 0 and SR[OREG_LVL] is 0, 13247 * RNGA then writes 1 to SR[ERRI], SR[ORU], and SR[LRS]; when the error 13248 * interrupt is not masked (CR[INTM]=0), RNGA also asserts an error interrupt request 13249 * to the interrupt controller). 13250 */ 13251 #define RNG_OR_RANDOUT(x) (((uint32_t)(((uint32_t)(x)) << RNG_OR_RANDOUT_SHIFT)) & RNG_OR_RANDOUT_MASK) 13252 /*! @} */ 13253 13254 13255 /*! 13256 * @} 13257 */ /* end of group RNG_Register_Masks */ 13258 13259 13260 /* RNG - Peripheral instance base addresses */ 13261 /** Peripheral RNG base address */ 13262 #define RNG_BASE (0x40029000u) 13263 /** Peripheral RNG base pointer */ 13264 #define RNG ((RNG_Type *)RNG_BASE) 13265 /** Array initializer of RNG peripheral base addresses */ 13266 #define RNG_BASE_ADDRS { RNG_BASE } 13267 /** Array initializer of RNG peripheral base pointers */ 13268 #define RNG_BASE_PTRS { RNG } 13269 /** Interrupt vectors for the RNG peripheral type */ 13270 #define RNG_IRQS { RNGA_IRQn } 13271 13272 /*! 13273 * @} 13274 */ /* end of group RNG_Peripheral_Access_Layer */ 13275 13276 13277 /* ---------------------------------------------------------------------------- 13278 -- ROM Peripheral Access Layer 13279 ---------------------------------------------------------------------------- */ 13280 13281 /*! 13282 * @addtogroup ROM_Peripheral_Access_Layer ROM Peripheral Access Layer 13283 * @{ 13284 */ 13285 13286 /** ROM - Register Layout Typedef */ 13287 typedef struct { 13288 __I uint32_t ENTRY[3]; /**< Entry, array offset: 0x0, array step: 0x4 */ 13289 __I uint32_t TABLEMARK; /**< End of Table Marker Register, offset: 0xC */ 13290 uint8_t RESERVED_0[4028]; 13291 __I uint32_t SYSACCESS; /**< System Access Register, offset: 0xFCC */ 13292 __I uint32_t PERIPHID4; /**< Peripheral ID Register, offset: 0xFD0 */ 13293 __I uint32_t PERIPHID5; /**< Peripheral ID Register, offset: 0xFD4 */ 13294 __I uint32_t PERIPHID6; /**< Peripheral ID Register, offset: 0xFD8 */ 13295 __I uint32_t PERIPHID7; /**< Peripheral ID Register, offset: 0xFDC */ 13296 __I uint32_t PERIPHID0; /**< Peripheral ID Register, offset: 0xFE0 */ 13297 __I uint32_t PERIPHID1; /**< Peripheral ID Register, offset: 0xFE4 */ 13298 __I uint32_t PERIPHID2; /**< Peripheral ID Register, offset: 0xFE8 */ 13299 __I uint32_t PERIPHID3; /**< Peripheral ID Register, offset: 0xFEC */ 13300 __I uint32_t COMPID[4]; /**< Component ID Register, array offset: 0xFF0, array step: 0x4 */ 13301 } ROM_Type; 13302 13303 /* ---------------------------------------------------------------------------- 13304 -- ROM Register Masks 13305 ---------------------------------------------------------------------------- */ 13306 13307 /*! 13308 * @addtogroup ROM_Register_Masks ROM Register Masks 13309 * @{ 13310 */ 13311 13312 /*! @name ENTRY - Entry */ 13313 /*! @{ */ 13314 13315 #define ROM_ENTRY_ENTRY_MASK (0xFFFFFFFFU) 13316 #define ROM_ENTRY_ENTRY_SHIFT (0U) 13317 /*! ENTRY - ENTRY 13318 */ 13319 #define ROM_ENTRY_ENTRY(x) (((uint32_t)(((uint32_t)(x)) << ROM_ENTRY_ENTRY_SHIFT)) & ROM_ENTRY_ENTRY_MASK) 13320 /*! @} */ 13321 13322 /* The count of ROM_ENTRY */ 13323 #define ROM_ENTRY_COUNT (3U) 13324 13325 /*! @name TABLEMARK - End of Table Marker Register */ 13326 /*! @{ */ 13327 13328 #define ROM_TABLEMARK_MARK_MASK (0xFFFFFFFFU) 13329 #define ROM_TABLEMARK_MARK_SHIFT (0U) 13330 /*! MARK - MARK 13331 */ 13332 #define ROM_TABLEMARK_MARK(x) (((uint32_t)(((uint32_t)(x)) << ROM_TABLEMARK_MARK_SHIFT)) & ROM_TABLEMARK_MARK_MASK) 13333 /*! @} */ 13334 13335 /*! @name SYSACCESS - System Access Register */ 13336 /*! @{ */ 13337 13338 #define ROM_SYSACCESS_SYSACCESS_MASK (0xFFFFFFFFU) 13339 #define ROM_SYSACCESS_SYSACCESS_SHIFT (0U) 13340 /*! SYSACCESS - SYSACCESS 13341 */ 13342 #define ROM_SYSACCESS_SYSACCESS(x) (((uint32_t)(((uint32_t)(x)) << ROM_SYSACCESS_SYSACCESS_SHIFT)) & ROM_SYSACCESS_SYSACCESS_MASK) 13343 /*! @} */ 13344 13345 /*! @name PERIPHID4 - Peripheral ID Register */ 13346 /*! @{ */ 13347 13348 #define ROM_PERIPHID4_PERIPHID_MASK (0xFFFFFFFFU) 13349 #define ROM_PERIPHID4_PERIPHID_SHIFT (0U) 13350 /*! PERIPHID - PERIPHID 13351 */ 13352 #define ROM_PERIPHID4_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID4_PERIPHID_SHIFT)) & ROM_PERIPHID4_PERIPHID_MASK) 13353 /*! @} */ 13354 13355 /*! @name PERIPHID5 - Peripheral ID Register */ 13356 /*! @{ */ 13357 13358 #define ROM_PERIPHID5_PERIPHID_MASK (0xFFFFFFFFU) 13359 #define ROM_PERIPHID5_PERIPHID_SHIFT (0U) 13360 /*! PERIPHID - PERIPHID 13361 */ 13362 #define ROM_PERIPHID5_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID5_PERIPHID_SHIFT)) & ROM_PERIPHID5_PERIPHID_MASK) 13363 /*! @} */ 13364 13365 /*! @name PERIPHID6 - Peripheral ID Register */ 13366 /*! @{ */ 13367 13368 #define ROM_PERIPHID6_PERIPHID_MASK (0xFFFFFFFFU) 13369 #define ROM_PERIPHID6_PERIPHID_SHIFT (0U) 13370 /*! PERIPHID - PERIPHID 13371 */ 13372 #define ROM_PERIPHID6_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID6_PERIPHID_SHIFT)) & ROM_PERIPHID6_PERIPHID_MASK) 13373 /*! @} */ 13374 13375 /*! @name PERIPHID7 - Peripheral ID Register */ 13376 /*! @{ */ 13377 13378 #define ROM_PERIPHID7_PERIPHID_MASK (0xFFFFFFFFU) 13379 #define ROM_PERIPHID7_PERIPHID_SHIFT (0U) 13380 /*! PERIPHID - PERIPHID 13381 */ 13382 #define ROM_PERIPHID7_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID7_PERIPHID_SHIFT)) & ROM_PERIPHID7_PERIPHID_MASK) 13383 /*! @} */ 13384 13385 /*! @name PERIPHID0 - Peripheral ID Register */ 13386 /*! @{ */ 13387 13388 #define ROM_PERIPHID0_PERIPHID_MASK (0xFFFFFFFFU) 13389 #define ROM_PERIPHID0_PERIPHID_SHIFT (0U) 13390 /*! PERIPHID - PERIPHID 13391 */ 13392 #define ROM_PERIPHID0_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID0_PERIPHID_SHIFT)) & ROM_PERIPHID0_PERIPHID_MASK) 13393 /*! @} */ 13394 13395 /*! @name PERIPHID1 - Peripheral ID Register */ 13396 /*! @{ */ 13397 13398 #define ROM_PERIPHID1_PERIPHID_MASK (0xFFFFFFFFU) 13399 #define ROM_PERIPHID1_PERIPHID_SHIFT (0U) 13400 /*! PERIPHID - PERIPHID 13401 */ 13402 #define ROM_PERIPHID1_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID1_PERIPHID_SHIFT)) & ROM_PERIPHID1_PERIPHID_MASK) 13403 /*! @} */ 13404 13405 /*! @name PERIPHID2 - Peripheral ID Register */ 13406 /*! @{ */ 13407 13408 #define ROM_PERIPHID2_PERIPHID_MASK (0xFFFFFFFFU) 13409 #define ROM_PERIPHID2_PERIPHID_SHIFT (0U) 13410 /*! PERIPHID - PERIPHID 13411 */ 13412 #define ROM_PERIPHID2_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID2_PERIPHID_SHIFT)) & ROM_PERIPHID2_PERIPHID_MASK) 13413 /*! @} */ 13414 13415 /*! @name PERIPHID3 - Peripheral ID Register */ 13416 /*! @{ */ 13417 13418 #define ROM_PERIPHID3_PERIPHID_MASK (0xFFFFFFFFU) 13419 #define ROM_PERIPHID3_PERIPHID_SHIFT (0U) 13420 /*! PERIPHID - PERIPHID 13421 */ 13422 #define ROM_PERIPHID3_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID3_PERIPHID_SHIFT)) & ROM_PERIPHID3_PERIPHID_MASK) 13423 /*! @} */ 13424 13425 /*! @name COMPID - Component ID Register */ 13426 /*! @{ */ 13427 13428 #define ROM_COMPID_COMPID_MASK (0xFFFFFFFFU) 13429 #define ROM_COMPID_COMPID_SHIFT (0U) 13430 /*! COMPID - Component ID 13431 */ 13432 #define ROM_COMPID_COMPID(x) (((uint32_t)(((uint32_t)(x)) << ROM_COMPID_COMPID_SHIFT)) & ROM_COMPID_COMPID_MASK) 13433 /*! @} */ 13434 13435 /* The count of ROM_COMPID */ 13436 #define ROM_COMPID_COUNT (4U) 13437 13438 13439 /*! 13440 * @} 13441 */ /* end of group ROM_Register_Masks */ 13442 13443 13444 /* ROM - Peripheral instance base addresses */ 13445 /** Peripheral ROM base address */ 13446 #define ROM_BASE (0xF0002000u) 13447 /** Peripheral ROM base pointer */ 13448 #define ROM ((ROM_Type *)ROM_BASE) 13449 /** Array initializer of ROM peripheral base addresses */ 13450 #define ROM_BASE_ADDRS { ROM_BASE } 13451 /** Array initializer of ROM peripheral base pointers */ 13452 #define ROM_BASE_PTRS { ROM } 13453 13454 /*! 13455 * @} 13456 */ /* end of group ROM_Peripheral_Access_Layer */ 13457 13458 13459 /* ---------------------------------------------------------------------------- 13460 -- RTC Peripheral Access Layer 13461 ---------------------------------------------------------------------------- */ 13462 13463 /*! 13464 * @addtogroup RTC_Peripheral_Access_Layer RTC Peripheral Access Layer 13465 * @{ 13466 */ 13467 13468 /** RTC - Register Layout Typedef */ 13469 typedef struct { 13470 __IO uint16_t YEARMON; /**< RTC Year and Month Counters Register, offset: 0x0 */ 13471 __IO uint16_t DAYS; /**< RTC Days and Day-of-Week Counters Register, offset: 0x2 */ 13472 __IO uint16_t HOURMIN; /**< RTC Hours and Minutes Counters Register, offset: 0x4 */ 13473 __IO uint16_t SECONDS; /**< RTC Seconds Counters Register, offset: 0x6 */ 13474 __IO uint16_t ALM_YEARMON; /**< RTC Year and Months Alarm Register, offset: 0x8 */ 13475 __IO uint16_t ALM_DAYS; /**< RTC Days Alarm Register, offset: 0xA */ 13476 __IO uint16_t ALM_HOURMIN; /**< RTC Hours and Minutes Alarm Register, offset: 0xC */ 13477 __IO uint16_t ALM_SECONDS; /**< RTC Seconds Alarm Register, offset: 0xE */ 13478 __IO uint16_t CTRL; /**< RTC Control Register, offset: 0x10 */ 13479 __IO uint16_t STATUS; /**< RTC Status Register, offset: 0x12 */ 13480 __IO uint16_t ISR; /**< RTC Interrupt Status Register, offset: 0x14 */ 13481 __IO uint16_t IER; /**< RTC Interrupt Enable Register, offset: 0x16 */ 13482 uint8_t RESERVED_0[8]; 13483 __IO uint16_t GP_DATA_REG; /**< RTC General Purpose Data Register, offset: 0x20 */ 13484 __IO uint16_t DST_HOUR; /**< RTC Daylight Saving Hour Register, offset: 0x22 */ 13485 __IO uint16_t DST_MONTH; /**< RTC Daylight Saving Month Register, offset: 0x24 */ 13486 __IO uint16_t DST_DAY; /**< RTC Daylight Saving Day Register, offset: 0x26 */ 13487 __IO uint16_t COMPEN; /**< RTC Compensation Register, offset: 0x28 */ 13488 uint8_t RESERVED_1[8]; 13489 __IO uint16_t TAMPER_SCR; /**< RTC Tamper Status and Control Register, offset: 0x32 */ 13490 __IO uint16_t FILTER01_CFG; /**< RTC Tamper 0 1 Filter Configuration Register, offset: 0x34 */ 13491 __IO uint16_t FILTER2_CFG; /**< RTC Tamper 2 Filter Configuration Register, offset: 0x36 */ 13492 uint8_t RESERVED_2[10]; 13493 __IO uint16_t CTRL2; /**< RTC Control 2 Register, offset: 0x42 */ 13494 } RTC_Type; 13495 13496 /* ---------------------------------------------------------------------------- 13497 -- RTC Register Masks 13498 ---------------------------------------------------------------------------- */ 13499 13500 /*! 13501 * @addtogroup RTC_Register_Masks RTC Register Masks 13502 * @{ 13503 */ 13504 13505 /*! @name YEARMON - RTC Year and Month Counters Register */ 13506 /*! @{ */ 13507 13508 #define RTC_YEARMON_MON_CNT_MASK (0xFU) 13509 #define RTC_YEARMON_MON_CNT_SHIFT (0U) 13510 /*! MON_CNT 13511 * 0b0000..Illegal Value 13512 * 0b0001..January 13513 * 0b0010..February 13514 * 0b0011..March 13515 * 0b0100..April 13516 * 0b0101..May 13517 * 0b0110..June 13518 * 0b0111..July 13519 * 0b1000..August 13520 * 0b1001..September 13521 * 0b0010..October 13522 * 0b0011..November 13523 * 0b1100..December 13524 * 0b1101..Illegal Value 13525 * 0b1110..Illegal Value 13526 * 0b1111..Illegal Value 13527 */ 13528 #define RTC_YEARMON_MON_CNT(x) (((uint16_t)(((uint16_t)(x)) << RTC_YEARMON_MON_CNT_SHIFT)) & RTC_YEARMON_MON_CNT_MASK) 13529 13530 #define RTC_YEARMON_YROFST_MASK (0xFF00U) 13531 #define RTC_YEARMON_YROFST_SHIFT (8U) 13532 /*! YROFST - Year Offset Count Value 13533 */ 13534 #define RTC_YEARMON_YROFST(x) (((uint16_t)(((uint16_t)(x)) << RTC_YEARMON_YROFST_SHIFT)) & RTC_YEARMON_YROFST_MASK) 13535 /*! @} */ 13536 13537 /*! @name DAYS - RTC Days and Day-of-Week Counters Register */ 13538 /*! @{ */ 13539 13540 #define RTC_DAYS_DAY_CNT_MASK (0x1FU) 13541 #define RTC_DAYS_DAY_CNT_SHIFT (0U) 13542 /*! DAY_CNT - Days Counter Value. 13543 */ 13544 #define RTC_DAYS_DAY_CNT(x) (((uint16_t)(((uint16_t)(x)) << RTC_DAYS_DAY_CNT_SHIFT)) & RTC_DAYS_DAY_CNT_MASK) 13545 13546 #define RTC_DAYS_DOW_MASK (0x700U) 13547 #define RTC_DAYS_DOW_SHIFT (8U) 13548 /*! DOW - Day of Week Counter Value. 13549 * 0b000..Sunday 13550 * 0b001..Monday 13551 * 0b010..Tuesday 13552 * 0b011..Wednesday 13553 * 0b100..Thrusday 13554 * 0b101..Friday 13555 * 0b110..Saturday 13556 * 0b111..Reserved 13557 */ 13558 #define RTC_DAYS_DOW(x) (((uint16_t)(((uint16_t)(x)) << RTC_DAYS_DOW_SHIFT)) & RTC_DAYS_DOW_MASK) 13559 /*! @} */ 13560 13561 /*! @name HOURMIN - RTC Hours and Minutes Counters Register */ 13562 /*! @{ */ 13563 13564 #define RTC_HOURMIN_MIN_CNT_MASK (0x3FU) 13565 #define RTC_HOURMIN_MIN_CNT_SHIFT (0U) 13566 /*! MIN_CNT - Minutes Counter Value. 13567 */ 13568 #define RTC_HOURMIN_MIN_CNT(x) (((uint16_t)(((uint16_t)(x)) << RTC_HOURMIN_MIN_CNT_SHIFT)) & RTC_HOURMIN_MIN_CNT_MASK) 13569 13570 #define RTC_HOURMIN_HOUR_CNT_MASK (0x1F00U) 13571 #define RTC_HOURMIN_HOUR_CNT_SHIFT (8U) 13572 /*! HOUR_CNT - Hours Counter Value. 13573 */ 13574 #define RTC_HOURMIN_HOUR_CNT(x) (((uint16_t)(((uint16_t)(x)) << RTC_HOURMIN_HOUR_CNT_SHIFT)) & RTC_HOURMIN_HOUR_CNT_MASK) 13575 /*! @} */ 13576 13577 /*! @name SECONDS - RTC Seconds Counters Register */ 13578 /*! @{ */ 13579 13580 #define RTC_SECONDS_SEC_CNT_MASK (0x3FU) 13581 #define RTC_SECONDS_SEC_CNT_SHIFT (0U) 13582 /*! SEC_CNT - Seconds Counter Value. 13583 */ 13584 #define RTC_SECONDS_SEC_CNT(x) (((uint16_t)(((uint16_t)(x)) << RTC_SECONDS_SEC_CNT_SHIFT)) & RTC_SECONDS_SEC_CNT_MASK) 13585 /*! @} */ 13586 13587 /*! @name ALM_YEARMON - RTC Year and Months Alarm Register */ 13588 /*! @{ */ 13589 13590 #define RTC_ALM_YEARMON_ALM_MON_MASK (0xFU) 13591 #define RTC_ALM_YEARMON_ALM_MON_SHIFT (0U) 13592 /*! ALM_MON - Months Value for Alarm. 13593 */ 13594 #define RTC_ALM_YEARMON_ALM_MON(x) (((uint16_t)(((uint16_t)(x)) << RTC_ALM_YEARMON_ALM_MON_SHIFT)) & RTC_ALM_YEARMON_ALM_MON_MASK) 13595 13596 #define RTC_ALM_YEARMON_ALM_YEAR_MASK (0xFF00U) 13597 #define RTC_ALM_YEARMON_ALM_YEAR_SHIFT (8U) 13598 /*! ALM_YEAR - Year Value for Alarm. 13599 */ 13600 #define RTC_ALM_YEARMON_ALM_YEAR(x) (((uint16_t)(((uint16_t)(x)) << RTC_ALM_YEARMON_ALM_YEAR_SHIFT)) & RTC_ALM_YEARMON_ALM_YEAR_MASK) 13601 /*! @} */ 13602 13603 /*! @name ALM_DAYS - RTC Days Alarm Register */ 13604 /*! @{ */ 13605 13606 #define RTC_ALM_DAYS_ALM_DAY_MASK (0x1FU) 13607 #define RTC_ALM_DAYS_ALM_DAY_SHIFT (0U) 13608 /*! ALM_DAY - Days Value for Alarm. 13609 */ 13610 #define RTC_ALM_DAYS_ALM_DAY(x) (((uint16_t)(((uint16_t)(x)) << RTC_ALM_DAYS_ALM_DAY_SHIFT)) & RTC_ALM_DAYS_ALM_DAY_MASK) 13611 /*! @} */ 13612 13613 /*! @name ALM_HOURMIN - RTC Hours and Minutes Alarm Register */ 13614 /*! @{ */ 13615 13616 #define RTC_ALM_HOURMIN_ALM_MIN_MASK (0x3FU) 13617 #define RTC_ALM_HOURMIN_ALM_MIN_SHIFT (0U) 13618 /*! ALM_MIN - Minutes Value for Alarm. 13619 */ 13620 #define RTC_ALM_HOURMIN_ALM_MIN(x) (((uint16_t)(((uint16_t)(x)) << RTC_ALM_HOURMIN_ALM_MIN_SHIFT)) & RTC_ALM_HOURMIN_ALM_MIN_MASK) 13621 13622 #define RTC_ALM_HOURMIN_ALM_HOUR_MASK (0x1F00U) 13623 #define RTC_ALM_HOURMIN_ALM_HOUR_SHIFT (8U) 13624 /*! ALM_HOUR - Hours Value for Alarm. 13625 */ 13626 #define RTC_ALM_HOURMIN_ALM_HOUR(x) (((uint16_t)(((uint16_t)(x)) << RTC_ALM_HOURMIN_ALM_HOUR_SHIFT)) & RTC_ALM_HOURMIN_ALM_HOUR_MASK) 13627 /*! @} */ 13628 13629 /*! @name ALM_SECONDS - RTC Seconds Alarm Register */ 13630 /*! @{ */ 13631 13632 #define RTC_ALM_SECONDS_ALM_SEC_MASK (0x3FU) 13633 #define RTC_ALM_SECONDS_ALM_SEC_SHIFT (0U) 13634 #define RTC_ALM_SECONDS_ALM_SEC(x) (((uint16_t)(((uint16_t)(x)) << RTC_ALM_SECONDS_ALM_SEC_SHIFT)) & RTC_ALM_SECONDS_ALM_SEC_MASK) 13635 13636 #define RTC_ALM_SECONDS_DEC_SEC_MASK (0x100U) 13637 #define RTC_ALM_SECONDS_DEC_SEC_SHIFT (8U) 13638 /*! DEC_SEC - Decrement Seconds Counter by 1. 13639 */ 13640 #define RTC_ALM_SECONDS_DEC_SEC(x) (((uint16_t)(((uint16_t)(x)) << RTC_ALM_SECONDS_DEC_SEC_SHIFT)) & RTC_ALM_SECONDS_DEC_SEC_MASK) 13641 13642 #define RTC_ALM_SECONDS_INC_SEC_MASK (0x200U) 13643 #define RTC_ALM_SECONDS_INC_SEC_SHIFT (9U) 13644 /*! INC_SEC - Increment Seconds Counter by 1. 13645 */ 13646 #define RTC_ALM_SECONDS_INC_SEC(x) (((uint16_t)(((uint16_t)(x)) << RTC_ALM_SECONDS_INC_SEC_SHIFT)) & RTC_ALM_SECONDS_INC_SEC_MASK) 13647 /*! @} */ 13648 13649 /*! @name CTRL - RTC Control Register */ 13650 /*! @{ */ 13651 13652 #define RTC_CTRL_FINEEN_MASK (0x1U) 13653 #define RTC_CTRL_FINEEN_SHIFT (0U) 13654 /*! FINEEN - Fine compensation enable bit 13655 * 0b1..Fine compensation is enabled. 13656 * 0b0..Fine compensation is disabled 13657 */ 13658 #define RTC_CTRL_FINEEN(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL_FINEEN_SHIFT)) & RTC_CTRL_FINEEN_MASK) 13659 13660 #define RTC_CTRL_COMP_EN_MASK (0x2U) 13661 #define RTC_CTRL_COMP_EN_SHIFT (1U) 13662 #define RTC_CTRL_COMP_EN(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL_COMP_EN_SHIFT)) & RTC_CTRL_COMP_EN_MASK) 13663 13664 #define RTC_CTRL_ALM_MATCH_MASK (0xCU) 13665 #define RTC_CTRL_ALM_MATCH_SHIFT (2U) 13666 /*! ALM_MATCH - Alarm Match bits. 13667 * 0b00..Only Seconds, Minutes, and Hours matched. 13668 * 0b01..Only Seconds, Minutes, Hours, and Days matched. 13669 * 0b10..Only Seconds, Minutes, Hours, Days, and Months matched. 13670 * 0b11..Only Seconds, Minutes, Hours, Days, Months, and Year (offset) matched. 13671 */ 13672 #define RTC_CTRL_ALM_MATCH(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL_ALM_MATCH_SHIFT)) & RTC_CTRL_ALM_MATCH_MASK) 13673 13674 #define RTC_CTRL_TIMER_STB_MASK_MASK (0x10U) 13675 #define RTC_CTRL_TIMER_STB_MASK_SHIFT (4U) 13676 /*! TIMER_STB_MASK - Sampling timer clocks mask 13677 * 0b1..Sampling clocks are gated in standby mode 13678 * 0b0..Sampling clocks are not gated when in standby mode 13679 */ 13680 #define RTC_CTRL_TIMER_STB_MASK(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL_TIMER_STB_MASK_SHIFT)) & RTC_CTRL_TIMER_STB_MASK_MASK) 13681 13682 #define RTC_CTRL_DST_EN_MASK (0x40U) 13683 #define RTC_CTRL_DST_EN_SHIFT (6U) 13684 /*! DST_EN - Daylight Saving Enable. 13685 * 0b0..Disabled. Daylight saving changes are not applied. Daylight saving registers can be modified. 13686 * 0b1..Enabled. Daylight saving changes are applied. 13687 */ 13688 #define RTC_CTRL_DST_EN(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL_DST_EN_SHIFT)) & RTC_CTRL_DST_EN_MASK) 13689 13690 #define RTC_CTRL_SWR_MASK (0x100U) 13691 #define RTC_CTRL_SWR_SHIFT (8U) 13692 /*! SWR - Software Reset bit. 13693 * 0b0..Software Reset cleared. 13694 * 0b1..Software Reset asserted. 13695 */ 13696 #define RTC_CTRL_SWR(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL_SWR_SHIFT)) & RTC_CTRL_SWR_MASK) 13697 13698 #define RTC_CTRL_CLKOUT_MASK (0x6000U) 13699 #define RTC_CTRL_CLKOUT_SHIFT (13U) 13700 /*! CLKOUT - RTC Clock Output Selection. 13701 * 0b00..No Output Clock 13702 * 0b01..Fine 1 Hz Clock 13703 * 0b10..32.768 kHz Clock 13704 * 0b11..Coarse 1 Hz Clock 13705 */ 13706 #define RTC_CTRL_CLKOUT(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL_CLKOUT_SHIFT)) & RTC_CTRL_CLKOUT_MASK) 13707 /*! @} */ 13708 13709 /*! @name STATUS - RTC Status Register */ 13710 /*! @{ */ 13711 13712 #define RTC_STATUS_INVAL_BIT_MASK (0x1U) 13713 #define RTC_STATUS_INVAL_BIT_SHIFT (0U) 13714 /*! INVAL_BIT - Invalidate CPU read/write access bit. 13715 * 0b0..Time /Date Counters can be read/written. Time /Date is valid. 13716 * 0b1..Time /Date Counter values are changing or Time /Date is invalid and cannot be read or written. 13717 */ 13718 #define RTC_STATUS_INVAL_BIT(x) (((uint16_t)(((uint16_t)(x)) << RTC_STATUS_INVAL_BIT_SHIFT)) & RTC_STATUS_INVAL_BIT_MASK) 13719 13720 #define RTC_STATUS_WRITE_PROT_EN_MASK (0x2U) 13721 #define RTC_STATUS_WRITE_PROT_EN_SHIFT (1U) 13722 /*! WRITE_PROT_EN - Write Protect Enable status bit. 13723 * 0b0..Registers are unlocked and can be accessed. 13724 * 0b1..Registers are locked and in read-only mode. 13725 */ 13726 #define RTC_STATUS_WRITE_PROT_EN(x) (((uint16_t)(((uint16_t)(x)) << RTC_STATUS_WRITE_PROT_EN_SHIFT)) & RTC_STATUS_WRITE_PROT_EN_MASK) 13727 13728 #define RTC_STATUS_CPU_LOW_VOLT_MASK (0x4U) 13729 #define RTC_STATUS_CPU_LOW_VOLT_SHIFT (2U) 13730 /*! CPU_LOW_VOLT - CPU Low Voltage Warning status bit. 13731 * 0b0..CPU in Normal Operating Voltage. 13732 * 0b1..CPU Voltage is below Normal Operating Voltage. RTC Registers in read-only mode. 13733 */ 13734 #define RTC_STATUS_CPU_LOW_VOLT(x) (((uint16_t)(((uint16_t)(x)) << RTC_STATUS_CPU_LOW_VOLT_SHIFT)) & RTC_STATUS_CPU_LOW_VOLT_MASK) 13735 13736 #define RTC_STATUS_RST_SRC_MASK (0x8U) 13737 #define RTC_STATUS_RST_SRC_SHIFT (3U) 13738 /*! RST_SRC - Reset Source bit. 13739 * 0b0..Part was reset due to Standby Mode Exit (that is when VDD is powered up and VBAT was not powered down at all). 13740 * 0b1..Part was reset due to Power-On Reset (that is Power On Reset when both VBAT and VDD are powered up). 13741 */ 13742 #define RTC_STATUS_RST_SRC(x) (((uint16_t)(((uint16_t)(x)) << RTC_STATUS_RST_SRC_SHIFT)) & RTC_STATUS_RST_SRC_MASK) 13743 13744 #define RTC_STATUS_CMP_INT_MASK (0x20U) 13745 #define RTC_STATUS_CMP_INT_SHIFT (5U) 13746 /*! CMP_INT - Compensation Interval bit. 13747 */ 13748 #define RTC_STATUS_CMP_INT(x) (((uint16_t)(((uint16_t)(x)) << RTC_STATUS_CMP_INT_SHIFT)) & RTC_STATUS_CMP_INT_MASK) 13749 13750 #define RTC_STATUS_WE_MASK (0xC0U) 13751 #define RTC_STATUS_WE_SHIFT (6U) 13752 /*! WE - Write Enable bits. 13753 * 0b10..Enable Write Protection - Registers are locked. 13754 */ 13755 #define RTC_STATUS_WE(x) (((uint16_t)(((uint16_t)(x)) << RTC_STATUS_WE_SHIFT)) & RTC_STATUS_WE_MASK) 13756 13757 #define RTC_STATUS_BUS_ERR_MASK (0x100U) 13758 #define RTC_STATUS_BUS_ERR_SHIFT (8U) 13759 /*! BUS_ERR - Bus Error bit. 13760 * 0b0..Read and Write accesses are normal. 13761 * 0b1..Read or Write accesses occurred when INVAL_BIT was asserted. 13762 */ 13763 #define RTC_STATUS_BUS_ERR(x) (((uint16_t)(((uint16_t)(x)) << RTC_STATUS_BUS_ERR_SHIFT)) & RTC_STATUS_BUS_ERR_MASK) 13764 13765 #define RTC_STATUS_CMP_DONE_MASK (0x800U) 13766 #define RTC_STATUS_CMP_DONE_SHIFT (11U) 13767 /*! CMP_DONE - Compensation Done bit. 13768 * 0b0..Compensation busy or not enabled. 13769 * 0b1..Compensation completed. 13770 */ 13771 #define RTC_STATUS_CMP_DONE(x) (((uint16_t)(((uint16_t)(x)) << RTC_STATUS_CMP_DONE_SHIFT)) & RTC_STATUS_CMP_DONE_MASK) 13772 /*! @} */ 13773 13774 /*! @name ISR - RTC Interrupt Status Register */ 13775 /*! @{ */ 13776 13777 #define RTC_ISR_TAMPER_IS_MASK (0x1U) 13778 #define RTC_ISR_TAMPER_IS_SHIFT (0U) 13779 /*! TAMPER_IS - Tamper Interrupt Status bit. 13780 * 0b0..Interrupt is de-asserted. 13781 * 0b1..Interrupt is asserted (Default on reset) . 13782 */ 13783 #define RTC_ISR_TAMPER_IS(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_TAMPER_IS_SHIFT)) & RTC_ISR_TAMPER_IS_MASK) 13784 13785 #define RTC_ISR_ALM_IS_MASK (0x4U) 13786 #define RTC_ISR_ALM_IS_SHIFT (2U) 13787 /*! ALM_IS - Alarm Interrupt Status bit. 13788 * 0b0..Interrupt is de-asserted. 13789 * 0b1..Interrupt is asserted. 13790 */ 13791 #define RTC_ISR_ALM_IS(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_ALM_IS_SHIFT)) & RTC_ISR_ALM_IS_MASK) 13792 13793 #define RTC_ISR_DAY_IS_MASK (0x8U) 13794 #define RTC_ISR_DAY_IS_SHIFT (3U) 13795 /*! DAY_IS - Days Interrupt Status bit. 13796 * 0b0..Interrupt is de-asserted. 13797 * 0b1..Interrupt is asserted. 13798 */ 13799 #define RTC_ISR_DAY_IS(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_DAY_IS_SHIFT)) & RTC_ISR_DAY_IS_MASK) 13800 13801 #define RTC_ISR_HOUR_IS_MASK (0x10U) 13802 #define RTC_ISR_HOUR_IS_SHIFT (4U) 13803 /*! HOUR_IS - Hours Interrupt Status bit. 13804 * 0b0..Interrupt is de-asserted. 13805 * 0b1..Interrupt is asserted. 13806 */ 13807 #define RTC_ISR_HOUR_IS(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_HOUR_IS_SHIFT)) & RTC_ISR_HOUR_IS_MASK) 13808 13809 #define RTC_ISR_MIN_IS_MASK (0x20U) 13810 #define RTC_ISR_MIN_IS_SHIFT (5U) 13811 /*! MIN_IS - Minutes Interrupt Status bit. 13812 * 0b0..Interrupt is de-asserted. 13813 * 0b1..Interrupt is asserted. 13814 */ 13815 #define RTC_ISR_MIN_IS(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_MIN_IS_SHIFT)) & RTC_ISR_MIN_IS_MASK) 13816 13817 #define RTC_ISR_IS_1HZ_MASK (0x40U) 13818 #define RTC_ISR_IS_1HZ_SHIFT (6U) 13819 /*! IS_1HZ - 1 Hz Interval Interrupt Status bit. 13820 * 0b0..Interrupt is de-asserted. 13821 * 0b1..Interrupt is asserted. 13822 */ 13823 #define RTC_ISR_IS_1HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_1HZ_SHIFT)) & RTC_ISR_IS_1HZ_MASK) 13824 13825 #define RTC_ISR_IS_2HZ_MASK (0x80U) 13826 #define RTC_ISR_IS_2HZ_SHIFT (7U) 13827 /*! IS_2HZ - 2 Hz Interval Interrupt Status bit. 13828 * 0b0..Interrupt is de-asserted. 13829 * 0b1..Interrupt is asserted. 13830 */ 13831 #define RTC_ISR_IS_2HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_2HZ_SHIFT)) & RTC_ISR_IS_2HZ_MASK) 13832 13833 #define RTC_ISR_IS_4HZ_MASK (0x100U) 13834 #define RTC_ISR_IS_4HZ_SHIFT (8U) 13835 /*! IS_4HZ - 4 Hz Interval Interrupt Status bit. 13836 * 0b0..Interrupt is de-asserted. 13837 * 0b1..Interrupt is asserted. 13838 */ 13839 #define RTC_ISR_IS_4HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_4HZ_SHIFT)) & RTC_ISR_IS_4HZ_MASK) 13840 13841 #define RTC_ISR_IS_8HZ_MASK (0x200U) 13842 #define RTC_ISR_IS_8HZ_SHIFT (9U) 13843 /*! IS_8HZ - 8 Hz Interval Interrupt Status bit. 13844 * 0b0..Interrupt is de-asserted. 13845 * 0b1..Interrupt is asserted. 13846 */ 13847 #define RTC_ISR_IS_8HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_8HZ_SHIFT)) & RTC_ISR_IS_8HZ_MASK) 13848 13849 #define RTC_ISR_IS_16HZ_MASK (0x400U) 13850 #define RTC_ISR_IS_16HZ_SHIFT (10U) 13851 /*! IS_16HZ - 16 Hz Interval Interrupt Status bit. 13852 * 0b0..Interrupt is de-asserted. 13853 * 0b1..Interrupt is asserted. 13854 */ 13855 #define RTC_ISR_IS_16HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_16HZ_SHIFT)) & RTC_ISR_IS_16HZ_MASK) 13856 13857 #define RTC_ISR_IS_32HZ_MASK (0x800U) 13858 #define RTC_ISR_IS_32HZ_SHIFT (11U) 13859 /*! IS_32HZ - 32 Hz Interval Interrupt Status bit. 13860 * 0b0..Interrupt is de-asserted. 13861 * 0b1..Interrupt is asserted. 13862 */ 13863 #define RTC_ISR_IS_32HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_32HZ_SHIFT)) & RTC_ISR_IS_32HZ_MASK) 13864 13865 #define RTC_ISR_IS_64HZ_MASK (0x1000U) 13866 #define RTC_ISR_IS_64HZ_SHIFT (12U) 13867 /*! IS_64HZ - 64 Hz Interval Interrupt Status bit. 13868 * 0b0..Interrupt is de-asserted. 13869 * 0b1..Interrupt is asserted. 13870 */ 13871 #define RTC_ISR_IS_64HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_64HZ_SHIFT)) & RTC_ISR_IS_64HZ_MASK) 13872 13873 #define RTC_ISR_IS_128HZ_MASK (0x2000U) 13874 #define RTC_ISR_IS_128HZ_SHIFT (13U) 13875 /*! IS_128HZ - 128 Hz Interval Interrupt Status bit. 13876 * 0b0..Interrupt is de-asserted. 13877 * 0b1..Interrupt is asserted. 13878 */ 13879 #define RTC_ISR_IS_128HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_128HZ_SHIFT)) & RTC_ISR_IS_128HZ_MASK) 13880 13881 #define RTC_ISR_IS_256HZ_MASK (0x4000U) 13882 #define RTC_ISR_IS_256HZ_SHIFT (14U) 13883 /*! IS_256HZ - 256 Hz Interval Interrupt Status bit. 13884 * 0b0..Interrupt is de-asserted. 13885 * 0b1..Interrupt is asserted. 13886 */ 13887 #define RTC_ISR_IS_256HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_256HZ_SHIFT)) & RTC_ISR_IS_256HZ_MASK) 13888 13889 #define RTC_ISR_IS_512HZ_MASK (0x8000U) 13890 #define RTC_ISR_IS_512HZ_SHIFT (15U) 13891 /*! IS_512HZ - 512 Hz Interval Interrupt Status bit. 13892 * 0b0..Interrupt is de-asserted. 13893 * 0b1..Interrupt is asserted. 13894 */ 13895 #define RTC_ISR_IS_512HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_ISR_IS_512HZ_SHIFT)) & RTC_ISR_IS_512HZ_MASK) 13896 /*! @} */ 13897 13898 /*! @name IER - RTC Interrupt Enable Register */ 13899 /*! @{ */ 13900 13901 #define RTC_IER_TAMPER_IE_MASK (0x1U) 13902 #define RTC_IER_TAMPER_IE_SHIFT (0U) 13903 /*! TAMPER_IE - Tamper Interrupt Enable bit. 13904 * 0b0..Interrupt is disabled. 13905 * 0b1..Interrupt is enabled (Default on reset). 13906 */ 13907 #define RTC_IER_TAMPER_IE(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_TAMPER_IE_SHIFT)) & RTC_IER_TAMPER_IE_MASK) 13908 13909 #define RTC_IER_ALM_IE_MASK (0x4U) 13910 #define RTC_IER_ALM_IE_SHIFT (2U) 13911 /*! ALM_IE - Alarm Interrupt Enable bit. 13912 * 0b0..Interrupt is disabled. 13913 * 0b1..Interrupt is enabled. 13914 */ 13915 #define RTC_IER_ALM_IE(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_ALM_IE_SHIFT)) & RTC_IER_ALM_IE_MASK) 13916 13917 #define RTC_IER_DAY_IE_MASK (0x8U) 13918 #define RTC_IER_DAY_IE_SHIFT (3U) 13919 /*! DAY_IE - Days Interrupt Enable bit. 13920 * 0b0..Interrupt is disabled. 13921 * 0b1..Interrupt is enabled. 13922 */ 13923 #define RTC_IER_DAY_IE(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_DAY_IE_SHIFT)) & RTC_IER_DAY_IE_MASK) 13924 13925 #define RTC_IER_HOUR_IE_MASK (0x10U) 13926 #define RTC_IER_HOUR_IE_SHIFT (4U) 13927 /*! HOUR_IE - Hours Interrupt Enable bit. 13928 * 0b0..Interrupt is disabled. 13929 * 0b1..Interrupt is enabled. 13930 */ 13931 #define RTC_IER_HOUR_IE(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_HOUR_IE_SHIFT)) & RTC_IER_HOUR_IE_MASK) 13932 13933 #define RTC_IER_MIN_IE_MASK (0x20U) 13934 #define RTC_IER_MIN_IE_SHIFT (5U) 13935 /*! MIN_IE - Minutes Interrupt Enable bit. 13936 * 0b0..Interrupt is disabled. 13937 * 0b1..Interrupt is enabled. 13938 */ 13939 #define RTC_IER_MIN_IE(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_MIN_IE_SHIFT)) & RTC_IER_MIN_IE_MASK) 13940 13941 #define RTC_IER_IE_1HZ_MASK (0x40U) 13942 #define RTC_IER_IE_1HZ_SHIFT (6U) 13943 /*! IE_1HZ - 1 Hz Interval Interrupt Enable bit. 13944 * 0b0..Interrupt is disabled. 13945 * 0b1..Interrupt is enabled. 13946 */ 13947 #define RTC_IER_IE_1HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_1HZ_SHIFT)) & RTC_IER_IE_1HZ_MASK) 13948 13949 #define RTC_IER_IE_2HZ_MASK (0x80U) 13950 #define RTC_IER_IE_2HZ_SHIFT (7U) 13951 /*! IE_2HZ - 2 Hz Interval Interrupt Enable bit. 13952 * 0b0..Interrupt is disabled. 13953 * 0b1..Interrupt is enabled. 13954 */ 13955 #define RTC_IER_IE_2HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_2HZ_SHIFT)) & RTC_IER_IE_2HZ_MASK) 13956 13957 #define RTC_IER_IE_4HZ_MASK (0x100U) 13958 #define RTC_IER_IE_4HZ_SHIFT (8U) 13959 /*! IE_4HZ - 4 Hz Interval Interrupt Enable bit. 13960 * 0b0..Interrupt is disabled. 13961 * 0b1..Interrupt is enabled. 13962 */ 13963 #define RTC_IER_IE_4HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_4HZ_SHIFT)) & RTC_IER_IE_4HZ_MASK) 13964 13965 #define RTC_IER_IE_8HZ_MASK (0x200U) 13966 #define RTC_IER_IE_8HZ_SHIFT (9U) 13967 /*! IE_8HZ - 8 Hz Interval Interrupt Enable bit. 13968 * 0b0..Interrupt is disabled. 13969 * 0b1..Interrupt is enabled. 13970 */ 13971 #define RTC_IER_IE_8HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_8HZ_SHIFT)) & RTC_IER_IE_8HZ_MASK) 13972 13973 #define RTC_IER_IE_16HZ_MASK (0x400U) 13974 #define RTC_IER_IE_16HZ_SHIFT (10U) 13975 /*! IE_16HZ - 16 Hz Interval Interrupt Enable bit. 13976 * 0b0..Interrupt is disabled. 13977 * 0b1..Interrupt is enabled. 13978 */ 13979 #define RTC_IER_IE_16HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_16HZ_SHIFT)) & RTC_IER_IE_16HZ_MASK) 13980 13981 #define RTC_IER_IE_32HZ_MASK (0x800U) 13982 #define RTC_IER_IE_32HZ_SHIFT (11U) 13983 /*! IE_32HZ - 32 Hz Interval Interrupt Enable bit. 13984 * 0b0..Interrupt is disabled. 13985 * 0b1..Interrupt is enabled. 13986 */ 13987 #define RTC_IER_IE_32HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_32HZ_SHIFT)) & RTC_IER_IE_32HZ_MASK) 13988 13989 #define RTC_IER_IE_64HZ_MASK (0x1000U) 13990 #define RTC_IER_IE_64HZ_SHIFT (12U) 13991 /*! IE_64HZ - 64 Hz Interval Interrupt Enable bit. 13992 * 0b0..Interrupt is disabled. 13993 * 0b1..Interrupt is enabled. 13994 */ 13995 #define RTC_IER_IE_64HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_64HZ_SHIFT)) & RTC_IER_IE_64HZ_MASK) 13996 13997 #define RTC_IER_IE_128HZ_MASK (0x2000U) 13998 #define RTC_IER_IE_128HZ_SHIFT (13U) 13999 /*! IE_128HZ - 128 Hz Interval Interrupt Enable bit. 14000 * 0b0..Interrupt is disabled. 14001 * 0b1..Interrupt is enabled. 14002 */ 14003 #define RTC_IER_IE_128HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_128HZ_SHIFT)) & RTC_IER_IE_128HZ_MASK) 14004 14005 #define RTC_IER_IE_256HZ_MASK (0x4000U) 14006 #define RTC_IER_IE_256HZ_SHIFT (14U) 14007 /*! IE_256HZ - 256 Hz Interval Interrupt Enable bit. 14008 * 0b0..Interrupt is disabled. 14009 * 0b1..Interrupt is enabled. 14010 */ 14011 #define RTC_IER_IE_256HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_256HZ_SHIFT)) & RTC_IER_IE_256HZ_MASK) 14012 14013 #define RTC_IER_IE_512HZ_MASK (0x8000U) 14014 #define RTC_IER_IE_512HZ_SHIFT (15U) 14015 /*! IE_512HZ - 512 Hz Interval Interrupt Enable bit. 14016 * 0b0..Interrupt is disabled. 14017 * 0b1..Interrupt is enabled. 14018 */ 14019 #define RTC_IER_IE_512HZ(x) (((uint16_t)(((uint16_t)(x)) << RTC_IER_IE_512HZ_SHIFT)) & RTC_IER_IE_512HZ_MASK) 14020 /*! @} */ 14021 14022 /*! @name GP_DATA_REG - RTC General Purpose Data Register */ 14023 /*! @{ */ 14024 14025 #define RTC_GP_DATA_REG_CFG0_MASK (0x1U) 14026 #define RTC_GP_DATA_REG_CFG0_SHIFT (0U) 14027 /*! CFG0 - 32 kHz RTC OSC Control 14028 * 0b0..Enables the oscillator 14029 * 0b1..Disables the oscillator 14030 */ 14031 #define RTC_GP_DATA_REG_CFG0(x) (((uint16_t)(((uint16_t)(x)) << RTC_GP_DATA_REG_CFG0_SHIFT)) & RTC_GP_DATA_REG_CFG0_MASK) 14032 14033 #define RTC_GP_DATA_REG_CFG1_MASK (0x2U) 14034 #define RTC_GP_DATA_REG_CFG1_SHIFT (1U) 14035 /*! CFG1 - Switched capacitor 2 pF enable 14036 * 0b0..Disables capacitor 14037 * 0b1..Enables capacitor 14038 */ 14039 #define RTC_GP_DATA_REG_CFG1(x) (((uint16_t)(((uint16_t)(x)) << RTC_GP_DATA_REG_CFG1_SHIFT)) & RTC_GP_DATA_REG_CFG1_MASK) 14040 14041 #define RTC_GP_DATA_REG_CFG2_MASK (0x4U) 14042 #define RTC_GP_DATA_REG_CFG2_SHIFT (2U) 14043 /*! CFG2 - Switched capacitor 4 pF enable 14044 * 0b0..Disables capacitor 14045 * 0b1..Enables capacitor 14046 */ 14047 #define RTC_GP_DATA_REG_CFG2(x) (((uint16_t)(((uint16_t)(x)) << RTC_GP_DATA_REG_CFG2_SHIFT)) & RTC_GP_DATA_REG_CFG2_MASK) 14048 14049 #define RTC_GP_DATA_REG_CFG3_MASK (0x8U) 14050 #define RTC_GP_DATA_REG_CFG3_SHIFT (3U) 14051 /*! CFG3 - Switched capacitor 8 pF enable 14052 * 0b0..Disables capacitor 14053 * 0b1..Enables capacitor 14054 */ 14055 #define RTC_GP_DATA_REG_CFG3(x) (((uint16_t)(((uint16_t)(x)) << RTC_GP_DATA_REG_CFG3_SHIFT)) & RTC_GP_DATA_REG_CFG3_MASK) 14056 14057 #define RTC_GP_DATA_REG_CFG4_MASK (0x10U) 14058 #define RTC_GP_DATA_REG_CFG4_SHIFT (4U) 14059 /*! CFG4 - Switched capacitor 16 pF enable 14060 * 0b0..Disables capacitor 14061 * 0b1..Enables capacitor 14062 */ 14063 #define RTC_GP_DATA_REG_CFG4(x) (((uint16_t)(((uint16_t)(x)) << RTC_GP_DATA_REG_CFG4_SHIFT)) & RTC_GP_DATA_REG_CFG4_MASK) 14064 14065 #define RTC_GP_DATA_REG_CFG7_MASK (0x80U) 14066 #define RTC_GP_DATA_REG_CFG7_SHIFT (7U) 14067 /*! CFG7 - Boot mode override bit 14068 * 0b0..Boot in RUN 14069 * 0b1..Boot in VLPR 14070 */ 14071 #define RTC_GP_DATA_REG_CFG7(x) (((uint16_t)(((uint16_t)(x)) << RTC_GP_DATA_REG_CFG7_SHIFT)) & RTC_GP_DATA_REG_CFG7_MASK) 14072 /*! @} */ 14073 14074 /*! @name DST_HOUR - RTC Daylight Saving Hour Register */ 14075 /*! @{ */ 14076 14077 #define RTC_DST_HOUR_DST_END_HOUR_MASK (0x1FU) 14078 #define RTC_DST_HOUR_DST_END_HOUR_SHIFT (0U) 14079 /*! DST_END_HOUR - Daylight Saving Time (DST) Hours End Value. 14080 */ 14081 #define RTC_DST_HOUR_DST_END_HOUR(x) (((uint16_t)(((uint16_t)(x)) << RTC_DST_HOUR_DST_END_HOUR_SHIFT)) & RTC_DST_HOUR_DST_END_HOUR_MASK) 14082 14083 #define RTC_DST_HOUR_DST_START_HOUR_MASK (0x1F00U) 14084 #define RTC_DST_HOUR_DST_START_HOUR_SHIFT (8U) 14085 /*! DST_START_HOUR - Daylight Saving Time (DST) Hours Start Value. 14086 */ 14087 #define RTC_DST_HOUR_DST_START_HOUR(x) (((uint16_t)(((uint16_t)(x)) << RTC_DST_HOUR_DST_START_HOUR_SHIFT)) & RTC_DST_HOUR_DST_START_HOUR_MASK) 14088 /*! @} */ 14089 14090 /*! @name DST_MONTH - RTC Daylight Saving Month Register */ 14091 /*! @{ */ 14092 14093 #define RTC_DST_MONTH_DST_END_MONTH_MASK (0xFU) 14094 #define RTC_DST_MONTH_DST_END_MONTH_SHIFT (0U) 14095 /*! DST_END_MONTH - Daylight Saving Time (DST) Month End Value. 14096 */ 14097 #define RTC_DST_MONTH_DST_END_MONTH(x) (((uint16_t)(((uint16_t)(x)) << RTC_DST_MONTH_DST_END_MONTH_SHIFT)) & RTC_DST_MONTH_DST_END_MONTH_MASK) 14098 14099 #define RTC_DST_MONTH_DST_START_MONTH_MASK (0xF00U) 14100 #define RTC_DST_MONTH_DST_START_MONTH_SHIFT (8U) 14101 /*! DST_START_MONTH - Daylight Saving Time (DST) Month Start Value. 14102 */ 14103 #define RTC_DST_MONTH_DST_START_MONTH(x) (((uint16_t)(((uint16_t)(x)) << RTC_DST_MONTH_DST_START_MONTH_SHIFT)) & RTC_DST_MONTH_DST_START_MONTH_MASK) 14104 /*! @} */ 14105 14106 /*! @name DST_DAY - RTC Daylight Saving Day Register */ 14107 /*! @{ */ 14108 14109 #define RTC_DST_DAY_DST_END_DAY_MASK (0x1FU) 14110 #define RTC_DST_DAY_DST_END_DAY_SHIFT (0U) 14111 /*! DST_END_DAY - Daylight Saving Time (DST) Day End Value. 14112 */ 14113 #define RTC_DST_DAY_DST_END_DAY(x) (((uint16_t)(((uint16_t)(x)) << RTC_DST_DAY_DST_END_DAY_SHIFT)) & RTC_DST_DAY_DST_END_DAY_MASK) 14114 14115 #define RTC_DST_DAY_DST_START_DAY_MASK (0x1F00U) 14116 #define RTC_DST_DAY_DST_START_DAY_SHIFT (8U) 14117 /*! DST_START_DAY - Daylight Saving Time (DST) Day Start Value. 14118 */ 14119 #define RTC_DST_DAY_DST_START_DAY(x) (((uint16_t)(((uint16_t)(x)) << RTC_DST_DAY_DST_START_DAY_SHIFT)) & RTC_DST_DAY_DST_START_DAY_MASK) 14120 /*! @} */ 14121 14122 /*! @name COMPEN - RTC Compensation Register */ 14123 /*! @{ */ 14124 14125 #define RTC_COMPEN_COMPEN_VAL_MASK (0xFFFFU) 14126 #define RTC_COMPEN_COMPEN_VAL_SHIFT (0U) 14127 /*! COMPEN_VAL - Compensation Value 14128 */ 14129 #define RTC_COMPEN_COMPEN_VAL(x) (((uint16_t)(((uint16_t)(x)) << RTC_COMPEN_COMPEN_VAL_SHIFT)) & RTC_COMPEN_COMPEN_VAL_MASK) 14130 /*! @} */ 14131 14132 /*! @name TAMPER_SCR - RTC Tamper Status and Control Register */ 14133 /*! @{ */ 14134 14135 #define RTC_TAMPER_SCR_TMPR_EN_MASK (0xFU) 14136 #define RTC_TAMPER_SCR_TMPR_EN_SHIFT (0U) 14137 /*! TMPR_EN - Tamper Control 14138 */ 14139 #define RTC_TAMPER_SCR_TMPR_EN(x) (((uint16_t)(((uint16_t)(x)) << RTC_TAMPER_SCR_TMPR_EN_SHIFT)) & RTC_TAMPER_SCR_TMPR_EN_MASK) 14140 14141 #define RTC_TAMPER_SCR_TMPR_STS_MASK (0xF00U) 14142 #define RTC_TAMPER_SCR_TMPR_STS_SHIFT (8U) 14143 /*! TMPR_STS - Tamper Status Bit 14144 */ 14145 #define RTC_TAMPER_SCR_TMPR_STS(x) (((uint16_t)(((uint16_t)(x)) << RTC_TAMPER_SCR_TMPR_STS_SHIFT)) & RTC_TAMPER_SCR_TMPR_STS_MASK) 14146 /*! @} */ 14147 14148 /*! @name FILTER01_CFG - RTC Tamper 0 1 Filter Configuration Register */ 14149 /*! @{ */ 14150 14151 #define RTC_FILTER01_CFG_FIL_DUR1_MASK (0xFU) 14152 #define RTC_FILTER01_CFG_FIL_DUR1_SHIFT (0U) 14153 /*! FIL_DUR1 - Tamper Detect Bit 1 Filter Duration 14154 * 0b0000..Filtering operation disabled. 14155 */ 14156 #define RTC_FILTER01_CFG_FIL_DUR1(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER01_CFG_FIL_DUR1_SHIFT)) & RTC_FILTER01_CFG_FIL_DUR1_MASK) 14157 14158 #define RTC_FILTER01_CFG_CLK_SEL1_MASK (0x70U) 14159 #define RTC_FILTER01_CFG_CLK_SEL1_SHIFT (4U) 14160 /*! CLK_SEL1 - Tamper Filter 1 Clock Select 14161 * 0b000..32 kHz clock 14162 * 0b001..512 Hz clock 14163 * 0b010..128 Hz clock 14164 * 0b011..64 Hz clock 14165 * 0b100..16 Hz clock 14166 * 0b101..8 Hz clock 14167 * 0b110..4 Hz clock 14168 * 0b111..2 Hz clock 14169 */ 14170 #define RTC_FILTER01_CFG_CLK_SEL1(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER01_CFG_CLK_SEL1_SHIFT)) & RTC_FILTER01_CFG_CLK_SEL1_MASK) 14171 14172 #define RTC_FILTER01_CFG_POL1_MASK (0x80U) 14173 #define RTC_FILTER01_CFG_POL1_SHIFT (7U) 14174 /*! POL1 - Tamper Detect Input Bit 1 Polarity Control 14175 * 0b0..Tamper detect input bit 1 is active high. 14176 * 0b1..Tamper detect input bit 1 is active low. 14177 */ 14178 #define RTC_FILTER01_CFG_POL1(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER01_CFG_POL1_SHIFT)) & RTC_FILTER01_CFG_POL1_MASK) 14179 14180 #define RTC_FILTER01_CFG_FIL_DUR0_MASK (0xF00U) 14181 #define RTC_FILTER01_CFG_FIL_DUR0_SHIFT (8U) 14182 /*! FIL_DUR0 - Tamper Detect Bit 0 Filter Duration 14183 * 0b0000..Filtering operation disabled. 14184 */ 14185 #define RTC_FILTER01_CFG_FIL_DUR0(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER01_CFG_FIL_DUR0_SHIFT)) & RTC_FILTER01_CFG_FIL_DUR0_MASK) 14186 14187 #define RTC_FILTER01_CFG_CLK_SEL0_MASK (0x7000U) 14188 #define RTC_FILTER01_CFG_CLK_SEL0_SHIFT (12U) 14189 /*! CLK_SEL0 - Tamper Filter 0 Clock Select 14190 * 0b000..32 kHz clock 14191 * 0b001..512 Hz clock 14192 * 0b010..128 Hz clock 14193 * 0b011..64 Hz clock 14194 * 0b100..16 Hz clock 14195 * 0b101..8 Hz clock 14196 * 0b110..4 Hz clock 14197 * 0b111..2 Hz clock 14198 */ 14199 #define RTC_FILTER01_CFG_CLK_SEL0(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER01_CFG_CLK_SEL0_SHIFT)) & RTC_FILTER01_CFG_CLK_SEL0_MASK) 14200 14201 #define RTC_FILTER01_CFG_POL0_MASK (0x8000U) 14202 #define RTC_FILTER01_CFG_POL0_SHIFT (15U) 14203 /*! POL0 - Tamper Detect Input Bit 0 Polarity Control 14204 * 0b0..Tamper detect input bit 0 is active high. 14205 * 0b1..Tamper detect input bit 0 is active low. 14206 */ 14207 #define RTC_FILTER01_CFG_POL0(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER01_CFG_POL0_SHIFT)) & RTC_FILTER01_CFG_POL0_MASK) 14208 /*! @} */ 14209 14210 /*! @name FILTER2_CFG - RTC Tamper 2 Filter Configuration Register */ 14211 /*! @{ */ 14212 14213 #define RTC_FILTER2_CFG_FIL_DUR2_MASK (0xF00U) 14214 #define RTC_FILTER2_CFG_FIL_DUR2_SHIFT (8U) 14215 /*! FIL_DUR2 - Tamper Detect Bit 2 Filter Duration 14216 * 0b0000..Filtering operation disabled. 14217 */ 14218 #define RTC_FILTER2_CFG_FIL_DUR2(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER2_CFG_FIL_DUR2_SHIFT)) & RTC_FILTER2_CFG_FIL_DUR2_MASK) 14219 14220 #define RTC_FILTER2_CFG_CLK_SEL2_MASK (0x7000U) 14221 #define RTC_FILTER2_CFG_CLK_SEL2_SHIFT (12U) 14222 /*! CLK_SEL2 - Tamper Filter 2 Clock Select 14223 * 0b000..32 kHz clock 14224 * 0b001..512 Hz clock 14225 * 0b010..128 Hz clock 14226 * 0b011..64 Hz clock 14227 * 0b100..16 Hz clock 14228 * 0b101..8 Hz clock 14229 * 0b110..4 Hz clock 14230 * 0b111..2 Hz clock 14231 */ 14232 #define RTC_FILTER2_CFG_CLK_SEL2(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER2_CFG_CLK_SEL2_SHIFT)) & RTC_FILTER2_CFG_CLK_SEL2_MASK) 14233 14234 #define RTC_FILTER2_CFG_POL2_MASK (0x8000U) 14235 #define RTC_FILTER2_CFG_POL2_SHIFT (15U) 14236 /*! POL2 - Tamper Detect Input Bit 2 Polarity Control 14237 * 0b0..Tamper detect input bit 2 is active high. 14238 * 0b1..Tamper detect input bit 2 is active low. 14239 */ 14240 #define RTC_FILTER2_CFG_POL2(x) (((uint16_t)(((uint16_t)(x)) << RTC_FILTER2_CFG_POL2_SHIFT)) & RTC_FILTER2_CFG_POL2_MASK) 14241 /*! @} */ 14242 14243 /*! @name CTRL2 - RTC Control 2 Register */ 14244 /*! @{ */ 14245 14246 #define RTC_CTRL2_TAMP_CFG_OVER_MASK (0x1U) 14247 #define RTC_CTRL2_TAMP_CFG_OVER_SHIFT (0U) 14248 /*! TAMP_CFG_OVER - Tamper Configuration Over 14249 * 0b0..Tamper filter processing disabled. 14250 * 0b1..Tamper filter processing enabled. To enable the tamper feature, this bitfield should be set. 14251 */ 14252 #define RTC_CTRL2_TAMP_CFG_OVER(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL2_TAMP_CFG_OVER_SHIFT)) & RTC_CTRL2_TAMP_CFG_OVER_MASK) 14253 14254 #define RTC_CTRL2_WAKEUP_STATUS_MASK (0x60U) 14255 #define RTC_CTRL2_WAKEUP_STATUS_SHIFT (5U) 14256 /*! WAKEUP_STATUS - Wakeup Status 14257 * 0b00..The wakeup/hibernation pin is in HiZ mode. 14258 * 0b01..The wakeup/hibernation pin is at logic 0. MCU is in sleep mode. 14259 * 0b10..The wakeup/ hibernation pin is at logic 1. MCU is in sleep mode. 14260 * 0b11..Reserved 14261 */ 14262 #define RTC_CTRL2_WAKEUP_STATUS(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL2_WAKEUP_STATUS_SHIFT)) & RTC_CTRL2_WAKEUP_STATUS_MASK) 14263 14264 #define RTC_CTRL2_WAKEUP_MODE_MASK (0x80U) 14265 #define RTC_CTRL2_WAKEUP_MODE_SHIFT (7U) 14266 /*! WAKEUP_MODE - Wakeup Mode 14267 * 0b0..Tamper pin 0 is used as the tamper pin. 14268 * 0b1..Tamper pin 0 is used as a wakeup/hibernation pin. 14269 */ 14270 #define RTC_CTRL2_WAKEUP_MODE(x) (((uint16_t)(((uint16_t)(x)) << RTC_CTRL2_WAKEUP_MODE_SHIFT)) & RTC_CTRL2_WAKEUP_MODE_MASK) 14271 /*! @} */ 14272 14273 14274 /*! 14275 * @} 14276 */ /* end of group RTC_Register_Masks */ 14277 14278 14279 /* RTC - Peripheral instance base addresses */ 14280 /** Peripheral RTC base address */ 14281 #define RTC_BASE (0x40050000u) 14282 /** Peripheral RTC base pointer */ 14283 #define RTC ((RTC_Type *)RTC_BASE) 14284 /** Array initializer of RTC peripheral base addresses */ 14285 #define RTC_BASE_ADDRS { RTC_BASE } 14286 /** Array initializer of RTC peripheral base pointers */ 14287 #define RTC_BASE_PTRS { RTC } 14288 /** Interrupt vectors for the RTC peripheral type */ 14289 #define RTC_IRQS { RTC_IRQn } 14290 14291 /*! 14292 * @} 14293 */ /* end of group RTC_Peripheral_Access_Layer */ 14294 14295 14296 /* ---------------------------------------------------------------------------- 14297 -- SIM Peripheral Access Layer 14298 ---------------------------------------------------------------------------- */ 14299 14300 /*! 14301 * @addtogroup SIM_Peripheral_Access_Layer SIM Peripheral Access Layer 14302 * @{ 14303 */ 14304 14305 /** SIM - Register Layout Typedef */ 14306 typedef struct { 14307 __IO uint32_t SOPT1; /**< System Options Register 1, offset: 0x0 */ 14308 __IO uint32_t SOPT1_CFG; /**< SOPT1 Configuration Register, offset: 0x4 */ 14309 uint8_t RESERVED_0[4092]; 14310 __IO uint32_t CTRL_REG; /**< System Control Register, offset: 0x1004 */ 14311 uint8_t RESERVED_1[28]; 14312 __I uint32_t SDID; /**< System Device Identification Register, offset: 0x1024 */ 14313 uint8_t RESERVED_2[12]; 14314 __IO uint32_t SCGC4; /**< System Clock Gating Control Register 4, offset: 0x1034 */ 14315 __IO uint32_t SCGC5; /**< System Clock Gating Control Register 5, offset: 0x1038 */ 14316 __IO uint32_t SCGC6; /**< System Clock Gating Control Register 6, offset: 0x103C */ 14317 __IO uint32_t SCGC7; /**< System Clock Gating Control Register 7, offset: 0x1040 */ 14318 __IO uint32_t CLKDIV1; /**< System Clock Divider Register 1, offset: 0x1044 */ 14319 uint8_t RESERVED_3[4]; 14320 __IO uint32_t FCFG1; /**< Flash Configuration Register 1, offset: 0x104C */ 14321 __I uint32_t FCFG2; /**< Flash Configuration Register 2, offset: 0x1050 */ 14322 __I uint32_t UIDH; /**< Unique Identification Register High, offset: 0x1054 */ 14323 __I uint32_t UIDMH; /**< Unique Identification Register Mid-High, offset: 0x1058 */ 14324 __I uint32_t UIDML; /**< Unique Identification Register Mid-Low, offset: 0x105C */ 14325 __I uint32_t UIDL; /**< Unique Identification Register Low, offset: 0x1060 */ 14326 uint8_t RESERVED_4[8]; 14327 __IO uint32_t MISC_CTL; /**< Miscellaneous Control Register, offset: 0x106C */ 14328 } SIM_Type; 14329 14330 /* ---------------------------------------------------------------------------- 14331 -- SIM Register Masks 14332 ---------------------------------------------------------------------------- */ 14333 14334 /*! 14335 * @addtogroup SIM_Register_Masks SIM Register Masks 14336 * @{ 14337 */ 14338 14339 /*! @name SOPT1 - System Options Register 1 */ 14340 /*! @{ */ 14341 14342 #define SIM_SOPT1_SRAMSIZE_MASK (0xF000U) 14343 #define SIM_SOPT1_SRAMSIZE_SHIFT (12U) 14344 /*! SRAMSIZE - Returns the size of the system RAM 14345 * 0b0101..16kB System RAM 14346 */ 14347 #define SIM_SOPT1_SRAMSIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_SRAMSIZE_SHIFT)) & SIM_SOPT1_SRAMSIZE_MASK) 14348 14349 #define SIM_SOPT1_OSC32KSEL_MASK (0xC0000U) 14350 #define SIM_SOPT1_OSC32KSEL_SHIFT (18U) 14351 /*! OSC32KSEL - 32K oscillator clock select 14352 * 0b00..OSC32KCLK 14353 * 0b01..ERCLK32K 14354 * 0b10..MCGIRCLK 14355 * 0b11..LPO 14356 */ 14357 #define SIM_SOPT1_OSC32KSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_OSC32KSEL_SHIFT)) & SIM_SOPT1_OSC32KSEL_MASK) 14358 /*! @} */ 14359 14360 /*! @name SOPT1_CFG - SOPT1 Configuration Register */ 14361 /*! @{ */ 14362 14363 #define SIM_SOPT1_CFG_LPTMR1SEL_MASK (0x3U) 14364 #define SIM_SOPT1_CFG_LPTMR1SEL_SHIFT (0U) 14365 /*! LPTMR1SEL - LP timer Channel1 Select 14366 * 0b00..Pad PTE4 14367 * 0b01..Pad PTF4 14368 * 0b10..Pad PTG1 14369 * 0b11..Reserved 14370 */ 14371 #define SIM_SOPT1_CFG_LPTMR1SEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_CFG_LPTMR1SEL_SHIFT)) & SIM_SOPT1_CFG_LPTMR1SEL_MASK) 14372 14373 #define SIM_SOPT1_CFG_LPTMR2SEL_MASK (0xCU) 14374 #define SIM_SOPT1_CFG_LPTMR2SEL_SHIFT (2U) 14375 /*! LPTMR2SEL - LP timer Channel2 Select 14376 * 0b00..Pad PTD6 14377 * 0b01..Pad PTF3 14378 * 0b10..Pad PTG5 14379 * 0b11..Reserved 14380 */ 14381 #define SIM_SOPT1_CFG_LPTMR2SEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_CFG_LPTMR2SEL_SHIFT)) & SIM_SOPT1_CFG_LPTMR2SEL_MASK) 14382 14383 #define SIM_SOPT1_CFG_LPTMR3SEL_MASK (0x30U) 14384 #define SIM_SOPT1_CFG_LPTMR3SEL_SHIFT (4U) 14385 /*! LPTMR3SEL - LP timer Channel3 Select 14386 * 0b00..Pad PTD5 14387 * 0b01..Pad PTG0 14388 * 0b10..Pad PTG6 14389 * 0b11..Reserved 14390 */ 14391 #define SIM_SOPT1_CFG_LPTMR3SEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_CFG_LPTMR3SEL_SHIFT)) & SIM_SOPT1_CFG_LPTMR3SEL_MASK) 14392 14393 #define SIM_SOPT1_CFG_CMPOLPTMR0SEL_MASK (0x40U) 14394 #define SIM_SOPT1_CFG_CMPOLPTMR0SEL_SHIFT (6U) 14395 /*! CMPOLPTMR0SEL - Comparator output selection for LPTMR channel0 14396 * 0b0..CMP[1] output selected as LPTMR input[0] 14397 * 0b1..CMP[0] output selected as LPTMR input[0] 14398 */ 14399 #define SIM_SOPT1_CFG_CMPOLPTMR0SEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_CFG_CMPOLPTMR0SEL_SHIFT)) & SIM_SOPT1_CFG_CMPOLPTMR0SEL_MASK) 14400 14401 #define SIM_SOPT1_CFG_RAMSBDIS_MASK (0x100U) 14402 #define SIM_SOPT1_CFG_RAMSBDIS_SHIFT (8U) 14403 /*! RAMSBDIS 14404 * 0b0..Source bias of System SRAM enabled during VLPR and VLPW modes. 14405 * 0b1..Source bias of System SRAM disabled during VLPR and VLPW modes. 14406 */ 14407 #define SIM_SOPT1_CFG_RAMSBDIS(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_CFG_RAMSBDIS_SHIFT)) & SIM_SOPT1_CFG_RAMSBDIS_MASK) 14408 14409 #define SIM_SOPT1_CFG_RAMBPEN_MASK (0x200U) 14410 #define SIM_SOPT1_CFG_RAMBPEN_SHIFT (9U) 14411 /*! RAMBPEN - RAM Bitline Precharge Enable 14412 * 0b0..Bitline precharge of system SRAM disabled during VLPR and VLPW modes. 14413 * 0b1..Bitline precharge of system SRAM enabled during VLPR and VLPW modes. 14414 */ 14415 #define SIM_SOPT1_CFG_RAMBPEN(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_CFG_RAMBPEN_SHIFT)) & SIM_SOPT1_CFG_RAMBPEN_MASK) 14416 /*! @} */ 14417 14418 /*! @name CTRL_REG - System Control Register */ 14419 /*! @{ */ 14420 14421 #define SIM_CTRL_REG_NMIDIS_MASK (0x1U) 14422 #define SIM_CTRL_REG_NMIDIS_SHIFT (0U) 14423 /*! NMIDIS - NMI Disable 14424 * 0b0..NMI enabled 14425 * 0b1..NMI disabled 14426 */ 14427 #define SIM_CTRL_REG_NMIDIS(x) (((uint32_t)(((uint32_t)(x)) << SIM_CTRL_REG_NMIDIS_SHIFT)) & SIM_CTRL_REG_NMIDIS_MASK) 14428 14429 #define SIM_CTRL_REG_PLL_VLP_EN_MASK (0x2U) 14430 #define SIM_CTRL_REG_PLL_VLP_EN_SHIFT (1U) 14431 /*! PLL_VLP_EN - PLL VLP Enable 14432 */ 14433 #define SIM_CTRL_REG_PLL_VLP_EN(x) (((uint32_t)(((uint32_t)(x)) << SIM_CTRL_REG_PLL_VLP_EN_SHIFT)) & SIM_CTRL_REG_PLL_VLP_EN_MASK) 14434 14435 #define SIM_CTRL_REG_PTC2_HD_EN_MASK (0x4U) 14436 #define SIM_CTRL_REG_PTC2_HD_EN_SHIFT (2U) 14437 /*! PTC2_HD_EN - PTC2 HighDrive Enable 14438 */ 14439 #define SIM_CTRL_REG_PTC2_HD_EN(x) (((uint32_t)(((uint32_t)(x)) << SIM_CTRL_REG_PTC2_HD_EN_SHIFT)) & SIM_CTRL_REG_PTC2_HD_EN_MASK) 14440 14441 #define SIM_CTRL_REG_SAR_TRG_CLK_SEL_MASK (0x18U) 14442 #define SIM_CTRL_REG_SAR_TRG_CLK_SEL_SHIFT (3U) 14443 /*! SAR_TRG_CLK_SEL - SAR ADC Trigger Clk Select 14444 * 0b00..Bus Clock (During Low Power Modes such as stop, the Bus clock is not available for conversion and should 14445 * not be selected in case a conversion needs to be performed while in stop) 14446 * 0b01..ADC asynchronous Clock 14447 * 0b10..ERCLK32K 14448 * 0b11..OSCCLK 14449 */ 14450 #define SIM_CTRL_REG_SAR_TRG_CLK_SEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_CTRL_REG_SAR_TRG_CLK_SEL_SHIFT)) & SIM_CTRL_REG_SAR_TRG_CLK_SEL_MASK) 14451 14452 #define SIM_CTRL_REG_CLKOUTSEL_MASK (0xE0U) 14453 #define SIM_CTRL_REG_CLKOUTSEL_SHIFT (5U) 14454 /*! CLKOUTSEL - Clock out Select 14455 * 0b000..Disabled 14456 * 0b001..Gated Core Clk 14457 * 0b010..Bus/Flash Clk 14458 * 0b011..LPO clock from PMC 14459 * 0b100..IRC clock from MCG 14460 * 0b101..Muxed 32Khz source (please refer SOPT1[19:18] for possible options) 14461 * 0b110..MHz Oscillator external reference clock 14462 * 0b111..PLL clock output from MCG 14463 */ 14464 #define SIM_CTRL_REG_CLKOUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_CTRL_REG_CLKOUTSEL_SHIFT)) & SIM_CTRL_REG_CLKOUTSEL_MASK) 14465 /*! @} */ 14466 14467 /*! @name SDID - System Device Identification Register */ 14468 /*! @{ */ 14469 14470 #define SIM_SDID_PINID_MASK (0xFU) 14471 #define SIM_SDID_PINID_SHIFT (0U) 14472 /*! PINID - Pincount identification 14473 * 0b0011..44-pin 14474 * 0b0100..Reserved 14475 * 0b0101..64-pin 14476 * 0b0110..Reserved 14477 * 0b0111..Reserved 14478 * 0b1000..100-pin 14479 * 0b1001..Reserved 14480 * 0b1010..Reserved 14481 * 0b1011..Reserved 14482 * 0b1100..Reserved 14483 * 0b1101..Reserved 14484 * 0b1110..Reserved 14485 * 0b1111..Reserved 14486 */ 14487 #define SIM_SDID_PINID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_PINID_SHIFT)) & SIM_SDID_PINID_MASK) 14488 14489 #define SIM_SDID_DIEID_MASK (0xF0U) 14490 #define SIM_SDID_DIEID_SHIFT (4U) 14491 /*! DIEID - Die ID 14492 * 0b0000..First cut 14493 */ 14494 #define SIM_SDID_DIEID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_DIEID_SHIFT)) & SIM_SDID_DIEID_MASK) 14495 14496 #define SIM_SDID_REVID_MASK (0xF00U) 14497 #define SIM_SDID_REVID_SHIFT (8U) 14498 /*! REVID - Revision ID 14499 * 0b0010..Third Cut 14500 */ 14501 #define SIM_SDID_REVID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_REVID_SHIFT)) & SIM_SDID_REVID_MASK) 14502 14503 #define SIM_SDID_SRAMSIZE_MASK (0xF000U) 14504 #define SIM_SDID_SRAMSIZE_SHIFT (12U) 14505 /*! SRAMSIZE - SRAM Size 14506 * 0b0101..16kB SRAM 14507 */ 14508 #define SIM_SDID_SRAMSIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SRAMSIZE_SHIFT)) & SIM_SDID_SRAMSIZE_MASK) 14509 14510 #define SIM_SDID_ATTR_MASK (0xF0000U) 14511 #define SIM_SDID_ATTR_SHIFT (16U) 14512 /*! ATTR - Attribute ID 14513 * 0b0000..M0+ core 14514 */ 14515 #define SIM_SDID_ATTR(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_ATTR_SHIFT)) & SIM_SDID_ATTR_MASK) 14516 14517 #define SIM_SDID_SERIESID_MASK (0xF00000U) 14518 #define SIM_SDID_SERIESID_SHIFT (20U) 14519 /*! SERIESID - Series ID 14520 * 0b0011..Metering Series 14521 */ 14522 #define SIM_SDID_SERIESID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SERIESID_SHIFT)) & SIM_SDID_SERIESID_MASK) 14523 14524 #define SIM_SDID_SUBFAMID_MASK (0xF000000U) 14525 #define SIM_SDID_SUBFAMID_SHIFT (24U) 14526 /*! SUBFAMID - Sub-Family ID 14527 * 0b0010..Device derivatives with 2 AFE enabled (AFE Channels 0 and 2 are enabled) 14528 * 0b0011..Device derivatives with 3 AFE enabled (AFE Channels 0, 1, and 2 are enabled) 14529 * 0b0100..Device derivatives with 4 AFE enabled 14530 */ 14531 #define SIM_SDID_SUBFAMID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SUBFAMID_SHIFT)) & SIM_SDID_SUBFAMID_MASK) 14532 14533 #define SIM_SDID_FAMID_MASK (0xF0000000U) 14534 #define SIM_SDID_FAMID_SHIFT (28U) 14535 /*! FAMID - Metering family ID 14536 * 0b0001..Device derivatives without LCD 14537 * 0b0011..Device derivatives with LCD 14538 */ 14539 #define SIM_SDID_FAMID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_FAMID_SHIFT)) & SIM_SDID_FAMID_MASK) 14540 /*! @} */ 14541 14542 /*! @name SCGC4 - System Clock Gating Control Register 4 */ 14543 /*! @{ */ 14544 14545 #define SIM_SCGC4_EWM_MASK (0x2U) 14546 #define SIM_SCGC4_EWM_SHIFT (1U) 14547 /*! EWM - External Watchdog Monitor Clock gate control 14548 * 0b0..Clock disabled 14549 * 0b1..Clock enabled 14550 */ 14551 #define SIM_SCGC4_EWM(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_EWM_SHIFT)) & SIM_SCGC4_EWM_MASK) 14552 14553 #define SIM_SCGC4_MCG_MASK (0x10U) 14554 #define SIM_SCGC4_MCG_SHIFT (4U) 14555 /*! MCG - MCG clock gate control. 14556 * 0b0..Clock disabled 14557 * 0b1..Clock enabled 14558 */ 14559 #define SIM_SCGC4_MCG(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_MCG_SHIFT)) & SIM_SCGC4_MCG_MASK) 14560 14561 #define SIM_SCGC4_OSC_MASK (0x40U) 14562 #define SIM_SCGC4_OSC_SHIFT (6U) 14563 /*! OSC - Oscillator (Mhz) Clock Gate Control 14564 * 0b0..Clock disabled 14565 * 0b1..Clock enabled 14566 */ 14567 #define SIM_SCGC4_OSC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_OSC_SHIFT)) & SIM_SCGC4_OSC_MASK) 14568 14569 #define SIM_SCGC4_I2C0_MASK (0x80U) 14570 #define SIM_SCGC4_I2C0_SHIFT (7U) 14571 /*! I2C0 - I2C0 Clock Gate Control 14572 * 0b0..Clock disabled 14573 * 0b1..Clock enabled 14574 */ 14575 #define SIM_SCGC4_I2C0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_I2C0_SHIFT)) & SIM_SCGC4_I2C0_MASK) 14576 14577 #define SIM_SCGC4_I2C1_MASK (0x100U) 14578 #define SIM_SCGC4_I2C1_SHIFT (8U) 14579 /*! I2C1 - I2C1 Clock Gate Control 14580 * 0b0..Clock disabled 14581 * 0b1..Clock enabled 14582 */ 14583 #define SIM_SCGC4_I2C1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_I2C1_SHIFT)) & SIM_SCGC4_I2C1_MASK) 14584 14585 #define SIM_SCGC4_UART0_MASK (0x400U) 14586 #define SIM_SCGC4_UART0_SHIFT (10U) 14587 /*! UART0 - UART0 Clock Gate Control 14588 * 0b0..Clock disabled 14589 * 0b1..Clock enabled 14590 */ 14591 #define SIM_SCGC4_UART0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART0_SHIFT)) & SIM_SCGC4_UART0_MASK) 14592 14593 #define SIM_SCGC4_UART1_MASK (0x800U) 14594 #define SIM_SCGC4_UART1_SHIFT (11U) 14595 /*! UART1 - UART1 Clock Gate Control 14596 * 0b0..Clock disabled 14597 * 0b1..Clock enabled 14598 */ 14599 #define SIM_SCGC4_UART1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART1_SHIFT)) & SIM_SCGC4_UART1_MASK) 14600 14601 #define SIM_SCGC4_UART2_MASK (0x1000U) 14602 #define SIM_SCGC4_UART2_SHIFT (12U) 14603 /*! UART2 - UART2 Clock Gate Control 14604 * 0b0..Clock disabled 14605 * 0b1..Clock enabled 14606 */ 14607 #define SIM_SCGC4_UART2(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART2_SHIFT)) & SIM_SCGC4_UART2_MASK) 14608 14609 #define SIM_SCGC4_UART3_MASK (0x2000U) 14610 #define SIM_SCGC4_UART3_SHIFT (13U) 14611 /*! UART3 - UART3 Clock Gate Control 14612 * 0b0..Clock disabled 14613 * 0b1..Clock enabled 14614 */ 14615 #define SIM_SCGC4_UART3(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART3_SHIFT)) & SIM_SCGC4_UART3_MASK) 14616 14617 #define SIM_SCGC4_VREF_MASK (0x8000U) 14618 #define SIM_SCGC4_VREF_SHIFT (15U) 14619 /*! VREF - VREF Clock Gate Control 14620 * 0b0..Clock disabled 14621 * 0b1..Clock enabled 14622 */ 14623 #define SIM_SCGC4_VREF(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_VREF_SHIFT)) & SIM_SCGC4_VREF_MASK) 14624 14625 #define SIM_SCGC4_CMP0_MASK (0x40000U) 14626 #define SIM_SCGC4_CMP0_SHIFT (18U) 14627 /*! CMP0 - High Speed Comparator0 Clock Gate Control. 14628 * 0b0..Clock disabled 14629 * 0b1..Clock enabled 14630 */ 14631 #define SIM_SCGC4_CMP0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_CMP0_SHIFT)) & SIM_SCGC4_CMP0_MASK) 14632 14633 #define SIM_SCGC4_CMP1_MASK (0x80000U) 14634 #define SIM_SCGC4_CMP1_SHIFT (19U) 14635 /*! CMP1 - High Speed Comparator1 Clock Gate Control. 14636 * 0b0..Clock disabled 14637 * 0b1..Clock enabled 14638 */ 14639 #define SIM_SCGC4_CMP1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_CMP1_SHIFT)) & SIM_SCGC4_CMP1_MASK) 14640 14641 #define SIM_SCGC4_SPI0_MASK (0x200000U) 14642 #define SIM_SCGC4_SPI0_SHIFT (21U) 14643 /*! SPI0 - SPI0 Clock Gate Control 14644 * 0b0..Clock disabled 14645 * 0b1..Clock enabled 14646 */ 14647 #define SIM_SCGC4_SPI0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_SPI0_SHIFT)) & SIM_SCGC4_SPI0_MASK) 14648 14649 #define SIM_SCGC4_SPI1_MASK (0x400000U) 14650 #define SIM_SCGC4_SPI1_SHIFT (22U) 14651 /*! SPI1 - SPI1 Clock Gate Control 14652 * 0b0..Clock disabled 14653 * 0b1..Clock enabled 14654 */ 14655 #define SIM_SCGC4_SPI1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_SPI1_SHIFT)) & SIM_SCGC4_SPI1_MASK) 14656 /*! @} */ 14657 14658 /*! @name SCGC5 - System Clock Gating Control Register 5 */ 14659 /*! @{ */ 14660 14661 #define SIM_SCGC5_SLCD_MASK (0x8U) 14662 #define SIM_SCGC5_SLCD_SHIFT (3U) 14663 /*! SLCD - Segmented LCD Clock Gate Control 14664 * 0b0..Clock disabled 14665 * 0b1..Clock enabled 14666 */ 14667 #define SIM_SCGC5_SLCD(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_SLCD_SHIFT)) & SIM_SCGC5_SLCD_MASK) 14668 14669 #define SIM_SCGC5_PORTA_MASK (0x40U) 14670 #define SIM_SCGC5_PORTA_SHIFT (6U) 14671 /*! PORTA - PCTLA Clock Gate Control 14672 * 0b0..Clock disabled 14673 * 0b1..Clock enabled 14674 */ 14675 #define SIM_SCGC5_PORTA(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTA_SHIFT)) & SIM_SCGC5_PORTA_MASK) 14676 14677 #define SIM_SCGC5_PORTB_MASK (0x80U) 14678 #define SIM_SCGC5_PORTB_SHIFT (7U) 14679 /*! PORTB - PCTLB Clock Gate Control 14680 * 0b0..Clock disabled 14681 * 0b1..Clock enabled 14682 */ 14683 #define SIM_SCGC5_PORTB(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTB_SHIFT)) & SIM_SCGC5_PORTB_MASK) 14684 14685 #define SIM_SCGC5_PORTC_MASK (0x100U) 14686 #define SIM_SCGC5_PORTC_SHIFT (8U) 14687 /*! PORTC - PCTLC Clock Gate Control 14688 * 0b0..Clock disabled 14689 * 0b1..Clock enabled 14690 */ 14691 #define SIM_SCGC5_PORTC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTC_SHIFT)) & SIM_SCGC5_PORTC_MASK) 14692 14693 #define SIM_SCGC5_PORTD_MASK (0x200U) 14694 #define SIM_SCGC5_PORTD_SHIFT (9U) 14695 /*! PORTD - PCTLD Clock Gate Control 14696 * 0b0..Clock disabled 14697 * 0b1..Clock enabled 14698 */ 14699 #define SIM_SCGC5_PORTD(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTD_SHIFT)) & SIM_SCGC5_PORTD_MASK) 14700 14701 #define SIM_SCGC5_PORTE_MASK (0x400U) 14702 #define SIM_SCGC5_PORTE_SHIFT (10U) 14703 /*! PORTE - PCTLE Clock Gate Control 14704 * 0b0..Clock disabled 14705 * 0b1..Clock enabled 14706 */ 14707 #define SIM_SCGC5_PORTE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTE_SHIFT)) & SIM_SCGC5_PORTE_MASK) 14708 14709 #define SIM_SCGC5_PORTF_MASK (0x800U) 14710 #define SIM_SCGC5_PORTF_SHIFT (11U) 14711 /*! PORTF - PCTLF Clock Gate Control 14712 * 0b0..Clock disabled 14713 * 0b1..Clock enabled 14714 */ 14715 #define SIM_SCGC5_PORTF(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTF_SHIFT)) & SIM_SCGC5_PORTF_MASK) 14716 14717 #define SIM_SCGC5_PORTG_MASK (0x1000U) 14718 #define SIM_SCGC5_PORTG_SHIFT (12U) 14719 /*! PORTG - PCTLG Clock Gate Control 14720 * 0b0..Clock disabled 14721 * 0b1..Clock enabled 14722 */ 14723 #define SIM_SCGC5_PORTG(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTG_SHIFT)) & SIM_SCGC5_PORTG_MASK) 14724 14725 #define SIM_SCGC5_PORTH_MASK (0x2000U) 14726 #define SIM_SCGC5_PORTH_SHIFT (13U) 14727 /*! PORTH - PCTLH Clock Gate Control 14728 * 0b0..Clock disabled 14729 * 0b1..Clock enabled 14730 */ 14731 #define SIM_SCGC5_PORTH(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTH_SHIFT)) & SIM_SCGC5_PORTH_MASK) 14732 14733 #define SIM_SCGC5_PORTI_MASK (0x4000U) 14734 #define SIM_SCGC5_PORTI_SHIFT (14U) 14735 /*! PORTI - PCTLI Clock Gate Control 14736 * 0b0..Clock disabled 14737 * 0b1..Clock enabled 14738 */ 14739 #define SIM_SCGC5_PORTI(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTI_SHIFT)) & SIM_SCGC5_PORTI_MASK) 14740 14741 #define SIM_SCGC5_IRTC_MASK (0x10000U) 14742 #define SIM_SCGC5_IRTC_SHIFT (16U) 14743 /*! IRTC - IRTC Clock Gate Control 14744 * 0b0..Clock disabled 14745 * 0b1..Clock enabled 14746 */ 14747 #define SIM_SCGC5_IRTC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_IRTC_SHIFT)) & SIM_SCGC5_IRTC_MASK) 14748 14749 #define SIM_SCGC5_IRTCREGFILE_MASK (0x20000U) 14750 #define SIM_SCGC5_IRTCREGFILE_SHIFT (17U) 14751 /*! IRTCREGFILE - IRTC_REG_FILE Clock Gate Control 14752 * 0b0..Clock disabled 14753 * 0b1..Clock enabled 14754 */ 14755 #define SIM_SCGC5_IRTCREGFILE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_IRTCREGFILE_SHIFT)) & SIM_SCGC5_IRTCREGFILE_MASK) 14756 14757 #define SIM_SCGC5_WDOG_MASK (0x80000U) 14758 #define SIM_SCGC5_WDOG_SHIFT (19U) 14759 /*! WDOG - Watchdog Clock Gate Control 14760 * 0b0..Clock disabled 14761 * 0b1..Clock enabled 14762 */ 14763 #define SIM_SCGC5_WDOG(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_WDOG_SHIFT)) & SIM_SCGC5_WDOG_MASK) 14764 14765 #define SIM_SCGC5_XBAR_MASK (0x200000U) 14766 #define SIM_SCGC5_XBAR_SHIFT (21U) 14767 /*! XBAR - Peripheral Crossbar Clock Gate Control 14768 * 0b0..Clock disabled 14769 * 0b1..Clock enabled 14770 */ 14771 #define SIM_SCGC5_XBAR(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_XBAR_SHIFT)) & SIM_SCGC5_XBAR_MASK) 14772 14773 #define SIM_SCGC5_TMR0_MASK (0x800000U) 14774 #define SIM_SCGC5_TMR0_SHIFT (23U) 14775 /*! TMR0 - Quadtimer0 Clock Gate Control 14776 * 0b0..Clock disabled 14777 * 0b1..Clock enabled 14778 */ 14779 #define SIM_SCGC5_TMR0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_TMR0_SHIFT)) & SIM_SCGC5_TMR0_MASK) 14780 14781 #define SIM_SCGC5_TMR1_MASK (0x1000000U) 14782 #define SIM_SCGC5_TMR1_SHIFT (24U) 14783 /*! TMR1 - Quadtimer1 Clock Gate Control 14784 * 0b0..Clock disabled 14785 * 0b1..Clock enabled 14786 */ 14787 #define SIM_SCGC5_TMR1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_TMR1_SHIFT)) & SIM_SCGC5_TMR1_MASK) 14788 14789 #define SIM_SCGC5_TMR2_MASK (0x2000000U) 14790 #define SIM_SCGC5_TMR2_SHIFT (25U) 14791 /*! TMR2 - Quadtimer2 Clock Gate Control 14792 * 0b0..Clock disabled 14793 * 0b1..Clock enabled 14794 */ 14795 #define SIM_SCGC5_TMR2(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_TMR2_SHIFT)) & SIM_SCGC5_TMR2_MASK) 14796 14797 #define SIM_SCGC5_TMR3_MASK (0x4000000U) 14798 #define SIM_SCGC5_TMR3_SHIFT (26U) 14799 /*! TMR3 - Quadtimer3 Clock Gate Control 14800 * 0b0..Clock disabled 14801 * 0b1..Clock enabled 14802 */ 14803 #define SIM_SCGC5_TMR3(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_TMR3_SHIFT)) & SIM_SCGC5_TMR3_MASK) 14804 /*! @} */ 14805 14806 /*! @name SCGC6 - System Clock Gating Control Register 6 */ 14807 /*! @{ */ 14808 14809 #define SIM_SCGC6_FTFA_MASK (0x1U) 14810 #define SIM_SCGC6_FTFA_SHIFT (0U) 14811 /*! FTFA - FTFA Clock Gate Control 14812 * 0b0..Clock disabled 14813 * 0b1..Clock enabled 14814 */ 14815 #define SIM_SCGC6_FTFA(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_FTFA_SHIFT)) & SIM_SCGC6_FTFA_MASK) 14816 14817 #define SIM_SCGC6_DMAMUX0_MASK (0x2U) 14818 #define SIM_SCGC6_DMAMUX0_SHIFT (1U) 14819 /*! DMAMUX0 - DMA MUX0 Clock Gate Control 14820 * 0b0..Clock disabled 14821 * 0b1..Clock enabled 14822 */ 14823 #define SIM_SCGC6_DMAMUX0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_DMAMUX0_SHIFT)) & SIM_SCGC6_DMAMUX0_MASK) 14824 14825 #define SIM_SCGC6_DMAMUX1_MASK (0x4U) 14826 #define SIM_SCGC6_DMAMUX1_SHIFT (2U) 14827 /*! DMAMUX1 - DMA MUX1 Clock Gate Control 14828 * 0b0..Clock disabled 14829 * 0b1..Clock enabled 14830 */ 14831 #define SIM_SCGC6_DMAMUX1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_DMAMUX1_SHIFT)) & SIM_SCGC6_DMAMUX1_MASK) 14832 14833 #define SIM_SCGC6_DMAMUX2_MASK (0x8U) 14834 #define SIM_SCGC6_DMAMUX2_SHIFT (3U) 14835 /*! DMAMUX2 - DMA MUX2 Clock Gate Control 14836 * 0b0..Clock disabled 14837 * 0b1..Clock enabled 14838 */ 14839 #define SIM_SCGC6_DMAMUX2(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_DMAMUX2_SHIFT)) & SIM_SCGC6_DMAMUX2_MASK) 14840 14841 #define SIM_SCGC6_DMAMUX3_MASK (0x10U) 14842 #define SIM_SCGC6_DMAMUX3_SHIFT (4U) 14843 /*! DMAMUX3 - DMA MUX3 Clock Gate Control 14844 * 0b0..Clock disabled 14845 * 0b1..Clock enabled 14846 */ 14847 #define SIM_SCGC6_DMAMUX3(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_DMAMUX3_SHIFT)) & SIM_SCGC6_DMAMUX3_MASK) 14848 14849 #define SIM_SCGC6_RNGA_MASK (0x200U) 14850 #define SIM_SCGC6_RNGA_SHIFT (9U) 14851 /*! RNGA - RNGA Clock Gate Control 14852 * 0b0..Clock disabled 14853 * 0b1..Clock enabled 14854 */ 14855 #define SIM_SCGC6_RNGA(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_RNGA_SHIFT)) & SIM_SCGC6_RNGA_MASK) 14856 14857 #define SIM_SCGC6_ADC_MASK (0x800U) 14858 #define SIM_SCGC6_ADC_SHIFT (11U) 14859 /*! ADC - SAR ADC Clock Gate Control 14860 * 0b0..Clock disabled 14861 * 0b1..Clock enabled 14862 */ 14863 #define SIM_SCGC6_ADC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_ADC_SHIFT)) & SIM_SCGC6_ADC_MASK) 14864 14865 #define SIM_SCGC6_PIT0_MASK (0x2000U) 14866 #define SIM_SCGC6_PIT0_SHIFT (13U) 14867 /*! PIT0 - PIT0 Clock Gate Control 14868 * 0b0..Clock disabled 14869 * 0b1..Clock enabled 14870 */ 14871 #define SIM_SCGC6_PIT0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_PIT0_SHIFT)) & SIM_SCGC6_PIT0_MASK) 14872 14873 #define SIM_SCGC6_PIT1_MASK (0x4000U) 14874 #define SIM_SCGC6_PIT1_SHIFT (14U) 14875 /*! PIT1 - PIT1 Clock Gate Control 14876 * 0b0..Clock disabled 14877 * 0b1..Clock enabled 14878 */ 14879 #define SIM_SCGC6_PIT1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_PIT1_SHIFT)) & SIM_SCGC6_PIT1_MASK) 14880 14881 #define SIM_SCGC6_AFE_MASK (0x10000U) 14882 #define SIM_SCGC6_AFE_SHIFT (16U) 14883 /*! AFE - AFE Clock Gate Control 14884 * 0b0..Clock disabled 14885 * 0b1..Clock enabled 14886 */ 14887 #define SIM_SCGC6_AFE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_AFE_SHIFT)) & SIM_SCGC6_AFE_MASK) 14888 14889 #define SIM_SCGC6_CRC_MASK (0x100000U) 14890 #define SIM_SCGC6_CRC_SHIFT (20U) 14891 /*! CRC - Programmable CRC Clock Gate Control 14892 * 0b0..Clock disabled 14893 * 0b1..Clock enabled 14894 */ 14895 #define SIM_SCGC6_CRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_CRC_SHIFT)) & SIM_SCGC6_CRC_MASK) 14896 14897 #define SIM_SCGC6_LPTMR_MASK (0x10000000U) 14898 #define SIM_SCGC6_LPTMR_SHIFT (28U) 14899 /*! LPTMR - LPTMR Clock Gate Control 14900 * 0b0..Clock disabled 14901 * 0b1..Clock enabled 14902 */ 14903 #define SIM_SCGC6_LPTMR(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_LPTMR_SHIFT)) & SIM_SCGC6_LPTMR_MASK) 14904 14905 #define SIM_SCGC6_SIM_LP_MASK (0x40000000U) 14906 #define SIM_SCGC6_SIM_LP_SHIFT (30U) 14907 /*! SIM_LP - SIM_LP Clock Gate Control 14908 * 0b1..Clock is enabled 14909 * 0b0..Clock is disabled 14910 */ 14911 #define SIM_SCGC6_SIM_LP(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_SIM_LP_SHIFT)) & SIM_SCGC6_SIM_LP_MASK) 14912 14913 #define SIM_SCGC6_SIM_HP_MASK (0x80000000U) 14914 #define SIM_SCGC6_SIM_HP_SHIFT (31U) 14915 /*! SIM_HP - SIM_HP Clock Gate Control 14916 * 0b1..Clock is always enabled to SIM 14917 */ 14918 #define SIM_SCGC6_SIM_HP(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_SIM_HP_SHIFT)) & SIM_SCGC6_SIM_HP_MASK) 14919 /*! @} */ 14920 14921 /*! @name SCGC7 - System Clock Gating Control Register 7 */ 14922 /*! @{ */ 14923 14924 #define SIM_SCGC7_MPU_MASK (0x1U) 14925 #define SIM_SCGC7_MPU_SHIFT (0U) 14926 /*! MPU - MPU Clock Gate control. 14927 * 0b0..Clock disabled 14928 * 0b1..Clock enabled 14929 */ 14930 #define SIM_SCGC7_MPU(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC7_MPU_SHIFT)) & SIM_SCGC7_MPU_MASK) 14931 14932 #define SIM_SCGC7_DMA_MASK (0x2U) 14933 #define SIM_SCGC7_DMA_SHIFT (1U) 14934 /*! DMA - DMA Clock Gate control. 14935 * 0b0..Clock disabled 14936 * 0b1..Clock enabled 14937 */ 14938 #define SIM_SCGC7_DMA(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC7_DMA_SHIFT)) & SIM_SCGC7_DMA_MASK) 14939 /*! @} */ 14940 14941 /*! @name CLKDIV1 - System Clock Divider Register 1 */ 14942 /*! @{ */ 14943 14944 #define SIM_CLKDIV1_SYSCLKMODE_MASK (0x8000000U) 14945 #define SIM_CLKDIV1_SYSCLKMODE_SHIFT (27U) 14946 /*! SYSCLKMODE - System Clock Mode 14947 * 0b0..1:1:1 14948 * 0b1..2:1:1 14949 */ 14950 #define SIM_CLKDIV1_SYSCLKMODE(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_SYSCLKMODE_SHIFT)) & SIM_CLKDIV1_SYSCLKMODE_MASK) 14951 14952 #define SIM_CLKDIV1_SYSDIV_MASK (0xF0000000U) 14953 #define SIM_CLKDIV1_SYSDIV_SHIFT (28U) 14954 /*! SYSDIV - System Clock divider 14955 * 0b0000..Divide by 1 14956 * 0b0001..Divide by 2 14957 * 0b0010..Divide by 3 14958 * 0b0011..Divide by 4 and so on..... If FOPT[0] is 0, the divider is set to div-by-8 after system reset is 14959 * deasserted (after completion of system initialization sequence) 14960 */ 14961 #define SIM_CLKDIV1_SYSDIV(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_SYSDIV_SHIFT)) & SIM_CLKDIV1_SYSDIV_MASK) 14962 /*! @} */ 14963 14964 /*! @name FCFG1 - Flash Configuration Register 1 */ 14965 /*! @{ */ 14966 14967 #define SIM_FCFG1_FLASHDIS_MASK (0x1U) 14968 #define SIM_FCFG1_FLASHDIS_SHIFT (0U) 14969 /*! FLASHDIS - Flash Disable 14970 * 0b0..Flash is enabled 14971 * 0b1..Flash is disabled 14972 */ 14973 #define SIM_FCFG1_FLASHDIS(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_FLASHDIS_SHIFT)) & SIM_FCFG1_FLASHDIS_MASK) 14974 14975 #define SIM_FCFG1_FLASHDOZE_MASK (0x2U) 14976 #define SIM_FCFG1_FLASHDOZE_SHIFT (1U) 14977 /*! FLASHDOZE - Flash Doze 14978 * 0b0..Flash remains enabled during Wait mode 14979 * 0b1..Flash is disabled for the duration of Wait mode 14980 */ 14981 #define SIM_FCFG1_FLASHDOZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_FLASHDOZE_SHIFT)) & SIM_FCFG1_FLASHDOZE_MASK) 14982 14983 #define SIM_FCFG1_PFSIZE_MASK (0xF000000U) 14984 #define SIM_FCFG1_PFSIZE_SHIFT (24U) 14985 /*! PFSIZE - Program flash size 14986 * 0b0000..Reserved 14987 * 0b0001..Reserved 14988 * 0b0011..Reserved 14989 * 0b0100..Reserved 14990 * 0b0101..64 KB of program flash memory, 2 KB protection region 14991 * 0b0110..Reserved 14992 * 0b0111..128 KB of program flash memory, 4 KB protection region 14993 * 0b1000..Reserved 14994 * 0b1001..Reserved 14995 * 0b1111..(Default) 14996 */ 14997 #define SIM_FCFG1_PFSIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_PFSIZE_SHIFT)) & SIM_FCFG1_PFSIZE_MASK) 14998 /*! @} */ 14999 15000 /*! @name FCFG2 - Flash Configuration Register 2 */ 15001 /*! @{ */ 15002 15003 #define SIM_FCFG2_MAXADDR_MASK (0x7F000000U) 15004 #define SIM_FCFG2_MAXADDR_SHIFT (24U) 15005 /*! MAXADDR - Max address block 15006 */ 15007 #define SIM_FCFG2_MAXADDR(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_MAXADDR_SHIFT)) & SIM_FCFG2_MAXADDR_MASK) 15008 /*! @} */ 15009 15010 /*! @name UIDH - Unique Identification Register High */ 15011 /*! @{ */ 15012 15013 #define SIM_UIDH_UID127_96_MASK (0xFFFFFFFFU) 15014 #define SIM_UIDH_UID127_96_SHIFT (0U) 15015 /*! UID127_96 - Unique Identification UID[127:96] 15016 */ 15017 #define SIM_UIDH_UID127_96(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDH_UID127_96_SHIFT)) & SIM_UIDH_UID127_96_MASK) 15018 /*! @} */ 15019 15020 /*! @name UIDMH - Unique Identification Register Mid-High */ 15021 /*! @{ */ 15022 15023 #define SIM_UIDMH_UID95_64_MASK (0xFFFFFFFFU) 15024 #define SIM_UIDMH_UID95_64_SHIFT (0U) 15025 /*! UID95_64 - Unique Identification UID[95:64] 15026 */ 15027 #define SIM_UIDMH_UID95_64(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDMH_UID95_64_SHIFT)) & SIM_UIDMH_UID95_64_MASK) 15028 /*! @} */ 15029 15030 /*! @name UIDML - Unique Identification Register Mid-Low */ 15031 /*! @{ */ 15032 15033 #define SIM_UIDML_UID63_32_MASK (0xFFFFFFFFU) 15034 #define SIM_UIDML_UID63_32_SHIFT (0U) 15035 /*! UID63_32 - Unique Identification UID[63:32] 15036 */ 15037 #define SIM_UIDML_UID63_32(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDML_UID63_32_SHIFT)) & SIM_UIDML_UID63_32_MASK) 15038 /*! @} */ 15039 15040 /*! @name UIDL - Unique Identification Register Low */ 15041 /*! @{ */ 15042 15043 #define SIM_UIDL_UID31_0_MASK (0xFFFFFFFFU) 15044 #define SIM_UIDL_UID31_0_SHIFT (0U) 15045 /*! UID31_0 - Unique Identification UID[31:0] 15046 */ 15047 #define SIM_UIDL_UID31_0(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDL_UID31_0_SHIFT)) & SIM_UIDL_UID31_0_MASK) 15048 /*! @} */ 15049 15050 /*! @name MISC_CTL - Miscellaneous Control Register */ 15051 /*! @{ */ 15052 15053 #define SIM_MISC_CTL_XBARAFEMODOUTSEL_MASK (0x3U) 15054 #define SIM_MISC_CTL_XBARAFEMODOUTSEL_SHIFT (0U) 15055 /*! XBARAFEMODOUTSEL - XBAR AFE Modulator Output Select 15056 * 0b00..Sigma Delta Modulator 0 data output 15057 * 0b01..Sigma Delta Modulator 1 data output 15058 * 0b10..Sigma Delta Modulator 2 data output 15059 * 0b11..Sigma Delta Modulator 3 data output 15060 */ 15061 #define SIM_MISC_CTL_XBARAFEMODOUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_XBARAFEMODOUTSEL_SHIFT)) & SIM_MISC_CTL_XBARAFEMODOUTSEL_MASK) 15062 15063 #define SIM_MISC_CTL_DMADONESEL_MASK (0xCU) 15064 #define SIM_MISC_CTL_DMADONESEL_SHIFT (2U) 15065 /*! DMADONESEL - DMA Done select 15066 * 0b00..DMA0 15067 * 0b01..DMA1 15068 * 0b10..DMA2 15069 * 0b11..DMA3 15070 */ 15071 #define SIM_MISC_CTL_DMADONESEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_DMADONESEL_SHIFT)) & SIM_MISC_CTL_DMADONESEL_MASK) 15072 15073 #define SIM_MISC_CTL_AFECLKSEL_MASK (0x30U) 15074 #define SIM_MISC_CTL_AFECLKSEL_SHIFT (4U) 15075 /*! AFECLKSEL - AFE Clock Source Select 15076 * 0b00..MCG PLL Clock selected 15077 * 0b01..MCG FLL Clock selected 15078 * 0b10..OSC Clock selected 15079 * 0b11..Disabled 15080 */ 15081 #define SIM_MISC_CTL_AFECLKSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_AFECLKSEL_SHIFT)) & SIM_MISC_CTL_AFECLKSEL_MASK) 15082 15083 #define SIM_MISC_CTL_AFECLKPADDIR_MASK (0x40U) 15084 #define SIM_MISC_CTL_AFECLKPADDIR_SHIFT (6U) 15085 /*! AFECLKPADDIR - AFE Clock Pad Direction 15086 * 0b0..AFE CLK PAD is input 15087 * 0b1..AFE CLK PAD is output 15088 */ 15089 #define SIM_MISC_CTL_AFECLKPADDIR(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_AFECLKPADDIR_SHIFT)) & SIM_MISC_CTL_AFECLKPADDIR_MASK) 15090 15091 #define SIM_MISC_CTL_UARTMODTYPE_MASK (0x80U) 15092 #define SIM_MISC_CTL_UARTMODTYPE_SHIFT (7U) 15093 /*! UARTMODTYPE - UART Modulation Type 15094 * 0b0..TypeA (ORed) Modulation selected for IRDA 15095 * 0b1..TypeB (ANDed) Modulation selected for IRDA 15096 */ 15097 #define SIM_MISC_CTL_UARTMODTYPE(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_UARTMODTYPE_SHIFT)) & SIM_MISC_CTL_UARTMODTYPE_MASK) 15098 15099 #define SIM_MISC_CTL_UART0IRSEL_MASK (0x100U) 15100 #define SIM_MISC_CTL_UART0IRSEL_SHIFT (8U) 15101 /*! UART0IRSEL - UART0 IRDA Select 15102 * 0b0..Pad RX input (PTD[0] or PTF[3], as selected in Pinmux control) selected for RX input of UART0 and UART0 TX signal is not used for modulation 15103 * 0b1..UART0 selected for IRDA modulation. UART0 TX modulated by XBAR_OUT[14] and UART0 RX input connected to XBAR_OUT[13] 15104 */ 15105 #define SIM_MISC_CTL_UART0IRSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_UART0IRSEL_SHIFT)) & SIM_MISC_CTL_UART0IRSEL_MASK) 15106 15107 #define SIM_MISC_CTL_UART1IRSEL_MASK (0x200U) 15108 #define SIM_MISC_CTL_UART1IRSEL_SHIFT (9U) 15109 /*! UART1IRSEL - UART1 IRDA Select 15110 * 0b0..Pad RX input (PTD[2] or PTI[0], as selected in Pinmux control) selected for RX input of UART1 and UART1 TX signal is not used for modulation 15111 * 0b1..UART1 selected for IRDA modulation. UART1 TX modulated by XBAR_OUT[14] and UART1 RX input connected to XBAR_OUT[13] 15112 */ 15113 #define SIM_MISC_CTL_UART1IRSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_UART1IRSEL_SHIFT)) & SIM_MISC_CTL_UART1IRSEL_MASK) 15114 15115 #define SIM_MISC_CTL_UART2IRSEL_MASK (0x400U) 15116 #define SIM_MISC_CTL_UART2IRSEL_SHIFT (10U) 15117 /*! UART2IRSEL - UART2 IRDA Select 15118 * 0b0..Pad RX input PTE[6] selected for RX input of UART2 and UART2 TX signal is not used for modulation 15119 * 0b1..UART2 selected for IRDA modulation. UART2 TX modulated by XBAR_OUT[14] and UART2 RX input connected to XBAR_OUT[13]. 15120 */ 15121 #define SIM_MISC_CTL_UART2IRSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_UART2IRSEL_SHIFT)) & SIM_MISC_CTL_UART2IRSEL_MASK) 15122 15123 #define SIM_MISC_CTL_UART3IRSEL_MASK (0x800U) 15124 #define SIM_MISC_CTL_UART3IRSEL_SHIFT (11U) 15125 /*! UART3IRSEL - UART3 IRDA Select 15126 * 0b0..Pad RX input (PTC[3] or PTD[7], as selected in Pinmux control) selected for RX input of UART3 and UART3 TX signal is not used for modulation 15127 * 0b1..UART3 selected for IRDA modulation. UART3 TX modulated by XBAR_OUT[14] and UART3 RX input connected to XBAR_OUT[13]. 15128 */ 15129 #define SIM_MISC_CTL_UART3IRSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_UART3IRSEL_SHIFT)) & SIM_MISC_CTL_UART3IRSEL_MASK) 15130 15131 #define SIM_MISC_CTL_XBARPITOUTSEL_MASK (0x3000U) 15132 #define SIM_MISC_CTL_XBARPITOUTSEL_SHIFT (12U) 15133 /*! XBARPITOUTSEL - XBAR PIT Output select 15134 * 0b00..PIT0[0] (default) 15135 * 0b01..PIT0[1] 15136 * 0b10..PIT1[0] 15137 * 0b11..PIT1[1] 15138 */ 15139 #define SIM_MISC_CTL_XBARPITOUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_XBARPITOUTSEL_SHIFT)) & SIM_MISC_CTL_XBARPITOUTSEL_MASK) 15140 15141 #define SIM_MISC_CTL_EWMINSEL_MASK (0x4000U) 15142 #define SIM_MISC_CTL_EWMINSEL_SHIFT (14U) 15143 /*! EWMINSEL - External Watchdog Monitor Input Select 15144 * 0b0..Input from PAD (PTE[2] or PTE[4] as selected from Pinmux control ) 15145 * 0b1..Peripheral Crossbar (XBAR) Output[32] 15146 */ 15147 #define SIM_MISC_CTL_EWMINSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_EWMINSEL_SHIFT)) & SIM_MISC_CTL_EWMINSEL_MASK) 15148 15149 #define SIM_MISC_CTL_TMR0PLLCLKSEL_MASK (0x8000U) 15150 #define SIM_MISC_CTL_TMR0PLLCLKSEL_SHIFT (15U) 15151 /*! TMR0PLLCLKSEL - Timer CH0 PLL clock select 15152 * 0b0..Selects Bus Clock as source for the Timer CH0 15153 * 0b1..Selects the PLL_AFE clock as the source for Timer CH0. The PLL_AFE clock source is itself selected using the MISC_CTL[5:4] 15154 */ 15155 #define SIM_MISC_CTL_TMR0PLLCLKSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR0PLLCLKSEL_SHIFT)) & SIM_MISC_CTL_TMR0PLLCLKSEL_MASK) 15156 15157 #define SIM_MISC_CTL_TMR0SCSSEL_MASK (0x10000U) 15158 #define SIM_MISC_CTL_TMR0SCSSEL_SHIFT (16U) 15159 /*! TMR0SCSSEL - Quadtimer Channel0 Secondary Count Source Select 15160 * 0b0..Pad PTF1 or PTD5, depending upon PCTL configuration. 15161 * 0b1..Peripheral Crossbar (XBAR) Output[5] 15162 */ 15163 #define SIM_MISC_CTL_TMR0SCSSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR0SCSSEL_SHIFT)) & SIM_MISC_CTL_TMR0SCSSEL_MASK) 15164 15165 #define SIM_MISC_CTL_TMR1SCSSEL_MASK (0x20000U) 15166 #define SIM_MISC_CTL_TMR1SCSSEL_SHIFT (17U) 15167 /*! TMR1SCSSEL - Quadtimer Channel1 Secondary Count Source Select 15168 * 0b0..Pad PTG0 or PTC6, depending upon PCTL configuration. 15169 * 0b1..Peripheral Crossbar (XBAR) Output[6] 15170 */ 15171 #define SIM_MISC_CTL_TMR1SCSSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR1SCSSEL_SHIFT)) & SIM_MISC_CTL_TMR1SCSSEL_MASK) 15172 15173 #define SIM_MISC_CTL_TMR2SCSSEL_MASK (0x40000U) 15174 #define SIM_MISC_CTL_TMR2SCSSEL_SHIFT (18U) 15175 /*! TMR2SCSSEL - Quadtimer Channel2 Secondary Count Source Select 15176 * 0b0..Pad PTF7 or PTF0, depending upon PCTL configuration. 15177 * 0b1..Peripheral Crossbar (XBAR) Output[7] 15178 */ 15179 #define SIM_MISC_CTL_TMR2SCSSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR2SCSSEL_SHIFT)) & SIM_MISC_CTL_TMR2SCSSEL_MASK) 15180 15181 #define SIM_MISC_CTL_TMR3SCSSEL_MASK (0x80000U) 15182 #define SIM_MISC_CTL_TMR3SCSSEL_SHIFT (19U) 15183 /*! TMR3SCSSEL - Quadtimer Channel3 Secondary Count Source Select 15184 * 0b0..Pad PTE5 or PTD1, depending upon PCTL configuration. 15185 * 0b1..Peripheral Crossbar (XBAR) Output[8] 15186 */ 15187 #define SIM_MISC_CTL_TMR3SCSSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR3SCSSEL_SHIFT)) & SIM_MISC_CTL_TMR3SCSSEL_MASK) 15188 15189 #define SIM_MISC_CTL_TMR0PCSSEL_MASK (0x300000U) 15190 #define SIM_MISC_CTL_TMR0PCSSEL_SHIFT (20U) 15191 /*! TMR0PCSSEL - Quadtimer Channel0 Primary Count Source Select 15192 * 0b00..Bus Clock 15193 * 0b01..Peripheral Crossbar Output [9] 15194 * 0b10..Peripheral Crossbar Output [10] 15195 * 0b11..Disabled 15196 */ 15197 #define SIM_MISC_CTL_TMR0PCSSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR0PCSSEL_SHIFT)) & SIM_MISC_CTL_TMR0PCSSEL_MASK) 15198 15199 #define SIM_MISC_CTL_TMR1PCSSEL_MASK (0xC00000U) 15200 #define SIM_MISC_CTL_TMR1PCSSEL_SHIFT (22U) 15201 /*! TMR1PCSSEL - Quadtimer Channel1 Primary Count Source Select 15202 * 0b00..Bus Clock 15203 * 0b01..Peripheral Crossbar Output [9] 15204 * 0b10..Peripheral Crossbar Output [10] 15205 * 0b11..Disabled 15206 */ 15207 #define SIM_MISC_CTL_TMR1PCSSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR1PCSSEL_SHIFT)) & SIM_MISC_CTL_TMR1PCSSEL_MASK) 15208 15209 #define SIM_MISC_CTL_TMR2PCSSEL_MASK (0x3000000U) 15210 #define SIM_MISC_CTL_TMR2PCSSEL_SHIFT (24U) 15211 /*! TMR2PCSSEL - Quadtimer Channel2 Primary Count Source Select 15212 * 0b00..Bus Clock 15213 * 0b01..Peripheral Crossbar Output [9] 15214 * 0b10..Peripheral Crossbar Output [10] 15215 * 0b11..Disabled 15216 */ 15217 #define SIM_MISC_CTL_TMR2PCSSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR2PCSSEL_SHIFT)) & SIM_MISC_CTL_TMR2PCSSEL_MASK) 15218 15219 #define SIM_MISC_CTL_TMR3PCSSEL_MASK (0xC000000U) 15220 #define SIM_MISC_CTL_TMR3PCSSEL_SHIFT (26U) 15221 /*! TMR3PCSSEL - Quadtimer Channel3 Primary Count Source Select 15222 * 0b00..Bus Clock 15223 * 0b01..Peripheral Crossbar Output [9] 15224 * 0b10..Peripheral Crossbar Output [10] 15225 * 0b11..Disabled 15226 */ 15227 #define SIM_MISC_CTL_TMR3PCSSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_TMR3PCSSEL_SHIFT)) & SIM_MISC_CTL_TMR3PCSSEL_MASK) 15228 15229 #define SIM_MISC_CTL_RTCCLKSEL_MASK (0x10000000U) 15230 #define SIM_MISC_CTL_RTCCLKSEL_SHIFT (28U) 15231 /*! RTCCLKSEL - RTC Clock select 15232 * 0b0..RTC OSC_32K clock selected 15233 * 0b1..32K IRC Clock selected 15234 */ 15235 #define SIM_MISC_CTL_RTCCLKSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_RTCCLKSEL_SHIFT)) & SIM_MISC_CTL_RTCCLKSEL_MASK) 15236 15237 #define SIM_MISC_CTL_VREFBUFOUTEN_MASK (0x20000000U) 15238 #define SIM_MISC_CTL_VREFBUFOUTEN_SHIFT (29U) 15239 /*! VREFBUFOUTEN - VrefBuffer Output Enable 15240 * 0b0..Buffer does not drive PAD 15241 * 0b1..Buffer drives selected voltage (selected by vref_buffer_sel) on pad 15242 */ 15243 #define SIM_MISC_CTL_VREFBUFOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_VREFBUFOUTEN_SHIFT)) & SIM_MISC_CTL_VREFBUFOUTEN_MASK) 15244 15245 #define SIM_MISC_CTL_VREFBUFINSEL_MASK (0x40000000U) 15246 #define SIM_MISC_CTL_VREFBUFINSEL_SHIFT (30U) 15247 /*! VREFBUFINSEL - VrefBuffer Input Select 15248 * 0b0..Internal Reference selected as Buffer Input 15249 * 0b1..External Reference selected as Buffer Input 15250 */ 15251 #define SIM_MISC_CTL_VREFBUFINSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_VREFBUFINSEL_SHIFT)) & SIM_MISC_CTL_VREFBUFINSEL_MASK) 15252 15253 #define SIM_MISC_CTL_VREFBUFPD_MASK (0x80000000U) 15254 #define SIM_MISC_CTL_VREFBUFPD_SHIFT (31U) 15255 /*! VREFBUFPD - VrefBuffer Power Down 15256 * 0b0..Buffer Enabled 15257 * 0b1..Buffer Powered Down 15258 */ 15259 #define SIM_MISC_CTL_VREFBUFPD(x) (((uint32_t)(((uint32_t)(x)) << SIM_MISC_CTL_VREFBUFPD_SHIFT)) & SIM_MISC_CTL_VREFBUFPD_MASK) 15260 /*! @} */ 15261 15262 15263 /*! 15264 * @} 15265 */ /* end of group SIM_Register_Masks */ 15266 15267 15268 /* SIM - Peripheral instance base addresses */ 15269 /** Peripheral SIM base address */ 15270 #define SIM_BASE (0x4003E000u) 15271 /** Peripheral SIM base pointer */ 15272 #define SIM ((SIM_Type *)SIM_BASE) 15273 /** Array initializer of SIM peripheral base addresses */ 15274 #define SIM_BASE_ADDRS { SIM_BASE } 15275 /** Array initializer of SIM peripheral base pointers */ 15276 #define SIM_BASE_PTRS { SIM } 15277 15278 /*! 15279 * @} 15280 */ /* end of group SIM_Peripheral_Access_Layer */ 15281 15282 15283 /* ---------------------------------------------------------------------------- 15284 -- SMC Peripheral Access Layer 15285 ---------------------------------------------------------------------------- */ 15286 15287 /*! 15288 * @addtogroup SMC_Peripheral_Access_Layer SMC Peripheral Access Layer 15289 * @{ 15290 */ 15291 15292 /** SMC - Register Layout Typedef */ 15293 typedef struct { 15294 __IO uint8_t PMPROT; /**< Power Mode Protection register, offset: 0x0 */ 15295 __IO uint8_t PMCTRL; /**< Power Mode Control register, offset: 0x1 */ 15296 __IO uint8_t STOPCTRL; /**< Stop Control Register, offset: 0x2 */ 15297 __I uint8_t PMSTAT; /**< Power Mode Status register, offset: 0x3 */ 15298 } SMC_Type; 15299 15300 /* ---------------------------------------------------------------------------- 15301 -- SMC Register Masks 15302 ---------------------------------------------------------------------------- */ 15303 15304 /*! 15305 * @addtogroup SMC_Register_Masks SMC Register Masks 15306 * @{ 15307 */ 15308 15309 /*! @name PMPROT - Power Mode Protection register */ 15310 /*! @{ */ 15311 15312 #define SMC_PMPROT_AVLLS_MASK (0x2U) 15313 #define SMC_PMPROT_AVLLS_SHIFT (1U) 15314 /*! AVLLS - Allow Very-Low-Leakage Stop Mode 15315 * 0b0..Any VLLSx mode is not allowed 15316 * 0b1..Any VLLSx mode is allowed 15317 */ 15318 #define SMC_PMPROT_AVLLS(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_AVLLS_SHIFT)) & SMC_PMPROT_AVLLS_MASK) 15319 15320 #define SMC_PMPROT_AVLP_MASK (0x20U) 15321 #define SMC_PMPROT_AVLP_SHIFT (5U) 15322 /*! AVLP - Allow Very-Low-Power Modes 15323 * 0b0..VLPR, VLPW, and VLPS are not allowed. 15324 * 0b1..VLPR, VLPW, and VLPS are allowed. 15325 */ 15326 #define SMC_PMPROT_AVLP(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_AVLP_SHIFT)) & SMC_PMPROT_AVLP_MASK) 15327 /*! @} */ 15328 15329 /*! @name PMCTRL - Power Mode Control register */ 15330 /*! @{ */ 15331 15332 #define SMC_PMCTRL_STOPM_MASK (0x7U) 15333 #define SMC_PMCTRL_STOPM_SHIFT (0U) 15334 /*! STOPM - Stop Mode Control 15335 * 0b000..Normal Stop (STOP) 15336 * 0b001..Reserved 15337 * 0b010..Very-Low-Power Stop (VLPS) 15338 * 0b011..Reserved 15339 * 0b100..Very-Low-Leakage Stop (VLLSx) 15340 * 0b101..Reserved 15341 * 0b110..Reseved 15342 * 0b111..Reserved 15343 */ 15344 #define SMC_PMCTRL_STOPM(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_STOPM_SHIFT)) & SMC_PMCTRL_STOPM_MASK) 15345 15346 #define SMC_PMCTRL_STOPA_MASK (0x8U) 15347 #define SMC_PMCTRL_STOPA_SHIFT (3U) 15348 /*! STOPA - Stop Aborted 15349 * 0b0..The previous stop mode entry was successful. 15350 * 0b1..The previous stop mode entry was aborted. 15351 */ 15352 #define SMC_PMCTRL_STOPA(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_STOPA_SHIFT)) & SMC_PMCTRL_STOPA_MASK) 15353 15354 #define SMC_PMCTRL_RUNM_MASK (0x60U) 15355 #define SMC_PMCTRL_RUNM_SHIFT (5U) 15356 /*! RUNM - Run Mode Control 15357 * 0b00..Normal Run mode (RUN) 15358 * 0b01..Reserved 15359 * 0b10..Very-Low-Power Run mode (VLPR) 15360 * 0b11..Reserved 15361 */ 15362 #define SMC_PMCTRL_RUNM(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_RUNM_SHIFT)) & SMC_PMCTRL_RUNM_MASK) 15363 /*! @} */ 15364 15365 /*! @name STOPCTRL - Stop Control Register */ 15366 /*! @{ */ 15367 15368 #define SMC_STOPCTRL_VLLSM_MASK (0x7U) 15369 #define SMC_STOPCTRL_VLLSM_SHIFT (0U) 15370 /*! VLLSM - VLLS Mode Control 15371 * 0b000..VLLS0 15372 * 0b001..VLLS1 15373 * 0b010..VLLS2 15374 * 0b011..VLLS3 15375 * 0b100..Reserved 15376 * 0b101..Reserved 15377 * 0b110..Reserved 15378 * 0b111..Reserved 15379 */ 15380 #define SMC_STOPCTRL_VLLSM(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_VLLSM_SHIFT)) & SMC_STOPCTRL_VLLSM_MASK) 15381 15382 #define SMC_STOPCTRL_PORPO_MASK (0x20U) 15383 #define SMC_STOPCTRL_PORPO_SHIFT (5U) 15384 /*! PORPO - POR Power Option 15385 * 0b0..POR detect circuit is enabled in VLLS0 15386 * 0b1..POR detect circuit is disabled in VLLS0 15387 */ 15388 #define SMC_STOPCTRL_PORPO(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_PORPO_SHIFT)) & SMC_STOPCTRL_PORPO_MASK) 15389 15390 #define SMC_STOPCTRL_PSTOPO_MASK (0xC0U) 15391 #define SMC_STOPCTRL_PSTOPO_SHIFT (6U) 15392 /*! PSTOPO - Partial Stop Option 15393 * 0b00..STOP - Normal Stop mode 15394 * 0b01..PSTOP1 - Partial Stop with both system and bus clocks disabled 15395 * 0b10..PSTOP2 - Partial Stop with system clock disabled and bus clock enabled 15396 * 0b11..Reserved 15397 */ 15398 #define SMC_STOPCTRL_PSTOPO(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_PSTOPO_SHIFT)) & SMC_STOPCTRL_PSTOPO_MASK) 15399 /*! @} */ 15400 15401 /*! @name PMSTAT - Power Mode Status register */ 15402 /*! @{ */ 15403 15404 #define SMC_PMSTAT_PMSTAT_MASK (0xFFU) 15405 #define SMC_PMSTAT_PMSTAT_SHIFT (0U) 15406 /*! PMSTAT - Power Mode Status 15407 */ 15408 #define SMC_PMSTAT_PMSTAT(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMSTAT_PMSTAT_SHIFT)) & SMC_PMSTAT_PMSTAT_MASK) 15409 /*! @} */ 15410 15411 15412 /*! 15413 * @} 15414 */ /* end of group SMC_Register_Masks */ 15415 15416 15417 /* SMC - Peripheral instance base addresses */ 15418 /** Peripheral SMC base address */ 15419 #define SMC_BASE (0x4007E000u) 15420 /** Peripheral SMC base pointer */ 15421 #define SMC ((SMC_Type *)SMC_BASE) 15422 /** Array initializer of SMC peripheral base addresses */ 15423 #define SMC_BASE_ADDRS { SMC_BASE } 15424 /** Array initializer of SMC peripheral base pointers */ 15425 #define SMC_BASE_PTRS { SMC } 15426 15427 /*! 15428 * @} 15429 */ /* end of group SMC_Peripheral_Access_Layer */ 15430 15431 15432 /* ---------------------------------------------------------------------------- 15433 -- SPI Peripheral Access Layer 15434 ---------------------------------------------------------------------------- */ 15435 15436 /*! 15437 * @addtogroup SPI_Peripheral_Access_Layer SPI Peripheral Access Layer 15438 * @{ 15439 */ 15440 15441 /** SPI - Register Layout Typedef */ 15442 typedef struct { 15443 __IO uint8_t S; /**< SPI Status Register, offset: 0x0 */ 15444 __IO uint8_t BR; /**< SPI Baud Rate Register, offset: 0x1 */ 15445 __IO uint8_t C2; /**< SPI Control Register 2, offset: 0x2 */ 15446 __IO uint8_t C1; /**< SPI Control Register 1, offset: 0x3 */ 15447 __IO uint8_t ML; /**< SPI Match Register low, offset: 0x4 */ 15448 __IO uint8_t MH; /**< SPI match register high, offset: 0x5 */ 15449 __IO uint8_t DL; /**< SPI Data Register low, offset: 0x6 */ 15450 __IO uint8_t DH; /**< SPI data register high, offset: 0x7 */ 15451 uint8_t RESERVED_0[2]; 15452 __IO uint8_t CI; /**< SPI clear interrupt register, offset: 0xA */ 15453 __IO uint8_t C3; /**< SPI control register 3, offset: 0xB */ 15454 } SPI_Type; 15455 15456 /* ---------------------------------------------------------------------------- 15457 -- SPI Register Masks 15458 ---------------------------------------------------------------------------- */ 15459 15460 /*! 15461 * @addtogroup SPI_Register_Masks SPI Register Masks 15462 * @{ 15463 */ 15464 15465 /*! @name S - SPI Status Register */ 15466 /*! @{ */ 15467 15468 #define SPI_S_RFIFOEF_MASK (0x1U) 15469 #define SPI_S_RFIFOEF_SHIFT (0U) 15470 /*! RFIFOEF - SPI read FIFO empty flag 15471 * 0b0..Read FIFO has data. Reads of the DH:DL registers in 16-bit mode or the DL register in 8-bit mode will empty the read FIFO. 15472 * 0b1..Read FIFO is empty. 15473 */ 15474 #define SPI_S_RFIFOEF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_RFIFOEF_SHIFT)) & SPI_S_RFIFOEF_MASK) 15475 15476 #define SPI_S_TXFULLF_MASK (0x2U) 15477 #define SPI_S_TXFULLF_SHIFT (1U) 15478 /*! TXFULLF - Transmit FIFO full flag 15479 * 0b0..Transmit FIFO has less than 8 bytes 15480 * 0b1..Transmit FIFO has 8 bytes of data 15481 */ 15482 #define SPI_S_TXFULLF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_TXFULLF_SHIFT)) & SPI_S_TXFULLF_MASK) 15483 15484 #define SPI_S_TNEAREF_MASK (0x4U) 15485 #define SPI_S_TNEAREF_SHIFT (2U) 15486 /*! TNEAREF - Transmit FIFO nearly empty flag 15487 * 0b0..Transmit FIFO has more than 16 bits (when C3[5] is 0) or more than 32 bits (when C3[5] is 1) remaining to transmit 15488 * 0b1..Transmit FIFO has an amount of data equal to or less than 16 bits (when C3[5] is 0) or 32 bits (when C3[5] is 1) remaining to transmit 15489 */ 15490 #define SPI_S_TNEAREF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_TNEAREF_SHIFT)) & SPI_S_TNEAREF_MASK) 15491 15492 #define SPI_S_RNFULLF_MASK (0x8U) 15493 #define SPI_S_RNFULLF_SHIFT (3U) 15494 /*! RNFULLF - Receive FIFO nearly full flag 15495 * 0b0..Receive FIFO has received less than 48 bits (when C3[4] is 0) or less than 32 bits (when C3[4] is 1) 15496 * 0b1..Receive FIFO has received data of an amount equal to or greater than 48 bits (when C3[4] is 0) or 32 bits (when C3[4] is 1) 15497 */ 15498 #define SPI_S_RNFULLF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_RNFULLF_SHIFT)) & SPI_S_RNFULLF_MASK) 15499 15500 #define SPI_S_MODF_MASK (0x10U) 15501 #define SPI_S_MODF_SHIFT (4U) 15502 /*! MODF - Master Mode Fault Flag 15503 * 0b0..No mode fault error 15504 * 0b1..Mode fault error detected 15505 */ 15506 #define SPI_S_MODF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_MODF_SHIFT)) & SPI_S_MODF_MASK) 15507 15508 #define SPI_S_SPTEF_MASK (0x20U) 15509 #define SPI_S_SPTEF_SHIFT (5U) 15510 /*! SPTEF - SPI Transmit Buffer Empty Flag (when FIFO is not supported or not enabled) or SPI 15511 * transmit FIFO empty flag (when FIFO is supported and enabled) 15512 * 0b0..SPI transmit buffer not empty (when FIFOMODE is not present or is 0) or SPI FIFO not empty (when FIFOMODE is 1) 15513 * 0b1..SPI transmit buffer empty (when FIFOMODE is not present or is 0) or SPI FIFO empty (when FIFOMODE is 1) 15514 */ 15515 #define SPI_S_SPTEF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_SPTEF_SHIFT)) & SPI_S_SPTEF_MASK) 15516 15517 #define SPI_S_SPMF_MASK (0x40U) 15518 #define SPI_S_SPMF_SHIFT (6U) 15519 /*! SPMF - SPI Match Flag 15520 * 0b0..Value in the receive data buffer does not match the value in the MH:ML registers 15521 * 0b1..Value in the receive data buffer matches the value in the MH:ML registers 15522 */ 15523 #define SPI_S_SPMF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_SPMF_SHIFT)) & SPI_S_SPMF_MASK) 15524 15525 #define SPI_S_SPRF_MASK (0x80U) 15526 #define SPI_S_SPRF_SHIFT (7U) 15527 /*! SPRF - SPI Read Buffer Full Flag (when FIFO is not supported or not enabled) or SPI read FIFO 15528 * FULL flag (when FIFO is supported and enabled) 15529 * 0b0..No data available in the receive data buffer (when FIFOMODE is not present or is 0) or Read FIFO is not full (when FIFOMODE is 1) 15530 * 0b1..Data available in the receive data buffer (when FIFOMODE is not present or is 0) or Read FIFO is full (when FIFOMODE is 1) 15531 */ 15532 #define SPI_S_SPRF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_SPRF_SHIFT)) & SPI_S_SPRF_MASK) 15533 /*! @} */ 15534 15535 /*! @name BR - SPI Baud Rate Register */ 15536 /*! @{ */ 15537 15538 #define SPI_BR_SPR_MASK (0xFU) 15539 #define SPI_BR_SPR_SHIFT (0U) 15540 /*! SPR - SPI Baud Rate Divisor 15541 * 0b0000..Baud rate divisor is 2. 15542 * 0b0001..Baud rate divisor is 4. 15543 * 0b0010..Baud rate divisor is 8. 15544 * 0b0011..Baud rate divisor is 16. 15545 * 0b0100..Baud rate divisor is 32. 15546 * 0b0101..Baud rate divisor is 64. 15547 * 0b0110..Baud rate divisor is 128. 15548 * 0b0111..Baud rate divisor is 256. 15549 * 0b1000..Baud rate divisor is 512. 15550 */ 15551 #define SPI_BR_SPR(x) (((uint8_t)(((uint8_t)(x)) << SPI_BR_SPR_SHIFT)) & SPI_BR_SPR_MASK) 15552 15553 #define SPI_BR_SPPR_MASK (0x70U) 15554 #define SPI_BR_SPPR_SHIFT (4U) 15555 /*! SPPR - SPI Baud Rate Prescale Divisor 15556 * 0b000..Baud rate prescaler divisor is 1. 15557 * 0b001..Baud rate prescaler divisor is 2. 15558 * 0b010..Baud rate prescaler divisor is 3. 15559 * 0b011..Baud rate prescaler divisor is 4. 15560 * 0b100..Baud rate prescaler divisor is 5. 15561 * 0b101..Baud rate prescaler divisor is 6. 15562 * 0b110..Baud rate prescaler divisor is 7. 15563 * 0b111..Baud rate prescaler divisor is 8. 15564 */ 15565 #define SPI_BR_SPPR(x) (((uint8_t)(((uint8_t)(x)) << SPI_BR_SPPR_SHIFT)) & SPI_BR_SPPR_MASK) 15566 /*! @} */ 15567 15568 /*! @name C2 - SPI Control Register 2 */ 15569 /*! @{ */ 15570 15571 #define SPI_C2_SPC0_MASK (0x1U) 15572 #define SPI_C2_SPC0_SHIFT (0U) 15573 /*! SPC0 - SPI Pin Control 0 15574 * 0b0..SPI uses separate pins for data input and data output (pin mode is normal). In master mode of operation: 15575 * MISO is master in and MOSI is master out. In slave mode of operation: MISO is slave out and MOSI is slave 15576 * in. 15577 * 0b1..SPI configured for single-wire bidirectional operation (pin mode is bidirectional). In master mode of 15578 * operation: MISO is not used by SPI; MOSI is master in when BIDIROE is 0 or master I/O when BIDIROE is 1. In 15579 * slave mode of operation: MISO is slave in when BIDIROE is 0 or slave I/O when BIDIROE is 1; MOSI is not 15580 * used by SPI. 15581 */ 15582 #define SPI_C2_SPC0(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_SPC0_SHIFT)) & SPI_C2_SPC0_MASK) 15583 15584 #define SPI_C2_SPISWAI_MASK (0x2U) 15585 #define SPI_C2_SPISWAI_SHIFT (1U) 15586 /*! SPISWAI - SPI Stop in Wait Mode 15587 * 0b0..SPI clocks continue to operate in Wait mode. 15588 * 0b1..SPI clocks stop when the MCU enters Wait mode. 15589 */ 15590 #define SPI_C2_SPISWAI(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_SPISWAI_SHIFT)) & SPI_C2_SPISWAI_MASK) 15591 15592 #define SPI_C2_RXDMAE_MASK (0x4U) 15593 #define SPI_C2_RXDMAE_SHIFT (2U) 15594 /*! RXDMAE - Receive DMA enable 15595 * 0b0..DMA request for receive is disabled and interrupt from SPRF is allowed 15596 * 0b1..DMA request for receive is enabled and interrupt from SPRF is disabled 15597 */ 15598 #define SPI_C2_RXDMAE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_RXDMAE_SHIFT)) & SPI_C2_RXDMAE_MASK) 15599 15600 #define SPI_C2_BIDIROE_MASK (0x8U) 15601 #define SPI_C2_BIDIROE_SHIFT (3U) 15602 /*! BIDIROE - Bidirectional Mode Output Enable 15603 * 0b0..Output driver disabled so SPI data I/O pin acts as an input 15604 * 0b1..SPI I/O pin enabled as an output 15605 */ 15606 #define SPI_C2_BIDIROE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_BIDIROE_SHIFT)) & SPI_C2_BIDIROE_MASK) 15607 15608 #define SPI_C2_MODFEN_MASK (0x10U) 15609 #define SPI_C2_MODFEN_SHIFT (4U) 15610 /*! MODFEN - Master Mode-Fault Function Enable 15611 * 0b0..Mode fault function disabled, master SS pin reverts to general-purpose I/O not controlled by SPI 15612 * 0b1..Mode fault function enabled, master SS pin acts as the mode fault input or the slave select output 15613 */ 15614 #define SPI_C2_MODFEN(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_MODFEN_SHIFT)) & SPI_C2_MODFEN_MASK) 15615 15616 #define SPI_C2_TXDMAE_MASK (0x20U) 15617 #define SPI_C2_TXDMAE_SHIFT (5U) 15618 /*! TXDMAE - Transmit DMA enable 15619 * 0b0..DMA request for transmit is disabled and interrupt from SPTEF is allowed 15620 * 0b1..DMA request for transmit is enabled and interrupt from SPTEF is disabled 15621 */ 15622 #define SPI_C2_TXDMAE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_TXDMAE_SHIFT)) & SPI_C2_TXDMAE_MASK) 15623 15624 #define SPI_C2_SPIMODE_MASK (0x40U) 15625 #define SPI_C2_SPIMODE_SHIFT (6U) 15626 /*! SPIMODE - SPI 8-bit or 16-bit mode 15627 * 0b0..8-bit SPI shift register, match register, and buffers 15628 * 0b1..16-bit SPI shift register, match register, and buffers 15629 */ 15630 #define SPI_C2_SPIMODE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_SPIMODE_SHIFT)) & SPI_C2_SPIMODE_MASK) 15631 15632 #define SPI_C2_SPMIE_MASK (0x80U) 15633 #define SPI_C2_SPMIE_SHIFT (7U) 15634 /*! SPMIE - SPI Match Interrupt Enable 15635 * 0b0..Interrupts from SPMF inhibited (use polling) 15636 * 0b1..When SPMF is 1, requests a hardware interrupt 15637 */ 15638 #define SPI_C2_SPMIE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_SPMIE_SHIFT)) & SPI_C2_SPMIE_MASK) 15639 /*! @} */ 15640 15641 /*! @name C1 - SPI Control Register 1 */ 15642 /*! @{ */ 15643 15644 #define SPI_C1_LSBFE_MASK (0x1U) 15645 #define SPI_C1_LSBFE_SHIFT (0U) 15646 /*! LSBFE - LSB First (shifter direction) 15647 * 0b0..SPI serial data transfers start with the most significant bit. 15648 * 0b1..SPI serial data transfers start with the least significant bit. 15649 */ 15650 #define SPI_C1_LSBFE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_LSBFE_SHIFT)) & SPI_C1_LSBFE_MASK) 15651 15652 #define SPI_C1_SSOE_MASK (0x2U) 15653 #define SPI_C1_SSOE_SHIFT (1U) 15654 /*! SSOE - Slave Select Output Enable 15655 * 0b0..When C2[MODFEN] is 0: In master mode, SS pin function is general-purpose I/O (not SPI). In slave mode, SS 15656 * pin function is slave select input. When C2[MODFEN] is 1: In master mode, SS pin function is SS input for 15657 * mode fault. In slave mode, SS pin function is slave select input. 15658 * 0b1..When C2[MODFEN] is 0: In master mode, SS pin function is general-purpose I/O (not SPI). In slave mode, SS 15659 * pin function is slave select input. When C2[MODFEN] is 1: In master mode, SS pin function is automatic SS 15660 * output. In slave mode: SS pin function is slave select input. 15661 */ 15662 #define SPI_C1_SSOE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_SSOE_SHIFT)) & SPI_C1_SSOE_MASK) 15663 15664 #define SPI_C1_CPHA_MASK (0x4U) 15665 #define SPI_C1_CPHA_SHIFT (2U) 15666 /*! CPHA - Clock Phase 15667 * 0b0..First edge on SPSCK occurs at the middle of the first cycle of a data transfer. 15668 * 0b1..First edge on SPSCK occurs at the start of the first cycle of a data transfer. 15669 */ 15670 #define SPI_C1_CPHA(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_CPHA_SHIFT)) & SPI_C1_CPHA_MASK) 15671 15672 #define SPI_C1_CPOL_MASK (0x8U) 15673 #define SPI_C1_CPOL_SHIFT (3U) 15674 /*! CPOL - Clock Polarity 15675 * 0b0..Active-high SPI clock (idles low) 15676 * 0b1..Active-low SPI clock (idles high) 15677 */ 15678 #define SPI_C1_CPOL(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_CPOL_SHIFT)) & SPI_C1_CPOL_MASK) 15679 15680 #define SPI_C1_MSTR_MASK (0x10U) 15681 #define SPI_C1_MSTR_SHIFT (4U) 15682 /*! MSTR - Master/Slave Mode Select 15683 * 0b0..SPI module configured as a slave SPI device 15684 * 0b1..SPI module configured as a master SPI device 15685 */ 15686 #define SPI_C1_MSTR(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_MSTR_SHIFT)) & SPI_C1_MSTR_MASK) 15687 15688 #define SPI_C1_SPTIE_MASK (0x20U) 15689 #define SPI_C1_SPTIE_SHIFT (5U) 15690 /*! SPTIE - SPI Transmit Interrupt Enable 15691 * 0b0..Interrupts from SPTEF inhibited (use polling) 15692 * 0b1..When SPTEF is 1, hardware interrupt requested 15693 */ 15694 #define SPI_C1_SPTIE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_SPTIE_SHIFT)) & SPI_C1_SPTIE_MASK) 15695 15696 #define SPI_C1_SPE_MASK (0x40U) 15697 #define SPI_C1_SPE_SHIFT (6U) 15698 /*! SPE - SPI System Enable 15699 * 0b0..SPI system inactive 15700 * 0b1..SPI system enabled 15701 */ 15702 #define SPI_C1_SPE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_SPE_SHIFT)) & SPI_C1_SPE_MASK) 15703 15704 #define SPI_C1_SPIE_MASK (0x80U) 15705 #define SPI_C1_SPIE_SHIFT (7U) 15706 /*! SPIE - SPI Interrupt Enable: for SPRF and MODF (when FIFO is not supported or not enabled) or 15707 * for read FIFO (when FIFO is supported and enabled) 15708 * 0b0..Interrupts from SPRF and MODF are inhibited-use polling (when FIFOMODE is not present or is 0) or Read 15709 * FIFO Full Interrupts are disabled (when FIFOMODE is 1) 15710 * 0b1..Request a hardware interrupt when SPRF or MODF is 1 (when FIFOMODE is not present or is 0) or Read FIFO 15711 * Full Interrupts are enabled (when FIFOMODE is 1) 15712 */ 15713 #define SPI_C1_SPIE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_SPIE_SHIFT)) & SPI_C1_SPIE_MASK) 15714 /*! @} */ 15715 15716 /*! @name ML - SPI Match Register low */ 15717 /*! @{ */ 15718 15719 #define SPI_ML_Bits_MASK (0xFFU) 15720 #define SPI_ML_Bits_SHIFT (0U) 15721 /*! Bits - Hardware compare value (low byte) 15722 */ 15723 #define SPI_ML_Bits(x) (((uint8_t)(((uint8_t)(x)) << SPI_ML_Bits_SHIFT)) & SPI_ML_Bits_MASK) 15724 /*! @} */ 15725 15726 /*! @name MH - SPI match register high */ 15727 /*! @{ */ 15728 15729 #define SPI_MH_Bits_MASK (0xFFU) 15730 #define SPI_MH_Bits_SHIFT (0U) 15731 /*! Bits - Hardware compare value (high byte) 15732 */ 15733 #define SPI_MH_Bits(x) (((uint8_t)(((uint8_t)(x)) << SPI_MH_Bits_SHIFT)) & SPI_MH_Bits_MASK) 15734 /*! @} */ 15735 15736 /*! @name DL - SPI Data Register low */ 15737 /*! @{ */ 15738 15739 #define SPI_DL_Bits_MASK (0xFFU) 15740 #define SPI_DL_Bits_SHIFT (0U) 15741 /*! Bits - Data (low byte) 15742 */ 15743 #define SPI_DL_Bits(x) (((uint8_t)(((uint8_t)(x)) << SPI_DL_Bits_SHIFT)) & SPI_DL_Bits_MASK) 15744 /*! @} */ 15745 15746 /*! @name DH - SPI data register high */ 15747 /*! @{ */ 15748 15749 #define SPI_DH_Bits_MASK (0xFFU) 15750 #define SPI_DH_Bits_SHIFT (0U) 15751 /*! Bits - Data (high byte) 15752 */ 15753 #define SPI_DH_Bits(x) (((uint8_t)(((uint8_t)(x)) << SPI_DH_Bits_SHIFT)) & SPI_DH_Bits_MASK) 15754 /*! @} */ 15755 15756 /*! @name CI - SPI clear interrupt register */ 15757 /*! @{ */ 15758 15759 #define SPI_CI_SPRFCI_MASK (0x1U) 15760 #define SPI_CI_SPRFCI_SHIFT (0U) 15761 /*! SPRFCI - Receive FIFO full flag clear interrupt 15762 */ 15763 #define SPI_CI_SPRFCI(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_SPRFCI_SHIFT)) & SPI_CI_SPRFCI_MASK) 15764 15765 #define SPI_CI_SPTEFCI_MASK (0x2U) 15766 #define SPI_CI_SPTEFCI_SHIFT (1U) 15767 /*! SPTEFCI - Transmit FIFO empty flag clear interrupt 15768 */ 15769 #define SPI_CI_SPTEFCI(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_SPTEFCI_SHIFT)) & SPI_CI_SPTEFCI_MASK) 15770 15771 #define SPI_CI_RNFULLFCI_MASK (0x4U) 15772 #define SPI_CI_RNFULLFCI_SHIFT (2U) 15773 /*! RNFULLFCI - Receive FIFO nearly full flag clear interrupt 15774 */ 15775 #define SPI_CI_RNFULLFCI(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_RNFULLFCI_SHIFT)) & SPI_CI_RNFULLFCI_MASK) 15776 15777 #define SPI_CI_TNEAREFCI_MASK (0x8U) 15778 #define SPI_CI_TNEAREFCI_SHIFT (3U) 15779 /*! TNEAREFCI - Transmit FIFO nearly empty flag clear interrupt 15780 */ 15781 #define SPI_CI_TNEAREFCI(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_TNEAREFCI_SHIFT)) & SPI_CI_TNEAREFCI_MASK) 15782 15783 #define SPI_CI_RXFOF_MASK (0x10U) 15784 #define SPI_CI_RXFOF_SHIFT (4U) 15785 /*! RXFOF - Receive FIFO overflow flag 15786 * 0b0..Receive FIFO overflow condition has not occurred 15787 * 0b1..Receive FIFO overflow condition occurred 15788 */ 15789 #define SPI_CI_RXFOF(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_RXFOF_SHIFT)) & SPI_CI_RXFOF_MASK) 15790 15791 #define SPI_CI_TXFOF_MASK (0x20U) 15792 #define SPI_CI_TXFOF_SHIFT (5U) 15793 /*! TXFOF - Transmit FIFO overflow flag 15794 * 0b0..Transmit FIFO overflow condition has not occurred 15795 * 0b1..Transmit FIFO overflow condition occurred 15796 */ 15797 #define SPI_CI_TXFOF(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_TXFOF_SHIFT)) & SPI_CI_TXFOF_MASK) 15798 15799 #define SPI_CI_RXFERR_MASK (0x40U) 15800 #define SPI_CI_RXFERR_SHIFT (6U) 15801 /*! RXFERR - Receive FIFO error flag 15802 * 0b0..No receive FIFO error occurred 15803 * 0b1..A receive FIFO error occurred 15804 */ 15805 #define SPI_CI_RXFERR(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_RXFERR_SHIFT)) & SPI_CI_RXFERR_MASK) 15806 15807 #define SPI_CI_TXFERR_MASK (0x80U) 15808 #define SPI_CI_TXFERR_SHIFT (7U) 15809 /*! TXFERR - Transmit FIFO error flag 15810 * 0b0..No transmit FIFO error occurred 15811 * 0b1..A transmit FIFO error occurred 15812 */ 15813 #define SPI_CI_TXFERR(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_TXFERR_SHIFT)) & SPI_CI_TXFERR_MASK) 15814 /*! @} */ 15815 15816 /*! @name C3 - SPI control register 3 */ 15817 /*! @{ */ 15818 15819 #define SPI_C3_FIFOMODE_MASK (0x1U) 15820 #define SPI_C3_FIFOMODE_SHIFT (0U) 15821 /*! FIFOMODE - FIFO mode enable 15822 * 0b0..Buffer mode disabled 15823 * 0b1..Data available in the receive data buffer 15824 */ 15825 #define SPI_C3_FIFOMODE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_FIFOMODE_SHIFT)) & SPI_C3_FIFOMODE_MASK) 15826 15827 #define SPI_C3_RNFULLIEN_MASK (0x2U) 15828 #define SPI_C3_RNFULLIEN_SHIFT (1U) 15829 /*! RNFULLIEN - Receive FIFO nearly full interrupt enable 15830 * 0b0..No interrupt upon RNFULLF being set 15831 * 0b1..Enable interrupts upon RNFULLF being set 15832 */ 15833 #define SPI_C3_RNFULLIEN(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_RNFULLIEN_SHIFT)) & SPI_C3_RNFULLIEN_MASK) 15834 15835 #define SPI_C3_TNEARIEN_MASK (0x4U) 15836 #define SPI_C3_TNEARIEN_SHIFT (2U) 15837 /*! TNEARIEN - Transmit FIFO nearly empty interrupt enable 15838 * 0b0..No interrupt upon TNEAREF being set 15839 * 0b1..Enable interrupts upon TNEAREF being set 15840 */ 15841 #define SPI_C3_TNEARIEN(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_TNEARIEN_SHIFT)) & SPI_C3_TNEARIEN_MASK) 15842 15843 #define SPI_C3_INTCLR_MASK (0x8U) 15844 #define SPI_C3_INTCLR_SHIFT (3U) 15845 /*! INTCLR - Interrupt clearing mechanism select 15846 * 0b0..These interrupts are cleared when the corresponding flags are cleared depending on the state of the FIFOs 15847 * 0b1..These interrupts are cleared by writing the corresponding bits in the CI register 15848 */ 15849 #define SPI_C3_INTCLR(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_INTCLR_SHIFT)) & SPI_C3_INTCLR_MASK) 15850 15851 #define SPI_C3_RNFULLF_MARK_MASK (0x10U) 15852 #define SPI_C3_RNFULLF_MARK_SHIFT (4U) 15853 /*! RNFULLF_MARK - Receive FIFO nearly full watermark 15854 * 0b0..RNFULLF is set when the receive FIFO has 48 bits or more 15855 * 0b1..RNFULLF is set when the receive FIFO has 32 bits or more 15856 */ 15857 #define SPI_C3_RNFULLF_MARK(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_RNFULLF_MARK_SHIFT)) & SPI_C3_RNFULLF_MARK_MASK) 15858 15859 #define SPI_C3_TNEAREF_MARK_MASK (0x20U) 15860 #define SPI_C3_TNEAREF_MARK_SHIFT (5U) 15861 /*! TNEAREF_MARK - Transmit FIFO nearly empty watermark 15862 * 0b0..TNEAREF is set when the transmit FIFO has 16 bits or less 15863 * 0b1..TNEAREF is set when the transmit FIFO has 32 bits or less 15864 */ 15865 #define SPI_C3_TNEAREF_MARK(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_TNEAREF_MARK_SHIFT)) & SPI_C3_TNEAREF_MARK_MASK) 15866 /*! @} */ 15867 15868 15869 /*! 15870 * @} 15871 */ /* end of group SPI_Register_Masks */ 15872 15873 15874 /* SPI - Peripheral instance base addresses */ 15875 /** Peripheral SPI0 base address */ 15876 #define SPI0_BASE (0x40075000u) 15877 /** Peripheral SPI0 base pointer */ 15878 #define SPI0 ((SPI_Type *)SPI0_BASE) 15879 /** Peripheral SPI1 base address */ 15880 #define SPI1_BASE (0x40076000u) 15881 /** Peripheral SPI1 base pointer */ 15882 #define SPI1 ((SPI_Type *)SPI1_BASE) 15883 /** Array initializer of SPI peripheral base addresses */ 15884 #define SPI_BASE_ADDRS { SPI0_BASE, SPI1_BASE } 15885 /** Array initializer of SPI peripheral base pointers */ 15886 #define SPI_BASE_PTRS { SPI0, SPI1 } 15887 /** Interrupt vectors for the SPI peripheral type */ 15888 #define SPI_IRQS { SPI0_IRQn, SPI1_IRQn } 15889 15890 /*! 15891 * @} 15892 */ /* end of group SPI_Peripheral_Access_Layer */ 15893 15894 15895 /* ---------------------------------------------------------------------------- 15896 -- SYSMPU Peripheral Access Layer 15897 ---------------------------------------------------------------------------- */ 15898 15899 /*! 15900 * @addtogroup SYSMPU_Peripheral_Access_Layer SYSMPU Peripheral Access Layer 15901 * @{ 15902 */ 15903 15904 /** SYSMPU - Register Layout Typedef */ 15905 typedef struct { 15906 __IO uint32_t CESR; /**< Control/Error Status Register, offset: 0x0 */ 15907 uint8_t RESERVED_0[12]; 15908 struct { /* offset: 0x10, array step: 0x8 */ 15909 __I uint32_t EAR; /**< Error Address Register, slave port n, array offset: 0x10, array step: 0x8 */ 15910 __I uint32_t EDR; /**< Error Detail Register, slave port n, array offset: 0x14, array step: 0x8 */ 15911 } SP[2]; 15912 uint8_t RESERVED_1[992]; 15913 __IO uint32_t WORD[8][4]; /**< Region Descriptor n, Word 0..Region Descriptor n, Word 3, array offset: 0x400, array step: index*0x10, index2*0x4 */ 15914 uint8_t RESERVED_2[896]; 15915 __IO uint32_t RGDAAC[8]; /**< Region Descriptor Alternate Access Control n, array offset: 0x800, array step: 0x4 */ 15916 } SYSMPU_Type; 15917 15918 /* ---------------------------------------------------------------------------- 15919 -- SYSMPU Register Masks 15920 ---------------------------------------------------------------------------- */ 15921 15922 /*! 15923 * @addtogroup SYSMPU_Register_Masks SYSMPU Register Masks 15924 * @{ 15925 */ 15926 15927 /*! @name CESR - Control/Error Status Register */ 15928 /*! @{ */ 15929 15930 #define SYSMPU_CESR_VLD_MASK (0x1U) 15931 #define SYSMPU_CESR_VLD_SHIFT (0U) 15932 /*! VLD - Valid 15933 * 0b0..MPU is disabled. All accesses from all bus masters are allowed. 15934 * 0b1..MPU is enabled 15935 */ 15936 #define SYSMPU_CESR_VLD(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_VLD_SHIFT)) & SYSMPU_CESR_VLD_MASK) 15937 15938 #define SYSMPU_CESR_NRGD_MASK (0xF00U) 15939 #define SYSMPU_CESR_NRGD_SHIFT (8U) 15940 /*! NRGD - Number Of Region Descriptors 15941 * 0b0000..8 region descriptors 15942 * 0b0001..12 region descriptors 15943 * 0b0010..16 region descriptors 15944 */ 15945 #define SYSMPU_CESR_NRGD(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_NRGD_SHIFT)) & SYSMPU_CESR_NRGD_MASK) 15946 15947 #define SYSMPU_CESR_NSP_MASK (0xF000U) 15948 #define SYSMPU_CESR_NSP_SHIFT (12U) 15949 /*! NSP - Number Of Slave Ports 15950 */ 15951 #define SYSMPU_CESR_NSP(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_NSP_SHIFT)) & SYSMPU_CESR_NSP_MASK) 15952 15953 #define SYSMPU_CESR_HRL_MASK (0xF0000U) 15954 #define SYSMPU_CESR_HRL_SHIFT (16U) 15955 /*! HRL - Hardware Revision Level 15956 */ 15957 #define SYSMPU_CESR_HRL(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_HRL_SHIFT)) & SYSMPU_CESR_HRL_MASK) 15958 15959 #define SYSMPU_CESR_SPERR_MASK (0xC0000000U) 15960 #define SYSMPU_CESR_SPERR_SHIFT (30U) 15961 /*! SPERR - Slave Port n Error 15962 * 0b00..No error has occurred for slave port n. 15963 * 0b01..An error has occurred for slave port n. 15964 */ 15965 #define SYSMPU_CESR_SPERR(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_CESR_SPERR_SHIFT)) & SYSMPU_CESR_SPERR_MASK) 15966 /*! @} */ 15967 15968 /*! @name EAR - Error Address Register, slave port n */ 15969 /*! @{ */ 15970 15971 #define SYSMPU_EAR_EADDR_MASK (0xFFFFFFFFU) 15972 #define SYSMPU_EAR_EADDR_SHIFT (0U) 15973 /*! EADDR - Error Address 15974 */ 15975 #define SYSMPU_EAR_EADDR(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EAR_EADDR_SHIFT)) & SYSMPU_EAR_EADDR_MASK) 15976 /*! @} */ 15977 15978 /* The count of SYSMPU_EAR */ 15979 #define SYSMPU_EAR_COUNT (2U) 15980 15981 /*! @name EDR - Error Detail Register, slave port n */ 15982 /*! @{ */ 15983 15984 #define SYSMPU_EDR_ERW_MASK (0x1U) 15985 #define SYSMPU_EDR_ERW_SHIFT (0U) 15986 /*! ERW - Error Read/Write 15987 * 0b0..Read 15988 * 0b1..Write 15989 */ 15990 #define SYSMPU_EDR_ERW(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_ERW_SHIFT)) & SYSMPU_EDR_ERW_MASK) 15991 15992 #define SYSMPU_EDR_EATTR_MASK (0xEU) 15993 #define SYSMPU_EDR_EATTR_SHIFT (1U) 15994 /*! EATTR - Error Attributes 15995 * 0b000..User mode, instruction access 15996 * 0b001..User mode, data access 15997 * 0b010..Supervisor mode, instruction access 15998 * 0b011..Supervisor mode, data access 15999 */ 16000 #define SYSMPU_EDR_EATTR(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_EATTR_SHIFT)) & SYSMPU_EDR_EATTR_MASK) 16001 16002 #define SYSMPU_EDR_EMN_MASK (0xF0U) 16003 #define SYSMPU_EDR_EMN_SHIFT (4U) 16004 /*! EMN - Error Master Number 16005 */ 16006 #define SYSMPU_EDR_EMN(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_EMN_SHIFT)) & SYSMPU_EDR_EMN_MASK) 16007 16008 #define SYSMPU_EDR_EPID_MASK (0xFF00U) 16009 #define SYSMPU_EDR_EPID_SHIFT (8U) 16010 /*! EPID - Error Process Identification 16011 */ 16012 #define SYSMPU_EDR_EPID(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_EPID_SHIFT)) & SYSMPU_EDR_EPID_MASK) 16013 16014 #define SYSMPU_EDR_EACD_MASK (0xFFFF0000U) 16015 #define SYSMPU_EDR_EACD_SHIFT (16U) 16016 /*! EACD - Error Access Control Detail 16017 */ 16018 #define SYSMPU_EDR_EACD(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_EDR_EACD_SHIFT)) & SYSMPU_EDR_EACD_MASK) 16019 /*! @} */ 16020 16021 /* The count of SYSMPU_EDR */ 16022 #define SYSMPU_EDR_COUNT (2U) 16023 16024 /*! @name WORD - Region Descriptor n, Word 0..Region Descriptor n, Word 3 */ 16025 /*! @{ */ 16026 16027 #define SYSMPU_WORD_M0UM_MASK (0x7U) 16028 #define SYSMPU_WORD_M0UM_SHIFT (0U) 16029 /*! M0UM - Bus Master 0 User Mode Access Control 16030 */ 16031 #define SYSMPU_WORD_M0UM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M0UM_SHIFT)) & SYSMPU_WORD_M0UM_MASK) 16032 16033 #define SYSMPU_WORD_VLD_MASK (0x1U) 16034 #define SYSMPU_WORD_VLD_SHIFT (0U) 16035 /*! VLD - Valid 16036 * 0b0..Region descriptor is invalid 16037 * 0b1..Region descriptor is valid 16038 */ 16039 #define SYSMPU_WORD_VLD(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_VLD_SHIFT)) & SYSMPU_WORD_VLD_MASK) 16040 16041 #define SYSMPU_WORD_M0SM_MASK (0x18U) 16042 #define SYSMPU_WORD_M0SM_SHIFT (3U) 16043 /*! M0SM - Bus Master 0 Supervisor Mode Access Control 16044 */ 16045 #define SYSMPU_WORD_M0SM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M0SM_SHIFT)) & SYSMPU_WORD_M0SM_MASK) 16046 16047 #define SYSMPU_WORD_ENDADDR_MASK (0xFFFFFFE0U) 16048 #define SYSMPU_WORD_ENDADDR_SHIFT (5U) 16049 /*! ENDADDR - End Address 16050 */ 16051 #define SYSMPU_WORD_ENDADDR(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_ENDADDR_SHIFT)) & SYSMPU_WORD_ENDADDR_MASK) 16052 16053 #define SYSMPU_WORD_M0PE_MASK (0x20U) 16054 #define SYSMPU_WORD_M0PE_SHIFT (5U) 16055 /*! M0PE - Bus Master 0 Process Identifier enable 16056 */ 16057 #define SYSMPU_WORD_M0PE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M0PE_SHIFT)) & SYSMPU_WORD_M0PE_MASK) 16058 16059 #define SYSMPU_WORD_SRTADDR_MASK (0xFFFFFFE0U) 16060 #define SYSMPU_WORD_SRTADDR_SHIFT (5U) 16061 /*! SRTADDR - Start Address 16062 */ 16063 #define SYSMPU_WORD_SRTADDR(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_SRTADDR_SHIFT)) & SYSMPU_WORD_SRTADDR_MASK) 16064 16065 #define SYSMPU_WORD_M1UM_MASK (0x1C0U) 16066 #define SYSMPU_WORD_M1UM_SHIFT (6U) 16067 /*! M1UM - Bus Master 1 User Mode Access Control 16068 */ 16069 #define SYSMPU_WORD_M1UM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M1UM_SHIFT)) & SYSMPU_WORD_M1UM_MASK) 16070 16071 #define SYSMPU_WORD_M1SM_MASK (0x600U) 16072 #define SYSMPU_WORD_M1SM_SHIFT (9U) 16073 /*! M1SM - Bus Master 1 Supervisor Mode Access Control 16074 */ 16075 #define SYSMPU_WORD_M1SM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M1SM_SHIFT)) & SYSMPU_WORD_M1SM_MASK) 16076 16077 #define SYSMPU_WORD_M1PE_MASK (0x800U) 16078 #define SYSMPU_WORD_M1PE_SHIFT (11U) 16079 /*! M1PE - Bus Master 1 Process Identifier enable 16080 */ 16081 #define SYSMPU_WORD_M1PE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M1PE_SHIFT)) & SYSMPU_WORD_M1PE_MASK) 16082 16083 #define SYSMPU_WORD_M2UM_MASK (0x7000U) 16084 #define SYSMPU_WORD_M2UM_SHIFT (12U) 16085 /*! M2UM - Bus Master 2 User Mode Access control 16086 */ 16087 #define SYSMPU_WORD_M2UM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M2UM_SHIFT)) & SYSMPU_WORD_M2UM_MASK) 16088 16089 #define SYSMPU_WORD_M2SM_MASK (0x18000U) 16090 #define SYSMPU_WORD_M2SM_SHIFT (15U) 16091 /*! M2SM - Bus Master 2 Supervisor Mode Access Control 16092 */ 16093 #define SYSMPU_WORD_M2SM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M2SM_SHIFT)) & SYSMPU_WORD_M2SM_MASK) 16094 16095 #define SYSMPU_WORD_PIDMASK_MASK (0xFF0000U) 16096 #define SYSMPU_WORD_PIDMASK_SHIFT (16U) 16097 /*! PIDMASK - Process Identifier Mask 16098 */ 16099 #define SYSMPU_WORD_PIDMASK(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_PIDMASK_SHIFT)) & SYSMPU_WORD_PIDMASK_MASK) 16100 16101 #define SYSMPU_WORD_M2PE_MASK (0x20000U) 16102 #define SYSMPU_WORD_M2PE_SHIFT (17U) 16103 /*! M2PE - Bus Master 2 Process Identifier Enable 16104 */ 16105 #define SYSMPU_WORD_M2PE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M2PE_SHIFT)) & SYSMPU_WORD_M2PE_MASK) 16106 16107 #define SYSMPU_WORD_M3UM_MASK (0x1C0000U) 16108 #define SYSMPU_WORD_M3UM_SHIFT (18U) 16109 /*! M3UM - Bus Master 3 User Mode Access Control 16110 * 0b000..An attempted access of that mode may be terminated with an access error (if not allowed by another descriptor) and the access not performed. 16111 * 0b001..Allows the given access type to occur 16112 */ 16113 #define SYSMPU_WORD_M3UM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M3UM_SHIFT)) & SYSMPU_WORD_M3UM_MASK) 16114 16115 #define SYSMPU_WORD_M3SM_MASK (0x600000U) 16116 #define SYSMPU_WORD_M3SM_SHIFT (21U) 16117 /*! M3SM - Bus Master 3 Supervisor Mode Access Control 16118 * 0b00..r/w/x; read, write and execute allowed 16119 * 0b01..r/x; read and execute allowed, but no write 16120 * 0b10..r/w; read and write allowed, but no execute 16121 * 0b11..Same as User mode defined in M3UM 16122 */ 16123 #define SYSMPU_WORD_M3SM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M3SM_SHIFT)) & SYSMPU_WORD_M3SM_MASK) 16124 16125 #define SYSMPU_WORD_M3PE_MASK (0x800000U) 16126 #define SYSMPU_WORD_M3PE_SHIFT (23U) 16127 /*! M3PE - Bus Master 3 Process Identifier Enable 16128 * 0b0..Do not include the process identifier in the evaluation 16129 * 0b1..Include the process identifier and mask (RGDn_WORD3) in the region hit evaluation 16130 */ 16131 #define SYSMPU_WORD_M3PE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M3PE_SHIFT)) & SYSMPU_WORD_M3PE_MASK) 16132 16133 #define SYSMPU_WORD_M4WE_MASK (0x1000000U) 16134 #define SYSMPU_WORD_M4WE_SHIFT (24U) 16135 /*! M4WE - Bus Master 4 Write Enable 16136 * 0b0..Bus master 4 writes terminate with an access error and the write is not performed 16137 * 0b1..Bus master 4 writes allowed 16138 */ 16139 #define SYSMPU_WORD_M4WE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M4WE_SHIFT)) & SYSMPU_WORD_M4WE_MASK) 16140 16141 #define SYSMPU_WORD_PID_MASK (0xFF000000U) 16142 #define SYSMPU_WORD_PID_SHIFT (24U) 16143 /*! PID - Process Identifier 16144 */ 16145 #define SYSMPU_WORD_PID(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_PID_SHIFT)) & SYSMPU_WORD_PID_MASK) 16146 16147 #define SYSMPU_WORD_M4RE_MASK (0x2000000U) 16148 #define SYSMPU_WORD_M4RE_SHIFT (25U) 16149 /*! M4RE - Bus Master 4 Read Enable 16150 * 0b0..Bus master 4 reads terminate with an access error and the read is not performed 16151 * 0b1..Bus master 4 reads allowed 16152 */ 16153 #define SYSMPU_WORD_M4RE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M4RE_SHIFT)) & SYSMPU_WORD_M4RE_MASK) 16154 16155 #define SYSMPU_WORD_M5WE_MASK (0x4000000U) 16156 #define SYSMPU_WORD_M5WE_SHIFT (26U) 16157 /*! M5WE - Bus Master 5 Write Enable 16158 * 0b0..Bus master 5 writes terminate with an access error and the write is not performed 16159 * 0b1..Bus master 5 writes allowed 16160 */ 16161 #define SYSMPU_WORD_M5WE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M5WE_SHIFT)) & SYSMPU_WORD_M5WE_MASK) 16162 16163 #define SYSMPU_WORD_M5RE_MASK (0x8000000U) 16164 #define SYSMPU_WORD_M5RE_SHIFT (27U) 16165 /*! M5RE - Bus Master 5 Read Enable 16166 * 0b0..Bus master 5 reads terminate with an access error and the read is not performed 16167 * 0b1..Bus master 5 reads allowed 16168 */ 16169 #define SYSMPU_WORD_M5RE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M5RE_SHIFT)) & SYSMPU_WORD_M5RE_MASK) 16170 16171 #define SYSMPU_WORD_M6WE_MASK (0x10000000U) 16172 #define SYSMPU_WORD_M6WE_SHIFT (28U) 16173 /*! M6WE - Bus Master 6 Write Enable 16174 * 0b0..Bus master 6 writes terminate with an access error and the write is not performed 16175 * 0b1..Bus master 6 writes allowed 16176 */ 16177 #define SYSMPU_WORD_M6WE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M6WE_SHIFT)) & SYSMPU_WORD_M6WE_MASK) 16178 16179 #define SYSMPU_WORD_M6RE_MASK (0x20000000U) 16180 #define SYSMPU_WORD_M6RE_SHIFT (29U) 16181 /*! M6RE - Bus Master 6 Read Enable 16182 * 0b0..Bus master 6 reads terminate with an access error and the read is not performed 16183 * 0b1..Bus master 6 reads allowed 16184 */ 16185 #define SYSMPU_WORD_M6RE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M6RE_SHIFT)) & SYSMPU_WORD_M6RE_MASK) 16186 16187 #define SYSMPU_WORD_M7WE_MASK (0x40000000U) 16188 #define SYSMPU_WORD_M7WE_SHIFT (30U) 16189 /*! M7WE - Bus Master 7 Write Enable 16190 * 0b0..Bus master 7 writes terminate with an access error and the write is not performed 16191 * 0b1..Bus master 7 writes allowed 16192 */ 16193 #define SYSMPU_WORD_M7WE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M7WE_SHIFT)) & SYSMPU_WORD_M7WE_MASK) 16194 16195 #define SYSMPU_WORD_M7RE_MASK (0x80000000U) 16196 #define SYSMPU_WORD_M7RE_SHIFT (31U) 16197 /*! M7RE - Bus Master 7 Read Enable 16198 * 0b0..Bus master 7 reads terminate with an access error and the read is not performed 16199 * 0b1..Bus master 7 reads allowed 16200 */ 16201 #define SYSMPU_WORD_M7RE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_WORD_M7RE_SHIFT)) & SYSMPU_WORD_M7RE_MASK) 16202 /*! @} */ 16203 16204 /* The count of SYSMPU_WORD */ 16205 #define SYSMPU_WORD_COUNT (8U) 16206 16207 /* The count of SYSMPU_WORD */ 16208 #define SYSMPU_WORD_COUNT2 (4U) 16209 16210 /*! @name RGDAAC - Region Descriptor Alternate Access Control n */ 16211 /*! @{ */ 16212 16213 #define SYSMPU_RGDAAC_M0UM_MASK (0x7U) 16214 #define SYSMPU_RGDAAC_M0UM_SHIFT (0U) 16215 /*! M0UM - Bus Master 0 User Mode Access Control 16216 */ 16217 #define SYSMPU_RGDAAC_M0UM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M0UM_SHIFT)) & SYSMPU_RGDAAC_M0UM_MASK) 16218 16219 #define SYSMPU_RGDAAC_M0SM_MASK (0x18U) 16220 #define SYSMPU_RGDAAC_M0SM_SHIFT (3U) 16221 /*! M0SM - Bus Master 0 Supervisor Mode Access Control 16222 */ 16223 #define SYSMPU_RGDAAC_M0SM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M0SM_SHIFT)) & SYSMPU_RGDAAC_M0SM_MASK) 16224 16225 #define SYSMPU_RGDAAC_M0PE_MASK (0x20U) 16226 #define SYSMPU_RGDAAC_M0PE_SHIFT (5U) 16227 /*! M0PE - Bus Master 0 Process Identifier Enable 16228 */ 16229 #define SYSMPU_RGDAAC_M0PE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M0PE_SHIFT)) & SYSMPU_RGDAAC_M0PE_MASK) 16230 16231 #define SYSMPU_RGDAAC_M1UM_MASK (0x1C0U) 16232 #define SYSMPU_RGDAAC_M1UM_SHIFT (6U) 16233 /*! M1UM - Bus Master 1 User Mode Access Control 16234 */ 16235 #define SYSMPU_RGDAAC_M1UM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M1UM_SHIFT)) & SYSMPU_RGDAAC_M1UM_MASK) 16236 16237 #define SYSMPU_RGDAAC_M1SM_MASK (0x600U) 16238 #define SYSMPU_RGDAAC_M1SM_SHIFT (9U) 16239 /*! M1SM - Bus Master 1 Supervisor Mode Access Control 16240 */ 16241 #define SYSMPU_RGDAAC_M1SM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M1SM_SHIFT)) & SYSMPU_RGDAAC_M1SM_MASK) 16242 16243 #define SYSMPU_RGDAAC_M1PE_MASK (0x800U) 16244 #define SYSMPU_RGDAAC_M1PE_SHIFT (11U) 16245 /*! M1PE - Bus Master 1 Process Identifier Enable 16246 */ 16247 #define SYSMPU_RGDAAC_M1PE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M1PE_SHIFT)) & SYSMPU_RGDAAC_M1PE_MASK) 16248 16249 #define SYSMPU_RGDAAC_M2UM_MASK (0x7000U) 16250 #define SYSMPU_RGDAAC_M2UM_SHIFT (12U) 16251 /*! M2UM - Bus Master 2 User Mode Access Control 16252 */ 16253 #define SYSMPU_RGDAAC_M2UM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M2UM_SHIFT)) & SYSMPU_RGDAAC_M2UM_MASK) 16254 16255 #define SYSMPU_RGDAAC_M2SM_MASK (0x18000U) 16256 #define SYSMPU_RGDAAC_M2SM_SHIFT (15U) 16257 /*! M2SM - Bus Master 2 Supervisor Mode Access Control 16258 */ 16259 #define SYSMPU_RGDAAC_M2SM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M2SM_SHIFT)) & SYSMPU_RGDAAC_M2SM_MASK) 16260 16261 #define SYSMPU_RGDAAC_M2PE_MASK (0x20000U) 16262 #define SYSMPU_RGDAAC_M2PE_SHIFT (17U) 16263 /*! M2PE - Bus Master 2 Process Identifier Enable 16264 */ 16265 #define SYSMPU_RGDAAC_M2PE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M2PE_SHIFT)) & SYSMPU_RGDAAC_M2PE_MASK) 16266 16267 #define SYSMPU_RGDAAC_M3UM_MASK (0x1C0000U) 16268 #define SYSMPU_RGDAAC_M3UM_SHIFT (18U) 16269 /*! M3UM - Bus Master 3 User Mode Access Control 16270 * 0b000..An attempted access of that mode may be terminated with an access error (if not allowed by another descriptor) and the access not performed. 16271 * 0b001..Allows the given access type to occur 16272 */ 16273 #define SYSMPU_RGDAAC_M3UM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M3UM_SHIFT)) & SYSMPU_RGDAAC_M3UM_MASK) 16274 16275 #define SYSMPU_RGDAAC_M3SM_MASK (0x600000U) 16276 #define SYSMPU_RGDAAC_M3SM_SHIFT (21U) 16277 /*! M3SM - Bus Master 3 Supervisor Mode Access Control 16278 * 0b00..r/w/x; read, write and execute allowed 16279 * 0b01..r/x; read and execute allowed, but no write 16280 * 0b10..r/w; read and write allowed, but no execute 16281 * 0b11..Same as User mode defined in M3UM 16282 */ 16283 #define SYSMPU_RGDAAC_M3SM(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M3SM_SHIFT)) & SYSMPU_RGDAAC_M3SM_MASK) 16284 16285 #define SYSMPU_RGDAAC_M3PE_MASK (0x800000U) 16286 #define SYSMPU_RGDAAC_M3PE_SHIFT (23U) 16287 /*! M3PE - Bus Master 3 Process Identifier Enable 16288 * 0b0..Do not include the process identifier in the evaluation 16289 * 0b1..Include the process identifier and mask (RGDn.RGDAAC) in the region hit evaluation 16290 */ 16291 #define SYSMPU_RGDAAC_M3PE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M3PE_SHIFT)) & SYSMPU_RGDAAC_M3PE_MASK) 16292 16293 #define SYSMPU_RGDAAC_M4WE_MASK (0x1000000U) 16294 #define SYSMPU_RGDAAC_M4WE_SHIFT (24U) 16295 /*! M4WE - Bus Master 4 Write Enable 16296 * 0b0..Bus master 4 writes terminate with an access error and the write is not performed 16297 * 0b1..Bus master 4 writes allowed 16298 */ 16299 #define SYSMPU_RGDAAC_M4WE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M4WE_SHIFT)) & SYSMPU_RGDAAC_M4WE_MASK) 16300 16301 #define SYSMPU_RGDAAC_M4RE_MASK (0x2000000U) 16302 #define SYSMPU_RGDAAC_M4RE_SHIFT (25U) 16303 /*! M4RE - Bus Master 4 Read Enable 16304 * 0b0..Bus master 4 reads terminate with an access error and the read is not performed 16305 * 0b1..Bus master 4 reads allowed 16306 */ 16307 #define SYSMPU_RGDAAC_M4RE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M4RE_SHIFT)) & SYSMPU_RGDAAC_M4RE_MASK) 16308 16309 #define SYSMPU_RGDAAC_M5WE_MASK (0x4000000U) 16310 #define SYSMPU_RGDAAC_M5WE_SHIFT (26U) 16311 /*! M5WE - Bus Master 5 Write Enable 16312 * 0b0..Bus master 5 writes terminate with an access error and the write is not performed 16313 * 0b1..Bus master 5 writes allowed 16314 */ 16315 #define SYSMPU_RGDAAC_M5WE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M5WE_SHIFT)) & SYSMPU_RGDAAC_M5WE_MASK) 16316 16317 #define SYSMPU_RGDAAC_M5RE_MASK (0x8000000U) 16318 #define SYSMPU_RGDAAC_M5RE_SHIFT (27U) 16319 /*! M5RE - Bus Master 5 Read Enable 16320 * 0b0..Bus master 5 reads terminate with an access error and the read is not performed 16321 * 0b1..Bus master 5 reads allowed 16322 */ 16323 #define SYSMPU_RGDAAC_M5RE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M5RE_SHIFT)) & SYSMPU_RGDAAC_M5RE_MASK) 16324 16325 #define SYSMPU_RGDAAC_M6WE_MASK (0x10000000U) 16326 #define SYSMPU_RGDAAC_M6WE_SHIFT (28U) 16327 /*! M6WE - Bus Master 6 Write Enable 16328 * 0b0..Bus master 6 writes terminate with an access error and the write is not performed 16329 * 0b1..Bus master 6 writes allowed 16330 */ 16331 #define SYSMPU_RGDAAC_M6WE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M6WE_SHIFT)) & SYSMPU_RGDAAC_M6WE_MASK) 16332 16333 #define SYSMPU_RGDAAC_M6RE_MASK (0x20000000U) 16334 #define SYSMPU_RGDAAC_M6RE_SHIFT (29U) 16335 /*! M6RE - Bus Master 6 Read Enable 16336 * 0b0..Bus master 6 reads terminate with an access error and the read is not performed 16337 * 0b1..Bus master 6 reads allowed 16338 */ 16339 #define SYSMPU_RGDAAC_M6RE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M6RE_SHIFT)) & SYSMPU_RGDAAC_M6RE_MASK) 16340 16341 #define SYSMPU_RGDAAC_M7WE_MASK (0x40000000U) 16342 #define SYSMPU_RGDAAC_M7WE_SHIFT (30U) 16343 /*! M7WE - Bus Master 7 Write Enable 16344 * 0b0..Bus master 7 writes terminate with an access error and the write is not performed 16345 * 0b1..Bus master 7 writes allowed 16346 */ 16347 #define SYSMPU_RGDAAC_M7WE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M7WE_SHIFT)) & SYSMPU_RGDAAC_M7WE_MASK) 16348 16349 #define SYSMPU_RGDAAC_M7RE_MASK (0x80000000U) 16350 #define SYSMPU_RGDAAC_M7RE_SHIFT (31U) 16351 /*! M7RE - Bus Master 7 Read Enable 16352 * 0b0..Bus master 7 reads terminate with an access error and the read is not performed 16353 * 0b1..Bus master 7 reads allowed 16354 */ 16355 #define SYSMPU_RGDAAC_M7RE(x) (((uint32_t)(((uint32_t)(x)) << SYSMPU_RGDAAC_M7RE_SHIFT)) & SYSMPU_RGDAAC_M7RE_MASK) 16356 /*! @} */ 16357 16358 /* The count of SYSMPU_RGDAAC */ 16359 #define SYSMPU_RGDAAC_COUNT (8U) 16360 16361 16362 /*! 16363 * @} 16364 */ /* end of group SYSMPU_Register_Masks */ 16365 16366 16367 /* SYSMPU - Peripheral instance base addresses */ 16368 /** Peripheral SYSMPU base address */ 16369 #define SYSMPU_BASE (0x4000A000u) 16370 /** Peripheral SYSMPU base pointer */ 16371 #define SYSMPU ((SYSMPU_Type *)SYSMPU_BASE) 16372 /** Array initializer of SYSMPU peripheral base addresses */ 16373 #define SYSMPU_BASE_ADDRS { SYSMPU_BASE } 16374 /** Array initializer of SYSMPU peripheral base pointers */ 16375 #define SYSMPU_BASE_PTRS { SYSMPU } 16376 16377 /*! 16378 * @} 16379 */ /* end of group SYSMPU_Peripheral_Access_Layer */ 16380 16381 16382 /* ---------------------------------------------------------------------------- 16383 -- TMR Peripheral Access Layer 16384 ---------------------------------------------------------------------------- */ 16385 16386 /*! 16387 * @addtogroup TMR_Peripheral_Access_Layer TMR Peripheral Access Layer 16388 * @{ 16389 */ 16390 16391 /** TMR - Register Layout Typedef */ 16392 typedef struct { 16393 __IO uint16_t COMP1; /**< Timer Channel Compare Register 1, offset: 0x0 */ 16394 __IO uint16_t COMP2; /**< Timer Channel Compare Register 2, offset: 0x2 */ 16395 __IO uint16_t CAPT; /**< Timer Channel Capture Register, offset: 0x4 */ 16396 __IO uint16_t LOAD; /**< Timer Channel Load Register, offset: 0x6 */ 16397 __IO uint16_t HOLD; /**< Timer Channel Hold Register, offset: 0x8 */ 16398 __IO uint16_t CNTR; /**< Timer Channel Counter Register, offset: 0xA */ 16399 __IO uint16_t CTRL; /**< Timer Channel Control Register, offset: 0xC */ 16400 __IO uint16_t SCTRL; /**< Timer Channel Status and Control Register, offset: 0xE */ 16401 __IO uint16_t CMPLD1; /**< Timer Channel Comparator Load Register 1, offset: 0x10 */ 16402 __IO uint16_t CMPLD2; /**< Timer Channel Comparator Load Register 2, offset: 0x12 */ 16403 __IO uint16_t CSCTRL; /**< Timer Channel Comparator Status and Control Register, offset: 0x14 */ 16404 __IO uint16_t FILT; /**< Timer Channel Input Filter Register, offset: 0x16 */ 16405 uint8_t RESERVED_0[6]; 16406 __IO uint16_t ENBL; /**< Timer Channel Enable Register, offset: 0x1E */ 16407 } TMR_Type; 16408 16409 /* ---------------------------------------------------------------------------- 16410 -- TMR Register Masks 16411 ---------------------------------------------------------------------------- */ 16412 16413 /*! 16414 * @addtogroup TMR_Register_Masks TMR Register Masks 16415 * @{ 16416 */ 16417 16418 /*! @name COMP1 - Timer Channel Compare Register 1 */ 16419 /*! @{ */ 16420 16421 #define TMR_COMP1_COMPARISON_1_MASK (0xFFFFU) 16422 #define TMR_COMP1_COMPARISON_1_SHIFT (0U) 16423 /*! COMPARISON_1 - Comparison Value 1 16424 */ 16425 #define TMR_COMP1_COMPARISON_1(x) (((uint16_t)(((uint16_t)(x)) << TMR_COMP1_COMPARISON_1_SHIFT)) & TMR_COMP1_COMPARISON_1_MASK) 16426 /*! @} */ 16427 16428 /*! @name COMP2 - Timer Channel Compare Register 2 */ 16429 /*! @{ */ 16430 16431 #define TMR_COMP2_COMPARISON_2_MASK (0xFFFFU) 16432 #define TMR_COMP2_COMPARISON_2_SHIFT (0U) 16433 /*! COMPARISON_2 - Comparison Value 2 16434 */ 16435 #define TMR_COMP2_COMPARISON_2(x) (((uint16_t)(((uint16_t)(x)) << TMR_COMP2_COMPARISON_2_SHIFT)) & TMR_COMP2_COMPARISON_2_MASK) 16436 /*! @} */ 16437 16438 /*! @name CAPT - Timer Channel Capture Register */ 16439 /*! @{ */ 16440 16441 #define TMR_CAPT_CAPTURE_MASK (0xFFFFU) 16442 #define TMR_CAPT_CAPTURE_SHIFT (0U) 16443 /*! CAPTURE - Capture Value 16444 */ 16445 #define TMR_CAPT_CAPTURE(x) (((uint16_t)(((uint16_t)(x)) << TMR_CAPT_CAPTURE_SHIFT)) & TMR_CAPT_CAPTURE_MASK) 16446 /*! @} */ 16447 16448 /*! @name LOAD - Timer Channel Load Register */ 16449 /*! @{ */ 16450 16451 #define TMR_LOAD_LOAD_MASK (0xFFFFU) 16452 #define TMR_LOAD_LOAD_SHIFT (0U) 16453 /*! LOAD - Timer Load Register 16454 */ 16455 #define TMR_LOAD_LOAD(x) (((uint16_t)(((uint16_t)(x)) << TMR_LOAD_LOAD_SHIFT)) & TMR_LOAD_LOAD_MASK) 16456 /*! @} */ 16457 16458 /*! @name HOLD - Timer Channel Hold Register */ 16459 /*! @{ */ 16460 16461 #define TMR_HOLD_HOLD_MASK (0xFFFFU) 16462 #define TMR_HOLD_HOLD_SHIFT (0U) 16463 #define TMR_HOLD_HOLD(x) (((uint16_t)(((uint16_t)(x)) << TMR_HOLD_HOLD_SHIFT)) & TMR_HOLD_HOLD_MASK) 16464 /*! @} */ 16465 16466 /*! @name CNTR - Timer Channel Counter Register */ 16467 /*! @{ */ 16468 16469 #define TMR_CNTR_COUNTER_MASK (0xFFFFU) 16470 #define TMR_CNTR_COUNTER_SHIFT (0U) 16471 #define TMR_CNTR_COUNTER(x) (((uint16_t)(((uint16_t)(x)) << TMR_CNTR_COUNTER_SHIFT)) & TMR_CNTR_COUNTER_MASK) 16472 /*! @} */ 16473 16474 /*! @name CTRL - Timer Channel Control Register */ 16475 /*! @{ */ 16476 16477 #define TMR_CTRL_OUTMODE_MASK (0x7U) 16478 #define TMR_CTRL_OUTMODE_SHIFT (0U) 16479 /*! OUTMODE - Output Mode 16480 * 0b000..Asserted while counter is active 16481 * 0b001..Clear OFLAG output on successful compare 16482 * 0b010..Set OFLAG output on successful compare 16483 * 0b011..Toggle OFLAG output on successful compare 16484 * 0b100..Toggle OFLAG output using alternating compare registers 16485 * 0b101..Set on compare, cleared on secondary source input edge 16486 * 0b110..Set on compare, cleared on counter rollover 16487 * 0b111..Enable gated clock output while counter is active 16488 */ 16489 #define TMR_CTRL_OUTMODE(x) (((uint16_t)(((uint16_t)(x)) << TMR_CTRL_OUTMODE_SHIFT)) & TMR_CTRL_OUTMODE_MASK) 16490 16491 #define TMR_CTRL_COINIT_MASK (0x8U) 16492 #define TMR_CTRL_COINIT_SHIFT (3U) 16493 /*! COINIT - Co-Channel Initialization 16494 * 0b0..Co-channel counter/timers cannot force a re-initialization of this counter/timer 16495 * 0b1..Co-channel counter/timers may force a re-initialization of this counter/timer 16496 */ 16497 #define TMR_CTRL_COINIT(x) (((uint16_t)(((uint16_t)(x)) << TMR_CTRL_COINIT_SHIFT)) & TMR_CTRL_COINIT_MASK) 16498 16499 #define TMR_CTRL_DIR_MASK (0x10U) 16500 #define TMR_CTRL_DIR_SHIFT (4U) 16501 /*! DIR - Count Direction 16502 * 0b0..Count up. 16503 * 0b1..Count down. 16504 */ 16505 #define TMR_CTRL_DIR(x) (((uint16_t)(((uint16_t)(x)) << TMR_CTRL_DIR_SHIFT)) & TMR_CTRL_DIR_MASK) 16506 16507 #define TMR_CTRL_LENGTH_MASK (0x20U) 16508 #define TMR_CTRL_LENGTH_SHIFT (5U) 16509 /*! LENGTH - Count Length 16510 * 0b0..Roll over. 16511 * 0b1..Count until compare, then re-initialize. If counting up, a successful compare occurs when the counter 16512 * reaches a COMP1 value. If counting down, a successful compare occurs when the counter reaches a COMP2 value. 16513 * When output mode $4 is used, alternating values of COMP1 and COMP2 are used to generate successful 16514 * comparisons. For example, the counter counts until a COMP1 value is reached, re-initializes, counts until COMP2 16515 * value is reached, re-initializes, counts until COMP1 value is reached, and so on. 16516 */ 16517 #define TMR_CTRL_LENGTH(x) (((uint16_t)(((uint16_t)(x)) << TMR_CTRL_LENGTH_SHIFT)) & TMR_CTRL_LENGTH_MASK) 16518 16519 #define TMR_CTRL_ONCE_MASK (0x40U) 16520 #define TMR_CTRL_ONCE_SHIFT (6U) 16521 /*! ONCE - Count Once 16522 * 0b0..Count repeatedly. 16523 * 0b1..Count until compare and then stop. If counting up, a successful compare occurs when the counter reaches a 16524 * COMP1 value. If counting down, a successful compare occurs when the counter reaches a COMP2 value. When 16525 * output mode $4 is used, the counter re-initializes after reaching the COMP1 value, continues to count to 16526 * the COMP2 value, and then stops. 16527 */ 16528 #define TMR_CTRL_ONCE(x) (((uint16_t)(((uint16_t)(x)) << TMR_CTRL_ONCE_SHIFT)) & TMR_CTRL_ONCE_MASK) 16529 16530 #define TMR_CTRL_SCS_MASK (0x180U) 16531 #define TMR_CTRL_SCS_SHIFT (7U) 16532 /*! SCS - Secondary Count Source 16533 * 0b00..Counter 0 input pin 16534 * 0b01..Counter 1 input pin 16535 * 0b10..Counter 2 input pin 16536 * 0b11..Counter 3 input pin 16537 */ 16538 #define TMR_CTRL_SCS(x) (((uint16_t)(((uint16_t)(x)) << TMR_CTRL_SCS_SHIFT)) & TMR_CTRL_SCS_MASK) 16539 16540 #define TMR_CTRL_PCS_MASK (0x1E00U) 16541 #define TMR_CTRL_PCS_SHIFT (9U) 16542 /*! PCS - Primary Count Source 16543 * 0b0000..Counter 0 input pin 16544 * 0b0001..Counter 1 input pin 16545 * 0b0010..Counter 2 input pin 16546 * 0b0011..Counter 3 input pin 16547 * 0b0100..Counter 0 output 16548 * 0b0101..Counter 1 output 16549 * 0b0110..Counter 2 output 16550 * 0b0111..Counter 3 output 16551 * 0b1000..IP bus clock divide by 1 prescaler 16552 * 0b1001..IP bus clock divide by 2 prescaler 16553 * 0b1010..IP bus clock divide by 4 prescaler 16554 * 0b1011..IP bus clock divide by 8 prescaler 16555 * 0b1100..IP bus clock divide by 16 prescaler 16556 * 0b1101..IP bus clock divide by 32 prescaler 16557 * 0b1110..IP bus clock divide by 64 prescaler 16558 * 0b1111..IP bus clock divide by 128 prescaler 16559 */ 16560 #define TMR_CTRL_PCS(x) (((uint16_t)(((uint16_t)(x)) << TMR_CTRL_PCS_SHIFT)) & TMR_CTRL_PCS_MASK) 16561 16562 #define TMR_CTRL_CM_MASK (0xE000U) 16563 #define TMR_CTRL_CM_SHIFT (13U) 16564 /*! CM - Count Mode 16565 * 0b000..No operation 16566 * 0b001..Count rising edges of primary sourceRising edges are counted only when SCTRL[IPS] = 0. Falling edges 16567 * are counted when SCTRL[IPS] = 1. If the primary count source is IP bus clock divide by 1, only rising 16568 * edges are counted regardless of the value of SCTRL[IPS]. 16569 * 0b010..Count rising and falling edges of primary sourceIP bus clock divide by 1 cannot be used as a primary count source in edge count mode. 16570 * 0b011..Count rising edges of primary source while secondary input high active 16571 * 0b100..Quadrature count mode, uses primary and secondary sources 16572 * 0b101..Count rising edges of primary source; secondary source specifies directionRising edges are counted only 16573 * when SCTRL[IPS] = 0. Falling edges are counted when SCTRL[IPS] = 1. 16574 * 0b110..Edge of secondary source triggers primary count until compare 16575 * 0b111..Cascaded counter mode (up/down)The primary count source must be set to one of the counter outputs. 16576 */ 16577 #define TMR_CTRL_CM(x) (((uint16_t)(((uint16_t)(x)) << TMR_CTRL_CM_SHIFT)) & TMR_CTRL_CM_MASK) 16578 /*! @} */ 16579 16580 /*! @name SCTRL - Timer Channel Status and Control Register */ 16581 /*! @{ */ 16582 16583 #define TMR_SCTRL_OEN_MASK (0x1U) 16584 #define TMR_SCTRL_OEN_SHIFT (0U) 16585 /*! OEN - Output Enable 16586 * 0b0..The external pin is configured as an input. 16587 * 0b1..The OFLAG output signal is driven on the external pin. Other timer groups using this external pin as 16588 * their input see the driven value. The polarity of the signal is determined by OPS. 16589 */ 16590 #define TMR_SCTRL_OEN(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_OEN_SHIFT)) & TMR_SCTRL_OEN_MASK) 16591 16592 #define TMR_SCTRL_OPS_MASK (0x2U) 16593 #define TMR_SCTRL_OPS_SHIFT (1U) 16594 /*! OPS - Output Polarity Select 16595 * 0b0..True polarity. 16596 * 0b1..Inverted polarity. 16597 */ 16598 #define TMR_SCTRL_OPS(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_OPS_SHIFT)) & TMR_SCTRL_OPS_MASK) 16599 16600 #define TMR_SCTRL_FORCE_MASK (0x4U) 16601 #define TMR_SCTRL_FORCE_SHIFT (2U) 16602 /*! FORCE - Force OFLAG Output 16603 */ 16604 #define TMR_SCTRL_FORCE(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_FORCE_SHIFT)) & TMR_SCTRL_FORCE_MASK) 16605 16606 #define TMR_SCTRL_VAL_MASK (0x8U) 16607 #define TMR_SCTRL_VAL_SHIFT (3U) 16608 /*! VAL - Forced OFLAG Value 16609 */ 16610 #define TMR_SCTRL_VAL(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_VAL_SHIFT)) & TMR_SCTRL_VAL_MASK) 16611 16612 #define TMR_SCTRL_EEOF_MASK (0x10U) 16613 #define TMR_SCTRL_EEOF_SHIFT (4U) 16614 /*! EEOF - Enable External OFLAG Force 16615 */ 16616 #define TMR_SCTRL_EEOF(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_EEOF_SHIFT)) & TMR_SCTRL_EEOF_MASK) 16617 16618 #define TMR_SCTRL_MSTR_MASK (0x20U) 16619 #define TMR_SCTRL_MSTR_SHIFT (5U) 16620 /*! MSTR - Master Mode 16621 */ 16622 #define TMR_SCTRL_MSTR(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_MSTR_SHIFT)) & TMR_SCTRL_MSTR_MASK) 16623 16624 #define TMR_SCTRL_CAPTURE_MODE_MASK (0xC0U) 16625 #define TMR_SCTRL_CAPTURE_MODE_SHIFT (6U) 16626 /*! CAPTURE_MODE - Input Capture Mode 16627 * 0b00..Capture function is disabled 16628 * 0b01..Load capture register on rising edge (when IPS=0) or falling edge (when IPS=1) of input 16629 * 0b10..Load capture register on falling edge (when IPS=0) or rising edge (when IPS=1) of input 16630 * 0b11..Load capture register on both edges of input 16631 */ 16632 #define TMR_SCTRL_CAPTURE_MODE(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_CAPTURE_MODE_SHIFT)) & TMR_SCTRL_CAPTURE_MODE_MASK) 16633 16634 #define TMR_SCTRL_INPUT_MASK (0x100U) 16635 #define TMR_SCTRL_INPUT_SHIFT (8U) 16636 /*! INPUT - External Input Signal 16637 */ 16638 #define TMR_SCTRL_INPUT(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_INPUT_SHIFT)) & TMR_SCTRL_INPUT_MASK) 16639 16640 #define TMR_SCTRL_IPS_MASK (0x200U) 16641 #define TMR_SCTRL_IPS_SHIFT (9U) 16642 /*! IPS - Input Polarity Select 16643 */ 16644 #define TMR_SCTRL_IPS(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_IPS_SHIFT)) & TMR_SCTRL_IPS_MASK) 16645 16646 #define TMR_SCTRL_IEFIE_MASK (0x400U) 16647 #define TMR_SCTRL_IEFIE_SHIFT (10U) 16648 /*! IEFIE - Input Edge Flag Interrupt Enable 16649 */ 16650 #define TMR_SCTRL_IEFIE(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_IEFIE_SHIFT)) & TMR_SCTRL_IEFIE_MASK) 16651 16652 #define TMR_SCTRL_IEF_MASK (0x800U) 16653 #define TMR_SCTRL_IEF_SHIFT (11U) 16654 /*! IEF - Input Edge Flag 16655 */ 16656 #define TMR_SCTRL_IEF(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_IEF_SHIFT)) & TMR_SCTRL_IEF_MASK) 16657 16658 #define TMR_SCTRL_TOFIE_MASK (0x1000U) 16659 #define TMR_SCTRL_TOFIE_SHIFT (12U) 16660 /*! TOFIE - Timer Overflow Flag Interrupt Enable 16661 */ 16662 #define TMR_SCTRL_TOFIE(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_TOFIE_SHIFT)) & TMR_SCTRL_TOFIE_MASK) 16663 16664 #define TMR_SCTRL_TOF_MASK (0x2000U) 16665 #define TMR_SCTRL_TOF_SHIFT (13U) 16666 /*! TOF - Timer Overflow Flag 16667 */ 16668 #define TMR_SCTRL_TOF(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_TOF_SHIFT)) & TMR_SCTRL_TOF_MASK) 16669 16670 #define TMR_SCTRL_TCFIE_MASK (0x4000U) 16671 #define TMR_SCTRL_TCFIE_SHIFT (14U) 16672 /*! TCFIE - Timer Compare Flag Interrupt Enable 16673 */ 16674 #define TMR_SCTRL_TCFIE(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_TCFIE_SHIFT)) & TMR_SCTRL_TCFIE_MASK) 16675 16676 #define TMR_SCTRL_TCF_MASK (0x8000U) 16677 #define TMR_SCTRL_TCF_SHIFT (15U) 16678 /*! TCF - Timer Compare Flag 16679 */ 16680 #define TMR_SCTRL_TCF(x) (((uint16_t)(((uint16_t)(x)) << TMR_SCTRL_TCF_SHIFT)) & TMR_SCTRL_TCF_MASK) 16681 /*! @} */ 16682 16683 /*! @name CMPLD1 - Timer Channel Comparator Load Register 1 */ 16684 /*! @{ */ 16685 16686 #define TMR_CMPLD1_COMPARATOR_LOAD_1_MASK (0xFFFFU) 16687 #define TMR_CMPLD1_COMPARATOR_LOAD_1_SHIFT (0U) 16688 #define TMR_CMPLD1_COMPARATOR_LOAD_1(x) (((uint16_t)(((uint16_t)(x)) << TMR_CMPLD1_COMPARATOR_LOAD_1_SHIFT)) & TMR_CMPLD1_COMPARATOR_LOAD_1_MASK) 16689 /*! @} */ 16690 16691 /*! @name CMPLD2 - Timer Channel Comparator Load Register 2 */ 16692 /*! @{ */ 16693 16694 #define TMR_CMPLD2_COMPARATOR_LOAD_2_MASK (0xFFFFU) 16695 #define TMR_CMPLD2_COMPARATOR_LOAD_2_SHIFT (0U) 16696 #define TMR_CMPLD2_COMPARATOR_LOAD_2(x) (((uint16_t)(((uint16_t)(x)) << TMR_CMPLD2_COMPARATOR_LOAD_2_SHIFT)) & TMR_CMPLD2_COMPARATOR_LOAD_2_MASK) 16697 /*! @} */ 16698 16699 /*! @name CSCTRL - Timer Channel Comparator Status and Control Register */ 16700 /*! @{ */ 16701 16702 #define TMR_CSCTRL_CL1_MASK (0x3U) 16703 #define TMR_CSCTRL_CL1_SHIFT (0U) 16704 /*! CL1 - Compare Load Control 1 16705 * 0b00..Never preload 16706 * 0b01..Load upon successful compare with the value in COMP1 16707 * 0b10..Load upon successful compare with the value in COMP2 16708 * 0b11..Reserved 16709 */ 16710 #define TMR_CSCTRL_CL1(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_CL1_SHIFT)) & TMR_CSCTRL_CL1_MASK) 16711 16712 #define TMR_CSCTRL_CL2_MASK (0xCU) 16713 #define TMR_CSCTRL_CL2_SHIFT (2U) 16714 /*! CL2 - Compare Load Control 2 16715 * 0b00..Never preload 16716 * 0b01..Load upon successful compare with the value in COMP1 16717 * 0b10..Load upon successful compare with the value in COMP2 16718 * 0b11..Reserved 16719 */ 16720 #define TMR_CSCTRL_CL2(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_CL2_SHIFT)) & TMR_CSCTRL_CL2_MASK) 16721 16722 #define TMR_CSCTRL_TCF1_MASK (0x10U) 16723 #define TMR_CSCTRL_TCF1_SHIFT (4U) 16724 /*! TCF1 - Timer Compare 1 Interrupt Flag 16725 */ 16726 #define TMR_CSCTRL_TCF1(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_TCF1_SHIFT)) & TMR_CSCTRL_TCF1_MASK) 16727 16728 #define TMR_CSCTRL_TCF2_MASK (0x20U) 16729 #define TMR_CSCTRL_TCF2_SHIFT (5U) 16730 /*! TCF2 - Timer Compare 2 Interrupt Flag 16731 */ 16732 #define TMR_CSCTRL_TCF2(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_TCF2_SHIFT)) & TMR_CSCTRL_TCF2_MASK) 16733 16734 #define TMR_CSCTRL_TCF1EN_MASK (0x40U) 16735 #define TMR_CSCTRL_TCF1EN_SHIFT (6U) 16736 /*! TCF1EN - Timer Compare 1 Interrupt Enable 16737 */ 16738 #define TMR_CSCTRL_TCF1EN(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_TCF1EN_SHIFT)) & TMR_CSCTRL_TCF1EN_MASK) 16739 16740 #define TMR_CSCTRL_TCF2EN_MASK (0x80U) 16741 #define TMR_CSCTRL_TCF2EN_SHIFT (7U) 16742 /*! TCF2EN - Timer Compare 2 Interrupt Enable 16743 */ 16744 #define TMR_CSCTRL_TCF2EN(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_TCF2EN_SHIFT)) & TMR_CSCTRL_TCF2EN_MASK) 16745 16746 #define TMR_CSCTRL_UP_MASK (0x200U) 16747 #define TMR_CSCTRL_UP_SHIFT (9U) 16748 /*! UP - Counting Direction Indicator 16749 * 0b0..The last count was in the DOWN direction. 16750 * 0b1..The last count was in the UP direction. 16751 */ 16752 #define TMR_CSCTRL_UP(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_UP_SHIFT)) & TMR_CSCTRL_UP_MASK) 16753 16754 #define TMR_CSCTRL_TCI_MASK (0x400U) 16755 #define TMR_CSCTRL_TCI_SHIFT (10U) 16756 /*! TCI - Triggered Count Initialization Control 16757 * 0b0..Stop counter upon receiving a second trigger event while still counting from the first trigger event. 16758 * 0b1..Reload the counter upon receiving a second trigger event while still counting from the first trigger event. 16759 */ 16760 #define TMR_CSCTRL_TCI(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_TCI_SHIFT)) & TMR_CSCTRL_TCI_MASK) 16761 16762 #define TMR_CSCTRL_ROC_MASK (0x800U) 16763 #define TMR_CSCTRL_ROC_SHIFT (11U) 16764 /*! ROC - Reload on Capture 16765 * 0b0..Do not reload the counter on a capture event. 16766 * 0b1..Reload the counter on a capture event. 16767 */ 16768 #define TMR_CSCTRL_ROC(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_ROC_SHIFT)) & TMR_CSCTRL_ROC_MASK) 16769 16770 #define TMR_CSCTRL_ALT_LOAD_MASK (0x1000U) 16771 #define TMR_CSCTRL_ALT_LOAD_SHIFT (12U) 16772 /*! ALT_LOAD - Alternative Load Enable 16773 * 0b0..Counter can be re-initialized only with the LOAD register. 16774 * 0b1..Counter can be re-initialized with the LOAD or CMPLD2 registers depending on count direction. 16775 */ 16776 #define TMR_CSCTRL_ALT_LOAD(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_ALT_LOAD_SHIFT)) & TMR_CSCTRL_ALT_LOAD_MASK) 16777 16778 #define TMR_CSCTRL_FAULT_MASK (0x2000U) 16779 #define TMR_CSCTRL_FAULT_SHIFT (13U) 16780 /*! FAULT - Fault Enable 16781 * 0b0..Fault function disabled. 16782 * 0b1..Fault function enabled. 16783 */ 16784 #define TMR_CSCTRL_FAULT(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_FAULT_SHIFT)) & TMR_CSCTRL_FAULT_MASK) 16785 16786 #define TMR_CSCTRL_DBG_EN_MASK (0xC000U) 16787 #define TMR_CSCTRL_DBG_EN_SHIFT (14U) 16788 /*! DBG_EN - Debug Actions Enable 16789 * 0b00..Continue with normal operation during debug mode. (default) 16790 * 0b01..Halt TMR counter during debug mode. 16791 * 0b10..Force TMR output to logic 0 (prior to consideration of SCTRL[OPS]). 16792 * 0b11..Both halt counter and force output to 0 during debug mode. 16793 */ 16794 #define TMR_CSCTRL_DBG_EN(x) (((uint16_t)(((uint16_t)(x)) << TMR_CSCTRL_DBG_EN_SHIFT)) & TMR_CSCTRL_DBG_EN_MASK) 16795 /*! @} */ 16796 16797 /*! @name FILT - Timer Channel Input Filter Register */ 16798 /*! @{ */ 16799 16800 #define TMR_FILT_FILT_PER_MASK (0xFFU) 16801 #define TMR_FILT_FILT_PER_SHIFT (0U) 16802 /*! FILT_PER - Input Filter Sample Period 16803 */ 16804 #define TMR_FILT_FILT_PER(x) (((uint16_t)(((uint16_t)(x)) << TMR_FILT_FILT_PER_SHIFT)) & TMR_FILT_FILT_PER_MASK) 16805 16806 #define TMR_FILT_FILT_CNT_MASK (0x700U) 16807 #define TMR_FILT_FILT_CNT_SHIFT (8U) 16808 /*! FILT_CNT - Input Filter Sample Count 16809 */ 16810 #define TMR_FILT_FILT_CNT(x) (((uint16_t)(((uint16_t)(x)) << TMR_FILT_FILT_CNT_SHIFT)) & TMR_FILT_FILT_CNT_MASK) 16811 /*! @} */ 16812 16813 /*! @name ENBL - Timer Channel Enable Register */ 16814 /*! @{ */ 16815 16816 #define TMR_ENBL_ENBL_MASK (0xFU) 16817 #define TMR_ENBL_ENBL_SHIFT (0U) 16818 /*! ENBL - Timer Channel Enable 16819 * 0b0000..Timer channel is disabled. 16820 * 0b0001..Timer channel is enabled. (default) 16821 */ 16822 #define TMR_ENBL_ENBL(x) (((uint16_t)(((uint16_t)(x)) << TMR_ENBL_ENBL_SHIFT)) & TMR_ENBL_ENBL_MASK) 16823 /*! @} */ 16824 16825 16826 /*! 16827 * @} 16828 */ /* end of group TMR_Register_Masks */ 16829 16830 16831 /* TMR - Peripheral instance base addresses */ 16832 /** Peripheral TMR0 base address */ 16833 #define TMR0_BASE (0x40057000u) 16834 /** Peripheral TMR0 base pointer */ 16835 #define TMR0 ((TMR_Type *)TMR0_BASE) 16836 /** Peripheral TMR1 base address */ 16837 #define TMR1_BASE (0x40058000u) 16838 /** Peripheral TMR1 base pointer */ 16839 #define TMR1 ((TMR_Type *)TMR1_BASE) 16840 /** Peripheral TMR2 base address */ 16841 #define TMR2_BASE (0x40059000u) 16842 /** Peripheral TMR2 base pointer */ 16843 #define TMR2 ((TMR_Type *)TMR2_BASE) 16844 /** Peripheral TMR3 base address */ 16845 #define TMR3_BASE (0x4005A000u) 16846 /** Peripheral TMR3 base pointer */ 16847 #define TMR3 ((TMR_Type *)TMR3_BASE) 16848 /** Array initializer of TMR peripheral base addresses */ 16849 #define TMR_BASE_ADDRS { TMR0_BASE, TMR1_BASE, TMR2_BASE, TMR3_BASE } 16850 /** Array initializer of TMR peripheral base pointers */ 16851 #define TMR_BASE_PTRS { TMR0, TMR1, TMR2, TMR3 } 16852 /** Interrupt vectors for the TMR peripheral type */ 16853 #define TMR_IRQS { TMR0_IRQn, TMR1_IRQn, TMR2_IRQn, TMR3_IRQn } 16854 16855 /*! 16856 * @} 16857 */ /* end of group TMR_Peripheral_Access_Layer */ 16858 16859 16860 /* ---------------------------------------------------------------------------- 16861 -- UART Peripheral Access Layer 16862 ---------------------------------------------------------------------------- */ 16863 16864 /*! 16865 * @addtogroup UART_Peripheral_Access_Layer UART Peripheral Access Layer 16866 * @{ 16867 */ 16868 16869 /** UART - Register Layout Typedef */ 16870 typedef struct { 16871 __IO uint8_t BDH; /**< UART Baud Rate Registers: High, offset: 0x0 */ 16872 __IO uint8_t BDL; /**< UART Baud Rate Registers: Low, offset: 0x1 */ 16873 __IO uint8_t C1; /**< UART Control Register 1, offset: 0x2 */ 16874 __IO uint8_t C2; /**< UART Control Register 2, offset: 0x3 */ 16875 __I uint8_t S1; /**< UART Status Register 1, offset: 0x4 */ 16876 __IO uint8_t S2; /**< UART Status Register 2, offset: 0x5 */ 16877 __IO uint8_t C3; /**< UART Control Register 3, offset: 0x6 */ 16878 __IO uint8_t D; /**< UART Data Register, offset: 0x7 */ 16879 __IO uint8_t MA1; /**< UART Match Address Registers 1, offset: 0x8 */ 16880 __IO uint8_t MA2; /**< UART Match Address Registers 2, offset: 0x9 */ 16881 __IO uint8_t C4; /**< UART Control Register 4, offset: 0xA */ 16882 __IO uint8_t C5; /**< UART Control Register 5, offset: 0xB */ 16883 __I uint8_t ED; /**< UART Extended Data Register, offset: 0xC */ 16884 __IO uint8_t MODEM; /**< UART Modem Register, offset: 0xD */ 16885 uint8_t RESERVED_0[2]; 16886 __IO uint8_t PFIFO; /**< UART FIFO Parameters, offset: 0x10 */ 16887 __IO uint8_t CFIFO; /**< UART FIFO Control Register, offset: 0x11 */ 16888 __IO uint8_t SFIFO; /**< UART FIFO Status Register, offset: 0x12 */ 16889 __IO uint8_t TWFIFO; /**< UART FIFO Transmit Watermark, offset: 0x13 */ 16890 __I uint8_t TCFIFO; /**< UART FIFO Transmit Count, offset: 0x14 */ 16891 __IO uint8_t RWFIFO; /**< UART FIFO Receive Watermark, offset: 0x15 */ 16892 __I uint8_t RCFIFO; /**< UART FIFO Receive Count, offset: 0x16 */ 16893 uint8_t RESERVED_1[1]; 16894 __IO uint8_t C7816; /**< UART 7816 Control Register, offset: 0x18 */ 16895 __IO uint8_t IE7816; /**< UART 7816 Interrupt Enable Register, offset: 0x19 */ 16896 __IO uint8_t IS7816; /**< UART 7816 Interrupt Status Register, offset: 0x1A */ 16897 union { /* offset: 0x1B */ 16898 __IO uint8_t WP7816T0; /**< UART 7816 Wait Parameter Register, offset: 0x1B */ 16899 __IO uint8_t WP7816T1; /**< UART 7816 Wait Parameter Register, offset: 0x1B */ 16900 }; 16901 __IO uint8_t WN7816; /**< UART 7816 Wait N Register, offset: 0x1C */ 16902 __IO uint8_t WF7816; /**< UART 7816 Wait FD Register, offset: 0x1D */ 16903 __IO uint8_t ET7816; /**< UART 7816 Error Threshold Register, offset: 0x1E */ 16904 __IO uint8_t TL7816; /**< UART 7816 Transmit Length Register, offset: 0x1F */ 16905 } UART_Type; 16906 16907 /* ---------------------------------------------------------------------------- 16908 -- UART Register Masks 16909 ---------------------------------------------------------------------------- */ 16910 16911 /*! 16912 * @addtogroup UART_Register_Masks UART Register Masks 16913 * @{ 16914 */ 16915 16916 /*! @name BDH - UART Baud Rate Registers: High */ 16917 /*! @{ */ 16918 16919 #define UART_BDH_SBR_MASK (0x1FU) 16920 #define UART_BDH_SBR_SHIFT (0U) 16921 /*! SBR - UART Baud Rate Bits 16922 */ 16923 #define UART_BDH_SBR(x) (((uint8_t)(((uint8_t)(x)) << UART_BDH_SBR_SHIFT)) & UART_BDH_SBR_MASK) 16924 16925 #define UART_BDH_RXEDGIE_MASK (0x40U) 16926 #define UART_BDH_RXEDGIE_SHIFT (6U) 16927 /*! RXEDGIE - RxD Input Active Edge Interrupt Enable 16928 * 0b0..Hardware interrupts from RXEDGIF disabled using polling. 16929 * 0b1..RXEDGIF interrupt request enabled. 16930 */ 16931 #define UART_BDH_RXEDGIE(x) (((uint8_t)(((uint8_t)(x)) << UART_BDH_RXEDGIE_SHIFT)) & UART_BDH_RXEDGIE_MASK) 16932 /*! @} */ 16933 16934 /*! @name BDL - UART Baud Rate Registers: Low */ 16935 /*! @{ */ 16936 16937 #define UART_BDL_SBR_MASK (0xFFU) 16938 #define UART_BDL_SBR_SHIFT (0U) 16939 /*! SBR - UART Baud Rate Bits 16940 */ 16941 #define UART_BDL_SBR(x) (((uint8_t)(((uint8_t)(x)) << UART_BDL_SBR_SHIFT)) & UART_BDL_SBR_MASK) 16942 /*! @} */ 16943 16944 /*! @name C1 - UART Control Register 1 */ 16945 /*! @{ */ 16946 16947 #define UART_C1_PT_MASK (0x1U) 16948 #define UART_C1_PT_SHIFT (0U) 16949 /*! PT - Parity Type 16950 * 0b0..Even parity. 16951 * 0b1..Odd parity. 16952 */ 16953 #define UART_C1_PT(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_PT_SHIFT)) & UART_C1_PT_MASK) 16954 16955 #define UART_C1_PE_MASK (0x2U) 16956 #define UART_C1_PE_SHIFT (1U) 16957 /*! PE - Parity Enable 16958 * 0b0..Parity function disabled. 16959 * 0b1..Parity function enabled. 16960 */ 16961 #define UART_C1_PE(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_PE_SHIFT)) & UART_C1_PE_MASK) 16962 16963 #define UART_C1_ILT_MASK (0x4U) 16964 #define UART_C1_ILT_SHIFT (2U) 16965 /*! ILT - Idle Line Type Select 16966 * 0b0..Idle character bit count starts after start bit. 16967 * 0b1..Idle character bit count starts after stop bit. 16968 */ 16969 #define UART_C1_ILT(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_ILT_SHIFT)) & UART_C1_ILT_MASK) 16970 16971 #define UART_C1_WAKE_MASK (0x8U) 16972 #define UART_C1_WAKE_SHIFT (3U) 16973 /*! WAKE - Receiver Wakeup Method Select 16974 * 0b0..Idle line wakeup. 16975 * 0b1..Address mark wakeup. 16976 */ 16977 #define UART_C1_WAKE(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_WAKE_SHIFT)) & UART_C1_WAKE_MASK) 16978 16979 #define UART_C1_M_MASK (0x10U) 16980 #define UART_C1_M_SHIFT (4U) 16981 /*! M - 9-bit or 8-bit Mode Select 16982 * 0b0..Normal-start + 8 data bits (MSB/LSB first as determined by MSBF) + stop. 16983 * 0b1..Use-start + 9 data bits (MSB/LSB first as determined by MSBF) + stop. 16984 */ 16985 #define UART_C1_M(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_M_SHIFT)) & UART_C1_M_MASK) 16986 16987 #define UART_C1_RSRC_MASK (0x20U) 16988 #define UART_C1_RSRC_SHIFT (5U) 16989 /*! RSRC - Receiver Source Select 16990 * 0b0..Selects internal loop back mode. The receiver input is internally connected to transmitter output. 16991 * 0b1..Single wire UART mode where the receiver input is connected to the transmit pin input signal. 16992 */ 16993 #define UART_C1_RSRC(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_RSRC_SHIFT)) & UART_C1_RSRC_MASK) 16994 16995 #define UART_C1_LOOPS_MASK (0x80U) 16996 #define UART_C1_LOOPS_SHIFT (7U) 16997 /*! LOOPS - Loop Mode Select 16998 * 0b0..Normal operation. 16999 * 0b1..Loop mode where transmitter output is internally connected to receiver input. The receiver input is determined by RSRC. 17000 */ 17001 #define UART_C1_LOOPS(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_LOOPS_SHIFT)) & UART_C1_LOOPS_MASK) 17002 /*! @} */ 17003 17004 /*! @name C2 - UART Control Register 2 */ 17005 /*! @{ */ 17006 17007 #define UART_C2_SBK_MASK (0x1U) 17008 #define UART_C2_SBK_SHIFT (0U) 17009 /*! SBK - Send Break 17010 * 0b0..Normal transmitter operation. 17011 * 0b1..Queue break characters to be sent. 17012 */ 17013 #define UART_C2_SBK(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_SBK_SHIFT)) & UART_C2_SBK_MASK) 17014 17015 #define UART_C2_RWU_MASK (0x2U) 17016 #define UART_C2_RWU_SHIFT (1U) 17017 /*! RWU - Receiver Wakeup Control 17018 * 0b0..Normal operation. 17019 * 0b1..RWU enables the wakeup function and inhibits further receiver interrupt requests. Normally, hardware 17020 * wakes the receiver by automatically clearing RWU. 17021 */ 17022 #define UART_C2_RWU(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_RWU_SHIFT)) & UART_C2_RWU_MASK) 17023 17024 #define UART_C2_RE_MASK (0x4U) 17025 #define UART_C2_RE_SHIFT (2U) 17026 /*! RE - Receiver Enable 17027 * 0b0..Receiver off. 17028 * 0b1..Receiver on. 17029 */ 17030 #define UART_C2_RE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_RE_SHIFT)) & UART_C2_RE_MASK) 17031 17032 #define UART_C2_TE_MASK (0x8U) 17033 #define UART_C2_TE_SHIFT (3U) 17034 /*! TE - Transmitter Enable 17035 * 0b0..Transmitter off. 17036 * 0b1..Transmitter on. 17037 */ 17038 #define UART_C2_TE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_TE_SHIFT)) & UART_C2_TE_MASK) 17039 17040 #define UART_C2_ILIE_MASK (0x10U) 17041 #define UART_C2_ILIE_SHIFT (4U) 17042 /*! ILIE - Idle Line Interrupt Enable 17043 * 0b0..IDLE interrupt requests disabled. 17044 * 0b1..IDLE interrupt requests enabled. 17045 */ 17046 #define UART_C2_ILIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_ILIE_SHIFT)) & UART_C2_ILIE_MASK) 17047 17048 #define UART_C2_RIE_MASK (0x20U) 17049 #define UART_C2_RIE_SHIFT (5U) 17050 /*! RIE - Receiver Full Interrupt or DMA Transfer Enable 17051 * 0b0..RDRF interrupt and DMA transfer requests disabled. 17052 * 0b1..RDRF interrupt or DMA transfer requests enabled. 17053 */ 17054 #define UART_C2_RIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_RIE_SHIFT)) & UART_C2_RIE_MASK) 17055 17056 #define UART_C2_TCIE_MASK (0x40U) 17057 #define UART_C2_TCIE_SHIFT (6U) 17058 /*! TCIE - Transmission Complete Interrupt Enable 17059 * 0b0..TC interrupt requests disabled. 17060 * 0b1..TC interrupt requests enabled. 17061 */ 17062 #define UART_C2_TCIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_TCIE_SHIFT)) & UART_C2_TCIE_MASK) 17063 17064 #define UART_C2_TIE_MASK (0x80U) 17065 #define UART_C2_TIE_SHIFT (7U) 17066 /*! TIE - Transmitter Interrupt or DMA Transfer Enable. 17067 * 0b0..TDRE interrupt and DMA transfer requests disabled. 17068 * 0b1..TDRE interrupt or DMA transfer requests enabled. 17069 */ 17070 #define UART_C2_TIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_TIE_SHIFT)) & UART_C2_TIE_MASK) 17071 /*! @} */ 17072 17073 /*! @name S1 - UART Status Register 1 */ 17074 /*! @{ */ 17075 17076 #define UART_S1_PF_MASK (0x1U) 17077 #define UART_S1_PF_SHIFT (0U) 17078 /*! PF - Parity Error Flag 17079 * 0b0..No parity error detected since the last time this flag was cleared. If the receive buffer has a depth 17080 * greater than 1, then there may be data in the receive buffer what was received with a parity error. 17081 * 0b1..At least one dataword was received with a parity error since the last time this flag was cleared. 17082 */ 17083 #define UART_S1_PF(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_PF_SHIFT)) & UART_S1_PF_MASK) 17084 17085 #define UART_S1_FE_MASK (0x2U) 17086 #define UART_S1_FE_SHIFT (1U) 17087 /*! FE - Framing Error Flag 17088 * 0b0..No framing error detected. 17089 * 0b1..Framing error. 17090 */ 17091 #define UART_S1_FE(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_FE_SHIFT)) & UART_S1_FE_MASK) 17092 17093 #define UART_S1_NF_MASK (0x4U) 17094 #define UART_S1_NF_SHIFT (2U) 17095 /*! NF - Noise Flag 17096 * 0b0..No noise detected since the last time this flag was cleared. If the receive buffer has a depth greater 17097 * than 1 then there may be data in the receiver buffer that was received with noise. 17098 * 0b1..At least one dataword was received with noise detected since the last time the flag was cleared. 17099 */ 17100 #define UART_S1_NF(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_NF_SHIFT)) & UART_S1_NF_MASK) 17101 17102 #define UART_S1_OR_MASK (0x8U) 17103 #define UART_S1_OR_SHIFT (3U) 17104 /*! OR - Receiver Overrun Flag 17105 * 0b0..No overrun has occurred since the last time the flag was cleared. 17106 * 0b1..Overrun has occurred or the overrun flag has not been cleared since the last overrun occured. 17107 */ 17108 #define UART_S1_OR(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_OR_SHIFT)) & UART_S1_OR_MASK) 17109 17110 #define UART_S1_IDLE_MASK (0x10U) 17111 #define UART_S1_IDLE_SHIFT (4U) 17112 /*! IDLE - Idle Line Flag 17113 * 0b0..Receiver input is either active now or has never become active since the IDLE flag was last cleared. 17114 * 0b1..Receiver input has become idle or the flag has not been cleared since it last asserted. 17115 */ 17116 #define UART_S1_IDLE(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_IDLE_SHIFT)) & UART_S1_IDLE_MASK) 17117 17118 #define UART_S1_RDRF_MASK (0x20U) 17119 #define UART_S1_RDRF_SHIFT (5U) 17120 /*! RDRF - Receive Data Register Full Flag 17121 * 0b0..The number of datawords in the receive buffer is less than the number indicated by RXWATER. 17122 * 0b1..The number of datawords in the receive buffer is equal to or greater than the number indicated by RXWATER 17123 * at some point in time since this flag was last cleared. 17124 */ 17125 #define UART_S1_RDRF(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_RDRF_SHIFT)) & UART_S1_RDRF_MASK) 17126 17127 #define UART_S1_TC_MASK (0x40U) 17128 #define UART_S1_TC_SHIFT (6U) 17129 /*! TC - Transmit Complete Flag 17130 * 0b0..Transmitter active (sending data, a preamble, or a break). 17131 * 0b1..Transmitter idle (transmission activity complete). 17132 */ 17133 #define UART_S1_TC(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_TC_SHIFT)) & UART_S1_TC_MASK) 17134 17135 #define UART_S1_TDRE_MASK (0x80U) 17136 #define UART_S1_TDRE_SHIFT (7U) 17137 /*! TDRE - Transmit Data Register Empty Flag 17138 * 0b0..The amount of data in the transmit buffer is greater than the value indicated by TWFIFO[TXWATER]. 17139 * 0b1..The amount of data in the transmit buffer is less than or equal to the value indicated by TWFIFO[TXWATER] 17140 * at some point in time since the flag has been cleared. 17141 */ 17142 #define UART_S1_TDRE(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_TDRE_SHIFT)) & UART_S1_TDRE_MASK) 17143 /*! @} */ 17144 17145 /*! @name S2 - UART Status Register 2 */ 17146 /*! @{ */ 17147 17148 #define UART_S2_RAF_MASK (0x1U) 17149 #define UART_S2_RAF_SHIFT (0U) 17150 /*! RAF - Receiver Active Flag 17151 * 0b0..UART receiver idle/inactive waiting for a start bit. 17152 * 0b1..UART receiver active, RxD input not idle. 17153 */ 17154 #define UART_S2_RAF(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_RAF_SHIFT)) & UART_S2_RAF_MASK) 17155 17156 #define UART_S2_BRK13_MASK (0x4U) 17157 #define UART_S2_BRK13_SHIFT (2U) 17158 /*! BRK13 - Break Transmit Character Length 17159 * 0b0..Break character is 10, 11, or 12 bits long. 17160 * 0b1..Break character is 13 or 14 bits long. 17161 */ 17162 #define UART_S2_BRK13(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_BRK13_SHIFT)) & UART_S2_BRK13_MASK) 17163 17164 #define UART_S2_RWUID_MASK (0x8U) 17165 #define UART_S2_RWUID_SHIFT (3U) 17166 /*! RWUID - Receive Wakeup Idle Detect 17167 * 0b0..S1[IDLE] is not set upon detection of an idle character. 17168 * 0b1..S1[IDLE] is set upon detection of an idle character. 17169 */ 17170 #define UART_S2_RWUID(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_RWUID_SHIFT)) & UART_S2_RWUID_MASK) 17171 17172 #define UART_S2_RXINV_MASK (0x10U) 17173 #define UART_S2_RXINV_SHIFT (4U) 17174 /*! RXINV - Receive Data Inversion 17175 * 0b0..Receive data is not inverted. 17176 * 0b1..Receive data is inverted. 17177 */ 17178 #define UART_S2_RXINV(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_RXINV_SHIFT)) & UART_S2_RXINV_MASK) 17179 17180 #define UART_S2_MSBF_MASK (0x20U) 17181 #define UART_S2_MSBF_SHIFT (5U) 17182 /*! MSBF - Most Significant Bit First 17183 * 0b0..LSB (bit0) is the first bit that is transmitted following the start bit. Further, the first bit received 17184 * after the start bit is identified as bit0. 17185 * 0b1..MSB (bit8, bit7 or bit6) is the first bit that is transmitted following the start bit, depending on the 17186 * setting of C1[M] and C1[PE]. Further, the first bit received after the start bit is identified as bit8, 17187 * bit7, or bit6, depending on the setting of C1[M] and C1[PE]. 17188 */ 17189 #define UART_S2_MSBF(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_MSBF_SHIFT)) & UART_S2_MSBF_MASK) 17190 17191 #define UART_S2_RXEDGIF_MASK (0x40U) 17192 #define UART_S2_RXEDGIF_SHIFT (6U) 17193 /*! RXEDGIF - RxD Pin Active Edge Interrupt Flag 17194 * 0b0..No active edge on the receive pin has occurred. 17195 * 0b1..An active edge on the receive pin has occurred. 17196 */ 17197 #define UART_S2_RXEDGIF(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_RXEDGIF_SHIFT)) & UART_S2_RXEDGIF_MASK) 17198 /*! @} */ 17199 17200 /*! @name C3 - UART Control Register 3 */ 17201 /*! @{ */ 17202 17203 #define UART_C3_PEIE_MASK (0x1U) 17204 #define UART_C3_PEIE_SHIFT (0U) 17205 /*! PEIE - Parity Error Interrupt Enable 17206 * 0b0..PF interrupt requests are disabled. 17207 * 0b1..PF interrupt requests are enabled. 17208 */ 17209 #define UART_C3_PEIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_PEIE_SHIFT)) & UART_C3_PEIE_MASK) 17210 17211 #define UART_C3_FEIE_MASK (0x2U) 17212 #define UART_C3_FEIE_SHIFT (1U) 17213 /*! FEIE - Framing Error Interrupt Enable 17214 * 0b0..FE interrupt requests are disabled. 17215 * 0b1..FE interrupt requests are enabled. 17216 */ 17217 #define UART_C3_FEIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_FEIE_SHIFT)) & UART_C3_FEIE_MASK) 17218 17219 #define UART_C3_NEIE_MASK (0x4U) 17220 #define UART_C3_NEIE_SHIFT (2U) 17221 /*! NEIE - Noise Error Interrupt Enable 17222 * 0b0..NF interrupt requests are disabled. 17223 * 0b1..NF interrupt requests are enabled. 17224 */ 17225 #define UART_C3_NEIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_NEIE_SHIFT)) & UART_C3_NEIE_MASK) 17226 17227 #define UART_C3_ORIE_MASK (0x8U) 17228 #define UART_C3_ORIE_SHIFT (3U) 17229 /*! ORIE - Overrun Error Interrupt Enable 17230 * 0b0..OR interrupts are disabled. 17231 * 0b1..OR interrupt requests are enabled. 17232 */ 17233 #define UART_C3_ORIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_ORIE_SHIFT)) & UART_C3_ORIE_MASK) 17234 17235 #define UART_C3_TXINV_MASK (0x10U) 17236 #define UART_C3_TXINV_SHIFT (4U) 17237 /*! TXINV - Transmit Data Inversion. 17238 * 0b0..Transmit data is not inverted. 17239 * 0b1..Transmit data is inverted. 17240 */ 17241 #define UART_C3_TXINV(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_TXINV_SHIFT)) & UART_C3_TXINV_MASK) 17242 17243 #define UART_C3_TXDIR_MASK (0x20U) 17244 #define UART_C3_TXDIR_SHIFT (5U) 17245 /*! TXDIR - Transmitter Pin Data Direction in Single-Wire mode 17246 * 0b0..TXD pin is an input in single wire mode. 17247 * 0b1..TXD pin is an output in single wire mode. 17248 */ 17249 #define UART_C3_TXDIR(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_TXDIR_SHIFT)) & UART_C3_TXDIR_MASK) 17250 17251 #define UART_C3_T8_MASK (0x40U) 17252 #define UART_C3_T8_SHIFT (6U) 17253 /*! T8 - Transmit Bit 8 17254 */ 17255 #define UART_C3_T8(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_T8_SHIFT)) & UART_C3_T8_MASK) 17256 17257 #define UART_C3_R8_MASK (0x80U) 17258 #define UART_C3_R8_SHIFT (7U) 17259 /*! R8 - Received Bit 8 17260 */ 17261 #define UART_C3_R8(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_R8_SHIFT)) & UART_C3_R8_MASK) 17262 /*! @} */ 17263 17264 /*! @name D - UART Data Register */ 17265 /*! @{ */ 17266 17267 #define UART_D_RT_MASK (0xFFU) 17268 #define UART_D_RT_SHIFT (0U) 17269 #define UART_D_RT(x) (((uint8_t)(((uint8_t)(x)) << UART_D_RT_SHIFT)) & UART_D_RT_MASK) 17270 /*! @} */ 17271 17272 /*! @name MA1 - UART Match Address Registers 1 */ 17273 /*! @{ */ 17274 17275 #define UART_MA1_MA_MASK (0xFFU) 17276 #define UART_MA1_MA_SHIFT (0U) 17277 /*! MA - Match Address 17278 */ 17279 #define UART_MA1_MA(x) (((uint8_t)(((uint8_t)(x)) << UART_MA1_MA_SHIFT)) & UART_MA1_MA_MASK) 17280 /*! @} */ 17281 17282 /*! @name MA2 - UART Match Address Registers 2 */ 17283 /*! @{ */ 17284 17285 #define UART_MA2_MA_MASK (0xFFU) 17286 #define UART_MA2_MA_SHIFT (0U) 17287 /*! MA - Match Address 17288 */ 17289 #define UART_MA2_MA(x) (((uint8_t)(((uint8_t)(x)) << UART_MA2_MA_SHIFT)) & UART_MA2_MA_MASK) 17290 /*! @} */ 17291 17292 /*! @name C4 - UART Control Register 4 */ 17293 /*! @{ */ 17294 17295 #define UART_C4_BRFA_MASK (0x1FU) 17296 #define UART_C4_BRFA_SHIFT (0U) 17297 /*! BRFA - Baud Rate Fine Adjust 17298 */ 17299 #define UART_C4_BRFA(x) (((uint8_t)(((uint8_t)(x)) << UART_C4_BRFA_SHIFT)) & UART_C4_BRFA_MASK) 17300 17301 #define UART_C4_M10_MASK (0x20U) 17302 #define UART_C4_M10_SHIFT (5U) 17303 /*! M10 - 10-bit Mode select 17304 * 0b0..The parity bit is the ninth bit in the serial transmission. 17305 * 0b1..The parity bit is the tenth bit in the serial transmission. 17306 */ 17307 #define UART_C4_M10(x) (((uint8_t)(((uint8_t)(x)) << UART_C4_M10_SHIFT)) & UART_C4_M10_MASK) 17308 17309 #define UART_C4_MAEN2_MASK (0x40U) 17310 #define UART_C4_MAEN2_SHIFT (6U) 17311 /*! MAEN2 - Match Address Mode Enable 2 17312 * 0b0..All data received is transferred to the data buffer if MAEN1 is cleared. 17313 * 0b1..All data received with the most significant bit cleared, is discarded. All data received with the most 17314 * significant bit set, is compared with contents of MA2 register. If no match occurs, the data is discarded. 17315 * If a match occurs, data is transferred to the data buffer. This field must be cleared when C7816[ISO7816E] 17316 * is set/enabled. 17317 */ 17318 #define UART_C4_MAEN2(x) (((uint8_t)(((uint8_t)(x)) << UART_C4_MAEN2_SHIFT)) & UART_C4_MAEN2_MASK) 17319 17320 #define UART_C4_MAEN1_MASK (0x80U) 17321 #define UART_C4_MAEN1_SHIFT (7U) 17322 /*! MAEN1 - Match Address Mode Enable 1 17323 * 0b0..All data received is transferred to the data buffer if MAEN2 is cleared. 17324 * 0b1..All data received with the most significant bit cleared, is discarded. All data received with the most 17325 * significant bit set, is compared with contents of MA1 register. If no match occurs, the data is discarded. 17326 * If match occurs, data is transferred to the data buffer. This field must be cleared when C7816[ISO7816E] is 17327 * set/enabled. 17328 */ 17329 #define UART_C4_MAEN1(x) (((uint8_t)(((uint8_t)(x)) << UART_C4_MAEN1_SHIFT)) & UART_C4_MAEN1_MASK) 17330 /*! @} */ 17331 17332 /*! @name C5 - UART Control Register 5 */ 17333 /*! @{ */ 17334 17335 #define UART_C5_RDMAS_MASK (0x20U) 17336 #define UART_C5_RDMAS_SHIFT (5U) 17337 /*! RDMAS - Receiver Full DMA Select 17338 * 0b0..If C2[RIE] and S1[RDRF] are set, the RDFR interrupt request signal is asserted to request an interrupt service. 17339 * 0b1..If C2[RIE] and S1[RDRF] are set, the RDRF DMA request signal is asserted to request a DMA transfer. 17340 */ 17341 #define UART_C5_RDMAS(x) (((uint8_t)(((uint8_t)(x)) << UART_C5_RDMAS_SHIFT)) & UART_C5_RDMAS_MASK) 17342 17343 #define UART_C5_TDMAS_MASK (0x80U) 17344 #define UART_C5_TDMAS_SHIFT (7U) 17345 /*! TDMAS - Transmitter DMA Select 17346 * 0b0..If C2[TIE] is set and the S1[TDRE] flag is set, the TDRE interrupt request signal is asserted to request interrupt service. 17347 * 0b1..If C2[TIE] is set and the S1[TDRE] flag is set, the TDRE DMA request signal is asserted to request a DMA transfer. 17348 */ 17349 #define UART_C5_TDMAS(x) (((uint8_t)(((uint8_t)(x)) << UART_C5_TDMAS_SHIFT)) & UART_C5_TDMAS_MASK) 17350 /*! @} */ 17351 17352 /*! @name ED - UART Extended Data Register */ 17353 /*! @{ */ 17354 17355 #define UART_ED_PARITYE_MASK (0x40U) 17356 #define UART_ED_PARITYE_SHIFT (6U) 17357 /*! PARITYE 17358 * 0b0..The dataword was received without a parity error. 17359 * 0b1..The dataword was received with a parity error. 17360 */ 17361 #define UART_ED_PARITYE(x) (((uint8_t)(((uint8_t)(x)) << UART_ED_PARITYE_SHIFT)) & UART_ED_PARITYE_MASK) 17362 17363 #define UART_ED_NOISY_MASK (0x80U) 17364 #define UART_ED_NOISY_SHIFT (7U) 17365 /*! NOISY 17366 * 0b0..The dataword was received without noise. 17367 * 0b1..The data was received with noise. 17368 */ 17369 #define UART_ED_NOISY(x) (((uint8_t)(((uint8_t)(x)) << UART_ED_NOISY_SHIFT)) & UART_ED_NOISY_MASK) 17370 /*! @} */ 17371 17372 /*! @name MODEM - UART Modem Register */ 17373 /*! @{ */ 17374 17375 #define UART_MODEM_TXCTSE_MASK (0x1U) 17376 #define UART_MODEM_TXCTSE_SHIFT (0U) 17377 /*! TXCTSE - Transmitter clear-to-send enable 17378 * 0b0..CTS has no effect on the transmitter. 17379 * 0b1..Enables clear-to-send operation. The transmitter checks the state of CTS each time it is ready to send a 17380 * character. If CTS is asserted, the character is sent. If CTS is deasserted, the signal TXD remains in the 17381 * mark state and transmission is delayed until CTS is asserted. Changes in CTS as a character is being sent 17382 * do not affect its transmission. 17383 */ 17384 #define UART_MODEM_TXCTSE(x) (((uint8_t)(((uint8_t)(x)) << UART_MODEM_TXCTSE_SHIFT)) & UART_MODEM_TXCTSE_MASK) 17385 17386 #define UART_MODEM_TXRTSE_MASK (0x2U) 17387 #define UART_MODEM_TXRTSE_SHIFT (1U) 17388 /*! TXRTSE - Transmitter request-to-send enable 17389 * 0b0..The transmitter has no effect on RTS. 17390 * 0b1..When a character is placed into an empty transmitter data buffer , RTS asserts one bit time before the 17391 * start bit is transmitted. RTS deasserts one bit time after all characters in the transmitter data buffer and 17392 * shift register are completely sent, including the last stop bit. (FIFO) Ensure that C2[TE] is asserted 17393 * before assertion of this bit. 17394 */ 17395 #define UART_MODEM_TXRTSE(x) (((uint8_t)(((uint8_t)(x)) << UART_MODEM_TXRTSE_SHIFT)) & UART_MODEM_TXRTSE_MASK) 17396 17397 #define UART_MODEM_TXRTSPOL_MASK (0x4U) 17398 #define UART_MODEM_TXRTSPOL_SHIFT (2U) 17399 /*! TXRTSPOL - Transmitter request-to-send polarity 17400 * 0b0..Transmitter RTS is active low. 17401 * 0b1..Transmitter RTS is active high. 17402 */ 17403 #define UART_MODEM_TXRTSPOL(x) (((uint8_t)(((uint8_t)(x)) << UART_MODEM_TXRTSPOL_SHIFT)) & UART_MODEM_TXRTSPOL_MASK) 17404 17405 #define UART_MODEM_RXRTSE_MASK (0x8U) 17406 #define UART_MODEM_RXRTSE_SHIFT (3U) 17407 /*! RXRTSE - Receiver request-to-send enable 17408 * 0b0..The receiver has no effect on RTS. 17409 * 0b1..RTS is deasserted if the number of characters in the receiver data register (FIFO) is equal to or greater 17410 * than RWFIFO[RXWATER]. RTS is asserted when the number of characters in the receiver data register (FIFO) 17411 * is less than RWFIFO[RXWATER]. See Hardware flow control 17412 */ 17413 #define UART_MODEM_RXRTSE(x) (((uint8_t)(((uint8_t)(x)) << UART_MODEM_RXRTSE_SHIFT)) & UART_MODEM_RXRTSE_MASK) 17414 /*! @} */ 17415 17416 /*! @name PFIFO - UART FIFO Parameters */ 17417 /*! @{ */ 17418 17419 #define UART_PFIFO_RXFIFOSIZE_MASK (0x7U) 17420 #define UART_PFIFO_RXFIFOSIZE_SHIFT (0U) 17421 /*! RXFIFOSIZE - Receive FIFO. Buffer Depth 17422 * 0b000..Receive FIFO/Buffer depth = 1 dataword. 17423 * 0b001..Receive FIFO/Buffer depth = 4 datawords. 17424 * 0b010..Receive FIFO/Buffer depth = 8 datawords. 17425 * 0b011..Receive FIFO/Buffer depth = 16 datawords. 17426 * 0b100..Receive FIFO/Buffer depth = 32 datawords. 17427 * 0b101..Receive FIFO/Buffer depth = 64 datawords. 17428 * 0b110..Receive FIFO/Buffer depth = 128 datawords. 17429 * 0b111..Reserved. 17430 */ 17431 #define UART_PFIFO_RXFIFOSIZE(x) (((uint8_t)(((uint8_t)(x)) << UART_PFIFO_RXFIFOSIZE_SHIFT)) & UART_PFIFO_RXFIFOSIZE_MASK) 17432 17433 #define UART_PFIFO_RXFE_MASK (0x8U) 17434 #define UART_PFIFO_RXFE_SHIFT (3U) 17435 /*! RXFE - Receive FIFO Enable 17436 * 0b0..Receive FIFO is not enabled. Buffer is depth 1. (Legacy support) 17437 * 0b1..Receive FIFO is enabled. Buffer is depth indicted by RXFIFOSIZE. 17438 */ 17439 #define UART_PFIFO_RXFE(x) (((uint8_t)(((uint8_t)(x)) << UART_PFIFO_RXFE_SHIFT)) & UART_PFIFO_RXFE_MASK) 17440 17441 #define UART_PFIFO_TXFIFOSIZE_MASK (0x70U) 17442 #define UART_PFIFO_TXFIFOSIZE_SHIFT (4U) 17443 /*! TXFIFOSIZE - Transmit FIFO. Buffer Depth 17444 * 0b000..Transmit FIFO/Buffer depth = 1 dataword. 17445 * 0b001..Transmit FIFO/Buffer depth = 4 datawords. 17446 * 0b010..Transmit FIFO/Buffer depth = 8 datawords. 17447 * 0b011..Transmit FIFO/Buffer depth = 16 datawords. 17448 * 0b100..Transmit FIFO/Buffer depth = 32 datawords. 17449 * 0b101..Transmit FIFO/Buffer depth = 64 datawords. 17450 * 0b110..Transmit FIFO/Buffer depth = 128 datawords. 17451 * 0b111..Reserved. 17452 */ 17453 #define UART_PFIFO_TXFIFOSIZE(x) (((uint8_t)(((uint8_t)(x)) << UART_PFIFO_TXFIFOSIZE_SHIFT)) & UART_PFIFO_TXFIFOSIZE_MASK) 17454 17455 #define UART_PFIFO_TXFE_MASK (0x80U) 17456 #define UART_PFIFO_TXFE_SHIFT (7U) 17457 /*! TXFE - Transmit FIFO Enable 17458 * 0b0..Transmit FIFO is not enabled. Buffer is depth 1. (Legacy support). 17459 * 0b1..Transmit FIFO is enabled. Buffer is depth indicated by TXFIFOSIZE. 17460 */ 17461 #define UART_PFIFO_TXFE(x) (((uint8_t)(((uint8_t)(x)) << UART_PFIFO_TXFE_SHIFT)) & UART_PFIFO_TXFE_MASK) 17462 /*! @} */ 17463 17464 /*! @name CFIFO - UART FIFO Control Register */ 17465 /*! @{ */ 17466 17467 #define UART_CFIFO_RXUFE_MASK (0x1U) 17468 #define UART_CFIFO_RXUFE_SHIFT (0U) 17469 /*! RXUFE - Receive FIFO Underflow Interrupt Enable 17470 * 0b0..RXUF flag does not generate an interrupt to the host. 17471 * 0b1..RXUF flag generates an interrupt to the host. 17472 */ 17473 #define UART_CFIFO_RXUFE(x) (((uint8_t)(((uint8_t)(x)) << UART_CFIFO_RXUFE_SHIFT)) & UART_CFIFO_RXUFE_MASK) 17474 17475 #define UART_CFIFO_TXOFE_MASK (0x2U) 17476 #define UART_CFIFO_TXOFE_SHIFT (1U) 17477 /*! TXOFE - Transmit FIFO Overflow Interrupt Enable 17478 * 0b0..TXOF flag does not generate an interrupt to the host. 17479 * 0b1..TXOF flag generates an interrupt to the host. 17480 */ 17481 #define UART_CFIFO_TXOFE(x) (((uint8_t)(((uint8_t)(x)) << UART_CFIFO_TXOFE_SHIFT)) & UART_CFIFO_TXOFE_MASK) 17482 17483 #define UART_CFIFO_RXOFE_MASK (0x4U) 17484 #define UART_CFIFO_RXOFE_SHIFT (2U) 17485 /*! RXOFE - Receive FIFO Overflow Interrupt Enable 17486 * 0b0..RXOF flag does not generate an interrupt to the host. 17487 * 0b1..RXOF flag generates an interrupt to the host. 17488 */ 17489 #define UART_CFIFO_RXOFE(x) (((uint8_t)(((uint8_t)(x)) << UART_CFIFO_RXOFE_SHIFT)) & UART_CFIFO_RXOFE_MASK) 17490 17491 #define UART_CFIFO_RXFLUSH_MASK (0x40U) 17492 #define UART_CFIFO_RXFLUSH_SHIFT (6U) 17493 /*! RXFLUSH - Receive FIFO/Buffer Flush 17494 * 0b0..No flush operation occurs. 17495 * 0b1..All data in the receive FIFO/buffer is cleared out. 17496 */ 17497 #define UART_CFIFO_RXFLUSH(x) (((uint8_t)(((uint8_t)(x)) << UART_CFIFO_RXFLUSH_SHIFT)) & UART_CFIFO_RXFLUSH_MASK) 17498 17499 #define UART_CFIFO_TXFLUSH_MASK (0x80U) 17500 #define UART_CFIFO_TXFLUSH_SHIFT (7U) 17501 /*! TXFLUSH - Transmit FIFO/Buffer Flush 17502 * 0b0..No flush operation occurs. 17503 * 0b1..All data in the transmit FIFO/Buffer is cleared out. 17504 */ 17505 #define UART_CFIFO_TXFLUSH(x) (((uint8_t)(((uint8_t)(x)) << UART_CFIFO_TXFLUSH_SHIFT)) & UART_CFIFO_TXFLUSH_MASK) 17506 /*! @} */ 17507 17508 /*! @name SFIFO - UART FIFO Status Register */ 17509 /*! @{ */ 17510 17511 #define UART_SFIFO_RXUF_MASK (0x1U) 17512 #define UART_SFIFO_RXUF_SHIFT (0U) 17513 /*! RXUF - Receiver Buffer Underflow Flag 17514 * 0b0..No receive buffer underflow has occurred since the last time the flag was cleared. 17515 * 0b1..At least one receive buffer underflow has occurred since the last time the flag was cleared. 17516 */ 17517 #define UART_SFIFO_RXUF(x) (((uint8_t)(((uint8_t)(x)) << UART_SFIFO_RXUF_SHIFT)) & UART_SFIFO_RXUF_MASK) 17518 17519 #define UART_SFIFO_TXOF_MASK (0x2U) 17520 #define UART_SFIFO_TXOF_SHIFT (1U) 17521 /*! TXOF - Transmitter Buffer Overflow Flag 17522 * 0b0..No transmit buffer overflow has occurred since the last time the flag was cleared. 17523 * 0b1..At least one transmit buffer overflow has occurred since the last time the flag was cleared. 17524 */ 17525 #define UART_SFIFO_TXOF(x) (((uint8_t)(((uint8_t)(x)) << UART_SFIFO_TXOF_SHIFT)) & UART_SFIFO_TXOF_MASK) 17526 17527 #define UART_SFIFO_RXOF_MASK (0x4U) 17528 #define UART_SFIFO_RXOF_SHIFT (2U) 17529 /*! RXOF - Receiver Buffer Overflow Flag 17530 * 0b0..No receive buffer overflow has occurred since the last time the flag was cleared. 17531 * 0b1..At least one receive buffer overflow has occurred since the last time the flag was cleared. 17532 */ 17533 #define UART_SFIFO_RXOF(x) (((uint8_t)(((uint8_t)(x)) << UART_SFIFO_RXOF_SHIFT)) & UART_SFIFO_RXOF_MASK) 17534 17535 #define UART_SFIFO_RXEMPT_MASK (0x40U) 17536 #define UART_SFIFO_RXEMPT_SHIFT (6U) 17537 /*! RXEMPT - Receive Buffer/FIFO Empty 17538 * 0b0..Receive buffer is not empty. 17539 * 0b1..Receive buffer is empty. 17540 */ 17541 #define UART_SFIFO_RXEMPT(x) (((uint8_t)(((uint8_t)(x)) << UART_SFIFO_RXEMPT_SHIFT)) & UART_SFIFO_RXEMPT_MASK) 17542 17543 #define UART_SFIFO_TXEMPT_MASK (0x80U) 17544 #define UART_SFIFO_TXEMPT_SHIFT (7U) 17545 /*! TXEMPT - Transmit Buffer/FIFO Empty 17546 * 0b0..Transmit buffer is not empty. 17547 * 0b1..Transmit buffer is empty. 17548 */ 17549 #define UART_SFIFO_TXEMPT(x) (((uint8_t)(((uint8_t)(x)) << UART_SFIFO_TXEMPT_SHIFT)) & UART_SFIFO_TXEMPT_MASK) 17550 /*! @} */ 17551 17552 /*! @name TWFIFO - UART FIFO Transmit Watermark */ 17553 /*! @{ */ 17554 17555 #define UART_TWFIFO_TXWATER_MASK (0xFFU) 17556 #define UART_TWFIFO_TXWATER_SHIFT (0U) 17557 /*! TXWATER - Transmit Watermark 17558 */ 17559 #define UART_TWFIFO_TXWATER(x) (((uint8_t)(((uint8_t)(x)) << UART_TWFIFO_TXWATER_SHIFT)) & UART_TWFIFO_TXWATER_MASK) 17560 /*! @} */ 17561 17562 /*! @name TCFIFO - UART FIFO Transmit Count */ 17563 /*! @{ */ 17564 17565 #define UART_TCFIFO_TXCOUNT_MASK (0xFFU) 17566 #define UART_TCFIFO_TXCOUNT_SHIFT (0U) 17567 /*! TXCOUNT - Transmit Counter 17568 */ 17569 #define UART_TCFIFO_TXCOUNT(x) (((uint8_t)(((uint8_t)(x)) << UART_TCFIFO_TXCOUNT_SHIFT)) & UART_TCFIFO_TXCOUNT_MASK) 17570 /*! @} */ 17571 17572 /*! @name RWFIFO - UART FIFO Receive Watermark */ 17573 /*! @{ */ 17574 17575 #define UART_RWFIFO_RXWATER_MASK (0xFFU) 17576 #define UART_RWFIFO_RXWATER_SHIFT (0U) 17577 /*! RXWATER - Receive Watermark 17578 */ 17579 #define UART_RWFIFO_RXWATER(x) (((uint8_t)(((uint8_t)(x)) << UART_RWFIFO_RXWATER_SHIFT)) & UART_RWFIFO_RXWATER_MASK) 17580 /*! @} */ 17581 17582 /*! @name RCFIFO - UART FIFO Receive Count */ 17583 /*! @{ */ 17584 17585 #define UART_RCFIFO_RXCOUNT_MASK (0xFFU) 17586 #define UART_RCFIFO_RXCOUNT_SHIFT (0U) 17587 /*! RXCOUNT - Receive Counter 17588 */ 17589 #define UART_RCFIFO_RXCOUNT(x) (((uint8_t)(((uint8_t)(x)) << UART_RCFIFO_RXCOUNT_SHIFT)) & UART_RCFIFO_RXCOUNT_MASK) 17590 /*! @} */ 17591 17592 /*! @name C7816 - UART 7816 Control Register */ 17593 /*! @{ */ 17594 17595 #define UART_C7816_ISO_7816E_MASK (0x1U) 17596 #define UART_C7816_ISO_7816E_SHIFT (0U) 17597 /*! ISO_7816E - ISO-7816 Functionality Enabled 17598 * 0b0..ISO-7816 functionality is turned off/not enabled. 17599 * 0b1..ISO-7816 functionality is turned on/enabled. 17600 */ 17601 #define UART_C7816_ISO_7816E(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_ISO_7816E_SHIFT)) & UART_C7816_ISO_7816E_MASK) 17602 17603 #define UART_C7816_TTYPE_MASK (0x2U) 17604 #define UART_C7816_TTYPE_SHIFT (1U) 17605 /*! TTYPE - Transfer Type 17606 * 0b0..T = 0 per the ISO-7816 specification. 17607 * 0b1..T = 1 per the ISO-7816 specification. 17608 */ 17609 #define UART_C7816_TTYPE(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_TTYPE_SHIFT)) & UART_C7816_TTYPE_MASK) 17610 17611 #define UART_C7816_INIT_MASK (0x4U) 17612 #define UART_C7816_INIT_SHIFT (2U) 17613 /*! INIT - Detect Initial Character 17614 * 0b0..Normal operating mode. Receiver does not seek to identify initial character. 17615 * 0b1..Receiver searches for initial character. 17616 */ 17617 #define UART_C7816_INIT(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_INIT_SHIFT)) & UART_C7816_INIT_MASK) 17618 17619 #define UART_C7816_ANACK_MASK (0x8U) 17620 #define UART_C7816_ANACK_SHIFT (3U) 17621 /*! ANACK - Generate NACK on Error 17622 * 0b0..No NACK is automatically generated. 17623 * 0b1..A NACK is automatically generated if a parity error is detected or if an invalid initial character is detected. 17624 */ 17625 #define UART_C7816_ANACK(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_ANACK_SHIFT)) & UART_C7816_ANACK_MASK) 17626 17627 #define UART_C7816_ONACK_MASK (0x10U) 17628 #define UART_C7816_ONACK_SHIFT (4U) 17629 /*! ONACK - Generate NACK on Overflow 17630 * 0b0..The received data does not generate a NACK when the receipt of the data results in an overflow event. 17631 * 0b1..If the receiver buffer overflows, a NACK is automatically sent on a received character. 17632 */ 17633 #define UART_C7816_ONACK(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_ONACK_SHIFT)) & UART_C7816_ONACK_MASK) 17634 /*! @} */ 17635 17636 /*! @name IE7816 - UART 7816 Interrupt Enable Register */ 17637 /*! @{ */ 17638 17639 #define UART_IE7816_RXTE_MASK (0x1U) 17640 #define UART_IE7816_RXTE_SHIFT (0U) 17641 /*! RXTE - Receive Threshold Exceeded Interrupt Enable 17642 * 0b0..The assertion of IS7816[RXT] does not result in the generation of an interrupt. 17643 * 0b1..The assertion of IS7816[RXT] results in the generation of an interrupt. 17644 */ 17645 #define UART_IE7816_RXTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_RXTE_SHIFT)) & UART_IE7816_RXTE_MASK) 17646 17647 #define UART_IE7816_TXTE_MASK (0x2U) 17648 #define UART_IE7816_TXTE_SHIFT (1U) 17649 /*! TXTE - Transmit Threshold Exceeded Interrupt Enable 17650 * 0b0..The assertion of IS7816[TXT] does not result in the generation of an interrupt. 17651 * 0b1..The assertion of IS7816[TXT] results in the generation of an interrupt. 17652 */ 17653 #define UART_IE7816_TXTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_TXTE_SHIFT)) & UART_IE7816_TXTE_MASK) 17654 17655 #define UART_IE7816_GTVE_MASK (0x4U) 17656 #define UART_IE7816_GTVE_SHIFT (2U) 17657 /*! GTVE - Guard Timer Violated Interrupt Enable 17658 * 0b0..The assertion of IS7816[GTV] does not result in the generation of an interrupt. 17659 * 0b1..The assertion of IS7816[GTV] results in the generation of an interrupt. 17660 */ 17661 #define UART_IE7816_GTVE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_GTVE_SHIFT)) & UART_IE7816_GTVE_MASK) 17662 17663 #define UART_IE7816_INITDE_MASK (0x10U) 17664 #define UART_IE7816_INITDE_SHIFT (4U) 17665 /*! INITDE - Initial Character Detected Interrupt Enable 17666 * 0b0..The assertion of IS7816[INITD] does not result in the generation of an interrupt. 17667 * 0b1..The assertion of IS7816[INITD] results in the generation of an interrupt. 17668 */ 17669 #define UART_IE7816_INITDE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_INITDE_SHIFT)) & UART_IE7816_INITDE_MASK) 17670 17671 #define UART_IE7816_BWTE_MASK (0x20U) 17672 #define UART_IE7816_BWTE_SHIFT (5U) 17673 /*! BWTE - Block Wait Timer Interrupt Enable 17674 * 0b0..The assertion of IS7816[BWT] does not result in the generation of an interrupt. 17675 * 0b1..The assertion of IS7816[BWT] results in the generation of an interrupt. 17676 */ 17677 #define UART_IE7816_BWTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_BWTE_SHIFT)) & UART_IE7816_BWTE_MASK) 17678 17679 #define UART_IE7816_CWTE_MASK (0x40U) 17680 #define UART_IE7816_CWTE_SHIFT (6U) 17681 /*! CWTE - Character Wait Timer Interrupt Enable 17682 * 0b0..The assertion of IS7816[CWT] does not result in the generation of an interrupt. 17683 * 0b1..The assertion of IS7816[CWT] results in the generation of an interrupt. 17684 */ 17685 #define UART_IE7816_CWTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_CWTE_SHIFT)) & UART_IE7816_CWTE_MASK) 17686 17687 #define UART_IE7816_WTE_MASK (0x80U) 17688 #define UART_IE7816_WTE_SHIFT (7U) 17689 /*! WTE - Wait Timer Interrupt Enable 17690 * 0b0..The assertion of IS7816[WT] does not result in the generation of an interrupt. 17691 * 0b1..The assertion of IS7816[WT] results in the generation of an interrupt. 17692 */ 17693 #define UART_IE7816_WTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_WTE_SHIFT)) & UART_IE7816_WTE_MASK) 17694 /*! @} */ 17695 17696 /*! @name IS7816 - UART 7816 Interrupt Status Register */ 17697 /*! @{ */ 17698 17699 #define UART_IS7816_RXT_MASK (0x1U) 17700 #define UART_IS7816_RXT_SHIFT (0U) 17701 /*! RXT - Receive Threshold Exceeded Interrupt 17702 * 0b0..The number of consecutive NACKS generated as a result of parity errors and buffer overruns is less than 17703 * or equal to the value in ET7816[RXTHRESHOLD]. 17704 * 0b1..The number of consecutive NACKS generated as a result of parity errors and buffer overruns is greater than the value in ET7816[RXTHRESHOLD]. 17705 */ 17706 #define UART_IS7816_RXT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_RXT_SHIFT)) & UART_IS7816_RXT_MASK) 17707 17708 #define UART_IS7816_TXT_MASK (0x2U) 17709 #define UART_IS7816_TXT_SHIFT (1U) 17710 /*! TXT - Transmit Threshold Exceeded Interrupt 17711 * 0b0..The number of retries and corresponding NACKS does not exceed the value in ET7816[TXTHRESHOLD]. 17712 * 0b1..The number of retries and corresponding NACKS exceeds the value in ET7816[TXTHRESHOLD]. 17713 */ 17714 #define UART_IS7816_TXT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_TXT_SHIFT)) & UART_IS7816_TXT_MASK) 17715 17716 #define UART_IS7816_GTV_MASK (0x4U) 17717 #define UART_IS7816_GTV_SHIFT (2U) 17718 /*! GTV - Guard Timer Violated Interrupt 17719 * 0b0..A guard time (GT, CGT, or BGT) has not been violated. 17720 * 0b1..A guard time (GT, CGT, or BGT) has been violated. 17721 */ 17722 #define UART_IS7816_GTV(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_GTV_SHIFT)) & UART_IS7816_GTV_MASK) 17723 17724 #define UART_IS7816_INITD_MASK (0x10U) 17725 #define UART_IS7816_INITD_SHIFT (4U) 17726 /*! INITD - Initial Character Detected Interrupt 17727 * 0b0..A valid initial character has not been received. 17728 * 0b1..A valid initial character has been received. 17729 */ 17730 #define UART_IS7816_INITD(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_INITD_SHIFT)) & UART_IS7816_INITD_MASK) 17731 17732 #define UART_IS7816_BWT_MASK (0x20U) 17733 #define UART_IS7816_BWT_SHIFT (5U) 17734 /*! BWT - Block Wait Timer Interrupt 17735 * 0b0..Block wait time (BWT) has not been violated. 17736 * 0b1..Block wait time (BWT) has been violated. 17737 */ 17738 #define UART_IS7816_BWT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_BWT_SHIFT)) & UART_IS7816_BWT_MASK) 17739 17740 #define UART_IS7816_CWT_MASK (0x40U) 17741 #define UART_IS7816_CWT_SHIFT (6U) 17742 /*! CWT - Character Wait Timer Interrupt 17743 * 0b0..Character wait time (CWT) has not been violated. 17744 * 0b1..Character wait time (CWT) has been violated. 17745 */ 17746 #define UART_IS7816_CWT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_CWT_SHIFT)) & UART_IS7816_CWT_MASK) 17747 17748 #define UART_IS7816_WT_MASK (0x80U) 17749 #define UART_IS7816_WT_SHIFT (7U) 17750 /*! WT - Wait Timer Interrupt 17751 * 0b0..Wait time (WT) has not been violated. 17752 * 0b1..Wait time (WT) has been violated. 17753 */ 17754 #define UART_IS7816_WT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_WT_SHIFT)) & UART_IS7816_WT_MASK) 17755 /*! @} */ 17756 17757 /*! @name WP7816T0 - UART 7816 Wait Parameter Register */ 17758 /*! @{ */ 17759 17760 #define UART_WP7816T0_WI_MASK (0xFFU) 17761 #define UART_WP7816T0_WI_SHIFT (0U) 17762 /*! WI - Wait Time Integer (C7816[TTYPE] = 0) 17763 */ 17764 #define UART_WP7816T0_WI(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816T0_WI_SHIFT)) & UART_WP7816T0_WI_MASK) 17765 /*! @} */ 17766 17767 /*! @name WP7816T1 - UART 7816 Wait Parameter Register */ 17768 /*! @{ */ 17769 17770 #define UART_WP7816T1_BWI_MASK (0xFU) 17771 #define UART_WP7816T1_BWI_SHIFT (0U) 17772 /*! BWI - Block Wait Time Integer(C7816[TTYPE] = 1) 17773 */ 17774 #define UART_WP7816T1_BWI(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816T1_BWI_SHIFT)) & UART_WP7816T1_BWI_MASK) 17775 17776 #define UART_WP7816T1_CWI_MASK (0xF0U) 17777 #define UART_WP7816T1_CWI_SHIFT (4U) 17778 /*! CWI - Character Wait Time Integer (C7816[TTYPE] = 1) 17779 */ 17780 #define UART_WP7816T1_CWI(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816T1_CWI_SHIFT)) & UART_WP7816T1_CWI_MASK) 17781 /*! @} */ 17782 17783 /*! @name WN7816 - UART 7816 Wait N Register */ 17784 /*! @{ */ 17785 17786 #define UART_WN7816_GTN_MASK (0xFFU) 17787 #define UART_WN7816_GTN_SHIFT (0U) 17788 /*! GTN - Guard Band N 17789 */ 17790 #define UART_WN7816_GTN(x) (((uint8_t)(((uint8_t)(x)) << UART_WN7816_GTN_SHIFT)) & UART_WN7816_GTN_MASK) 17791 /*! @} */ 17792 17793 /*! @name WF7816 - UART 7816 Wait FD Register */ 17794 /*! @{ */ 17795 17796 #define UART_WF7816_GTFD_MASK (0xFFU) 17797 #define UART_WF7816_GTFD_SHIFT (0U) 17798 /*! GTFD - FD Multiplier 17799 */ 17800 #define UART_WF7816_GTFD(x) (((uint8_t)(((uint8_t)(x)) << UART_WF7816_GTFD_SHIFT)) & UART_WF7816_GTFD_MASK) 17801 /*! @} */ 17802 17803 /*! @name ET7816 - UART 7816 Error Threshold Register */ 17804 /*! @{ */ 17805 17806 #define UART_ET7816_RXTHRESHOLD_MASK (0xFU) 17807 #define UART_ET7816_RXTHRESHOLD_SHIFT (0U) 17808 /*! RXTHRESHOLD - Receive NACK Threshold 17809 */ 17810 #define UART_ET7816_RXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x)) << UART_ET7816_RXTHRESHOLD_SHIFT)) & UART_ET7816_RXTHRESHOLD_MASK) 17811 17812 #define UART_ET7816_TXTHRESHOLD_MASK (0xF0U) 17813 #define UART_ET7816_TXTHRESHOLD_SHIFT (4U) 17814 /*! TXTHRESHOLD - Transmit NACK Threshold 17815 * 0b0000..TXT asserts on the first NACK that is received. 17816 * 0b0001..TXT asserts on the second NACK that is received. 17817 */ 17818 #define UART_ET7816_TXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x)) << UART_ET7816_TXTHRESHOLD_SHIFT)) & UART_ET7816_TXTHRESHOLD_MASK) 17819 /*! @} */ 17820 17821 /*! @name TL7816 - UART 7816 Transmit Length Register */ 17822 /*! @{ */ 17823 17824 #define UART_TL7816_TLEN_MASK (0xFFU) 17825 #define UART_TL7816_TLEN_SHIFT (0U) 17826 /*! TLEN - Transmit Length 17827 */ 17828 #define UART_TL7816_TLEN(x) (((uint8_t)(((uint8_t)(x)) << UART_TL7816_TLEN_SHIFT)) & UART_TL7816_TLEN_MASK) 17829 /*! @} */ 17830 17831 17832 /*! 17833 * @} 17834 */ /* end of group UART_Register_Masks */ 17835 17836 17837 /* UART - Peripheral instance base addresses */ 17838 /** Peripheral UART0 base address */ 17839 #define UART0_BASE (0x4006A000u) 17840 /** Peripheral UART0 base pointer */ 17841 #define UART0 ((UART_Type *)UART0_BASE) 17842 /** Peripheral UART1 base address */ 17843 #define UART1_BASE (0x4006B000u) 17844 /** Peripheral UART1 base pointer */ 17845 #define UART1 ((UART_Type *)UART1_BASE) 17846 /** Peripheral UART2 base address */ 17847 #define UART2_BASE (0x4006C000u) 17848 /** Peripheral UART2 base pointer */ 17849 #define UART2 ((UART_Type *)UART2_BASE) 17850 /** Peripheral UART3 base address */ 17851 #define UART3_BASE (0x4006D000u) 17852 /** Peripheral UART3 base pointer */ 17853 #define UART3 ((UART_Type *)UART3_BASE) 17854 /** Array initializer of UART peripheral base addresses */ 17855 #define UART_BASE_ADDRS { UART0_BASE, UART1_BASE, UART2_BASE, UART3_BASE } 17856 /** Array initializer of UART peripheral base pointers */ 17857 #define UART_BASE_PTRS { UART0, UART1, UART2, UART3 } 17858 /** Interrupt vectors for the UART peripheral type */ 17859 #define UART_RX_TX_IRQS { UART0_UART1_IRQn, UART0_UART1_IRQn, UART2_UART3_IRQn, UART2_UART3_IRQn } 17860 #define UART_ERR_IRQS { UART0_UART1_IRQn, UART0_UART1_IRQn, UART2_UART3_IRQn, UART2_UART3_IRQn } 17861 17862 /*! 17863 * @} 17864 */ /* end of group UART_Peripheral_Access_Layer */ 17865 17866 17867 /* ---------------------------------------------------------------------------- 17868 -- VREF Peripheral Access Layer 17869 ---------------------------------------------------------------------------- */ 17870 17871 /*! 17872 * @addtogroup VREF_Peripheral_Access_Layer VREF Peripheral Access Layer 17873 * @{ 17874 */ 17875 17876 /** VREF - Register Layout Typedef */ 17877 typedef struct { 17878 __IO uint8_t VREFH_TRM; /**< VREF Trim Register, offset: 0x0 */ 17879 __IO uint8_t VREFH_SC; /**< VREF Status and Control Register, offset: 0x1 */ 17880 uint8_t RESERVED_0[3]; 17881 __IO uint8_t VREFL_TRM; /**< VREFL TRIM Register, offset: 0x5 */ 17882 } VREF_Type; 17883 17884 /* ---------------------------------------------------------------------------- 17885 -- VREF Register Masks 17886 ---------------------------------------------------------------------------- */ 17887 17888 /*! 17889 * @addtogroup VREF_Register_Masks VREF Register Masks 17890 * @{ 17891 */ 17892 17893 /*! @name VREFH_TRM - VREF Trim Register */ 17894 /*! @{ */ 17895 17896 #define VREF_VREFH_TRM_TRIM_MASK (0x3FU) 17897 #define VREF_VREFH_TRM_TRIM_SHIFT (0U) 17898 /*! TRIM - Trim bits 17899 * 0b000000..Min 17900 * 0b111111..Max 17901 */ 17902 #define VREF_VREFH_TRM_TRIM(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFH_TRM_TRIM_SHIFT)) & VREF_VREFH_TRM_TRIM_MASK) 17903 17904 #define VREF_VREFH_TRM_CHOPEN_MASK (0x40U) 17905 #define VREF_VREFH_TRM_CHOPEN_SHIFT (6U) 17906 /*! CHOPEN - Chop oscillator enable. When set, internal chopping operation is enabled and the 17907 * internal analog offset will be minimized. 17908 * 0b0..Chop oscillator is disabled. 17909 * 0b1..Chop oscillator is enabled. 17910 */ 17911 #define VREF_VREFH_TRM_CHOPEN(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFH_TRM_CHOPEN_SHIFT)) & VREF_VREFH_TRM_CHOPEN_MASK) 17912 /*! @} */ 17913 17914 /*! @name VREFH_SC - VREF Status and Control Register */ 17915 /*! @{ */ 17916 17917 #define VREF_VREFH_SC_MODE_LV_MASK (0x3U) 17918 #define VREF_VREFH_SC_MODE_LV_SHIFT (0U) 17919 /*! MODE_LV - Buffer Mode selection 17920 * 0b00..Bandgap on only, for stabilization and startup 17921 * 0b01..High power buffer mode enabled 17922 * 0b10..Low-power buffer mode enabled 17923 * 0b11..Reserved 17924 */ 17925 #define VREF_VREFH_SC_MODE_LV(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFH_SC_MODE_LV_SHIFT)) & VREF_VREFH_SC_MODE_LV_MASK) 17926 17927 #define VREF_VREFH_SC_VREFST_MASK (0x4U) 17928 #define VREF_VREFH_SC_VREFST_SHIFT (2U) 17929 /*! VREFST - Internal Voltage Reference stable 17930 * 0b0..The module is disabled or not stable. 17931 * 0b1..The module is stable. 17932 */ 17933 #define VREF_VREFH_SC_VREFST(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFH_SC_VREFST_SHIFT)) & VREF_VREFH_SC_VREFST_MASK) 17934 17935 #define VREF_VREFH_SC_ICOMPEN_MASK (0x20U) 17936 #define VREF_VREFH_SC_ICOMPEN_SHIFT (5U) 17937 /*! ICOMPEN - Second order curvature compensation enable 17938 * 0b0..Disabled 17939 * 0b1..Enabled 17940 */ 17941 #define VREF_VREFH_SC_ICOMPEN(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFH_SC_ICOMPEN_SHIFT)) & VREF_VREFH_SC_ICOMPEN_MASK) 17942 17943 #define VREF_VREFH_SC_REGEN_MASK (0x40U) 17944 #define VREF_VREFH_SC_REGEN_SHIFT (6U) 17945 /*! REGEN - Regulator enable 17946 * 0b0..Internal 1.75 V regulator is disabled. 17947 * 0b1..Internal 1.75 V regulator is enabled. 17948 */ 17949 #define VREF_VREFH_SC_REGEN(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFH_SC_REGEN_SHIFT)) & VREF_VREFH_SC_REGEN_MASK) 17950 17951 #define VREF_VREFH_SC_VREFEN_MASK (0x80U) 17952 #define VREF_VREFH_SC_VREFEN_SHIFT (7U) 17953 /*! VREFEN - Internal Voltage Reference enable 17954 * 0b0..The module is disabled. 17955 * 0b1..The module is enabled. 17956 */ 17957 #define VREF_VREFH_SC_VREFEN(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFH_SC_VREFEN_SHIFT)) & VREF_VREFH_SC_VREFEN_MASK) 17958 /*! @} */ 17959 17960 /*! @name VREFL_TRM - VREFL TRIM Register */ 17961 /*! @{ */ 17962 17963 #define VREF_VREFL_TRM_VREFL_TRIM_MASK (0x7U) 17964 #define VREF_VREFL_TRM_VREFL_TRIM_SHIFT (0U) 17965 #define VREF_VREFL_TRM_VREFL_TRIM(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFL_TRM_VREFL_TRIM_SHIFT)) & VREF_VREFL_TRM_VREFL_TRIM_MASK) 17966 17967 #define VREF_VREFL_TRM_VREFL_EN_MASK (0x8U) 17968 #define VREF_VREFL_TRM_VREFL_EN_SHIFT (3U) 17969 /*! VREFL_EN 17970 * 0b0..Disable 17971 * 0b1..Enable 17972 */ 17973 #define VREF_VREFL_TRM_VREFL_EN(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFL_TRM_VREFL_EN_SHIFT)) & VREF_VREFL_TRM_VREFL_EN_MASK) 17974 17975 #define VREF_VREFL_TRM_VREFL_SEL_MASK (0x10U) 17976 #define VREF_VREFL_TRM_VREFL_SEL_SHIFT (4U) 17977 /*! VREFL_SEL 17978 * 0b0..Internal reference 17979 * 0b1..External reference 17980 */ 17981 #define VREF_VREFL_TRM_VREFL_SEL(x) (((uint8_t)(((uint8_t)(x)) << VREF_VREFL_TRM_VREFL_SEL_SHIFT)) & VREF_VREFL_TRM_VREFL_SEL_MASK) 17982 /*! @} */ 17983 17984 17985 /*! 17986 * @} 17987 */ /* end of group VREF_Register_Masks */ 17988 17989 17990 /* VREF - Peripheral instance base addresses */ 17991 /** Peripheral VREF base address */ 17992 #define VREF_BASE (0x4006F000u) 17993 /** Peripheral VREF base pointer */ 17994 #define VREF ((VREF_Type *)VREF_BASE) 17995 /** Array initializer of VREF peripheral base addresses */ 17996 #define VREF_BASE_ADDRS { VREF_BASE } 17997 /** Array initializer of VREF peripheral base pointers */ 17998 #define VREF_BASE_PTRS { VREF } 17999 18000 /*! 18001 * @} 18002 */ /* end of group VREF_Peripheral_Access_Layer */ 18003 18004 18005 /* ---------------------------------------------------------------------------- 18006 -- WDOG Peripheral Access Layer 18007 ---------------------------------------------------------------------------- */ 18008 18009 /*! 18010 * @addtogroup WDOG_Peripheral_Access_Layer WDOG Peripheral Access Layer 18011 * @{ 18012 */ 18013 18014 /** WDOG - Register Layout Typedef */ 18015 typedef struct { 18016 __IO uint16_t STCTRLH; /**< Watchdog Status and Control Register High, offset: 0x0 */ 18017 __IO uint16_t STCTRLL; /**< Watchdog Status and Control Register Low, offset: 0x2 */ 18018 __IO uint16_t TOVALH; /**< Watchdog Time-out Value Register High, offset: 0x4 */ 18019 __IO uint16_t TOVALL; /**< Watchdog Time-out Value Register Low, offset: 0x6 */ 18020 __IO uint16_t WINH; /**< Watchdog Window Register High, offset: 0x8 */ 18021 __IO uint16_t WINL; /**< Watchdog Window Register Low, offset: 0xA */ 18022 __IO uint16_t REFRESH; /**< Watchdog Refresh register, offset: 0xC */ 18023 __IO uint16_t UNLOCK; /**< Watchdog Unlock register, offset: 0xE */ 18024 __IO uint16_t TMROUTH; /**< Watchdog Timer Output Register High, offset: 0x10 */ 18025 __IO uint16_t TMROUTL; /**< Watchdog Timer Output Register Low, offset: 0x12 */ 18026 __IO uint16_t RSTCNT; /**< Watchdog Reset Count register, offset: 0x14 */ 18027 __IO uint16_t PRESC; /**< Watchdog Prescaler register, offset: 0x16 */ 18028 } WDOG_Type; 18029 18030 /* ---------------------------------------------------------------------------- 18031 -- WDOG Register Masks 18032 ---------------------------------------------------------------------------- */ 18033 18034 /*! 18035 * @addtogroup WDOG_Register_Masks WDOG Register Masks 18036 * @{ 18037 */ 18038 18039 /*! @name STCTRLH - Watchdog Status and Control Register High */ 18040 /*! @{ */ 18041 18042 #define WDOG_STCTRLH_WDOGEN_MASK (0x1U) 18043 #define WDOG_STCTRLH_WDOGEN_SHIFT (0U) 18044 /*! WDOGEN 18045 * 0b0..WDOG is disabled. 18046 * 0b1..WDOG is enabled. 18047 */ 18048 #define WDOG_STCTRLH_WDOGEN(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_WDOGEN_SHIFT)) & WDOG_STCTRLH_WDOGEN_MASK) 18049 18050 #define WDOG_STCTRLH_CLKSRC_MASK (0x2U) 18051 #define WDOG_STCTRLH_CLKSRC_SHIFT (1U) 18052 /*! CLKSRC 18053 * 0b0..WDOG clock sourced from LPO . 18054 * 0b1..WDOG clock sourced from alternate clock source. 18055 */ 18056 #define WDOG_STCTRLH_CLKSRC(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_CLKSRC_SHIFT)) & WDOG_STCTRLH_CLKSRC_MASK) 18057 18058 #define WDOG_STCTRLH_IRQRSTEN_MASK (0x4U) 18059 #define WDOG_STCTRLH_IRQRSTEN_SHIFT (2U) 18060 /*! IRQRSTEN 18061 * 0b0..WDOG time-out generates reset only. 18062 * 0b1..WDOG time-out initially generates an interrupt. After WCT, it generates a reset. 18063 */ 18064 #define WDOG_STCTRLH_IRQRSTEN(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_IRQRSTEN_SHIFT)) & WDOG_STCTRLH_IRQRSTEN_MASK) 18065 18066 #define WDOG_STCTRLH_WINEN_MASK (0x8U) 18067 #define WDOG_STCTRLH_WINEN_SHIFT (3U) 18068 /*! WINEN 18069 * 0b0..Windowing mode is disabled. 18070 * 0b1..Windowing mode is enabled. 18071 */ 18072 #define WDOG_STCTRLH_WINEN(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_WINEN_SHIFT)) & WDOG_STCTRLH_WINEN_MASK) 18073 18074 #define WDOG_STCTRLH_ALLOWUPDATE_MASK (0x10U) 18075 #define WDOG_STCTRLH_ALLOWUPDATE_SHIFT (4U) 18076 /*! ALLOWUPDATE 18077 * 0b0..No further updates allowed to WDOG write-once registers. 18078 * 0b1..WDOG write-once registers can be unlocked for updating. 18079 */ 18080 #define WDOG_STCTRLH_ALLOWUPDATE(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_ALLOWUPDATE_SHIFT)) & WDOG_STCTRLH_ALLOWUPDATE_MASK) 18081 18082 #define WDOG_STCTRLH_DBGEN_MASK (0x20U) 18083 #define WDOG_STCTRLH_DBGEN_SHIFT (5U) 18084 /*! DBGEN 18085 * 0b0..WDOG is disabled in CPU Debug mode. 18086 * 0b1..WDOG is enabled in CPU Debug mode. 18087 */ 18088 #define WDOG_STCTRLH_DBGEN(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_DBGEN_SHIFT)) & WDOG_STCTRLH_DBGEN_MASK) 18089 18090 #define WDOG_STCTRLH_STOPEN_MASK (0x40U) 18091 #define WDOG_STCTRLH_STOPEN_SHIFT (6U) 18092 /*! STOPEN 18093 * 0b0..WDOG is disabled in CPU Stop mode. 18094 * 0b1..WDOG is enabled in CPU Stop mode. 18095 */ 18096 #define WDOG_STCTRLH_STOPEN(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_STOPEN_SHIFT)) & WDOG_STCTRLH_STOPEN_MASK) 18097 18098 #define WDOG_STCTRLH_TESTWDOG_MASK (0x400U) 18099 #define WDOG_STCTRLH_TESTWDOG_SHIFT (10U) 18100 #define WDOG_STCTRLH_TESTWDOG(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_TESTWDOG_SHIFT)) & WDOG_STCTRLH_TESTWDOG_MASK) 18101 18102 #define WDOG_STCTRLH_TESTSEL_MASK (0x800U) 18103 #define WDOG_STCTRLH_TESTSEL_SHIFT (11U) 18104 /*! TESTSEL 18105 * 0b0..Quick test. The timer runs in normal operation. You can load a small time-out value to do a quick test. 18106 * 0b1..Byte test. Puts the timer in the byte test mode where individual bytes of the timer are enabled for 18107 * operation and are compared for time-out against the corresponding byte of the programmed time-out value. Select 18108 * the byte through BYTESEL[1:0] for testing. 18109 */ 18110 #define WDOG_STCTRLH_TESTSEL(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_TESTSEL_SHIFT)) & WDOG_STCTRLH_TESTSEL_MASK) 18111 18112 #define WDOG_STCTRLH_BYTESEL_MASK (0x3000U) 18113 #define WDOG_STCTRLH_BYTESEL_SHIFT (12U) 18114 /*! BYTESEL 18115 * 0b00..Byte 0 selected 18116 * 0b01..Byte 1 selected 18117 * 0b10..Byte 2 selected 18118 * 0b11..Byte 3 selected 18119 */ 18120 #define WDOG_STCTRLH_BYTESEL(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_BYTESEL_SHIFT)) & WDOG_STCTRLH_BYTESEL_MASK) 18121 18122 #define WDOG_STCTRLH_DISTESTWDOG_MASK (0x4000U) 18123 #define WDOG_STCTRLH_DISTESTWDOG_SHIFT (14U) 18124 /*! DISTESTWDOG 18125 * 0b0..WDOG functional test mode is not disabled. 18126 * 0b1..WDOG functional test mode is disabled permanently until reset. 18127 */ 18128 #define WDOG_STCTRLH_DISTESTWDOG(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLH_DISTESTWDOG_SHIFT)) & WDOG_STCTRLH_DISTESTWDOG_MASK) 18129 /*! @} */ 18130 18131 /*! @name STCTRLL - Watchdog Status and Control Register Low */ 18132 /*! @{ */ 18133 18134 #define WDOG_STCTRLL_INTFLG_MASK (0x8000U) 18135 #define WDOG_STCTRLL_INTFLG_SHIFT (15U) 18136 #define WDOG_STCTRLL_INTFLG(x) (((uint16_t)(((uint16_t)(x)) << WDOG_STCTRLL_INTFLG_SHIFT)) & WDOG_STCTRLL_INTFLG_MASK) 18137 /*! @} */ 18138 18139 /*! @name TOVALH - Watchdog Time-out Value Register High */ 18140 /*! @{ */ 18141 18142 #define WDOG_TOVALH_TOVALHIGH_MASK (0xFFFFU) 18143 #define WDOG_TOVALH_TOVALHIGH_SHIFT (0U) 18144 #define WDOG_TOVALH_TOVALHIGH(x) (((uint16_t)(((uint16_t)(x)) << WDOG_TOVALH_TOVALHIGH_SHIFT)) & WDOG_TOVALH_TOVALHIGH_MASK) 18145 /*! @} */ 18146 18147 /*! @name TOVALL - Watchdog Time-out Value Register Low */ 18148 /*! @{ */ 18149 18150 #define WDOG_TOVALL_TOVALLOW_MASK (0xFFFFU) 18151 #define WDOG_TOVALL_TOVALLOW_SHIFT (0U) 18152 #define WDOG_TOVALL_TOVALLOW(x) (((uint16_t)(((uint16_t)(x)) << WDOG_TOVALL_TOVALLOW_SHIFT)) & WDOG_TOVALL_TOVALLOW_MASK) 18153 /*! @} */ 18154 18155 /*! @name WINH - Watchdog Window Register High */ 18156 /*! @{ */ 18157 18158 #define WDOG_WINH_WINHIGH_MASK (0xFFFFU) 18159 #define WDOG_WINH_WINHIGH_SHIFT (0U) 18160 #define WDOG_WINH_WINHIGH(x) (((uint16_t)(((uint16_t)(x)) << WDOG_WINH_WINHIGH_SHIFT)) & WDOG_WINH_WINHIGH_MASK) 18161 /*! @} */ 18162 18163 /*! @name WINL - Watchdog Window Register Low */ 18164 /*! @{ */ 18165 18166 #define WDOG_WINL_WINLOW_MASK (0xFFFFU) 18167 #define WDOG_WINL_WINLOW_SHIFT (0U) 18168 #define WDOG_WINL_WINLOW(x) (((uint16_t)(((uint16_t)(x)) << WDOG_WINL_WINLOW_SHIFT)) & WDOG_WINL_WINLOW_MASK) 18169 /*! @} */ 18170 18171 /*! @name REFRESH - Watchdog Refresh register */ 18172 /*! @{ */ 18173 18174 #define WDOG_REFRESH_WDOGREFRESH_MASK (0xFFFFU) 18175 #define WDOG_REFRESH_WDOGREFRESH_SHIFT (0U) 18176 #define WDOG_REFRESH_WDOGREFRESH(x) (((uint16_t)(((uint16_t)(x)) << WDOG_REFRESH_WDOGREFRESH_SHIFT)) & WDOG_REFRESH_WDOGREFRESH_MASK) 18177 /*! @} */ 18178 18179 /*! @name UNLOCK - Watchdog Unlock register */ 18180 /*! @{ */ 18181 18182 #define WDOG_UNLOCK_WDOGUNLOCK_MASK (0xFFFFU) 18183 #define WDOG_UNLOCK_WDOGUNLOCK_SHIFT (0U) 18184 #define WDOG_UNLOCK_WDOGUNLOCK(x) (((uint16_t)(((uint16_t)(x)) << WDOG_UNLOCK_WDOGUNLOCK_SHIFT)) & WDOG_UNLOCK_WDOGUNLOCK_MASK) 18185 /*! @} */ 18186 18187 /*! @name TMROUTH - Watchdog Timer Output Register High */ 18188 /*! @{ */ 18189 18190 #define WDOG_TMROUTH_TIMEROUTHIGH_MASK (0xFFFFU) 18191 #define WDOG_TMROUTH_TIMEROUTHIGH_SHIFT (0U) 18192 #define WDOG_TMROUTH_TIMEROUTHIGH(x) (((uint16_t)(((uint16_t)(x)) << WDOG_TMROUTH_TIMEROUTHIGH_SHIFT)) & WDOG_TMROUTH_TIMEROUTHIGH_MASK) 18193 /*! @} */ 18194 18195 /*! @name TMROUTL - Watchdog Timer Output Register Low */ 18196 /*! @{ */ 18197 18198 #define WDOG_TMROUTL_TIMEROUTLOW_MASK (0xFFFFU) 18199 #define WDOG_TMROUTL_TIMEROUTLOW_SHIFT (0U) 18200 #define WDOG_TMROUTL_TIMEROUTLOW(x) (((uint16_t)(((uint16_t)(x)) << WDOG_TMROUTL_TIMEROUTLOW_SHIFT)) & WDOG_TMROUTL_TIMEROUTLOW_MASK) 18201 /*! @} */ 18202 18203 /*! @name RSTCNT - Watchdog Reset Count register */ 18204 /*! @{ */ 18205 18206 #define WDOG_RSTCNT_RSTCNT_MASK (0xFFFFU) 18207 #define WDOG_RSTCNT_RSTCNT_SHIFT (0U) 18208 #define WDOG_RSTCNT_RSTCNT(x) (((uint16_t)(((uint16_t)(x)) << WDOG_RSTCNT_RSTCNT_SHIFT)) & WDOG_RSTCNT_RSTCNT_MASK) 18209 /*! @} */ 18210 18211 /*! @name PRESC - Watchdog Prescaler register */ 18212 /*! @{ */ 18213 18214 #define WDOG_PRESC_PRESCVAL_MASK (0x700U) 18215 #define WDOG_PRESC_PRESCVAL_SHIFT (8U) 18216 #define WDOG_PRESC_PRESCVAL(x) (((uint16_t)(((uint16_t)(x)) << WDOG_PRESC_PRESCVAL_SHIFT)) & WDOG_PRESC_PRESCVAL_MASK) 18217 /*! @} */ 18218 18219 18220 /*! 18221 * @} 18222 */ /* end of group WDOG_Register_Masks */ 18223 18224 18225 /* WDOG - Peripheral instance base addresses */ 18226 /** Peripheral WDOG base address */ 18227 #define WDOG_BASE (0x40053000u) 18228 /** Peripheral WDOG base pointer */ 18229 #define WDOG ((WDOG_Type *)WDOG_BASE) 18230 /** Array initializer of WDOG peripheral base addresses */ 18231 #define WDOG_BASE_ADDRS { WDOG_BASE } 18232 /** Array initializer of WDOG peripheral base pointers */ 18233 #define WDOG_BASE_PTRS { WDOG } 18234 /** Interrupt vectors for the WDOG peripheral type */ 18235 #define WDOG_IRQS { WDOG_IRQn } 18236 18237 /*! 18238 * @} 18239 */ /* end of group WDOG_Peripheral_Access_Layer */ 18240 18241 18242 /* ---------------------------------------------------------------------------- 18243 -- XBAR Peripheral Access Layer 18244 ---------------------------------------------------------------------------- */ 18245 18246 /*! 18247 * @addtogroup XBAR_Peripheral_Access_Layer XBAR Peripheral Access Layer 18248 * @{ 18249 */ 18250 18251 /** XBAR - Register Layout Typedef */ 18252 typedef struct { 18253 __IO uint16_t SEL0; /**< Crossbar Select Register 0, offset: 0x0 */ 18254 __IO uint16_t SEL1; /**< Crossbar Select Register 1, offset: 0x2 */ 18255 __IO uint16_t SEL2; /**< Crossbar Select Register 2, offset: 0x4 */ 18256 __IO uint16_t SEL3; /**< Crossbar Select Register 3, offset: 0x6 */ 18257 __IO uint16_t SEL4; /**< Crossbar Select Register 4, offset: 0x8 */ 18258 __IO uint16_t SEL5; /**< Crossbar Select Register 5, offset: 0xA */ 18259 __IO uint16_t SEL6; /**< Crossbar Select Register 6, offset: 0xC */ 18260 __IO uint16_t SEL7; /**< Crossbar Select Register 7, offset: 0xE */ 18261 __IO uint16_t SEL8; /**< Crossbar Select Register 8, offset: 0x10 */ 18262 __IO uint16_t SEL9; /**< Crossbar Select Register 9, offset: 0x12 */ 18263 __IO uint16_t SEL10; /**< Crossbar Select Register 10, offset: 0x14 */ 18264 __IO uint16_t SEL11; /**< Crossbar Select Register 11, offset: 0x16 */ 18265 __IO uint16_t SEL12; /**< Crossbar Select Register 12, offset: 0x18 */ 18266 __IO uint16_t SEL13; /**< Crossbar Select Register 13, offset: 0x1A */ 18267 __IO uint16_t SEL14; /**< Crossbar Select Register 14, offset: 0x1C */ 18268 __IO uint16_t SEL15; /**< Crossbar Select Register 15, offset: 0x1E */ 18269 __IO uint16_t SEL16; /**< Crossbar Select Register 16, offset: 0x20 */ 18270 __IO uint16_t CTRL0; /**< Crossbar Control Register 0, offset: 0x22 */ 18271 } XBAR_Type; 18272 18273 /* ---------------------------------------------------------------------------- 18274 -- XBAR Register Masks 18275 ---------------------------------------------------------------------------- */ 18276 18277 /*! 18278 * @addtogroup XBAR_Register_Masks XBAR Register Masks 18279 * @{ 18280 */ 18281 18282 /*! @name SEL0 - Crossbar Select Register 0 */ 18283 /*! @{ */ 18284 18285 #define XBAR_SEL0_SEL0_MASK (0x3FU) 18286 #define XBAR_SEL0_SEL0_SHIFT (0U) 18287 /*! SEL0 18288 * 0b000000..Logic 1 (VDD) 18289 * 0b000001..Logic 0 (VSS) 18290 * 0b000010..AFE modulator clock output 18291 * 0b000011..AFE modulator data output 18292 * 0b000100..LPTimer Output 18293 * 0b000101..Clock Output 18294 * 0b000110..Quad Timer channel 0 output 18295 * 0b000111..Quad Timer channel 1 output 18296 * 0b001000..Quad Timer channel 2 output 18297 * 0b001001..Quad Timer channel 3 output 18298 * 0b001010..iRTC Clock Output 18299 * 0b001011..CMP0 Output 18300 * 0b001100..CMP1 Output 18301 * 0b001101..iRTC Alarm Output 18302 * 0b001110..UART TX Output (after modulation) 18303 * 0b001111..EWM Output (EWM_OUT) 18304 * 0b010000..PIT Output 18305 * 0b010001..XBAR Input pin 0 18306 * 0b010010..XBAR Input pin 1 18307 * 0b010011..XBAR Input pin 2 18308 * 0b010100..XBAR Input pin 3 18309 * 0b010101..XBAR Input pin 4 18310 * 0b010110..XBAR Input pin 5 18311 * 0b010111..XBAR Input pin 6 18312 * 0b011000..XBAR Input pin 7 18313 * 0b011001..XBAR Input pin 8 18314 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18315 * 0b011011..ORed conversion complete flag for all AFE channels 18316 * 0b011100..AFE Channel 0 conversion complete 18317 * 0b011101..AFE Channel 1 conversion complete 18318 * 0b011110..AFE Channel 2 conversion complete 18319 * 0b011111..AFE Channel 3 conversion complete 18320 * 0b100000..DMA Done Signal 18321 */ 18322 #define XBAR_SEL0_SEL0(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL0_SEL0_SHIFT)) & XBAR_SEL0_SEL0_MASK) 18323 18324 #define XBAR_SEL0_SEL1_MASK (0x3F00U) 18325 #define XBAR_SEL0_SEL1_SHIFT (8U) 18326 /*! SEL1 18327 * 0b000000..Logic 1 (VDD) 18328 * 0b000001..Logic 0 (VSS) 18329 * 0b000010..AFE modulator clock output 18330 * 0b000011..AFE modulator data output 18331 * 0b000100..LPTimer Output 18332 * 0b000101..Clock Output 18333 * 0b000110..Quad Timer channel 0 output 18334 * 0b000111..Quad Timer channel 1 output 18335 * 0b001000..Quad Timer channel 2 output 18336 * 0b001001..Quad Timer channel 3 output 18337 * 0b001010..iRTC Clock Output 18338 * 0b001011..CMP0 Output 18339 * 0b001100..CMP1 Output 18340 * 0b001101..iRTC Alarm Output 18341 * 0b001110..UART TX Output (after modulation) 18342 * 0b001111..EWM Output (EWM_OUT) 18343 * 0b010000..PIT Output 18344 * 0b010001..XBAR Input pin 0 18345 * 0b010010..XBAR Input pin 1 18346 * 0b010011..XBAR Input pin 2 18347 * 0b010100..XBAR Input pin 3 18348 * 0b010101..XBAR Input pin 4 18349 * 0b010110..XBAR Input pin 5 18350 * 0b010111..XBAR Input pin 6 18351 * 0b011000..XBAR Input pin 7 18352 * 0b011001..XBAR Input pin 8 18353 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18354 * 0b011011..ORed conversion complete flag for all AFE channels 18355 * 0b011100..AFE Channel 0 conversion complete 18356 * 0b011101..AFE Channel 1 conversion complete 18357 * 0b011110..AFE Channel 2 conversion complete 18358 * 0b011111..AFE Channel 3 conversion complete 18359 * 0b100000..DMA Done Signal 18360 */ 18361 #define XBAR_SEL0_SEL1(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL0_SEL1_SHIFT)) & XBAR_SEL0_SEL1_MASK) 18362 /*! @} */ 18363 18364 /*! @name SEL1 - Crossbar Select Register 1 */ 18365 /*! @{ */ 18366 18367 #define XBAR_SEL1_SEL2_MASK (0x3FU) 18368 #define XBAR_SEL1_SEL2_SHIFT (0U) 18369 /*! SEL2 18370 * 0b000000..Logic 1 (VDD) 18371 * 0b000001..Logic 0 (VSS) 18372 * 0b000010..AFE modulator clock output 18373 * 0b000011..AFE modulator data output 18374 * 0b000100..LPTimer Output 18375 * 0b000101..Clock Output 18376 * 0b000110..Quad Timer channel 0 output 18377 * 0b000111..Quad Timer channel 1 output 18378 * 0b001000..Quad Timer channel 2 output 18379 * 0b001001..Quad Timer channel 3 output 18380 * 0b001010..iRTC Clock Output 18381 * 0b001011..CMP0 Output 18382 * 0b001100..CMP1 Output 18383 * 0b001101..iRTC Alarm Output 18384 * 0b001110..UART TX Output (after modulation) 18385 * 0b001111..EWM Output (EWM_OUT) 18386 * 0b010000..PIT Output 18387 * 0b010001..XBAR Input pin 0 18388 * 0b010010..XBAR Input pin 1 18389 * 0b010011..XBAR Input pin 2 18390 * 0b010100..XBAR Input pin 3 18391 * 0b010101..XBAR Input pin 4 18392 * 0b010110..XBAR Input pin 5 18393 * 0b010111..XBAR Input pin 6 18394 * 0b011000..XBAR Input pin 7 18395 * 0b011001..XBAR Input pin 8 18396 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18397 * 0b011011..ORed conversion complete flag for all AFE channels 18398 * 0b011100..AFE Channel 0 conversion complete 18399 * 0b011101..AFE Channel 1 conversion complete 18400 * 0b011110..AFE Channel 2 conversion complete 18401 * 0b011111..AFE Channel 3 conversion complete 18402 * 0b100000..DMA Done Signal 18403 */ 18404 #define XBAR_SEL1_SEL2(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL1_SEL2_SHIFT)) & XBAR_SEL1_SEL2_MASK) 18405 18406 #define XBAR_SEL1_SEL3_MASK (0x3F00U) 18407 #define XBAR_SEL1_SEL3_SHIFT (8U) 18408 /*! SEL3 18409 * 0b000000..Logic 1 (VDD) 18410 * 0b000001..Logic 0 (VSS) 18411 * 0b000010..AFE modulator clock output 18412 * 0b000011..AFE modulator data output 18413 * 0b000100..LPTimer Output 18414 * 0b000101..Clock Output 18415 * 0b000110..Quad Timer channel 0 output 18416 * 0b000111..Quad Timer channel 1 output 18417 * 0b001000..Quad Timer channel 2 output 18418 * 0b001001..Quad Timer channel 3 output 18419 * 0b001010..iRTC Clock Output 18420 * 0b001011..CMP0 Output 18421 * 0b001100..CMP1 Output 18422 * 0b001101..iRTC Alarm Output 18423 * 0b001110..UART TX Output (after modulation) 18424 * 0b001111..EWM Output (EWM_OUT) 18425 * 0b010000..PIT Output 18426 * 0b010001..XBAR Input pin 0 18427 * 0b010010..XBAR Input pin 1 18428 * 0b010011..XBAR Input pin 2 18429 * 0b010100..XBAR Input pin 3 18430 * 0b010101..XBAR Input pin 4 18431 * 0b010110..XBAR Input pin 5 18432 * 0b010111..XBAR Input pin 6 18433 * 0b011000..XBAR Input pin 7 18434 * 0b011001..XBAR Input pin 8 18435 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18436 * 0b011011..ORed conversion complete flag for all AFE channels 18437 * 0b011100..AFE Channel 0 conversion complete 18438 * 0b011101..AFE Channel 1 conversion complete 18439 * 0b011110..AFE Channel 2 conversion complete 18440 * 0b011111..AFE Channel 3 conversion complete 18441 * 0b100000..DMA Done Signal 18442 */ 18443 #define XBAR_SEL1_SEL3(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL1_SEL3_SHIFT)) & XBAR_SEL1_SEL3_MASK) 18444 /*! @} */ 18445 18446 /*! @name SEL2 - Crossbar Select Register 2 */ 18447 /*! @{ */ 18448 18449 #define XBAR_SEL2_SEL4_MASK (0x3FU) 18450 #define XBAR_SEL2_SEL4_SHIFT (0U) 18451 /*! SEL4 18452 * 0b000000..Logic 1 (VDD) 18453 * 0b000001..Logic 0 (VSS) 18454 * 0b000010..AFE modulator clock output 18455 * 0b000011..AFE modulator data output 18456 * 0b000100..LPTimer Output 18457 * 0b000101..Clock Output 18458 * 0b000110..Quad Timer channel 0 output 18459 * 0b000111..Quad Timer channel 1 output 18460 * 0b001000..Quad Timer channel 2 output 18461 * 0b001001..Quad Timer channel 3 output 18462 * 0b001010..iRTC Clock Output 18463 * 0b001011..CMP0 Output 18464 * 0b001100..CMP1 Output 18465 * 0b001101..iRTC Alarm Output 18466 * 0b001110..UART TX Output (after modulation) 18467 * 0b001111..EWM Output (EWM_OUT) 18468 * 0b010000..PIT Output 18469 * 0b010001..XBAR Input pin 0 18470 * 0b010010..XBAR Input pin 1 18471 * 0b010011..XBAR Input pin 2 18472 * 0b010100..XBAR Input pin 3 18473 * 0b010101..XBAR Input pin 4 18474 * 0b010110..XBAR Input pin 5 18475 * 0b010111..XBAR Input pin 6 18476 * 0b011000..XBAR Input pin 7 18477 * 0b011001..XBAR Input pin 8 18478 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18479 * 0b011011..ORed conversion complete flag for all AFE channels 18480 * 0b011100..AFE Channel 0 conversion complete 18481 * 0b011101..AFE Channel 1 conversion complete 18482 * 0b011110..AFE Channel 2 conversion complete 18483 * 0b011111..AFE Channel 3 conversion complete 18484 * 0b100000..DMA Done Signal 18485 */ 18486 #define XBAR_SEL2_SEL4(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL2_SEL4_SHIFT)) & XBAR_SEL2_SEL4_MASK) 18487 18488 #define XBAR_SEL2_SEL5_MASK (0x3F00U) 18489 #define XBAR_SEL2_SEL5_SHIFT (8U) 18490 /*! SEL5 18491 * 0b000000..Logic 1 (VDD) 18492 * 0b000001..Logic 0 (VSS) 18493 * 0b000010..AFE modulator clock output 18494 * 0b000011..AFE modulator data output 18495 * 0b000100..LPTimer Output 18496 * 0b000101..Clock Output 18497 * 0b000110..Quad Timer channel 0 output 18498 * 0b000111..Quad Timer channel 1 output 18499 * 0b001000..Quad Timer channel 2 output 18500 * 0b001001..Quad Timer channel 3 output 18501 * 0b001010..iRTC Clock Output 18502 * 0b001011..CMP0 Output 18503 * 0b001100..CMP1 Output 18504 * 0b001101..iRTC Alarm Output 18505 * 0b001110..UART TX Output (after modulation) 18506 * 0b001111..EWM Output (EWM_OUT) 18507 * 0b010000..PIT Output 18508 * 0b010001..XBAR Input pin 0 18509 * 0b010010..XBAR Input pin 1 18510 * 0b010011..XBAR Input pin 2 18511 * 0b010100..XBAR Input pin 3 18512 * 0b010101..XBAR Input pin 4 18513 * 0b010110..XBAR Input pin 5 18514 * 0b010111..XBAR Input pin 6 18515 * 0b011000..XBAR Input pin 7 18516 * 0b011001..XBAR Input pin 8 18517 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18518 * 0b011011..ORed conversion complete flag for all AFE channels 18519 * 0b011100..AFE Channel 0 conversion complete 18520 * 0b011101..AFE Channel 1 conversion complete 18521 * 0b011110..AFE Channel 2 conversion complete 18522 * 0b011111..AFE Channel 3 conversion complete 18523 * 0b100000..DMA Done Signal 18524 */ 18525 #define XBAR_SEL2_SEL5(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL2_SEL5_SHIFT)) & XBAR_SEL2_SEL5_MASK) 18526 /*! @} */ 18527 18528 /*! @name SEL3 - Crossbar Select Register 3 */ 18529 /*! @{ */ 18530 18531 #define XBAR_SEL3_SEL6_MASK (0x3FU) 18532 #define XBAR_SEL3_SEL6_SHIFT (0U) 18533 /*! SEL6 18534 * 0b000000..Logic 1 (VDD) 18535 * 0b000001..Logic 0 (VSS) 18536 * 0b000010..AFE modulator clock output 18537 * 0b000011..AFE modulator data output 18538 * 0b000100..LPTimer Output 18539 * 0b000101..Clock Output 18540 * 0b000110..Quad Timer channel 0 output 18541 * 0b000111..Quad Timer channel 1 output 18542 * 0b001000..Quad Timer channel 2 output 18543 * 0b001001..Quad Timer channel 3 output 18544 * 0b001010..iRTC Clock Output 18545 * 0b001011..CMP0 Output 18546 * 0b001100..CMP1 Output 18547 * 0b001101..iRTC Alarm Output 18548 * 0b001110..UART TX Output (after modulation) 18549 * 0b001111..EWM Output (EWM_OUT) 18550 * 0b010000..PIT Output 18551 * 0b010001..XBAR Input pin 0 18552 * 0b010010..XBAR Input pin 1 18553 * 0b010011..XBAR Input pin 2 18554 * 0b010100..XBAR Input pin 3 18555 * 0b010101..XBAR Input pin 4 18556 * 0b010110..XBAR Input pin 5 18557 * 0b010111..XBAR Input pin 6 18558 * 0b011000..XBAR Input pin 7 18559 * 0b011001..XBAR Input pin 8 18560 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18561 * 0b011011..ORed conversion complete flag for all AFE channels 18562 * 0b011100..AFE Channel 0 conversion complete 18563 * 0b011101..AFE Channel 1 conversion complete 18564 * 0b011110..AFE Channel 2 conversion complete 18565 * 0b011111..AFE Channel 3 conversion complete 18566 * 0b100000..DMA Done Signal 18567 */ 18568 #define XBAR_SEL3_SEL6(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL3_SEL6_SHIFT)) & XBAR_SEL3_SEL6_MASK) 18569 18570 #define XBAR_SEL3_SEL7_MASK (0x3F00U) 18571 #define XBAR_SEL3_SEL7_SHIFT (8U) 18572 /*! SEL7 18573 * 0b000000..Logic 1 (VDD) 18574 * 0b000001..Logic 0 (VSS) 18575 * 0b000010..AFE modulator clock output 18576 * 0b000011..AFE modulator data output 18577 * 0b000100..LPTimer Output 18578 * 0b000101..Clock Output 18579 * 0b000110..Quad Timer channel 0 output 18580 * 0b000111..Quad Timer channel 1 output 18581 * 0b001000..Quad Timer channel 2 output 18582 * 0b001001..Quad Timer channel 3 output 18583 * 0b001010..iRTC Clock Output 18584 * 0b001011..CMP0 Output 18585 * 0b001100..CMP1 Output 18586 * 0b001101..iRTC Alarm Output 18587 * 0b001110..UART TX Output (after modulation) 18588 * 0b001111..EWM Output (EWM_OUT) 18589 * 0b010000..PIT Output 18590 * 0b010001..XBAR Input pin 0 18591 * 0b010010..XBAR Input pin 1 18592 * 0b010011..XBAR Input pin 2 18593 * 0b010100..XBAR Input pin 3 18594 * 0b010101..XBAR Input pin 4 18595 * 0b010110..XBAR Input pin 5 18596 * 0b010111..XBAR Input pin 6 18597 * 0b011000..XBAR Input pin 7 18598 * 0b011001..XBAR Input pin 8 18599 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18600 * 0b011011..ORed conversion complete flag for all AFE channels 18601 * 0b011100..AFE Channel 0 conversion complete 18602 * 0b011101..AFE Channel 1 conversion complete 18603 * 0b011110..AFE Channel 2 conversion complete 18604 * 0b011111..AFE Channel 3 conversion complete 18605 * 0b100000..DMA Done Signal 18606 */ 18607 #define XBAR_SEL3_SEL7(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL3_SEL7_SHIFT)) & XBAR_SEL3_SEL7_MASK) 18608 /*! @} */ 18609 18610 /*! @name SEL4 - Crossbar Select Register 4 */ 18611 /*! @{ */ 18612 18613 #define XBAR_SEL4_SEL8_MASK (0x3FU) 18614 #define XBAR_SEL4_SEL8_SHIFT (0U) 18615 /*! SEL8 18616 * 0b000000..Logic 1 (VDD) 18617 * 0b000001..Logic 0 (VSS) 18618 * 0b000010..AFE modulator clock output 18619 * 0b000011..AFE modulator data output 18620 * 0b000100..LPTimer Output 18621 * 0b000101..Clock Output 18622 * 0b000110..Quad Timer channel 0 output 18623 * 0b000111..Quad Timer channel 1 output 18624 * 0b001000..Quad Timer channel 2 output 18625 * 0b001001..Quad Timer channel 3 output 18626 * 0b001010..iRTC Clock Output 18627 * 0b001011..CMP0 Output 18628 * 0b001100..CMP1 Output 18629 * 0b001101..iRTC Alarm Output 18630 * 0b001110..UART TX Output (after modulation) 18631 * 0b001111..EWM Output (EWM_OUT) 18632 * 0b010000..PIT Output 18633 * 0b010001..XBAR Input pin 0 18634 * 0b010010..XBAR Input pin 1 18635 * 0b010011..XBAR Input pin 2 18636 * 0b010100..XBAR Input pin 3 18637 * 0b010101..XBAR Input pin 4 18638 * 0b010110..XBAR Input pin 5 18639 * 0b010111..XBAR Input pin 6 18640 * 0b011000..XBAR Input pin 7 18641 * 0b011001..XBAR Input pin 8 18642 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18643 * 0b011011..ORed conversion complete flag for all AFE channels 18644 * 0b011100..AFE Channel 0 conversion complete 18645 * 0b011101..AFE Channel 1 conversion complete 18646 * 0b011110..AFE Channel 2 conversion complete 18647 * 0b011111..AFE Channel 3 conversion complete 18648 * 0b100000..DMA Done Signal 18649 */ 18650 #define XBAR_SEL4_SEL8(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL4_SEL8_SHIFT)) & XBAR_SEL4_SEL8_MASK) 18651 18652 #define XBAR_SEL4_SEL9_MASK (0x3F00U) 18653 #define XBAR_SEL4_SEL9_SHIFT (8U) 18654 /*! SEL9 18655 * 0b000000..Logic 1 (VDD) 18656 * 0b000001..Logic 0 (VSS) 18657 * 0b000010..AFE modulator clock output 18658 * 0b000011..AFE modulator data output 18659 * 0b000100..LPTimer Output 18660 * 0b000101..Clock Output 18661 * 0b000110..Quad Timer channel 0 output 18662 * 0b000111..Quad Timer channel 1 output 18663 * 0b001000..Quad Timer channel 2 output 18664 * 0b001001..Quad Timer channel 3 output 18665 * 0b001010..iRTC Clock Output 18666 * 0b001011..CMP0 Output 18667 * 0b001100..CMP1 Output 18668 * 0b001101..iRTC Alarm Output 18669 * 0b001110..UART TX Output (after modulation) 18670 * 0b001111..EWM Output (EWM_OUT) 18671 * 0b010000..PIT Output 18672 * 0b010001..XBAR Input pin 0 18673 * 0b010010..XBAR Input pin 1 18674 * 0b010011..XBAR Input pin 2 18675 * 0b010100..XBAR Input pin 3 18676 * 0b010101..XBAR Input pin 4 18677 * 0b010110..XBAR Input pin 5 18678 * 0b010111..XBAR Input pin 6 18679 * 0b011000..XBAR Input pin 7 18680 * 0b011001..XBAR Input pin 8 18681 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18682 * 0b011011..ORed conversion complete flag for all AFE channels 18683 * 0b011100..AFE Channel 0 conversion complete 18684 * 0b011101..AFE Channel 1 conversion complete 18685 * 0b011110..AFE Channel 2 conversion complete 18686 * 0b011111..AFE Channel 3 conversion complete 18687 * 0b100000..DMA Done Signal 18688 */ 18689 #define XBAR_SEL4_SEL9(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL4_SEL9_SHIFT)) & XBAR_SEL4_SEL9_MASK) 18690 /*! @} */ 18691 18692 /*! @name SEL5 - Crossbar Select Register 5 */ 18693 /*! @{ */ 18694 18695 #define XBAR_SEL5_SEL10_MASK (0x3FU) 18696 #define XBAR_SEL5_SEL10_SHIFT (0U) 18697 /*! SEL10 18698 * 0b000000..Logic 1 (VDD) 18699 * 0b000001..Logic 0 (VSS) 18700 * 0b000010..AFE modulator clock output 18701 * 0b000011..AFE modulator data output 18702 * 0b000100..LPTimer Output 18703 * 0b000101..Clock Output 18704 * 0b000110..Quad Timer channel 0 output 18705 * 0b000111..Quad Timer channel 1 output 18706 * 0b001000..Quad Timer channel 2 output 18707 * 0b001001..Quad Timer channel 3 output 18708 * 0b001010..iRTC Clock Output 18709 * 0b001011..CMP0 Output 18710 * 0b001100..CMP1 Output 18711 * 0b001101..iRTC Alarm Output 18712 * 0b001110..UART TX Output (after modulation) 18713 * 0b001111..EWM Output (EWM_OUT) 18714 * 0b010000..PIT Output 18715 * 0b010001..XBAR Input pin 0 18716 * 0b010010..XBAR Input pin 1 18717 * 0b010011..XBAR Input pin 2 18718 * 0b010100..XBAR Input pin 3 18719 * 0b010101..XBAR Input pin 4 18720 * 0b010110..XBAR Input pin 5 18721 * 0b010111..XBAR Input pin 6 18722 * 0b011000..XBAR Input pin 7 18723 * 0b011001..XBAR Input pin 8 18724 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18725 * 0b011011..ORed conversion complete flag for all AFE channels 18726 * 0b011100..AFE Channel 0 conversion complete 18727 * 0b011101..AFE Channel 1 conversion complete 18728 * 0b011110..AFE Channel 2 conversion complete 18729 * 0b011111..AFE Channel 3 conversion complete 18730 * 0b100000..DMA Done Signal 18731 */ 18732 #define XBAR_SEL5_SEL10(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL5_SEL10_SHIFT)) & XBAR_SEL5_SEL10_MASK) 18733 18734 #define XBAR_SEL5_SEL11_MASK (0x3F00U) 18735 #define XBAR_SEL5_SEL11_SHIFT (8U) 18736 /*! SEL11 18737 * 0b000000..Logic 1 (VDD) 18738 * 0b000001..Logic 0 (VSS) 18739 * 0b000010..AFE modulator clock output 18740 * 0b000011..AFE modulator data output 18741 * 0b000100..LPTimer Output 18742 * 0b000101..Clock Output 18743 * 0b000110..Quad Timer channel 0 output 18744 * 0b000111..Quad Timer channel 1 output 18745 * 0b001000..Quad Timer channel 2 output 18746 * 0b001001..Quad Timer channel 3 output 18747 * 0b001010..iRTC Clock Output 18748 * 0b001011..CMP0 Output 18749 * 0b001100..CMP1 Output 18750 * 0b001101..iRTC Alarm Output 18751 * 0b001110..UART TX Output (after modulation) 18752 * 0b001111..EWM Output (EWM_OUT) 18753 * 0b010000..PIT Output 18754 * 0b010001..XBAR Input pin 0 18755 * 0b010010..XBAR Input pin 1 18756 * 0b010011..XBAR Input pin 2 18757 * 0b010100..XBAR Input pin 3 18758 * 0b010101..XBAR Input pin 4 18759 * 0b010110..XBAR Input pin 5 18760 * 0b010111..XBAR Input pin 6 18761 * 0b011000..XBAR Input pin 7 18762 * 0b011001..XBAR Input pin 8 18763 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18764 * 0b011011..ORed conversion complete flag for all AFE channels 18765 * 0b011100..AFE Channel 0 conversion complete 18766 * 0b011101..AFE Channel 1 conversion complete 18767 * 0b011110..AFE Channel 2 conversion complete 18768 * 0b011111..AFE Channel 3 conversion complete 18769 * 0b100000..DMA Done Signal 18770 */ 18771 #define XBAR_SEL5_SEL11(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL5_SEL11_SHIFT)) & XBAR_SEL5_SEL11_MASK) 18772 /*! @} */ 18773 18774 /*! @name SEL6 - Crossbar Select Register 6 */ 18775 /*! @{ */ 18776 18777 #define XBAR_SEL6_SEL12_MASK (0x3FU) 18778 #define XBAR_SEL6_SEL12_SHIFT (0U) 18779 /*! SEL12 18780 * 0b000000..Logic 1 (VDD) 18781 * 0b000001..Logic 0 (VSS) 18782 * 0b000010..AFE modulator clock output 18783 * 0b000011..AFE modulator data output 18784 * 0b000100..LPTimer Output 18785 * 0b000101..Clock Output 18786 * 0b000110..Quad Timer channel 0 output 18787 * 0b000111..Quad Timer channel 1 output 18788 * 0b001000..Quad Timer channel 2 output 18789 * 0b001001..Quad Timer channel 3 output 18790 * 0b001010..iRTC Clock Output 18791 * 0b001011..CMP0 Output 18792 * 0b001100..CMP1 Output 18793 * 0b001101..iRTC Alarm Output 18794 * 0b001110..UART TX Output (after modulation) 18795 * 0b001111..EWM Output (EWM_OUT) 18796 * 0b010000..PIT Output 18797 * 0b010001..XBAR Input pin 0 18798 * 0b010010..XBAR Input pin 1 18799 * 0b010011..XBAR Input pin 2 18800 * 0b010100..XBAR Input pin 3 18801 * 0b010101..XBAR Input pin 4 18802 * 0b010110..XBAR Input pin 5 18803 * 0b010111..XBAR Input pin 6 18804 * 0b011000..XBAR Input pin 7 18805 * 0b011001..XBAR Input pin 8 18806 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18807 * 0b011011..ORed conversion complete flag for all AFE channels 18808 * 0b011100..AFE Channel 0 conversion complete 18809 * 0b011101..AFE Channel 1 conversion complete 18810 * 0b011110..AFE Channel 2 conversion complete 18811 * 0b011111..AFE Channel 3 conversion complete 18812 * 0b100000..DMA Done Signal 18813 */ 18814 #define XBAR_SEL6_SEL12(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL6_SEL12_SHIFT)) & XBAR_SEL6_SEL12_MASK) 18815 18816 #define XBAR_SEL6_SEL13_MASK (0x3F00U) 18817 #define XBAR_SEL6_SEL13_SHIFT (8U) 18818 /*! SEL13 18819 * 0b000000..Logic 1 (VDD) 18820 * 0b000001..Logic 0 (VSS) 18821 * 0b000010..AFE modulator clock output 18822 * 0b000011..AFE modulator data output 18823 * 0b000100..LPTimer Output 18824 * 0b000101..Clock Output 18825 * 0b000110..Quad Timer channel 0 output 18826 * 0b000111..Quad Timer channel 1 output 18827 * 0b001000..Quad Timer channel 2 output 18828 * 0b001001..Quad Timer channel 3 output 18829 * 0b001010..iRTC Clock Output 18830 * 0b001011..CMP0 Output 18831 * 0b001100..CMP1 Output 18832 * 0b001101..iRTC Alarm Output 18833 * 0b001110..UART TX Output (after modulation) 18834 * 0b001111..EWM Output (EWM_OUT) 18835 * 0b010000..PIT Output 18836 * 0b010001..XBAR Input pin 0 18837 * 0b010010..XBAR Input pin 1 18838 * 0b010011..XBAR Input pin 2 18839 * 0b010100..XBAR Input pin 3 18840 * 0b010101..XBAR Input pin 4 18841 * 0b010110..XBAR Input pin 5 18842 * 0b010111..XBAR Input pin 6 18843 * 0b011000..XBAR Input pin 7 18844 * 0b011001..XBAR Input pin 8 18845 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18846 * 0b011011..ORed conversion complete flag for all AFE channels 18847 * 0b011100..AFE Channel 0 conversion complete 18848 * 0b011101..AFE Channel 1 conversion complete 18849 * 0b011110..AFE Channel 2 conversion complete 18850 * 0b011111..AFE Channel 3 conversion complete 18851 * 0b100000..DMA Done Signal 18852 */ 18853 #define XBAR_SEL6_SEL13(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL6_SEL13_SHIFT)) & XBAR_SEL6_SEL13_MASK) 18854 /*! @} */ 18855 18856 /*! @name SEL7 - Crossbar Select Register 7 */ 18857 /*! @{ */ 18858 18859 #define XBAR_SEL7_SEL14_MASK (0x3FU) 18860 #define XBAR_SEL7_SEL14_SHIFT (0U) 18861 /*! SEL14 18862 * 0b000000..Logic 1 (VDD) 18863 * 0b000001..Logic 0 (VSS) 18864 * 0b000010..AFE modulator clock output 18865 * 0b000011..AFE modulator data output 18866 * 0b000100..LPTimer Output 18867 * 0b000101..Clock Output 18868 * 0b000110..Quad Timer channel 0 output 18869 * 0b000111..Quad Timer channel 1 output 18870 * 0b001000..Quad Timer channel 2 output 18871 * 0b001001..Quad Timer channel 3 output 18872 * 0b001010..iRTC Clock Output 18873 * 0b001011..CMP0 Output 18874 * 0b001100..CMP1 Output 18875 * 0b001101..iRTC Alarm Output 18876 * 0b001110..UART TX Output (after modulation) 18877 * 0b001111..EWM Output (EWM_OUT) 18878 * 0b010000..PIT Output 18879 * 0b010001..XBAR Input pin 0 18880 * 0b010010..XBAR Input pin 1 18881 * 0b010011..XBAR Input pin 2 18882 * 0b010100..XBAR Input pin 3 18883 * 0b010101..XBAR Input pin 4 18884 * 0b010110..XBAR Input pin 5 18885 * 0b010111..XBAR Input pin 6 18886 * 0b011000..XBAR Input pin 7 18887 * 0b011001..XBAR Input pin 8 18888 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18889 * 0b011011..ORed conversion complete flag for all AFE channels 18890 * 0b011100..AFE Channel 0 conversion complete 18891 * 0b011101..AFE Channel 1 conversion complete 18892 * 0b011110..AFE Channel 2 conversion complete 18893 * 0b011111..AFE Channel 3 conversion complete 18894 * 0b100000..DMA Done Signal 18895 */ 18896 #define XBAR_SEL7_SEL14(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL7_SEL14_SHIFT)) & XBAR_SEL7_SEL14_MASK) 18897 18898 #define XBAR_SEL7_SEL15_MASK (0x3F00U) 18899 #define XBAR_SEL7_SEL15_SHIFT (8U) 18900 /*! SEL15 18901 * 0b000000..Logic 1 (VDD) 18902 * 0b000001..Logic 0 (VSS) 18903 * 0b000010..AFE modulator clock output 18904 * 0b000011..AFE modulator data output 18905 * 0b000100..LPTimer Output 18906 * 0b000101..Clock Output 18907 * 0b000110..Quad Timer channel 0 output 18908 * 0b000111..Quad Timer channel 1 output 18909 * 0b001000..Quad Timer channel 2 output 18910 * 0b001001..Quad Timer channel 3 output 18911 * 0b001010..iRTC Clock Output 18912 * 0b001011..CMP0 Output 18913 * 0b001100..CMP1 Output 18914 * 0b001101..iRTC Alarm Output 18915 * 0b001110..UART TX Output (after modulation) 18916 * 0b001111..EWM Output (EWM_OUT) 18917 * 0b010000..PIT Output 18918 * 0b010001..XBAR Input pin 0 18919 * 0b010010..XBAR Input pin 1 18920 * 0b010011..XBAR Input pin 2 18921 * 0b010100..XBAR Input pin 3 18922 * 0b010101..XBAR Input pin 4 18923 * 0b010110..XBAR Input pin 5 18924 * 0b010111..XBAR Input pin 6 18925 * 0b011000..XBAR Input pin 7 18926 * 0b011001..XBAR Input pin 8 18927 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18928 * 0b011011..ORed conversion complete flag for all AFE channels 18929 * 0b011100..AFE Channel 0 conversion complete 18930 * 0b011101..AFE Channel 1 conversion complete 18931 * 0b011110..AFE Channel 2 conversion complete 18932 * 0b011111..AFE Channel 3 conversion complete 18933 * 0b100000..DMA Done Signal 18934 */ 18935 #define XBAR_SEL7_SEL15(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL7_SEL15_SHIFT)) & XBAR_SEL7_SEL15_MASK) 18936 /*! @} */ 18937 18938 /*! @name SEL8 - Crossbar Select Register 8 */ 18939 /*! @{ */ 18940 18941 #define XBAR_SEL8_SEL16_MASK (0x3FU) 18942 #define XBAR_SEL8_SEL16_SHIFT (0U) 18943 /*! SEL16 18944 * 0b000000..Logic 1 (VDD) 18945 * 0b000001..Logic 0 (VSS) 18946 * 0b000010..AFE modulator clock output 18947 * 0b000011..AFE modulator data output 18948 * 0b000100..LPTimer Output 18949 * 0b000101..Clock Output 18950 * 0b000110..Quad Timer channel 0 output 18951 * 0b000111..Quad Timer channel 1 output 18952 * 0b001000..Quad Timer channel 2 output 18953 * 0b001001..Quad Timer channel 3 output 18954 * 0b001010..iRTC Clock Output 18955 * 0b001011..CMP0 Output 18956 * 0b001100..CMP1 Output 18957 * 0b001101..iRTC Alarm Output 18958 * 0b001110..UART TX Output (after modulation) 18959 * 0b001111..EWM Output (EWM_OUT) 18960 * 0b010000..PIT Output 18961 * 0b010001..XBAR Input pin 0 18962 * 0b010010..XBAR Input pin 1 18963 * 0b010011..XBAR Input pin 2 18964 * 0b010100..XBAR Input pin 3 18965 * 0b010101..XBAR Input pin 4 18966 * 0b010110..XBAR Input pin 5 18967 * 0b010111..XBAR Input pin 6 18968 * 0b011000..XBAR Input pin 7 18969 * 0b011001..XBAR Input pin 8 18970 * 0b011010..ORed conversion complete flag for all SAR ADC channels 18971 * 0b011011..ORed conversion complete flag for all AFE channels 18972 * 0b011100..AFE Channel 0 conversion complete 18973 * 0b011101..AFE Channel 1 conversion complete 18974 * 0b011110..AFE Channel 2 conversion complete 18975 * 0b011111..AFE Channel 3 conversion complete 18976 * 0b100000..DMA Done Signal 18977 */ 18978 #define XBAR_SEL8_SEL16(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL8_SEL16_SHIFT)) & XBAR_SEL8_SEL16_MASK) 18979 18980 #define XBAR_SEL8_SEL17_MASK (0x3F00U) 18981 #define XBAR_SEL8_SEL17_SHIFT (8U) 18982 /*! SEL17 18983 * 0b000000..Logic 1 (VDD) 18984 * 0b000001..Logic 0 (VSS) 18985 * 0b000010..AFE modulator clock output 18986 * 0b000011..AFE modulator data output 18987 * 0b000100..LPTimer Output 18988 * 0b000101..Clock Output 18989 * 0b000110..Quad Timer channel 0 output 18990 * 0b000111..Quad Timer channel 1 output 18991 * 0b001000..Quad Timer channel 2 output 18992 * 0b001001..Quad Timer channel 3 output 18993 * 0b001010..iRTC Clock Output 18994 * 0b001011..CMP0 Output 18995 * 0b001100..CMP1 Output 18996 * 0b001101..iRTC Alarm Output 18997 * 0b001110..UART TX Output (after modulation) 18998 * 0b001111..EWM Output (EWM_OUT) 18999 * 0b010000..PIT Output 19000 * 0b010001..XBAR Input pin 0 19001 * 0b010010..XBAR Input pin 1 19002 * 0b010011..XBAR Input pin 2 19003 * 0b010100..XBAR Input pin 3 19004 * 0b010101..XBAR Input pin 4 19005 * 0b010110..XBAR Input pin 5 19006 * 0b010111..XBAR Input pin 6 19007 * 0b011000..XBAR Input pin 7 19008 * 0b011001..XBAR Input pin 8 19009 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19010 * 0b011011..ORed conversion complete flag for all AFE channels 19011 * 0b011100..AFE Channel 0 conversion complete 19012 * 0b011101..AFE Channel 1 conversion complete 19013 * 0b011110..AFE Channel 2 conversion complete 19014 * 0b011111..AFE Channel 3 conversion complete 19015 * 0b100000..DMA Done Signal 19016 */ 19017 #define XBAR_SEL8_SEL17(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL8_SEL17_SHIFT)) & XBAR_SEL8_SEL17_MASK) 19018 /*! @} */ 19019 19020 /*! @name SEL9 - Crossbar Select Register 9 */ 19021 /*! @{ */ 19022 19023 #define XBAR_SEL9_SEL18_MASK (0x3FU) 19024 #define XBAR_SEL9_SEL18_SHIFT (0U) 19025 /*! SEL18 19026 * 0b000000..Logic 1 (VDD) 19027 * 0b000001..Logic 0 (VSS) 19028 * 0b000010..AFE modulator clock output 19029 * 0b000011..AFE modulator data output 19030 * 0b000100..LPTimer Output 19031 * 0b000101..Clock Output 19032 * 0b000110..Quad Timer channel 0 output 19033 * 0b000111..Quad Timer channel 1 output 19034 * 0b001000..Quad Timer channel 2 output 19035 * 0b001001..Quad Timer channel 3 output 19036 * 0b001010..iRTC Clock Output 19037 * 0b001011..CMP0 Output 19038 * 0b001100..CMP1 Output 19039 * 0b001101..iRTC Alarm Output 19040 * 0b001110..UART TX Output (after modulation) 19041 * 0b001111..EWM Output (EWM_OUT) 19042 * 0b010000..PIT Output 19043 * 0b010001..XBAR Input pin 0 19044 * 0b010010..XBAR Input pin 1 19045 * 0b010011..XBAR Input pin 2 19046 * 0b010100..XBAR Input pin 3 19047 * 0b010101..XBAR Input pin 4 19048 * 0b010110..XBAR Input pin 5 19049 * 0b010111..XBAR Input pin 6 19050 * 0b011000..XBAR Input pin 7 19051 * 0b011001..XBAR Input pin 8 19052 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19053 * 0b011011..ORed conversion complete flag for all AFE channels 19054 * 0b011100..AFE Channel 0 conversion complete 19055 * 0b011101..AFE Channel 1 conversion complete 19056 * 0b011110..AFE Channel 2 conversion complete 19057 * 0b011111..AFE Channel 3 conversion complete 19058 * 0b100000..DMA Done Signal 19059 */ 19060 #define XBAR_SEL9_SEL18(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL9_SEL18_SHIFT)) & XBAR_SEL9_SEL18_MASK) 19061 19062 #define XBAR_SEL9_SEL19_MASK (0x3F00U) 19063 #define XBAR_SEL9_SEL19_SHIFT (8U) 19064 /*! SEL19 19065 * 0b000000..Logic 1 (VDD) 19066 * 0b000001..Logic 0 (VSS) 19067 * 0b000010..AFE modulator clock output 19068 * 0b000011..AFE modulator data output 19069 * 0b000100..LPTimer Output 19070 * 0b000101..Clock Output 19071 * 0b000110..Quad Timer channel 0 output 19072 * 0b000111..Quad Timer channel 1 output 19073 * 0b001000..Quad Timer channel 2 output 19074 * 0b001001..Quad Timer channel 3 output 19075 * 0b001010..iRTC Clock Output 19076 * 0b001011..CMP0 Output 19077 * 0b001100..CMP1 Output 19078 * 0b001101..iRTC Alarm Output 19079 * 0b001110..UART TX Output (after modulation) 19080 * 0b001111..EWM Output (EWM_OUT) 19081 * 0b010000..PIT Output 19082 * 0b010001..XBAR Input pin 0 19083 * 0b010010..XBAR Input pin 1 19084 * 0b010011..XBAR Input pin 2 19085 * 0b010100..XBAR Input pin 3 19086 * 0b010101..XBAR Input pin 4 19087 * 0b010110..XBAR Input pin 5 19088 * 0b010111..XBAR Input pin 6 19089 * 0b011000..XBAR Input pin 7 19090 * 0b011001..XBAR Input pin 8 19091 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19092 * 0b011011..ORed conversion complete flag for all AFE channels 19093 * 0b011100..AFE Channel 0 conversion complete 19094 * 0b011101..AFE Channel 1 conversion complete 19095 * 0b011110..AFE Channel 2 conversion complete 19096 * 0b011111..AFE Channel 3 conversion complete 19097 * 0b100000..DMA Done Signal 19098 */ 19099 #define XBAR_SEL9_SEL19(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL9_SEL19_SHIFT)) & XBAR_SEL9_SEL19_MASK) 19100 /*! @} */ 19101 19102 /*! @name SEL10 - Crossbar Select Register 10 */ 19103 /*! @{ */ 19104 19105 #define XBAR_SEL10_SEL20_MASK (0x3FU) 19106 #define XBAR_SEL10_SEL20_SHIFT (0U) 19107 /*! SEL20 19108 * 0b000000..Logic 1 (VDD) 19109 * 0b000001..Logic 0 (VSS) 19110 * 0b000010..AFE modulator clock output 19111 * 0b000011..AFE modulator data output 19112 * 0b000100..LPTimer Output 19113 * 0b000101..Clock Output 19114 * 0b000110..Quad Timer channel 0 output 19115 * 0b000111..Quad Timer channel 1 output 19116 * 0b001000..Quad Timer channel 2 output 19117 * 0b001001..Quad Timer channel 3 output 19118 * 0b001010..iRTC Clock Output 19119 * 0b001011..CMP0 Output 19120 * 0b001100..CMP1 Output 19121 * 0b001101..iRTC Alarm Output 19122 * 0b001110..UART TX Output (after modulation) 19123 * 0b001111..EWM Output (EWM_OUT) 19124 * 0b010000..PIT Output 19125 * 0b010001..XBAR Input pin 0 19126 * 0b010010..XBAR Input pin 1 19127 * 0b010011..XBAR Input pin 2 19128 * 0b010100..XBAR Input pin 3 19129 * 0b010101..XBAR Input pin 4 19130 * 0b010110..XBAR Input pin 5 19131 * 0b010111..XBAR Input pin 6 19132 * 0b011000..XBAR Input pin 7 19133 * 0b011001..XBAR Input pin 8 19134 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19135 * 0b011011..ORed conversion complete flag for all AFE channels 19136 * 0b011100..AFE Channel 0 conversion complete 19137 * 0b011101..AFE Channel 1 conversion complete 19138 * 0b011110..AFE Channel 2 conversion complete 19139 * 0b011111..AFE Channel 3 conversion complete 19140 * 0b100000..DMA Done Signal 19141 */ 19142 #define XBAR_SEL10_SEL20(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL10_SEL20_SHIFT)) & XBAR_SEL10_SEL20_MASK) 19143 19144 #define XBAR_SEL10_SEL21_MASK (0x3F00U) 19145 #define XBAR_SEL10_SEL21_SHIFT (8U) 19146 /*! SEL21 19147 * 0b000000..Logic 1 (VDD) 19148 * 0b000001..Logic 0 (VSS) 19149 * 0b000010..AFE modulator clock output 19150 * 0b000011..AFE modulator data output 19151 * 0b000100..LPTimer Output 19152 * 0b000101..Clock Output 19153 * 0b000110..Quad Timer channel 0 output 19154 * 0b000111..Quad Timer channel 1 output 19155 * 0b001000..Quad Timer channel 2 output 19156 * 0b001001..Quad Timer channel 3 output 19157 * 0b001010..iRTC Clock Output 19158 * 0b001011..CMP0 Output 19159 * 0b001100..CMP1 Output 19160 * 0b001101..iRTC Alarm Output 19161 * 0b001110..UART TX Output (after modulation) 19162 * 0b001111..EWM Output (EWM_OUT) 19163 * 0b010000..PIT Output 19164 * 0b010001..XBAR Input pin 0 19165 * 0b010010..XBAR Input pin 1 19166 * 0b010011..XBAR Input pin 2 19167 * 0b010100..XBAR Input pin 3 19168 * 0b010101..XBAR Input pin 4 19169 * 0b010110..XBAR Input pin 5 19170 * 0b010111..XBAR Input pin 6 19171 * 0b011000..XBAR Input pin 7 19172 * 0b011001..XBAR Input pin 8 19173 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19174 * 0b011011..ORed conversion complete flag for all AFE channels 19175 * 0b011100..AFE Channel 0 conversion complete 19176 * 0b011101..AFE Channel 1 conversion complete 19177 * 0b011110..AFE Channel 2 conversion complete 19178 * 0b011111..AFE Channel 3 conversion complete 19179 * 0b100000..DMA Done Signal 19180 */ 19181 #define XBAR_SEL10_SEL21(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL10_SEL21_SHIFT)) & XBAR_SEL10_SEL21_MASK) 19182 /*! @} */ 19183 19184 /*! @name SEL11 - Crossbar Select Register 11 */ 19185 /*! @{ */ 19186 19187 #define XBAR_SEL11_SEL22_MASK (0x3FU) 19188 #define XBAR_SEL11_SEL22_SHIFT (0U) 19189 /*! SEL22 19190 * 0b000000..Logic 1 (VDD) 19191 * 0b000001..Logic 0 (VSS) 19192 * 0b000010..AFE modulator clock output 19193 * 0b000011..AFE modulator data output 19194 * 0b000100..LPTimer Output 19195 * 0b000101..Clock Output 19196 * 0b000110..Quad Timer channel 0 output 19197 * 0b000111..Quad Timer channel 1 output 19198 * 0b001000..Quad Timer channel 2 output 19199 * 0b001001..Quad Timer channel 3 output 19200 * 0b001010..iRTC Clock Output 19201 * 0b001011..CMP0 Output 19202 * 0b001100..CMP1 Output 19203 * 0b001101..iRTC Alarm Output 19204 * 0b001110..UART TX Output (after modulation) 19205 * 0b001111..EWM Output (EWM_OUT) 19206 * 0b010000..PIT Output 19207 * 0b010001..XBAR Input pin 0 19208 * 0b010010..XBAR Input pin 1 19209 * 0b010011..XBAR Input pin 2 19210 * 0b010100..XBAR Input pin 3 19211 * 0b010101..XBAR Input pin 4 19212 * 0b010110..XBAR Input pin 5 19213 * 0b010111..XBAR Input pin 6 19214 * 0b011000..XBAR Input pin 7 19215 * 0b011001..XBAR Input pin 8 19216 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19217 * 0b011011..ORed conversion complete flag for all AFE channels 19218 * 0b011100..AFE Channel 0 conversion complete 19219 * 0b011101..AFE Channel 1 conversion complete 19220 * 0b011110..AFE Channel 2 conversion complete 19221 * 0b011111..AFE Channel 3 conversion complete 19222 * 0b100000..DMA Done Signal 19223 */ 19224 #define XBAR_SEL11_SEL22(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL11_SEL22_SHIFT)) & XBAR_SEL11_SEL22_MASK) 19225 19226 #define XBAR_SEL11_SEL23_MASK (0x3F00U) 19227 #define XBAR_SEL11_SEL23_SHIFT (8U) 19228 /*! SEL23 19229 * 0b000000..Logic 1 (VDD) 19230 * 0b000001..Logic 0 (VSS) 19231 * 0b000010..AFE modulator clock output 19232 * 0b000011..AFE modulator data output 19233 * 0b000100..LPTimer Output 19234 * 0b000101..Clock Output 19235 * 0b000110..Quad Timer channel 0 output 19236 * 0b000111..Quad Timer channel 1 output 19237 * 0b001000..Quad Timer channel 2 output 19238 * 0b001001..Quad Timer channel 3 output 19239 * 0b001010..iRTC Clock Output 19240 * 0b001011..CMP0 Output 19241 * 0b001100..CMP1 Output 19242 * 0b001101..iRTC Alarm Output 19243 * 0b001110..UART TX Output (after modulation) 19244 * 0b001111..EWM Output (EWM_OUT) 19245 * 0b010000..PIT Output 19246 * 0b010001..XBAR Input pin 0 19247 * 0b010010..XBAR Input pin 1 19248 * 0b010011..XBAR Input pin 2 19249 * 0b010100..XBAR Input pin 3 19250 * 0b010101..XBAR Input pin 4 19251 * 0b010110..XBAR Input pin 5 19252 * 0b010111..XBAR Input pin 6 19253 * 0b011000..XBAR Input pin 7 19254 * 0b011001..XBAR Input pin 8 19255 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19256 * 0b011011..ORed conversion complete flag for all AFE channels 19257 * 0b011100..AFE Channel 0 conversion complete 19258 * 0b011101..AFE Channel 1 conversion complete 19259 * 0b011110..AFE Channel 2 conversion complete 19260 * 0b011111..AFE Channel 3 conversion complete 19261 * 0b100000..DMA Done Signal 19262 */ 19263 #define XBAR_SEL11_SEL23(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL11_SEL23_SHIFT)) & XBAR_SEL11_SEL23_MASK) 19264 /*! @} */ 19265 19266 /*! @name SEL12 - Crossbar Select Register 12 */ 19267 /*! @{ */ 19268 19269 #define XBAR_SEL12_SEL24_MASK (0x3FU) 19270 #define XBAR_SEL12_SEL24_SHIFT (0U) 19271 /*! SEL24 19272 * 0b000000..Logic 1 (VDD) 19273 * 0b000001..Logic 0 (VSS) 19274 * 0b000010..AFE modulator clock output 19275 * 0b000011..AFE modulator data output 19276 * 0b000100..LPTimer Output 19277 * 0b000101..Clock Output 19278 * 0b000110..Quad Timer channel 0 output 19279 * 0b000111..Quad Timer channel 1 output 19280 * 0b001000..Quad Timer channel 2 output 19281 * 0b001001..Quad Timer channel 3 output 19282 * 0b001010..iRTC Clock Output 19283 * 0b001011..CMP0 Output 19284 * 0b001100..CMP1 Output 19285 * 0b001101..iRTC Alarm Output 19286 * 0b001110..UART TX Output (after modulation) 19287 * 0b001111..EWM Output (EWM_OUT) 19288 * 0b010000..PIT Output 19289 * 0b010001..XBAR Input pin 0 19290 * 0b010010..XBAR Input pin 1 19291 * 0b010011..XBAR Input pin 2 19292 * 0b010100..XBAR Input pin 3 19293 * 0b010101..XBAR Input pin 4 19294 * 0b010110..XBAR Input pin 5 19295 * 0b010111..XBAR Input pin 6 19296 * 0b011000..XBAR Input pin 7 19297 * 0b011001..XBAR Input pin 8 19298 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19299 * 0b011011..ORed conversion complete flag for all AFE channels 19300 * 0b011100..AFE Channel 0 conversion complete 19301 * 0b011101..AFE Channel 1 conversion complete 19302 * 0b011110..AFE Channel 2 conversion complete 19303 * 0b011111..AFE Channel 3 conversion complete 19304 * 0b100000..DMA Done Signal 19305 */ 19306 #define XBAR_SEL12_SEL24(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL12_SEL24_SHIFT)) & XBAR_SEL12_SEL24_MASK) 19307 19308 #define XBAR_SEL12_SEL25_MASK (0x3F00U) 19309 #define XBAR_SEL12_SEL25_SHIFT (8U) 19310 /*! SEL25 19311 * 0b000000..Logic 1 (VDD) 19312 * 0b000001..Logic 0 (VSS) 19313 * 0b000010..AFE modulator clock output 19314 * 0b000011..AFE modulator data output 19315 * 0b000100..LPTimer Output 19316 * 0b000101..Clock Output 19317 * 0b000110..Quad Timer channel 0 output 19318 * 0b000111..Quad Timer channel 1 output 19319 * 0b001000..Quad Timer channel 2 output 19320 * 0b001001..Quad Timer channel 3 output 19321 * 0b001010..iRTC Clock Output 19322 * 0b001011..CMP0 Output 19323 * 0b001100..CMP1 Output 19324 * 0b001101..iRTC Alarm Output 19325 * 0b001110..UART TX Output (after modulation) 19326 * 0b001111..EWM Output (EWM_OUT) 19327 * 0b010000..PIT Output 19328 * 0b010001..XBAR Input pin 0 19329 * 0b010010..XBAR Input pin 1 19330 * 0b010011..XBAR Input pin 2 19331 * 0b010100..XBAR Input pin 3 19332 * 0b010101..XBAR Input pin 4 19333 * 0b010110..XBAR Input pin 5 19334 * 0b010111..XBAR Input pin 6 19335 * 0b011000..XBAR Input pin 7 19336 * 0b011001..XBAR Input pin 8 19337 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19338 * 0b011011..ORed conversion complete flag for all AFE channels 19339 * 0b011100..AFE Channel 0 conversion complete 19340 * 0b011101..AFE Channel 1 conversion complete 19341 * 0b011110..AFE Channel 2 conversion complete 19342 * 0b011111..AFE Channel 3 conversion complete 19343 * 0b100000..DMA Done Signal 19344 */ 19345 #define XBAR_SEL12_SEL25(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL12_SEL25_SHIFT)) & XBAR_SEL12_SEL25_MASK) 19346 /*! @} */ 19347 19348 /*! @name SEL13 - Crossbar Select Register 13 */ 19349 /*! @{ */ 19350 19351 #define XBAR_SEL13_SEL26_MASK (0x3FU) 19352 #define XBAR_SEL13_SEL26_SHIFT (0U) 19353 /*! SEL26 19354 * 0b000000..Logic 1 (VDD) 19355 * 0b000001..Logic 0 (VSS) 19356 * 0b000010..AFE modulator clock output 19357 * 0b000011..AFE modulator data output 19358 * 0b000100..LPTimer Output 19359 * 0b000101..Clock Output 19360 * 0b000110..Quad Timer channel 0 output 19361 * 0b000111..Quad Timer channel 1 output 19362 * 0b001000..Quad Timer channel 2 output 19363 * 0b001001..Quad Timer channel 3 output 19364 * 0b001010..iRTC Clock Output 19365 * 0b001011..CMP0 Output 19366 * 0b001100..CMP1 Output 19367 * 0b001101..iRTC Alarm Output 19368 * 0b001110..UART TX Output (after modulation) 19369 * 0b001111..EWM Output (EWM_OUT) 19370 * 0b010000..PIT Output 19371 * 0b010001..XBAR Input pin 0 19372 * 0b010010..XBAR Input pin 1 19373 * 0b010011..XBAR Input pin 2 19374 * 0b010100..XBAR Input pin 3 19375 * 0b010101..XBAR Input pin 4 19376 * 0b010110..XBAR Input pin 5 19377 * 0b010111..XBAR Input pin 6 19378 * 0b011000..XBAR Input pin 7 19379 * 0b011001..XBAR Input pin 8 19380 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19381 * 0b011011..ORed conversion complete flag for all AFE channels 19382 * 0b011100..AFE Channel 0 conversion complete 19383 * 0b011101..AFE Channel 1 conversion complete 19384 * 0b011110..AFE Channel 2 conversion complete 19385 * 0b011111..AFE Channel 3 conversion complete 19386 * 0b100000..DMA Done Signal 19387 */ 19388 #define XBAR_SEL13_SEL26(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL13_SEL26_SHIFT)) & XBAR_SEL13_SEL26_MASK) 19389 19390 #define XBAR_SEL13_SEL27_MASK (0x3F00U) 19391 #define XBAR_SEL13_SEL27_SHIFT (8U) 19392 /*! SEL27 19393 * 0b000000..Logic 1 (VDD) 19394 * 0b000001..Logic 0 (VSS) 19395 * 0b000010..AFE modulator clock output 19396 * 0b000011..AFE modulator data output 19397 * 0b000100..LPTimer Output 19398 * 0b000101..Clock Output 19399 * 0b000110..Quad Timer channel 0 output 19400 * 0b000111..Quad Timer channel 1 output 19401 * 0b001000..Quad Timer channel 2 output 19402 * 0b001001..Quad Timer channel 3 output 19403 * 0b001010..iRTC Clock Output 19404 * 0b001011..CMP0 Output 19405 * 0b001100..CMP1 Output 19406 * 0b001101..iRTC Alarm Output 19407 * 0b001110..UART TX Output (after modulation) 19408 * 0b001111..EWM Output (EWM_OUT) 19409 * 0b010000..PIT Output 19410 * 0b010001..XBAR Input pin 0 19411 * 0b010010..XBAR Input pin 1 19412 * 0b010011..XBAR Input pin 2 19413 * 0b010100..XBAR Input pin 3 19414 * 0b010101..XBAR Input pin 4 19415 * 0b010110..XBAR Input pin 5 19416 * 0b010111..XBAR Input pin 6 19417 * 0b011000..XBAR Input pin 7 19418 * 0b011001..XBAR Input pin 8 19419 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19420 * 0b011011..ORed conversion complete flag for all AFE channels 19421 * 0b011100..AFE Channel 0 conversion complete 19422 * 0b011101..AFE Channel 1 conversion complete 19423 * 0b011110..AFE Channel 2 conversion complete 19424 * 0b011111..AFE Channel 3 conversion complete 19425 * 0b100000..DMA Done Signal 19426 */ 19427 #define XBAR_SEL13_SEL27(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL13_SEL27_SHIFT)) & XBAR_SEL13_SEL27_MASK) 19428 /*! @} */ 19429 19430 /*! @name SEL14 - Crossbar Select Register 14 */ 19431 /*! @{ */ 19432 19433 #define XBAR_SEL14_SEL28_MASK (0x3FU) 19434 #define XBAR_SEL14_SEL28_SHIFT (0U) 19435 /*! SEL28 19436 * 0b000000..Logic 1 (VDD) 19437 * 0b000001..Logic 0 (VSS) 19438 * 0b000010..AFE modulator clock output 19439 * 0b000011..AFE modulator data output 19440 * 0b000100..LPTimer Output 19441 * 0b000101..Clock Output 19442 * 0b000110..Quad Timer channel 0 output 19443 * 0b000111..Quad Timer channel 1 output 19444 * 0b001000..Quad Timer channel 2 output 19445 * 0b001001..Quad Timer channel 3 output 19446 * 0b001010..iRTC Clock Output 19447 * 0b001011..CMP0 Output 19448 * 0b001100..CMP1 Output 19449 * 0b001101..iRTC Alarm Output 19450 * 0b001110..UART TX Output (after modulation) 19451 * 0b001111..EWM Output (EWM_OUT) 19452 * 0b010000..PIT Output 19453 * 0b010001..XBAR Input pin 0 19454 * 0b010010..XBAR Input pin 1 19455 * 0b010011..XBAR Input pin 2 19456 * 0b010100..XBAR Input pin 3 19457 * 0b010101..XBAR Input pin 4 19458 * 0b010110..XBAR Input pin 5 19459 * 0b010111..XBAR Input pin 6 19460 * 0b011000..XBAR Input pin 7 19461 * 0b011001..XBAR Input pin 8 19462 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19463 * 0b011011..ORed conversion complete flag for all AFE channels 19464 * 0b011100..AFE Channel 0 conversion complete 19465 * 0b011101..AFE Channel 1 conversion complete 19466 * 0b011110..AFE Channel 2 conversion complete 19467 * 0b011111..AFE Channel 3 conversion complete 19468 * 0b100000..DMA Done Signal 19469 */ 19470 #define XBAR_SEL14_SEL28(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL14_SEL28_SHIFT)) & XBAR_SEL14_SEL28_MASK) 19471 19472 #define XBAR_SEL14_SEL29_MASK (0x3F00U) 19473 #define XBAR_SEL14_SEL29_SHIFT (8U) 19474 /*! SEL29 19475 * 0b000000..Logic 1 (VDD) 19476 * 0b000001..Logic 0 (VSS) 19477 * 0b000010..AFE modulator clock output 19478 * 0b000011..AFE modulator data output 19479 * 0b000100..LPTimer Output 19480 * 0b000101..Clock Output 19481 * 0b000110..Quad Timer channel 0 output 19482 * 0b000111..Quad Timer channel 1 output 19483 * 0b001000..Quad Timer channel 2 output 19484 * 0b001001..Quad Timer channel 3 output 19485 * 0b001010..iRTC Clock Output 19486 * 0b001011..CMP0 Output 19487 * 0b001100..CMP1 Output 19488 * 0b001101..iRTC Alarm Output 19489 * 0b001110..UART TX Output (after modulation) 19490 * 0b001111..EWM Output (EWM_OUT) 19491 * 0b010000..PIT Output 19492 * 0b010001..XBAR Input pin 0 19493 * 0b010010..XBAR Input pin 1 19494 * 0b010011..XBAR Input pin 2 19495 * 0b010100..XBAR Input pin 3 19496 * 0b010101..XBAR Input pin 4 19497 * 0b010110..XBAR Input pin 5 19498 * 0b010111..XBAR Input pin 6 19499 * 0b011000..XBAR Input pin 7 19500 * 0b011001..XBAR Input pin 8 19501 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19502 * 0b011011..ORed conversion complete flag for all AFE channels 19503 * 0b011100..AFE Channel 0 conversion complete 19504 * 0b011101..AFE Channel 1 conversion complete 19505 * 0b011110..AFE Channel 2 conversion complete 19506 * 0b011111..AFE Channel 3 conversion complete 19507 * 0b100000..DMA Done Signal 19508 */ 19509 #define XBAR_SEL14_SEL29(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL14_SEL29_SHIFT)) & XBAR_SEL14_SEL29_MASK) 19510 /*! @} */ 19511 19512 /*! @name SEL15 - Crossbar Select Register 15 */ 19513 /*! @{ */ 19514 19515 #define XBAR_SEL15_SEL30_MASK (0x3FU) 19516 #define XBAR_SEL15_SEL30_SHIFT (0U) 19517 /*! SEL30 19518 * 0b000000..Logic 1 (VDD) 19519 * 0b000001..Logic 0 (VSS) 19520 * 0b000010..AFE modulator clock output 19521 * 0b000011..AFE modulator data output 19522 * 0b000100..LPTimer Output 19523 * 0b000101..Clock Output 19524 * 0b000110..Quad Timer channel 0 output 19525 * 0b000111..Quad Timer channel 1 output 19526 * 0b001000..Quad Timer channel 2 output 19527 * 0b001001..Quad Timer channel 3 output 19528 * 0b001010..iRTC Clock Output 19529 * 0b001011..CMP0 Output 19530 * 0b001100..CMP1 Output 19531 * 0b001101..iRTC Alarm Output 19532 * 0b001110..UART TX Output (after modulation) 19533 * 0b001111..EWM Output (EWM_OUT) 19534 * 0b010000..PIT Output 19535 * 0b010001..XBAR Input pin 0 19536 * 0b010010..XBAR Input pin 1 19537 * 0b010011..XBAR Input pin 2 19538 * 0b010100..XBAR Input pin 3 19539 * 0b010101..XBAR Input pin 4 19540 * 0b010110..XBAR Input pin 5 19541 * 0b010111..XBAR Input pin 6 19542 * 0b011000..XBAR Input pin 7 19543 * 0b011001..XBAR Input pin 8 19544 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19545 * 0b011011..ORed conversion complete flag for all AFE channels 19546 * 0b011100..AFE Channel 0 conversion complete 19547 * 0b011101..AFE Channel 1 conversion complete 19548 * 0b011110..AFE Channel 2 conversion complete 19549 * 0b011111..AFE Channel 3 conversion complete 19550 * 0b100000..DMA Done Signal 19551 */ 19552 #define XBAR_SEL15_SEL30(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL15_SEL30_SHIFT)) & XBAR_SEL15_SEL30_MASK) 19553 19554 #define XBAR_SEL15_SEL31_MASK (0x3F00U) 19555 #define XBAR_SEL15_SEL31_SHIFT (8U) 19556 /*! SEL31 19557 * 0b000000..Logic 1 (VDD) 19558 * 0b000001..Logic 0 (VSS) 19559 * 0b000010..AFE modulator clock output 19560 * 0b000011..AFE modulator data output 19561 * 0b000100..LPTimer Output 19562 * 0b000101..Clock Output 19563 * 0b000110..Quad Timer channel 0 output 19564 * 0b000111..Quad Timer channel 1 output 19565 * 0b001000..Quad Timer channel 2 output 19566 * 0b001001..Quad Timer channel 3 output 19567 * 0b001010..iRTC Clock Output 19568 * 0b001011..CMP0 Output 19569 * 0b001100..CMP1 Output 19570 * 0b001101..iRTC Alarm Output 19571 * 0b001110..UART TX Output (after modulation) 19572 * 0b001111..EWM Output (EWM_OUT) 19573 * 0b010000..PIT Output 19574 * 0b010001..XBAR Input pin 0 19575 * 0b010010..XBAR Input pin 1 19576 * 0b010011..XBAR Input pin 2 19577 * 0b010100..XBAR Input pin 3 19578 * 0b010101..XBAR Input pin 4 19579 * 0b010110..XBAR Input pin 5 19580 * 0b010111..XBAR Input pin 6 19581 * 0b011000..XBAR Input pin 7 19582 * 0b011001..XBAR Input pin 8 19583 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19584 * 0b011011..ORed conversion complete flag for all AFE channels 19585 * 0b011100..AFE Channel 0 conversion complete 19586 * 0b011101..AFE Channel 1 conversion complete 19587 * 0b011110..AFE Channel 2 conversion complete 19588 * 0b011111..AFE Channel 3 conversion complete 19589 * 0b100000..DMA Done Signal 19590 */ 19591 #define XBAR_SEL15_SEL31(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL15_SEL31_SHIFT)) & XBAR_SEL15_SEL31_MASK) 19592 /*! @} */ 19593 19594 /*! @name SEL16 - Crossbar Select Register 16 */ 19595 /*! @{ */ 19596 19597 #define XBAR_SEL16_SEL32_MASK (0x3FU) 19598 #define XBAR_SEL16_SEL32_SHIFT (0U) 19599 /*! SEL32 19600 * 0b000000..Logic 1 (VDD) 19601 * 0b000001..Logic 0 (VSS) 19602 * 0b000010..AFE modulator clock output 19603 * 0b000011..AFE modulator data output 19604 * 0b000100..LPTimer Output 19605 * 0b000101..Clock Output 19606 * 0b000110..Quad Timer channel 0 output 19607 * 0b000111..Quad Timer channel 1 output 19608 * 0b001000..Quad Timer channel 2 output 19609 * 0b001001..Quad Timer channel 3 output 19610 * 0b001010..iRTC Clock Output 19611 * 0b001011..CMP0 Output 19612 * 0b001100..CMP1 Output 19613 * 0b001101..iRTC Alarm Output 19614 * 0b001110..UART TX Output (after modulation) 19615 * 0b001111..EWM Output (EWM_OUT) 19616 * 0b010000..PIT Output 19617 * 0b010001..XBAR Input pin 0 19618 * 0b010010..XBAR Input pin 1 19619 * 0b010011..XBAR Input pin 2 19620 * 0b010100..XBAR Input pin 3 19621 * 0b010101..XBAR Input pin 4 19622 * 0b010110..XBAR Input pin 5 19623 * 0b010111..XBAR Input pin 6 19624 * 0b011000..XBAR Input pin 7 19625 * 0b011001..XBAR Input pin 8 19626 * 0b011010..ORed conversion complete flag for all SAR ADC channels 19627 * 0b011011..ORed conversion complete flag for all AFE channels 19628 * 0b011100..AFE Channel 0 conversion complete 19629 * 0b011101..AFE Channel 1 conversion complete 19630 * 0b011110..AFE Channel 2 conversion complete 19631 * 0b011111..AFE Channel 3 conversion complete 19632 * 0b100000..DMA Done Signal 19633 */ 19634 #define XBAR_SEL16_SEL32(x) (((uint16_t)(((uint16_t)(x)) << XBAR_SEL16_SEL32_SHIFT)) & XBAR_SEL16_SEL32_MASK) 19635 /*! @} */ 19636 19637 /*! @name CTRL0 - Crossbar Control Register 0 */ 19638 /*! @{ */ 19639 19640 #define XBAR_CTRL0_DEN0_MASK (0x1U) 19641 #define XBAR_CTRL0_DEN0_SHIFT (0U) 19642 /*! DEN0 - DMA Enable for XBAR_OUT0 19643 * 0b0..DMA disabled 19644 * 0b1..DMA enabled 19645 */ 19646 #define XBAR_CTRL0_DEN0(x) (((uint16_t)(((uint16_t)(x)) << XBAR_CTRL0_DEN0_SHIFT)) & XBAR_CTRL0_DEN0_MASK) 19647 19648 #define XBAR_CTRL0_IEN0_MASK (0x2U) 19649 #define XBAR_CTRL0_IEN0_SHIFT (1U) 19650 /*! IEN0 - Interrupt Enable for XBAR_OUT0 19651 * 0b0..Interrupt disabled 19652 * 0b1..Interrupt enabled 19653 */ 19654 #define XBAR_CTRL0_IEN0(x) (((uint16_t)(((uint16_t)(x)) << XBAR_CTRL0_IEN0_SHIFT)) & XBAR_CTRL0_IEN0_MASK) 19655 19656 #define XBAR_CTRL0_EDGE0_MASK (0xCU) 19657 #define XBAR_CTRL0_EDGE0_SHIFT (2U) 19658 /*! EDGE0 - Active edge for edge detection on XBAR_OUT0 19659 * 0b00..STS0 never asserts 19660 * 0b01..STS0 asserts on rising edges of XBAR_OUT0 19661 * 0b10..STS0 asserts on falling edges of XBAR_OUT0 19662 * 0b11..STS0 asserts on rising and falling edges of XBAR_OUT0 19663 */ 19664 #define XBAR_CTRL0_EDGE0(x) (((uint16_t)(((uint16_t)(x)) << XBAR_CTRL0_EDGE0_SHIFT)) & XBAR_CTRL0_EDGE0_MASK) 19665 19666 #define XBAR_CTRL0_STS0_MASK (0x10U) 19667 #define XBAR_CTRL0_STS0_SHIFT (4U) 19668 /*! STS0 - Edge detection status for XBAR_OUT0 19669 * 0b0..Active edge not yet detected on XBAR_OUT0 19670 * 0b1..Active edge detected on XBAR_OUT0 19671 */ 19672 #define XBAR_CTRL0_STS0(x) (((uint16_t)(((uint16_t)(x)) << XBAR_CTRL0_STS0_SHIFT)) & XBAR_CTRL0_STS0_MASK) 19673 /*! @} */ 19674 19675 19676 /*! 19677 * @} 19678 */ /* end of group XBAR_Register_Masks */ 19679 19680 19681 /* XBAR - Peripheral instance base addresses */ 19682 /** Peripheral XBAR base address */ 19683 #define XBAR_BASE (0x40055000u) 19684 /** Peripheral XBAR base pointer */ 19685 #define XBAR ((XBAR_Type *)XBAR_BASE) 19686 /** Array initializer of XBAR peripheral base addresses */ 19687 #define XBAR_BASE_ADDRS { XBAR_BASE } 19688 /** Array initializer of XBAR peripheral base pointers */ 19689 #define XBAR_BASE_PTRS { XBAR } 19690 /** Interrupt vectors for the XBAR peripheral type */ 19691 #define XBAR_IRQS { XBAR_IRQn } 19692 19693 /*! 19694 * @} 19695 */ /* end of group XBAR_Peripheral_Access_Layer */ 19696 19697 19698 /* 19699 ** End of section using anonymous unions 19700 */ 19701 19702 #if defined(__ARMCC_VERSION) 19703 #if (__ARMCC_VERSION >= 6010050) 19704 #pragma clang diagnostic pop 19705 #else 19706 #pragma pop 19707 #endif 19708 #elif defined(__CWCC__) 19709 #pragma pop 19710 #elif defined(__GNUC__) 19711 /* leave anonymous unions enabled */ 19712 #elif defined(__IAR_SYSTEMS_ICC__) 19713 #pragma language=default 19714 #else 19715 #error Not supported compiler type 19716 #endif 19717 19718 /*! 19719 * @} 19720 */ /* end of group Peripheral_access_layer */ 19721 19722 19723 /* ---------------------------------------------------------------------------- 19724 -- Macros for use with bit field definitions (xxx_SHIFT, xxx_MASK). 19725 ---------------------------------------------------------------------------- */ 19726 19727 /*! 19728 * @addtogroup Bit_Field_Generic_Macros Macros for use with bit field definitions (xxx_SHIFT, xxx_MASK). 19729 * @{ 19730 */ 19731 19732 #if defined(__ARMCC_VERSION) 19733 #if (__ARMCC_VERSION >= 6010050) 19734 #pragma clang system_header 19735 #endif 19736 #elif defined(__IAR_SYSTEMS_ICC__) 19737 #pragma system_include 19738 #endif 19739 19740 /** 19741 * @brief Mask and left-shift a bit field value for use in a register bit range. 19742 * @param field Name of the register bit field. 19743 * @param value Value of the bit field. 19744 * @return Masked and shifted value. 19745 */ 19746 #define NXP_VAL2FLD(field, value) (((value) << (field ## _SHIFT)) & (field ## _MASK)) 19747 /** 19748 * @brief Mask and right-shift a register value to extract a bit field value. 19749 * @param field Name of the register bit field. 19750 * @param value Value of the register. 19751 * @return Masked and shifted bit field value. 19752 */ 19753 #define NXP_FLD2VAL(field, value) (((value) & (field ## _MASK)) >> (field ## _SHIFT)) 19754 19755 /*! 19756 * @} 19757 */ /* end of group Bit_Field_Generic_Macros */ 19758 19759 19760 /* ---------------------------------------------------------------------------- 19761 -- SDK Compatibility 19762 ---------------------------------------------------------------------------- */ 19763 19764 /*! 19765 * @addtogroup SDK_Compatibility_Symbols SDK Compatibility 19766 * @{ 19767 */ 19768 19769 /* No SDK compatibility issues. */ 19770 19771 /*! 19772 * @} 19773 */ /* end of group SDK_Compatibility_Symbols */ 19774 19775 19776 #endif /* _MKM34ZA5_H_ */ 19777 19778