mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Committer:
yusuke_kyo
Date:
Wed Apr 08 08:04:18 2015 +0000
Revision:
98:01a414ca7d6d
Parent:
90:cb3d968589d8
remove SerialHalfDuplex.h

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 90:cb3d968589d8 1 /*
Kojto 90:cb3d968589d8 2 ** ###################################################################
Kojto 90:cb3d968589d8 3 ** Compilers: Keil ARM C/C++ Compiler
Kojto 90:cb3d968589d8 4 ** Freescale C/C++ for Embedded ARM
Kojto 90:cb3d968589d8 5 ** GNU C Compiler
Kojto 90:cb3d968589d8 6 ** GNU C Compiler - CodeSourcery Sourcery G++
Kojto 90:cb3d968589d8 7 ** IAR ANSI C/C++ Compiler for ARM
Kojto 90:cb3d968589d8 8 **
Kojto 90:cb3d968589d8 9 ** Reference manual: K22P121M120SF7RM, Rev. 1, March 24, 2014
Kojto 90:cb3d968589d8 10 ** Version: rev. 2.5, 2014-05-06
Kojto 90:cb3d968589d8 11 ** Build: b140604
Kojto 90:cb3d968589d8 12 **
Kojto 90:cb3d968589d8 13 ** Abstract:
Kojto 90:cb3d968589d8 14 ** CMSIS Peripheral Access Layer for MK22F51212
Kojto 90:cb3d968589d8 15 **
Kojto 90:cb3d968589d8 16 ** Copyright (c) 1997 - 2014 Freescale Semiconductor, Inc.
Kojto 90:cb3d968589d8 17 ** All rights reserved.
Kojto 90:cb3d968589d8 18 **
Kojto 90:cb3d968589d8 19 ** Redistribution and use in source and binary forms, with or without modification,
Kojto 90:cb3d968589d8 20 ** are permitted provided that the following conditions are met:
Kojto 90:cb3d968589d8 21 **
Kojto 90:cb3d968589d8 22 ** o Redistributions of source code must retain the above copyright notice, this list
Kojto 90:cb3d968589d8 23 ** of conditions and the following disclaimer.
Kojto 90:cb3d968589d8 24 **
Kojto 90:cb3d968589d8 25 ** o Redistributions in binary form must reproduce the above copyright notice, this
Kojto 90:cb3d968589d8 26 ** list of conditions and the following disclaimer in the documentation and/or
Kojto 90:cb3d968589d8 27 ** other materials provided with the distribution.
Kojto 90:cb3d968589d8 28 **
Kojto 90:cb3d968589d8 29 ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
Kojto 90:cb3d968589d8 30 ** contributors may be used to endorse or promote products derived from this
Kojto 90:cb3d968589d8 31 ** software without specific prior written permission.
Kojto 90:cb3d968589d8 32 **
Kojto 90:cb3d968589d8 33 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
Kojto 90:cb3d968589d8 34 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Kojto 90:cb3d968589d8 35 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 90:cb3d968589d8 36 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
Kojto 90:cb3d968589d8 37 ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
Kojto 90:cb3d968589d8 38 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Kojto 90:cb3d968589d8 39 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
Kojto 90:cb3d968589d8 40 ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Kojto 90:cb3d968589d8 41 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Kojto 90:cb3d968589d8 42 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 90:cb3d968589d8 43 **
Kojto 90:cb3d968589d8 44 ** http: www.freescale.com
Kojto 90:cb3d968589d8 45 ** mail: support@freescale.com
Kojto 90:cb3d968589d8 46 **
Kojto 90:cb3d968589d8 47 ** Revisions:
Kojto 90:cb3d968589d8 48 ** - rev. 1.0 (2013-07-23)
Kojto 90:cb3d968589d8 49 ** Initial version.
Kojto 90:cb3d968589d8 50 ** - rev. 1.1 (2013-09-17)
Kojto 90:cb3d968589d8 51 ** RM rev. 0.4 update.
Kojto 90:cb3d968589d8 52 ** - rev. 2.0 (2013-10-29)
Kojto 90:cb3d968589d8 53 ** Register accessor macros added to the memory map.
Kojto 90:cb3d968589d8 54 ** Symbols for Processor Expert memory map compatibility added to the memory map.
Kojto 90:cb3d968589d8 55 ** Startup file for gcc has been updated according to CMSIS 3.2.
Kojto 90:cb3d968589d8 56 ** System initialization updated.
Kojto 90:cb3d968589d8 57 ** - rev. 2.1 (2013-10-30)
Kojto 90:cb3d968589d8 58 ** Definition of BITBAND macros updated to support peripherals with 32-bit acces disabled.
Kojto 90:cb3d968589d8 59 ** - rev. 2.2 (2013-12-20)
Kojto 90:cb3d968589d8 60 ** Update according to reference manual rev. 0.6,
Kojto 90:cb3d968589d8 61 ** - rev. 2.3 (2014-01-13)
Kojto 90:cb3d968589d8 62 ** Update according to reference manual rev. 0.61,
Kojto 90:cb3d968589d8 63 ** - rev. 2.4 (2014-02-10)
Kojto 90:cb3d968589d8 64 ** The declaration of clock configurations has been moved to separate header file system_MK22F51212.h
Kojto 90:cb3d968589d8 65 ** - rev. 2.5 (2014-05-06)
Kojto 90:cb3d968589d8 66 ** Update according to reference manual rev. 1.0,
Kojto 90:cb3d968589d8 67 ** Update of system and startup files.
Kojto 90:cb3d968589d8 68 ** Module access macro module_BASES replaced by module_BASE_PTRS.
Kojto 90:cb3d968589d8 69 **
Kojto 90:cb3d968589d8 70 ** ###################################################################
Kojto 90:cb3d968589d8 71 */
Kojto 90:cb3d968589d8 72
Kojto 90:cb3d968589d8 73 /*!
Kojto 90:cb3d968589d8 74 * @file MK22F51212.h
Kojto 90:cb3d968589d8 75 * @version 2.5
Kojto 90:cb3d968589d8 76 * @date 2014-05-06
Kojto 90:cb3d968589d8 77 * @brief CMSIS Peripheral Access Layer for MK22F51212
Kojto 90:cb3d968589d8 78 *
Kojto 90:cb3d968589d8 79 * CMSIS Peripheral Access Layer for MK22F51212
Kojto 90:cb3d968589d8 80 */
Kojto 90:cb3d968589d8 81
Kojto 90:cb3d968589d8 82
Kojto 90:cb3d968589d8 83 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 84 -- MCU activation
Kojto 90:cb3d968589d8 85 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 86
Kojto 90:cb3d968589d8 87 /* Prevention from multiple including the same memory map */
Kojto 90:cb3d968589d8 88 #if !defined(MK22F51212_H_) /* Check if memory map has not been already included */
Kojto 90:cb3d968589d8 89 #define MK22F51212_H_
Kojto 90:cb3d968589d8 90 #define MCU_MK22F51212
Kojto 90:cb3d968589d8 91
Kojto 90:cb3d968589d8 92 /* Check if another memory map has not been also included */
Kojto 90:cb3d968589d8 93 #if (defined(MCU_ACTIVE))
Kojto 90:cb3d968589d8 94 #error MK22F51212 memory map: There is already included another memory map. Only one memory map can be included.
Kojto 90:cb3d968589d8 95 #endif /* (defined(MCU_ACTIVE)) */
Kojto 90:cb3d968589d8 96 #define MCU_ACTIVE
Kojto 90:cb3d968589d8 97
Kojto 90:cb3d968589d8 98 #include <stdint.h>
Kojto 90:cb3d968589d8 99
Kojto 90:cb3d968589d8 100 /** Memory map major version (memory maps with equal major version number are
Kojto 90:cb3d968589d8 101 * compatible) */
Kojto 90:cb3d968589d8 102 #define MCU_MEM_MAP_VERSION 0x0200u
Kojto 90:cb3d968589d8 103 /** Memory map minor version */
Kojto 90:cb3d968589d8 104 #define MCU_MEM_MAP_VERSION_MINOR 0x0005u
Kojto 90:cb3d968589d8 105
Kojto 90:cb3d968589d8 106 /**
Kojto 90:cb3d968589d8 107 * @brief Macro to calculate address of an aliased word in the peripheral
Kojto 90:cb3d968589d8 108 * bitband area for a peripheral register and bit (bit band region 0x40000000 to
Kojto 90:cb3d968589d8 109 * 0x400FFFFF).
Kojto 90:cb3d968589d8 110 * @param Reg Register to access.
Kojto 90:cb3d968589d8 111 * @param Bit Bit number to access.
Kojto 90:cb3d968589d8 112 * @return Address of the aliased word in the peripheral bitband area.
Kojto 90:cb3d968589d8 113 */
Kojto 90:cb3d968589d8 114 #define BITBAND_REGADDR(Reg,Bit) (0x42000000u + (32u*((uint32_t)&(Reg) - (uint32_t)0x40000000u)) + (4u*((uint32_t)(Bit))))
Kojto 90:cb3d968589d8 115 /**
Kojto 90:cb3d968589d8 116 * @brief Macro to access a single bit of a peripheral register (bit band region
Kojto 90:cb3d968589d8 117 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
Kojto 90:cb3d968589d8 118 * be used for peripherals with 32bit access allowed.
Kojto 90:cb3d968589d8 119 * @param Reg Register to access.
Kojto 90:cb3d968589d8 120 * @param Bit Bit number to access.
Kojto 90:cb3d968589d8 121 * @return Value of the targeted bit in the bit band region.
Kojto 90:cb3d968589d8 122 */
Kojto 90:cb3d968589d8 123 #define BITBAND_REG32(Reg,Bit) (*((uint32_t volatile*)(BITBAND_REGADDR(Reg,Bit))))
Kojto 90:cb3d968589d8 124 #define BITBAND_REG(Reg,Bit) (BITBAND_REG32(Reg,Bit))
Kojto 90:cb3d968589d8 125 /**
Kojto 90:cb3d968589d8 126 * @brief Macro to access a single bit of a peripheral register (bit band region
Kojto 90:cb3d968589d8 127 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
Kojto 90:cb3d968589d8 128 * be used for peripherals with 16bit access allowed.
Kojto 90:cb3d968589d8 129 * @param Reg Register to access.
Kojto 90:cb3d968589d8 130 * @param Bit Bit number to access.
Kojto 90:cb3d968589d8 131 * @return Value of the targeted bit in the bit band region.
Kojto 90:cb3d968589d8 132 */
Kojto 90:cb3d968589d8 133 #define BITBAND_REG16(Reg,Bit) (*((uint16_t volatile*)(BITBAND_REGADDR(Reg,Bit))))
Kojto 90:cb3d968589d8 134 /**
Kojto 90:cb3d968589d8 135 * @brief Macro to access a single bit of a peripheral register (bit band region
Kojto 90:cb3d968589d8 136 * 0x40000000 to 0x400FFFFF) using the bit-band alias region access. Can
Kojto 90:cb3d968589d8 137 * be used for peripherals with 8bit access allowed.
Kojto 90:cb3d968589d8 138 * @param Reg Register to access.
Kojto 90:cb3d968589d8 139 * @param Bit Bit number to access.
Kojto 90:cb3d968589d8 140 * @return Value of the targeted bit in the bit band region.
Kojto 90:cb3d968589d8 141 */
Kojto 90:cb3d968589d8 142 #define BITBAND_REG8(Reg,Bit) (*((uint8_t volatile*)(BITBAND_REGADDR(Reg,Bit))))
Kojto 90:cb3d968589d8 143
Kojto 90:cb3d968589d8 144 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 145 -- Interrupt vector numbers
Kojto 90:cb3d968589d8 146 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 147
Kojto 90:cb3d968589d8 148 /*!
Kojto 90:cb3d968589d8 149 * @addtogroup Interrupt_vector_numbers Interrupt vector numbers
Kojto 90:cb3d968589d8 150 * @{
Kojto 90:cb3d968589d8 151 */
Kojto 90:cb3d968589d8 152
Kojto 90:cb3d968589d8 153 /** Interrupt Number Definitions */
Kojto 90:cb3d968589d8 154 #define NUMBER_OF_INT_VECTORS 102 /**< Number of interrupts in the Vector table */
Kojto 90:cb3d968589d8 155
Kojto 90:cb3d968589d8 156 typedef enum IRQn {
Kojto 90:cb3d968589d8 157 /* Core interrupts */
Kojto 90:cb3d968589d8 158 NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */
Kojto 90:cb3d968589d8 159 HardFault_IRQn = -13, /**< Cortex-M4 SV Hard Fault Interrupt */
Kojto 90:cb3d968589d8 160 MemoryManagement_IRQn = -12, /**< Cortex-M4 Memory Management Interrupt */
Kojto 90:cb3d968589d8 161 BusFault_IRQn = -11, /**< Cortex-M4 Bus Fault Interrupt */
Kojto 90:cb3d968589d8 162 UsageFault_IRQn = -10, /**< Cortex-M4 Usage Fault Interrupt */
Kojto 90:cb3d968589d8 163 SVCall_IRQn = -5, /**< Cortex-M4 SV Call Interrupt */
Kojto 90:cb3d968589d8 164 DebugMonitor_IRQn = -4, /**< Cortex-M4 Debug Monitor Interrupt */
Kojto 90:cb3d968589d8 165 PendSV_IRQn = -2, /**< Cortex-M4 Pend SV Interrupt */
Kojto 90:cb3d968589d8 166 SysTick_IRQn = -1, /**< Cortex-M4 System Tick Interrupt */
Kojto 90:cb3d968589d8 167
Kojto 90:cb3d968589d8 168 /* Device specific interrupts */
Kojto 90:cb3d968589d8 169 DMA0_IRQn = 0, /**< DMA Channel 0 Transfer Complete */
Kojto 90:cb3d968589d8 170 DMA1_IRQn = 1, /**< DMA Channel 1 Transfer Complete */
Kojto 90:cb3d968589d8 171 DMA2_IRQn = 2, /**< DMA Channel 2 Transfer Complete */
Kojto 90:cb3d968589d8 172 DMA3_IRQn = 3, /**< DMA Channel 3 Transfer Complete */
Kojto 90:cb3d968589d8 173 DMA4_IRQn = 4, /**< DMA Channel 4 Transfer Complete */
Kojto 90:cb3d968589d8 174 DMA5_IRQn = 5, /**< DMA Channel 5 Transfer Complete */
Kojto 90:cb3d968589d8 175 DMA6_IRQn = 6, /**< DMA Channel 6 Transfer Complete */
Kojto 90:cb3d968589d8 176 DMA7_IRQn = 7, /**< DMA Channel 7 Transfer Complete */
Kojto 90:cb3d968589d8 177 DMA8_IRQn = 8, /**< DMA Channel 8 Transfer Complete */
Kojto 90:cb3d968589d8 178 DMA9_IRQn = 9, /**< DMA Channel 9 Transfer Complete */
Kojto 90:cb3d968589d8 179 DMA10_IRQn = 10, /**< DMA Channel 10 Transfer Complete */
Kojto 90:cb3d968589d8 180 DMA11_IRQn = 11, /**< DMA Channel 11 Transfer Complete */
Kojto 90:cb3d968589d8 181 DMA12_IRQn = 12, /**< DMA Channel 12 Transfer Complete */
Kojto 90:cb3d968589d8 182 DMA13_IRQn = 13, /**< DMA Channel 13 Transfer Complete */
Kojto 90:cb3d968589d8 183 DMA14_IRQn = 14, /**< DMA Channel 14 Transfer Complete */
Kojto 90:cb3d968589d8 184 DMA15_IRQn = 15, /**< DMA Channel 15 Transfer Complete */
Kojto 90:cb3d968589d8 185 DMA_Error_IRQn = 16, /**< DMA Error Interrupt */
Kojto 90:cb3d968589d8 186 MCM_IRQn = 17, /**< Normal Interrupt */
Kojto 90:cb3d968589d8 187 FTF_IRQn = 18, /**< FTFA Command complete interrupt */
Kojto 90:cb3d968589d8 188 Read_Collision_IRQn = 19, /**< Read Collision Interrupt */
Kojto 90:cb3d968589d8 189 LVD_LVW_IRQn = 20, /**< Low Voltage Detect, Low Voltage Warning */
Kojto 90:cb3d968589d8 190 LLW_IRQn = 21, /**< Low Leakage Wakeup */
Kojto 90:cb3d968589d8 191 Watchdog_IRQn = 22, /**< WDOG Interrupt */
Kojto 90:cb3d968589d8 192 RNG_IRQn = 23, /**< RNG Interrupt */
Kojto 90:cb3d968589d8 193 I2C0_IRQn = 24, /**< I2C0 interrupt */
Kojto 90:cb3d968589d8 194 I2C1_IRQn = 25, /**< I2C1 interrupt */
Kojto 90:cb3d968589d8 195 SPI0_IRQn = 26, /**< SPI0 Interrupt */
Kojto 90:cb3d968589d8 196 SPI1_IRQn = 27, /**< SPI1 Interrupt */
Kojto 90:cb3d968589d8 197 I2S0_Tx_IRQn = 28, /**< I2S0 transmit interrupt */
Kojto 90:cb3d968589d8 198 I2S0_Rx_IRQn = 29, /**< I2S0 receive interrupt */
Kojto 90:cb3d968589d8 199 LPUART0_IRQn = 30, /**< LPUART0 status/error interrupt */
Kojto 90:cb3d968589d8 200 UART0_RX_TX_IRQn = 31, /**< UART0 Receive/Transmit interrupt */
Kojto 90:cb3d968589d8 201 UART0_ERR_IRQn = 32, /**< UART0 Error interrupt */
Kojto 90:cb3d968589d8 202 UART1_RX_TX_IRQn = 33, /**< UART1 Receive/Transmit interrupt */
Kojto 90:cb3d968589d8 203 UART1_ERR_IRQn = 34, /**< UART1 Error interrupt */
Kojto 90:cb3d968589d8 204 UART2_RX_TX_IRQn = 35, /**< UART2 Receive/Transmit interrupt */
Kojto 90:cb3d968589d8 205 UART2_ERR_IRQn = 36, /**< UART2 Error interrupt */
Kojto 90:cb3d968589d8 206 Reserved53_IRQn = 37, /**< Reserved interrupt 53 */
Kojto 90:cb3d968589d8 207 Reserved54_IRQn = 38, /**< Reserved interrupt 54 */
Kojto 90:cb3d968589d8 208 ADC0_IRQn = 39, /**< ADC0 interrupt */
Kojto 90:cb3d968589d8 209 CMP0_IRQn = 40, /**< CMP0 interrupt */
Kojto 90:cb3d968589d8 210 CMP1_IRQn = 41, /**< CMP1 interrupt */
Kojto 90:cb3d968589d8 211 FTM0_IRQn = 42, /**< FTM0 fault, overflow and channels interrupt */
Kojto 90:cb3d968589d8 212 FTM1_IRQn = 43, /**< FTM1 fault, overflow and channels interrupt */
Kojto 90:cb3d968589d8 213 FTM2_IRQn = 44, /**< FTM2 fault, overflow and channels interrupt */
Kojto 90:cb3d968589d8 214 Reserved61_IRQn = 45, /**< Reserved interrupt 61 */
Kojto 90:cb3d968589d8 215 RTC_IRQn = 46, /**< RTC interrupt */
Kojto 90:cb3d968589d8 216 RTC_Seconds_IRQn = 47, /**< RTC seconds interrupt */
Kojto 90:cb3d968589d8 217 PIT0_IRQn = 48, /**< PIT timer channel 0 interrupt */
Kojto 90:cb3d968589d8 218 PIT1_IRQn = 49, /**< PIT timer channel 1 interrupt */
Kojto 90:cb3d968589d8 219 PIT2_IRQn = 50, /**< PIT timer channel 2 interrupt */
Kojto 90:cb3d968589d8 220 PIT3_IRQn = 51, /**< PIT timer channel 3 interrupt */
Kojto 90:cb3d968589d8 221 PDB0_IRQn = 52, /**< PDB0 Interrupt */
Kojto 90:cb3d968589d8 222 USB0_IRQn = 53, /**< USB0 interrupt */
Kojto 90:cb3d968589d8 223 Reserved70_IRQn = 54, /**< Reserved interrupt 70 */
Kojto 90:cb3d968589d8 224 Reserved71_IRQn = 55, /**< Reserved interrupt 71 */
Kojto 90:cb3d968589d8 225 DAC0_IRQn = 56, /**< DAC0 interrupt */
Kojto 90:cb3d968589d8 226 MCG_IRQn = 57, /**< MCG Interrupt */
Kojto 90:cb3d968589d8 227 LPTimer_IRQn = 58, /**< LPTimer interrupt */
Kojto 90:cb3d968589d8 228 PORTA_IRQn = 59, /**< Port A interrupt */
Kojto 90:cb3d968589d8 229 PORTB_IRQn = 60, /**< Port B interrupt */
Kojto 90:cb3d968589d8 230 PORTC_IRQn = 61, /**< Port C interrupt */
Kojto 90:cb3d968589d8 231 PORTD_IRQn = 62, /**< Port D interrupt */
Kojto 90:cb3d968589d8 232 PORTE_IRQn = 63, /**< Port E interrupt */
Kojto 90:cb3d968589d8 233 SWI_IRQn = 64, /**< Software interrupt */
Kojto 90:cb3d968589d8 234 Reserved81_IRQn = 65, /**< Reserved interrupt 81 */
Kojto 90:cb3d968589d8 235 Reserved82_IRQn = 66, /**< Reserved interrupt 82 */
Kojto 90:cb3d968589d8 236 Reserved83_IRQn = 67, /**< Reserved interrupt 83 */
Kojto 90:cb3d968589d8 237 Reserved84_IRQn = 68, /**< Reserved interrupt 84 */
Kojto 90:cb3d968589d8 238 Reserved85_IRQn = 69, /**< Reserved interrupt 85 */
Kojto 90:cb3d968589d8 239 Reserved86_IRQn = 70, /**< Reserved interrupt 86 */
Kojto 90:cb3d968589d8 240 FTM3_IRQn = 71, /**< FTM3 fault, overflow and channels interrupt */
Kojto 90:cb3d968589d8 241 DAC1_IRQn = 72, /**< DAC1 interrupt */
Kojto 90:cb3d968589d8 242 ADC1_IRQn = 73, /**< ADC1 interrupt */
Kojto 90:cb3d968589d8 243 Reserved90_IRQn = 74, /**< Reserved Interrupt 90 */
Kojto 90:cb3d968589d8 244 Reserved91_IRQn = 75, /**< Reserved Interrupt 91 */
Kojto 90:cb3d968589d8 245 Reserved92_IRQn = 76, /**< Reserved Interrupt 92 */
Kojto 90:cb3d968589d8 246 Reserved93_IRQn = 77, /**< Reserved Interrupt 93 */
Kojto 90:cb3d968589d8 247 Reserved94_IRQn = 78, /**< Reserved Interrupt 94 */
Kojto 90:cb3d968589d8 248 Reserved95_IRQn = 79, /**< Reserved Interrupt 95 */
Kojto 90:cb3d968589d8 249 Reserved96_IRQn = 80, /**< Reserved Interrupt 96 */
Kojto 90:cb3d968589d8 250 Reserved97_IRQn = 81, /**< Reserved Interrupt 97 */
Kojto 90:cb3d968589d8 251 Reserved98_IRQn = 82, /**< Reserved Interrupt 98 */
Kojto 90:cb3d968589d8 252 Reserved99_IRQn = 83, /**< Reserved Interrupt 99 */
Kojto 90:cb3d968589d8 253 Reserved100_IRQn = 84, /**< Reserved Interrupt 100 */
Kojto 90:cb3d968589d8 254 Reserved101_IRQn = 85 /**< Reserved Interrupt 101 */
Kojto 90:cb3d968589d8 255 } IRQn_Type;
Kojto 90:cb3d968589d8 256
Kojto 90:cb3d968589d8 257 /*!
Kojto 90:cb3d968589d8 258 * @}
Kojto 90:cb3d968589d8 259 */ /* end of group Interrupt_vector_numbers */
Kojto 90:cb3d968589d8 260
Kojto 90:cb3d968589d8 261
Kojto 90:cb3d968589d8 262 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 263 -- Cortex M4 Core Configuration
Kojto 90:cb3d968589d8 264 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 265
Kojto 90:cb3d968589d8 266 /*!
Kojto 90:cb3d968589d8 267 * @addtogroup Cortex_Core_Configuration Cortex M4 Core Configuration
Kojto 90:cb3d968589d8 268 * @{
Kojto 90:cb3d968589d8 269 */
Kojto 90:cb3d968589d8 270
Kojto 90:cb3d968589d8 271 #define __MPU_PRESENT 0 /**< Defines if an MPU is present or not */
Kojto 90:cb3d968589d8 272 #define __NVIC_PRIO_BITS 4 /**< Number of priority bits implemented in the NVIC */
Kojto 90:cb3d968589d8 273 #define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */
Kojto 90:cb3d968589d8 274 #define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */
Kojto 90:cb3d968589d8 275
Kojto 90:cb3d968589d8 276 #include "core_cm4.h" /* Core Peripheral Access Layer */
Kojto 90:cb3d968589d8 277 #include "system_MK22F51212.h" /* Device specific configuration file */
Kojto 90:cb3d968589d8 278
Kojto 90:cb3d968589d8 279 /*!
Kojto 90:cb3d968589d8 280 * @}
Kojto 90:cb3d968589d8 281 */ /* end of group Cortex_Core_Configuration */
Kojto 90:cb3d968589d8 282
Kojto 90:cb3d968589d8 283
Kojto 90:cb3d968589d8 284 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 285 -- Device Peripheral Access Layer
Kojto 90:cb3d968589d8 286 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 287
Kojto 90:cb3d968589d8 288 /*!
Kojto 90:cb3d968589d8 289 * @addtogroup Peripheral_access_layer Device Peripheral Access Layer
Kojto 90:cb3d968589d8 290 * @{
Kojto 90:cb3d968589d8 291 */
Kojto 90:cb3d968589d8 292
Kojto 90:cb3d968589d8 293
Kojto 90:cb3d968589d8 294 /*
Kojto 90:cb3d968589d8 295 ** Start of section using anonymous unions
Kojto 90:cb3d968589d8 296 */
Kojto 90:cb3d968589d8 297
Kojto 90:cb3d968589d8 298 #if defined(__ARMCC_VERSION)
Kojto 90:cb3d968589d8 299 #pragma push
Kojto 90:cb3d968589d8 300 #pragma anon_unions
Kojto 90:cb3d968589d8 301 #elif defined(__CWCC__)
Kojto 90:cb3d968589d8 302 #pragma push
Kojto 90:cb3d968589d8 303 #pragma cpp_extensions on
Kojto 90:cb3d968589d8 304 #elif defined(__GNUC__)
Kojto 90:cb3d968589d8 305 /* anonymous unions are enabled by default */
Kojto 90:cb3d968589d8 306 #elif defined(__IAR_SYSTEMS_ICC__)
Kojto 90:cb3d968589d8 307 #pragma language=extended
Kojto 90:cb3d968589d8 308 #else
Kojto 90:cb3d968589d8 309 #error Not supported compiler type
Kojto 90:cb3d968589d8 310 #endif
Kojto 90:cb3d968589d8 311
Kojto 90:cb3d968589d8 312 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 313 -- ADC Peripheral Access Layer
Kojto 90:cb3d968589d8 314 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 315
Kojto 90:cb3d968589d8 316 /*!
Kojto 90:cb3d968589d8 317 * @addtogroup ADC_Peripheral_Access_Layer ADC Peripheral Access Layer
Kojto 90:cb3d968589d8 318 * @{
Kojto 90:cb3d968589d8 319 */
Kojto 90:cb3d968589d8 320
Kojto 90:cb3d968589d8 321 /** ADC - Register Layout Typedef */
Kojto 90:cb3d968589d8 322 typedef struct {
Kojto 90:cb3d968589d8 323 __IO uint32_t SC1[2]; /**< ADC Status and Control Registers 1, array offset: 0x0, array step: 0x4 */
Kojto 90:cb3d968589d8 324 __IO uint32_t CFG1; /**< ADC Configuration Register 1, offset: 0x8 */
Kojto 90:cb3d968589d8 325 __IO uint32_t CFG2; /**< ADC Configuration Register 2, offset: 0xC */
Kojto 90:cb3d968589d8 326 __I uint32_t R[2]; /**< ADC Data Result Register, array offset: 0x10, array step: 0x4 */
Kojto 90:cb3d968589d8 327 __IO uint32_t CV1; /**< Compare Value Registers, offset: 0x18 */
Kojto 90:cb3d968589d8 328 __IO uint32_t CV2; /**< Compare Value Registers, offset: 0x1C */
Kojto 90:cb3d968589d8 329 __IO uint32_t SC2; /**< Status and Control Register 2, offset: 0x20 */
Kojto 90:cb3d968589d8 330 __IO uint32_t SC3; /**< Status and Control Register 3, offset: 0x24 */
Kojto 90:cb3d968589d8 331 __IO uint32_t OFS; /**< ADC Offset Correction Register, offset: 0x28 */
Kojto 90:cb3d968589d8 332 __IO uint32_t PG; /**< ADC Plus-Side Gain Register, offset: 0x2C */
Kojto 90:cb3d968589d8 333 __IO uint32_t MG; /**< ADC Minus-Side Gain Register, offset: 0x30 */
Kojto 90:cb3d968589d8 334 __IO uint32_t CLPD; /**< ADC Plus-Side General Calibration Value Register, offset: 0x34 */
Kojto 90:cb3d968589d8 335 __IO uint32_t CLPS; /**< ADC Plus-Side General Calibration Value Register, offset: 0x38 */
Kojto 90:cb3d968589d8 336 __IO uint32_t CLP4; /**< ADC Plus-Side General Calibration Value Register, offset: 0x3C */
Kojto 90:cb3d968589d8 337 __IO uint32_t CLP3; /**< ADC Plus-Side General Calibration Value Register, offset: 0x40 */
Kojto 90:cb3d968589d8 338 __IO uint32_t CLP2; /**< ADC Plus-Side General Calibration Value Register, offset: 0x44 */
Kojto 90:cb3d968589d8 339 __IO uint32_t CLP1; /**< ADC Plus-Side General Calibration Value Register, offset: 0x48 */
Kojto 90:cb3d968589d8 340 __IO uint32_t CLP0; /**< ADC Plus-Side General Calibration Value Register, offset: 0x4C */
Kojto 90:cb3d968589d8 341 uint8_t RESERVED_0[4];
Kojto 90:cb3d968589d8 342 __IO uint32_t CLMD; /**< ADC Minus-Side General Calibration Value Register, offset: 0x54 */
Kojto 90:cb3d968589d8 343 __IO uint32_t CLMS; /**< ADC Minus-Side General Calibration Value Register, offset: 0x58 */
Kojto 90:cb3d968589d8 344 __IO uint32_t CLM4; /**< ADC Minus-Side General Calibration Value Register, offset: 0x5C */
Kojto 90:cb3d968589d8 345 __IO uint32_t CLM3; /**< ADC Minus-Side General Calibration Value Register, offset: 0x60 */
Kojto 90:cb3d968589d8 346 __IO uint32_t CLM2; /**< ADC Minus-Side General Calibration Value Register, offset: 0x64 */
Kojto 90:cb3d968589d8 347 __IO uint32_t CLM1; /**< ADC Minus-Side General Calibration Value Register, offset: 0x68 */
Kojto 90:cb3d968589d8 348 __IO uint32_t CLM0; /**< ADC Minus-Side General Calibration Value Register, offset: 0x6C */
Kojto 90:cb3d968589d8 349 } ADC_Type, *ADC_MemMapPtr;
Kojto 90:cb3d968589d8 350
Kojto 90:cb3d968589d8 351 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 352 -- ADC - Register accessor macros
Kojto 90:cb3d968589d8 353 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 354
Kojto 90:cb3d968589d8 355 /*!
Kojto 90:cb3d968589d8 356 * @addtogroup ADC_Register_Accessor_Macros ADC - Register accessor macros
Kojto 90:cb3d968589d8 357 * @{
Kojto 90:cb3d968589d8 358 */
Kojto 90:cb3d968589d8 359
Kojto 90:cb3d968589d8 360
Kojto 90:cb3d968589d8 361 /* ADC - Register accessors */
Kojto 90:cb3d968589d8 362 #define ADC_SC1_REG(base,index) ((base)->SC1[index])
Kojto 90:cb3d968589d8 363 #define ADC_CFG1_REG(base) ((base)->CFG1)
Kojto 90:cb3d968589d8 364 #define ADC_CFG2_REG(base) ((base)->CFG2)
Kojto 90:cb3d968589d8 365 #define ADC_R_REG(base,index) ((base)->R[index])
Kojto 90:cb3d968589d8 366 #define ADC_CV1_REG(base) ((base)->CV1)
Kojto 90:cb3d968589d8 367 #define ADC_CV2_REG(base) ((base)->CV2)
Kojto 90:cb3d968589d8 368 #define ADC_SC2_REG(base) ((base)->SC2)
Kojto 90:cb3d968589d8 369 #define ADC_SC3_REG(base) ((base)->SC3)
Kojto 90:cb3d968589d8 370 #define ADC_OFS_REG(base) ((base)->OFS)
Kojto 90:cb3d968589d8 371 #define ADC_PG_REG(base) ((base)->PG)
Kojto 90:cb3d968589d8 372 #define ADC_MG_REG(base) ((base)->MG)
Kojto 90:cb3d968589d8 373 #define ADC_CLPD_REG(base) ((base)->CLPD)
Kojto 90:cb3d968589d8 374 #define ADC_CLPS_REG(base) ((base)->CLPS)
Kojto 90:cb3d968589d8 375 #define ADC_CLP4_REG(base) ((base)->CLP4)
Kojto 90:cb3d968589d8 376 #define ADC_CLP3_REG(base) ((base)->CLP3)
Kojto 90:cb3d968589d8 377 #define ADC_CLP2_REG(base) ((base)->CLP2)
Kojto 90:cb3d968589d8 378 #define ADC_CLP1_REG(base) ((base)->CLP1)
Kojto 90:cb3d968589d8 379 #define ADC_CLP0_REG(base) ((base)->CLP0)
Kojto 90:cb3d968589d8 380 #define ADC_CLMD_REG(base) ((base)->CLMD)
Kojto 90:cb3d968589d8 381 #define ADC_CLMS_REG(base) ((base)->CLMS)
Kojto 90:cb3d968589d8 382 #define ADC_CLM4_REG(base) ((base)->CLM4)
Kojto 90:cb3d968589d8 383 #define ADC_CLM3_REG(base) ((base)->CLM3)
Kojto 90:cb3d968589d8 384 #define ADC_CLM2_REG(base) ((base)->CLM2)
Kojto 90:cb3d968589d8 385 #define ADC_CLM1_REG(base) ((base)->CLM1)
Kojto 90:cb3d968589d8 386 #define ADC_CLM0_REG(base) ((base)->CLM0)
Kojto 90:cb3d968589d8 387
Kojto 90:cb3d968589d8 388 /*!
Kojto 90:cb3d968589d8 389 * @}
Kojto 90:cb3d968589d8 390 */ /* end of group ADC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 391
Kojto 90:cb3d968589d8 392
Kojto 90:cb3d968589d8 393 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 394 -- ADC Register Masks
Kojto 90:cb3d968589d8 395 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 396
Kojto 90:cb3d968589d8 397 /*!
Kojto 90:cb3d968589d8 398 * @addtogroup ADC_Register_Masks ADC Register Masks
Kojto 90:cb3d968589d8 399 * @{
Kojto 90:cb3d968589d8 400 */
Kojto 90:cb3d968589d8 401
Kojto 90:cb3d968589d8 402 /* SC1 Bit Fields */
Kojto 90:cb3d968589d8 403 #define ADC_SC1_ADCH_MASK 0x1Fu
Kojto 90:cb3d968589d8 404 #define ADC_SC1_ADCH_SHIFT 0
Kojto 90:cb3d968589d8 405 #define ADC_SC1_ADCH(x) (((uint32_t)(((uint32_t)(x))<<ADC_SC1_ADCH_SHIFT))&ADC_SC1_ADCH_MASK)
Kojto 90:cb3d968589d8 406 #define ADC_SC1_DIFF_MASK 0x20u
Kojto 90:cb3d968589d8 407 #define ADC_SC1_DIFF_SHIFT 5
Kojto 90:cb3d968589d8 408 #define ADC_SC1_AIEN_MASK 0x40u
Kojto 90:cb3d968589d8 409 #define ADC_SC1_AIEN_SHIFT 6
Kojto 90:cb3d968589d8 410 #define ADC_SC1_COCO_MASK 0x80u
Kojto 90:cb3d968589d8 411 #define ADC_SC1_COCO_SHIFT 7
Kojto 90:cb3d968589d8 412 /* CFG1 Bit Fields */
Kojto 90:cb3d968589d8 413 #define ADC_CFG1_ADICLK_MASK 0x3u
Kojto 90:cb3d968589d8 414 #define ADC_CFG1_ADICLK_SHIFT 0
Kojto 90:cb3d968589d8 415 #define ADC_CFG1_ADICLK(x) (((uint32_t)(((uint32_t)(x))<<ADC_CFG1_ADICLK_SHIFT))&ADC_CFG1_ADICLK_MASK)
Kojto 90:cb3d968589d8 416 #define ADC_CFG1_MODE_MASK 0xCu
Kojto 90:cb3d968589d8 417 #define ADC_CFG1_MODE_SHIFT 2
Kojto 90:cb3d968589d8 418 #define ADC_CFG1_MODE(x) (((uint32_t)(((uint32_t)(x))<<ADC_CFG1_MODE_SHIFT))&ADC_CFG1_MODE_MASK)
Kojto 90:cb3d968589d8 419 #define ADC_CFG1_ADLSMP_MASK 0x10u
Kojto 90:cb3d968589d8 420 #define ADC_CFG1_ADLSMP_SHIFT 4
Kojto 90:cb3d968589d8 421 #define ADC_CFG1_ADIV_MASK 0x60u
Kojto 90:cb3d968589d8 422 #define ADC_CFG1_ADIV_SHIFT 5
Kojto 90:cb3d968589d8 423 #define ADC_CFG1_ADIV(x) (((uint32_t)(((uint32_t)(x))<<ADC_CFG1_ADIV_SHIFT))&ADC_CFG1_ADIV_MASK)
Kojto 90:cb3d968589d8 424 #define ADC_CFG1_ADLPC_MASK 0x80u
Kojto 90:cb3d968589d8 425 #define ADC_CFG1_ADLPC_SHIFT 7
Kojto 90:cb3d968589d8 426 /* CFG2 Bit Fields */
Kojto 90:cb3d968589d8 427 #define ADC_CFG2_ADLSTS_MASK 0x3u
Kojto 90:cb3d968589d8 428 #define ADC_CFG2_ADLSTS_SHIFT 0
Kojto 90:cb3d968589d8 429 #define ADC_CFG2_ADLSTS(x) (((uint32_t)(((uint32_t)(x))<<ADC_CFG2_ADLSTS_SHIFT))&ADC_CFG2_ADLSTS_MASK)
Kojto 90:cb3d968589d8 430 #define ADC_CFG2_ADHSC_MASK 0x4u
Kojto 90:cb3d968589d8 431 #define ADC_CFG2_ADHSC_SHIFT 2
Kojto 90:cb3d968589d8 432 #define ADC_CFG2_ADACKEN_MASK 0x8u
Kojto 90:cb3d968589d8 433 #define ADC_CFG2_ADACKEN_SHIFT 3
Kojto 90:cb3d968589d8 434 #define ADC_CFG2_MUXSEL_MASK 0x10u
Kojto 90:cb3d968589d8 435 #define ADC_CFG2_MUXSEL_SHIFT 4
Kojto 90:cb3d968589d8 436 /* R Bit Fields */
Kojto 90:cb3d968589d8 437 #define ADC_R_D_MASK 0xFFFFu
Kojto 90:cb3d968589d8 438 #define ADC_R_D_SHIFT 0
Kojto 90:cb3d968589d8 439 #define ADC_R_D(x) (((uint32_t)(((uint32_t)(x))<<ADC_R_D_SHIFT))&ADC_R_D_MASK)
Kojto 90:cb3d968589d8 440 /* CV1 Bit Fields */
Kojto 90:cb3d968589d8 441 #define ADC_CV1_CV_MASK 0xFFFFu
Kojto 90:cb3d968589d8 442 #define ADC_CV1_CV_SHIFT 0
Kojto 90:cb3d968589d8 443 #define ADC_CV1_CV(x) (((uint32_t)(((uint32_t)(x))<<ADC_CV1_CV_SHIFT))&ADC_CV1_CV_MASK)
Kojto 90:cb3d968589d8 444 /* CV2 Bit Fields */
Kojto 90:cb3d968589d8 445 #define ADC_CV2_CV_MASK 0xFFFFu
Kojto 90:cb3d968589d8 446 #define ADC_CV2_CV_SHIFT 0
Kojto 90:cb3d968589d8 447 #define ADC_CV2_CV(x) (((uint32_t)(((uint32_t)(x))<<ADC_CV2_CV_SHIFT))&ADC_CV2_CV_MASK)
Kojto 90:cb3d968589d8 448 /* SC2 Bit Fields */
Kojto 90:cb3d968589d8 449 #define ADC_SC2_REFSEL_MASK 0x3u
Kojto 90:cb3d968589d8 450 #define ADC_SC2_REFSEL_SHIFT 0
Kojto 90:cb3d968589d8 451 #define ADC_SC2_REFSEL(x) (((uint32_t)(((uint32_t)(x))<<ADC_SC2_REFSEL_SHIFT))&ADC_SC2_REFSEL_MASK)
Kojto 90:cb3d968589d8 452 #define ADC_SC2_DMAEN_MASK 0x4u
Kojto 90:cb3d968589d8 453 #define ADC_SC2_DMAEN_SHIFT 2
Kojto 90:cb3d968589d8 454 #define ADC_SC2_ACREN_MASK 0x8u
Kojto 90:cb3d968589d8 455 #define ADC_SC2_ACREN_SHIFT 3
Kojto 90:cb3d968589d8 456 #define ADC_SC2_ACFGT_MASK 0x10u
Kojto 90:cb3d968589d8 457 #define ADC_SC2_ACFGT_SHIFT 4
Kojto 90:cb3d968589d8 458 #define ADC_SC2_ACFE_MASK 0x20u
Kojto 90:cb3d968589d8 459 #define ADC_SC2_ACFE_SHIFT 5
Kojto 90:cb3d968589d8 460 #define ADC_SC2_ADTRG_MASK 0x40u
Kojto 90:cb3d968589d8 461 #define ADC_SC2_ADTRG_SHIFT 6
Kojto 90:cb3d968589d8 462 #define ADC_SC2_ADACT_MASK 0x80u
Kojto 90:cb3d968589d8 463 #define ADC_SC2_ADACT_SHIFT 7
Kojto 90:cb3d968589d8 464 /* SC3 Bit Fields */
Kojto 90:cb3d968589d8 465 #define ADC_SC3_AVGS_MASK 0x3u
Kojto 90:cb3d968589d8 466 #define ADC_SC3_AVGS_SHIFT 0
Kojto 90:cb3d968589d8 467 #define ADC_SC3_AVGS(x) (((uint32_t)(((uint32_t)(x))<<ADC_SC3_AVGS_SHIFT))&ADC_SC3_AVGS_MASK)
Kojto 90:cb3d968589d8 468 #define ADC_SC3_AVGE_MASK 0x4u
Kojto 90:cb3d968589d8 469 #define ADC_SC3_AVGE_SHIFT 2
Kojto 90:cb3d968589d8 470 #define ADC_SC3_ADCO_MASK 0x8u
Kojto 90:cb3d968589d8 471 #define ADC_SC3_ADCO_SHIFT 3
Kojto 90:cb3d968589d8 472 #define ADC_SC3_CALF_MASK 0x40u
Kojto 90:cb3d968589d8 473 #define ADC_SC3_CALF_SHIFT 6
Kojto 90:cb3d968589d8 474 #define ADC_SC3_CAL_MASK 0x80u
Kojto 90:cb3d968589d8 475 #define ADC_SC3_CAL_SHIFT 7
Kojto 90:cb3d968589d8 476 /* OFS Bit Fields */
Kojto 90:cb3d968589d8 477 #define ADC_OFS_OFS_MASK 0xFFFFu
Kojto 90:cb3d968589d8 478 #define ADC_OFS_OFS_SHIFT 0
Kojto 90:cb3d968589d8 479 #define ADC_OFS_OFS(x) (((uint32_t)(((uint32_t)(x))<<ADC_OFS_OFS_SHIFT))&ADC_OFS_OFS_MASK)
Kojto 90:cb3d968589d8 480 /* PG Bit Fields */
Kojto 90:cb3d968589d8 481 #define ADC_PG_PG_MASK 0xFFFFu
Kojto 90:cb3d968589d8 482 #define ADC_PG_PG_SHIFT 0
Kojto 90:cb3d968589d8 483 #define ADC_PG_PG(x) (((uint32_t)(((uint32_t)(x))<<ADC_PG_PG_SHIFT))&ADC_PG_PG_MASK)
Kojto 90:cb3d968589d8 484 /* MG Bit Fields */
Kojto 90:cb3d968589d8 485 #define ADC_MG_MG_MASK 0xFFFFu
Kojto 90:cb3d968589d8 486 #define ADC_MG_MG_SHIFT 0
Kojto 90:cb3d968589d8 487 #define ADC_MG_MG(x) (((uint32_t)(((uint32_t)(x))<<ADC_MG_MG_SHIFT))&ADC_MG_MG_MASK)
Kojto 90:cb3d968589d8 488 /* CLPD Bit Fields */
Kojto 90:cb3d968589d8 489 #define ADC_CLPD_CLPD_MASK 0x3Fu
Kojto 90:cb3d968589d8 490 #define ADC_CLPD_CLPD_SHIFT 0
Kojto 90:cb3d968589d8 491 #define ADC_CLPD_CLPD(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLPD_CLPD_SHIFT))&ADC_CLPD_CLPD_MASK)
Kojto 90:cb3d968589d8 492 /* CLPS Bit Fields */
Kojto 90:cb3d968589d8 493 #define ADC_CLPS_CLPS_MASK 0x3Fu
Kojto 90:cb3d968589d8 494 #define ADC_CLPS_CLPS_SHIFT 0
Kojto 90:cb3d968589d8 495 #define ADC_CLPS_CLPS(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLPS_CLPS_SHIFT))&ADC_CLPS_CLPS_MASK)
Kojto 90:cb3d968589d8 496 /* CLP4 Bit Fields */
Kojto 90:cb3d968589d8 497 #define ADC_CLP4_CLP4_MASK 0x3FFu
Kojto 90:cb3d968589d8 498 #define ADC_CLP4_CLP4_SHIFT 0
Kojto 90:cb3d968589d8 499 #define ADC_CLP4_CLP4(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP4_CLP4_SHIFT))&ADC_CLP4_CLP4_MASK)
Kojto 90:cb3d968589d8 500 /* CLP3 Bit Fields */
Kojto 90:cb3d968589d8 501 #define ADC_CLP3_CLP3_MASK 0x1FFu
Kojto 90:cb3d968589d8 502 #define ADC_CLP3_CLP3_SHIFT 0
Kojto 90:cb3d968589d8 503 #define ADC_CLP3_CLP3(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP3_CLP3_SHIFT))&ADC_CLP3_CLP3_MASK)
Kojto 90:cb3d968589d8 504 /* CLP2 Bit Fields */
Kojto 90:cb3d968589d8 505 #define ADC_CLP2_CLP2_MASK 0xFFu
Kojto 90:cb3d968589d8 506 #define ADC_CLP2_CLP2_SHIFT 0
Kojto 90:cb3d968589d8 507 #define ADC_CLP2_CLP2(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP2_CLP2_SHIFT))&ADC_CLP2_CLP2_MASK)
Kojto 90:cb3d968589d8 508 /* CLP1 Bit Fields */
Kojto 90:cb3d968589d8 509 #define ADC_CLP1_CLP1_MASK 0x7Fu
Kojto 90:cb3d968589d8 510 #define ADC_CLP1_CLP1_SHIFT 0
Kojto 90:cb3d968589d8 511 #define ADC_CLP1_CLP1(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP1_CLP1_SHIFT))&ADC_CLP1_CLP1_MASK)
Kojto 90:cb3d968589d8 512 /* CLP0 Bit Fields */
Kojto 90:cb3d968589d8 513 #define ADC_CLP0_CLP0_MASK 0x3Fu
Kojto 90:cb3d968589d8 514 #define ADC_CLP0_CLP0_SHIFT 0
Kojto 90:cb3d968589d8 515 #define ADC_CLP0_CLP0(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLP0_CLP0_SHIFT))&ADC_CLP0_CLP0_MASK)
Kojto 90:cb3d968589d8 516 /* CLMD Bit Fields */
Kojto 90:cb3d968589d8 517 #define ADC_CLMD_CLMD_MASK 0x3Fu
Kojto 90:cb3d968589d8 518 #define ADC_CLMD_CLMD_SHIFT 0
Kojto 90:cb3d968589d8 519 #define ADC_CLMD_CLMD(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLMD_CLMD_SHIFT))&ADC_CLMD_CLMD_MASK)
Kojto 90:cb3d968589d8 520 /* CLMS Bit Fields */
Kojto 90:cb3d968589d8 521 #define ADC_CLMS_CLMS_MASK 0x3Fu
Kojto 90:cb3d968589d8 522 #define ADC_CLMS_CLMS_SHIFT 0
Kojto 90:cb3d968589d8 523 #define ADC_CLMS_CLMS(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLMS_CLMS_SHIFT))&ADC_CLMS_CLMS_MASK)
Kojto 90:cb3d968589d8 524 /* CLM4 Bit Fields */
Kojto 90:cb3d968589d8 525 #define ADC_CLM4_CLM4_MASK 0x3FFu
Kojto 90:cb3d968589d8 526 #define ADC_CLM4_CLM4_SHIFT 0
Kojto 90:cb3d968589d8 527 #define ADC_CLM4_CLM4(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM4_CLM4_SHIFT))&ADC_CLM4_CLM4_MASK)
Kojto 90:cb3d968589d8 528 /* CLM3 Bit Fields */
Kojto 90:cb3d968589d8 529 #define ADC_CLM3_CLM3_MASK 0x1FFu
Kojto 90:cb3d968589d8 530 #define ADC_CLM3_CLM3_SHIFT 0
Kojto 90:cb3d968589d8 531 #define ADC_CLM3_CLM3(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM3_CLM3_SHIFT))&ADC_CLM3_CLM3_MASK)
Kojto 90:cb3d968589d8 532 /* CLM2 Bit Fields */
Kojto 90:cb3d968589d8 533 #define ADC_CLM2_CLM2_MASK 0xFFu
Kojto 90:cb3d968589d8 534 #define ADC_CLM2_CLM2_SHIFT 0
Kojto 90:cb3d968589d8 535 #define ADC_CLM2_CLM2(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM2_CLM2_SHIFT))&ADC_CLM2_CLM2_MASK)
Kojto 90:cb3d968589d8 536 /* CLM1 Bit Fields */
Kojto 90:cb3d968589d8 537 #define ADC_CLM1_CLM1_MASK 0x7Fu
Kojto 90:cb3d968589d8 538 #define ADC_CLM1_CLM1_SHIFT 0
Kojto 90:cb3d968589d8 539 #define ADC_CLM1_CLM1(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM1_CLM1_SHIFT))&ADC_CLM1_CLM1_MASK)
Kojto 90:cb3d968589d8 540 /* CLM0 Bit Fields */
Kojto 90:cb3d968589d8 541 #define ADC_CLM0_CLM0_MASK 0x3Fu
Kojto 90:cb3d968589d8 542 #define ADC_CLM0_CLM0_SHIFT 0
Kojto 90:cb3d968589d8 543 #define ADC_CLM0_CLM0(x) (((uint32_t)(((uint32_t)(x))<<ADC_CLM0_CLM0_SHIFT))&ADC_CLM0_CLM0_MASK)
Kojto 90:cb3d968589d8 544
Kojto 90:cb3d968589d8 545 /*!
Kojto 90:cb3d968589d8 546 * @}
Kojto 90:cb3d968589d8 547 */ /* end of group ADC_Register_Masks */
Kojto 90:cb3d968589d8 548
Kojto 90:cb3d968589d8 549
Kojto 90:cb3d968589d8 550 /* ADC - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 551 /** Peripheral ADC0 base address */
Kojto 90:cb3d968589d8 552 #define ADC0_BASE (0x4003B000u)
Kojto 90:cb3d968589d8 553 /** Peripheral ADC0 base pointer */
Kojto 90:cb3d968589d8 554 #define ADC0 ((ADC_Type *)ADC0_BASE)
Kojto 90:cb3d968589d8 555 #define ADC0_BASE_PTR (ADC0)
Kojto 90:cb3d968589d8 556 /** Peripheral ADC1 base address */
Kojto 90:cb3d968589d8 557 #define ADC1_BASE (0x40027000u)
Kojto 90:cb3d968589d8 558 /** Peripheral ADC1 base pointer */
Kojto 90:cb3d968589d8 559 #define ADC1 ((ADC_Type *)ADC1_BASE)
Kojto 90:cb3d968589d8 560 #define ADC1_BASE_PTR (ADC1)
Kojto 90:cb3d968589d8 561 /** Array initializer of ADC peripheral base addresses */
Kojto 90:cb3d968589d8 562 #define ADC_BASE_ADDRS { ADC0_BASE, ADC1_BASE }
Kojto 90:cb3d968589d8 563 /** Array initializer of ADC peripheral base pointers */
Kojto 90:cb3d968589d8 564 #define ADC_BASE_PTRS { ADC0, ADC1 }
Kojto 90:cb3d968589d8 565 /** Interrupt vectors for the ADC peripheral type */
Kojto 90:cb3d968589d8 566 #define ADC_IRQS { ADC0_IRQn, ADC1_IRQn }
Kojto 90:cb3d968589d8 567
Kojto 90:cb3d968589d8 568 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 569 -- ADC - Register accessor macros
Kojto 90:cb3d968589d8 570 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 571
Kojto 90:cb3d968589d8 572 /*!
Kojto 90:cb3d968589d8 573 * @addtogroup ADC_Register_Accessor_Macros ADC - Register accessor macros
Kojto 90:cb3d968589d8 574 * @{
Kojto 90:cb3d968589d8 575 */
Kojto 90:cb3d968589d8 576
Kojto 90:cb3d968589d8 577
Kojto 90:cb3d968589d8 578 /* ADC - Register instance definitions */
Kojto 90:cb3d968589d8 579 /* ADC0 */
Kojto 90:cb3d968589d8 580 #define ADC0_SC1A ADC_SC1_REG(ADC0,0)
Kojto 90:cb3d968589d8 581 #define ADC0_SC1B ADC_SC1_REG(ADC0,1)
Kojto 90:cb3d968589d8 582 #define ADC0_CFG1 ADC_CFG1_REG(ADC0)
Kojto 90:cb3d968589d8 583 #define ADC0_CFG2 ADC_CFG2_REG(ADC0)
Kojto 90:cb3d968589d8 584 #define ADC0_RA ADC_R_REG(ADC0,0)
Kojto 90:cb3d968589d8 585 #define ADC0_RB ADC_R_REG(ADC0,1)
Kojto 90:cb3d968589d8 586 #define ADC0_CV1 ADC_CV1_REG(ADC0)
Kojto 90:cb3d968589d8 587 #define ADC0_CV2 ADC_CV2_REG(ADC0)
Kojto 90:cb3d968589d8 588 #define ADC0_SC2 ADC_SC2_REG(ADC0)
Kojto 90:cb3d968589d8 589 #define ADC0_SC3 ADC_SC3_REG(ADC0)
Kojto 90:cb3d968589d8 590 #define ADC0_OFS ADC_OFS_REG(ADC0)
Kojto 90:cb3d968589d8 591 #define ADC0_PG ADC_PG_REG(ADC0)
Kojto 90:cb3d968589d8 592 #define ADC0_MG ADC_MG_REG(ADC0)
Kojto 90:cb3d968589d8 593 #define ADC0_CLPD ADC_CLPD_REG(ADC0)
Kojto 90:cb3d968589d8 594 #define ADC0_CLPS ADC_CLPS_REG(ADC0)
Kojto 90:cb3d968589d8 595 #define ADC0_CLP4 ADC_CLP4_REG(ADC0)
Kojto 90:cb3d968589d8 596 #define ADC0_CLP3 ADC_CLP3_REG(ADC0)
Kojto 90:cb3d968589d8 597 #define ADC0_CLP2 ADC_CLP2_REG(ADC0)
Kojto 90:cb3d968589d8 598 #define ADC0_CLP1 ADC_CLP1_REG(ADC0)
Kojto 90:cb3d968589d8 599 #define ADC0_CLP0 ADC_CLP0_REG(ADC0)
Kojto 90:cb3d968589d8 600 #define ADC0_CLMD ADC_CLMD_REG(ADC0)
Kojto 90:cb3d968589d8 601 #define ADC0_CLMS ADC_CLMS_REG(ADC0)
Kojto 90:cb3d968589d8 602 #define ADC0_CLM4 ADC_CLM4_REG(ADC0)
Kojto 90:cb3d968589d8 603 #define ADC0_CLM3 ADC_CLM3_REG(ADC0)
Kojto 90:cb3d968589d8 604 #define ADC0_CLM2 ADC_CLM2_REG(ADC0)
Kojto 90:cb3d968589d8 605 #define ADC0_CLM1 ADC_CLM1_REG(ADC0)
Kojto 90:cb3d968589d8 606 #define ADC0_CLM0 ADC_CLM0_REG(ADC0)
Kojto 90:cb3d968589d8 607 /* ADC1 */
Kojto 90:cb3d968589d8 608 #define ADC1_SC1A ADC_SC1_REG(ADC1,0)
Kojto 90:cb3d968589d8 609 #define ADC1_SC1B ADC_SC1_REG(ADC1,1)
Kojto 90:cb3d968589d8 610 #define ADC1_CFG1 ADC_CFG1_REG(ADC1)
Kojto 90:cb3d968589d8 611 #define ADC1_CFG2 ADC_CFG2_REG(ADC1)
Kojto 90:cb3d968589d8 612 #define ADC1_RA ADC_R_REG(ADC1,0)
Kojto 90:cb3d968589d8 613 #define ADC1_RB ADC_R_REG(ADC1,1)
Kojto 90:cb3d968589d8 614 #define ADC1_CV1 ADC_CV1_REG(ADC1)
Kojto 90:cb3d968589d8 615 #define ADC1_CV2 ADC_CV2_REG(ADC1)
Kojto 90:cb3d968589d8 616 #define ADC1_SC2 ADC_SC2_REG(ADC1)
Kojto 90:cb3d968589d8 617 #define ADC1_SC3 ADC_SC3_REG(ADC1)
Kojto 90:cb3d968589d8 618 #define ADC1_OFS ADC_OFS_REG(ADC1)
Kojto 90:cb3d968589d8 619 #define ADC1_PG ADC_PG_REG(ADC1)
Kojto 90:cb3d968589d8 620 #define ADC1_MG ADC_MG_REG(ADC1)
Kojto 90:cb3d968589d8 621 #define ADC1_CLPD ADC_CLPD_REG(ADC1)
Kojto 90:cb3d968589d8 622 #define ADC1_CLPS ADC_CLPS_REG(ADC1)
Kojto 90:cb3d968589d8 623 #define ADC1_CLP4 ADC_CLP4_REG(ADC1)
Kojto 90:cb3d968589d8 624 #define ADC1_CLP3 ADC_CLP3_REG(ADC1)
Kojto 90:cb3d968589d8 625 #define ADC1_CLP2 ADC_CLP2_REG(ADC1)
Kojto 90:cb3d968589d8 626 #define ADC1_CLP1 ADC_CLP1_REG(ADC1)
Kojto 90:cb3d968589d8 627 #define ADC1_CLP0 ADC_CLP0_REG(ADC1)
Kojto 90:cb3d968589d8 628 #define ADC1_CLMD ADC_CLMD_REG(ADC1)
Kojto 90:cb3d968589d8 629 #define ADC1_CLMS ADC_CLMS_REG(ADC1)
Kojto 90:cb3d968589d8 630 #define ADC1_CLM4 ADC_CLM4_REG(ADC1)
Kojto 90:cb3d968589d8 631 #define ADC1_CLM3 ADC_CLM3_REG(ADC1)
Kojto 90:cb3d968589d8 632 #define ADC1_CLM2 ADC_CLM2_REG(ADC1)
Kojto 90:cb3d968589d8 633 #define ADC1_CLM1 ADC_CLM1_REG(ADC1)
Kojto 90:cb3d968589d8 634 #define ADC1_CLM0 ADC_CLM0_REG(ADC1)
Kojto 90:cb3d968589d8 635
Kojto 90:cb3d968589d8 636 /* ADC - Register array accessors */
Kojto 90:cb3d968589d8 637 #define ADC0_SC1(index) ADC_SC1_REG(ADC0,index)
Kojto 90:cb3d968589d8 638 #define ADC1_SC1(index) ADC_SC1_REG(ADC1,index)
Kojto 90:cb3d968589d8 639 #define ADC0_R(index) ADC_R_REG(ADC0,index)
Kojto 90:cb3d968589d8 640 #define ADC1_R(index) ADC_R_REG(ADC1,index)
Kojto 90:cb3d968589d8 641
Kojto 90:cb3d968589d8 642 /*!
Kojto 90:cb3d968589d8 643 * @}
Kojto 90:cb3d968589d8 644 */ /* end of group ADC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 645
Kojto 90:cb3d968589d8 646
Kojto 90:cb3d968589d8 647 /*!
Kojto 90:cb3d968589d8 648 * @}
Kojto 90:cb3d968589d8 649 */ /* end of group ADC_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 650
Kojto 90:cb3d968589d8 651
Kojto 90:cb3d968589d8 652 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 653 -- CMP Peripheral Access Layer
Kojto 90:cb3d968589d8 654 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 655
Kojto 90:cb3d968589d8 656 /*!
Kojto 90:cb3d968589d8 657 * @addtogroup CMP_Peripheral_Access_Layer CMP Peripheral Access Layer
Kojto 90:cb3d968589d8 658 * @{
Kojto 90:cb3d968589d8 659 */
Kojto 90:cb3d968589d8 660
Kojto 90:cb3d968589d8 661 /** CMP - Register Layout Typedef */
Kojto 90:cb3d968589d8 662 typedef struct {
Kojto 90:cb3d968589d8 663 __IO uint8_t CR0; /**< CMP Control Register 0, offset: 0x0 */
Kojto 90:cb3d968589d8 664 __IO uint8_t CR1; /**< CMP Control Register 1, offset: 0x1 */
Kojto 90:cb3d968589d8 665 __IO uint8_t FPR; /**< CMP Filter Period Register, offset: 0x2 */
Kojto 90:cb3d968589d8 666 __IO uint8_t SCR; /**< CMP Status and Control Register, offset: 0x3 */
Kojto 90:cb3d968589d8 667 __IO uint8_t DACCR; /**< DAC Control Register, offset: 0x4 */
Kojto 90:cb3d968589d8 668 __IO uint8_t MUXCR; /**< MUX Control Register, offset: 0x5 */
Kojto 90:cb3d968589d8 669 } CMP_Type, *CMP_MemMapPtr;
Kojto 90:cb3d968589d8 670
Kojto 90:cb3d968589d8 671 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 672 -- CMP - Register accessor macros
Kojto 90:cb3d968589d8 673 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 674
Kojto 90:cb3d968589d8 675 /*!
Kojto 90:cb3d968589d8 676 * @addtogroup CMP_Register_Accessor_Macros CMP - Register accessor macros
Kojto 90:cb3d968589d8 677 * @{
Kojto 90:cb3d968589d8 678 */
Kojto 90:cb3d968589d8 679
Kojto 90:cb3d968589d8 680
Kojto 90:cb3d968589d8 681 /* CMP - Register accessors */
Kojto 90:cb3d968589d8 682 #define CMP_CR0_REG(base) ((base)->CR0)
Kojto 90:cb3d968589d8 683 #define CMP_CR1_REG(base) ((base)->CR1)
Kojto 90:cb3d968589d8 684 #define CMP_FPR_REG(base) ((base)->FPR)
Kojto 90:cb3d968589d8 685 #define CMP_SCR_REG(base) ((base)->SCR)
Kojto 90:cb3d968589d8 686 #define CMP_DACCR_REG(base) ((base)->DACCR)
Kojto 90:cb3d968589d8 687 #define CMP_MUXCR_REG(base) ((base)->MUXCR)
Kojto 90:cb3d968589d8 688
Kojto 90:cb3d968589d8 689 /*!
Kojto 90:cb3d968589d8 690 * @}
Kojto 90:cb3d968589d8 691 */ /* end of group CMP_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 692
Kojto 90:cb3d968589d8 693
Kojto 90:cb3d968589d8 694 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 695 -- CMP Register Masks
Kojto 90:cb3d968589d8 696 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 697
Kojto 90:cb3d968589d8 698 /*!
Kojto 90:cb3d968589d8 699 * @addtogroup CMP_Register_Masks CMP Register Masks
Kojto 90:cb3d968589d8 700 * @{
Kojto 90:cb3d968589d8 701 */
Kojto 90:cb3d968589d8 702
Kojto 90:cb3d968589d8 703 /* CR0 Bit Fields */
Kojto 90:cb3d968589d8 704 #define CMP_CR0_HYSTCTR_MASK 0x3u
Kojto 90:cb3d968589d8 705 #define CMP_CR0_HYSTCTR_SHIFT 0
Kojto 90:cb3d968589d8 706 #define CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x))<<CMP_CR0_HYSTCTR_SHIFT))&CMP_CR0_HYSTCTR_MASK)
Kojto 90:cb3d968589d8 707 #define CMP_CR0_FILTER_CNT_MASK 0x70u
Kojto 90:cb3d968589d8 708 #define CMP_CR0_FILTER_CNT_SHIFT 4
Kojto 90:cb3d968589d8 709 #define CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x))<<CMP_CR0_FILTER_CNT_SHIFT))&CMP_CR0_FILTER_CNT_MASK)
Kojto 90:cb3d968589d8 710 /* CR1 Bit Fields */
Kojto 90:cb3d968589d8 711 #define CMP_CR1_EN_MASK 0x1u
Kojto 90:cb3d968589d8 712 #define CMP_CR1_EN_SHIFT 0
Kojto 90:cb3d968589d8 713 #define CMP_CR1_OPE_MASK 0x2u
Kojto 90:cb3d968589d8 714 #define CMP_CR1_OPE_SHIFT 1
Kojto 90:cb3d968589d8 715 #define CMP_CR1_COS_MASK 0x4u
Kojto 90:cb3d968589d8 716 #define CMP_CR1_COS_SHIFT 2
Kojto 90:cb3d968589d8 717 #define CMP_CR1_INV_MASK 0x8u
Kojto 90:cb3d968589d8 718 #define CMP_CR1_INV_SHIFT 3
Kojto 90:cb3d968589d8 719 #define CMP_CR1_PMODE_MASK 0x10u
Kojto 90:cb3d968589d8 720 #define CMP_CR1_PMODE_SHIFT 4
Kojto 90:cb3d968589d8 721 #define CMP_CR1_TRIGM_MASK 0x20u
Kojto 90:cb3d968589d8 722 #define CMP_CR1_TRIGM_SHIFT 5
Kojto 90:cb3d968589d8 723 #define CMP_CR1_WE_MASK 0x40u
Kojto 90:cb3d968589d8 724 #define CMP_CR1_WE_SHIFT 6
Kojto 90:cb3d968589d8 725 #define CMP_CR1_SE_MASK 0x80u
Kojto 90:cb3d968589d8 726 #define CMP_CR1_SE_SHIFT 7
Kojto 90:cb3d968589d8 727 /* FPR Bit Fields */
Kojto 90:cb3d968589d8 728 #define CMP_FPR_FILT_PER_MASK 0xFFu
Kojto 90:cb3d968589d8 729 #define CMP_FPR_FILT_PER_SHIFT 0
Kojto 90:cb3d968589d8 730 #define CMP_FPR_FILT_PER(x) (((uint8_t)(((uint8_t)(x))<<CMP_FPR_FILT_PER_SHIFT))&CMP_FPR_FILT_PER_MASK)
Kojto 90:cb3d968589d8 731 /* SCR Bit Fields */
Kojto 90:cb3d968589d8 732 #define CMP_SCR_COUT_MASK 0x1u
Kojto 90:cb3d968589d8 733 #define CMP_SCR_COUT_SHIFT 0
Kojto 90:cb3d968589d8 734 #define CMP_SCR_CFF_MASK 0x2u
Kojto 90:cb3d968589d8 735 #define CMP_SCR_CFF_SHIFT 1
Kojto 90:cb3d968589d8 736 #define CMP_SCR_CFR_MASK 0x4u
Kojto 90:cb3d968589d8 737 #define CMP_SCR_CFR_SHIFT 2
Kojto 90:cb3d968589d8 738 #define CMP_SCR_IEF_MASK 0x8u
Kojto 90:cb3d968589d8 739 #define CMP_SCR_IEF_SHIFT 3
Kojto 90:cb3d968589d8 740 #define CMP_SCR_IER_MASK 0x10u
Kojto 90:cb3d968589d8 741 #define CMP_SCR_IER_SHIFT 4
Kojto 90:cb3d968589d8 742 #define CMP_SCR_DMAEN_MASK 0x40u
Kojto 90:cb3d968589d8 743 #define CMP_SCR_DMAEN_SHIFT 6
Kojto 90:cb3d968589d8 744 /* DACCR Bit Fields */
Kojto 90:cb3d968589d8 745 #define CMP_DACCR_VOSEL_MASK 0x3Fu
Kojto 90:cb3d968589d8 746 #define CMP_DACCR_VOSEL_SHIFT 0
Kojto 90:cb3d968589d8 747 #define CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_DACCR_VOSEL_SHIFT))&CMP_DACCR_VOSEL_MASK)
Kojto 90:cb3d968589d8 748 #define CMP_DACCR_VRSEL_MASK 0x40u
Kojto 90:cb3d968589d8 749 #define CMP_DACCR_VRSEL_SHIFT 6
Kojto 90:cb3d968589d8 750 #define CMP_DACCR_DACEN_MASK 0x80u
Kojto 90:cb3d968589d8 751 #define CMP_DACCR_DACEN_SHIFT 7
Kojto 90:cb3d968589d8 752 /* MUXCR Bit Fields */
Kojto 90:cb3d968589d8 753 #define CMP_MUXCR_MSEL_MASK 0x7u
Kojto 90:cb3d968589d8 754 #define CMP_MUXCR_MSEL_SHIFT 0
Kojto 90:cb3d968589d8 755 #define CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_MUXCR_MSEL_SHIFT))&CMP_MUXCR_MSEL_MASK)
Kojto 90:cb3d968589d8 756 #define CMP_MUXCR_PSEL_MASK 0x38u
Kojto 90:cb3d968589d8 757 #define CMP_MUXCR_PSEL_SHIFT 3
Kojto 90:cb3d968589d8 758 #define CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x))<<CMP_MUXCR_PSEL_SHIFT))&CMP_MUXCR_PSEL_MASK)
Kojto 90:cb3d968589d8 759
Kojto 90:cb3d968589d8 760 /*!
Kojto 90:cb3d968589d8 761 * @}
Kojto 90:cb3d968589d8 762 */ /* end of group CMP_Register_Masks */
Kojto 90:cb3d968589d8 763
Kojto 90:cb3d968589d8 764
Kojto 90:cb3d968589d8 765 /* CMP - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 766 /** Peripheral CMP0 base address */
Kojto 90:cb3d968589d8 767 #define CMP0_BASE (0x40073000u)
Kojto 90:cb3d968589d8 768 /** Peripheral CMP0 base pointer */
Kojto 90:cb3d968589d8 769 #define CMP0 ((CMP_Type *)CMP0_BASE)
Kojto 90:cb3d968589d8 770 #define CMP0_BASE_PTR (CMP0)
Kojto 90:cb3d968589d8 771 /** Peripheral CMP1 base address */
Kojto 90:cb3d968589d8 772 #define CMP1_BASE (0x40073008u)
Kojto 90:cb3d968589d8 773 /** Peripheral CMP1 base pointer */
Kojto 90:cb3d968589d8 774 #define CMP1 ((CMP_Type *)CMP1_BASE)
Kojto 90:cb3d968589d8 775 #define CMP1_BASE_PTR (CMP1)
Kojto 90:cb3d968589d8 776 /** Array initializer of CMP peripheral base addresses */
Kojto 90:cb3d968589d8 777 #define CMP_BASE_ADDRS { CMP0_BASE, CMP1_BASE }
Kojto 90:cb3d968589d8 778 /** Array initializer of CMP peripheral base pointers */
Kojto 90:cb3d968589d8 779 #define CMP_BASE_PTRS { CMP0, CMP1 }
Kojto 90:cb3d968589d8 780 /** Interrupt vectors for the CMP peripheral type */
Kojto 90:cb3d968589d8 781 #define CMP_IRQS { CMP0_IRQn, CMP1_IRQn }
Kojto 90:cb3d968589d8 782
Kojto 90:cb3d968589d8 783 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 784 -- CMP - Register accessor macros
Kojto 90:cb3d968589d8 785 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 786
Kojto 90:cb3d968589d8 787 /*!
Kojto 90:cb3d968589d8 788 * @addtogroup CMP_Register_Accessor_Macros CMP - Register accessor macros
Kojto 90:cb3d968589d8 789 * @{
Kojto 90:cb3d968589d8 790 */
Kojto 90:cb3d968589d8 791
Kojto 90:cb3d968589d8 792
Kojto 90:cb3d968589d8 793 /* CMP - Register instance definitions */
Kojto 90:cb3d968589d8 794 /* CMP0 */
Kojto 90:cb3d968589d8 795 #define CMP0_CR0 CMP_CR0_REG(CMP0)
Kojto 90:cb3d968589d8 796 #define CMP0_CR1 CMP_CR1_REG(CMP0)
Kojto 90:cb3d968589d8 797 #define CMP0_FPR CMP_FPR_REG(CMP0)
Kojto 90:cb3d968589d8 798 #define CMP0_SCR CMP_SCR_REG(CMP0)
Kojto 90:cb3d968589d8 799 #define CMP0_DACCR CMP_DACCR_REG(CMP0)
Kojto 90:cb3d968589d8 800 #define CMP0_MUXCR CMP_MUXCR_REG(CMP0)
Kojto 90:cb3d968589d8 801 /* CMP1 */
Kojto 90:cb3d968589d8 802 #define CMP1_CR0 CMP_CR0_REG(CMP1)
Kojto 90:cb3d968589d8 803 #define CMP1_CR1 CMP_CR1_REG(CMP1)
Kojto 90:cb3d968589d8 804 #define CMP1_FPR CMP_FPR_REG(CMP1)
Kojto 90:cb3d968589d8 805 #define CMP1_SCR CMP_SCR_REG(CMP1)
Kojto 90:cb3d968589d8 806 #define CMP1_DACCR CMP_DACCR_REG(CMP1)
Kojto 90:cb3d968589d8 807 #define CMP1_MUXCR CMP_MUXCR_REG(CMP1)
Kojto 90:cb3d968589d8 808
Kojto 90:cb3d968589d8 809 /*!
Kojto 90:cb3d968589d8 810 * @}
Kojto 90:cb3d968589d8 811 */ /* end of group CMP_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 812
Kojto 90:cb3d968589d8 813
Kojto 90:cb3d968589d8 814 /*!
Kojto 90:cb3d968589d8 815 * @}
Kojto 90:cb3d968589d8 816 */ /* end of group CMP_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 817
Kojto 90:cb3d968589d8 818
Kojto 90:cb3d968589d8 819 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 820 -- CRC Peripheral Access Layer
Kojto 90:cb3d968589d8 821 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 822
Kojto 90:cb3d968589d8 823 /*!
Kojto 90:cb3d968589d8 824 * @addtogroup CRC_Peripheral_Access_Layer CRC Peripheral Access Layer
Kojto 90:cb3d968589d8 825 * @{
Kojto 90:cb3d968589d8 826 */
Kojto 90:cb3d968589d8 827
Kojto 90:cb3d968589d8 828 /** CRC - Register Layout Typedef */
Kojto 90:cb3d968589d8 829 typedef struct {
Kojto 90:cb3d968589d8 830 union { /* offset: 0x0 */
Kojto 90:cb3d968589d8 831 struct { /* offset: 0x0 */
Kojto 90:cb3d968589d8 832 __IO uint16_t DATAL; /**< CRC_DATAL register., offset: 0x0 */
Kojto 90:cb3d968589d8 833 __IO uint16_t DATAH; /**< CRC_DATAH register., offset: 0x2 */
Kojto 90:cb3d968589d8 834 } ACCESS16BIT;
Kojto 90:cb3d968589d8 835 __IO uint32_t DATA; /**< CRC Data register, offset: 0x0 */
Kojto 90:cb3d968589d8 836 struct { /* offset: 0x0 */
Kojto 90:cb3d968589d8 837 __IO uint8_t DATALL; /**< CRC_DATALL register., offset: 0x0 */
Kojto 90:cb3d968589d8 838 __IO uint8_t DATALU; /**< CRC_DATALU register., offset: 0x1 */
Kojto 90:cb3d968589d8 839 __IO uint8_t DATAHL; /**< CRC_DATAHL register., offset: 0x2 */
Kojto 90:cb3d968589d8 840 __IO uint8_t DATAHU; /**< CRC_DATAHU register., offset: 0x3 */
Kojto 90:cb3d968589d8 841 } ACCESS8BIT;
Kojto 90:cb3d968589d8 842 };
Kojto 90:cb3d968589d8 843 union { /* offset: 0x4 */
Kojto 90:cb3d968589d8 844 struct { /* offset: 0x4 */
Kojto 90:cb3d968589d8 845 __IO uint16_t GPOLYL; /**< CRC_GPOLYL register., offset: 0x4 */
Kojto 90:cb3d968589d8 846 __IO uint16_t GPOLYH; /**< CRC_GPOLYH register., offset: 0x6 */
Kojto 90:cb3d968589d8 847 } GPOLY_ACCESS16BIT;
Kojto 90:cb3d968589d8 848 __IO uint32_t GPOLY; /**< CRC Polynomial register, offset: 0x4 */
Kojto 90:cb3d968589d8 849 struct { /* offset: 0x4 */
Kojto 90:cb3d968589d8 850 __IO uint8_t GPOLYLL; /**< CRC_GPOLYLL register., offset: 0x4 */
Kojto 90:cb3d968589d8 851 __IO uint8_t GPOLYLU; /**< CRC_GPOLYLU register., offset: 0x5 */
Kojto 90:cb3d968589d8 852 __IO uint8_t GPOLYHL; /**< CRC_GPOLYHL register., offset: 0x6 */
Kojto 90:cb3d968589d8 853 __IO uint8_t GPOLYHU; /**< CRC_GPOLYHU register., offset: 0x7 */
Kojto 90:cb3d968589d8 854 } GPOLY_ACCESS8BIT;
Kojto 90:cb3d968589d8 855 };
Kojto 90:cb3d968589d8 856 union { /* offset: 0x8 */
Kojto 90:cb3d968589d8 857 __IO uint32_t CTRL; /**< CRC Control register, offset: 0x8 */
Kojto 90:cb3d968589d8 858 struct { /* offset: 0x8 */
Kojto 90:cb3d968589d8 859 uint8_t RESERVED_0[3];
Kojto 90:cb3d968589d8 860 __IO uint8_t CTRLHU; /**< CRC_CTRLHU register., offset: 0xB */
Kojto 90:cb3d968589d8 861 } CTRL_ACCESS8BIT;
Kojto 90:cb3d968589d8 862 };
Kojto 90:cb3d968589d8 863 } CRC_Type, *CRC_MemMapPtr;
Kojto 90:cb3d968589d8 864
Kojto 90:cb3d968589d8 865 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 866 -- CRC - Register accessor macros
Kojto 90:cb3d968589d8 867 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 868
Kojto 90:cb3d968589d8 869 /*!
Kojto 90:cb3d968589d8 870 * @addtogroup CRC_Register_Accessor_Macros CRC - Register accessor macros
Kojto 90:cb3d968589d8 871 * @{
Kojto 90:cb3d968589d8 872 */
Kojto 90:cb3d968589d8 873
Kojto 90:cb3d968589d8 874
Kojto 90:cb3d968589d8 875 /* CRC - Register accessors */
Kojto 90:cb3d968589d8 876 #define CRC_DATAL_REG(base) ((base)->ACCESS16BIT.DATAL)
Kojto 90:cb3d968589d8 877 #define CRC_DATAH_REG(base) ((base)->ACCESS16BIT.DATAH)
Kojto 90:cb3d968589d8 878 #define CRC_DATA_REG(base) ((base)->DATA)
Kojto 90:cb3d968589d8 879 #define CRC_DATALL_REG(base) ((base)->ACCESS8BIT.DATALL)
Kojto 90:cb3d968589d8 880 #define CRC_DATALU_REG(base) ((base)->ACCESS8BIT.DATALU)
Kojto 90:cb3d968589d8 881 #define CRC_DATAHL_REG(base) ((base)->ACCESS8BIT.DATAHL)
Kojto 90:cb3d968589d8 882 #define CRC_DATAHU_REG(base) ((base)->ACCESS8BIT.DATAHU)
Kojto 90:cb3d968589d8 883 #define CRC_GPOLYL_REG(base) ((base)->GPOLY_ACCESS16BIT.GPOLYL)
Kojto 90:cb3d968589d8 884 #define CRC_GPOLYH_REG(base) ((base)->GPOLY_ACCESS16BIT.GPOLYH)
Kojto 90:cb3d968589d8 885 #define CRC_GPOLY_REG(base) ((base)->GPOLY)
Kojto 90:cb3d968589d8 886 #define CRC_GPOLYLL_REG(base) ((base)->GPOLY_ACCESS8BIT.GPOLYLL)
Kojto 90:cb3d968589d8 887 #define CRC_GPOLYLU_REG(base) ((base)->GPOLY_ACCESS8BIT.GPOLYLU)
Kojto 90:cb3d968589d8 888 #define CRC_GPOLYHL_REG(base) ((base)->GPOLY_ACCESS8BIT.GPOLYHL)
Kojto 90:cb3d968589d8 889 #define CRC_GPOLYHU_REG(base) ((base)->GPOLY_ACCESS8BIT.GPOLYHU)
Kojto 90:cb3d968589d8 890 #define CRC_CTRL_REG(base) ((base)->CTRL)
Kojto 90:cb3d968589d8 891 #define CRC_CTRLHU_REG(base) ((base)->CTRL_ACCESS8BIT.CTRLHU)
Kojto 90:cb3d968589d8 892
Kojto 90:cb3d968589d8 893 /*!
Kojto 90:cb3d968589d8 894 * @}
Kojto 90:cb3d968589d8 895 */ /* end of group CRC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 896
Kojto 90:cb3d968589d8 897
Kojto 90:cb3d968589d8 898 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 899 -- CRC Register Masks
Kojto 90:cb3d968589d8 900 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 901
Kojto 90:cb3d968589d8 902 /*!
Kojto 90:cb3d968589d8 903 * @addtogroup CRC_Register_Masks CRC Register Masks
Kojto 90:cb3d968589d8 904 * @{
Kojto 90:cb3d968589d8 905 */
Kojto 90:cb3d968589d8 906
Kojto 90:cb3d968589d8 907 /* DATAL Bit Fields */
Kojto 90:cb3d968589d8 908 #define CRC_DATAL_DATAL_MASK 0xFFFFu
Kojto 90:cb3d968589d8 909 #define CRC_DATAL_DATAL_SHIFT 0
Kojto 90:cb3d968589d8 910 #define CRC_DATAL_DATAL(x) (((uint16_t)(((uint16_t)(x))<<CRC_DATAL_DATAL_SHIFT))&CRC_DATAL_DATAL_MASK)
Kojto 90:cb3d968589d8 911 /* DATAH Bit Fields */
Kojto 90:cb3d968589d8 912 #define CRC_DATAH_DATAH_MASK 0xFFFFu
Kojto 90:cb3d968589d8 913 #define CRC_DATAH_DATAH_SHIFT 0
Kojto 90:cb3d968589d8 914 #define CRC_DATAH_DATAH(x) (((uint16_t)(((uint16_t)(x))<<CRC_DATAH_DATAH_SHIFT))&CRC_DATAH_DATAH_MASK)
Kojto 90:cb3d968589d8 915 /* DATA Bit Fields */
Kojto 90:cb3d968589d8 916 #define CRC_DATA_LL_MASK 0xFFu
Kojto 90:cb3d968589d8 917 #define CRC_DATA_LL_SHIFT 0
Kojto 90:cb3d968589d8 918 #define CRC_DATA_LL(x) (((uint32_t)(((uint32_t)(x))<<CRC_DATA_LL_SHIFT))&CRC_DATA_LL_MASK)
Kojto 90:cb3d968589d8 919 #define CRC_DATA_LU_MASK 0xFF00u
Kojto 90:cb3d968589d8 920 #define CRC_DATA_LU_SHIFT 8
Kojto 90:cb3d968589d8 921 #define CRC_DATA_LU(x) (((uint32_t)(((uint32_t)(x))<<CRC_DATA_LU_SHIFT))&CRC_DATA_LU_MASK)
Kojto 90:cb3d968589d8 922 #define CRC_DATA_HL_MASK 0xFF0000u
Kojto 90:cb3d968589d8 923 #define CRC_DATA_HL_SHIFT 16
Kojto 90:cb3d968589d8 924 #define CRC_DATA_HL(x) (((uint32_t)(((uint32_t)(x))<<CRC_DATA_HL_SHIFT))&CRC_DATA_HL_MASK)
Kojto 90:cb3d968589d8 925 #define CRC_DATA_HU_MASK 0xFF000000u
Kojto 90:cb3d968589d8 926 #define CRC_DATA_HU_SHIFT 24
Kojto 90:cb3d968589d8 927 #define CRC_DATA_HU(x) (((uint32_t)(((uint32_t)(x))<<CRC_DATA_HU_SHIFT))&CRC_DATA_HU_MASK)
Kojto 90:cb3d968589d8 928 /* DATALL Bit Fields */
Kojto 90:cb3d968589d8 929 #define CRC_DATALL_DATALL_MASK 0xFFu
Kojto 90:cb3d968589d8 930 #define CRC_DATALL_DATALL_SHIFT 0
Kojto 90:cb3d968589d8 931 #define CRC_DATALL_DATALL(x) (((uint8_t)(((uint8_t)(x))<<CRC_DATALL_DATALL_SHIFT))&CRC_DATALL_DATALL_MASK)
Kojto 90:cb3d968589d8 932 /* DATALU Bit Fields */
Kojto 90:cb3d968589d8 933 #define CRC_DATALU_DATALU_MASK 0xFFu
Kojto 90:cb3d968589d8 934 #define CRC_DATALU_DATALU_SHIFT 0
Kojto 90:cb3d968589d8 935 #define CRC_DATALU_DATALU(x) (((uint8_t)(((uint8_t)(x))<<CRC_DATALU_DATALU_SHIFT))&CRC_DATALU_DATALU_MASK)
Kojto 90:cb3d968589d8 936 /* DATAHL Bit Fields */
Kojto 90:cb3d968589d8 937 #define CRC_DATAHL_DATAHL_MASK 0xFFu
Kojto 90:cb3d968589d8 938 #define CRC_DATAHL_DATAHL_SHIFT 0
Kojto 90:cb3d968589d8 939 #define CRC_DATAHL_DATAHL(x) (((uint8_t)(((uint8_t)(x))<<CRC_DATAHL_DATAHL_SHIFT))&CRC_DATAHL_DATAHL_MASK)
Kojto 90:cb3d968589d8 940 /* DATAHU Bit Fields */
Kojto 90:cb3d968589d8 941 #define CRC_DATAHU_DATAHU_MASK 0xFFu
Kojto 90:cb3d968589d8 942 #define CRC_DATAHU_DATAHU_SHIFT 0
Kojto 90:cb3d968589d8 943 #define CRC_DATAHU_DATAHU(x) (((uint8_t)(((uint8_t)(x))<<CRC_DATAHU_DATAHU_SHIFT))&CRC_DATAHU_DATAHU_MASK)
Kojto 90:cb3d968589d8 944 /* GPOLYL Bit Fields */
Kojto 90:cb3d968589d8 945 #define CRC_GPOLYL_GPOLYL_MASK 0xFFFFu
Kojto 90:cb3d968589d8 946 #define CRC_GPOLYL_GPOLYL_SHIFT 0
Kojto 90:cb3d968589d8 947 #define CRC_GPOLYL_GPOLYL(x) (((uint16_t)(((uint16_t)(x))<<CRC_GPOLYL_GPOLYL_SHIFT))&CRC_GPOLYL_GPOLYL_MASK)
Kojto 90:cb3d968589d8 948 /* GPOLYH Bit Fields */
Kojto 90:cb3d968589d8 949 #define CRC_GPOLYH_GPOLYH_MASK 0xFFFFu
Kojto 90:cb3d968589d8 950 #define CRC_GPOLYH_GPOLYH_SHIFT 0
Kojto 90:cb3d968589d8 951 #define CRC_GPOLYH_GPOLYH(x) (((uint16_t)(((uint16_t)(x))<<CRC_GPOLYH_GPOLYH_SHIFT))&CRC_GPOLYH_GPOLYH_MASK)
Kojto 90:cb3d968589d8 952 /* GPOLY Bit Fields */
Kojto 90:cb3d968589d8 953 #define CRC_GPOLY_LOW_MASK 0xFFFFu
Kojto 90:cb3d968589d8 954 #define CRC_GPOLY_LOW_SHIFT 0
Kojto 90:cb3d968589d8 955 #define CRC_GPOLY_LOW(x) (((uint32_t)(((uint32_t)(x))<<CRC_GPOLY_LOW_SHIFT))&CRC_GPOLY_LOW_MASK)
Kojto 90:cb3d968589d8 956 #define CRC_GPOLY_HIGH_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 957 #define CRC_GPOLY_HIGH_SHIFT 16
Kojto 90:cb3d968589d8 958 #define CRC_GPOLY_HIGH(x) (((uint32_t)(((uint32_t)(x))<<CRC_GPOLY_HIGH_SHIFT))&CRC_GPOLY_HIGH_MASK)
Kojto 90:cb3d968589d8 959 /* GPOLYLL Bit Fields */
Kojto 90:cb3d968589d8 960 #define CRC_GPOLYLL_GPOLYLL_MASK 0xFFu
Kojto 90:cb3d968589d8 961 #define CRC_GPOLYLL_GPOLYLL_SHIFT 0
Kojto 90:cb3d968589d8 962 #define CRC_GPOLYLL_GPOLYLL(x) (((uint8_t)(((uint8_t)(x))<<CRC_GPOLYLL_GPOLYLL_SHIFT))&CRC_GPOLYLL_GPOLYLL_MASK)
Kojto 90:cb3d968589d8 963 /* GPOLYLU Bit Fields */
Kojto 90:cb3d968589d8 964 #define CRC_GPOLYLU_GPOLYLU_MASK 0xFFu
Kojto 90:cb3d968589d8 965 #define CRC_GPOLYLU_GPOLYLU_SHIFT 0
Kojto 90:cb3d968589d8 966 #define CRC_GPOLYLU_GPOLYLU(x) (((uint8_t)(((uint8_t)(x))<<CRC_GPOLYLU_GPOLYLU_SHIFT))&CRC_GPOLYLU_GPOLYLU_MASK)
Kojto 90:cb3d968589d8 967 /* GPOLYHL Bit Fields */
Kojto 90:cb3d968589d8 968 #define CRC_GPOLYHL_GPOLYHL_MASK 0xFFu
Kojto 90:cb3d968589d8 969 #define CRC_GPOLYHL_GPOLYHL_SHIFT 0
Kojto 90:cb3d968589d8 970 #define CRC_GPOLYHL_GPOLYHL(x) (((uint8_t)(((uint8_t)(x))<<CRC_GPOLYHL_GPOLYHL_SHIFT))&CRC_GPOLYHL_GPOLYHL_MASK)
Kojto 90:cb3d968589d8 971 /* GPOLYHU Bit Fields */
Kojto 90:cb3d968589d8 972 #define CRC_GPOLYHU_GPOLYHU_MASK 0xFFu
Kojto 90:cb3d968589d8 973 #define CRC_GPOLYHU_GPOLYHU_SHIFT 0
Kojto 90:cb3d968589d8 974 #define CRC_GPOLYHU_GPOLYHU(x) (((uint8_t)(((uint8_t)(x))<<CRC_GPOLYHU_GPOLYHU_SHIFT))&CRC_GPOLYHU_GPOLYHU_MASK)
Kojto 90:cb3d968589d8 975 /* CTRL Bit Fields */
Kojto 90:cb3d968589d8 976 #define CRC_CTRL_TCRC_MASK 0x1000000u
Kojto 90:cb3d968589d8 977 #define CRC_CTRL_TCRC_SHIFT 24
Kojto 90:cb3d968589d8 978 #define CRC_CTRL_WAS_MASK 0x2000000u
Kojto 90:cb3d968589d8 979 #define CRC_CTRL_WAS_SHIFT 25
Kojto 90:cb3d968589d8 980 #define CRC_CTRL_FXOR_MASK 0x4000000u
Kojto 90:cb3d968589d8 981 #define CRC_CTRL_FXOR_SHIFT 26
Kojto 90:cb3d968589d8 982 #define CRC_CTRL_TOTR_MASK 0x30000000u
Kojto 90:cb3d968589d8 983 #define CRC_CTRL_TOTR_SHIFT 28
Kojto 90:cb3d968589d8 984 #define CRC_CTRL_TOTR(x) (((uint32_t)(((uint32_t)(x))<<CRC_CTRL_TOTR_SHIFT))&CRC_CTRL_TOTR_MASK)
Kojto 90:cb3d968589d8 985 #define CRC_CTRL_TOT_MASK 0xC0000000u
Kojto 90:cb3d968589d8 986 #define CRC_CTRL_TOT_SHIFT 30
Kojto 90:cb3d968589d8 987 #define CRC_CTRL_TOT(x) (((uint32_t)(((uint32_t)(x))<<CRC_CTRL_TOT_SHIFT))&CRC_CTRL_TOT_MASK)
Kojto 90:cb3d968589d8 988 /* CTRLHU Bit Fields */
Kojto 90:cb3d968589d8 989 #define CRC_CTRLHU_TCRC_MASK 0x1u
Kojto 90:cb3d968589d8 990 #define CRC_CTRLHU_TCRC_SHIFT 0
Kojto 90:cb3d968589d8 991 #define CRC_CTRLHU_WAS_MASK 0x2u
Kojto 90:cb3d968589d8 992 #define CRC_CTRLHU_WAS_SHIFT 1
Kojto 90:cb3d968589d8 993 #define CRC_CTRLHU_FXOR_MASK 0x4u
Kojto 90:cb3d968589d8 994 #define CRC_CTRLHU_FXOR_SHIFT 2
Kojto 90:cb3d968589d8 995 #define CRC_CTRLHU_TOTR_MASK 0x30u
Kojto 90:cb3d968589d8 996 #define CRC_CTRLHU_TOTR_SHIFT 4
Kojto 90:cb3d968589d8 997 #define CRC_CTRLHU_TOTR(x) (((uint8_t)(((uint8_t)(x))<<CRC_CTRLHU_TOTR_SHIFT))&CRC_CTRLHU_TOTR_MASK)
Kojto 90:cb3d968589d8 998 #define CRC_CTRLHU_TOT_MASK 0xC0u
Kojto 90:cb3d968589d8 999 #define CRC_CTRLHU_TOT_SHIFT 6
Kojto 90:cb3d968589d8 1000 #define CRC_CTRLHU_TOT(x) (((uint8_t)(((uint8_t)(x))<<CRC_CTRLHU_TOT_SHIFT))&CRC_CTRLHU_TOT_MASK)
Kojto 90:cb3d968589d8 1001
Kojto 90:cb3d968589d8 1002 /*!
Kojto 90:cb3d968589d8 1003 * @}
Kojto 90:cb3d968589d8 1004 */ /* end of group CRC_Register_Masks */
Kojto 90:cb3d968589d8 1005
Kojto 90:cb3d968589d8 1006
Kojto 90:cb3d968589d8 1007 /* CRC - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 1008 /** Peripheral CRC base address */
Kojto 90:cb3d968589d8 1009 #define CRC_BASE (0x40032000u)
Kojto 90:cb3d968589d8 1010 /** Peripheral CRC base pointer */
Kojto 90:cb3d968589d8 1011 #define CRC0 ((CRC_Type *)CRC_BASE)
Kojto 90:cb3d968589d8 1012 #define CRC_BASE_PTR (CRC0)
Kojto 90:cb3d968589d8 1013 /** Array initializer of CRC peripheral base addresses */
Kojto 90:cb3d968589d8 1014 #define CRC_BASE_ADDRS { CRC_BASE }
Kojto 90:cb3d968589d8 1015 /** Array initializer of CRC peripheral base pointers */
Kojto 90:cb3d968589d8 1016 #define CRC_BASE_PTRS { CRC0 }
Kojto 90:cb3d968589d8 1017
Kojto 90:cb3d968589d8 1018 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 1019 -- CRC - Register accessor macros
Kojto 90:cb3d968589d8 1020 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 1021
Kojto 90:cb3d968589d8 1022 /*!
Kojto 90:cb3d968589d8 1023 * @addtogroup CRC_Register_Accessor_Macros CRC - Register accessor macros
Kojto 90:cb3d968589d8 1024 * @{
Kojto 90:cb3d968589d8 1025 */
Kojto 90:cb3d968589d8 1026
Kojto 90:cb3d968589d8 1027
Kojto 90:cb3d968589d8 1028 /* CRC - Register instance definitions */
Kojto 90:cb3d968589d8 1029 /* CRC */
Kojto 90:cb3d968589d8 1030 #define CRC_DATA CRC_DATA_REG(CRC0)
Kojto 90:cb3d968589d8 1031 #define CRC_DATAL CRC_DATAL_REG(CRC0)
Kojto 90:cb3d968589d8 1032 #define CRC_DATALL CRC_DATALL_REG(CRC0)
Kojto 90:cb3d968589d8 1033 #define CRC_DATALU CRC_DATALU_REG(CRC0)
Kojto 90:cb3d968589d8 1034 #define CRC_DATAH CRC_DATAH_REG(CRC0)
Kojto 90:cb3d968589d8 1035 #define CRC_DATAHL CRC_DATAHL_REG(CRC0)
Kojto 90:cb3d968589d8 1036 #define CRC_DATAHU CRC_DATAHU_REG(CRC0)
Kojto 90:cb3d968589d8 1037 #define CRC_GPOLY CRC_GPOLY_REG(CRC0)
Kojto 90:cb3d968589d8 1038 #define CRC_GPOLYL CRC_GPOLYL_REG(CRC0)
Kojto 90:cb3d968589d8 1039 #define CRC_GPOLYLL CRC_GPOLYLL_REG(CRC0)
Kojto 90:cb3d968589d8 1040 #define CRC_GPOLYLU CRC_GPOLYLU_REG(CRC0)
Kojto 90:cb3d968589d8 1041 #define CRC_GPOLYH CRC_GPOLYH_REG(CRC0)
Kojto 90:cb3d968589d8 1042 #define CRC_GPOLYHL CRC_GPOLYHL_REG(CRC0)
Kojto 90:cb3d968589d8 1043 #define CRC_GPOLYHU CRC_GPOLYHU_REG(CRC0)
Kojto 90:cb3d968589d8 1044 #define CRC_CTRL CRC_CTRL_REG(CRC0)
Kojto 90:cb3d968589d8 1045 #define CRC_CTRLHU CRC_CTRLHU_REG(CRC0)
Kojto 90:cb3d968589d8 1046
Kojto 90:cb3d968589d8 1047 /*!
Kojto 90:cb3d968589d8 1048 * @}
Kojto 90:cb3d968589d8 1049 */ /* end of group CRC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 1050
Kojto 90:cb3d968589d8 1051
Kojto 90:cb3d968589d8 1052 /*!
Kojto 90:cb3d968589d8 1053 * @}
Kojto 90:cb3d968589d8 1054 */ /* end of group CRC_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 1055
Kojto 90:cb3d968589d8 1056
Kojto 90:cb3d968589d8 1057 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 1058 -- DAC Peripheral Access Layer
Kojto 90:cb3d968589d8 1059 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 1060
Kojto 90:cb3d968589d8 1061 /*!
Kojto 90:cb3d968589d8 1062 * @addtogroup DAC_Peripheral_Access_Layer DAC Peripheral Access Layer
Kojto 90:cb3d968589d8 1063 * @{
Kojto 90:cb3d968589d8 1064 */
Kojto 90:cb3d968589d8 1065
Kojto 90:cb3d968589d8 1066 /** DAC - Register Layout Typedef */
Kojto 90:cb3d968589d8 1067 typedef struct {
Kojto 90:cb3d968589d8 1068 struct { /* offset: 0x0, array step: 0x2 */
Kojto 90:cb3d968589d8 1069 __IO uint8_t DATL; /**< DAC Data Low Register, array offset: 0x0, array step: 0x2 */
Kojto 90:cb3d968589d8 1070 __IO uint8_t DATH; /**< DAC Data High Register, array offset: 0x1, array step: 0x2 */
Kojto 90:cb3d968589d8 1071 } DAT[16];
Kojto 90:cb3d968589d8 1072 __IO uint8_t SR; /**< DAC Status Register, offset: 0x20 */
Kojto 90:cb3d968589d8 1073 __IO uint8_t C0; /**< DAC Control Register, offset: 0x21 */
Kojto 90:cb3d968589d8 1074 __IO uint8_t C1; /**< DAC Control Register 1, offset: 0x22 */
Kojto 90:cb3d968589d8 1075 __IO uint8_t C2; /**< DAC Control Register 2, offset: 0x23 */
Kojto 90:cb3d968589d8 1076 } DAC_Type, *DAC_MemMapPtr;
Kojto 90:cb3d968589d8 1077
Kojto 90:cb3d968589d8 1078 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 1079 -- DAC - Register accessor macros
Kojto 90:cb3d968589d8 1080 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 1081
Kojto 90:cb3d968589d8 1082 /*!
Kojto 90:cb3d968589d8 1083 * @addtogroup DAC_Register_Accessor_Macros DAC - Register accessor macros
Kojto 90:cb3d968589d8 1084 * @{
Kojto 90:cb3d968589d8 1085 */
Kojto 90:cb3d968589d8 1086
Kojto 90:cb3d968589d8 1087
Kojto 90:cb3d968589d8 1088 /* DAC - Register accessors */
Kojto 90:cb3d968589d8 1089 #define DAC_DATL_REG(base,index) ((base)->DAT[index].DATL)
Kojto 90:cb3d968589d8 1090 #define DAC_DATH_REG(base,index) ((base)->DAT[index].DATH)
Kojto 90:cb3d968589d8 1091 #define DAC_SR_REG(base) ((base)->SR)
Kojto 90:cb3d968589d8 1092 #define DAC_C0_REG(base) ((base)->C0)
Kojto 90:cb3d968589d8 1093 #define DAC_C1_REG(base) ((base)->C1)
Kojto 90:cb3d968589d8 1094 #define DAC_C2_REG(base) ((base)->C2)
Kojto 90:cb3d968589d8 1095
Kojto 90:cb3d968589d8 1096 /*!
Kojto 90:cb3d968589d8 1097 * @}
Kojto 90:cb3d968589d8 1098 */ /* end of group DAC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 1099
Kojto 90:cb3d968589d8 1100
Kojto 90:cb3d968589d8 1101 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 1102 -- DAC Register Masks
Kojto 90:cb3d968589d8 1103 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 1104
Kojto 90:cb3d968589d8 1105 /*!
Kojto 90:cb3d968589d8 1106 * @addtogroup DAC_Register_Masks DAC Register Masks
Kojto 90:cb3d968589d8 1107 * @{
Kojto 90:cb3d968589d8 1108 */
Kojto 90:cb3d968589d8 1109
Kojto 90:cb3d968589d8 1110 /* DATL Bit Fields */
Kojto 90:cb3d968589d8 1111 #define DAC_DATL_DATA0_MASK 0xFFu
Kojto 90:cb3d968589d8 1112 #define DAC_DATL_DATA0_SHIFT 0
Kojto 90:cb3d968589d8 1113 #define DAC_DATL_DATA0(x) (((uint8_t)(((uint8_t)(x))<<DAC_DATL_DATA0_SHIFT))&DAC_DATL_DATA0_MASK)
Kojto 90:cb3d968589d8 1114 /* DATH Bit Fields */
Kojto 90:cb3d968589d8 1115 #define DAC_DATH_DATA1_MASK 0xFu
Kojto 90:cb3d968589d8 1116 #define DAC_DATH_DATA1_SHIFT 0
Kojto 90:cb3d968589d8 1117 #define DAC_DATH_DATA1(x) (((uint8_t)(((uint8_t)(x))<<DAC_DATH_DATA1_SHIFT))&DAC_DATH_DATA1_MASK)
Kojto 90:cb3d968589d8 1118 /* SR Bit Fields */
Kojto 90:cb3d968589d8 1119 #define DAC_SR_DACBFRPBF_MASK 0x1u
Kojto 90:cb3d968589d8 1120 #define DAC_SR_DACBFRPBF_SHIFT 0
Kojto 90:cb3d968589d8 1121 #define DAC_SR_DACBFRPTF_MASK 0x2u
Kojto 90:cb3d968589d8 1122 #define DAC_SR_DACBFRPTF_SHIFT 1
Kojto 90:cb3d968589d8 1123 #define DAC_SR_DACBFWMF_MASK 0x4u
Kojto 90:cb3d968589d8 1124 #define DAC_SR_DACBFWMF_SHIFT 2
Kojto 90:cb3d968589d8 1125 /* C0 Bit Fields */
Kojto 90:cb3d968589d8 1126 #define DAC_C0_DACBBIEN_MASK 0x1u
Kojto 90:cb3d968589d8 1127 #define DAC_C0_DACBBIEN_SHIFT 0
Kojto 90:cb3d968589d8 1128 #define DAC_C0_DACBTIEN_MASK 0x2u
Kojto 90:cb3d968589d8 1129 #define DAC_C0_DACBTIEN_SHIFT 1
Kojto 90:cb3d968589d8 1130 #define DAC_C0_DACBWIEN_MASK 0x4u
Kojto 90:cb3d968589d8 1131 #define DAC_C0_DACBWIEN_SHIFT 2
Kojto 90:cb3d968589d8 1132 #define DAC_C0_LPEN_MASK 0x8u
Kojto 90:cb3d968589d8 1133 #define DAC_C0_LPEN_SHIFT 3
Kojto 90:cb3d968589d8 1134 #define DAC_C0_DACSWTRG_MASK 0x10u
Kojto 90:cb3d968589d8 1135 #define DAC_C0_DACSWTRG_SHIFT 4
Kojto 90:cb3d968589d8 1136 #define DAC_C0_DACTRGSEL_MASK 0x20u
Kojto 90:cb3d968589d8 1137 #define DAC_C0_DACTRGSEL_SHIFT 5
Kojto 90:cb3d968589d8 1138 #define DAC_C0_DACRFS_MASK 0x40u
Kojto 90:cb3d968589d8 1139 #define DAC_C0_DACRFS_SHIFT 6
Kojto 90:cb3d968589d8 1140 #define DAC_C0_DACEN_MASK 0x80u
Kojto 90:cb3d968589d8 1141 #define DAC_C0_DACEN_SHIFT 7
Kojto 90:cb3d968589d8 1142 /* C1 Bit Fields */
Kojto 90:cb3d968589d8 1143 #define DAC_C1_DACBFEN_MASK 0x1u
Kojto 90:cb3d968589d8 1144 #define DAC_C1_DACBFEN_SHIFT 0
Kojto 90:cb3d968589d8 1145 #define DAC_C1_DACBFMD_MASK 0x6u
Kojto 90:cb3d968589d8 1146 #define DAC_C1_DACBFMD_SHIFT 1
Kojto 90:cb3d968589d8 1147 #define DAC_C1_DACBFMD(x) (((uint8_t)(((uint8_t)(x))<<DAC_C1_DACBFMD_SHIFT))&DAC_C1_DACBFMD_MASK)
Kojto 90:cb3d968589d8 1148 #define DAC_C1_DACBFWM_MASK 0x18u
Kojto 90:cb3d968589d8 1149 #define DAC_C1_DACBFWM_SHIFT 3
Kojto 90:cb3d968589d8 1150 #define DAC_C1_DACBFWM(x) (((uint8_t)(((uint8_t)(x))<<DAC_C1_DACBFWM_SHIFT))&DAC_C1_DACBFWM_MASK)
Kojto 90:cb3d968589d8 1151 #define DAC_C1_DMAEN_MASK 0x80u
Kojto 90:cb3d968589d8 1152 #define DAC_C1_DMAEN_SHIFT 7
Kojto 90:cb3d968589d8 1153 /* C2 Bit Fields */
Kojto 90:cb3d968589d8 1154 #define DAC_C2_DACBFUP_MASK 0xFu
Kojto 90:cb3d968589d8 1155 #define DAC_C2_DACBFUP_SHIFT 0
Kojto 90:cb3d968589d8 1156 #define DAC_C2_DACBFUP(x) (((uint8_t)(((uint8_t)(x))<<DAC_C2_DACBFUP_SHIFT))&DAC_C2_DACBFUP_MASK)
Kojto 90:cb3d968589d8 1157 #define DAC_C2_DACBFRP_MASK 0xF0u
Kojto 90:cb3d968589d8 1158 #define DAC_C2_DACBFRP_SHIFT 4
Kojto 90:cb3d968589d8 1159 #define DAC_C2_DACBFRP(x) (((uint8_t)(((uint8_t)(x))<<DAC_C2_DACBFRP_SHIFT))&DAC_C2_DACBFRP_MASK)
Kojto 90:cb3d968589d8 1160
Kojto 90:cb3d968589d8 1161 /*!
Kojto 90:cb3d968589d8 1162 * @}
Kojto 90:cb3d968589d8 1163 */ /* end of group DAC_Register_Masks */
Kojto 90:cb3d968589d8 1164
Kojto 90:cb3d968589d8 1165
Kojto 90:cb3d968589d8 1166 /* DAC - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 1167 /** Peripheral DAC0 base address */
Kojto 90:cb3d968589d8 1168 #define DAC0_BASE (0x4003F000u)
Kojto 90:cb3d968589d8 1169 /** Peripheral DAC0 base pointer */
Kojto 90:cb3d968589d8 1170 #define DAC0 ((DAC_Type *)DAC0_BASE)
Kojto 90:cb3d968589d8 1171 #define DAC0_BASE_PTR (DAC0)
Kojto 90:cb3d968589d8 1172 /** Peripheral DAC1 base address */
Kojto 90:cb3d968589d8 1173 #define DAC1_BASE (0x40028000u)
Kojto 90:cb3d968589d8 1174 /** Peripheral DAC1 base pointer */
Kojto 90:cb3d968589d8 1175 #define DAC1 ((DAC_Type *)DAC1_BASE)
Kojto 90:cb3d968589d8 1176 #define DAC1_BASE_PTR (DAC1)
Kojto 90:cb3d968589d8 1177 /** Array initializer of DAC peripheral base addresses */
Kojto 90:cb3d968589d8 1178 #define DAC_BASE_ADDRS { DAC0_BASE, DAC1_BASE }
Kojto 90:cb3d968589d8 1179 /** Array initializer of DAC peripheral base pointers */
Kojto 90:cb3d968589d8 1180 #define DAC_BASE_PTRS { DAC0, DAC1 }
Kojto 90:cb3d968589d8 1181 /** Interrupt vectors for the DAC peripheral type */
Kojto 90:cb3d968589d8 1182 #define DAC_IRQS { DAC0_IRQn, DAC1_IRQn }
Kojto 90:cb3d968589d8 1183
Kojto 90:cb3d968589d8 1184 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 1185 -- DAC - Register accessor macros
Kojto 90:cb3d968589d8 1186 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 1187
Kojto 90:cb3d968589d8 1188 /*!
Kojto 90:cb3d968589d8 1189 * @addtogroup DAC_Register_Accessor_Macros DAC - Register accessor macros
Kojto 90:cb3d968589d8 1190 * @{
Kojto 90:cb3d968589d8 1191 */
Kojto 90:cb3d968589d8 1192
Kojto 90:cb3d968589d8 1193
Kojto 90:cb3d968589d8 1194 /* DAC - Register instance definitions */
Kojto 90:cb3d968589d8 1195 /* DAC0 */
Kojto 90:cb3d968589d8 1196 #define DAC0_DAT0L DAC_DATL_REG(DAC0,0)
Kojto 90:cb3d968589d8 1197 #define DAC0_DAT0H DAC_DATH_REG(DAC0,0)
Kojto 90:cb3d968589d8 1198 #define DAC0_DAT1L DAC_DATL_REG(DAC0,1)
Kojto 90:cb3d968589d8 1199 #define DAC0_DAT1H DAC_DATH_REG(DAC0,1)
Kojto 90:cb3d968589d8 1200 #define DAC0_DAT2L DAC_DATL_REG(DAC0,2)
Kojto 90:cb3d968589d8 1201 #define DAC0_DAT2H DAC_DATH_REG(DAC0,2)
Kojto 90:cb3d968589d8 1202 #define DAC0_DAT3L DAC_DATL_REG(DAC0,3)
Kojto 90:cb3d968589d8 1203 #define DAC0_DAT3H DAC_DATH_REG(DAC0,3)
Kojto 90:cb3d968589d8 1204 #define DAC0_DAT4L DAC_DATL_REG(DAC0,4)
Kojto 90:cb3d968589d8 1205 #define DAC0_DAT4H DAC_DATH_REG(DAC0,4)
Kojto 90:cb3d968589d8 1206 #define DAC0_DAT5L DAC_DATL_REG(DAC0,5)
Kojto 90:cb3d968589d8 1207 #define DAC0_DAT5H DAC_DATH_REG(DAC0,5)
Kojto 90:cb3d968589d8 1208 #define DAC0_DAT6L DAC_DATL_REG(DAC0,6)
Kojto 90:cb3d968589d8 1209 #define DAC0_DAT6H DAC_DATH_REG(DAC0,6)
Kojto 90:cb3d968589d8 1210 #define DAC0_DAT7L DAC_DATL_REG(DAC0,7)
Kojto 90:cb3d968589d8 1211 #define DAC0_DAT7H DAC_DATH_REG(DAC0,7)
Kojto 90:cb3d968589d8 1212 #define DAC0_DAT8L DAC_DATL_REG(DAC0,8)
Kojto 90:cb3d968589d8 1213 #define DAC0_DAT8H DAC_DATH_REG(DAC0,8)
Kojto 90:cb3d968589d8 1214 #define DAC0_DAT9L DAC_DATL_REG(DAC0,9)
Kojto 90:cb3d968589d8 1215 #define DAC0_DAT9H DAC_DATH_REG(DAC0,9)
Kojto 90:cb3d968589d8 1216 #define DAC0_DAT10L DAC_DATL_REG(DAC0,10)
Kojto 90:cb3d968589d8 1217 #define DAC0_DAT10H DAC_DATH_REG(DAC0,10)
Kojto 90:cb3d968589d8 1218 #define DAC0_DAT11L DAC_DATL_REG(DAC0,11)
Kojto 90:cb3d968589d8 1219 #define DAC0_DAT11H DAC_DATH_REG(DAC0,11)
Kojto 90:cb3d968589d8 1220 #define DAC0_DAT12L DAC_DATL_REG(DAC0,12)
Kojto 90:cb3d968589d8 1221 #define DAC0_DAT12H DAC_DATH_REG(DAC0,12)
Kojto 90:cb3d968589d8 1222 #define DAC0_DAT13L DAC_DATL_REG(DAC0,13)
Kojto 90:cb3d968589d8 1223 #define DAC0_DAT13H DAC_DATH_REG(DAC0,13)
Kojto 90:cb3d968589d8 1224 #define DAC0_DAT14L DAC_DATL_REG(DAC0,14)
Kojto 90:cb3d968589d8 1225 #define DAC0_DAT14H DAC_DATH_REG(DAC0,14)
Kojto 90:cb3d968589d8 1226 #define DAC0_DAT15L DAC_DATL_REG(DAC0,15)
Kojto 90:cb3d968589d8 1227 #define DAC0_DAT15H DAC_DATH_REG(DAC0,15)
Kojto 90:cb3d968589d8 1228 #define DAC0_SR DAC_SR_REG(DAC0)
Kojto 90:cb3d968589d8 1229 #define DAC0_C0 DAC_C0_REG(DAC0)
Kojto 90:cb3d968589d8 1230 #define DAC0_C1 DAC_C1_REG(DAC0)
Kojto 90:cb3d968589d8 1231 #define DAC0_C2 DAC_C2_REG(DAC0)
Kojto 90:cb3d968589d8 1232 /* DAC1 */
Kojto 90:cb3d968589d8 1233 #define DAC1_DAT0L DAC_DATL_REG(DAC1,0)
Kojto 90:cb3d968589d8 1234 #define DAC1_DAT0H DAC_DATH_REG(DAC1,0)
Kojto 90:cb3d968589d8 1235 #define DAC1_DAT1L DAC_DATL_REG(DAC1,1)
Kojto 90:cb3d968589d8 1236 #define DAC1_DAT1H DAC_DATH_REG(DAC1,1)
Kojto 90:cb3d968589d8 1237 #define DAC1_DAT2L DAC_DATL_REG(DAC1,2)
Kojto 90:cb3d968589d8 1238 #define DAC1_DAT2H DAC_DATH_REG(DAC1,2)
Kojto 90:cb3d968589d8 1239 #define DAC1_DAT3L DAC_DATL_REG(DAC1,3)
Kojto 90:cb3d968589d8 1240 #define DAC1_DAT3H DAC_DATH_REG(DAC1,3)
Kojto 90:cb3d968589d8 1241 #define DAC1_DAT4L DAC_DATL_REG(DAC1,4)
Kojto 90:cb3d968589d8 1242 #define DAC1_DAT4H DAC_DATH_REG(DAC1,4)
Kojto 90:cb3d968589d8 1243 #define DAC1_DAT5L DAC_DATL_REG(DAC1,5)
Kojto 90:cb3d968589d8 1244 #define DAC1_DAT5H DAC_DATH_REG(DAC1,5)
Kojto 90:cb3d968589d8 1245 #define DAC1_DAT6L DAC_DATL_REG(DAC1,6)
Kojto 90:cb3d968589d8 1246 #define DAC1_DAT6H DAC_DATH_REG(DAC1,6)
Kojto 90:cb3d968589d8 1247 #define DAC1_DAT7L DAC_DATL_REG(DAC1,7)
Kojto 90:cb3d968589d8 1248 #define DAC1_DAT7H DAC_DATH_REG(DAC1,7)
Kojto 90:cb3d968589d8 1249 #define DAC1_DAT8L DAC_DATL_REG(DAC1,8)
Kojto 90:cb3d968589d8 1250 #define DAC1_DAT8H DAC_DATH_REG(DAC1,8)
Kojto 90:cb3d968589d8 1251 #define DAC1_DAT9L DAC_DATL_REG(DAC1,9)
Kojto 90:cb3d968589d8 1252 #define DAC1_DAT9H DAC_DATH_REG(DAC1,9)
Kojto 90:cb3d968589d8 1253 #define DAC1_DAT10L DAC_DATL_REG(DAC1,10)
Kojto 90:cb3d968589d8 1254 #define DAC1_DAT10H DAC_DATH_REG(DAC1,10)
Kojto 90:cb3d968589d8 1255 #define DAC1_DAT11L DAC_DATL_REG(DAC1,11)
Kojto 90:cb3d968589d8 1256 #define DAC1_DAT11H DAC_DATH_REG(DAC1,11)
Kojto 90:cb3d968589d8 1257 #define DAC1_DAT12L DAC_DATL_REG(DAC1,12)
Kojto 90:cb3d968589d8 1258 #define DAC1_DAT12H DAC_DATH_REG(DAC1,12)
Kojto 90:cb3d968589d8 1259 #define DAC1_DAT13L DAC_DATL_REG(DAC1,13)
Kojto 90:cb3d968589d8 1260 #define DAC1_DAT13H DAC_DATH_REG(DAC1,13)
Kojto 90:cb3d968589d8 1261 #define DAC1_DAT14L DAC_DATL_REG(DAC1,14)
Kojto 90:cb3d968589d8 1262 #define DAC1_DAT14H DAC_DATH_REG(DAC1,14)
Kojto 90:cb3d968589d8 1263 #define DAC1_DAT15L DAC_DATL_REG(DAC1,15)
Kojto 90:cb3d968589d8 1264 #define DAC1_DAT15H DAC_DATH_REG(DAC1,15)
Kojto 90:cb3d968589d8 1265 #define DAC1_SR DAC_SR_REG(DAC1)
Kojto 90:cb3d968589d8 1266 #define DAC1_C0 DAC_C0_REG(DAC1)
Kojto 90:cb3d968589d8 1267 #define DAC1_C1 DAC_C1_REG(DAC1)
Kojto 90:cb3d968589d8 1268 #define DAC1_C2 DAC_C2_REG(DAC1)
Kojto 90:cb3d968589d8 1269
Kojto 90:cb3d968589d8 1270 /* DAC - Register array accessors */
Kojto 90:cb3d968589d8 1271 #define DAC0_DATL(index) DAC_DATL_REG(DAC0,index)
Kojto 90:cb3d968589d8 1272 #define DAC1_DATL(index) DAC_DATL_REG(DAC1,index)
Kojto 90:cb3d968589d8 1273 #define DAC0_DATH(index) DAC_DATH_REG(DAC0,index)
Kojto 90:cb3d968589d8 1274 #define DAC1_DATH(index) DAC_DATH_REG(DAC1,index)
Kojto 90:cb3d968589d8 1275
Kojto 90:cb3d968589d8 1276 /*!
Kojto 90:cb3d968589d8 1277 * @}
Kojto 90:cb3d968589d8 1278 */ /* end of group DAC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 1279
Kojto 90:cb3d968589d8 1280
Kojto 90:cb3d968589d8 1281 /*!
Kojto 90:cb3d968589d8 1282 * @}
Kojto 90:cb3d968589d8 1283 */ /* end of group DAC_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 1284
Kojto 90:cb3d968589d8 1285
Kojto 90:cb3d968589d8 1286 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 1287 -- DMA Peripheral Access Layer
Kojto 90:cb3d968589d8 1288 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 1289
Kojto 90:cb3d968589d8 1290 /*!
Kojto 90:cb3d968589d8 1291 * @addtogroup DMA_Peripheral_Access_Layer DMA Peripheral Access Layer
Kojto 90:cb3d968589d8 1292 * @{
Kojto 90:cb3d968589d8 1293 */
Kojto 90:cb3d968589d8 1294
Kojto 90:cb3d968589d8 1295 /** DMA - Register Layout Typedef */
Kojto 90:cb3d968589d8 1296 typedef struct {
Kojto 90:cb3d968589d8 1297 __IO uint32_t CR; /**< Control Register, offset: 0x0 */
Kojto 90:cb3d968589d8 1298 __I uint32_t ES; /**< Error Status Register, offset: 0x4 */
Kojto 90:cb3d968589d8 1299 uint8_t RESERVED_0[4];
Kojto 90:cb3d968589d8 1300 __IO uint32_t ERQ; /**< Enable Request Register, offset: 0xC */
Kojto 90:cb3d968589d8 1301 uint8_t RESERVED_1[4];
Kojto 90:cb3d968589d8 1302 __IO uint32_t EEI; /**< Enable Error Interrupt Register, offset: 0x14 */
Kojto 90:cb3d968589d8 1303 __O uint8_t CEEI; /**< Clear Enable Error Interrupt Register, offset: 0x18 */
Kojto 90:cb3d968589d8 1304 __O uint8_t SEEI; /**< Set Enable Error Interrupt Register, offset: 0x19 */
Kojto 90:cb3d968589d8 1305 __O uint8_t CERQ; /**< Clear Enable Request Register, offset: 0x1A */
Kojto 90:cb3d968589d8 1306 __O uint8_t SERQ; /**< Set Enable Request Register, offset: 0x1B */
Kojto 90:cb3d968589d8 1307 __O uint8_t CDNE; /**< Clear DONE Status Bit Register, offset: 0x1C */
Kojto 90:cb3d968589d8 1308 __O uint8_t SSRT; /**< Set START Bit Register, offset: 0x1D */
Kojto 90:cb3d968589d8 1309 __O uint8_t CERR; /**< Clear Error Register, offset: 0x1E */
Kojto 90:cb3d968589d8 1310 __O uint8_t CINT; /**< Clear Interrupt Request Register, offset: 0x1F */
Kojto 90:cb3d968589d8 1311 uint8_t RESERVED_2[4];
Kojto 90:cb3d968589d8 1312 __IO uint32_t INT; /**< Interrupt Request Register, offset: 0x24 */
Kojto 90:cb3d968589d8 1313 uint8_t RESERVED_3[4];
Kojto 90:cb3d968589d8 1314 __IO uint32_t ERR; /**< Error Register, offset: 0x2C */
Kojto 90:cb3d968589d8 1315 uint8_t RESERVED_4[4];
Kojto 90:cb3d968589d8 1316 __I uint32_t HRS; /**< Hardware Request Status Register, offset: 0x34 */
Kojto 90:cb3d968589d8 1317 uint8_t RESERVED_5[12];
Kojto 90:cb3d968589d8 1318 __IO uint32_t EARS; /**< Enable Asynchronous Request in Stop Register, offset: 0x44 */
Kojto 90:cb3d968589d8 1319 uint8_t RESERVED_6[184];
Kojto 90:cb3d968589d8 1320 __IO uint8_t DCHPRI3; /**< Channel n Priority Register, offset: 0x100 */
Kojto 90:cb3d968589d8 1321 __IO uint8_t DCHPRI2; /**< Channel n Priority Register, offset: 0x101 */
Kojto 90:cb3d968589d8 1322 __IO uint8_t DCHPRI1; /**< Channel n Priority Register, offset: 0x102 */
Kojto 90:cb3d968589d8 1323 __IO uint8_t DCHPRI0; /**< Channel n Priority Register, offset: 0x103 */
Kojto 90:cb3d968589d8 1324 __IO uint8_t DCHPRI7; /**< Channel n Priority Register, offset: 0x104 */
Kojto 90:cb3d968589d8 1325 __IO uint8_t DCHPRI6; /**< Channel n Priority Register, offset: 0x105 */
Kojto 90:cb3d968589d8 1326 __IO uint8_t DCHPRI5; /**< Channel n Priority Register, offset: 0x106 */
Kojto 90:cb3d968589d8 1327 __IO uint8_t DCHPRI4; /**< Channel n Priority Register, offset: 0x107 */
Kojto 90:cb3d968589d8 1328 __IO uint8_t DCHPRI11; /**< Channel n Priority Register, offset: 0x108 */
Kojto 90:cb3d968589d8 1329 __IO uint8_t DCHPRI10; /**< Channel n Priority Register, offset: 0x109 */
Kojto 90:cb3d968589d8 1330 __IO uint8_t DCHPRI9; /**< Channel n Priority Register, offset: 0x10A */
Kojto 90:cb3d968589d8 1331 __IO uint8_t DCHPRI8; /**< Channel n Priority Register, offset: 0x10B */
Kojto 90:cb3d968589d8 1332 __IO uint8_t DCHPRI15; /**< Channel n Priority Register, offset: 0x10C */
Kojto 90:cb3d968589d8 1333 __IO uint8_t DCHPRI14; /**< Channel n Priority Register, offset: 0x10D */
Kojto 90:cb3d968589d8 1334 __IO uint8_t DCHPRI13; /**< Channel n Priority Register, offset: 0x10E */
Kojto 90:cb3d968589d8 1335 __IO uint8_t DCHPRI12; /**< Channel n Priority Register, offset: 0x10F */
Kojto 90:cb3d968589d8 1336 uint8_t RESERVED_7[3824];
Kojto 90:cb3d968589d8 1337 struct { /* offset: 0x1000, array step: 0x20 */
Kojto 90:cb3d968589d8 1338 __IO uint32_t SADDR; /**< TCD Source Address, array offset: 0x1000, array step: 0x20 */
Kojto 90:cb3d968589d8 1339 __IO uint16_t SOFF; /**< TCD Signed Source Address Offset, array offset: 0x1004, array step: 0x20 */
Kojto 90:cb3d968589d8 1340 __IO uint16_t ATTR; /**< TCD Transfer Attributes, array offset: 0x1006, array step: 0x20 */
Kojto 90:cb3d968589d8 1341 union { /* offset: 0x1008, array step: 0x20 */
Kojto 90:cb3d968589d8 1342 __IO uint32_t NBYTES_MLNO; /**< TCD Minor Byte Count (Minor Loop Disabled), array offset: 0x1008, array step: 0x20 */
Kojto 90:cb3d968589d8 1343 __IO uint32_t NBYTES_MLOFFNO; /**< TCD Signed Minor Loop Offset (Minor Loop Enabled and Offset Disabled), array offset: 0x1008, array step: 0x20 */
Kojto 90:cb3d968589d8 1344 __IO uint32_t NBYTES_MLOFFYES; /**< TCD Signed Minor Loop Offset (Minor Loop and Offset Enabled), array offset: 0x1008, array step: 0x20 */
Kojto 90:cb3d968589d8 1345 };
Kojto 90:cb3d968589d8 1346 __IO uint32_t SLAST; /**< TCD Last Source Address Adjustment, array offset: 0x100C, array step: 0x20 */
Kojto 90:cb3d968589d8 1347 __IO uint32_t DADDR; /**< TCD Destination Address, array offset: 0x1010, array step: 0x20 */
Kojto 90:cb3d968589d8 1348 __IO uint16_t DOFF; /**< TCD Signed Destination Address Offset, array offset: 0x1014, array step: 0x20 */
Kojto 90:cb3d968589d8 1349 union { /* offset: 0x1016, array step: 0x20 */
Kojto 90:cb3d968589d8 1350 __IO uint16_t CITER_ELINKNO; /**< TCD Current Minor Loop Link, Major Loop Count (Channel Linking Disabled), array offset: 0x1016, array step: 0x20 */
Kojto 90:cb3d968589d8 1351 __IO uint16_t CITER_ELINKYES; /**< TCD Current Minor Loop Link, Major Loop Count (Channel Linking Enabled), array offset: 0x1016, array step: 0x20 */
Kojto 90:cb3d968589d8 1352 };
Kojto 90:cb3d968589d8 1353 __IO uint32_t DLAST_SGA; /**< TCD Last Destination Address Adjustment/Scatter Gather Address, array offset: 0x1018, array step: 0x20 */
Kojto 90:cb3d968589d8 1354 __IO uint16_t CSR; /**< TCD Control and Status, array offset: 0x101C, array step: 0x20 */
Kojto 90:cb3d968589d8 1355 union { /* offset: 0x101E, array step: 0x20 */
Kojto 90:cb3d968589d8 1356 __IO uint16_t BITER_ELINKNO; /**< TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Disabled), array offset: 0x101E, array step: 0x20 */
Kojto 90:cb3d968589d8 1357 __IO uint16_t BITER_ELINKYES; /**< TCD Beginning Minor Loop Link, Major Loop Count (Channel Linking Enabled), array offset: 0x101E, array step: 0x20 */
Kojto 90:cb3d968589d8 1358 };
Kojto 90:cb3d968589d8 1359 } TCD[16];
Kojto 90:cb3d968589d8 1360 } DMA_Type, *DMA_MemMapPtr;
Kojto 90:cb3d968589d8 1361
Kojto 90:cb3d968589d8 1362 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 1363 -- DMA - Register accessor macros
Kojto 90:cb3d968589d8 1364 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 1365
Kojto 90:cb3d968589d8 1366 /*!
Kojto 90:cb3d968589d8 1367 * @addtogroup DMA_Register_Accessor_Macros DMA - Register accessor macros
Kojto 90:cb3d968589d8 1368 * @{
Kojto 90:cb3d968589d8 1369 */
Kojto 90:cb3d968589d8 1370
Kojto 90:cb3d968589d8 1371
Kojto 90:cb3d968589d8 1372 /* DMA - Register accessors */
Kojto 90:cb3d968589d8 1373 #define DMA_CR_REG(base) ((base)->CR)
Kojto 90:cb3d968589d8 1374 #define DMA_ES_REG(base) ((base)->ES)
Kojto 90:cb3d968589d8 1375 #define DMA_ERQ_REG(base) ((base)->ERQ)
Kojto 90:cb3d968589d8 1376 #define DMA_EEI_REG(base) ((base)->EEI)
Kojto 90:cb3d968589d8 1377 #define DMA_CEEI_REG(base) ((base)->CEEI)
Kojto 90:cb3d968589d8 1378 #define DMA_SEEI_REG(base) ((base)->SEEI)
Kojto 90:cb3d968589d8 1379 #define DMA_CERQ_REG(base) ((base)->CERQ)
Kojto 90:cb3d968589d8 1380 #define DMA_SERQ_REG(base) ((base)->SERQ)
Kojto 90:cb3d968589d8 1381 #define DMA_CDNE_REG(base) ((base)->CDNE)
Kojto 90:cb3d968589d8 1382 #define DMA_SSRT_REG(base) ((base)->SSRT)
Kojto 90:cb3d968589d8 1383 #define DMA_CERR_REG(base) ((base)->CERR)
Kojto 90:cb3d968589d8 1384 #define DMA_CINT_REG(base) ((base)->CINT)
Kojto 90:cb3d968589d8 1385 #define DMA_INT_REG(base) ((base)->INT)
Kojto 90:cb3d968589d8 1386 #define DMA_ERR_REG(base) ((base)->ERR)
Kojto 90:cb3d968589d8 1387 #define DMA_HRS_REG(base) ((base)->HRS)
Kojto 90:cb3d968589d8 1388 #define DMA_EARS_REG(base) ((base)->EARS)
Kojto 90:cb3d968589d8 1389 #define DMA_DCHPRI3_REG(base) ((base)->DCHPRI3)
Kojto 90:cb3d968589d8 1390 #define DMA_DCHPRI2_REG(base) ((base)->DCHPRI2)
Kojto 90:cb3d968589d8 1391 #define DMA_DCHPRI1_REG(base) ((base)->DCHPRI1)
Kojto 90:cb3d968589d8 1392 #define DMA_DCHPRI0_REG(base) ((base)->DCHPRI0)
Kojto 90:cb3d968589d8 1393 #define DMA_DCHPRI7_REG(base) ((base)->DCHPRI7)
Kojto 90:cb3d968589d8 1394 #define DMA_DCHPRI6_REG(base) ((base)->DCHPRI6)
Kojto 90:cb3d968589d8 1395 #define DMA_DCHPRI5_REG(base) ((base)->DCHPRI5)
Kojto 90:cb3d968589d8 1396 #define DMA_DCHPRI4_REG(base) ((base)->DCHPRI4)
Kojto 90:cb3d968589d8 1397 #define DMA_DCHPRI11_REG(base) ((base)->DCHPRI11)
Kojto 90:cb3d968589d8 1398 #define DMA_DCHPRI10_REG(base) ((base)->DCHPRI10)
Kojto 90:cb3d968589d8 1399 #define DMA_DCHPRI9_REG(base) ((base)->DCHPRI9)
Kojto 90:cb3d968589d8 1400 #define DMA_DCHPRI8_REG(base) ((base)->DCHPRI8)
Kojto 90:cb3d968589d8 1401 #define DMA_DCHPRI15_REG(base) ((base)->DCHPRI15)
Kojto 90:cb3d968589d8 1402 #define DMA_DCHPRI14_REG(base) ((base)->DCHPRI14)
Kojto 90:cb3d968589d8 1403 #define DMA_DCHPRI13_REG(base) ((base)->DCHPRI13)
Kojto 90:cb3d968589d8 1404 #define DMA_DCHPRI12_REG(base) ((base)->DCHPRI12)
Kojto 90:cb3d968589d8 1405 #define DMA_SADDR_REG(base,index) ((base)->TCD[index].SADDR)
Kojto 90:cb3d968589d8 1406 #define DMA_SOFF_REG(base,index) ((base)->TCD[index].SOFF)
Kojto 90:cb3d968589d8 1407 #define DMA_ATTR_REG(base,index) ((base)->TCD[index].ATTR)
Kojto 90:cb3d968589d8 1408 #define DMA_NBYTES_MLNO_REG(base,index) ((base)->TCD[index].NBYTES_MLNO)
Kojto 90:cb3d968589d8 1409 #define DMA_NBYTES_MLOFFNO_REG(base,index) ((base)->TCD[index].NBYTES_MLOFFNO)
Kojto 90:cb3d968589d8 1410 #define DMA_NBYTES_MLOFFYES_REG(base,index) ((base)->TCD[index].NBYTES_MLOFFYES)
Kojto 90:cb3d968589d8 1411 #define DMA_SLAST_REG(base,index) ((base)->TCD[index].SLAST)
Kojto 90:cb3d968589d8 1412 #define DMA_DADDR_REG(base,index) ((base)->TCD[index].DADDR)
Kojto 90:cb3d968589d8 1413 #define DMA_DOFF_REG(base,index) ((base)->TCD[index].DOFF)
Kojto 90:cb3d968589d8 1414 #define DMA_CITER_ELINKNO_REG(base,index) ((base)->TCD[index].CITER_ELINKNO)
Kojto 90:cb3d968589d8 1415 #define DMA_CITER_ELINKYES_REG(base,index) ((base)->TCD[index].CITER_ELINKYES)
Kojto 90:cb3d968589d8 1416 #define DMA_DLAST_SGA_REG(base,index) ((base)->TCD[index].DLAST_SGA)
Kojto 90:cb3d968589d8 1417 #define DMA_CSR_REG(base,index) ((base)->TCD[index].CSR)
Kojto 90:cb3d968589d8 1418 #define DMA_BITER_ELINKNO_REG(base,index) ((base)->TCD[index].BITER_ELINKNO)
Kojto 90:cb3d968589d8 1419 #define DMA_BITER_ELINKYES_REG(base,index) ((base)->TCD[index].BITER_ELINKYES)
Kojto 90:cb3d968589d8 1420
Kojto 90:cb3d968589d8 1421 /*!
Kojto 90:cb3d968589d8 1422 * @}
Kojto 90:cb3d968589d8 1423 */ /* end of group DMA_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 1424
Kojto 90:cb3d968589d8 1425
Kojto 90:cb3d968589d8 1426 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 1427 -- DMA Register Masks
Kojto 90:cb3d968589d8 1428 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 1429
Kojto 90:cb3d968589d8 1430 /*!
Kojto 90:cb3d968589d8 1431 * @addtogroup DMA_Register_Masks DMA Register Masks
Kojto 90:cb3d968589d8 1432 * @{
Kojto 90:cb3d968589d8 1433 */
Kojto 90:cb3d968589d8 1434
Kojto 90:cb3d968589d8 1435 /* CR Bit Fields */
Kojto 90:cb3d968589d8 1436 #define DMA_CR_EDBG_MASK 0x2u
Kojto 90:cb3d968589d8 1437 #define DMA_CR_EDBG_SHIFT 1
Kojto 90:cb3d968589d8 1438 #define DMA_CR_ERCA_MASK 0x4u
Kojto 90:cb3d968589d8 1439 #define DMA_CR_ERCA_SHIFT 2
Kojto 90:cb3d968589d8 1440 #define DMA_CR_HOE_MASK 0x10u
Kojto 90:cb3d968589d8 1441 #define DMA_CR_HOE_SHIFT 4
Kojto 90:cb3d968589d8 1442 #define DMA_CR_HALT_MASK 0x20u
Kojto 90:cb3d968589d8 1443 #define DMA_CR_HALT_SHIFT 5
Kojto 90:cb3d968589d8 1444 #define DMA_CR_CLM_MASK 0x40u
Kojto 90:cb3d968589d8 1445 #define DMA_CR_CLM_SHIFT 6
Kojto 90:cb3d968589d8 1446 #define DMA_CR_EMLM_MASK 0x80u
Kojto 90:cb3d968589d8 1447 #define DMA_CR_EMLM_SHIFT 7
Kojto 90:cb3d968589d8 1448 #define DMA_CR_ECX_MASK 0x10000u
Kojto 90:cb3d968589d8 1449 #define DMA_CR_ECX_SHIFT 16
Kojto 90:cb3d968589d8 1450 #define DMA_CR_CX_MASK 0x20000u
Kojto 90:cb3d968589d8 1451 #define DMA_CR_CX_SHIFT 17
Kojto 90:cb3d968589d8 1452 /* ES Bit Fields */
Kojto 90:cb3d968589d8 1453 #define DMA_ES_DBE_MASK 0x1u
Kojto 90:cb3d968589d8 1454 #define DMA_ES_DBE_SHIFT 0
Kojto 90:cb3d968589d8 1455 #define DMA_ES_SBE_MASK 0x2u
Kojto 90:cb3d968589d8 1456 #define DMA_ES_SBE_SHIFT 1
Kojto 90:cb3d968589d8 1457 #define DMA_ES_SGE_MASK 0x4u
Kojto 90:cb3d968589d8 1458 #define DMA_ES_SGE_SHIFT 2
Kojto 90:cb3d968589d8 1459 #define DMA_ES_NCE_MASK 0x8u
Kojto 90:cb3d968589d8 1460 #define DMA_ES_NCE_SHIFT 3
Kojto 90:cb3d968589d8 1461 #define DMA_ES_DOE_MASK 0x10u
Kojto 90:cb3d968589d8 1462 #define DMA_ES_DOE_SHIFT 4
Kojto 90:cb3d968589d8 1463 #define DMA_ES_DAE_MASK 0x20u
Kojto 90:cb3d968589d8 1464 #define DMA_ES_DAE_SHIFT 5
Kojto 90:cb3d968589d8 1465 #define DMA_ES_SOE_MASK 0x40u
Kojto 90:cb3d968589d8 1466 #define DMA_ES_SOE_SHIFT 6
Kojto 90:cb3d968589d8 1467 #define DMA_ES_SAE_MASK 0x80u
Kojto 90:cb3d968589d8 1468 #define DMA_ES_SAE_SHIFT 7
Kojto 90:cb3d968589d8 1469 #define DMA_ES_ERRCHN_MASK 0xF00u
Kojto 90:cb3d968589d8 1470 #define DMA_ES_ERRCHN_SHIFT 8
Kojto 90:cb3d968589d8 1471 #define DMA_ES_ERRCHN(x) (((uint32_t)(((uint32_t)(x))<<DMA_ES_ERRCHN_SHIFT))&DMA_ES_ERRCHN_MASK)
Kojto 90:cb3d968589d8 1472 #define DMA_ES_CPE_MASK 0x4000u
Kojto 90:cb3d968589d8 1473 #define DMA_ES_CPE_SHIFT 14
Kojto 90:cb3d968589d8 1474 #define DMA_ES_ECX_MASK 0x10000u
Kojto 90:cb3d968589d8 1475 #define DMA_ES_ECX_SHIFT 16
Kojto 90:cb3d968589d8 1476 #define DMA_ES_VLD_MASK 0x80000000u
Kojto 90:cb3d968589d8 1477 #define DMA_ES_VLD_SHIFT 31
Kojto 90:cb3d968589d8 1478 /* ERQ Bit Fields */
Kojto 90:cb3d968589d8 1479 #define DMA_ERQ_ERQ0_MASK 0x1u
Kojto 90:cb3d968589d8 1480 #define DMA_ERQ_ERQ0_SHIFT 0
Kojto 90:cb3d968589d8 1481 #define DMA_ERQ_ERQ1_MASK 0x2u
Kojto 90:cb3d968589d8 1482 #define DMA_ERQ_ERQ1_SHIFT 1
Kojto 90:cb3d968589d8 1483 #define DMA_ERQ_ERQ2_MASK 0x4u
Kojto 90:cb3d968589d8 1484 #define DMA_ERQ_ERQ2_SHIFT 2
Kojto 90:cb3d968589d8 1485 #define DMA_ERQ_ERQ3_MASK 0x8u
Kojto 90:cb3d968589d8 1486 #define DMA_ERQ_ERQ3_SHIFT 3
Kojto 90:cb3d968589d8 1487 #define DMA_ERQ_ERQ4_MASK 0x10u
Kojto 90:cb3d968589d8 1488 #define DMA_ERQ_ERQ4_SHIFT 4
Kojto 90:cb3d968589d8 1489 #define DMA_ERQ_ERQ5_MASK 0x20u
Kojto 90:cb3d968589d8 1490 #define DMA_ERQ_ERQ5_SHIFT 5
Kojto 90:cb3d968589d8 1491 #define DMA_ERQ_ERQ6_MASK 0x40u
Kojto 90:cb3d968589d8 1492 #define DMA_ERQ_ERQ6_SHIFT 6
Kojto 90:cb3d968589d8 1493 #define DMA_ERQ_ERQ7_MASK 0x80u
Kojto 90:cb3d968589d8 1494 #define DMA_ERQ_ERQ7_SHIFT 7
Kojto 90:cb3d968589d8 1495 #define DMA_ERQ_ERQ8_MASK 0x100u
Kojto 90:cb3d968589d8 1496 #define DMA_ERQ_ERQ8_SHIFT 8
Kojto 90:cb3d968589d8 1497 #define DMA_ERQ_ERQ9_MASK 0x200u
Kojto 90:cb3d968589d8 1498 #define DMA_ERQ_ERQ9_SHIFT 9
Kojto 90:cb3d968589d8 1499 #define DMA_ERQ_ERQ10_MASK 0x400u
Kojto 90:cb3d968589d8 1500 #define DMA_ERQ_ERQ10_SHIFT 10
Kojto 90:cb3d968589d8 1501 #define DMA_ERQ_ERQ11_MASK 0x800u
Kojto 90:cb3d968589d8 1502 #define DMA_ERQ_ERQ11_SHIFT 11
Kojto 90:cb3d968589d8 1503 #define DMA_ERQ_ERQ12_MASK 0x1000u
Kojto 90:cb3d968589d8 1504 #define DMA_ERQ_ERQ12_SHIFT 12
Kojto 90:cb3d968589d8 1505 #define DMA_ERQ_ERQ13_MASK 0x2000u
Kojto 90:cb3d968589d8 1506 #define DMA_ERQ_ERQ13_SHIFT 13
Kojto 90:cb3d968589d8 1507 #define DMA_ERQ_ERQ14_MASK 0x4000u
Kojto 90:cb3d968589d8 1508 #define DMA_ERQ_ERQ14_SHIFT 14
Kojto 90:cb3d968589d8 1509 #define DMA_ERQ_ERQ15_MASK 0x8000u
Kojto 90:cb3d968589d8 1510 #define DMA_ERQ_ERQ15_SHIFT 15
Kojto 90:cb3d968589d8 1511 /* EEI Bit Fields */
Kojto 90:cb3d968589d8 1512 #define DMA_EEI_EEI0_MASK 0x1u
Kojto 90:cb3d968589d8 1513 #define DMA_EEI_EEI0_SHIFT 0
Kojto 90:cb3d968589d8 1514 #define DMA_EEI_EEI1_MASK 0x2u
Kojto 90:cb3d968589d8 1515 #define DMA_EEI_EEI1_SHIFT 1
Kojto 90:cb3d968589d8 1516 #define DMA_EEI_EEI2_MASK 0x4u
Kojto 90:cb3d968589d8 1517 #define DMA_EEI_EEI2_SHIFT 2
Kojto 90:cb3d968589d8 1518 #define DMA_EEI_EEI3_MASK 0x8u
Kojto 90:cb3d968589d8 1519 #define DMA_EEI_EEI3_SHIFT 3
Kojto 90:cb3d968589d8 1520 #define DMA_EEI_EEI4_MASK 0x10u
Kojto 90:cb3d968589d8 1521 #define DMA_EEI_EEI4_SHIFT 4
Kojto 90:cb3d968589d8 1522 #define DMA_EEI_EEI5_MASK 0x20u
Kojto 90:cb3d968589d8 1523 #define DMA_EEI_EEI5_SHIFT 5
Kojto 90:cb3d968589d8 1524 #define DMA_EEI_EEI6_MASK 0x40u
Kojto 90:cb3d968589d8 1525 #define DMA_EEI_EEI6_SHIFT 6
Kojto 90:cb3d968589d8 1526 #define DMA_EEI_EEI7_MASK 0x80u
Kojto 90:cb3d968589d8 1527 #define DMA_EEI_EEI7_SHIFT 7
Kojto 90:cb3d968589d8 1528 #define DMA_EEI_EEI8_MASK 0x100u
Kojto 90:cb3d968589d8 1529 #define DMA_EEI_EEI8_SHIFT 8
Kojto 90:cb3d968589d8 1530 #define DMA_EEI_EEI9_MASK 0x200u
Kojto 90:cb3d968589d8 1531 #define DMA_EEI_EEI9_SHIFT 9
Kojto 90:cb3d968589d8 1532 #define DMA_EEI_EEI10_MASK 0x400u
Kojto 90:cb3d968589d8 1533 #define DMA_EEI_EEI10_SHIFT 10
Kojto 90:cb3d968589d8 1534 #define DMA_EEI_EEI11_MASK 0x800u
Kojto 90:cb3d968589d8 1535 #define DMA_EEI_EEI11_SHIFT 11
Kojto 90:cb3d968589d8 1536 #define DMA_EEI_EEI12_MASK 0x1000u
Kojto 90:cb3d968589d8 1537 #define DMA_EEI_EEI12_SHIFT 12
Kojto 90:cb3d968589d8 1538 #define DMA_EEI_EEI13_MASK 0x2000u
Kojto 90:cb3d968589d8 1539 #define DMA_EEI_EEI13_SHIFT 13
Kojto 90:cb3d968589d8 1540 #define DMA_EEI_EEI14_MASK 0x4000u
Kojto 90:cb3d968589d8 1541 #define DMA_EEI_EEI14_SHIFT 14
Kojto 90:cb3d968589d8 1542 #define DMA_EEI_EEI15_MASK 0x8000u
Kojto 90:cb3d968589d8 1543 #define DMA_EEI_EEI15_SHIFT 15
Kojto 90:cb3d968589d8 1544 /* CEEI Bit Fields */
Kojto 90:cb3d968589d8 1545 #define DMA_CEEI_CEEI_MASK 0xFu
Kojto 90:cb3d968589d8 1546 #define DMA_CEEI_CEEI_SHIFT 0
Kojto 90:cb3d968589d8 1547 #define DMA_CEEI_CEEI(x) (((uint8_t)(((uint8_t)(x))<<DMA_CEEI_CEEI_SHIFT))&DMA_CEEI_CEEI_MASK)
Kojto 90:cb3d968589d8 1548 #define DMA_CEEI_CAEE_MASK 0x40u
Kojto 90:cb3d968589d8 1549 #define DMA_CEEI_CAEE_SHIFT 6
Kojto 90:cb3d968589d8 1550 #define DMA_CEEI_NOP_MASK 0x80u
Kojto 90:cb3d968589d8 1551 #define DMA_CEEI_NOP_SHIFT 7
Kojto 90:cb3d968589d8 1552 /* SEEI Bit Fields */
Kojto 90:cb3d968589d8 1553 #define DMA_SEEI_SEEI_MASK 0xFu
Kojto 90:cb3d968589d8 1554 #define DMA_SEEI_SEEI_SHIFT 0
Kojto 90:cb3d968589d8 1555 #define DMA_SEEI_SEEI(x) (((uint8_t)(((uint8_t)(x))<<DMA_SEEI_SEEI_SHIFT))&DMA_SEEI_SEEI_MASK)
Kojto 90:cb3d968589d8 1556 #define DMA_SEEI_SAEE_MASK 0x40u
Kojto 90:cb3d968589d8 1557 #define DMA_SEEI_SAEE_SHIFT 6
Kojto 90:cb3d968589d8 1558 #define DMA_SEEI_NOP_MASK 0x80u
Kojto 90:cb3d968589d8 1559 #define DMA_SEEI_NOP_SHIFT 7
Kojto 90:cb3d968589d8 1560 /* CERQ Bit Fields */
Kojto 90:cb3d968589d8 1561 #define DMA_CERQ_CERQ_MASK 0xFu
Kojto 90:cb3d968589d8 1562 #define DMA_CERQ_CERQ_SHIFT 0
Kojto 90:cb3d968589d8 1563 #define DMA_CERQ_CERQ(x) (((uint8_t)(((uint8_t)(x))<<DMA_CERQ_CERQ_SHIFT))&DMA_CERQ_CERQ_MASK)
Kojto 90:cb3d968589d8 1564 #define DMA_CERQ_CAER_MASK 0x40u
Kojto 90:cb3d968589d8 1565 #define DMA_CERQ_CAER_SHIFT 6
Kojto 90:cb3d968589d8 1566 #define DMA_CERQ_NOP_MASK 0x80u
Kojto 90:cb3d968589d8 1567 #define DMA_CERQ_NOP_SHIFT 7
Kojto 90:cb3d968589d8 1568 /* SERQ Bit Fields */
Kojto 90:cb3d968589d8 1569 #define DMA_SERQ_SERQ_MASK 0xFu
Kojto 90:cb3d968589d8 1570 #define DMA_SERQ_SERQ_SHIFT 0
Kojto 90:cb3d968589d8 1571 #define DMA_SERQ_SERQ(x) (((uint8_t)(((uint8_t)(x))<<DMA_SERQ_SERQ_SHIFT))&DMA_SERQ_SERQ_MASK)
Kojto 90:cb3d968589d8 1572 #define DMA_SERQ_SAER_MASK 0x40u
Kojto 90:cb3d968589d8 1573 #define DMA_SERQ_SAER_SHIFT 6
Kojto 90:cb3d968589d8 1574 #define DMA_SERQ_NOP_MASK 0x80u
Kojto 90:cb3d968589d8 1575 #define DMA_SERQ_NOP_SHIFT 7
Kojto 90:cb3d968589d8 1576 /* CDNE Bit Fields */
Kojto 90:cb3d968589d8 1577 #define DMA_CDNE_CDNE_MASK 0xFu
Kojto 90:cb3d968589d8 1578 #define DMA_CDNE_CDNE_SHIFT 0
Kojto 90:cb3d968589d8 1579 #define DMA_CDNE_CDNE(x) (((uint8_t)(((uint8_t)(x))<<DMA_CDNE_CDNE_SHIFT))&DMA_CDNE_CDNE_MASK)
Kojto 90:cb3d968589d8 1580 #define DMA_CDNE_CADN_MASK 0x40u
Kojto 90:cb3d968589d8 1581 #define DMA_CDNE_CADN_SHIFT 6
Kojto 90:cb3d968589d8 1582 #define DMA_CDNE_NOP_MASK 0x80u
Kojto 90:cb3d968589d8 1583 #define DMA_CDNE_NOP_SHIFT 7
Kojto 90:cb3d968589d8 1584 /* SSRT Bit Fields */
Kojto 90:cb3d968589d8 1585 #define DMA_SSRT_SSRT_MASK 0xFu
Kojto 90:cb3d968589d8 1586 #define DMA_SSRT_SSRT_SHIFT 0
Kojto 90:cb3d968589d8 1587 #define DMA_SSRT_SSRT(x) (((uint8_t)(((uint8_t)(x))<<DMA_SSRT_SSRT_SHIFT))&DMA_SSRT_SSRT_MASK)
Kojto 90:cb3d968589d8 1588 #define DMA_SSRT_SAST_MASK 0x40u
Kojto 90:cb3d968589d8 1589 #define DMA_SSRT_SAST_SHIFT 6
Kojto 90:cb3d968589d8 1590 #define DMA_SSRT_NOP_MASK 0x80u
Kojto 90:cb3d968589d8 1591 #define DMA_SSRT_NOP_SHIFT 7
Kojto 90:cb3d968589d8 1592 /* CERR Bit Fields */
Kojto 90:cb3d968589d8 1593 #define DMA_CERR_CERR_MASK 0xFu
Kojto 90:cb3d968589d8 1594 #define DMA_CERR_CERR_SHIFT 0
Kojto 90:cb3d968589d8 1595 #define DMA_CERR_CERR(x) (((uint8_t)(((uint8_t)(x))<<DMA_CERR_CERR_SHIFT))&DMA_CERR_CERR_MASK)
Kojto 90:cb3d968589d8 1596 #define DMA_CERR_CAEI_MASK 0x40u
Kojto 90:cb3d968589d8 1597 #define DMA_CERR_CAEI_SHIFT 6
Kojto 90:cb3d968589d8 1598 #define DMA_CERR_NOP_MASK 0x80u
Kojto 90:cb3d968589d8 1599 #define DMA_CERR_NOP_SHIFT 7
Kojto 90:cb3d968589d8 1600 /* CINT Bit Fields */
Kojto 90:cb3d968589d8 1601 #define DMA_CINT_CINT_MASK 0xFu
Kojto 90:cb3d968589d8 1602 #define DMA_CINT_CINT_SHIFT 0
Kojto 90:cb3d968589d8 1603 #define DMA_CINT_CINT(x) (((uint8_t)(((uint8_t)(x))<<DMA_CINT_CINT_SHIFT))&DMA_CINT_CINT_MASK)
Kojto 90:cb3d968589d8 1604 #define DMA_CINT_CAIR_MASK 0x40u
Kojto 90:cb3d968589d8 1605 #define DMA_CINT_CAIR_SHIFT 6
Kojto 90:cb3d968589d8 1606 #define DMA_CINT_NOP_MASK 0x80u
Kojto 90:cb3d968589d8 1607 #define DMA_CINT_NOP_SHIFT 7
Kojto 90:cb3d968589d8 1608 /* INT Bit Fields */
Kojto 90:cb3d968589d8 1609 #define DMA_INT_INT0_MASK 0x1u
Kojto 90:cb3d968589d8 1610 #define DMA_INT_INT0_SHIFT 0
Kojto 90:cb3d968589d8 1611 #define DMA_INT_INT1_MASK 0x2u
Kojto 90:cb3d968589d8 1612 #define DMA_INT_INT1_SHIFT 1
Kojto 90:cb3d968589d8 1613 #define DMA_INT_INT2_MASK 0x4u
Kojto 90:cb3d968589d8 1614 #define DMA_INT_INT2_SHIFT 2
Kojto 90:cb3d968589d8 1615 #define DMA_INT_INT3_MASK 0x8u
Kojto 90:cb3d968589d8 1616 #define DMA_INT_INT3_SHIFT 3
Kojto 90:cb3d968589d8 1617 #define DMA_INT_INT4_MASK 0x10u
Kojto 90:cb3d968589d8 1618 #define DMA_INT_INT4_SHIFT 4
Kojto 90:cb3d968589d8 1619 #define DMA_INT_INT5_MASK 0x20u
Kojto 90:cb3d968589d8 1620 #define DMA_INT_INT5_SHIFT 5
Kojto 90:cb3d968589d8 1621 #define DMA_INT_INT6_MASK 0x40u
Kojto 90:cb3d968589d8 1622 #define DMA_INT_INT6_SHIFT 6
Kojto 90:cb3d968589d8 1623 #define DMA_INT_INT7_MASK 0x80u
Kojto 90:cb3d968589d8 1624 #define DMA_INT_INT7_SHIFT 7
Kojto 90:cb3d968589d8 1625 #define DMA_INT_INT8_MASK 0x100u
Kojto 90:cb3d968589d8 1626 #define DMA_INT_INT8_SHIFT 8
Kojto 90:cb3d968589d8 1627 #define DMA_INT_INT9_MASK 0x200u
Kojto 90:cb3d968589d8 1628 #define DMA_INT_INT9_SHIFT 9
Kojto 90:cb3d968589d8 1629 #define DMA_INT_INT10_MASK 0x400u
Kojto 90:cb3d968589d8 1630 #define DMA_INT_INT10_SHIFT 10
Kojto 90:cb3d968589d8 1631 #define DMA_INT_INT11_MASK 0x800u
Kojto 90:cb3d968589d8 1632 #define DMA_INT_INT11_SHIFT 11
Kojto 90:cb3d968589d8 1633 #define DMA_INT_INT12_MASK 0x1000u
Kojto 90:cb3d968589d8 1634 #define DMA_INT_INT12_SHIFT 12
Kojto 90:cb3d968589d8 1635 #define DMA_INT_INT13_MASK 0x2000u
Kojto 90:cb3d968589d8 1636 #define DMA_INT_INT13_SHIFT 13
Kojto 90:cb3d968589d8 1637 #define DMA_INT_INT14_MASK 0x4000u
Kojto 90:cb3d968589d8 1638 #define DMA_INT_INT14_SHIFT 14
Kojto 90:cb3d968589d8 1639 #define DMA_INT_INT15_MASK 0x8000u
Kojto 90:cb3d968589d8 1640 #define DMA_INT_INT15_SHIFT 15
Kojto 90:cb3d968589d8 1641 /* ERR Bit Fields */
Kojto 90:cb3d968589d8 1642 #define DMA_ERR_ERR0_MASK 0x1u
Kojto 90:cb3d968589d8 1643 #define DMA_ERR_ERR0_SHIFT 0
Kojto 90:cb3d968589d8 1644 #define DMA_ERR_ERR1_MASK 0x2u
Kojto 90:cb3d968589d8 1645 #define DMA_ERR_ERR1_SHIFT 1
Kojto 90:cb3d968589d8 1646 #define DMA_ERR_ERR2_MASK 0x4u
Kojto 90:cb3d968589d8 1647 #define DMA_ERR_ERR2_SHIFT 2
Kojto 90:cb3d968589d8 1648 #define DMA_ERR_ERR3_MASK 0x8u
Kojto 90:cb3d968589d8 1649 #define DMA_ERR_ERR3_SHIFT 3
Kojto 90:cb3d968589d8 1650 #define DMA_ERR_ERR4_MASK 0x10u
Kojto 90:cb3d968589d8 1651 #define DMA_ERR_ERR4_SHIFT 4
Kojto 90:cb3d968589d8 1652 #define DMA_ERR_ERR5_MASK 0x20u
Kojto 90:cb3d968589d8 1653 #define DMA_ERR_ERR5_SHIFT 5
Kojto 90:cb3d968589d8 1654 #define DMA_ERR_ERR6_MASK 0x40u
Kojto 90:cb3d968589d8 1655 #define DMA_ERR_ERR6_SHIFT 6
Kojto 90:cb3d968589d8 1656 #define DMA_ERR_ERR7_MASK 0x80u
Kojto 90:cb3d968589d8 1657 #define DMA_ERR_ERR7_SHIFT 7
Kojto 90:cb3d968589d8 1658 #define DMA_ERR_ERR8_MASK 0x100u
Kojto 90:cb3d968589d8 1659 #define DMA_ERR_ERR8_SHIFT 8
Kojto 90:cb3d968589d8 1660 #define DMA_ERR_ERR9_MASK 0x200u
Kojto 90:cb3d968589d8 1661 #define DMA_ERR_ERR9_SHIFT 9
Kojto 90:cb3d968589d8 1662 #define DMA_ERR_ERR10_MASK 0x400u
Kojto 90:cb3d968589d8 1663 #define DMA_ERR_ERR10_SHIFT 10
Kojto 90:cb3d968589d8 1664 #define DMA_ERR_ERR11_MASK 0x800u
Kojto 90:cb3d968589d8 1665 #define DMA_ERR_ERR11_SHIFT 11
Kojto 90:cb3d968589d8 1666 #define DMA_ERR_ERR12_MASK 0x1000u
Kojto 90:cb3d968589d8 1667 #define DMA_ERR_ERR12_SHIFT 12
Kojto 90:cb3d968589d8 1668 #define DMA_ERR_ERR13_MASK 0x2000u
Kojto 90:cb3d968589d8 1669 #define DMA_ERR_ERR13_SHIFT 13
Kojto 90:cb3d968589d8 1670 #define DMA_ERR_ERR14_MASK 0x4000u
Kojto 90:cb3d968589d8 1671 #define DMA_ERR_ERR14_SHIFT 14
Kojto 90:cb3d968589d8 1672 #define DMA_ERR_ERR15_MASK 0x8000u
Kojto 90:cb3d968589d8 1673 #define DMA_ERR_ERR15_SHIFT 15
Kojto 90:cb3d968589d8 1674 /* HRS Bit Fields */
Kojto 90:cb3d968589d8 1675 #define DMA_HRS_HRS0_MASK 0x1u
Kojto 90:cb3d968589d8 1676 #define DMA_HRS_HRS0_SHIFT 0
Kojto 90:cb3d968589d8 1677 #define DMA_HRS_HRS1_MASK 0x2u
Kojto 90:cb3d968589d8 1678 #define DMA_HRS_HRS1_SHIFT 1
Kojto 90:cb3d968589d8 1679 #define DMA_HRS_HRS2_MASK 0x4u
Kojto 90:cb3d968589d8 1680 #define DMA_HRS_HRS2_SHIFT 2
Kojto 90:cb3d968589d8 1681 #define DMA_HRS_HRS3_MASK 0x8u
Kojto 90:cb3d968589d8 1682 #define DMA_HRS_HRS3_SHIFT 3
Kojto 90:cb3d968589d8 1683 #define DMA_HRS_HRS4_MASK 0x10u
Kojto 90:cb3d968589d8 1684 #define DMA_HRS_HRS4_SHIFT 4
Kojto 90:cb3d968589d8 1685 #define DMA_HRS_HRS5_MASK 0x20u
Kojto 90:cb3d968589d8 1686 #define DMA_HRS_HRS5_SHIFT 5
Kojto 90:cb3d968589d8 1687 #define DMA_HRS_HRS6_MASK 0x40u
Kojto 90:cb3d968589d8 1688 #define DMA_HRS_HRS6_SHIFT 6
Kojto 90:cb3d968589d8 1689 #define DMA_HRS_HRS7_MASK 0x80u
Kojto 90:cb3d968589d8 1690 #define DMA_HRS_HRS7_SHIFT 7
Kojto 90:cb3d968589d8 1691 #define DMA_HRS_HRS8_MASK 0x100u
Kojto 90:cb3d968589d8 1692 #define DMA_HRS_HRS8_SHIFT 8
Kojto 90:cb3d968589d8 1693 #define DMA_HRS_HRS9_MASK 0x200u
Kojto 90:cb3d968589d8 1694 #define DMA_HRS_HRS9_SHIFT 9
Kojto 90:cb3d968589d8 1695 #define DMA_HRS_HRS10_MASK 0x400u
Kojto 90:cb3d968589d8 1696 #define DMA_HRS_HRS10_SHIFT 10
Kojto 90:cb3d968589d8 1697 #define DMA_HRS_HRS11_MASK 0x800u
Kojto 90:cb3d968589d8 1698 #define DMA_HRS_HRS11_SHIFT 11
Kojto 90:cb3d968589d8 1699 #define DMA_HRS_HRS12_MASK 0x1000u
Kojto 90:cb3d968589d8 1700 #define DMA_HRS_HRS12_SHIFT 12
Kojto 90:cb3d968589d8 1701 #define DMA_HRS_HRS13_MASK 0x2000u
Kojto 90:cb3d968589d8 1702 #define DMA_HRS_HRS13_SHIFT 13
Kojto 90:cb3d968589d8 1703 #define DMA_HRS_HRS14_MASK 0x4000u
Kojto 90:cb3d968589d8 1704 #define DMA_HRS_HRS14_SHIFT 14
Kojto 90:cb3d968589d8 1705 #define DMA_HRS_HRS15_MASK 0x8000u
Kojto 90:cb3d968589d8 1706 #define DMA_HRS_HRS15_SHIFT 15
Kojto 90:cb3d968589d8 1707 /* EARS Bit Fields */
Kojto 90:cb3d968589d8 1708 #define DMA_EARS_EDREQ_0_MASK 0x1u
Kojto 90:cb3d968589d8 1709 #define DMA_EARS_EDREQ_0_SHIFT 0
Kojto 90:cb3d968589d8 1710 #define DMA_EARS_EDREQ_1_MASK 0x2u
Kojto 90:cb3d968589d8 1711 #define DMA_EARS_EDREQ_1_SHIFT 1
Kojto 90:cb3d968589d8 1712 #define DMA_EARS_EDREQ_2_MASK 0x4u
Kojto 90:cb3d968589d8 1713 #define DMA_EARS_EDREQ_2_SHIFT 2
Kojto 90:cb3d968589d8 1714 #define DMA_EARS_EDREQ_3_MASK 0x8u
Kojto 90:cb3d968589d8 1715 #define DMA_EARS_EDREQ_3_SHIFT 3
Kojto 90:cb3d968589d8 1716 #define DMA_EARS_EDREQ_4_MASK 0x10u
Kojto 90:cb3d968589d8 1717 #define DMA_EARS_EDREQ_4_SHIFT 4
Kojto 90:cb3d968589d8 1718 #define DMA_EARS_EDREQ_5_MASK 0x20u
Kojto 90:cb3d968589d8 1719 #define DMA_EARS_EDREQ_5_SHIFT 5
Kojto 90:cb3d968589d8 1720 #define DMA_EARS_EDREQ_6_MASK 0x40u
Kojto 90:cb3d968589d8 1721 #define DMA_EARS_EDREQ_6_SHIFT 6
Kojto 90:cb3d968589d8 1722 #define DMA_EARS_EDREQ_7_MASK 0x80u
Kojto 90:cb3d968589d8 1723 #define DMA_EARS_EDREQ_7_SHIFT 7
Kojto 90:cb3d968589d8 1724 #define DMA_EARS_EDREQ_8_MASK 0x100u
Kojto 90:cb3d968589d8 1725 #define DMA_EARS_EDREQ_8_SHIFT 8
Kojto 90:cb3d968589d8 1726 #define DMA_EARS_EDREQ_9_MASK 0x200u
Kojto 90:cb3d968589d8 1727 #define DMA_EARS_EDREQ_9_SHIFT 9
Kojto 90:cb3d968589d8 1728 #define DMA_EARS_EDREQ_10_MASK 0x400u
Kojto 90:cb3d968589d8 1729 #define DMA_EARS_EDREQ_10_SHIFT 10
Kojto 90:cb3d968589d8 1730 #define DMA_EARS_EDREQ_11_MASK 0x800u
Kojto 90:cb3d968589d8 1731 #define DMA_EARS_EDREQ_11_SHIFT 11
Kojto 90:cb3d968589d8 1732 #define DMA_EARS_EDREQ_12_MASK 0x1000u
Kojto 90:cb3d968589d8 1733 #define DMA_EARS_EDREQ_12_SHIFT 12
Kojto 90:cb3d968589d8 1734 #define DMA_EARS_EDREQ_13_MASK 0x2000u
Kojto 90:cb3d968589d8 1735 #define DMA_EARS_EDREQ_13_SHIFT 13
Kojto 90:cb3d968589d8 1736 #define DMA_EARS_EDREQ_14_MASK 0x4000u
Kojto 90:cb3d968589d8 1737 #define DMA_EARS_EDREQ_14_SHIFT 14
Kojto 90:cb3d968589d8 1738 #define DMA_EARS_EDREQ_15_MASK 0x8000u
Kojto 90:cb3d968589d8 1739 #define DMA_EARS_EDREQ_15_SHIFT 15
Kojto 90:cb3d968589d8 1740 /* DCHPRI3 Bit Fields */
Kojto 90:cb3d968589d8 1741 #define DMA_DCHPRI3_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1742 #define DMA_DCHPRI3_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1743 #define DMA_DCHPRI3_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI3_CHPRI_SHIFT))&DMA_DCHPRI3_CHPRI_MASK)
Kojto 90:cb3d968589d8 1744 #define DMA_DCHPRI3_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1745 #define DMA_DCHPRI3_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1746 #define DMA_DCHPRI3_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1747 #define DMA_DCHPRI3_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1748 /* DCHPRI2 Bit Fields */
Kojto 90:cb3d968589d8 1749 #define DMA_DCHPRI2_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1750 #define DMA_DCHPRI2_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1751 #define DMA_DCHPRI2_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI2_CHPRI_SHIFT))&DMA_DCHPRI2_CHPRI_MASK)
Kojto 90:cb3d968589d8 1752 #define DMA_DCHPRI2_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1753 #define DMA_DCHPRI2_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1754 #define DMA_DCHPRI2_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1755 #define DMA_DCHPRI2_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1756 /* DCHPRI1 Bit Fields */
Kojto 90:cb3d968589d8 1757 #define DMA_DCHPRI1_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1758 #define DMA_DCHPRI1_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1759 #define DMA_DCHPRI1_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI1_CHPRI_SHIFT))&DMA_DCHPRI1_CHPRI_MASK)
Kojto 90:cb3d968589d8 1760 #define DMA_DCHPRI1_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1761 #define DMA_DCHPRI1_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1762 #define DMA_DCHPRI1_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1763 #define DMA_DCHPRI1_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1764 /* DCHPRI0 Bit Fields */
Kojto 90:cb3d968589d8 1765 #define DMA_DCHPRI0_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1766 #define DMA_DCHPRI0_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1767 #define DMA_DCHPRI0_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI0_CHPRI_SHIFT))&DMA_DCHPRI0_CHPRI_MASK)
Kojto 90:cb3d968589d8 1768 #define DMA_DCHPRI0_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1769 #define DMA_DCHPRI0_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1770 #define DMA_DCHPRI0_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1771 #define DMA_DCHPRI0_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1772 /* DCHPRI7 Bit Fields */
Kojto 90:cb3d968589d8 1773 #define DMA_DCHPRI7_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1774 #define DMA_DCHPRI7_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1775 #define DMA_DCHPRI7_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI7_CHPRI_SHIFT))&DMA_DCHPRI7_CHPRI_MASK)
Kojto 90:cb3d968589d8 1776 #define DMA_DCHPRI7_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1777 #define DMA_DCHPRI7_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1778 #define DMA_DCHPRI7_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1779 #define DMA_DCHPRI7_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1780 /* DCHPRI6 Bit Fields */
Kojto 90:cb3d968589d8 1781 #define DMA_DCHPRI6_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1782 #define DMA_DCHPRI6_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1783 #define DMA_DCHPRI6_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI6_CHPRI_SHIFT))&DMA_DCHPRI6_CHPRI_MASK)
Kojto 90:cb3d968589d8 1784 #define DMA_DCHPRI6_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1785 #define DMA_DCHPRI6_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1786 #define DMA_DCHPRI6_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1787 #define DMA_DCHPRI6_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1788 /* DCHPRI5 Bit Fields */
Kojto 90:cb3d968589d8 1789 #define DMA_DCHPRI5_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1790 #define DMA_DCHPRI5_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1791 #define DMA_DCHPRI5_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI5_CHPRI_SHIFT))&DMA_DCHPRI5_CHPRI_MASK)
Kojto 90:cb3d968589d8 1792 #define DMA_DCHPRI5_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1793 #define DMA_DCHPRI5_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1794 #define DMA_DCHPRI5_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1795 #define DMA_DCHPRI5_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1796 /* DCHPRI4 Bit Fields */
Kojto 90:cb3d968589d8 1797 #define DMA_DCHPRI4_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1798 #define DMA_DCHPRI4_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1799 #define DMA_DCHPRI4_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI4_CHPRI_SHIFT))&DMA_DCHPRI4_CHPRI_MASK)
Kojto 90:cb3d968589d8 1800 #define DMA_DCHPRI4_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1801 #define DMA_DCHPRI4_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1802 #define DMA_DCHPRI4_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1803 #define DMA_DCHPRI4_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1804 /* DCHPRI11 Bit Fields */
Kojto 90:cb3d968589d8 1805 #define DMA_DCHPRI11_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1806 #define DMA_DCHPRI11_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1807 #define DMA_DCHPRI11_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI11_CHPRI_SHIFT))&DMA_DCHPRI11_CHPRI_MASK)
Kojto 90:cb3d968589d8 1808 #define DMA_DCHPRI11_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1809 #define DMA_DCHPRI11_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1810 #define DMA_DCHPRI11_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1811 #define DMA_DCHPRI11_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1812 /* DCHPRI10 Bit Fields */
Kojto 90:cb3d968589d8 1813 #define DMA_DCHPRI10_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1814 #define DMA_DCHPRI10_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1815 #define DMA_DCHPRI10_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI10_CHPRI_SHIFT))&DMA_DCHPRI10_CHPRI_MASK)
Kojto 90:cb3d968589d8 1816 #define DMA_DCHPRI10_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1817 #define DMA_DCHPRI10_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1818 #define DMA_DCHPRI10_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1819 #define DMA_DCHPRI10_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1820 /* DCHPRI9 Bit Fields */
Kojto 90:cb3d968589d8 1821 #define DMA_DCHPRI9_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1822 #define DMA_DCHPRI9_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1823 #define DMA_DCHPRI9_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI9_CHPRI_SHIFT))&DMA_DCHPRI9_CHPRI_MASK)
Kojto 90:cb3d968589d8 1824 #define DMA_DCHPRI9_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1825 #define DMA_DCHPRI9_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1826 #define DMA_DCHPRI9_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1827 #define DMA_DCHPRI9_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1828 /* DCHPRI8 Bit Fields */
Kojto 90:cb3d968589d8 1829 #define DMA_DCHPRI8_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1830 #define DMA_DCHPRI8_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1831 #define DMA_DCHPRI8_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI8_CHPRI_SHIFT))&DMA_DCHPRI8_CHPRI_MASK)
Kojto 90:cb3d968589d8 1832 #define DMA_DCHPRI8_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1833 #define DMA_DCHPRI8_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1834 #define DMA_DCHPRI8_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1835 #define DMA_DCHPRI8_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1836 /* DCHPRI15 Bit Fields */
Kojto 90:cb3d968589d8 1837 #define DMA_DCHPRI15_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1838 #define DMA_DCHPRI15_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1839 #define DMA_DCHPRI15_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI15_CHPRI_SHIFT))&DMA_DCHPRI15_CHPRI_MASK)
Kojto 90:cb3d968589d8 1840 #define DMA_DCHPRI15_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1841 #define DMA_DCHPRI15_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1842 #define DMA_DCHPRI15_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1843 #define DMA_DCHPRI15_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1844 /* DCHPRI14 Bit Fields */
Kojto 90:cb3d968589d8 1845 #define DMA_DCHPRI14_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1846 #define DMA_DCHPRI14_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1847 #define DMA_DCHPRI14_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI14_CHPRI_SHIFT))&DMA_DCHPRI14_CHPRI_MASK)
Kojto 90:cb3d968589d8 1848 #define DMA_DCHPRI14_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1849 #define DMA_DCHPRI14_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1850 #define DMA_DCHPRI14_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1851 #define DMA_DCHPRI14_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1852 /* DCHPRI13 Bit Fields */
Kojto 90:cb3d968589d8 1853 #define DMA_DCHPRI13_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1854 #define DMA_DCHPRI13_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1855 #define DMA_DCHPRI13_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI13_CHPRI_SHIFT))&DMA_DCHPRI13_CHPRI_MASK)
Kojto 90:cb3d968589d8 1856 #define DMA_DCHPRI13_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1857 #define DMA_DCHPRI13_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1858 #define DMA_DCHPRI13_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1859 #define DMA_DCHPRI13_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1860 /* DCHPRI12 Bit Fields */
Kojto 90:cb3d968589d8 1861 #define DMA_DCHPRI12_CHPRI_MASK 0xFu
Kojto 90:cb3d968589d8 1862 #define DMA_DCHPRI12_CHPRI_SHIFT 0
Kojto 90:cb3d968589d8 1863 #define DMA_DCHPRI12_CHPRI(x) (((uint8_t)(((uint8_t)(x))<<DMA_DCHPRI12_CHPRI_SHIFT))&DMA_DCHPRI12_CHPRI_MASK)
Kojto 90:cb3d968589d8 1864 #define DMA_DCHPRI12_DPA_MASK 0x40u
Kojto 90:cb3d968589d8 1865 #define DMA_DCHPRI12_DPA_SHIFT 6
Kojto 90:cb3d968589d8 1866 #define DMA_DCHPRI12_ECP_MASK 0x80u
Kojto 90:cb3d968589d8 1867 #define DMA_DCHPRI12_ECP_SHIFT 7
Kojto 90:cb3d968589d8 1868 /* SADDR Bit Fields */
Kojto 90:cb3d968589d8 1869 #define DMA_SADDR_SADDR_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 1870 #define DMA_SADDR_SADDR_SHIFT 0
Kojto 90:cb3d968589d8 1871 #define DMA_SADDR_SADDR(x) (((uint32_t)(((uint32_t)(x))<<DMA_SADDR_SADDR_SHIFT))&DMA_SADDR_SADDR_MASK)
Kojto 90:cb3d968589d8 1872 /* SOFF Bit Fields */
Kojto 90:cb3d968589d8 1873 #define DMA_SOFF_SOFF_MASK 0xFFFFu
Kojto 90:cb3d968589d8 1874 #define DMA_SOFF_SOFF_SHIFT 0
Kojto 90:cb3d968589d8 1875 #define DMA_SOFF_SOFF(x) (((uint16_t)(((uint16_t)(x))<<DMA_SOFF_SOFF_SHIFT))&DMA_SOFF_SOFF_MASK)
Kojto 90:cb3d968589d8 1876 /* ATTR Bit Fields */
Kojto 90:cb3d968589d8 1877 #define DMA_ATTR_DSIZE_MASK 0x7u
Kojto 90:cb3d968589d8 1878 #define DMA_ATTR_DSIZE_SHIFT 0
Kojto 90:cb3d968589d8 1879 #define DMA_ATTR_DSIZE(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_DSIZE_SHIFT))&DMA_ATTR_DSIZE_MASK)
Kojto 90:cb3d968589d8 1880 #define DMA_ATTR_DMOD_MASK 0xF8u
Kojto 90:cb3d968589d8 1881 #define DMA_ATTR_DMOD_SHIFT 3
Kojto 90:cb3d968589d8 1882 #define DMA_ATTR_DMOD(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_DMOD_SHIFT))&DMA_ATTR_DMOD_MASK)
Kojto 90:cb3d968589d8 1883 #define DMA_ATTR_SSIZE_MASK 0x700u
Kojto 90:cb3d968589d8 1884 #define DMA_ATTR_SSIZE_SHIFT 8
Kojto 90:cb3d968589d8 1885 #define DMA_ATTR_SSIZE(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_SSIZE_SHIFT))&DMA_ATTR_SSIZE_MASK)
Kojto 90:cb3d968589d8 1886 #define DMA_ATTR_SMOD_MASK 0xF800u
Kojto 90:cb3d968589d8 1887 #define DMA_ATTR_SMOD_SHIFT 11
Kojto 90:cb3d968589d8 1888 #define DMA_ATTR_SMOD(x) (((uint16_t)(((uint16_t)(x))<<DMA_ATTR_SMOD_SHIFT))&DMA_ATTR_SMOD_MASK)
Kojto 90:cb3d968589d8 1889 /* NBYTES_MLNO Bit Fields */
Kojto 90:cb3d968589d8 1890 #define DMA_NBYTES_MLNO_NBYTES_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 1891 #define DMA_NBYTES_MLNO_NBYTES_SHIFT 0
Kojto 90:cb3d968589d8 1892 #define DMA_NBYTES_MLNO_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLNO_NBYTES_SHIFT))&DMA_NBYTES_MLNO_NBYTES_MASK)
Kojto 90:cb3d968589d8 1893 /* NBYTES_MLOFFNO Bit Fields */
Kojto 90:cb3d968589d8 1894 #define DMA_NBYTES_MLOFFNO_NBYTES_MASK 0x3FFFFFFFu
Kojto 90:cb3d968589d8 1895 #define DMA_NBYTES_MLOFFNO_NBYTES_SHIFT 0
Kojto 90:cb3d968589d8 1896 #define DMA_NBYTES_MLOFFNO_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFNO_NBYTES_SHIFT))&DMA_NBYTES_MLOFFNO_NBYTES_MASK)
Kojto 90:cb3d968589d8 1897 #define DMA_NBYTES_MLOFFNO_DMLOE_MASK 0x40000000u
Kojto 90:cb3d968589d8 1898 #define DMA_NBYTES_MLOFFNO_DMLOE_SHIFT 30
Kojto 90:cb3d968589d8 1899 #define DMA_NBYTES_MLOFFNO_SMLOE_MASK 0x80000000u
Kojto 90:cb3d968589d8 1900 #define DMA_NBYTES_MLOFFNO_SMLOE_SHIFT 31
Kojto 90:cb3d968589d8 1901 /* NBYTES_MLOFFYES Bit Fields */
Kojto 90:cb3d968589d8 1902 #define DMA_NBYTES_MLOFFYES_NBYTES_MASK 0x3FFu
Kojto 90:cb3d968589d8 1903 #define DMA_NBYTES_MLOFFYES_NBYTES_SHIFT 0
Kojto 90:cb3d968589d8 1904 #define DMA_NBYTES_MLOFFYES_NBYTES(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFYES_NBYTES_SHIFT))&DMA_NBYTES_MLOFFYES_NBYTES_MASK)
Kojto 90:cb3d968589d8 1905 #define DMA_NBYTES_MLOFFYES_MLOFF_MASK 0x3FFFFC00u
Kojto 90:cb3d968589d8 1906 #define DMA_NBYTES_MLOFFYES_MLOFF_SHIFT 10
Kojto 90:cb3d968589d8 1907 #define DMA_NBYTES_MLOFFYES_MLOFF(x) (((uint32_t)(((uint32_t)(x))<<DMA_NBYTES_MLOFFYES_MLOFF_SHIFT))&DMA_NBYTES_MLOFFYES_MLOFF_MASK)
Kojto 90:cb3d968589d8 1908 #define DMA_NBYTES_MLOFFYES_DMLOE_MASK 0x40000000u
Kojto 90:cb3d968589d8 1909 #define DMA_NBYTES_MLOFFYES_DMLOE_SHIFT 30
Kojto 90:cb3d968589d8 1910 #define DMA_NBYTES_MLOFFYES_SMLOE_MASK 0x80000000u
Kojto 90:cb3d968589d8 1911 #define DMA_NBYTES_MLOFFYES_SMLOE_SHIFT 31
Kojto 90:cb3d968589d8 1912 /* SLAST Bit Fields */
Kojto 90:cb3d968589d8 1913 #define DMA_SLAST_SLAST_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 1914 #define DMA_SLAST_SLAST_SHIFT 0
Kojto 90:cb3d968589d8 1915 #define DMA_SLAST_SLAST(x) (((uint32_t)(((uint32_t)(x))<<DMA_SLAST_SLAST_SHIFT))&DMA_SLAST_SLAST_MASK)
Kojto 90:cb3d968589d8 1916 /* DADDR Bit Fields */
Kojto 90:cb3d968589d8 1917 #define DMA_DADDR_DADDR_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 1918 #define DMA_DADDR_DADDR_SHIFT 0
Kojto 90:cb3d968589d8 1919 #define DMA_DADDR_DADDR(x) (((uint32_t)(((uint32_t)(x))<<DMA_DADDR_DADDR_SHIFT))&DMA_DADDR_DADDR_MASK)
Kojto 90:cb3d968589d8 1920 /* DOFF Bit Fields */
Kojto 90:cb3d968589d8 1921 #define DMA_DOFF_DOFF_MASK 0xFFFFu
Kojto 90:cb3d968589d8 1922 #define DMA_DOFF_DOFF_SHIFT 0
Kojto 90:cb3d968589d8 1923 #define DMA_DOFF_DOFF(x) (((uint16_t)(((uint16_t)(x))<<DMA_DOFF_DOFF_SHIFT))&DMA_DOFF_DOFF_MASK)
Kojto 90:cb3d968589d8 1924 /* CITER_ELINKNO Bit Fields */
Kojto 90:cb3d968589d8 1925 #define DMA_CITER_ELINKNO_CITER_MASK 0x7FFFu
Kojto 90:cb3d968589d8 1926 #define DMA_CITER_ELINKNO_CITER_SHIFT 0
Kojto 90:cb3d968589d8 1927 #define DMA_CITER_ELINKNO_CITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKNO_CITER_SHIFT))&DMA_CITER_ELINKNO_CITER_MASK)
Kojto 90:cb3d968589d8 1928 #define DMA_CITER_ELINKNO_ELINK_MASK 0x8000u
Kojto 90:cb3d968589d8 1929 #define DMA_CITER_ELINKNO_ELINK_SHIFT 15
Kojto 90:cb3d968589d8 1930 /* CITER_ELINKYES Bit Fields */
Kojto 90:cb3d968589d8 1931 #define DMA_CITER_ELINKYES_CITER_MASK 0x1FFu
Kojto 90:cb3d968589d8 1932 #define DMA_CITER_ELINKYES_CITER_SHIFT 0
Kojto 90:cb3d968589d8 1933 #define DMA_CITER_ELINKYES_CITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKYES_CITER_SHIFT))&DMA_CITER_ELINKYES_CITER_MASK)
Kojto 90:cb3d968589d8 1934 #define DMA_CITER_ELINKYES_LINKCH_MASK 0x1E00u
Kojto 90:cb3d968589d8 1935 #define DMA_CITER_ELINKYES_LINKCH_SHIFT 9
Kojto 90:cb3d968589d8 1936 #define DMA_CITER_ELINKYES_LINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_CITER_ELINKYES_LINKCH_SHIFT))&DMA_CITER_ELINKYES_LINKCH_MASK)
Kojto 90:cb3d968589d8 1937 #define DMA_CITER_ELINKYES_ELINK_MASK 0x8000u
Kojto 90:cb3d968589d8 1938 #define DMA_CITER_ELINKYES_ELINK_SHIFT 15
Kojto 90:cb3d968589d8 1939 /* DLAST_SGA Bit Fields */
Kojto 90:cb3d968589d8 1940 #define DMA_DLAST_SGA_DLASTSGA_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 1941 #define DMA_DLAST_SGA_DLASTSGA_SHIFT 0
Kojto 90:cb3d968589d8 1942 #define DMA_DLAST_SGA_DLASTSGA(x) (((uint32_t)(((uint32_t)(x))<<DMA_DLAST_SGA_DLASTSGA_SHIFT))&DMA_DLAST_SGA_DLASTSGA_MASK)
Kojto 90:cb3d968589d8 1943 /* CSR Bit Fields */
Kojto 90:cb3d968589d8 1944 #define DMA_CSR_START_MASK 0x1u
Kojto 90:cb3d968589d8 1945 #define DMA_CSR_START_SHIFT 0
Kojto 90:cb3d968589d8 1946 #define DMA_CSR_INTMAJOR_MASK 0x2u
Kojto 90:cb3d968589d8 1947 #define DMA_CSR_INTMAJOR_SHIFT 1
Kojto 90:cb3d968589d8 1948 #define DMA_CSR_INTHALF_MASK 0x4u
Kojto 90:cb3d968589d8 1949 #define DMA_CSR_INTHALF_SHIFT 2
Kojto 90:cb3d968589d8 1950 #define DMA_CSR_DREQ_MASK 0x8u
Kojto 90:cb3d968589d8 1951 #define DMA_CSR_DREQ_SHIFT 3
Kojto 90:cb3d968589d8 1952 #define DMA_CSR_ESG_MASK 0x10u
Kojto 90:cb3d968589d8 1953 #define DMA_CSR_ESG_SHIFT 4
Kojto 90:cb3d968589d8 1954 #define DMA_CSR_MAJORELINK_MASK 0x20u
Kojto 90:cb3d968589d8 1955 #define DMA_CSR_MAJORELINK_SHIFT 5
Kojto 90:cb3d968589d8 1956 #define DMA_CSR_ACTIVE_MASK 0x40u
Kojto 90:cb3d968589d8 1957 #define DMA_CSR_ACTIVE_SHIFT 6
Kojto 90:cb3d968589d8 1958 #define DMA_CSR_DONE_MASK 0x80u
Kojto 90:cb3d968589d8 1959 #define DMA_CSR_DONE_SHIFT 7
Kojto 90:cb3d968589d8 1960 #define DMA_CSR_MAJORLINKCH_MASK 0xF00u
Kojto 90:cb3d968589d8 1961 #define DMA_CSR_MAJORLINKCH_SHIFT 8
Kojto 90:cb3d968589d8 1962 #define DMA_CSR_MAJORLINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_CSR_MAJORLINKCH_SHIFT))&DMA_CSR_MAJORLINKCH_MASK)
Kojto 90:cb3d968589d8 1963 #define DMA_CSR_BWC_MASK 0xC000u
Kojto 90:cb3d968589d8 1964 #define DMA_CSR_BWC_SHIFT 14
Kojto 90:cb3d968589d8 1965 #define DMA_CSR_BWC(x) (((uint16_t)(((uint16_t)(x))<<DMA_CSR_BWC_SHIFT))&DMA_CSR_BWC_MASK)
Kojto 90:cb3d968589d8 1966 /* BITER_ELINKNO Bit Fields */
Kojto 90:cb3d968589d8 1967 #define DMA_BITER_ELINKNO_BITER_MASK 0x7FFFu
Kojto 90:cb3d968589d8 1968 #define DMA_BITER_ELINKNO_BITER_SHIFT 0
Kojto 90:cb3d968589d8 1969 #define DMA_BITER_ELINKNO_BITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKNO_BITER_SHIFT))&DMA_BITER_ELINKNO_BITER_MASK)
Kojto 90:cb3d968589d8 1970 #define DMA_BITER_ELINKNO_ELINK_MASK 0x8000u
Kojto 90:cb3d968589d8 1971 #define DMA_BITER_ELINKNO_ELINK_SHIFT 15
Kojto 90:cb3d968589d8 1972 /* BITER_ELINKYES Bit Fields */
Kojto 90:cb3d968589d8 1973 #define DMA_BITER_ELINKYES_BITER_MASK 0x1FFu
Kojto 90:cb3d968589d8 1974 #define DMA_BITER_ELINKYES_BITER_SHIFT 0
Kojto 90:cb3d968589d8 1975 #define DMA_BITER_ELINKYES_BITER(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKYES_BITER_SHIFT))&DMA_BITER_ELINKYES_BITER_MASK)
Kojto 90:cb3d968589d8 1976 #define DMA_BITER_ELINKYES_LINKCH_MASK 0x1E00u
Kojto 90:cb3d968589d8 1977 #define DMA_BITER_ELINKYES_LINKCH_SHIFT 9
Kojto 90:cb3d968589d8 1978 #define DMA_BITER_ELINKYES_LINKCH(x) (((uint16_t)(((uint16_t)(x))<<DMA_BITER_ELINKYES_LINKCH_SHIFT))&DMA_BITER_ELINKYES_LINKCH_MASK)
Kojto 90:cb3d968589d8 1979 #define DMA_BITER_ELINKYES_ELINK_MASK 0x8000u
Kojto 90:cb3d968589d8 1980 #define DMA_BITER_ELINKYES_ELINK_SHIFT 15
Kojto 90:cb3d968589d8 1981
Kojto 90:cb3d968589d8 1982 /*!
Kojto 90:cb3d968589d8 1983 * @}
Kojto 90:cb3d968589d8 1984 */ /* end of group DMA_Register_Masks */
Kojto 90:cb3d968589d8 1985
Kojto 90:cb3d968589d8 1986
Kojto 90:cb3d968589d8 1987 /* DMA - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 1988 /** Peripheral DMA base address */
Kojto 90:cb3d968589d8 1989 #define DMA_BASE (0x40008000u)
Kojto 90:cb3d968589d8 1990 /** Peripheral DMA base pointer */
Kojto 90:cb3d968589d8 1991 #define DMA0 ((DMA_Type *)DMA_BASE)
Kojto 90:cb3d968589d8 1992 #define DMA_BASE_PTR (DMA0)
Kojto 90:cb3d968589d8 1993 /** Array initializer of DMA peripheral base addresses */
Kojto 90:cb3d968589d8 1994 #define DMA_BASE_ADDRS { DMA_BASE }
Kojto 90:cb3d968589d8 1995 /** Array initializer of DMA peripheral base pointers */
Kojto 90:cb3d968589d8 1996 #define DMA_BASE_PTRS { DMA0 }
Kojto 90:cb3d968589d8 1997 /** Interrupt vectors for the DMA peripheral type */
Kojto 90:cb3d968589d8 1998 #define DMA_CHN_IRQS { DMA0_IRQn, DMA1_IRQn, DMA2_IRQn, DMA3_IRQn, DMA4_IRQn, DMA5_IRQn, DMA6_IRQn, DMA7_IRQn, DMA8_IRQn, DMA9_IRQn, DMA10_IRQn, DMA11_IRQn, DMA12_IRQn, DMA13_IRQn, DMA14_IRQn, DMA15_IRQn }
Kojto 90:cb3d968589d8 1999 #define DMA_ERROR_IRQS { DMA_Error_IRQn }
Kojto 90:cb3d968589d8 2000
Kojto 90:cb3d968589d8 2001 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2002 -- DMA - Register accessor macros
Kojto 90:cb3d968589d8 2003 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2004
Kojto 90:cb3d968589d8 2005 /*!
Kojto 90:cb3d968589d8 2006 * @addtogroup DMA_Register_Accessor_Macros DMA - Register accessor macros
Kojto 90:cb3d968589d8 2007 * @{
Kojto 90:cb3d968589d8 2008 */
Kojto 90:cb3d968589d8 2009
Kojto 90:cb3d968589d8 2010
Kojto 90:cb3d968589d8 2011 /* DMA - Register instance definitions */
Kojto 90:cb3d968589d8 2012 /* DMA */
Kojto 90:cb3d968589d8 2013 #define DMA_CR DMA_CR_REG(DMA0)
Kojto 90:cb3d968589d8 2014 #define DMA_ES DMA_ES_REG(DMA0)
Kojto 90:cb3d968589d8 2015 #define DMA_ERQ DMA_ERQ_REG(DMA0)
Kojto 90:cb3d968589d8 2016 #define DMA_EEI DMA_EEI_REG(DMA0)
Kojto 90:cb3d968589d8 2017 #define DMA_CEEI DMA_CEEI_REG(DMA0)
Kojto 90:cb3d968589d8 2018 #define DMA_SEEI DMA_SEEI_REG(DMA0)
Kojto 90:cb3d968589d8 2019 #define DMA_CERQ DMA_CERQ_REG(DMA0)
Kojto 90:cb3d968589d8 2020 #define DMA_SERQ DMA_SERQ_REG(DMA0)
Kojto 90:cb3d968589d8 2021 #define DMA_CDNE DMA_CDNE_REG(DMA0)
Kojto 90:cb3d968589d8 2022 #define DMA_SSRT DMA_SSRT_REG(DMA0)
Kojto 90:cb3d968589d8 2023 #define DMA_CERR DMA_CERR_REG(DMA0)
Kojto 90:cb3d968589d8 2024 #define DMA_CINT DMA_CINT_REG(DMA0)
Kojto 90:cb3d968589d8 2025 #define DMA_INT DMA_INT_REG(DMA0)
Kojto 90:cb3d968589d8 2026 #define DMA_ERR DMA_ERR_REG(DMA0)
Kojto 90:cb3d968589d8 2027 #define DMA_HRS DMA_HRS_REG(DMA0)
Kojto 90:cb3d968589d8 2028 #define DMA_EARS DMA_EARS_REG(DMA0)
Kojto 90:cb3d968589d8 2029 #define DMA_DCHPRI3 DMA_DCHPRI3_REG(DMA0)
Kojto 90:cb3d968589d8 2030 #define DMA_DCHPRI2 DMA_DCHPRI2_REG(DMA0)
Kojto 90:cb3d968589d8 2031 #define DMA_DCHPRI1 DMA_DCHPRI1_REG(DMA0)
Kojto 90:cb3d968589d8 2032 #define DMA_DCHPRI0 DMA_DCHPRI0_REG(DMA0)
Kojto 90:cb3d968589d8 2033 #define DMA_DCHPRI7 DMA_DCHPRI7_REG(DMA0)
Kojto 90:cb3d968589d8 2034 #define DMA_DCHPRI6 DMA_DCHPRI6_REG(DMA0)
Kojto 90:cb3d968589d8 2035 #define DMA_DCHPRI5 DMA_DCHPRI5_REG(DMA0)
Kojto 90:cb3d968589d8 2036 #define DMA_DCHPRI4 DMA_DCHPRI4_REG(DMA0)
Kojto 90:cb3d968589d8 2037 #define DMA_DCHPRI11 DMA_DCHPRI11_REG(DMA0)
Kojto 90:cb3d968589d8 2038 #define DMA_DCHPRI10 DMA_DCHPRI10_REG(DMA0)
Kojto 90:cb3d968589d8 2039 #define DMA_DCHPRI9 DMA_DCHPRI9_REG(DMA0)
Kojto 90:cb3d968589d8 2040 #define DMA_DCHPRI8 DMA_DCHPRI8_REG(DMA0)
Kojto 90:cb3d968589d8 2041 #define DMA_DCHPRI15 DMA_DCHPRI15_REG(DMA0)
Kojto 90:cb3d968589d8 2042 #define DMA_DCHPRI14 DMA_DCHPRI14_REG(DMA0)
Kojto 90:cb3d968589d8 2043 #define DMA_DCHPRI13 DMA_DCHPRI13_REG(DMA0)
Kojto 90:cb3d968589d8 2044 #define DMA_DCHPRI12 DMA_DCHPRI12_REG(DMA0)
Kojto 90:cb3d968589d8 2045 #define DMA_TCD0_SADDR DMA_SADDR_REG(DMA0,0)
Kojto 90:cb3d968589d8 2046 #define DMA_TCD0_SOFF DMA_SOFF_REG(DMA0,0)
Kojto 90:cb3d968589d8 2047 #define DMA_TCD0_ATTR DMA_ATTR_REG(DMA0,0)
Kojto 90:cb3d968589d8 2048 #define DMA_TCD0_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,0)
Kojto 90:cb3d968589d8 2049 #define DMA_TCD0_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,0)
Kojto 90:cb3d968589d8 2050 #define DMA_TCD0_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,0)
Kojto 90:cb3d968589d8 2051 #define DMA_TCD0_SLAST DMA_SLAST_REG(DMA0,0)
Kojto 90:cb3d968589d8 2052 #define DMA_TCD0_DADDR DMA_DADDR_REG(DMA0,0)
Kojto 90:cb3d968589d8 2053 #define DMA_TCD0_DOFF DMA_DOFF_REG(DMA0,0)
Kojto 90:cb3d968589d8 2054 #define DMA_TCD0_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,0)
Kojto 90:cb3d968589d8 2055 #define DMA_TCD0_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,0)
Kojto 90:cb3d968589d8 2056 #define DMA_TCD0_DLASTSGA DMA_DLAST_SGA_REG(DMA0,0)
Kojto 90:cb3d968589d8 2057 #define DMA_TCD0_CSR DMA_CSR_REG(DMA0,0)
Kojto 90:cb3d968589d8 2058 #define DMA_TCD0_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,0)
Kojto 90:cb3d968589d8 2059 #define DMA_TCD0_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,0)
Kojto 90:cb3d968589d8 2060 #define DMA_TCD1_SADDR DMA_SADDR_REG(DMA0,1)
Kojto 90:cb3d968589d8 2061 #define DMA_TCD1_SOFF DMA_SOFF_REG(DMA0,1)
Kojto 90:cb3d968589d8 2062 #define DMA_TCD1_ATTR DMA_ATTR_REG(DMA0,1)
Kojto 90:cb3d968589d8 2063 #define DMA_TCD1_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,1)
Kojto 90:cb3d968589d8 2064 #define DMA_TCD1_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,1)
Kojto 90:cb3d968589d8 2065 #define DMA_TCD1_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,1)
Kojto 90:cb3d968589d8 2066 #define DMA_TCD1_SLAST DMA_SLAST_REG(DMA0,1)
Kojto 90:cb3d968589d8 2067 #define DMA_TCD1_DADDR DMA_DADDR_REG(DMA0,1)
Kojto 90:cb3d968589d8 2068 #define DMA_TCD1_DOFF DMA_DOFF_REG(DMA0,1)
Kojto 90:cb3d968589d8 2069 #define DMA_TCD1_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,1)
Kojto 90:cb3d968589d8 2070 #define DMA_TCD1_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,1)
Kojto 90:cb3d968589d8 2071 #define DMA_TCD1_DLASTSGA DMA_DLAST_SGA_REG(DMA0,1)
Kojto 90:cb3d968589d8 2072 #define DMA_TCD1_CSR DMA_CSR_REG(DMA0,1)
Kojto 90:cb3d968589d8 2073 #define DMA_TCD1_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,1)
Kojto 90:cb3d968589d8 2074 #define DMA_TCD1_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,1)
Kojto 90:cb3d968589d8 2075 #define DMA_TCD2_SADDR DMA_SADDR_REG(DMA0,2)
Kojto 90:cb3d968589d8 2076 #define DMA_TCD2_SOFF DMA_SOFF_REG(DMA0,2)
Kojto 90:cb3d968589d8 2077 #define DMA_TCD2_ATTR DMA_ATTR_REG(DMA0,2)
Kojto 90:cb3d968589d8 2078 #define DMA_TCD2_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,2)
Kojto 90:cb3d968589d8 2079 #define DMA_TCD2_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,2)
Kojto 90:cb3d968589d8 2080 #define DMA_TCD2_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,2)
Kojto 90:cb3d968589d8 2081 #define DMA_TCD2_SLAST DMA_SLAST_REG(DMA0,2)
Kojto 90:cb3d968589d8 2082 #define DMA_TCD2_DADDR DMA_DADDR_REG(DMA0,2)
Kojto 90:cb3d968589d8 2083 #define DMA_TCD2_DOFF DMA_DOFF_REG(DMA0,2)
Kojto 90:cb3d968589d8 2084 #define DMA_TCD2_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,2)
Kojto 90:cb3d968589d8 2085 #define DMA_TCD2_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,2)
Kojto 90:cb3d968589d8 2086 #define DMA_TCD2_DLASTSGA DMA_DLAST_SGA_REG(DMA0,2)
Kojto 90:cb3d968589d8 2087 #define DMA_TCD2_CSR DMA_CSR_REG(DMA0,2)
Kojto 90:cb3d968589d8 2088 #define DMA_TCD2_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,2)
Kojto 90:cb3d968589d8 2089 #define DMA_TCD2_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,2)
Kojto 90:cb3d968589d8 2090 #define DMA_TCD3_SADDR DMA_SADDR_REG(DMA0,3)
Kojto 90:cb3d968589d8 2091 #define DMA_TCD3_SOFF DMA_SOFF_REG(DMA0,3)
Kojto 90:cb3d968589d8 2092 #define DMA_TCD3_ATTR DMA_ATTR_REG(DMA0,3)
Kojto 90:cb3d968589d8 2093 #define DMA_TCD3_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,3)
Kojto 90:cb3d968589d8 2094 #define DMA_TCD3_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,3)
Kojto 90:cb3d968589d8 2095 #define DMA_TCD3_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,3)
Kojto 90:cb3d968589d8 2096 #define DMA_TCD3_SLAST DMA_SLAST_REG(DMA0,3)
Kojto 90:cb3d968589d8 2097 #define DMA_TCD3_DADDR DMA_DADDR_REG(DMA0,3)
Kojto 90:cb3d968589d8 2098 #define DMA_TCD3_DOFF DMA_DOFF_REG(DMA0,3)
Kojto 90:cb3d968589d8 2099 #define DMA_TCD3_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,3)
Kojto 90:cb3d968589d8 2100 #define DMA_TCD3_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,3)
Kojto 90:cb3d968589d8 2101 #define DMA_TCD3_DLASTSGA DMA_DLAST_SGA_REG(DMA0,3)
Kojto 90:cb3d968589d8 2102 #define DMA_TCD3_CSR DMA_CSR_REG(DMA0,3)
Kojto 90:cb3d968589d8 2103 #define DMA_TCD3_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,3)
Kojto 90:cb3d968589d8 2104 #define DMA_TCD3_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,3)
Kojto 90:cb3d968589d8 2105 #define DMA_TCD4_SADDR DMA_SADDR_REG(DMA0,4)
Kojto 90:cb3d968589d8 2106 #define DMA_TCD4_SOFF DMA_SOFF_REG(DMA0,4)
Kojto 90:cb3d968589d8 2107 #define DMA_TCD4_ATTR DMA_ATTR_REG(DMA0,4)
Kojto 90:cb3d968589d8 2108 #define DMA_TCD4_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,4)
Kojto 90:cb3d968589d8 2109 #define DMA_TCD4_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,4)
Kojto 90:cb3d968589d8 2110 #define DMA_TCD4_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,4)
Kojto 90:cb3d968589d8 2111 #define DMA_TCD4_SLAST DMA_SLAST_REG(DMA0,4)
Kojto 90:cb3d968589d8 2112 #define DMA_TCD4_DADDR DMA_DADDR_REG(DMA0,4)
Kojto 90:cb3d968589d8 2113 #define DMA_TCD4_DOFF DMA_DOFF_REG(DMA0,4)
Kojto 90:cb3d968589d8 2114 #define DMA_TCD4_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,4)
Kojto 90:cb3d968589d8 2115 #define DMA_TCD4_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,4)
Kojto 90:cb3d968589d8 2116 #define DMA_TCD4_DLASTSGA DMA_DLAST_SGA_REG(DMA0,4)
Kojto 90:cb3d968589d8 2117 #define DMA_TCD4_CSR DMA_CSR_REG(DMA0,4)
Kojto 90:cb3d968589d8 2118 #define DMA_TCD4_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,4)
Kojto 90:cb3d968589d8 2119 #define DMA_TCD4_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,4)
Kojto 90:cb3d968589d8 2120 #define DMA_TCD5_SADDR DMA_SADDR_REG(DMA0,5)
Kojto 90:cb3d968589d8 2121 #define DMA_TCD5_SOFF DMA_SOFF_REG(DMA0,5)
Kojto 90:cb3d968589d8 2122 #define DMA_TCD5_ATTR DMA_ATTR_REG(DMA0,5)
Kojto 90:cb3d968589d8 2123 #define DMA_TCD5_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,5)
Kojto 90:cb3d968589d8 2124 #define DMA_TCD5_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,5)
Kojto 90:cb3d968589d8 2125 #define DMA_TCD5_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,5)
Kojto 90:cb3d968589d8 2126 #define DMA_TCD5_SLAST DMA_SLAST_REG(DMA0,5)
Kojto 90:cb3d968589d8 2127 #define DMA_TCD5_DADDR DMA_DADDR_REG(DMA0,5)
Kojto 90:cb3d968589d8 2128 #define DMA_TCD5_DOFF DMA_DOFF_REG(DMA0,5)
Kojto 90:cb3d968589d8 2129 #define DMA_TCD5_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,5)
Kojto 90:cb3d968589d8 2130 #define DMA_TCD5_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,5)
Kojto 90:cb3d968589d8 2131 #define DMA_TCD5_DLASTSGA DMA_DLAST_SGA_REG(DMA0,5)
Kojto 90:cb3d968589d8 2132 #define DMA_TCD5_CSR DMA_CSR_REG(DMA0,5)
Kojto 90:cb3d968589d8 2133 #define DMA_TCD5_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,5)
Kojto 90:cb3d968589d8 2134 #define DMA_TCD5_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,5)
Kojto 90:cb3d968589d8 2135 #define DMA_TCD6_SADDR DMA_SADDR_REG(DMA0,6)
Kojto 90:cb3d968589d8 2136 #define DMA_TCD6_SOFF DMA_SOFF_REG(DMA0,6)
Kojto 90:cb3d968589d8 2137 #define DMA_TCD6_ATTR DMA_ATTR_REG(DMA0,6)
Kojto 90:cb3d968589d8 2138 #define DMA_TCD6_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,6)
Kojto 90:cb3d968589d8 2139 #define DMA_TCD6_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,6)
Kojto 90:cb3d968589d8 2140 #define DMA_TCD6_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,6)
Kojto 90:cb3d968589d8 2141 #define DMA_TCD6_SLAST DMA_SLAST_REG(DMA0,6)
Kojto 90:cb3d968589d8 2142 #define DMA_TCD6_DADDR DMA_DADDR_REG(DMA0,6)
Kojto 90:cb3d968589d8 2143 #define DMA_TCD6_DOFF DMA_DOFF_REG(DMA0,6)
Kojto 90:cb3d968589d8 2144 #define DMA_TCD6_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,6)
Kojto 90:cb3d968589d8 2145 #define DMA_TCD6_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,6)
Kojto 90:cb3d968589d8 2146 #define DMA_TCD6_DLASTSGA DMA_DLAST_SGA_REG(DMA0,6)
Kojto 90:cb3d968589d8 2147 #define DMA_TCD6_CSR DMA_CSR_REG(DMA0,6)
Kojto 90:cb3d968589d8 2148 #define DMA_TCD6_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,6)
Kojto 90:cb3d968589d8 2149 #define DMA_TCD6_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,6)
Kojto 90:cb3d968589d8 2150 #define DMA_TCD7_SADDR DMA_SADDR_REG(DMA0,7)
Kojto 90:cb3d968589d8 2151 #define DMA_TCD7_SOFF DMA_SOFF_REG(DMA0,7)
Kojto 90:cb3d968589d8 2152 #define DMA_TCD7_ATTR DMA_ATTR_REG(DMA0,7)
Kojto 90:cb3d968589d8 2153 #define DMA_TCD7_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,7)
Kojto 90:cb3d968589d8 2154 #define DMA_TCD7_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,7)
Kojto 90:cb3d968589d8 2155 #define DMA_TCD7_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,7)
Kojto 90:cb3d968589d8 2156 #define DMA_TCD7_SLAST DMA_SLAST_REG(DMA0,7)
Kojto 90:cb3d968589d8 2157 #define DMA_TCD7_DADDR DMA_DADDR_REG(DMA0,7)
Kojto 90:cb3d968589d8 2158 #define DMA_TCD7_DOFF DMA_DOFF_REG(DMA0,7)
Kojto 90:cb3d968589d8 2159 #define DMA_TCD7_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,7)
Kojto 90:cb3d968589d8 2160 #define DMA_TCD7_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,7)
Kojto 90:cb3d968589d8 2161 #define DMA_TCD7_DLASTSGA DMA_DLAST_SGA_REG(DMA0,7)
Kojto 90:cb3d968589d8 2162 #define DMA_TCD7_CSR DMA_CSR_REG(DMA0,7)
Kojto 90:cb3d968589d8 2163 #define DMA_TCD7_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,7)
Kojto 90:cb3d968589d8 2164 #define DMA_TCD7_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,7)
Kojto 90:cb3d968589d8 2165 #define DMA_TCD8_SADDR DMA_SADDR_REG(DMA0,8)
Kojto 90:cb3d968589d8 2166 #define DMA_TCD8_SOFF DMA_SOFF_REG(DMA0,8)
Kojto 90:cb3d968589d8 2167 #define DMA_TCD8_ATTR DMA_ATTR_REG(DMA0,8)
Kojto 90:cb3d968589d8 2168 #define DMA_TCD8_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,8)
Kojto 90:cb3d968589d8 2169 #define DMA_TCD8_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,8)
Kojto 90:cb3d968589d8 2170 #define DMA_TCD8_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,8)
Kojto 90:cb3d968589d8 2171 #define DMA_TCD8_SLAST DMA_SLAST_REG(DMA0,8)
Kojto 90:cb3d968589d8 2172 #define DMA_TCD8_DADDR DMA_DADDR_REG(DMA0,8)
Kojto 90:cb3d968589d8 2173 #define DMA_TCD8_DOFF DMA_DOFF_REG(DMA0,8)
Kojto 90:cb3d968589d8 2174 #define DMA_TCD8_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,8)
Kojto 90:cb3d968589d8 2175 #define DMA_TCD8_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,8)
Kojto 90:cb3d968589d8 2176 #define DMA_TCD8_DLASTSGA DMA_DLAST_SGA_REG(DMA0,8)
Kojto 90:cb3d968589d8 2177 #define DMA_TCD8_CSR DMA_CSR_REG(DMA0,8)
Kojto 90:cb3d968589d8 2178 #define DMA_TCD8_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,8)
Kojto 90:cb3d968589d8 2179 #define DMA_TCD8_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,8)
Kojto 90:cb3d968589d8 2180 #define DMA_TCD9_SADDR DMA_SADDR_REG(DMA0,9)
Kojto 90:cb3d968589d8 2181 #define DMA_TCD9_SOFF DMA_SOFF_REG(DMA0,9)
Kojto 90:cb3d968589d8 2182 #define DMA_TCD9_ATTR DMA_ATTR_REG(DMA0,9)
Kojto 90:cb3d968589d8 2183 #define DMA_TCD9_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,9)
Kojto 90:cb3d968589d8 2184 #define DMA_TCD9_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,9)
Kojto 90:cb3d968589d8 2185 #define DMA_TCD9_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,9)
Kojto 90:cb3d968589d8 2186 #define DMA_TCD9_SLAST DMA_SLAST_REG(DMA0,9)
Kojto 90:cb3d968589d8 2187 #define DMA_TCD9_DADDR DMA_DADDR_REG(DMA0,9)
Kojto 90:cb3d968589d8 2188 #define DMA_TCD9_DOFF DMA_DOFF_REG(DMA0,9)
Kojto 90:cb3d968589d8 2189 #define DMA_TCD9_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,9)
Kojto 90:cb3d968589d8 2190 #define DMA_TCD9_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,9)
Kojto 90:cb3d968589d8 2191 #define DMA_TCD9_DLASTSGA DMA_DLAST_SGA_REG(DMA0,9)
Kojto 90:cb3d968589d8 2192 #define DMA_TCD9_CSR DMA_CSR_REG(DMA0,9)
Kojto 90:cb3d968589d8 2193 #define DMA_TCD9_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,9)
Kojto 90:cb3d968589d8 2194 #define DMA_TCD9_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,9)
Kojto 90:cb3d968589d8 2195 #define DMA_TCD10_SADDR DMA_SADDR_REG(DMA0,10)
Kojto 90:cb3d968589d8 2196 #define DMA_TCD10_SOFF DMA_SOFF_REG(DMA0,10)
Kojto 90:cb3d968589d8 2197 #define DMA_TCD10_ATTR DMA_ATTR_REG(DMA0,10)
Kojto 90:cb3d968589d8 2198 #define DMA_TCD10_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,10)
Kojto 90:cb3d968589d8 2199 #define DMA_TCD10_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,10)
Kojto 90:cb3d968589d8 2200 #define DMA_TCD10_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,10)
Kojto 90:cb3d968589d8 2201 #define DMA_TCD10_SLAST DMA_SLAST_REG(DMA0,10)
Kojto 90:cb3d968589d8 2202 #define DMA_TCD10_DADDR DMA_DADDR_REG(DMA0,10)
Kojto 90:cb3d968589d8 2203 #define DMA_TCD10_DOFF DMA_DOFF_REG(DMA0,10)
Kojto 90:cb3d968589d8 2204 #define DMA_TCD10_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,10)
Kojto 90:cb3d968589d8 2205 #define DMA_TCD10_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,10)
Kojto 90:cb3d968589d8 2206 #define DMA_TCD10_DLASTSGA DMA_DLAST_SGA_REG(DMA0,10)
Kojto 90:cb3d968589d8 2207 #define DMA_TCD10_CSR DMA_CSR_REG(DMA0,10)
Kojto 90:cb3d968589d8 2208 #define DMA_TCD10_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,10)
Kojto 90:cb3d968589d8 2209 #define DMA_TCD10_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,10)
Kojto 90:cb3d968589d8 2210 #define DMA_TCD11_SADDR DMA_SADDR_REG(DMA0,11)
Kojto 90:cb3d968589d8 2211 #define DMA_TCD11_SOFF DMA_SOFF_REG(DMA0,11)
Kojto 90:cb3d968589d8 2212 #define DMA_TCD11_ATTR DMA_ATTR_REG(DMA0,11)
Kojto 90:cb3d968589d8 2213 #define DMA_TCD11_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,11)
Kojto 90:cb3d968589d8 2214 #define DMA_TCD11_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,11)
Kojto 90:cb3d968589d8 2215 #define DMA_TCD11_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,11)
Kojto 90:cb3d968589d8 2216 #define DMA_TCD11_SLAST DMA_SLAST_REG(DMA0,11)
Kojto 90:cb3d968589d8 2217 #define DMA_TCD11_DADDR DMA_DADDR_REG(DMA0,11)
Kojto 90:cb3d968589d8 2218 #define DMA_TCD11_DOFF DMA_DOFF_REG(DMA0,11)
Kojto 90:cb3d968589d8 2219 #define DMA_TCD11_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,11)
Kojto 90:cb3d968589d8 2220 #define DMA_TCD11_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,11)
Kojto 90:cb3d968589d8 2221 #define DMA_TCD11_DLASTSGA DMA_DLAST_SGA_REG(DMA0,11)
Kojto 90:cb3d968589d8 2222 #define DMA_TCD11_CSR DMA_CSR_REG(DMA0,11)
Kojto 90:cb3d968589d8 2223 #define DMA_TCD11_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,11)
Kojto 90:cb3d968589d8 2224 #define DMA_TCD11_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,11)
Kojto 90:cb3d968589d8 2225 #define DMA_TCD12_SADDR DMA_SADDR_REG(DMA0,12)
Kojto 90:cb3d968589d8 2226 #define DMA_TCD12_SOFF DMA_SOFF_REG(DMA0,12)
Kojto 90:cb3d968589d8 2227 #define DMA_TCD12_ATTR DMA_ATTR_REG(DMA0,12)
Kojto 90:cb3d968589d8 2228 #define DMA_TCD12_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,12)
Kojto 90:cb3d968589d8 2229 #define DMA_TCD12_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,12)
Kojto 90:cb3d968589d8 2230 #define DMA_TCD12_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,12)
Kojto 90:cb3d968589d8 2231 #define DMA_TCD12_SLAST DMA_SLAST_REG(DMA0,12)
Kojto 90:cb3d968589d8 2232 #define DMA_TCD12_DADDR DMA_DADDR_REG(DMA0,12)
Kojto 90:cb3d968589d8 2233 #define DMA_TCD12_DOFF DMA_DOFF_REG(DMA0,12)
Kojto 90:cb3d968589d8 2234 #define DMA_TCD12_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,12)
Kojto 90:cb3d968589d8 2235 #define DMA_TCD12_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,12)
Kojto 90:cb3d968589d8 2236 #define DMA_TCD12_DLASTSGA DMA_DLAST_SGA_REG(DMA0,12)
Kojto 90:cb3d968589d8 2237 #define DMA_TCD12_CSR DMA_CSR_REG(DMA0,12)
Kojto 90:cb3d968589d8 2238 #define DMA_TCD12_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,12)
Kojto 90:cb3d968589d8 2239 #define DMA_TCD12_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,12)
Kojto 90:cb3d968589d8 2240 #define DMA_TCD13_SADDR DMA_SADDR_REG(DMA0,13)
Kojto 90:cb3d968589d8 2241 #define DMA_TCD13_SOFF DMA_SOFF_REG(DMA0,13)
Kojto 90:cb3d968589d8 2242 #define DMA_TCD13_ATTR DMA_ATTR_REG(DMA0,13)
Kojto 90:cb3d968589d8 2243 #define DMA_TCD13_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,13)
Kojto 90:cb3d968589d8 2244 #define DMA_TCD13_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,13)
Kojto 90:cb3d968589d8 2245 #define DMA_TCD13_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,13)
Kojto 90:cb3d968589d8 2246 #define DMA_TCD13_SLAST DMA_SLAST_REG(DMA0,13)
Kojto 90:cb3d968589d8 2247 #define DMA_TCD13_DADDR DMA_DADDR_REG(DMA0,13)
Kojto 90:cb3d968589d8 2248 #define DMA_TCD13_DOFF DMA_DOFF_REG(DMA0,13)
Kojto 90:cb3d968589d8 2249 #define DMA_TCD13_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,13)
Kojto 90:cb3d968589d8 2250 #define DMA_TCD13_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,13)
Kojto 90:cb3d968589d8 2251 #define DMA_TCD13_DLASTSGA DMA_DLAST_SGA_REG(DMA0,13)
Kojto 90:cb3d968589d8 2252 #define DMA_TCD13_CSR DMA_CSR_REG(DMA0,13)
Kojto 90:cb3d968589d8 2253 #define DMA_TCD13_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,13)
Kojto 90:cb3d968589d8 2254 #define DMA_TCD13_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,13)
Kojto 90:cb3d968589d8 2255 #define DMA_TCD14_SADDR DMA_SADDR_REG(DMA0,14)
Kojto 90:cb3d968589d8 2256 #define DMA_TCD14_SOFF DMA_SOFF_REG(DMA0,14)
Kojto 90:cb3d968589d8 2257 #define DMA_TCD14_ATTR DMA_ATTR_REG(DMA0,14)
Kojto 90:cb3d968589d8 2258 #define DMA_TCD14_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,14)
Kojto 90:cb3d968589d8 2259 #define DMA_TCD14_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,14)
Kojto 90:cb3d968589d8 2260 #define DMA_TCD14_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,14)
Kojto 90:cb3d968589d8 2261 #define DMA_TCD14_SLAST DMA_SLAST_REG(DMA0,14)
Kojto 90:cb3d968589d8 2262 #define DMA_TCD14_DADDR DMA_DADDR_REG(DMA0,14)
Kojto 90:cb3d968589d8 2263 #define DMA_TCD14_DOFF DMA_DOFF_REG(DMA0,14)
Kojto 90:cb3d968589d8 2264 #define DMA_TCD14_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,14)
Kojto 90:cb3d968589d8 2265 #define DMA_TCD14_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,14)
Kojto 90:cb3d968589d8 2266 #define DMA_TCD14_DLASTSGA DMA_DLAST_SGA_REG(DMA0,14)
Kojto 90:cb3d968589d8 2267 #define DMA_TCD14_CSR DMA_CSR_REG(DMA0,14)
Kojto 90:cb3d968589d8 2268 #define DMA_TCD14_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,14)
Kojto 90:cb3d968589d8 2269 #define DMA_TCD14_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,14)
Kojto 90:cb3d968589d8 2270 #define DMA_TCD15_SADDR DMA_SADDR_REG(DMA0,15)
Kojto 90:cb3d968589d8 2271 #define DMA_TCD15_SOFF DMA_SOFF_REG(DMA0,15)
Kojto 90:cb3d968589d8 2272 #define DMA_TCD15_ATTR DMA_ATTR_REG(DMA0,15)
Kojto 90:cb3d968589d8 2273 #define DMA_TCD15_NBYTES_MLNO DMA_NBYTES_MLNO_REG(DMA0,15)
Kojto 90:cb3d968589d8 2274 #define DMA_TCD15_NBYTES_MLOFFNO DMA_NBYTES_MLOFFNO_REG(DMA0,15)
Kojto 90:cb3d968589d8 2275 #define DMA_TCD15_NBYTES_MLOFFYES DMA_NBYTES_MLOFFYES_REG(DMA0,15)
Kojto 90:cb3d968589d8 2276 #define DMA_TCD15_SLAST DMA_SLAST_REG(DMA0,15)
Kojto 90:cb3d968589d8 2277 #define DMA_TCD15_DADDR DMA_DADDR_REG(DMA0,15)
Kojto 90:cb3d968589d8 2278 #define DMA_TCD15_DOFF DMA_DOFF_REG(DMA0,15)
Kojto 90:cb3d968589d8 2279 #define DMA_TCD15_CITER_ELINKNO DMA_CITER_ELINKNO_REG(DMA0,15)
Kojto 90:cb3d968589d8 2280 #define DMA_TCD15_CITER_ELINKYES DMA_CITER_ELINKYES_REG(DMA0,15)
Kojto 90:cb3d968589d8 2281 #define DMA_TCD15_DLASTSGA DMA_DLAST_SGA_REG(DMA0,15)
Kojto 90:cb3d968589d8 2282 #define DMA_TCD15_CSR DMA_CSR_REG(DMA0,15)
Kojto 90:cb3d968589d8 2283 #define DMA_TCD15_BITER_ELINKNO DMA_BITER_ELINKNO_REG(DMA0,15)
Kojto 90:cb3d968589d8 2284 #define DMA_TCD15_BITER_ELINKYES DMA_BITER_ELINKYES_REG(DMA0,15)
Kojto 90:cb3d968589d8 2285
Kojto 90:cb3d968589d8 2286 /* DMA - Register array accessors */
Kojto 90:cb3d968589d8 2287 #define DMA_SADDR(index) DMA_SADDR_REG(DMA0,index)
Kojto 90:cb3d968589d8 2288 #define DMA_SOFF(index) DMA_SOFF_REG(DMA0,index)
Kojto 90:cb3d968589d8 2289 #define DMA_ATTR(index) DMA_ATTR_REG(DMA0,index)
Kojto 90:cb3d968589d8 2290 #define DMA_NBYTES_MLNO(index) DMA_NBYTES_MLNO_REG(DMA0,index)
Kojto 90:cb3d968589d8 2291 #define DMA_NBYTES_MLOFFNO(index) DMA_NBYTES_MLOFFNO_REG(DMA0,index)
Kojto 90:cb3d968589d8 2292 #define DMA_NBYTES_MLOFFYES(index) DMA_NBYTES_MLOFFYES_REG(DMA0,index)
Kojto 90:cb3d968589d8 2293 #define DMA_SLAST(index) DMA_SLAST_REG(DMA0,index)
Kojto 90:cb3d968589d8 2294 #define DMA_DADDR(index) DMA_DADDR_REG(DMA0,index)
Kojto 90:cb3d968589d8 2295 #define DMA_DOFF(index) DMA_DOFF_REG(DMA0,index)
Kojto 90:cb3d968589d8 2296 #define DMA_CITER_ELINKNO(index) DMA_CITER_ELINKNO_REG(DMA0,index)
Kojto 90:cb3d968589d8 2297 #define DMA_CITER_ELINKYES(index) DMA_CITER_ELINKYES_REG(DMA0,index)
Kojto 90:cb3d968589d8 2298 #define DMA_DLAST_SGA(index) DMA_DLAST_SGA_REG(DMA0,index)
Kojto 90:cb3d968589d8 2299 #define DMA_CSR(index) DMA_CSR_REG(DMA0,index)
Kojto 90:cb3d968589d8 2300 #define DMA_BITER_ELINKNO(index) DMA_BITER_ELINKNO_REG(DMA0,index)
Kojto 90:cb3d968589d8 2301 #define DMA_BITER_ELINKYES(index) DMA_BITER_ELINKYES_REG(DMA0,index)
Kojto 90:cb3d968589d8 2302
Kojto 90:cb3d968589d8 2303 /*!
Kojto 90:cb3d968589d8 2304 * @}
Kojto 90:cb3d968589d8 2305 */ /* end of group DMA_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 2306
Kojto 90:cb3d968589d8 2307
Kojto 90:cb3d968589d8 2308 /*!
Kojto 90:cb3d968589d8 2309 * @}
Kojto 90:cb3d968589d8 2310 */ /* end of group DMA_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 2311
Kojto 90:cb3d968589d8 2312
Kojto 90:cb3d968589d8 2313 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2314 -- DMAMUX Peripheral Access Layer
Kojto 90:cb3d968589d8 2315 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2316
Kojto 90:cb3d968589d8 2317 /*!
Kojto 90:cb3d968589d8 2318 * @addtogroup DMAMUX_Peripheral_Access_Layer DMAMUX Peripheral Access Layer
Kojto 90:cb3d968589d8 2319 * @{
Kojto 90:cb3d968589d8 2320 */
Kojto 90:cb3d968589d8 2321
Kojto 90:cb3d968589d8 2322 /** DMAMUX - Register Layout Typedef */
Kojto 90:cb3d968589d8 2323 typedef struct {
Kojto 90:cb3d968589d8 2324 __IO uint8_t CHCFG[16]; /**< Channel Configuration register, array offset: 0x0, array step: 0x1 */
Kojto 90:cb3d968589d8 2325 } DMAMUX_Type, *DMAMUX_MemMapPtr;
Kojto 90:cb3d968589d8 2326
Kojto 90:cb3d968589d8 2327 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2328 -- DMAMUX - Register accessor macros
Kojto 90:cb3d968589d8 2329 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2330
Kojto 90:cb3d968589d8 2331 /*!
Kojto 90:cb3d968589d8 2332 * @addtogroup DMAMUX_Register_Accessor_Macros DMAMUX - Register accessor macros
Kojto 90:cb3d968589d8 2333 * @{
Kojto 90:cb3d968589d8 2334 */
Kojto 90:cb3d968589d8 2335
Kojto 90:cb3d968589d8 2336
Kojto 90:cb3d968589d8 2337 /* DMAMUX - Register accessors */
Kojto 90:cb3d968589d8 2338 #define DMAMUX_CHCFG_REG(base,index) ((base)->CHCFG[index])
Kojto 90:cb3d968589d8 2339
Kojto 90:cb3d968589d8 2340 /*!
Kojto 90:cb3d968589d8 2341 * @}
Kojto 90:cb3d968589d8 2342 */ /* end of group DMAMUX_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 2343
Kojto 90:cb3d968589d8 2344
Kojto 90:cb3d968589d8 2345 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2346 -- DMAMUX Register Masks
Kojto 90:cb3d968589d8 2347 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2348
Kojto 90:cb3d968589d8 2349 /*!
Kojto 90:cb3d968589d8 2350 * @addtogroup DMAMUX_Register_Masks DMAMUX Register Masks
Kojto 90:cb3d968589d8 2351 * @{
Kojto 90:cb3d968589d8 2352 */
Kojto 90:cb3d968589d8 2353
Kojto 90:cb3d968589d8 2354 /* CHCFG Bit Fields */
Kojto 90:cb3d968589d8 2355 #define DMAMUX_CHCFG_SOURCE_MASK 0x3Fu
Kojto 90:cb3d968589d8 2356 #define DMAMUX_CHCFG_SOURCE_SHIFT 0
Kojto 90:cb3d968589d8 2357 #define DMAMUX_CHCFG_SOURCE(x) (((uint8_t)(((uint8_t)(x))<<DMAMUX_CHCFG_SOURCE_SHIFT))&DMAMUX_CHCFG_SOURCE_MASK)
Kojto 90:cb3d968589d8 2358 #define DMAMUX_CHCFG_TRIG_MASK 0x40u
Kojto 90:cb3d968589d8 2359 #define DMAMUX_CHCFG_TRIG_SHIFT 6
Kojto 90:cb3d968589d8 2360 #define DMAMUX_CHCFG_ENBL_MASK 0x80u
Kojto 90:cb3d968589d8 2361 #define DMAMUX_CHCFG_ENBL_SHIFT 7
Kojto 90:cb3d968589d8 2362
Kojto 90:cb3d968589d8 2363 /*!
Kojto 90:cb3d968589d8 2364 * @}
Kojto 90:cb3d968589d8 2365 */ /* end of group DMAMUX_Register_Masks */
Kojto 90:cb3d968589d8 2366
Kojto 90:cb3d968589d8 2367
Kojto 90:cb3d968589d8 2368 /* DMAMUX - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 2369 /** Peripheral DMAMUX base address */
Kojto 90:cb3d968589d8 2370 #define DMAMUX_BASE (0x40021000u)
Kojto 90:cb3d968589d8 2371 /** Peripheral DMAMUX base pointer */
Kojto 90:cb3d968589d8 2372 #define DMAMUX ((DMAMUX_Type *)DMAMUX_BASE)
Kojto 90:cb3d968589d8 2373 #define DMAMUX_BASE_PTR (DMAMUX)
Kojto 90:cb3d968589d8 2374 /** Array initializer of DMAMUX peripheral base addresses */
Kojto 90:cb3d968589d8 2375 #define DMAMUX_BASE_ADDRS { DMAMUX_BASE }
Kojto 90:cb3d968589d8 2376 /** Array initializer of DMAMUX peripheral base pointers */
Kojto 90:cb3d968589d8 2377 #define DMAMUX_BASE_PTRS { DMAMUX }
Kojto 90:cb3d968589d8 2378
Kojto 90:cb3d968589d8 2379 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2380 -- DMAMUX - Register accessor macros
Kojto 90:cb3d968589d8 2381 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2382
Kojto 90:cb3d968589d8 2383 /*!
Kojto 90:cb3d968589d8 2384 * @addtogroup DMAMUX_Register_Accessor_Macros DMAMUX - Register accessor macros
Kojto 90:cb3d968589d8 2385 * @{
Kojto 90:cb3d968589d8 2386 */
Kojto 90:cb3d968589d8 2387
Kojto 90:cb3d968589d8 2388
Kojto 90:cb3d968589d8 2389 /* DMAMUX - Register instance definitions */
Kojto 90:cb3d968589d8 2390 /* DMAMUX */
Kojto 90:cb3d968589d8 2391 #define DMAMUX_CHCFG0 DMAMUX_CHCFG_REG(DMAMUX,0)
Kojto 90:cb3d968589d8 2392 #define DMAMUX_CHCFG1 DMAMUX_CHCFG_REG(DMAMUX,1)
Kojto 90:cb3d968589d8 2393 #define DMAMUX_CHCFG2 DMAMUX_CHCFG_REG(DMAMUX,2)
Kojto 90:cb3d968589d8 2394 #define DMAMUX_CHCFG3 DMAMUX_CHCFG_REG(DMAMUX,3)
Kojto 90:cb3d968589d8 2395 #define DMAMUX_CHCFG4 DMAMUX_CHCFG_REG(DMAMUX,4)
Kojto 90:cb3d968589d8 2396 #define DMAMUX_CHCFG5 DMAMUX_CHCFG_REG(DMAMUX,5)
Kojto 90:cb3d968589d8 2397 #define DMAMUX_CHCFG6 DMAMUX_CHCFG_REG(DMAMUX,6)
Kojto 90:cb3d968589d8 2398 #define DMAMUX_CHCFG7 DMAMUX_CHCFG_REG(DMAMUX,7)
Kojto 90:cb3d968589d8 2399 #define DMAMUX_CHCFG8 DMAMUX_CHCFG_REG(DMAMUX,8)
Kojto 90:cb3d968589d8 2400 #define DMAMUX_CHCFG9 DMAMUX_CHCFG_REG(DMAMUX,9)
Kojto 90:cb3d968589d8 2401 #define DMAMUX_CHCFG10 DMAMUX_CHCFG_REG(DMAMUX,10)
Kojto 90:cb3d968589d8 2402 #define DMAMUX_CHCFG11 DMAMUX_CHCFG_REG(DMAMUX,11)
Kojto 90:cb3d968589d8 2403 #define DMAMUX_CHCFG12 DMAMUX_CHCFG_REG(DMAMUX,12)
Kojto 90:cb3d968589d8 2404 #define DMAMUX_CHCFG13 DMAMUX_CHCFG_REG(DMAMUX,13)
Kojto 90:cb3d968589d8 2405 #define DMAMUX_CHCFG14 DMAMUX_CHCFG_REG(DMAMUX,14)
Kojto 90:cb3d968589d8 2406 #define DMAMUX_CHCFG15 DMAMUX_CHCFG_REG(DMAMUX,15)
Kojto 90:cb3d968589d8 2407
Kojto 90:cb3d968589d8 2408 /* DMAMUX - Register array accessors */
Kojto 90:cb3d968589d8 2409 #define DMAMUX_CHCFG(index) DMAMUX_CHCFG_REG(DMAMUX,index)
Kojto 90:cb3d968589d8 2410
Kojto 90:cb3d968589d8 2411 /*!
Kojto 90:cb3d968589d8 2412 * @}
Kojto 90:cb3d968589d8 2413 */ /* end of group DMAMUX_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 2414
Kojto 90:cb3d968589d8 2415
Kojto 90:cb3d968589d8 2416 /*!
Kojto 90:cb3d968589d8 2417 * @}
Kojto 90:cb3d968589d8 2418 */ /* end of group DMAMUX_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 2419
Kojto 90:cb3d968589d8 2420
Kojto 90:cb3d968589d8 2421 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2422 -- EWM Peripheral Access Layer
Kojto 90:cb3d968589d8 2423 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2424
Kojto 90:cb3d968589d8 2425 /*!
Kojto 90:cb3d968589d8 2426 * @addtogroup EWM_Peripheral_Access_Layer EWM Peripheral Access Layer
Kojto 90:cb3d968589d8 2427 * @{
Kojto 90:cb3d968589d8 2428 */
Kojto 90:cb3d968589d8 2429
Kojto 90:cb3d968589d8 2430 /** EWM - Register Layout Typedef */
Kojto 90:cb3d968589d8 2431 typedef struct {
Kojto 90:cb3d968589d8 2432 __IO uint8_t CTRL; /**< Control Register, offset: 0x0 */
Kojto 90:cb3d968589d8 2433 __O uint8_t SERV; /**< Service Register, offset: 0x1 */
Kojto 90:cb3d968589d8 2434 __IO uint8_t CMPL; /**< Compare Low Register, offset: 0x2 */
Kojto 90:cb3d968589d8 2435 __IO uint8_t CMPH; /**< Compare High Register, offset: 0x3 */
Kojto 90:cb3d968589d8 2436 uint8_t RESERVED_0[1];
Kojto 90:cb3d968589d8 2437 __IO uint8_t CLKPRESCALER; /**< Clock Prescaler Register, offset: 0x5 */
Kojto 90:cb3d968589d8 2438 } EWM_Type, *EWM_MemMapPtr;
Kojto 90:cb3d968589d8 2439
Kojto 90:cb3d968589d8 2440 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2441 -- EWM - Register accessor macros
Kojto 90:cb3d968589d8 2442 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2443
Kojto 90:cb3d968589d8 2444 /*!
Kojto 90:cb3d968589d8 2445 * @addtogroup EWM_Register_Accessor_Macros EWM - Register accessor macros
Kojto 90:cb3d968589d8 2446 * @{
Kojto 90:cb3d968589d8 2447 */
Kojto 90:cb3d968589d8 2448
Kojto 90:cb3d968589d8 2449
Kojto 90:cb3d968589d8 2450 /* EWM - Register accessors */
Kojto 90:cb3d968589d8 2451 #define EWM_CTRL_REG(base) ((base)->CTRL)
Kojto 90:cb3d968589d8 2452 #define EWM_SERV_REG(base) ((base)->SERV)
Kojto 90:cb3d968589d8 2453 #define EWM_CMPL_REG(base) ((base)->CMPL)
Kojto 90:cb3d968589d8 2454 #define EWM_CMPH_REG(base) ((base)->CMPH)
Kojto 90:cb3d968589d8 2455 #define EWM_CLKPRESCALER_REG(base) ((base)->CLKPRESCALER)
Kojto 90:cb3d968589d8 2456
Kojto 90:cb3d968589d8 2457 /*!
Kojto 90:cb3d968589d8 2458 * @}
Kojto 90:cb3d968589d8 2459 */ /* end of group EWM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 2460
Kojto 90:cb3d968589d8 2461
Kojto 90:cb3d968589d8 2462 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2463 -- EWM Register Masks
Kojto 90:cb3d968589d8 2464 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2465
Kojto 90:cb3d968589d8 2466 /*!
Kojto 90:cb3d968589d8 2467 * @addtogroup EWM_Register_Masks EWM Register Masks
Kojto 90:cb3d968589d8 2468 * @{
Kojto 90:cb3d968589d8 2469 */
Kojto 90:cb3d968589d8 2470
Kojto 90:cb3d968589d8 2471 /* CTRL Bit Fields */
Kojto 90:cb3d968589d8 2472 #define EWM_CTRL_EWMEN_MASK 0x1u
Kojto 90:cb3d968589d8 2473 #define EWM_CTRL_EWMEN_SHIFT 0
Kojto 90:cb3d968589d8 2474 #define EWM_CTRL_ASSIN_MASK 0x2u
Kojto 90:cb3d968589d8 2475 #define EWM_CTRL_ASSIN_SHIFT 1
Kojto 90:cb3d968589d8 2476 #define EWM_CTRL_INEN_MASK 0x4u
Kojto 90:cb3d968589d8 2477 #define EWM_CTRL_INEN_SHIFT 2
Kojto 90:cb3d968589d8 2478 #define EWM_CTRL_INTEN_MASK 0x8u
Kojto 90:cb3d968589d8 2479 #define EWM_CTRL_INTEN_SHIFT 3
Kojto 90:cb3d968589d8 2480 /* SERV Bit Fields */
Kojto 90:cb3d968589d8 2481 #define EWM_SERV_SERVICE_MASK 0xFFu
Kojto 90:cb3d968589d8 2482 #define EWM_SERV_SERVICE_SHIFT 0
Kojto 90:cb3d968589d8 2483 #define EWM_SERV_SERVICE(x) (((uint8_t)(((uint8_t)(x))<<EWM_SERV_SERVICE_SHIFT))&EWM_SERV_SERVICE_MASK)
Kojto 90:cb3d968589d8 2484 /* CMPL Bit Fields */
Kojto 90:cb3d968589d8 2485 #define EWM_CMPL_COMPAREL_MASK 0xFFu
Kojto 90:cb3d968589d8 2486 #define EWM_CMPL_COMPAREL_SHIFT 0
Kojto 90:cb3d968589d8 2487 #define EWM_CMPL_COMPAREL(x) (((uint8_t)(((uint8_t)(x))<<EWM_CMPL_COMPAREL_SHIFT))&EWM_CMPL_COMPAREL_MASK)
Kojto 90:cb3d968589d8 2488 /* CMPH Bit Fields */
Kojto 90:cb3d968589d8 2489 #define EWM_CMPH_COMPAREH_MASK 0xFFu
Kojto 90:cb3d968589d8 2490 #define EWM_CMPH_COMPAREH_SHIFT 0
Kojto 90:cb3d968589d8 2491 #define EWM_CMPH_COMPAREH(x) (((uint8_t)(((uint8_t)(x))<<EWM_CMPH_COMPAREH_SHIFT))&EWM_CMPH_COMPAREH_MASK)
Kojto 90:cb3d968589d8 2492 /* CLKPRESCALER Bit Fields */
Kojto 90:cb3d968589d8 2493 #define EWM_CLKPRESCALER_CLK_DIV_MASK 0xFFu
Kojto 90:cb3d968589d8 2494 #define EWM_CLKPRESCALER_CLK_DIV_SHIFT 0
Kojto 90:cb3d968589d8 2495 #define EWM_CLKPRESCALER_CLK_DIV(x) (((uint8_t)(((uint8_t)(x))<<EWM_CLKPRESCALER_CLK_DIV_SHIFT))&EWM_CLKPRESCALER_CLK_DIV_MASK)
Kojto 90:cb3d968589d8 2496
Kojto 90:cb3d968589d8 2497 /*!
Kojto 90:cb3d968589d8 2498 * @}
Kojto 90:cb3d968589d8 2499 */ /* end of group EWM_Register_Masks */
Kojto 90:cb3d968589d8 2500
Kojto 90:cb3d968589d8 2501
Kojto 90:cb3d968589d8 2502 /* EWM - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 2503 /** Peripheral EWM base address */
Kojto 90:cb3d968589d8 2504 #define EWM_BASE (0x40061000u)
Kojto 90:cb3d968589d8 2505 /** Peripheral EWM base pointer */
Kojto 90:cb3d968589d8 2506 #define EWM ((EWM_Type *)EWM_BASE)
Kojto 90:cb3d968589d8 2507 #define EWM_BASE_PTR (EWM)
Kojto 90:cb3d968589d8 2508 /** Array initializer of EWM peripheral base addresses */
Kojto 90:cb3d968589d8 2509 #define EWM_BASE_ADDRS { EWM_BASE }
Kojto 90:cb3d968589d8 2510 /** Array initializer of EWM peripheral base pointers */
Kojto 90:cb3d968589d8 2511 #define EWM_BASE_PTRS { EWM }
Kojto 90:cb3d968589d8 2512 /** Interrupt vectors for the EWM peripheral type */
Kojto 90:cb3d968589d8 2513 #define EWM_IRQS { Watchdog_IRQn }
Kojto 90:cb3d968589d8 2514
Kojto 90:cb3d968589d8 2515 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2516 -- EWM - Register accessor macros
Kojto 90:cb3d968589d8 2517 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2518
Kojto 90:cb3d968589d8 2519 /*!
Kojto 90:cb3d968589d8 2520 * @addtogroup EWM_Register_Accessor_Macros EWM - Register accessor macros
Kojto 90:cb3d968589d8 2521 * @{
Kojto 90:cb3d968589d8 2522 */
Kojto 90:cb3d968589d8 2523
Kojto 90:cb3d968589d8 2524
Kojto 90:cb3d968589d8 2525 /* EWM - Register instance definitions */
Kojto 90:cb3d968589d8 2526 /* EWM */
Kojto 90:cb3d968589d8 2527 #define EWM_CTRL EWM_CTRL_REG(EWM)
Kojto 90:cb3d968589d8 2528 #define EWM_SERV EWM_SERV_REG(EWM)
Kojto 90:cb3d968589d8 2529 #define EWM_CMPL EWM_CMPL_REG(EWM)
Kojto 90:cb3d968589d8 2530 #define EWM_CMPH EWM_CMPH_REG(EWM)
Kojto 90:cb3d968589d8 2531 #define EWM_CLKPRESCALER EWM_CLKPRESCALER_REG(EWM)
Kojto 90:cb3d968589d8 2532
Kojto 90:cb3d968589d8 2533 /*!
Kojto 90:cb3d968589d8 2534 * @}
Kojto 90:cb3d968589d8 2535 */ /* end of group EWM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 2536
Kojto 90:cb3d968589d8 2537
Kojto 90:cb3d968589d8 2538 /*!
Kojto 90:cb3d968589d8 2539 * @}
Kojto 90:cb3d968589d8 2540 */ /* end of group EWM_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 2541
Kojto 90:cb3d968589d8 2542
Kojto 90:cb3d968589d8 2543 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2544 -- FB Peripheral Access Layer
Kojto 90:cb3d968589d8 2545 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2546
Kojto 90:cb3d968589d8 2547 /*!
Kojto 90:cb3d968589d8 2548 * @addtogroup FB_Peripheral_Access_Layer FB Peripheral Access Layer
Kojto 90:cb3d968589d8 2549 * @{
Kojto 90:cb3d968589d8 2550 */
Kojto 90:cb3d968589d8 2551
Kojto 90:cb3d968589d8 2552 /** FB - Register Layout Typedef */
Kojto 90:cb3d968589d8 2553 typedef struct {
Kojto 90:cb3d968589d8 2554 struct { /* offset: 0x0, array step: 0xC */
Kojto 90:cb3d968589d8 2555 __IO uint32_t CSAR; /**< Chip Select Address Register, array offset: 0x0, array step: 0xC */
Kojto 90:cb3d968589d8 2556 __IO uint32_t CSMR; /**< Chip Select Mask Register, array offset: 0x4, array step: 0xC */
Kojto 90:cb3d968589d8 2557 __IO uint32_t CSCR; /**< Chip Select Control Register, array offset: 0x8, array step: 0xC */
Kojto 90:cb3d968589d8 2558 } CS[6];
Kojto 90:cb3d968589d8 2559 uint8_t RESERVED_0[24];
Kojto 90:cb3d968589d8 2560 __IO uint32_t CSPMCR; /**< Chip Select port Multiplexing Control Register, offset: 0x60 */
Kojto 90:cb3d968589d8 2561 } FB_Type, *FB_MemMapPtr;
Kojto 90:cb3d968589d8 2562
Kojto 90:cb3d968589d8 2563 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2564 -- FB - Register accessor macros
Kojto 90:cb3d968589d8 2565 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2566
Kojto 90:cb3d968589d8 2567 /*!
Kojto 90:cb3d968589d8 2568 * @addtogroup FB_Register_Accessor_Macros FB - Register accessor macros
Kojto 90:cb3d968589d8 2569 * @{
Kojto 90:cb3d968589d8 2570 */
Kojto 90:cb3d968589d8 2571
Kojto 90:cb3d968589d8 2572
Kojto 90:cb3d968589d8 2573 /* FB - Register accessors */
Kojto 90:cb3d968589d8 2574 #define FB_CSAR_REG(base,index) ((base)->CS[index].CSAR)
Kojto 90:cb3d968589d8 2575 #define FB_CSMR_REG(base,index) ((base)->CS[index].CSMR)
Kojto 90:cb3d968589d8 2576 #define FB_CSCR_REG(base,index) ((base)->CS[index].CSCR)
Kojto 90:cb3d968589d8 2577 #define FB_CSPMCR_REG(base) ((base)->CSPMCR)
Kojto 90:cb3d968589d8 2578
Kojto 90:cb3d968589d8 2579 /*!
Kojto 90:cb3d968589d8 2580 * @}
Kojto 90:cb3d968589d8 2581 */ /* end of group FB_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 2582
Kojto 90:cb3d968589d8 2583
Kojto 90:cb3d968589d8 2584 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2585 -- FB Register Masks
Kojto 90:cb3d968589d8 2586 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2587
Kojto 90:cb3d968589d8 2588 /*!
Kojto 90:cb3d968589d8 2589 * @addtogroup FB_Register_Masks FB Register Masks
Kojto 90:cb3d968589d8 2590 * @{
Kojto 90:cb3d968589d8 2591 */
Kojto 90:cb3d968589d8 2592
Kojto 90:cb3d968589d8 2593 /* CSAR Bit Fields */
Kojto 90:cb3d968589d8 2594 #define FB_CSAR_BA_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 2595 #define FB_CSAR_BA_SHIFT 16
Kojto 90:cb3d968589d8 2596 #define FB_CSAR_BA(x) (((uint32_t)(((uint32_t)(x))<<FB_CSAR_BA_SHIFT))&FB_CSAR_BA_MASK)
Kojto 90:cb3d968589d8 2597 /* CSMR Bit Fields */
Kojto 90:cb3d968589d8 2598 #define FB_CSMR_V_MASK 0x1u
Kojto 90:cb3d968589d8 2599 #define FB_CSMR_V_SHIFT 0
Kojto 90:cb3d968589d8 2600 #define FB_CSMR_WP_MASK 0x100u
Kojto 90:cb3d968589d8 2601 #define FB_CSMR_WP_SHIFT 8
Kojto 90:cb3d968589d8 2602 #define FB_CSMR_BAM_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 2603 #define FB_CSMR_BAM_SHIFT 16
Kojto 90:cb3d968589d8 2604 #define FB_CSMR_BAM(x) (((uint32_t)(((uint32_t)(x))<<FB_CSMR_BAM_SHIFT))&FB_CSMR_BAM_MASK)
Kojto 90:cb3d968589d8 2605 /* CSCR Bit Fields */
Kojto 90:cb3d968589d8 2606 #define FB_CSCR_BSTW_MASK 0x8u
Kojto 90:cb3d968589d8 2607 #define FB_CSCR_BSTW_SHIFT 3
Kojto 90:cb3d968589d8 2608 #define FB_CSCR_BSTR_MASK 0x10u
Kojto 90:cb3d968589d8 2609 #define FB_CSCR_BSTR_SHIFT 4
Kojto 90:cb3d968589d8 2610 #define FB_CSCR_BEM_MASK 0x20u
Kojto 90:cb3d968589d8 2611 #define FB_CSCR_BEM_SHIFT 5
Kojto 90:cb3d968589d8 2612 #define FB_CSCR_PS_MASK 0xC0u
Kojto 90:cb3d968589d8 2613 #define FB_CSCR_PS_SHIFT 6
Kojto 90:cb3d968589d8 2614 #define FB_CSCR_PS(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_PS_SHIFT))&FB_CSCR_PS_MASK)
Kojto 90:cb3d968589d8 2615 #define FB_CSCR_AA_MASK 0x100u
Kojto 90:cb3d968589d8 2616 #define FB_CSCR_AA_SHIFT 8
Kojto 90:cb3d968589d8 2617 #define FB_CSCR_BLS_MASK 0x200u
Kojto 90:cb3d968589d8 2618 #define FB_CSCR_BLS_SHIFT 9
Kojto 90:cb3d968589d8 2619 #define FB_CSCR_WS_MASK 0xFC00u
Kojto 90:cb3d968589d8 2620 #define FB_CSCR_WS_SHIFT 10
Kojto 90:cb3d968589d8 2621 #define FB_CSCR_WS(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_WS_SHIFT))&FB_CSCR_WS_MASK)
Kojto 90:cb3d968589d8 2622 #define FB_CSCR_WRAH_MASK 0x30000u
Kojto 90:cb3d968589d8 2623 #define FB_CSCR_WRAH_SHIFT 16
Kojto 90:cb3d968589d8 2624 #define FB_CSCR_WRAH(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_WRAH_SHIFT))&FB_CSCR_WRAH_MASK)
Kojto 90:cb3d968589d8 2625 #define FB_CSCR_RDAH_MASK 0xC0000u
Kojto 90:cb3d968589d8 2626 #define FB_CSCR_RDAH_SHIFT 18
Kojto 90:cb3d968589d8 2627 #define FB_CSCR_RDAH(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_RDAH_SHIFT))&FB_CSCR_RDAH_MASK)
Kojto 90:cb3d968589d8 2628 #define FB_CSCR_ASET_MASK 0x300000u
Kojto 90:cb3d968589d8 2629 #define FB_CSCR_ASET_SHIFT 20
Kojto 90:cb3d968589d8 2630 #define FB_CSCR_ASET(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_ASET_SHIFT))&FB_CSCR_ASET_MASK)
Kojto 90:cb3d968589d8 2631 #define FB_CSCR_EXTS_MASK 0x400000u
Kojto 90:cb3d968589d8 2632 #define FB_CSCR_EXTS_SHIFT 22
Kojto 90:cb3d968589d8 2633 #define FB_CSCR_SWSEN_MASK 0x800000u
Kojto 90:cb3d968589d8 2634 #define FB_CSCR_SWSEN_SHIFT 23
Kojto 90:cb3d968589d8 2635 #define FB_CSCR_SWS_MASK 0xFC000000u
Kojto 90:cb3d968589d8 2636 #define FB_CSCR_SWS_SHIFT 26
Kojto 90:cb3d968589d8 2637 #define FB_CSCR_SWS(x) (((uint32_t)(((uint32_t)(x))<<FB_CSCR_SWS_SHIFT))&FB_CSCR_SWS_MASK)
Kojto 90:cb3d968589d8 2638 /* CSPMCR Bit Fields */
Kojto 90:cb3d968589d8 2639 #define FB_CSPMCR_GROUP5_MASK 0xF000u
Kojto 90:cb3d968589d8 2640 #define FB_CSPMCR_GROUP5_SHIFT 12
Kojto 90:cb3d968589d8 2641 #define FB_CSPMCR_GROUP5(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP5_SHIFT))&FB_CSPMCR_GROUP5_MASK)
Kojto 90:cb3d968589d8 2642 #define FB_CSPMCR_GROUP4_MASK 0xF0000u
Kojto 90:cb3d968589d8 2643 #define FB_CSPMCR_GROUP4_SHIFT 16
Kojto 90:cb3d968589d8 2644 #define FB_CSPMCR_GROUP4(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP4_SHIFT))&FB_CSPMCR_GROUP4_MASK)
Kojto 90:cb3d968589d8 2645 #define FB_CSPMCR_GROUP3_MASK 0xF00000u
Kojto 90:cb3d968589d8 2646 #define FB_CSPMCR_GROUP3_SHIFT 20
Kojto 90:cb3d968589d8 2647 #define FB_CSPMCR_GROUP3(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP3_SHIFT))&FB_CSPMCR_GROUP3_MASK)
Kojto 90:cb3d968589d8 2648 #define FB_CSPMCR_GROUP2_MASK 0xF000000u
Kojto 90:cb3d968589d8 2649 #define FB_CSPMCR_GROUP2_SHIFT 24
Kojto 90:cb3d968589d8 2650 #define FB_CSPMCR_GROUP2(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP2_SHIFT))&FB_CSPMCR_GROUP2_MASK)
Kojto 90:cb3d968589d8 2651 #define FB_CSPMCR_GROUP1_MASK 0xF0000000u
Kojto 90:cb3d968589d8 2652 #define FB_CSPMCR_GROUP1_SHIFT 28
Kojto 90:cb3d968589d8 2653 #define FB_CSPMCR_GROUP1(x) (((uint32_t)(((uint32_t)(x))<<FB_CSPMCR_GROUP1_SHIFT))&FB_CSPMCR_GROUP1_MASK)
Kojto 90:cb3d968589d8 2654
Kojto 90:cb3d968589d8 2655 /*!
Kojto 90:cb3d968589d8 2656 * @}
Kojto 90:cb3d968589d8 2657 */ /* end of group FB_Register_Masks */
Kojto 90:cb3d968589d8 2658
Kojto 90:cb3d968589d8 2659
Kojto 90:cb3d968589d8 2660 /* FB - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 2661 /** Peripheral FB base address */
Kojto 90:cb3d968589d8 2662 #define FB_BASE (0x4000C000u)
Kojto 90:cb3d968589d8 2663 /** Peripheral FB base pointer */
Kojto 90:cb3d968589d8 2664 #define FB ((FB_Type *)FB_BASE)
Kojto 90:cb3d968589d8 2665 #define FB_BASE_PTR (FB)
Kojto 90:cb3d968589d8 2666 /** Array initializer of FB peripheral base addresses */
Kojto 90:cb3d968589d8 2667 #define FB_BASE_ADDRS { FB_BASE }
Kojto 90:cb3d968589d8 2668 /** Array initializer of FB peripheral base pointers */
Kojto 90:cb3d968589d8 2669 #define FB_BASE_PTRS { FB }
Kojto 90:cb3d968589d8 2670
Kojto 90:cb3d968589d8 2671 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2672 -- FB - Register accessor macros
Kojto 90:cb3d968589d8 2673 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2674
Kojto 90:cb3d968589d8 2675 /*!
Kojto 90:cb3d968589d8 2676 * @addtogroup FB_Register_Accessor_Macros FB - Register accessor macros
Kojto 90:cb3d968589d8 2677 * @{
Kojto 90:cb3d968589d8 2678 */
Kojto 90:cb3d968589d8 2679
Kojto 90:cb3d968589d8 2680
Kojto 90:cb3d968589d8 2681 /* FB - Register instance definitions */
Kojto 90:cb3d968589d8 2682 /* FB */
Kojto 90:cb3d968589d8 2683 #define FB_CSAR0 FB_CSAR_REG(FB,0)
Kojto 90:cb3d968589d8 2684 #define FB_CSMR0 FB_CSMR_REG(FB,0)
Kojto 90:cb3d968589d8 2685 #define FB_CSCR0 FB_CSCR_REG(FB,0)
Kojto 90:cb3d968589d8 2686 #define FB_CSAR1 FB_CSAR_REG(FB,1)
Kojto 90:cb3d968589d8 2687 #define FB_CSMR1 FB_CSMR_REG(FB,1)
Kojto 90:cb3d968589d8 2688 #define FB_CSCR1 FB_CSCR_REG(FB,1)
Kojto 90:cb3d968589d8 2689 #define FB_CSAR2 FB_CSAR_REG(FB,2)
Kojto 90:cb3d968589d8 2690 #define FB_CSMR2 FB_CSMR_REG(FB,2)
Kojto 90:cb3d968589d8 2691 #define FB_CSCR2 FB_CSCR_REG(FB,2)
Kojto 90:cb3d968589d8 2692 #define FB_CSAR3 FB_CSAR_REG(FB,3)
Kojto 90:cb3d968589d8 2693 #define FB_CSMR3 FB_CSMR_REG(FB,3)
Kojto 90:cb3d968589d8 2694 #define FB_CSCR3 FB_CSCR_REG(FB,3)
Kojto 90:cb3d968589d8 2695 #define FB_CSAR4 FB_CSAR_REG(FB,4)
Kojto 90:cb3d968589d8 2696 #define FB_CSMR4 FB_CSMR_REG(FB,4)
Kojto 90:cb3d968589d8 2697 #define FB_CSCR4 FB_CSCR_REG(FB,4)
Kojto 90:cb3d968589d8 2698 #define FB_CSAR5 FB_CSAR_REG(FB,5)
Kojto 90:cb3d968589d8 2699 #define FB_CSMR5 FB_CSMR_REG(FB,5)
Kojto 90:cb3d968589d8 2700 #define FB_CSCR5 FB_CSCR_REG(FB,5)
Kojto 90:cb3d968589d8 2701 #define FB_CSPMCR FB_CSPMCR_REG(FB)
Kojto 90:cb3d968589d8 2702
Kojto 90:cb3d968589d8 2703 /* FB - Register array accessors */
Kojto 90:cb3d968589d8 2704 #define FB_CSAR(index) FB_CSAR_REG(FB,index)
Kojto 90:cb3d968589d8 2705 #define FB_CSMR(index) FB_CSMR_REG(FB,index)
Kojto 90:cb3d968589d8 2706 #define FB_CSCR(index) FB_CSCR_REG(FB,index)
Kojto 90:cb3d968589d8 2707
Kojto 90:cb3d968589d8 2708 /*!
Kojto 90:cb3d968589d8 2709 * @}
Kojto 90:cb3d968589d8 2710 */ /* end of group FB_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 2711
Kojto 90:cb3d968589d8 2712
Kojto 90:cb3d968589d8 2713 /*!
Kojto 90:cb3d968589d8 2714 * @}
Kojto 90:cb3d968589d8 2715 */ /* end of group FB_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 2716
Kojto 90:cb3d968589d8 2717
Kojto 90:cb3d968589d8 2718 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2719 -- FMC Peripheral Access Layer
Kojto 90:cb3d968589d8 2720 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2721
Kojto 90:cb3d968589d8 2722 /*!
Kojto 90:cb3d968589d8 2723 * @addtogroup FMC_Peripheral_Access_Layer FMC Peripheral Access Layer
Kojto 90:cb3d968589d8 2724 * @{
Kojto 90:cb3d968589d8 2725 */
Kojto 90:cb3d968589d8 2726
Kojto 90:cb3d968589d8 2727 /** FMC - Register Layout Typedef */
Kojto 90:cb3d968589d8 2728 typedef struct {
Kojto 90:cb3d968589d8 2729 __IO uint32_t PFAPR; /**< Flash Access Protection Register, offset: 0x0 */
Kojto 90:cb3d968589d8 2730 __IO uint32_t PFB0CR; /**< Flash Bank 0 Control Register, offset: 0x4 */
Kojto 90:cb3d968589d8 2731 __IO uint32_t PFB1CR; /**< Flash Bank 1 Control Register, offset: 0x8 */
Kojto 90:cb3d968589d8 2732 uint8_t RESERVED_0[244];
Kojto 90:cb3d968589d8 2733 __IO uint32_t TAGVDW0S[8]; /**< Cache Tag Storage, array offset: 0x100, array step: 0x4 */
Kojto 90:cb3d968589d8 2734 __IO uint32_t TAGVDW1S[8]; /**< Cache Tag Storage, array offset: 0x120, array step: 0x4 */
Kojto 90:cb3d968589d8 2735 __IO uint32_t TAGVDW2S[8]; /**< Cache Tag Storage, array offset: 0x140, array step: 0x4 */
Kojto 90:cb3d968589d8 2736 __IO uint32_t TAGVDW3S[8]; /**< Cache Tag Storage, array offset: 0x160, array step: 0x4 */
Kojto 90:cb3d968589d8 2737 uint8_t RESERVED_1[128];
Kojto 90:cb3d968589d8 2738 struct { /* offset: 0x200, array step: index*0x40, index2*0x8 */
Kojto 90:cb3d968589d8 2739 __IO uint32_t DATA_U; /**< Cache Data Storage (upper word), array offset: 0x200, array step: index*0x40, index2*0x8 */
Kojto 90:cb3d968589d8 2740 __IO uint32_t DATA_L; /**< Cache Data Storage (lower word), array offset: 0x204, array step: index*0x40, index2*0x8 */
Kojto 90:cb3d968589d8 2741 } SET[4][8];
Kojto 90:cb3d968589d8 2742 } FMC_Type, *FMC_MemMapPtr;
Kojto 90:cb3d968589d8 2743
Kojto 90:cb3d968589d8 2744 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2745 -- FMC - Register accessor macros
Kojto 90:cb3d968589d8 2746 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2747
Kojto 90:cb3d968589d8 2748 /*!
Kojto 90:cb3d968589d8 2749 * @addtogroup FMC_Register_Accessor_Macros FMC - Register accessor macros
Kojto 90:cb3d968589d8 2750 * @{
Kojto 90:cb3d968589d8 2751 */
Kojto 90:cb3d968589d8 2752
Kojto 90:cb3d968589d8 2753
Kojto 90:cb3d968589d8 2754 /* FMC - Register accessors */
Kojto 90:cb3d968589d8 2755 #define FMC_PFAPR_REG(base) ((base)->PFAPR)
Kojto 90:cb3d968589d8 2756 #define FMC_PFB0CR_REG(base) ((base)->PFB0CR)
Kojto 90:cb3d968589d8 2757 #define FMC_PFB1CR_REG(base) ((base)->PFB1CR)
Kojto 90:cb3d968589d8 2758 #define FMC_TAGVDW0S_REG(base,index) ((base)->TAGVDW0S[index])
Kojto 90:cb3d968589d8 2759 #define FMC_TAGVDW1S_REG(base,index) ((base)->TAGVDW1S[index])
Kojto 90:cb3d968589d8 2760 #define FMC_TAGVDW2S_REG(base,index) ((base)->TAGVDW2S[index])
Kojto 90:cb3d968589d8 2761 #define FMC_TAGVDW3S_REG(base,index) ((base)->TAGVDW3S[index])
Kojto 90:cb3d968589d8 2762 #define FMC_DATA_U_REG(base,index,index2) ((base)->SET[index][index2].DATA_U)
Kojto 90:cb3d968589d8 2763 #define FMC_DATA_L_REG(base,index,index2) ((base)->SET[index][index2].DATA_L)
Kojto 90:cb3d968589d8 2764
Kojto 90:cb3d968589d8 2765 /*!
Kojto 90:cb3d968589d8 2766 * @}
Kojto 90:cb3d968589d8 2767 */ /* end of group FMC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 2768
Kojto 90:cb3d968589d8 2769
Kojto 90:cb3d968589d8 2770 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2771 -- FMC Register Masks
Kojto 90:cb3d968589d8 2772 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2773
Kojto 90:cb3d968589d8 2774 /*!
Kojto 90:cb3d968589d8 2775 * @addtogroup FMC_Register_Masks FMC Register Masks
Kojto 90:cb3d968589d8 2776 * @{
Kojto 90:cb3d968589d8 2777 */
Kojto 90:cb3d968589d8 2778
Kojto 90:cb3d968589d8 2779 /* PFAPR Bit Fields */
Kojto 90:cb3d968589d8 2780 #define FMC_PFAPR_M0AP_MASK 0x3u
Kojto 90:cb3d968589d8 2781 #define FMC_PFAPR_M0AP_SHIFT 0
Kojto 90:cb3d968589d8 2782 #define FMC_PFAPR_M0AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M0AP_SHIFT))&FMC_PFAPR_M0AP_MASK)
Kojto 90:cb3d968589d8 2783 #define FMC_PFAPR_M1AP_MASK 0xCu
Kojto 90:cb3d968589d8 2784 #define FMC_PFAPR_M1AP_SHIFT 2
Kojto 90:cb3d968589d8 2785 #define FMC_PFAPR_M1AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M1AP_SHIFT))&FMC_PFAPR_M1AP_MASK)
Kojto 90:cb3d968589d8 2786 #define FMC_PFAPR_M2AP_MASK 0x30u
Kojto 90:cb3d968589d8 2787 #define FMC_PFAPR_M2AP_SHIFT 4
Kojto 90:cb3d968589d8 2788 #define FMC_PFAPR_M2AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M2AP_SHIFT))&FMC_PFAPR_M2AP_MASK)
Kojto 90:cb3d968589d8 2789 #define FMC_PFAPR_M3AP_MASK 0xC0u
Kojto 90:cb3d968589d8 2790 #define FMC_PFAPR_M3AP_SHIFT 6
Kojto 90:cb3d968589d8 2791 #define FMC_PFAPR_M3AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M3AP_SHIFT))&FMC_PFAPR_M3AP_MASK)
Kojto 90:cb3d968589d8 2792 #define FMC_PFAPR_M4AP_MASK 0x300u
Kojto 90:cb3d968589d8 2793 #define FMC_PFAPR_M4AP_SHIFT 8
Kojto 90:cb3d968589d8 2794 #define FMC_PFAPR_M4AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M4AP_SHIFT))&FMC_PFAPR_M4AP_MASK)
Kojto 90:cb3d968589d8 2795 #define FMC_PFAPR_M5AP_MASK 0xC00u
Kojto 90:cb3d968589d8 2796 #define FMC_PFAPR_M5AP_SHIFT 10
Kojto 90:cb3d968589d8 2797 #define FMC_PFAPR_M5AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M5AP_SHIFT))&FMC_PFAPR_M5AP_MASK)
Kojto 90:cb3d968589d8 2798 #define FMC_PFAPR_M6AP_MASK 0x3000u
Kojto 90:cb3d968589d8 2799 #define FMC_PFAPR_M6AP_SHIFT 12
Kojto 90:cb3d968589d8 2800 #define FMC_PFAPR_M6AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M6AP_SHIFT))&FMC_PFAPR_M6AP_MASK)
Kojto 90:cb3d968589d8 2801 #define FMC_PFAPR_M7AP_MASK 0xC000u
Kojto 90:cb3d968589d8 2802 #define FMC_PFAPR_M7AP_SHIFT 14
Kojto 90:cb3d968589d8 2803 #define FMC_PFAPR_M7AP(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFAPR_M7AP_SHIFT))&FMC_PFAPR_M7AP_MASK)
Kojto 90:cb3d968589d8 2804 #define FMC_PFAPR_M0PFD_MASK 0x10000u
Kojto 90:cb3d968589d8 2805 #define FMC_PFAPR_M0PFD_SHIFT 16
Kojto 90:cb3d968589d8 2806 #define FMC_PFAPR_M1PFD_MASK 0x20000u
Kojto 90:cb3d968589d8 2807 #define FMC_PFAPR_M1PFD_SHIFT 17
Kojto 90:cb3d968589d8 2808 #define FMC_PFAPR_M2PFD_MASK 0x40000u
Kojto 90:cb3d968589d8 2809 #define FMC_PFAPR_M2PFD_SHIFT 18
Kojto 90:cb3d968589d8 2810 #define FMC_PFAPR_M3PFD_MASK 0x80000u
Kojto 90:cb3d968589d8 2811 #define FMC_PFAPR_M3PFD_SHIFT 19
Kojto 90:cb3d968589d8 2812 #define FMC_PFAPR_M4PFD_MASK 0x100000u
Kojto 90:cb3d968589d8 2813 #define FMC_PFAPR_M4PFD_SHIFT 20
Kojto 90:cb3d968589d8 2814 #define FMC_PFAPR_M5PFD_MASK 0x200000u
Kojto 90:cb3d968589d8 2815 #define FMC_PFAPR_M5PFD_SHIFT 21
Kojto 90:cb3d968589d8 2816 #define FMC_PFAPR_M6PFD_MASK 0x400000u
Kojto 90:cb3d968589d8 2817 #define FMC_PFAPR_M6PFD_SHIFT 22
Kojto 90:cb3d968589d8 2818 #define FMC_PFAPR_M7PFD_MASK 0x800000u
Kojto 90:cb3d968589d8 2819 #define FMC_PFAPR_M7PFD_SHIFT 23
Kojto 90:cb3d968589d8 2820 /* PFB0CR Bit Fields */
Kojto 90:cb3d968589d8 2821 #define FMC_PFB0CR_B0SEBE_MASK 0x1u
Kojto 90:cb3d968589d8 2822 #define FMC_PFB0CR_B0SEBE_SHIFT 0
Kojto 90:cb3d968589d8 2823 #define FMC_PFB0CR_B0IPE_MASK 0x2u
Kojto 90:cb3d968589d8 2824 #define FMC_PFB0CR_B0IPE_SHIFT 1
Kojto 90:cb3d968589d8 2825 #define FMC_PFB0CR_B0DPE_MASK 0x4u
Kojto 90:cb3d968589d8 2826 #define FMC_PFB0CR_B0DPE_SHIFT 2
Kojto 90:cb3d968589d8 2827 #define FMC_PFB0CR_B0ICE_MASK 0x8u
Kojto 90:cb3d968589d8 2828 #define FMC_PFB0CR_B0ICE_SHIFT 3
Kojto 90:cb3d968589d8 2829 #define FMC_PFB0CR_B0DCE_MASK 0x10u
Kojto 90:cb3d968589d8 2830 #define FMC_PFB0CR_B0DCE_SHIFT 4
Kojto 90:cb3d968589d8 2831 #define FMC_PFB0CR_CRC_MASK 0xE0u
Kojto 90:cb3d968589d8 2832 #define FMC_PFB0CR_CRC_SHIFT 5
Kojto 90:cb3d968589d8 2833 #define FMC_PFB0CR_CRC(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_CRC_SHIFT))&FMC_PFB0CR_CRC_MASK)
Kojto 90:cb3d968589d8 2834 #define FMC_PFB0CR_B0MW_MASK 0x60000u
Kojto 90:cb3d968589d8 2835 #define FMC_PFB0CR_B0MW_SHIFT 17
Kojto 90:cb3d968589d8 2836 #define FMC_PFB0CR_B0MW(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_B0MW_SHIFT))&FMC_PFB0CR_B0MW_MASK)
Kojto 90:cb3d968589d8 2837 #define FMC_PFB0CR_S_B_INV_MASK 0x80000u
Kojto 90:cb3d968589d8 2838 #define FMC_PFB0CR_S_B_INV_SHIFT 19
Kojto 90:cb3d968589d8 2839 #define FMC_PFB0CR_CINV_WAY_MASK 0xF00000u
Kojto 90:cb3d968589d8 2840 #define FMC_PFB0CR_CINV_WAY_SHIFT 20
Kojto 90:cb3d968589d8 2841 #define FMC_PFB0CR_CINV_WAY(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_CINV_WAY_SHIFT))&FMC_PFB0CR_CINV_WAY_MASK)
Kojto 90:cb3d968589d8 2842 #define FMC_PFB0CR_CLCK_WAY_MASK 0xF000000u
Kojto 90:cb3d968589d8 2843 #define FMC_PFB0CR_CLCK_WAY_SHIFT 24
Kojto 90:cb3d968589d8 2844 #define FMC_PFB0CR_CLCK_WAY(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_CLCK_WAY_SHIFT))&FMC_PFB0CR_CLCK_WAY_MASK)
Kojto 90:cb3d968589d8 2845 #define FMC_PFB0CR_B0RWSC_MASK 0xF0000000u
Kojto 90:cb3d968589d8 2846 #define FMC_PFB0CR_B0RWSC_SHIFT 28
Kojto 90:cb3d968589d8 2847 #define FMC_PFB0CR_B0RWSC(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB0CR_B0RWSC_SHIFT))&FMC_PFB0CR_B0RWSC_MASK)
Kojto 90:cb3d968589d8 2848 /* PFB1CR Bit Fields */
Kojto 90:cb3d968589d8 2849 #define FMC_PFB1CR_B1SEBE_MASK 0x1u
Kojto 90:cb3d968589d8 2850 #define FMC_PFB1CR_B1SEBE_SHIFT 0
Kojto 90:cb3d968589d8 2851 #define FMC_PFB1CR_B1IPE_MASK 0x2u
Kojto 90:cb3d968589d8 2852 #define FMC_PFB1CR_B1IPE_SHIFT 1
Kojto 90:cb3d968589d8 2853 #define FMC_PFB1CR_B1DPE_MASK 0x4u
Kojto 90:cb3d968589d8 2854 #define FMC_PFB1CR_B1DPE_SHIFT 2
Kojto 90:cb3d968589d8 2855 #define FMC_PFB1CR_B1ICE_MASK 0x8u
Kojto 90:cb3d968589d8 2856 #define FMC_PFB1CR_B1ICE_SHIFT 3
Kojto 90:cb3d968589d8 2857 #define FMC_PFB1CR_B1DCE_MASK 0x10u
Kojto 90:cb3d968589d8 2858 #define FMC_PFB1CR_B1DCE_SHIFT 4
Kojto 90:cb3d968589d8 2859 #define FMC_PFB1CR_B1MW_MASK 0x60000u
Kojto 90:cb3d968589d8 2860 #define FMC_PFB1CR_B1MW_SHIFT 17
Kojto 90:cb3d968589d8 2861 #define FMC_PFB1CR_B1MW(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB1CR_B1MW_SHIFT))&FMC_PFB1CR_B1MW_MASK)
Kojto 90:cb3d968589d8 2862 #define FMC_PFB1CR_B1RWSC_MASK 0xF0000000u
Kojto 90:cb3d968589d8 2863 #define FMC_PFB1CR_B1RWSC_SHIFT 28
Kojto 90:cb3d968589d8 2864 #define FMC_PFB1CR_B1RWSC(x) (((uint32_t)(((uint32_t)(x))<<FMC_PFB1CR_B1RWSC_SHIFT))&FMC_PFB1CR_B1RWSC_MASK)
Kojto 90:cb3d968589d8 2865 /* TAGVDW0S Bit Fields */
Kojto 90:cb3d968589d8 2866 #define FMC_TAGVDW0S_valid_MASK 0x1u
Kojto 90:cb3d968589d8 2867 #define FMC_TAGVDW0S_valid_SHIFT 0
Kojto 90:cb3d968589d8 2868 #define FMC_TAGVDW0S_tag_MASK 0x7FFE0u
Kojto 90:cb3d968589d8 2869 #define FMC_TAGVDW0S_tag_SHIFT 5
Kojto 90:cb3d968589d8 2870 #define FMC_TAGVDW0S_tag(x) (((uint32_t)(((uint32_t)(x))<<FMC_TAGVDW0S_tag_SHIFT))&FMC_TAGVDW0S_tag_MASK)
Kojto 90:cb3d968589d8 2871 /* TAGVDW1S Bit Fields */
Kojto 90:cb3d968589d8 2872 #define FMC_TAGVDW1S_valid_MASK 0x1u
Kojto 90:cb3d968589d8 2873 #define FMC_TAGVDW1S_valid_SHIFT 0
Kojto 90:cb3d968589d8 2874 #define FMC_TAGVDW1S_tag_MASK 0x7FFE0u
Kojto 90:cb3d968589d8 2875 #define FMC_TAGVDW1S_tag_SHIFT 5
Kojto 90:cb3d968589d8 2876 #define FMC_TAGVDW1S_tag(x) (((uint32_t)(((uint32_t)(x))<<FMC_TAGVDW1S_tag_SHIFT))&FMC_TAGVDW1S_tag_MASK)
Kojto 90:cb3d968589d8 2877 /* TAGVDW2S Bit Fields */
Kojto 90:cb3d968589d8 2878 #define FMC_TAGVDW2S_valid_MASK 0x1u
Kojto 90:cb3d968589d8 2879 #define FMC_TAGVDW2S_valid_SHIFT 0
Kojto 90:cb3d968589d8 2880 #define FMC_TAGVDW2S_tag_MASK 0x7FFE0u
Kojto 90:cb3d968589d8 2881 #define FMC_TAGVDW2S_tag_SHIFT 5
Kojto 90:cb3d968589d8 2882 #define FMC_TAGVDW2S_tag(x) (((uint32_t)(((uint32_t)(x))<<FMC_TAGVDW2S_tag_SHIFT))&FMC_TAGVDW2S_tag_MASK)
Kojto 90:cb3d968589d8 2883 /* TAGVDW3S Bit Fields */
Kojto 90:cb3d968589d8 2884 #define FMC_TAGVDW3S_valid_MASK 0x1u
Kojto 90:cb3d968589d8 2885 #define FMC_TAGVDW3S_valid_SHIFT 0
Kojto 90:cb3d968589d8 2886 #define FMC_TAGVDW3S_tag_MASK 0x7FFE0u
Kojto 90:cb3d968589d8 2887 #define FMC_TAGVDW3S_tag_SHIFT 5
Kojto 90:cb3d968589d8 2888 #define FMC_TAGVDW3S_tag(x) (((uint32_t)(((uint32_t)(x))<<FMC_TAGVDW3S_tag_SHIFT))&FMC_TAGVDW3S_tag_MASK)
Kojto 90:cb3d968589d8 2889 /* DATA_U Bit Fields */
Kojto 90:cb3d968589d8 2890 #define FMC_DATA_U_data_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 2891 #define FMC_DATA_U_data_SHIFT 0
Kojto 90:cb3d968589d8 2892 #define FMC_DATA_U_data(x) (((uint32_t)(((uint32_t)(x))<<FMC_DATA_U_data_SHIFT))&FMC_DATA_U_data_MASK)
Kojto 90:cb3d968589d8 2893 /* DATA_L Bit Fields */
Kojto 90:cb3d968589d8 2894 #define FMC_DATA_L_data_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 2895 #define FMC_DATA_L_data_SHIFT 0
Kojto 90:cb3d968589d8 2896 #define FMC_DATA_L_data(x) (((uint32_t)(((uint32_t)(x))<<FMC_DATA_L_data_SHIFT))&FMC_DATA_L_data_MASK)
Kojto 90:cb3d968589d8 2897
Kojto 90:cb3d968589d8 2898 /*!
Kojto 90:cb3d968589d8 2899 * @}
Kojto 90:cb3d968589d8 2900 */ /* end of group FMC_Register_Masks */
Kojto 90:cb3d968589d8 2901
Kojto 90:cb3d968589d8 2902
Kojto 90:cb3d968589d8 2903 /* FMC - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 2904 /** Peripheral FMC base address */
Kojto 90:cb3d968589d8 2905 #define FMC_BASE (0x4001F000u)
Kojto 90:cb3d968589d8 2906 /** Peripheral FMC base pointer */
Kojto 90:cb3d968589d8 2907 #define FMC ((FMC_Type *)FMC_BASE)
Kojto 90:cb3d968589d8 2908 #define FMC_BASE_PTR (FMC)
Kojto 90:cb3d968589d8 2909 /** Array initializer of FMC peripheral base addresses */
Kojto 90:cb3d968589d8 2910 #define FMC_BASE_ADDRS { FMC_BASE }
Kojto 90:cb3d968589d8 2911 /** Array initializer of FMC peripheral base pointers */
Kojto 90:cb3d968589d8 2912 #define FMC_BASE_PTRS { FMC }
Kojto 90:cb3d968589d8 2913
Kojto 90:cb3d968589d8 2914 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 2915 -- FMC - Register accessor macros
Kojto 90:cb3d968589d8 2916 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 2917
Kojto 90:cb3d968589d8 2918 /*!
Kojto 90:cb3d968589d8 2919 * @addtogroup FMC_Register_Accessor_Macros FMC - Register accessor macros
Kojto 90:cb3d968589d8 2920 * @{
Kojto 90:cb3d968589d8 2921 */
Kojto 90:cb3d968589d8 2922
Kojto 90:cb3d968589d8 2923
Kojto 90:cb3d968589d8 2924 /* FMC - Register instance definitions */
Kojto 90:cb3d968589d8 2925 /* FMC */
Kojto 90:cb3d968589d8 2926 #define FMC_PFAPR FMC_PFAPR_REG(FMC)
Kojto 90:cb3d968589d8 2927 #define FMC_PFB0CR FMC_PFB0CR_REG(FMC)
Kojto 90:cb3d968589d8 2928 #define FMC_PFB1CR FMC_PFB1CR_REG(FMC)
Kojto 90:cb3d968589d8 2929 #define FMC_TAGVDW0S0 FMC_TAGVDW0S_REG(FMC,0)
Kojto 90:cb3d968589d8 2930 #define FMC_TAGVDW0S1 FMC_TAGVDW0S_REG(FMC,1)
Kojto 90:cb3d968589d8 2931 #define FMC_TAGVDW0S2 FMC_TAGVDW0S_REG(FMC,2)
Kojto 90:cb3d968589d8 2932 #define FMC_TAGVDW0S3 FMC_TAGVDW0S_REG(FMC,3)
Kojto 90:cb3d968589d8 2933 #define FMC_TAGVDW0S4 FMC_TAGVDW0S_REG(FMC,4)
Kojto 90:cb3d968589d8 2934 #define FMC_TAGVDW0S5 FMC_TAGVDW0S_REG(FMC,5)
Kojto 90:cb3d968589d8 2935 #define FMC_TAGVDW0S6 FMC_TAGVDW0S_REG(FMC,6)
Kojto 90:cb3d968589d8 2936 #define FMC_TAGVDW0S7 FMC_TAGVDW0S_REG(FMC,7)
Kojto 90:cb3d968589d8 2937 #define FMC_TAGVDW1S0 FMC_TAGVDW1S_REG(FMC,0)
Kojto 90:cb3d968589d8 2938 #define FMC_TAGVDW1S1 FMC_TAGVDW1S_REG(FMC,1)
Kojto 90:cb3d968589d8 2939 #define FMC_TAGVDW1S2 FMC_TAGVDW1S_REG(FMC,2)
Kojto 90:cb3d968589d8 2940 #define FMC_TAGVDW1S3 FMC_TAGVDW1S_REG(FMC,3)
Kojto 90:cb3d968589d8 2941 #define FMC_TAGVDW1S4 FMC_TAGVDW1S_REG(FMC,4)
Kojto 90:cb3d968589d8 2942 #define FMC_TAGVDW1S5 FMC_TAGVDW1S_REG(FMC,5)
Kojto 90:cb3d968589d8 2943 #define FMC_TAGVDW1S6 FMC_TAGVDW1S_REG(FMC,6)
Kojto 90:cb3d968589d8 2944 #define FMC_TAGVDW1S7 FMC_TAGVDW1S_REG(FMC,7)
Kojto 90:cb3d968589d8 2945 #define FMC_TAGVDW2S0 FMC_TAGVDW2S_REG(FMC,0)
Kojto 90:cb3d968589d8 2946 #define FMC_TAGVDW2S1 FMC_TAGVDW2S_REG(FMC,1)
Kojto 90:cb3d968589d8 2947 #define FMC_TAGVDW2S2 FMC_TAGVDW2S_REG(FMC,2)
Kojto 90:cb3d968589d8 2948 #define FMC_TAGVDW2S3 FMC_TAGVDW2S_REG(FMC,3)
Kojto 90:cb3d968589d8 2949 #define FMC_TAGVDW2S4 FMC_TAGVDW2S_REG(FMC,4)
Kojto 90:cb3d968589d8 2950 #define FMC_TAGVDW2S5 FMC_TAGVDW2S_REG(FMC,5)
Kojto 90:cb3d968589d8 2951 #define FMC_TAGVDW2S6 FMC_TAGVDW2S_REG(FMC,6)
Kojto 90:cb3d968589d8 2952 #define FMC_TAGVDW2S7 FMC_TAGVDW2S_REG(FMC,7)
Kojto 90:cb3d968589d8 2953 #define FMC_TAGVDW3S0 FMC_TAGVDW3S_REG(FMC,0)
Kojto 90:cb3d968589d8 2954 #define FMC_TAGVDW3S1 FMC_TAGVDW3S_REG(FMC,1)
Kojto 90:cb3d968589d8 2955 #define FMC_TAGVDW3S2 FMC_TAGVDW3S_REG(FMC,2)
Kojto 90:cb3d968589d8 2956 #define FMC_TAGVDW3S3 FMC_TAGVDW3S_REG(FMC,3)
Kojto 90:cb3d968589d8 2957 #define FMC_TAGVDW3S4 FMC_TAGVDW3S_REG(FMC,4)
Kojto 90:cb3d968589d8 2958 #define FMC_TAGVDW3S5 FMC_TAGVDW3S_REG(FMC,5)
Kojto 90:cb3d968589d8 2959 #define FMC_TAGVDW3S6 FMC_TAGVDW3S_REG(FMC,6)
Kojto 90:cb3d968589d8 2960 #define FMC_TAGVDW3S7 FMC_TAGVDW3S_REG(FMC,7)
Kojto 90:cb3d968589d8 2961 #define FMC_DATAW0S0U FMC_DATA_U_REG(FMC,0,0)
Kojto 90:cb3d968589d8 2962 #define FMC_DATAW0S0L FMC_DATA_L_REG(FMC,0,0)
Kojto 90:cb3d968589d8 2963 #define FMC_DATAW0S1U FMC_DATA_U_REG(FMC,0,1)
Kojto 90:cb3d968589d8 2964 #define FMC_DATAW0S1L FMC_DATA_L_REG(FMC,0,1)
Kojto 90:cb3d968589d8 2965 #define FMC_DATAW0S2U FMC_DATA_U_REG(FMC,0,2)
Kojto 90:cb3d968589d8 2966 #define FMC_DATAW0S2L FMC_DATA_L_REG(FMC,0,2)
Kojto 90:cb3d968589d8 2967 #define FMC_DATAW0S3U FMC_DATA_U_REG(FMC,0,3)
Kojto 90:cb3d968589d8 2968 #define FMC_DATAW0S3L FMC_DATA_L_REG(FMC,0,3)
Kojto 90:cb3d968589d8 2969 #define FMC_DATAW0S4U FMC_DATA_U_REG(FMC,0,4)
Kojto 90:cb3d968589d8 2970 #define FMC_DATAW0S4L FMC_DATA_L_REG(FMC,0,4)
Kojto 90:cb3d968589d8 2971 #define FMC_DATAW0S5U FMC_DATA_U_REG(FMC,0,5)
Kojto 90:cb3d968589d8 2972 #define FMC_DATAW0S5L FMC_DATA_L_REG(FMC,0,5)
Kojto 90:cb3d968589d8 2973 #define FMC_DATAW0S6U FMC_DATA_U_REG(FMC,0,6)
Kojto 90:cb3d968589d8 2974 #define FMC_DATAW0S6L FMC_DATA_L_REG(FMC,0,6)
Kojto 90:cb3d968589d8 2975 #define FMC_DATAW0S7U FMC_DATA_U_REG(FMC,0,7)
Kojto 90:cb3d968589d8 2976 #define FMC_DATAW0S7L FMC_DATA_L_REG(FMC,0,7)
Kojto 90:cb3d968589d8 2977 #define FMC_DATAW1S0U FMC_DATA_U_REG(FMC,1,0)
Kojto 90:cb3d968589d8 2978 #define FMC_DATAW1S0L FMC_DATA_L_REG(FMC,1,0)
Kojto 90:cb3d968589d8 2979 #define FMC_DATAW1S1U FMC_DATA_U_REG(FMC,1,1)
Kojto 90:cb3d968589d8 2980 #define FMC_DATAW1S1L FMC_DATA_L_REG(FMC,1,1)
Kojto 90:cb3d968589d8 2981 #define FMC_DATAW1S2U FMC_DATA_U_REG(FMC,1,2)
Kojto 90:cb3d968589d8 2982 #define FMC_DATAW1S2L FMC_DATA_L_REG(FMC,1,2)
Kojto 90:cb3d968589d8 2983 #define FMC_DATAW1S3U FMC_DATA_U_REG(FMC,1,3)
Kojto 90:cb3d968589d8 2984 #define FMC_DATAW1S3L FMC_DATA_L_REG(FMC,1,3)
Kojto 90:cb3d968589d8 2985 #define FMC_DATAW1S4U FMC_DATA_U_REG(FMC,1,4)
Kojto 90:cb3d968589d8 2986 #define FMC_DATAW1S4L FMC_DATA_L_REG(FMC,1,4)
Kojto 90:cb3d968589d8 2987 #define FMC_DATAW1S5U FMC_DATA_U_REG(FMC,1,5)
Kojto 90:cb3d968589d8 2988 #define FMC_DATAW1S5L FMC_DATA_L_REG(FMC,1,5)
Kojto 90:cb3d968589d8 2989 #define FMC_DATAW1S6U FMC_DATA_U_REG(FMC,1,6)
Kojto 90:cb3d968589d8 2990 #define FMC_DATAW1S6L FMC_DATA_L_REG(FMC,1,6)
Kojto 90:cb3d968589d8 2991 #define FMC_DATAW1S7U FMC_DATA_U_REG(FMC,1,7)
Kojto 90:cb3d968589d8 2992 #define FMC_DATAW1S7L FMC_DATA_L_REG(FMC,1,7)
Kojto 90:cb3d968589d8 2993 #define FMC_DATAW2S0U FMC_DATA_U_REG(FMC,2,0)
Kojto 90:cb3d968589d8 2994 #define FMC_DATAW2S0L FMC_DATA_L_REG(FMC,2,0)
Kojto 90:cb3d968589d8 2995 #define FMC_DATAW2S1U FMC_DATA_U_REG(FMC,2,1)
Kojto 90:cb3d968589d8 2996 #define FMC_DATAW2S1L FMC_DATA_L_REG(FMC,2,1)
Kojto 90:cb3d968589d8 2997 #define FMC_DATAW2S2U FMC_DATA_U_REG(FMC,2,2)
Kojto 90:cb3d968589d8 2998 #define FMC_DATAW2S2L FMC_DATA_L_REG(FMC,2,2)
Kojto 90:cb3d968589d8 2999 #define FMC_DATAW2S3U FMC_DATA_U_REG(FMC,2,3)
Kojto 90:cb3d968589d8 3000 #define FMC_DATAW2S3L FMC_DATA_L_REG(FMC,2,3)
Kojto 90:cb3d968589d8 3001 #define FMC_DATAW2S4U FMC_DATA_U_REG(FMC,2,4)
Kojto 90:cb3d968589d8 3002 #define FMC_DATAW2S4L FMC_DATA_L_REG(FMC,2,4)
Kojto 90:cb3d968589d8 3003 #define FMC_DATAW2S5U FMC_DATA_U_REG(FMC,2,5)
Kojto 90:cb3d968589d8 3004 #define FMC_DATAW2S5L FMC_DATA_L_REG(FMC,2,5)
Kojto 90:cb3d968589d8 3005 #define FMC_DATAW2S6U FMC_DATA_U_REG(FMC,2,6)
Kojto 90:cb3d968589d8 3006 #define FMC_DATAW2S6L FMC_DATA_L_REG(FMC,2,6)
Kojto 90:cb3d968589d8 3007 #define FMC_DATAW2S7U FMC_DATA_U_REG(FMC,2,7)
Kojto 90:cb3d968589d8 3008 #define FMC_DATAW2S7L FMC_DATA_L_REG(FMC,2,7)
Kojto 90:cb3d968589d8 3009 #define FMC_DATAW3S0U FMC_DATA_U_REG(FMC,3,0)
Kojto 90:cb3d968589d8 3010 #define FMC_DATAW3S0L FMC_DATA_L_REG(FMC,3,0)
Kojto 90:cb3d968589d8 3011 #define FMC_DATAW3S1U FMC_DATA_U_REG(FMC,3,1)
Kojto 90:cb3d968589d8 3012 #define FMC_DATAW3S1L FMC_DATA_L_REG(FMC,3,1)
Kojto 90:cb3d968589d8 3013 #define FMC_DATAW3S2U FMC_DATA_U_REG(FMC,3,2)
Kojto 90:cb3d968589d8 3014 #define FMC_DATAW3S2L FMC_DATA_L_REG(FMC,3,2)
Kojto 90:cb3d968589d8 3015 #define FMC_DATAW3S3U FMC_DATA_U_REG(FMC,3,3)
Kojto 90:cb3d968589d8 3016 #define FMC_DATAW3S3L FMC_DATA_L_REG(FMC,3,3)
Kojto 90:cb3d968589d8 3017 #define FMC_DATAW3S4U FMC_DATA_U_REG(FMC,3,4)
Kojto 90:cb3d968589d8 3018 #define FMC_DATAW3S4L FMC_DATA_L_REG(FMC,3,4)
Kojto 90:cb3d968589d8 3019 #define FMC_DATAW3S5U FMC_DATA_U_REG(FMC,3,5)
Kojto 90:cb3d968589d8 3020 #define FMC_DATAW3S5L FMC_DATA_L_REG(FMC,3,5)
Kojto 90:cb3d968589d8 3021 #define FMC_DATAW3S6U FMC_DATA_U_REG(FMC,3,6)
Kojto 90:cb3d968589d8 3022 #define FMC_DATAW3S6L FMC_DATA_L_REG(FMC,3,6)
Kojto 90:cb3d968589d8 3023 #define FMC_DATAW3S7U FMC_DATA_U_REG(FMC,3,7)
Kojto 90:cb3d968589d8 3024 #define FMC_DATAW3S7L FMC_DATA_L_REG(FMC,3,7)
Kojto 90:cb3d968589d8 3025
Kojto 90:cb3d968589d8 3026 /* FMC - Register array accessors */
Kojto 90:cb3d968589d8 3027 #define FMC_TAGVDW0S(index) FMC_TAGVDW0S_REG(FMC,index)
Kojto 90:cb3d968589d8 3028 #define FMC_TAGVDW1S(index) FMC_TAGVDW1S_REG(FMC,index)
Kojto 90:cb3d968589d8 3029 #define FMC_TAGVDW2S(index) FMC_TAGVDW2S_REG(FMC,index)
Kojto 90:cb3d968589d8 3030 #define FMC_TAGVDW3S(index) FMC_TAGVDW3S_REG(FMC,index)
Kojto 90:cb3d968589d8 3031 #define FMC_DATA_U(index,index2) FMC_DATA_U_REG(FMC,index,index2)
Kojto 90:cb3d968589d8 3032 #define FMC_DATA_L(index,index2) FMC_DATA_L_REG(FMC,index,index2)
Kojto 90:cb3d968589d8 3033
Kojto 90:cb3d968589d8 3034 /*!
Kojto 90:cb3d968589d8 3035 * @}
Kojto 90:cb3d968589d8 3036 */ /* end of group FMC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 3037
Kojto 90:cb3d968589d8 3038
Kojto 90:cb3d968589d8 3039 /*!
Kojto 90:cb3d968589d8 3040 * @}
Kojto 90:cb3d968589d8 3041 */ /* end of group FMC_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 3042
Kojto 90:cb3d968589d8 3043
Kojto 90:cb3d968589d8 3044 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 3045 -- FTFA Peripheral Access Layer
Kojto 90:cb3d968589d8 3046 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 3047
Kojto 90:cb3d968589d8 3048 /*!
Kojto 90:cb3d968589d8 3049 * @addtogroup FTFA_Peripheral_Access_Layer FTFA Peripheral Access Layer
Kojto 90:cb3d968589d8 3050 * @{
Kojto 90:cb3d968589d8 3051 */
Kojto 90:cb3d968589d8 3052
Kojto 90:cb3d968589d8 3053 /** FTFA - Register Layout Typedef */
Kojto 90:cb3d968589d8 3054 typedef struct {
Kojto 90:cb3d968589d8 3055 __IO uint8_t FSTAT; /**< Flash Status Register, offset: 0x0 */
Kojto 90:cb3d968589d8 3056 __IO uint8_t FCNFG; /**< Flash Configuration Register, offset: 0x1 */
Kojto 90:cb3d968589d8 3057 __I uint8_t FSEC; /**< Flash Security Register, offset: 0x2 */
Kojto 90:cb3d968589d8 3058 __I uint8_t FOPT; /**< Flash Option Register, offset: 0x3 */
Kojto 90:cb3d968589d8 3059 __IO uint8_t FCCOB3; /**< Flash Common Command Object Registers, offset: 0x4 */
Kojto 90:cb3d968589d8 3060 __IO uint8_t FCCOB2; /**< Flash Common Command Object Registers, offset: 0x5 */
Kojto 90:cb3d968589d8 3061 __IO uint8_t FCCOB1; /**< Flash Common Command Object Registers, offset: 0x6 */
Kojto 90:cb3d968589d8 3062 __IO uint8_t FCCOB0; /**< Flash Common Command Object Registers, offset: 0x7 */
Kojto 90:cb3d968589d8 3063 __IO uint8_t FCCOB7; /**< Flash Common Command Object Registers, offset: 0x8 */
Kojto 90:cb3d968589d8 3064 __IO uint8_t FCCOB6; /**< Flash Common Command Object Registers, offset: 0x9 */
Kojto 90:cb3d968589d8 3065 __IO uint8_t FCCOB5; /**< Flash Common Command Object Registers, offset: 0xA */
Kojto 90:cb3d968589d8 3066 __IO uint8_t FCCOB4; /**< Flash Common Command Object Registers, offset: 0xB */
Kojto 90:cb3d968589d8 3067 __IO uint8_t FCCOBB; /**< Flash Common Command Object Registers, offset: 0xC */
Kojto 90:cb3d968589d8 3068 __IO uint8_t FCCOBA; /**< Flash Common Command Object Registers, offset: 0xD */
Kojto 90:cb3d968589d8 3069 __IO uint8_t FCCOB9; /**< Flash Common Command Object Registers, offset: 0xE */
Kojto 90:cb3d968589d8 3070 __IO uint8_t FCCOB8; /**< Flash Common Command Object Registers, offset: 0xF */
Kojto 90:cb3d968589d8 3071 __IO uint8_t FPROT3; /**< Program Flash Protection Registers, offset: 0x10 */
Kojto 90:cb3d968589d8 3072 __IO uint8_t FPROT2; /**< Program Flash Protection Registers, offset: 0x11 */
Kojto 90:cb3d968589d8 3073 __IO uint8_t FPROT1; /**< Program Flash Protection Registers, offset: 0x12 */
Kojto 90:cb3d968589d8 3074 __IO uint8_t FPROT0; /**< Program Flash Protection Registers, offset: 0x13 */
Kojto 90:cb3d968589d8 3075 uint8_t RESERVED_0[4];
Kojto 90:cb3d968589d8 3076 __I uint8_t XACCH3; /**< Execute-only Access Registers, offset: 0x18 */
Kojto 90:cb3d968589d8 3077 __I uint8_t XACCH2; /**< Execute-only Access Registers, offset: 0x19 */
Kojto 90:cb3d968589d8 3078 __I uint8_t XACCH1; /**< Execute-only Access Registers, offset: 0x1A */
Kojto 90:cb3d968589d8 3079 __I uint8_t XACCH0; /**< Execute-only Access Registers, offset: 0x1B */
Kojto 90:cb3d968589d8 3080 __I uint8_t XACCL3; /**< Execute-only Access Registers, offset: 0x1C */
Kojto 90:cb3d968589d8 3081 __I uint8_t XACCL2; /**< Execute-only Access Registers, offset: 0x1D */
Kojto 90:cb3d968589d8 3082 __I uint8_t XACCL1; /**< Execute-only Access Registers, offset: 0x1E */
Kojto 90:cb3d968589d8 3083 __I uint8_t XACCL0; /**< Execute-only Access Registers, offset: 0x1F */
Kojto 90:cb3d968589d8 3084 __I uint8_t SACCH3; /**< Supervisor-only Access Registers, offset: 0x20 */
Kojto 90:cb3d968589d8 3085 __I uint8_t SACCH2; /**< Supervisor-only Access Registers, offset: 0x21 */
Kojto 90:cb3d968589d8 3086 __I uint8_t SACCH1; /**< Supervisor-only Access Registers, offset: 0x22 */
Kojto 90:cb3d968589d8 3087 __I uint8_t SACCH0; /**< Supervisor-only Access Registers, offset: 0x23 */
Kojto 90:cb3d968589d8 3088 __I uint8_t SACCL3; /**< Supervisor-only Access Registers, offset: 0x24 */
Kojto 90:cb3d968589d8 3089 __I uint8_t SACCL2; /**< Supervisor-only Access Registers, offset: 0x25 */
Kojto 90:cb3d968589d8 3090 __I uint8_t SACCL1; /**< Supervisor-only Access Registers, offset: 0x26 */
Kojto 90:cb3d968589d8 3091 __I uint8_t SACCL0; /**< Supervisor-only Access Registers, offset: 0x27 */
Kojto 90:cb3d968589d8 3092 __I uint8_t FACSS; /**< Flash Access Segment Size Register, offset: 0x28 */
Kojto 90:cb3d968589d8 3093 uint8_t RESERVED_1[2];
Kojto 90:cb3d968589d8 3094 __I uint8_t FACSN; /**< Flash Access Segment Number Register, offset: 0x2B */
Kojto 90:cb3d968589d8 3095 } FTFA_Type, *FTFA_MemMapPtr;
Kojto 90:cb3d968589d8 3096
Kojto 90:cb3d968589d8 3097 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 3098 -- FTFA - Register accessor macros
Kojto 90:cb3d968589d8 3099 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 3100
Kojto 90:cb3d968589d8 3101 /*!
Kojto 90:cb3d968589d8 3102 * @addtogroup FTFA_Register_Accessor_Macros FTFA - Register accessor macros
Kojto 90:cb3d968589d8 3103 * @{
Kojto 90:cb3d968589d8 3104 */
Kojto 90:cb3d968589d8 3105
Kojto 90:cb3d968589d8 3106
Kojto 90:cb3d968589d8 3107 /* FTFA - Register accessors */
Kojto 90:cb3d968589d8 3108 #define FTFA_FSTAT_REG(base) ((base)->FSTAT)
Kojto 90:cb3d968589d8 3109 #define FTFA_FCNFG_REG(base) ((base)->FCNFG)
Kojto 90:cb3d968589d8 3110 #define FTFA_FSEC_REG(base) ((base)->FSEC)
Kojto 90:cb3d968589d8 3111 #define FTFA_FOPT_REG(base) ((base)->FOPT)
Kojto 90:cb3d968589d8 3112 #define FTFA_FCCOB3_REG(base) ((base)->FCCOB3)
Kojto 90:cb3d968589d8 3113 #define FTFA_FCCOB2_REG(base) ((base)->FCCOB2)
Kojto 90:cb3d968589d8 3114 #define FTFA_FCCOB1_REG(base) ((base)->FCCOB1)
Kojto 90:cb3d968589d8 3115 #define FTFA_FCCOB0_REG(base) ((base)->FCCOB0)
Kojto 90:cb3d968589d8 3116 #define FTFA_FCCOB7_REG(base) ((base)->FCCOB7)
Kojto 90:cb3d968589d8 3117 #define FTFA_FCCOB6_REG(base) ((base)->FCCOB6)
Kojto 90:cb3d968589d8 3118 #define FTFA_FCCOB5_REG(base) ((base)->FCCOB5)
Kojto 90:cb3d968589d8 3119 #define FTFA_FCCOB4_REG(base) ((base)->FCCOB4)
Kojto 90:cb3d968589d8 3120 #define FTFA_FCCOBB_REG(base) ((base)->FCCOBB)
Kojto 90:cb3d968589d8 3121 #define FTFA_FCCOBA_REG(base) ((base)->FCCOBA)
Kojto 90:cb3d968589d8 3122 #define FTFA_FCCOB9_REG(base) ((base)->FCCOB9)
Kojto 90:cb3d968589d8 3123 #define FTFA_FCCOB8_REG(base) ((base)->FCCOB8)
Kojto 90:cb3d968589d8 3124 #define FTFA_FPROT3_REG(base) ((base)->FPROT3)
Kojto 90:cb3d968589d8 3125 #define FTFA_FPROT2_REG(base) ((base)->FPROT2)
Kojto 90:cb3d968589d8 3126 #define FTFA_FPROT1_REG(base) ((base)->FPROT1)
Kojto 90:cb3d968589d8 3127 #define FTFA_FPROT0_REG(base) ((base)->FPROT0)
Kojto 90:cb3d968589d8 3128 #define FTFA_XACCH3_REG(base) ((base)->XACCH3)
Kojto 90:cb3d968589d8 3129 #define FTFA_XACCH2_REG(base) ((base)->XACCH2)
Kojto 90:cb3d968589d8 3130 #define FTFA_XACCH1_REG(base) ((base)->XACCH1)
Kojto 90:cb3d968589d8 3131 #define FTFA_XACCH0_REG(base) ((base)->XACCH0)
Kojto 90:cb3d968589d8 3132 #define FTFA_XACCL3_REG(base) ((base)->XACCL3)
Kojto 90:cb3d968589d8 3133 #define FTFA_XACCL2_REG(base) ((base)->XACCL2)
Kojto 90:cb3d968589d8 3134 #define FTFA_XACCL1_REG(base) ((base)->XACCL1)
Kojto 90:cb3d968589d8 3135 #define FTFA_XACCL0_REG(base) ((base)->XACCL0)
Kojto 90:cb3d968589d8 3136 #define FTFA_SACCH3_REG(base) ((base)->SACCH3)
Kojto 90:cb3d968589d8 3137 #define FTFA_SACCH2_REG(base) ((base)->SACCH2)
Kojto 90:cb3d968589d8 3138 #define FTFA_SACCH1_REG(base) ((base)->SACCH1)
Kojto 90:cb3d968589d8 3139 #define FTFA_SACCH0_REG(base) ((base)->SACCH0)
Kojto 90:cb3d968589d8 3140 #define FTFA_SACCL3_REG(base) ((base)->SACCL3)
Kojto 90:cb3d968589d8 3141 #define FTFA_SACCL2_REG(base) ((base)->SACCL2)
Kojto 90:cb3d968589d8 3142 #define FTFA_SACCL1_REG(base) ((base)->SACCL1)
Kojto 90:cb3d968589d8 3143 #define FTFA_SACCL0_REG(base) ((base)->SACCL0)
Kojto 90:cb3d968589d8 3144 #define FTFA_FACSS_REG(base) ((base)->FACSS)
Kojto 90:cb3d968589d8 3145 #define FTFA_FACSN_REG(base) ((base)->FACSN)
Kojto 90:cb3d968589d8 3146
Kojto 90:cb3d968589d8 3147 /*!
Kojto 90:cb3d968589d8 3148 * @}
Kojto 90:cb3d968589d8 3149 */ /* end of group FTFA_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 3150
Kojto 90:cb3d968589d8 3151
Kojto 90:cb3d968589d8 3152 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 3153 -- FTFA Register Masks
Kojto 90:cb3d968589d8 3154 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 3155
Kojto 90:cb3d968589d8 3156 /*!
Kojto 90:cb3d968589d8 3157 * @addtogroup FTFA_Register_Masks FTFA Register Masks
Kojto 90:cb3d968589d8 3158 * @{
Kojto 90:cb3d968589d8 3159 */
Kojto 90:cb3d968589d8 3160
Kojto 90:cb3d968589d8 3161 /* FSTAT Bit Fields */
Kojto 90:cb3d968589d8 3162 #define FTFA_FSTAT_MGSTAT0_MASK 0x1u
Kojto 90:cb3d968589d8 3163 #define FTFA_FSTAT_MGSTAT0_SHIFT 0
Kojto 90:cb3d968589d8 3164 #define FTFA_FSTAT_FPVIOL_MASK 0x10u
Kojto 90:cb3d968589d8 3165 #define FTFA_FSTAT_FPVIOL_SHIFT 4
Kojto 90:cb3d968589d8 3166 #define FTFA_FSTAT_ACCERR_MASK 0x20u
Kojto 90:cb3d968589d8 3167 #define FTFA_FSTAT_ACCERR_SHIFT 5
Kojto 90:cb3d968589d8 3168 #define FTFA_FSTAT_RDCOLERR_MASK 0x40u
Kojto 90:cb3d968589d8 3169 #define FTFA_FSTAT_RDCOLERR_SHIFT 6
Kojto 90:cb3d968589d8 3170 #define FTFA_FSTAT_CCIF_MASK 0x80u
Kojto 90:cb3d968589d8 3171 #define FTFA_FSTAT_CCIF_SHIFT 7
Kojto 90:cb3d968589d8 3172 /* FCNFG Bit Fields */
Kojto 90:cb3d968589d8 3173 #define FTFA_FCNFG_ERSSUSP_MASK 0x10u
Kojto 90:cb3d968589d8 3174 #define FTFA_FCNFG_ERSSUSP_SHIFT 4
Kojto 90:cb3d968589d8 3175 #define FTFA_FCNFG_ERSAREQ_MASK 0x20u
Kojto 90:cb3d968589d8 3176 #define FTFA_FCNFG_ERSAREQ_SHIFT 5
Kojto 90:cb3d968589d8 3177 #define FTFA_FCNFG_RDCOLLIE_MASK 0x40u
Kojto 90:cb3d968589d8 3178 #define FTFA_FCNFG_RDCOLLIE_SHIFT 6
Kojto 90:cb3d968589d8 3179 #define FTFA_FCNFG_CCIE_MASK 0x80u
Kojto 90:cb3d968589d8 3180 #define FTFA_FCNFG_CCIE_SHIFT 7
Kojto 90:cb3d968589d8 3181 /* FSEC Bit Fields */
Kojto 90:cb3d968589d8 3182 #define FTFA_FSEC_SEC_MASK 0x3u
Kojto 90:cb3d968589d8 3183 #define FTFA_FSEC_SEC_SHIFT 0
Kojto 90:cb3d968589d8 3184 #define FTFA_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FSEC_SEC_SHIFT))&FTFA_FSEC_SEC_MASK)
Kojto 90:cb3d968589d8 3185 #define FTFA_FSEC_FSLACC_MASK 0xCu
Kojto 90:cb3d968589d8 3186 #define FTFA_FSEC_FSLACC_SHIFT 2
Kojto 90:cb3d968589d8 3187 #define FTFA_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FSEC_FSLACC_SHIFT))&FTFA_FSEC_FSLACC_MASK)
Kojto 90:cb3d968589d8 3188 #define FTFA_FSEC_MEEN_MASK 0x30u
Kojto 90:cb3d968589d8 3189 #define FTFA_FSEC_MEEN_SHIFT 4
Kojto 90:cb3d968589d8 3190 #define FTFA_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FSEC_MEEN_SHIFT))&FTFA_FSEC_MEEN_MASK)
Kojto 90:cb3d968589d8 3191 #define FTFA_FSEC_KEYEN_MASK 0xC0u
Kojto 90:cb3d968589d8 3192 #define FTFA_FSEC_KEYEN_SHIFT 6
Kojto 90:cb3d968589d8 3193 #define FTFA_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FSEC_KEYEN_SHIFT))&FTFA_FSEC_KEYEN_MASK)
Kojto 90:cb3d968589d8 3194 /* FOPT Bit Fields */
Kojto 90:cb3d968589d8 3195 #define FTFA_FOPT_OPT_MASK 0xFFu
Kojto 90:cb3d968589d8 3196 #define FTFA_FOPT_OPT_SHIFT 0
Kojto 90:cb3d968589d8 3197 #define FTFA_FOPT_OPT(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FOPT_OPT_SHIFT))&FTFA_FOPT_OPT_MASK)
Kojto 90:cb3d968589d8 3198 /* FCCOB3 Bit Fields */
Kojto 90:cb3d968589d8 3199 #define FTFA_FCCOB3_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3200 #define FTFA_FCCOB3_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3201 #define FTFA_FCCOB3_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB3_CCOBn_SHIFT))&FTFA_FCCOB3_CCOBn_MASK)
Kojto 90:cb3d968589d8 3202 /* FCCOB2 Bit Fields */
Kojto 90:cb3d968589d8 3203 #define FTFA_FCCOB2_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3204 #define FTFA_FCCOB2_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3205 #define FTFA_FCCOB2_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB2_CCOBn_SHIFT))&FTFA_FCCOB2_CCOBn_MASK)
Kojto 90:cb3d968589d8 3206 /* FCCOB1 Bit Fields */
Kojto 90:cb3d968589d8 3207 #define FTFA_FCCOB1_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3208 #define FTFA_FCCOB1_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3209 #define FTFA_FCCOB1_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB1_CCOBn_SHIFT))&FTFA_FCCOB1_CCOBn_MASK)
Kojto 90:cb3d968589d8 3210 /* FCCOB0 Bit Fields */
Kojto 90:cb3d968589d8 3211 #define FTFA_FCCOB0_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3212 #define FTFA_FCCOB0_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3213 #define FTFA_FCCOB0_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB0_CCOBn_SHIFT))&FTFA_FCCOB0_CCOBn_MASK)
Kojto 90:cb3d968589d8 3214 /* FCCOB7 Bit Fields */
Kojto 90:cb3d968589d8 3215 #define FTFA_FCCOB7_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3216 #define FTFA_FCCOB7_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3217 #define FTFA_FCCOB7_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB7_CCOBn_SHIFT))&FTFA_FCCOB7_CCOBn_MASK)
Kojto 90:cb3d968589d8 3218 /* FCCOB6 Bit Fields */
Kojto 90:cb3d968589d8 3219 #define FTFA_FCCOB6_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3220 #define FTFA_FCCOB6_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3221 #define FTFA_FCCOB6_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB6_CCOBn_SHIFT))&FTFA_FCCOB6_CCOBn_MASK)
Kojto 90:cb3d968589d8 3222 /* FCCOB5 Bit Fields */
Kojto 90:cb3d968589d8 3223 #define FTFA_FCCOB5_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3224 #define FTFA_FCCOB5_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3225 #define FTFA_FCCOB5_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB5_CCOBn_SHIFT))&FTFA_FCCOB5_CCOBn_MASK)
Kojto 90:cb3d968589d8 3226 /* FCCOB4 Bit Fields */
Kojto 90:cb3d968589d8 3227 #define FTFA_FCCOB4_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3228 #define FTFA_FCCOB4_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3229 #define FTFA_FCCOB4_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB4_CCOBn_SHIFT))&FTFA_FCCOB4_CCOBn_MASK)
Kojto 90:cb3d968589d8 3230 /* FCCOBB Bit Fields */
Kojto 90:cb3d968589d8 3231 #define FTFA_FCCOBB_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3232 #define FTFA_FCCOBB_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3233 #define FTFA_FCCOBB_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOBB_CCOBn_SHIFT))&FTFA_FCCOBB_CCOBn_MASK)
Kojto 90:cb3d968589d8 3234 /* FCCOBA Bit Fields */
Kojto 90:cb3d968589d8 3235 #define FTFA_FCCOBA_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3236 #define FTFA_FCCOBA_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3237 #define FTFA_FCCOBA_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOBA_CCOBn_SHIFT))&FTFA_FCCOBA_CCOBn_MASK)
Kojto 90:cb3d968589d8 3238 /* FCCOB9 Bit Fields */
Kojto 90:cb3d968589d8 3239 #define FTFA_FCCOB9_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3240 #define FTFA_FCCOB9_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3241 #define FTFA_FCCOB9_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB9_CCOBn_SHIFT))&FTFA_FCCOB9_CCOBn_MASK)
Kojto 90:cb3d968589d8 3242 /* FCCOB8 Bit Fields */
Kojto 90:cb3d968589d8 3243 #define FTFA_FCCOB8_CCOBn_MASK 0xFFu
Kojto 90:cb3d968589d8 3244 #define FTFA_FCCOB8_CCOBn_SHIFT 0
Kojto 90:cb3d968589d8 3245 #define FTFA_FCCOB8_CCOBn(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FCCOB8_CCOBn_SHIFT))&FTFA_FCCOB8_CCOBn_MASK)
Kojto 90:cb3d968589d8 3246 /* FPROT3 Bit Fields */
Kojto 90:cb3d968589d8 3247 #define FTFA_FPROT3_PROT_MASK 0xFFu
Kojto 90:cb3d968589d8 3248 #define FTFA_FPROT3_PROT_SHIFT 0
Kojto 90:cb3d968589d8 3249 #define FTFA_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FPROT3_PROT_SHIFT))&FTFA_FPROT3_PROT_MASK)
Kojto 90:cb3d968589d8 3250 /* FPROT2 Bit Fields */
Kojto 90:cb3d968589d8 3251 #define FTFA_FPROT2_PROT_MASK 0xFFu
Kojto 90:cb3d968589d8 3252 #define FTFA_FPROT2_PROT_SHIFT 0
Kojto 90:cb3d968589d8 3253 #define FTFA_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FPROT2_PROT_SHIFT))&FTFA_FPROT2_PROT_MASK)
Kojto 90:cb3d968589d8 3254 /* FPROT1 Bit Fields */
Kojto 90:cb3d968589d8 3255 #define FTFA_FPROT1_PROT_MASK 0xFFu
Kojto 90:cb3d968589d8 3256 #define FTFA_FPROT1_PROT_SHIFT 0
Kojto 90:cb3d968589d8 3257 #define FTFA_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FPROT1_PROT_SHIFT))&FTFA_FPROT1_PROT_MASK)
Kojto 90:cb3d968589d8 3258 /* FPROT0 Bit Fields */
Kojto 90:cb3d968589d8 3259 #define FTFA_FPROT0_PROT_MASK 0xFFu
Kojto 90:cb3d968589d8 3260 #define FTFA_FPROT0_PROT_SHIFT 0
Kojto 90:cb3d968589d8 3261 #define FTFA_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FPROT0_PROT_SHIFT))&FTFA_FPROT0_PROT_MASK)
Kojto 90:cb3d968589d8 3262 /* XACCH3 Bit Fields */
Kojto 90:cb3d968589d8 3263 #define FTFA_XACCH3_XA_MASK 0xFFu
Kojto 90:cb3d968589d8 3264 #define FTFA_XACCH3_XA_SHIFT 0
Kojto 90:cb3d968589d8 3265 #define FTFA_XACCH3_XA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_XACCH3_XA_SHIFT))&FTFA_XACCH3_XA_MASK)
Kojto 90:cb3d968589d8 3266 /* XACCH2 Bit Fields */
Kojto 90:cb3d968589d8 3267 #define FTFA_XACCH2_XA_MASK 0xFFu
Kojto 90:cb3d968589d8 3268 #define FTFA_XACCH2_XA_SHIFT 0
Kojto 90:cb3d968589d8 3269 #define FTFA_XACCH2_XA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_XACCH2_XA_SHIFT))&FTFA_XACCH2_XA_MASK)
Kojto 90:cb3d968589d8 3270 /* XACCH1 Bit Fields */
Kojto 90:cb3d968589d8 3271 #define FTFA_XACCH1_XA_MASK 0xFFu
Kojto 90:cb3d968589d8 3272 #define FTFA_XACCH1_XA_SHIFT 0
Kojto 90:cb3d968589d8 3273 #define FTFA_XACCH1_XA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_XACCH1_XA_SHIFT))&FTFA_XACCH1_XA_MASK)
Kojto 90:cb3d968589d8 3274 /* XACCH0 Bit Fields */
Kojto 90:cb3d968589d8 3275 #define FTFA_XACCH0_XA_MASK 0xFFu
Kojto 90:cb3d968589d8 3276 #define FTFA_XACCH0_XA_SHIFT 0
Kojto 90:cb3d968589d8 3277 #define FTFA_XACCH0_XA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_XACCH0_XA_SHIFT))&FTFA_XACCH0_XA_MASK)
Kojto 90:cb3d968589d8 3278 /* XACCL3 Bit Fields */
Kojto 90:cb3d968589d8 3279 #define FTFA_XACCL3_XA_MASK 0xFFu
Kojto 90:cb3d968589d8 3280 #define FTFA_XACCL3_XA_SHIFT 0
Kojto 90:cb3d968589d8 3281 #define FTFA_XACCL3_XA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_XACCL3_XA_SHIFT))&FTFA_XACCL3_XA_MASK)
Kojto 90:cb3d968589d8 3282 /* XACCL2 Bit Fields */
Kojto 90:cb3d968589d8 3283 #define FTFA_XACCL2_XA_MASK 0xFFu
Kojto 90:cb3d968589d8 3284 #define FTFA_XACCL2_XA_SHIFT 0
Kojto 90:cb3d968589d8 3285 #define FTFA_XACCL2_XA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_XACCL2_XA_SHIFT))&FTFA_XACCL2_XA_MASK)
Kojto 90:cb3d968589d8 3286 /* XACCL1 Bit Fields */
Kojto 90:cb3d968589d8 3287 #define FTFA_XACCL1_XA_MASK 0xFFu
Kojto 90:cb3d968589d8 3288 #define FTFA_XACCL1_XA_SHIFT 0
Kojto 90:cb3d968589d8 3289 #define FTFA_XACCL1_XA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_XACCL1_XA_SHIFT))&FTFA_XACCL1_XA_MASK)
Kojto 90:cb3d968589d8 3290 /* XACCL0 Bit Fields */
Kojto 90:cb3d968589d8 3291 #define FTFA_XACCL0_XA_MASK 0xFFu
Kojto 90:cb3d968589d8 3292 #define FTFA_XACCL0_XA_SHIFT 0
Kojto 90:cb3d968589d8 3293 #define FTFA_XACCL0_XA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_XACCL0_XA_SHIFT))&FTFA_XACCL0_XA_MASK)
Kojto 90:cb3d968589d8 3294 /* SACCH3 Bit Fields */
Kojto 90:cb3d968589d8 3295 #define FTFA_SACCH3_SA_MASK 0xFFu
Kojto 90:cb3d968589d8 3296 #define FTFA_SACCH3_SA_SHIFT 0
Kojto 90:cb3d968589d8 3297 #define FTFA_SACCH3_SA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_SACCH3_SA_SHIFT))&FTFA_SACCH3_SA_MASK)
Kojto 90:cb3d968589d8 3298 /* SACCH2 Bit Fields */
Kojto 90:cb3d968589d8 3299 #define FTFA_SACCH2_SA_MASK 0xFFu
Kojto 90:cb3d968589d8 3300 #define FTFA_SACCH2_SA_SHIFT 0
Kojto 90:cb3d968589d8 3301 #define FTFA_SACCH2_SA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_SACCH2_SA_SHIFT))&FTFA_SACCH2_SA_MASK)
Kojto 90:cb3d968589d8 3302 /* SACCH1 Bit Fields */
Kojto 90:cb3d968589d8 3303 #define FTFA_SACCH1_SA_MASK 0xFFu
Kojto 90:cb3d968589d8 3304 #define FTFA_SACCH1_SA_SHIFT 0
Kojto 90:cb3d968589d8 3305 #define FTFA_SACCH1_SA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_SACCH1_SA_SHIFT))&FTFA_SACCH1_SA_MASK)
Kojto 90:cb3d968589d8 3306 /* SACCH0 Bit Fields */
Kojto 90:cb3d968589d8 3307 #define FTFA_SACCH0_SA_MASK 0xFFu
Kojto 90:cb3d968589d8 3308 #define FTFA_SACCH0_SA_SHIFT 0
Kojto 90:cb3d968589d8 3309 #define FTFA_SACCH0_SA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_SACCH0_SA_SHIFT))&FTFA_SACCH0_SA_MASK)
Kojto 90:cb3d968589d8 3310 /* SACCL3 Bit Fields */
Kojto 90:cb3d968589d8 3311 #define FTFA_SACCL3_SA_MASK 0xFFu
Kojto 90:cb3d968589d8 3312 #define FTFA_SACCL3_SA_SHIFT 0
Kojto 90:cb3d968589d8 3313 #define FTFA_SACCL3_SA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_SACCL3_SA_SHIFT))&FTFA_SACCL3_SA_MASK)
Kojto 90:cb3d968589d8 3314 /* SACCL2 Bit Fields */
Kojto 90:cb3d968589d8 3315 #define FTFA_SACCL2_SA_MASK 0xFFu
Kojto 90:cb3d968589d8 3316 #define FTFA_SACCL2_SA_SHIFT 0
Kojto 90:cb3d968589d8 3317 #define FTFA_SACCL2_SA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_SACCL2_SA_SHIFT))&FTFA_SACCL2_SA_MASK)
Kojto 90:cb3d968589d8 3318 /* SACCL1 Bit Fields */
Kojto 90:cb3d968589d8 3319 #define FTFA_SACCL1_SA_MASK 0xFFu
Kojto 90:cb3d968589d8 3320 #define FTFA_SACCL1_SA_SHIFT 0
Kojto 90:cb3d968589d8 3321 #define FTFA_SACCL1_SA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_SACCL1_SA_SHIFT))&FTFA_SACCL1_SA_MASK)
Kojto 90:cb3d968589d8 3322 /* SACCL0 Bit Fields */
Kojto 90:cb3d968589d8 3323 #define FTFA_SACCL0_SA_MASK 0xFFu
Kojto 90:cb3d968589d8 3324 #define FTFA_SACCL0_SA_SHIFT 0
Kojto 90:cb3d968589d8 3325 #define FTFA_SACCL0_SA(x) (((uint8_t)(((uint8_t)(x))<<FTFA_SACCL0_SA_SHIFT))&FTFA_SACCL0_SA_MASK)
Kojto 90:cb3d968589d8 3326 /* FACSS Bit Fields */
Kojto 90:cb3d968589d8 3327 #define FTFA_FACSS_SGSIZE_MASK 0xFFu
Kojto 90:cb3d968589d8 3328 #define FTFA_FACSS_SGSIZE_SHIFT 0
Kojto 90:cb3d968589d8 3329 #define FTFA_FACSS_SGSIZE(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FACSS_SGSIZE_SHIFT))&FTFA_FACSS_SGSIZE_MASK)
Kojto 90:cb3d968589d8 3330 /* FACSN Bit Fields */
Kojto 90:cb3d968589d8 3331 #define FTFA_FACSN_NUMSG_MASK 0xFFu
Kojto 90:cb3d968589d8 3332 #define FTFA_FACSN_NUMSG_SHIFT 0
Kojto 90:cb3d968589d8 3333 #define FTFA_FACSN_NUMSG(x) (((uint8_t)(((uint8_t)(x))<<FTFA_FACSN_NUMSG_SHIFT))&FTFA_FACSN_NUMSG_MASK)
Kojto 90:cb3d968589d8 3334
Kojto 90:cb3d968589d8 3335 /*!
Kojto 90:cb3d968589d8 3336 * @}
Kojto 90:cb3d968589d8 3337 */ /* end of group FTFA_Register_Masks */
Kojto 90:cb3d968589d8 3338
Kojto 90:cb3d968589d8 3339
Kojto 90:cb3d968589d8 3340 /* FTFA - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 3341 /** Peripheral FTFA base address */
Kojto 90:cb3d968589d8 3342 #define FTFA_BASE (0x40020000u)
Kojto 90:cb3d968589d8 3343 /** Peripheral FTFA base pointer */
Kojto 90:cb3d968589d8 3344 #define FTFA ((FTFA_Type *)FTFA_BASE)
Kojto 90:cb3d968589d8 3345 #define FTFA_BASE_PTR (FTFA)
Kojto 90:cb3d968589d8 3346 /** Array initializer of FTFA peripheral base addresses */
Kojto 90:cb3d968589d8 3347 #define FTFA_BASE_ADDRS { FTFA_BASE }
Kojto 90:cb3d968589d8 3348 /** Array initializer of FTFA peripheral base pointers */
Kojto 90:cb3d968589d8 3349 #define FTFA_BASE_PTRS { FTFA }
Kojto 90:cb3d968589d8 3350 /** Interrupt vectors for the FTFA peripheral type */
Kojto 90:cb3d968589d8 3351 #define FTFA_COMMAND_COMPLETE_IRQS { FTF_IRQn }
Kojto 90:cb3d968589d8 3352 #define FTFA_READ_COLLISION_IRQS { Read_Collision_IRQn }
Kojto 90:cb3d968589d8 3353
Kojto 90:cb3d968589d8 3354 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 3355 -- FTFA - Register accessor macros
Kojto 90:cb3d968589d8 3356 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 3357
Kojto 90:cb3d968589d8 3358 /*!
Kojto 90:cb3d968589d8 3359 * @addtogroup FTFA_Register_Accessor_Macros FTFA - Register accessor macros
Kojto 90:cb3d968589d8 3360 * @{
Kojto 90:cb3d968589d8 3361 */
Kojto 90:cb3d968589d8 3362
Kojto 90:cb3d968589d8 3363
Kojto 90:cb3d968589d8 3364 /* FTFA - Register instance definitions */
Kojto 90:cb3d968589d8 3365 /* FTFA */
Kojto 90:cb3d968589d8 3366 #define FTFA_FSTAT FTFA_FSTAT_REG(FTFA)
Kojto 90:cb3d968589d8 3367 #define FTFA_FCNFG FTFA_FCNFG_REG(FTFA)
Kojto 90:cb3d968589d8 3368 #define FTFA_FSEC FTFA_FSEC_REG(FTFA)
Kojto 90:cb3d968589d8 3369 #define FTFA_FOPT FTFA_FOPT_REG(FTFA)
Kojto 90:cb3d968589d8 3370 #define FTFA_FCCOB3 FTFA_FCCOB3_REG(FTFA)
Kojto 90:cb3d968589d8 3371 #define FTFA_FCCOB2 FTFA_FCCOB2_REG(FTFA)
Kojto 90:cb3d968589d8 3372 #define FTFA_FCCOB1 FTFA_FCCOB1_REG(FTFA)
Kojto 90:cb3d968589d8 3373 #define FTFA_FCCOB0 FTFA_FCCOB0_REG(FTFA)
Kojto 90:cb3d968589d8 3374 #define FTFA_FCCOB7 FTFA_FCCOB7_REG(FTFA)
Kojto 90:cb3d968589d8 3375 #define FTFA_FCCOB6 FTFA_FCCOB6_REG(FTFA)
Kojto 90:cb3d968589d8 3376 #define FTFA_FCCOB5 FTFA_FCCOB5_REG(FTFA)
Kojto 90:cb3d968589d8 3377 #define FTFA_FCCOB4 FTFA_FCCOB4_REG(FTFA)
Kojto 90:cb3d968589d8 3378 #define FTFA_FCCOBB FTFA_FCCOBB_REG(FTFA)
Kojto 90:cb3d968589d8 3379 #define FTFA_FCCOBA FTFA_FCCOBA_REG(FTFA)
Kojto 90:cb3d968589d8 3380 #define FTFA_FCCOB9 FTFA_FCCOB9_REG(FTFA)
Kojto 90:cb3d968589d8 3381 #define FTFA_FCCOB8 FTFA_FCCOB8_REG(FTFA)
Kojto 90:cb3d968589d8 3382 #define FTFA_FPROT3 FTFA_FPROT3_REG(FTFA)
Kojto 90:cb3d968589d8 3383 #define FTFA_FPROT2 FTFA_FPROT2_REG(FTFA)
Kojto 90:cb3d968589d8 3384 #define FTFA_FPROT1 FTFA_FPROT1_REG(FTFA)
Kojto 90:cb3d968589d8 3385 #define FTFA_FPROT0 FTFA_FPROT0_REG(FTFA)
Kojto 90:cb3d968589d8 3386 #define FTFA_XACCH3 FTFA_XACCH3_REG(FTFA)
Kojto 90:cb3d968589d8 3387 #define FTFA_XACCH2 FTFA_XACCH2_REG(FTFA)
Kojto 90:cb3d968589d8 3388 #define FTFA_XACCH1 FTFA_XACCH1_REG(FTFA)
Kojto 90:cb3d968589d8 3389 #define FTFA_XACCH0 FTFA_XACCH0_REG(FTFA)
Kojto 90:cb3d968589d8 3390 #define FTFA_XACCL3 FTFA_XACCL3_REG(FTFA)
Kojto 90:cb3d968589d8 3391 #define FTFA_XACCL2 FTFA_XACCL2_REG(FTFA)
Kojto 90:cb3d968589d8 3392 #define FTFA_XACCL1 FTFA_XACCL1_REG(FTFA)
Kojto 90:cb3d968589d8 3393 #define FTFA_XACCL0 FTFA_XACCL0_REG(FTFA)
Kojto 90:cb3d968589d8 3394 #define FTFA_SACCH3 FTFA_SACCH3_REG(FTFA)
Kojto 90:cb3d968589d8 3395 #define FTFA_SACCH2 FTFA_SACCH2_REG(FTFA)
Kojto 90:cb3d968589d8 3396 #define FTFA_SACCH1 FTFA_SACCH1_REG(FTFA)
Kojto 90:cb3d968589d8 3397 #define FTFA_SACCH0 FTFA_SACCH0_REG(FTFA)
Kojto 90:cb3d968589d8 3398 #define FTFA_SACCL3 FTFA_SACCL3_REG(FTFA)
Kojto 90:cb3d968589d8 3399 #define FTFA_SACCL2 FTFA_SACCL2_REG(FTFA)
Kojto 90:cb3d968589d8 3400 #define FTFA_SACCL1 FTFA_SACCL1_REG(FTFA)
Kojto 90:cb3d968589d8 3401 #define FTFA_SACCL0 FTFA_SACCL0_REG(FTFA)
Kojto 90:cb3d968589d8 3402 #define FTFA_FACSS FTFA_FACSS_REG(FTFA)
Kojto 90:cb3d968589d8 3403 #define FTFA_FACSN FTFA_FACSN_REG(FTFA)
Kojto 90:cb3d968589d8 3404
Kojto 90:cb3d968589d8 3405 /*!
Kojto 90:cb3d968589d8 3406 * @}
Kojto 90:cb3d968589d8 3407 */ /* end of group FTFA_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 3408
Kojto 90:cb3d968589d8 3409
Kojto 90:cb3d968589d8 3410 /*!
Kojto 90:cb3d968589d8 3411 * @}
Kojto 90:cb3d968589d8 3412 */ /* end of group FTFA_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 3413
Kojto 90:cb3d968589d8 3414
Kojto 90:cb3d968589d8 3415 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 3416 -- FTM Peripheral Access Layer
Kojto 90:cb3d968589d8 3417 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 3418
Kojto 90:cb3d968589d8 3419 /*!
Kojto 90:cb3d968589d8 3420 * @addtogroup FTM_Peripheral_Access_Layer FTM Peripheral Access Layer
Kojto 90:cb3d968589d8 3421 * @{
Kojto 90:cb3d968589d8 3422 */
Kojto 90:cb3d968589d8 3423
Kojto 90:cb3d968589d8 3424 /** FTM - Register Layout Typedef */
Kojto 90:cb3d968589d8 3425 typedef struct {
Kojto 90:cb3d968589d8 3426 __IO uint32_t SC; /**< Status And Control, offset: 0x0 */
Kojto 90:cb3d968589d8 3427 __IO uint32_t CNT; /**< Counter, offset: 0x4 */
Kojto 90:cb3d968589d8 3428 __IO uint32_t MOD; /**< Modulo, offset: 0x8 */
Kojto 90:cb3d968589d8 3429 struct { /* offset: 0xC, array step: 0x8 */
Kojto 90:cb3d968589d8 3430 __IO uint32_t CnSC; /**< Channel (n) Status And Control, array offset: 0xC, array step: 0x8 */
Kojto 90:cb3d968589d8 3431 __IO uint32_t CnV; /**< Channel (n) Value, array offset: 0x10, array step: 0x8 */
Kojto 90:cb3d968589d8 3432 } CONTROLS[8];
Kojto 90:cb3d968589d8 3433 __IO uint32_t CNTIN; /**< Counter Initial Value, offset: 0x4C */
Kojto 90:cb3d968589d8 3434 __IO uint32_t STATUS; /**< Capture And Compare Status, offset: 0x50 */
Kojto 90:cb3d968589d8 3435 __IO uint32_t MODE; /**< Features Mode Selection, offset: 0x54 */
Kojto 90:cb3d968589d8 3436 __IO uint32_t SYNC; /**< Synchronization, offset: 0x58 */
Kojto 90:cb3d968589d8 3437 __IO uint32_t OUTINIT; /**< Initial State For Channels Output, offset: 0x5C */
Kojto 90:cb3d968589d8 3438 __IO uint32_t OUTMASK; /**< Output Mask, offset: 0x60 */
Kojto 90:cb3d968589d8 3439 __IO uint32_t COMBINE; /**< Function For Linked Channels, offset: 0x64 */
Kojto 90:cb3d968589d8 3440 __IO uint32_t DEADTIME; /**< Deadtime Insertion Control, offset: 0x68 */
Kojto 90:cb3d968589d8 3441 __IO uint32_t EXTTRIG; /**< FTM External Trigger, offset: 0x6C */
Kojto 90:cb3d968589d8 3442 __IO uint32_t POL; /**< Channels Polarity, offset: 0x70 */
Kojto 90:cb3d968589d8 3443 __IO uint32_t FMS; /**< Fault Mode Status, offset: 0x74 */
Kojto 90:cb3d968589d8 3444 __IO uint32_t FILTER; /**< Input Capture Filter Control, offset: 0x78 */
Kojto 90:cb3d968589d8 3445 __IO uint32_t FLTCTRL; /**< Fault Control, offset: 0x7C */
Kojto 90:cb3d968589d8 3446 __IO uint32_t QDCTRL; /**< Quadrature Decoder Control And Status, offset: 0x80 */
Kojto 90:cb3d968589d8 3447 __IO uint32_t CONF; /**< Configuration, offset: 0x84 */
Kojto 90:cb3d968589d8 3448 __IO uint32_t FLTPOL; /**< FTM Fault Input Polarity, offset: 0x88 */
Kojto 90:cb3d968589d8 3449 __IO uint32_t SYNCONF; /**< Synchronization Configuration, offset: 0x8C */
Kojto 90:cb3d968589d8 3450 __IO uint32_t INVCTRL; /**< FTM Inverting Control, offset: 0x90 */
Kojto 90:cb3d968589d8 3451 __IO uint32_t SWOCTRL; /**< FTM Software Output Control, offset: 0x94 */
Kojto 90:cb3d968589d8 3452 __IO uint32_t PWMLOAD; /**< FTM PWM Load, offset: 0x98 */
Kojto 90:cb3d968589d8 3453 } FTM_Type, *FTM_MemMapPtr;
Kojto 90:cb3d968589d8 3454
Kojto 90:cb3d968589d8 3455 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 3456 -- FTM - Register accessor macros
Kojto 90:cb3d968589d8 3457 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 3458
Kojto 90:cb3d968589d8 3459 /*!
Kojto 90:cb3d968589d8 3460 * @addtogroup FTM_Register_Accessor_Macros FTM - Register accessor macros
Kojto 90:cb3d968589d8 3461 * @{
Kojto 90:cb3d968589d8 3462 */
Kojto 90:cb3d968589d8 3463
Kojto 90:cb3d968589d8 3464
Kojto 90:cb3d968589d8 3465 /* FTM - Register accessors */
Kojto 90:cb3d968589d8 3466 #define FTM_SC_REG(base) ((base)->SC)
Kojto 90:cb3d968589d8 3467 #define FTM_CNT_REG(base) ((base)->CNT)
Kojto 90:cb3d968589d8 3468 #define FTM_MOD_REG(base) ((base)->MOD)
Kojto 90:cb3d968589d8 3469 #define FTM_CnSC_REG(base,index) ((base)->CONTROLS[index].CnSC)
Kojto 90:cb3d968589d8 3470 #define FTM_CnV_REG(base,index) ((base)->CONTROLS[index].CnV)
Kojto 90:cb3d968589d8 3471 #define FTM_CNTIN_REG(base) ((base)->CNTIN)
Kojto 90:cb3d968589d8 3472 #define FTM_STATUS_REG(base) ((base)->STATUS)
Kojto 90:cb3d968589d8 3473 #define FTM_MODE_REG(base) ((base)->MODE)
Kojto 90:cb3d968589d8 3474 #define FTM_SYNC_REG(base) ((base)->SYNC)
Kojto 90:cb3d968589d8 3475 #define FTM_OUTINIT_REG(base) ((base)->OUTINIT)
Kojto 90:cb3d968589d8 3476 #define FTM_OUTMASK_REG(base) ((base)->OUTMASK)
Kojto 90:cb3d968589d8 3477 #define FTM_COMBINE_REG(base) ((base)->COMBINE)
Kojto 90:cb3d968589d8 3478 #define FTM_DEADTIME_REG(base) ((base)->DEADTIME)
Kojto 90:cb3d968589d8 3479 #define FTM_EXTTRIG_REG(base) ((base)->EXTTRIG)
Kojto 90:cb3d968589d8 3480 #define FTM_POL_REG(base) ((base)->POL)
Kojto 90:cb3d968589d8 3481 #define FTM_FMS_REG(base) ((base)->FMS)
Kojto 90:cb3d968589d8 3482 #define FTM_FILTER_REG(base) ((base)->FILTER)
Kojto 90:cb3d968589d8 3483 #define FTM_FLTCTRL_REG(base) ((base)->FLTCTRL)
Kojto 90:cb3d968589d8 3484 #define FTM_QDCTRL_REG(base) ((base)->QDCTRL)
Kojto 90:cb3d968589d8 3485 #define FTM_CONF_REG(base) ((base)->CONF)
Kojto 90:cb3d968589d8 3486 #define FTM_FLTPOL_REG(base) ((base)->FLTPOL)
Kojto 90:cb3d968589d8 3487 #define FTM_SYNCONF_REG(base) ((base)->SYNCONF)
Kojto 90:cb3d968589d8 3488 #define FTM_INVCTRL_REG(base) ((base)->INVCTRL)
Kojto 90:cb3d968589d8 3489 #define FTM_SWOCTRL_REG(base) ((base)->SWOCTRL)
Kojto 90:cb3d968589d8 3490 #define FTM_PWMLOAD_REG(base) ((base)->PWMLOAD)
Kojto 90:cb3d968589d8 3491
Kojto 90:cb3d968589d8 3492 /*!
Kojto 90:cb3d968589d8 3493 * @}
Kojto 90:cb3d968589d8 3494 */ /* end of group FTM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 3495
Kojto 90:cb3d968589d8 3496
Kojto 90:cb3d968589d8 3497 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 3498 -- FTM Register Masks
Kojto 90:cb3d968589d8 3499 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 3500
Kojto 90:cb3d968589d8 3501 /*!
Kojto 90:cb3d968589d8 3502 * @addtogroup FTM_Register_Masks FTM Register Masks
Kojto 90:cb3d968589d8 3503 * @{
Kojto 90:cb3d968589d8 3504 */
Kojto 90:cb3d968589d8 3505
Kojto 90:cb3d968589d8 3506 /* SC Bit Fields */
Kojto 90:cb3d968589d8 3507 #define FTM_SC_PS_MASK 0x7u
Kojto 90:cb3d968589d8 3508 #define FTM_SC_PS_SHIFT 0
Kojto 90:cb3d968589d8 3509 #define FTM_SC_PS(x) (((uint32_t)(((uint32_t)(x))<<FTM_SC_PS_SHIFT))&FTM_SC_PS_MASK)
Kojto 90:cb3d968589d8 3510 #define FTM_SC_CLKS_MASK 0x18u
Kojto 90:cb3d968589d8 3511 #define FTM_SC_CLKS_SHIFT 3
Kojto 90:cb3d968589d8 3512 #define FTM_SC_CLKS(x) (((uint32_t)(((uint32_t)(x))<<FTM_SC_CLKS_SHIFT))&FTM_SC_CLKS_MASK)
Kojto 90:cb3d968589d8 3513 #define FTM_SC_CPWMS_MASK 0x20u
Kojto 90:cb3d968589d8 3514 #define FTM_SC_CPWMS_SHIFT 5
Kojto 90:cb3d968589d8 3515 #define FTM_SC_TOIE_MASK 0x40u
Kojto 90:cb3d968589d8 3516 #define FTM_SC_TOIE_SHIFT 6
Kojto 90:cb3d968589d8 3517 #define FTM_SC_TOF_MASK 0x80u
Kojto 90:cb3d968589d8 3518 #define FTM_SC_TOF_SHIFT 7
Kojto 90:cb3d968589d8 3519 /* CNT Bit Fields */
Kojto 90:cb3d968589d8 3520 #define FTM_CNT_COUNT_MASK 0xFFFFu
Kojto 90:cb3d968589d8 3521 #define FTM_CNT_COUNT_SHIFT 0
Kojto 90:cb3d968589d8 3522 #define FTM_CNT_COUNT(x) (((uint32_t)(((uint32_t)(x))<<FTM_CNT_COUNT_SHIFT))&FTM_CNT_COUNT_MASK)
Kojto 90:cb3d968589d8 3523 /* MOD Bit Fields */
Kojto 90:cb3d968589d8 3524 #define FTM_MOD_MOD_MASK 0xFFFFu
Kojto 90:cb3d968589d8 3525 #define FTM_MOD_MOD_SHIFT 0
Kojto 90:cb3d968589d8 3526 #define FTM_MOD_MOD(x) (((uint32_t)(((uint32_t)(x))<<FTM_MOD_MOD_SHIFT))&FTM_MOD_MOD_MASK)
Kojto 90:cb3d968589d8 3527 /* CnSC Bit Fields */
Kojto 90:cb3d968589d8 3528 #define FTM_CnSC_DMA_MASK 0x1u
Kojto 90:cb3d968589d8 3529 #define FTM_CnSC_DMA_SHIFT 0
Kojto 90:cb3d968589d8 3530 #define FTM_CnSC_ICRST_MASK 0x2u
Kojto 90:cb3d968589d8 3531 #define FTM_CnSC_ICRST_SHIFT 1
Kojto 90:cb3d968589d8 3532 #define FTM_CnSC_ELSA_MASK 0x4u
Kojto 90:cb3d968589d8 3533 #define FTM_CnSC_ELSA_SHIFT 2
Kojto 90:cb3d968589d8 3534 #define FTM_CnSC_ELSB_MASK 0x8u
Kojto 90:cb3d968589d8 3535 #define FTM_CnSC_ELSB_SHIFT 3
Kojto 90:cb3d968589d8 3536 #define FTM_CnSC_MSA_MASK 0x10u
Kojto 90:cb3d968589d8 3537 #define FTM_CnSC_MSA_SHIFT 4
Kojto 90:cb3d968589d8 3538 #define FTM_CnSC_MSB_MASK 0x20u
Kojto 90:cb3d968589d8 3539 #define FTM_CnSC_MSB_SHIFT 5
Kojto 90:cb3d968589d8 3540 #define FTM_CnSC_CHIE_MASK 0x40u
Kojto 90:cb3d968589d8 3541 #define FTM_CnSC_CHIE_SHIFT 6
Kojto 90:cb3d968589d8 3542 #define FTM_CnSC_CHF_MASK 0x80u
Kojto 90:cb3d968589d8 3543 #define FTM_CnSC_CHF_SHIFT 7
Kojto 90:cb3d968589d8 3544 /* CnV Bit Fields */
Kojto 90:cb3d968589d8 3545 #define FTM_CnV_VAL_MASK 0xFFFFu
Kojto 90:cb3d968589d8 3546 #define FTM_CnV_VAL_SHIFT 0
Kojto 90:cb3d968589d8 3547 #define FTM_CnV_VAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_CnV_VAL_SHIFT))&FTM_CnV_VAL_MASK)
Kojto 90:cb3d968589d8 3548 /* CNTIN Bit Fields */
Kojto 90:cb3d968589d8 3549 #define FTM_CNTIN_INIT_MASK 0xFFFFu
Kojto 90:cb3d968589d8 3550 #define FTM_CNTIN_INIT_SHIFT 0
Kojto 90:cb3d968589d8 3551 #define FTM_CNTIN_INIT(x) (((uint32_t)(((uint32_t)(x))<<FTM_CNTIN_INIT_SHIFT))&FTM_CNTIN_INIT_MASK)
Kojto 90:cb3d968589d8 3552 /* STATUS Bit Fields */
Kojto 90:cb3d968589d8 3553 #define FTM_STATUS_CH0F_MASK 0x1u
Kojto 90:cb3d968589d8 3554 #define FTM_STATUS_CH0F_SHIFT 0
Kojto 90:cb3d968589d8 3555 #define FTM_STATUS_CH1F_MASK 0x2u
Kojto 90:cb3d968589d8 3556 #define FTM_STATUS_CH1F_SHIFT 1
Kojto 90:cb3d968589d8 3557 #define FTM_STATUS_CH2F_MASK 0x4u
Kojto 90:cb3d968589d8 3558 #define FTM_STATUS_CH2F_SHIFT 2
Kojto 90:cb3d968589d8 3559 #define FTM_STATUS_CH3F_MASK 0x8u
Kojto 90:cb3d968589d8 3560 #define FTM_STATUS_CH3F_SHIFT 3
Kojto 90:cb3d968589d8 3561 #define FTM_STATUS_CH4F_MASK 0x10u
Kojto 90:cb3d968589d8 3562 #define FTM_STATUS_CH4F_SHIFT 4
Kojto 90:cb3d968589d8 3563 #define FTM_STATUS_CH5F_MASK 0x20u
Kojto 90:cb3d968589d8 3564 #define FTM_STATUS_CH5F_SHIFT 5
Kojto 90:cb3d968589d8 3565 #define FTM_STATUS_CH6F_MASK 0x40u
Kojto 90:cb3d968589d8 3566 #define FTM_STATUS_CH6F_SHIFT 6
Kojto 90:cb3d968589d8 3567 #define FTM_STATUS_CH7F_MASK 0x80u
Kojto 90:cb3d968589d8 3568 #define FTM_STATUS_CH7F_SHIFT 7
Kojto 90:cb3d968589d8 3569 /* MODE Bit Fields */
Kojto 90:cb3d968589d8 3570 #define FTM_MODE_FTMEN_MASK 0x1u
Kojto 90:cb3d968589d8 3571 #define FTM_MODE_FTMEN_SHIFT 0
Kojto 90:cb3d968589d8 3572 #define FTM_MODE_INIT_MASK 0x2u
Kojto 90:cb3d968589d8 3573 #define FTM_MODE_INIT_SHIFT 1
Kojto 90:cb3d968589d8 3574 #define FTM_MODE_WPDIS_MASK 0x4u
Kojto 90:cb3d968589d8 3575 #define FTM_MODE_WPDIS_SHIFT 2
Kojto 90:cb3d968589d8 3576 #define FTM_MODE_PWMSYNC_MASK 0x8u
Kojto 90:cb3d968589d8 3577 #define FTM_MODE_PWMSYNC_SHIFT 3
Kojto 90:cb3d968589d8 3578 #define FTM_MODE_CAPTEST_MASK 0x10u
Kojto 90:cb3d968589d8 3579 #define FTM_MODE_CAPTEST_SHIFT 4
Kojto 90:cb3d968589d8 3580 #define FTM_MODE_FAULTM_MASK 0x60u
Kojto 90:cb3d968589d8 3581 #define FTM_MODE_FAULTM_SHIFT 5
Kojto 90:cb3d968589d8 3582 #define FTM_MODE_FAULTM(x) (((uint32_t)(((uint32_t)(x))<<FTM_MODE_FAULTM_SHIFT))&FTM_MODE_FAULTM_MASK)
Kojto 90:cb3d968589d8 3583 #define FTM_MODE_FAULTIE_MASK 0x80u
Kojto 90:cb3d968589d8 3584 #define FTM_MODE_FAULTIE_SHIFT 7
Kojto 90:cb3d968589d8 3585 /* SYNC Bit Fields */
Kojto 90:cb3d968589d8 3586 #define FTM_SYNC_CNTMIN_MASK 0x1u
Kojto 90:cb3d968589d8 3587 #define FTM_SYNC_CNTMIN_SHIFT 0
Kojto 90:cb3d968589d8 3588 #define FTM_SYNC_CNTMAX_MASK 0x2u
Kojto 90:cb3d968589d8 3589 #define FTM_SYNC_CNTMAX_SHIFT 1
Kojto 90:cb3d968589d8 3590 #define FTM_SYNC_REINIT_MASK 0x4u
Kojto 90:cb3d968589d8 3591 #define FTM_SYNC_REINIT_SHIFT 2
Kojto 90:cb3d968589d8 3592 #define FTM_SYNC_SYNCHOM_MASK 0x8u
Kojto 90:cb3d968589d8 3593 #define FTM_SYNC_SYNCHOM_SHIFT 3
Kojto 90:cb3d968589d8 3594 #define FTM_SYNC_TRIG0_MASK 0x10u
Kojto 90:cb3d968589d8 3595 #define FTM_SYNC_TRIG0_SHIFT 4
Kojto 90:cb3d968589d8 3596 #define FTM_SYNC_TRIG1_MASK 0x20u
Kojto 90:cb3d968589d8 3597 #define FTM_SYNC_TRIG1_SHIFT 5
Kojto 90:cb3d968589d8 3598 #define FTM_SYNC_TRIG2_MASK 0x40u
Kojto 90:cb3d968589d8 3599 #define FTM_SYNC_TRIG2_SHIFT 6
Kojto 90:cb3d968589d8 3600 #define FTM_SYNC_SWSYNC_MASK 0x80u
Kojto 90:cb3d968589d8 3601 #define FTM_SYNC_SWSYNC_SHIFT 7
Kojto 90:cb3d968589d8 3602 /* OUTINIT Bit Fields */
Kojto 90:cb3d968589d8 3603 #define FTM_OUTINIT_CH0OI_MASK 0x1u
Kojto 90:cb3d968589d8 3604 #define FTM_OUTINIT_CH0OI_SHIFT 0
Kojto 90:cb3d968589d8 3605 #define FTM_OUTINIT_CH1OI_MASK 0x2u
Kojto 90:cb3d968589d8 3606 #define FTM_OUTINIT_CH1OI_SHIFT 1
Kojto 90:cb3d968589d8 3607 #define FTM_OUTINIT_CH2OI_MASK 0x4u
Kojto 90:cb3d968589d8 3608 #define FTM_OUTINIT_CH2OI_SHIFT 2
Kojto 90:cb3d968589d8 3609 #define FTM_OUTINIT_CH3OI_MASK 0x8u
Kojto 90:cb3d968589d8 3610 #define FTM_OUTINIT_CH3OI_SHIFT 3
Kojto 90:cb3d968589d8 3611 #define FTM_OUTINIT_CH4OI_MASK 0x10u
Kojto 90:cb3d968589d8 3612 #define FTM_OUTINIT_CH4OI_SHIFT 4
Kojto 90:cb3d968589d8 3613 #define FTM_OUTINIT_CH5OI_MASK 0x20u
Kojto 90:cb3d968589d8 3614 #define FTM_OUTINIT_CH5OI_SHIFT 5
Kojto 90:cb3d968589d8 3615 #define FTM_OUTINIT_CH6OI_MASK 0x40u
Kojto 90:cb3d968589d8 3616 #define FTM_OUTINIT_CH6OI_SHIFT 6
Kojto 90:cb3d968589d8 3617 #define FTM_OUTINIT_CH7OI_MASK 0x80u
Kojto 90:cb3d968589d8 3618 #define FTM_OUTINIT_CH7OI_SHIFT 7
Kojto 90:cb3d968589d8 3619 /* OUTMASK Bit Fields */
Kojto 90:cb3d968589d8 3620 #define FTM_OUTMASK_CH0OM_MASK 0x1u
Kojto 90:cb3d968589d8 3621 #define FTM_OUTMASK_CH0OM_SHIFT 0
Kojto 90:cb3d968589d8 3622 #define FTM_OUTMASK_CH1OM_MASK 0x2u
Kojto 90:cb3d968589d8 3623 #define FTM_OUTMASK_CH1OM_SHIFT 1
Kojto 90:cb3d968589d8 3624 #define FTM_OUTMASK_CH2OM_MASK 0x4u
Kojto 90:cb3d968589d8 3625 #define FTM_OUTMASK_CH2OM_SHIFT 2
Kojto 90:cb3d968589d8 3626 #define FTM_OUTMASK_CH3OM_MASK 0x8u
Kojto 90:cb3d968589d8 3627 #define FTM_OUTMASK_CH3OM_SHIFT 3
Kojto 90:cb3d968589d8 3628 #define FTM_OUTMASK_CH4OM_MASK 0x10u
Kojto 90:cb3d968589d8 3629 #define FTM_OUTMASK_CH4OM_SHIFT 4
Kojto 90:cb3d968589d8 3630 #define FTM_OUTMASK_CH5OM_MASK 0x20u
Kojto 90:cb3d968589d8 3631 #define FTM_OUTMASK_CH5OM_SHIFT 5
Kojto 90:cb3d968589d8 3632 #define FTM_OUTMASK_CH6OM_MASK 0x40u
Kojto 90:cb3d968589d8 3633 #define FTM_OUTMASK_CH6OM_SHIFT 6
Kojto 90:cb3d968589d8 3634 #define FTM_OUTMASK_CH7OM_MASK 0x80u
Kojto 90:cb3d968589d8 3635 #define FTM_OUTMASK_CH7OM_SHIFT 7
Kojto 90:cb3d968589d8 3636 /* COMBINE Bit Fields */
Kojto 90:cb3d968589d8 3637 #define FTM_COMBINE_COMBINE0_MASK 0x1u
Kojto 90:cb3d968589d8 3638 #define FTM_COMBINE_COMBINE0_SHIFT 0
Kojto 90:cb3d968589d8 3639 #define FTM_COMBINE_COMP0_MASK 0x2u
Kojto 90:cb3d968589d8 3640 #define FTM_COMBINE_COMP0_SHIFT 1
Kojto 90:cb3d968589d8 3641 #define FTM_COMBINE_DECAPEN0_MASK 0x4u
Kojto 90:cb3d968589d8 3642 #define FTM_COMBINE_DECAPEN0_SHIFT 2
Kojto 90:cb3d968589d8 3643 #define FTM_COMBINE_DECAP0_MASK 0x8u
Kojto 90:cb3d968589d8 3644 #define FTM_COMBINE_DECAP0_SHIFT 3
Kojto 90:cb3d968589d8 3645 #define FTM_COMBINE_DTEN0_MASK 0x10u
Kojto 90:cb3d968589d8 3646 #define FTM_COMBINE_DTEN0_SHIFT 4
Kojto 90:cb3d968589d8 3647 #define FTM_COMBINE_SYNCEN0_MASK 0x20u
Kojto 90:cb3d968589d8 3648 #define FTM_COMBINE_SYNCEN0_SHIFT 5
Kojto 90:cb3d968589d8 3649 #define FTM_COMBINE_FAULTEN0_MASK 0x40u
Kojto 90:cb3d968589d8 3650 #define FTM_COMBINE_FAULTEN0_SHIFT 6
Kojto 90:cb3d968589d8 3651 #define FTM_COMBINE_COMBINE1_MASK 0x100u
Kojto 90:cb3d968589d8 3652 #define FTM_COMBINE_COMBINE1_SHIFT 8
Kojto 90:cb3d968589d8 3653 #define FTM_COMBINE_COMP1_MASK 0x200u
Kojto 90:cb3d968589d8 3654 #define FTM_COMBINE_COMP1_SHIFT 9
Kojto 90:cb3d968589d8 3655 #define FTM_COMBINE_DECAPEN1_MASK 0x400u
Kojto 90:cb3d968589d8 3656 #define FTM_COMBINE_DECAPEN1_SHIFT 10
Kojto 90:cb3d968589d8 3657 #define FTM_COMBINE_DECAP1_MASK 0x800u
Kojto 90:cb3d968589d8 3658 #define FTM_COMBINE_DECAP1_SHIFT 11
Kojto 90:cb3d968589d8 3659 #define FTM_COMBINE_DTEN1_MASK 0x1000u
Kojto 90:cb3d968589d8 3660 #define FTM_COMBINE_DTEN1_SHIFT 12
Kojto 90:cb3d968589d8 3661 #define FTM_COMBINE_SYNCEN1_MASK 0x2000u
Kojto 90:cb3d968589d8 3662 #define FTM_COMBINE_SYNCEN1_SHIFT 13
Kojto 90:cb3d968589d8 3663 #define FTM_COMBINE_FAULTEN1_MASK 0x4000u
Kojto 90:cb3d968589d8 3664 #define FTM_COMBINE_FAULTEN1_SHIFT 14
Kojto 90:cb3d968589d8 3665 #define FTM_COMBINE_COMBINE2_MASK 0x10000u
Kojto 90:cb3d968589d8 3666 #define FTM_COMBINE_COMBINE2_SHIFT 16
Kojto 90:cb3d968589d8 3667 #define FTM_COMBINE_COMP2_MASK 0x20000u
Kojto 90:cb3d968589d8 3668 #define FTM_COMBINE_COMP2_SHIFT 17
Kojto 90:cb3d968589d8 3669 #define FTM_COMBINE_DECAPEN2_MASK 0x40000u
Kojto 90:cb3d968589d8 3670 #define FTM_COMBINE_DECAPEN2_SHIFT 18
Kojto 90:cb3d968589d8 3671 #define FTM_COMBINE_DECAP2_MASK 0x80000u
Kojto 90:cb3d968589d8 3672 #define FTM_COMBINE_DECAP2_SHIFT 19
Kojto 90:cb3d968589d8 3673 #define FTM_COMBINE_DTEN2_MASK 0x100000u
Kojto 90:cb3d968589d8 3674 #define FTM_COMBINE_DTEN2_SHIFT 20
Kojto 90:cb3d968589d8 3675 #define FTM_COMBINE_SYNCEN2_MASK 0x200000u
Kojto 90:cb3d968589d8 3676 #define FTM_COMBINE_SYNCEN2_SHIFT 21
Kojto 90:cb3d968589d8 3677 #define FTM_COMBINE_FAULTEN2_MASK 0x400000u
Kojto 90:cb3d968589d8 3678 #define FTM_COMBINE_FAULTEN2_SHIFT 22
Kojto 90:cb3d968589d8 3679 #define FTM_COMBINE_COMBINE3_MASK 0x1000000u
Kojto 90:cb3d968589d8 3680 #define FTM_COMBINE_COMBINE3_SHIFT 24
Kojto 90:cb3d968589d8 3681 #define FTM_COMBINE_COMP3_MASK 0x2000000u
Kojto 90:cb3d968589d8 3682 #define FTM_COMBINE_COMP3_SHIFT 25
Kojto 90:cb3d968589d8 3683 #define FTM_COMBINE_DECAPEN3_MASK 0x4000000u
Kojto 90:cb3d968589d8 3684 #define FTM_COMBINE_DECAPEN3_SHIFT 26
Kojto 90:cb3d968589d8 3685 #define FTM_COMBINE_DECAP3_MASK 0x8000000u
Kojto 90:cb3d968589d8 3686 #define FTM_COMBINE_DECAP3_SHIFT 27
Kojto 90:cb3d968589d8 3687 #define FTM_COMBINE_DTEN3_MASK 0x10000000u
Kojto 90:cb3d968589d8 3688 #define FTM_COMBINE_DTEN3_SHIFT 28
Kojto 90:cb3d968589d8 3689 #define FTM_COMBINE_SYNCEN3_MASK 0x20000000u
Kojto 90:cb3d968589d8 3690 #define FTM_COMBINE_SYNCEN3_SHIFT 29
Kojto 90:cb3d968589d8 3691 #define FTM_COMBINE_FAULTEN3_MASK 0x40000000u
Kojto 90:cb3d968589d8 3692 #define FTM_COMBINE_FAULTEN3_SHIFT 30
Kojto 90:cb3d968589d8 3693 /* DEADTIME Bit Fields */
Kojto 90:cb3d968589d8 3694 #define FTM_DEADTIME_DTVAL_MASK 0x3Fu
Kojto 90:cb3d968589d8 3695 #define FTM_DEADTIME_DTVAL_SHIFT 0
Kojto 90:cb3d968589d8 3696 #define FTM_DEADTIME_DTVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_DEADTIME_DTVAL_SHIFT))&FTM_DEADTIME_DTVAL_MASK)
Kojto 90:cb3d968589d8 3697 #define FTM_DEADTIME_DTPS_MASK 0xC0u
Kojto 90:cb3d968589d8 3698 #define FTM_DEADTIME_DTPS_SHIFT 6
Kojto 90:cb3d968589d8 3699 #define FTM_DEADTIME_DTPS(x) (((uint32_t)(((uint32_t)(x))<<FTM_DEADTIME_DTPS_SHIFT))&FTM_DEADTIME_DTPS_MASK)
Kojto 90:cb3d968589d8 3700 /* EXTTRIG Bit Fields */
Kojto 90:cb3d968589d8 3701 #define FTM_EXTTRIG_CH2TRIG_MASK 0x1u
Kojto 90:cb3d968589d8 3702 #define FTM_EXTTRIG_CH2TRIG_SHIFT 0
Kojto 90:cb3d968589d8 3703 #define FTM_EXTTRIG_CH3TRIG_MASK 0x2u
Kojto 90:cb3d968589d8 3704 #define FTM_EXTTRIG_CH3TRIG_SHIFT 1
Kojto 90:cb3d968589d8 3705 #define FTM_EXTTRIG_CH4TRIG_MASK 0x4u
Kojto 90:cb3d968589d8 3706 #define FTM_EXTTRIG_CH4TRIG_SHIFT 2
Kojto 90:cb3d968589d8 3707 #define FTM_EXTTRIG_CH5TRIG_MASK 0x8u
Kojto 90:cb3d968589d8 3708 #define FTM_EXTTRIG_CH5TRIG_SHIFT 3
Kojto 90:cb3d968589d8 3709 #define FTM_EXTTRIG_CH0TRIG_MASK 0x10u
Kojto 90:cb3d968589d8 3710 #define FTM_EXTTRIG_CH0TRIG_SHIFT 4
Kojto 90:cb3d968589d8 3711 #define FTM_EXTTRIG_CH1TRIG_MASK 0x20u
Kojto 90:cb3d968589d8 3712 #define FTM_EXTTRIG_CH1TRIG_SHIFT 5
Kojto 90:cb3d968589d8 3713 #define FTM_EXTTRIG_INITTRIGEN_MASK 0x40u
Kojto 90:cb3d968589d8 3714 #define FTM_EXTTRIG_INITTRIGEN_SHIFT 6
Kojto 90:cb3d968589d8 3715 #define FTM_EXTTRIG_TRIGF_MASK 0x80u
Kojto 90:cb3d968589d8 3716 #define FTM_EXTTRIG_TRIGF_SHIFT 7
Kojto 90:cb3d968589d8 3717 /* POL Bit Fields */
Kojto 90:cb3d968589d8 3718 #define FTM_POL_POL0_MASK 0x1u
Kojto 90:cb3d968589d8 3719 #define FTM_POL_POL0_SHIFT 0
Kojto 90:cb3d968589d8 3720 #define FTM_POL_POL1_MASK 0x2u
Kojto 90:cb3d968589d8 3721 #define FTM_POL_POL1_SHIFT 1
Kojto 90:cb3d968589d8 3722 #define FTM_POL_POL2_MASK 0x4u
Kojto 90:cb3d968589d8 3723 #define FTM_POL_POL2_SHIFT 2
Kojto 90:cb3d968589d8 3724 #define FTM_POL_POL3_MASK 0x8u
Kojto 90:cb3d968589d8 3725 #define FTM_POL_POL3_SHIFT 3
Kojto 90:cb3d968589d8 3726 #define FTM_POL_POL4_MASK 0x10u
Kojto 90:cb3d968589d8 3727 #define FTM_POL_POL4_SHIFT 4
Kojto 90:cb3d968589d8 3728 #define FTM_POL_POL5_MASK 0x20u
Kojto 90:cb3d968589d8 3729 #define FTM_POL_POL5_SHIFT 5
Kojto 90:cb3d968589d8 3730 #define FTM_POL_POL6_MASK 0x40u
Kojto 90:cb3d968589d8 3731 #define FTM_POL_POL6_SHIFT 6
Kojto 90:cb3d968589d8 3732 #define FTM_POL_POL7_MASK 0x80u
Kojto 90:cb3d968589d8 3733 #define FTM_POL_POL7_SHIFT 7
Kojto 90:cb3d968589d8 3734 /* FMS Bit Fields */
Kojto 90:cb3d968589d8 3735 #define FTM_FMS_FAULTF0_MASK 0x1u
Kojto 90:cb3d968589d8 3736 #define FTM_FMS_FAULTF0_SHIFT 0
Kojto 90:cb3d968589d8 3737 #define FTM_FMS_FAULTF1_MASK 0x2u
Kojto 90:cb3d968589d8 3738 #define FTM_FMS_FAULTF1_SHIFT 1
Kojto 90:cb3d968589d8 3739 #define FTM_FMS_FAULTF2_MASK 0x4u
Kojto 90:cb3d968589d8 3740 #define FTM_FMS_FAULTF2_SHIFT 2
Kojto 90:cb3d968589d8 3741 #define FTM_FMS_FAULTF3_MASK 0x8u
Kojto 90:cb3d968589d8 3742 #define FTM_FMS_FAULTF3_SHIFT 3
Kojto 90:cb3d968589d8 3743 #define FTM_FMS_FAULTIN_MASK 0x20u
Kojto 90:cb3d968589d8 3744 #define FTM_FMS_FAULTIN_SHIFT 5
Kojto 90:cb3d968589d8 3745 #define FTM_FMS_WPEN_MASK 0x40u
Kojto 90:cb3d968589d8 3746 #define FTM_FMS_WPEN_SHIFT 6
Kojto 90:cb3d968589d8 3747 #define FTM_FMS_FAULTF_MASK 0x80u
Kojto 90:cb3d968589d8 3748 #define FTM_FMS_FAULTF_SHIFT 7
Kojto 90:cb3d968589d8 3749 /* FILTER Bit Fields */
Kojto 90:cb3d968589d8 3750 #define FTM_FILTER_CH0FVAL_MASK 0xFu
Kojto 90:cb3d968589d8 3751 #define FTM_FILTER_CH0FVAL_SHIFT 0
Kojto 90:cb3d968589d8 3752 #define FTM_FILTER_CH0FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH0FVAL_SHIFT))&FTM_FILTER_CH0FVAL_MASK)
Kojto 90:cb3d968589d8 3753 #define FTM_FILTER_CH1FVAL_MASK 0xF0u
Kojto 90:cb3d968589d8 3754 #define FTM_FILTER_CH1FVAL_SHIFT 4
Kojto 90:cb3d968589d8 3755 #define FTM_FILTER_CH1FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH1FVAL_SHIFT))&FTM_FILTER_CH1FVAL_MASK)
Kojto 90:cb3d968589d8 3756 #define FTM_FILTER_CH2FVAL_MASK 0xF00u
Kojto 90:cb3d968589d8 3757 #define FTM_FILTER_CH2FVAL_SHIFT 8
Kojto 90:cb3d968589d8 3758 #define FTM_FILTER_CH2FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH2FVAL_SHIFT))&FTM_FILTER_CH2FVAL_MASK)
Kojto 90:cb3d968589d8 3759 #define FTM_FILTER_CH3FVAL_MASK 0xF000u
Kojto 90:cb3d968589d8 3760 #define FTM_FILTER_CH3FVAL_SHIFT 12
Kojto 90:cb3d968589d8 3761 #define FTM_FILTER_CH3FVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FILTER_CH3FVAL_SHIFT))&FTM_FILTER_CH3FVAL_MASK)
Kojto 90:cb3d968589d8 3762 /* FLTCTRL Bit Fields */
Kojto 90:cb3d968589d8 3763 #define FTM_FLTCTRL_FAULT0EN_MASK 0x1u
Kojto 90:cb3d968589d8 3764 #define FTM_FLTCTRL_FAULT0EN_SHIFT 0
Kojto 90:cb3d968589d8 3765 #define FTM_FLTCTRL_FAULT1EN_MASK 0x2u
Kojto 90:cb3d968589d8 3766 #define FTM_FLTCTRL_FAULT1EN_SHIFT 1
Kojto 90:cb3d968589d8 3767 #define FTM_FLTCTRL_FAULT2EN_MASK 0x4u
Kojto 90:cb3d968589d8 3768 #define FTM_FLTCTRL_FAULT2EN_SHIFT 2
Kojto 90:cb3d968589d8 3769 #define FTM_FLTCTRL_FAULT3EN_MASK 0x8u
Kojto 90:cb3d968589d8 3770 #define FTM_FLTCTRL_FAULT3EN_SHIFT 3
Kojto 90:cb3d968589d8 3771 #define FTM_FLTCTRL_FFLTR0EN_MASK 0x10u
Kojto 90:cb3d968589d8 3772 #define FTM_FLTCTRL_FFLTR0EN_SHIFT 4
Kojto 90:cb3d968589d8 3773 #define FTM_FLTCTRL_FFLTR1EN_MASK 0x20u
Kojto 90:cb3d968589d8 3774 #define FTM_FLTCTRL_FFLTR1EN_SHIFT 5
Kojto 90:cb3d968589d8 3775 #define FTM_FLTCTRL_FFLTR2EN_MASK 0x40u
Kojto 90:cb3d968589d8 3776 #define FTM_FLTCTRL_FFLTR2EN_SHIFT 6
Kojto 90:cb3d968589d8 3777 #define FTM_FLTCTRL_FFLTR3EN_MASK 0x80u
Kojto 90:cb3d968589d8 3778 #define FTM_FLTCTRL_FFLTR3EN_SHIFT 7
Kojto 90:cb3d968589d8 3779 #define FTM_FLTCTRL_FFVAL_MASK 0xF00u
Kojto 90:cb3d968589d8 3780 #define FTM_FLTCTRL_FFVAL_SHIFT 8
Kojto 90:cb3d968589d8 3781 #define FTM_FLTCTRL_FFVAL(x) (((uint32_t)(((uint32_t)(x))<<FTM_FLTCTRL_FFVAL_SHIFT))&FTM_FLTCTRL_FFVAL_MASK)
Kojto 90:cb3d968589d8 3782 /* QDCTRL Bit Fields */
Kojto 90:cb3d968589d8 3783 #define FTM_QDCTRL_QUADEN_MASK 0x1u
Kojto 90:cb3d968589d8 3784 #define FTM_QDCTRL_QUADEN_SHIFT 0
Kojto 90:cb3d968589d8 3785 #define FTM_QDCTRL_TOFDIR_MASK 0x2u
Kojto 90:cb3d968589d8 3786 #define FTM_QDCTRL_TOFDIR_SHIFT 1
Kojto 90:cb3d968589d8 3787 #define FTM_QDCTRL_QUADIR_MASK 0x4u
Kojto 90:cb3d968589d8 3788 #define FTM_QDCTRL_QUADIR_SHIFT 2
Kojto 90:cb3d968589d8 3789 #define FTM_QDCTRL_QUADMODE_MASK 0x8u
Kojto 90:cb3d968589d8 3790 #define FTM_QDCTRL_QUADMODE_SHIFT 3
Kojto 90:cb3d968589d8 3791 #define FTM_QDCTRL_PHBPOL_MASK 0x10u
Kojto 90:cb3d968589d8 3792 #define FTM_QDCTRL_PHBPOL_SHIFT 4
Kojto 90:cb3d968589d8 3793 #define FTM_QDCTRL_PHAPOL_MASK 0x20u
Kojto 90:cb3d968589d8 3794 #define FTM_QDCTRL_PHAPOL_SHIFT 5
Kojto 90:cb3d968589d8 3795 #define FTM_QDCTRL_PHBFLTREN_MASK 0x40u
Kojto 90:cb3d968589d8 3796 #define FTM_QDCTRL_PHBFLTREN_SHIFT 6
Kojto 90:cb3d968589d8 3797 #define FTM_QDCTRL_PHAFLTREN_MASK 0x80u
Kojto 90:cb3d968589d8 3798 #define FTM_QDCTRL_PHAFLTREN_SHIFT 7
Kojto 90:cb3d968589d8 3799 /* CONF Bit Fields */
Kojto 90:cb3d968589d8 3800 #define FTM_CONF_NUMTOF_MASK 0x1Fu
Kojto 90:cb3d968589d8 3801 #define FTM_CONF_NUMTOF_SHIFT 0
Kojto 90:cb3d968589d8 3802 #define FTM_CONF_NUMTOF(x) (((uint32_t)(((uint32_t)(x))<<FTM_CONF_NUMTOF_SHIFT))&FTM_CONF_NUMTOF_MASK)
Kojto 90:cb3d968589d8 3803 #define FTM_CONF_BDMMODE_MASK 0xC0u
Kojto 90:cb3d968589d8 3804 #define FTM_CONF_BDMMODE_SHIFT 6
Kojto 90:cb3d968589d8 3805 #define FTM_CONF_BDMMODE(x) (((uint32_t)(((uint32_t)(x))<<FTM_CONF_BDMMODE_SHIFT))&FTM_CONF_BDMMODE_MASK)
Kojto 90:cb3d968589d8 3806 #define FTM_CONF_GTBEEN_MASK 0x200u
Kojto 90:cb3d968589d8 3807 #define FTM_CONF_GTBEEN_SHIFT 9
Kojto 90:cb3d968589d8 3808 #define FTM_CONF_GTBEOUT_MASK 0x400u
Kojto 90:cb3d968589d8 3809 #define FTM_CONF_GTBEOUT_SHIFT 10
Kojto 90:cb3d968589d8 3810 /* FLTPOL Bit Fields */
Kojto 90:cb3d968589d8 3811 #define FTM_FLTPOL_FLT0POL_MASK 0x1u
Kojto 90:cb3d968589d8 3812 #define FTM_FLTPOL_FLT0POL_SHIFT 0
Kojto 90:cb3d968589d8 3813 #define FTM_FLTPOL_FLT1POL_MASK 0x2u
Kojto 90:cb3d968589d8 3814 #define FTM_FLTPOL_FLT1POL_SHIFT 1
Kojto 90:cb3d968589d8 3815 #define FTM_FLTPOL_FLT2POL_MASK 0x4u
Kojto 90:cb3d968589d8 3816 #define FTM_FLTPOL_FLT2POL_SHIFT 2
Kojto 90:cb3d968589d8 3817 #define FTM_FLTPOL_FLT3POL_MASK 0x8u
Kojto 90:cb3d968589d8 3818 #define FTM_FLTPOL_FLT3POL_SHIFT 3
Kojto 90:cb3d968589d8 3819 /* SYNCONF Bit Fields */
Kojto 90:cb3d968589d8 3820 #define FTM_SYNCONF_HWTRIGMODE_MASK 0x1u
Kojto 90:cb3d968589d8 3821 #define FTM_SYNCONF_HWTRIGMODE_SHIFT 0
Kojto 90:cb3d968589d8 3822 #define FTM_SYNCONF_CNTINC_MASK 0x4u
Kojto 90:cb3d968589d8 3823 #define FTM_SYNCONF_CNTINC_SHIFT 2
Kojto 90:cb3d968589d8 3824 #define FTM_SYNCONF_INVC_MASK 0x10u
Kojto 90:cb3d968589d8 3825 #define FTM_SYNCONF_INVC_SHIFT 4
Kojto 90:cb3d968589d8 3826 #define FTM_SYNCONF_SWOC_MASK 0x20u
Kojto 90:cb3d968589d8 3827 #define FTM_SYNCONF_SWOC_SHIFT 5
Kojto 90:cb3d968589d8 3828 #define FTM_SYNCONF_SYNCMODE_MASK 0x80u
Kojto 90:cb3d968589d8 3829 #define FTM_SYNCONF_SYNCMODE_SHIFT 7
Kojto 90:cb3d968589d8 3830 #define FTM_SYNCONF_SWRSTCNT_MASK 0x100u
Kojto 90:cb3d968589d8 3831 #define FTM_SYNCONF_SWRSTCNT_SHIFT 8
Kojto 90:cb3d968589d8 3832 #define FTM_SYNCONF_SWWRBUF_MASK 0x200u
Kojto 90:cb3d968589d8 3833 #define FTM_SYNCONF_SWWRBUF_SHIFT 9
Kojto 90:cb3d968589d8 3834 #define FTM_SYNCONF_SWOM_MASK 0x400u
Kojto 90:cb3d968589d8 3835 #define FTM_SYNCONF_SWOM_SHIFT 10
Kojto 90:cb3d968589d8 3836 #define FTM_SYNCONF_SWINVC_MASK 0x800u
Kojto 90:cb3d968589d8 3837 #define FTM_SYNCONF_SWINVC_SHIFT 11
Kojto 90:cb3d968589d8 3838 #define FTM_SYNCONF_SWSOC_MASK 0x1000u
Kojto 90:cb3d968589d8 3839 #define FTM_SYNCONF_SWSOC_SHIFT 12
Kojto 90:cb3d968589d8 3840 #define FTM_SYNCONF_HWRSTCNT_MASK 0x10000u
Kojto 90:cb3d968589d8 3841 #define FTM_SYNCONF_HWRSTCNT_SHIFT 16
Kojto 90:cb3d968589d8 3842 #define FTM_SYNCONF_HWWRBUF_MASK 0x20000u
Kojto 90:cb3d968589d8 3843 #define FTM_SYNCONF_HWWRBUF_SHIFT 17
Kojto 90:cb3d968589d8 3844 #define FTM_SYNCONF_HWOM_MASK 0x40000u
Kojto 90:cb3d968589d8 3845 #define FTM_SYNCONF_HWOM_SHIFT 18
Kojto 90:cb3d968589d8 3846 #define FTM_SYNCONF_HWINVC_MASK 0x80000u
Kojto 90:cb3d968589d8 3847 #define FTM_SYNCONF_HWINVC_SHIFT 19
Kojto 90:cb3d968589d8 3848 #define FTM_SYNCONF_HWSOC_MASK 0x100000u
Kojto 90:cb3d968589d8 3849 #define FTM_SYNCONF_HWSOC_SHIFT 20
Kojto 90:cb3d968589d8 3850 /* INVCTRL Bit Fields */
Kojto 90:cb3d968589d8 3851 #define FTM_INVCTRL_INV0EN_MASK 0x1u
Kojto 90:cb3d968589d8 3852 #define FTM_INVCTRL_INV0EN_SHIFT 0
Kojto 90:cb3d968589d8 3853 #define FTM_INVCTRL_INV1EN_MASK 0x2u
Kojto 90:cb3d968589d8 3854 #define FTM_INVCTRL_INV1EN_SHIFT 1
Kojto 90:cb3d968589d8 3855 #define FTM_INVCTRL_INV2EN_MASK 0x4u
Kojto 90:cb3d968589d8 3856 #define FTM_INVCTRL_INV2EN_SHIFT 2
Kojto 90:cb3d968589d8 3857 #define FTM_INVCTRL_INV3EN_MASK 0x8u
Kojto 90:cb3d968589d8 3858 #define FTM_INVCTRL_INV3EN_SHIFT 3
Kojto 90:cb3d968589d8 3859 /* SWOCTRL Bit Fields */
Kojto 90:cb3d968589d8 3860 #define FTM_SWOCTRL_CH0OC_MASK 0x1u
Kojto 90:cb3d968589d8 3861 #define FTM_SWOCTRL_CH0OC_SHIFT 0
Kojto 90:cb3d968589d8 3862 #define FTM_SWOCTRL_CH1OC_MASK 0x2u
Kojto 90:cb3d968589d8 3863 #define FTM_SWOCTRL_CH1OC_SHIFT 1
Kojto 90:cb3d968589d8 3864 #define FTM_SWOCTRL_CH2OC_MASK 0x4u
Kojto 90:cb3d968589d8 3865 #define FTM_SWOCTRL_CH2OC_SHIFT 2
Kojto 90:cb3d968589d8 3866 #define FTM_SWOCTRL_CH3OC_MASK 0x8u
Kojto 90:cb3d968589d8 3867 #define FTM_SWOCTRL_CH3OC_SHIFT 3
Kojto 90:cb3d968589d8 3868 #define FTM_SWOCTRL_CH4OC_MASK 0x10u
Kojto 90:cb3d968589d8 3869 #define FTM_SWOCTRL_CH4OC_SHIFT 4
Kojto 90:cb3d968589d8 3870 #define FTM_SWOCTRL_CH5OC_MASK 0x20u
Kojto 90:cb3d968589d8 3871 #define FTM_SWOCTRL_CH5OC_SHIFT 5
Kojto 90:cb3d968589d8 3872 #define FTM_SWOCTRL_CH6OC_MASK 0x40u
Kojto 90:cb3d968589d8 3873 #define FTM_SWOCTRL_CH6OC_SHIFT 6
Kojto 90:cb3d968589d8 3874 #define FTM_SWOCTRL_CH7OC_MASK 0x80u
Kojto 90:cb3d968589d8 3875 #define FTM_SWOCTRL_CH7OC_SHIFT 7
Kojto 90:cb3d968589d8 3876 #define FTM_SWOCTRL_CH0OCV_MASK 0x100u
Kojto 90:cb3d968589d8 3877 #define FTM_SWOCTRL_CH0OCV_SHIFT 8
Kojto 90:cb3d968589d8 3878 #define FTM_SWOCTRL_CH1OCV_MASK 0x200u
Kojto 90:cb3d968589d8 3879 #define FTM_SWOCTRL_CH1OCV_SHIFT 9
Kojto 90:cb3d968589d8 3880 #define FTM_SWOCTRL_CH2OCV_MASK 0x400u
Kojto 90:cb3d968589d8 3881 #define FTM_SWOCTRL_CH2OCV_SHIFT 10
Kojto 90:cb3d968589d8 3882 #define FTM_SWOCTRL_CH3OCV_MASK 0x800u
Kojto 90:cb3d968589d8 3883 #define FTM_SWOCTRL_CH3OCV_SHIFT 11
Kojto 90:cb3d968589d8 3884 #define FTM_SWOCTRL_CH4OCV_MASK 0x1000u
Kojto 90:cb3d968589d8 3885 #define FTM_SWOCTRL_CH4OCV_SHIFT 12
Kojto 90:cb3d968589d8 3886 #define FTM_SWOCTRL_CH5OCV_MASK 0x2000u
Kojto 90:cb3d968589d8 3887 #define FTM_SWOCTRL_CH5OCV_SHIFT 13
Kojto 90:cb3d968589d8 3888 #define FTM_SWOCTRL_CH6OCV_MASK 0x4000u
Kojto 90:cb3d968589d8 3889 #define FTM_SWOCTRL_CH6OCV_SHIFT 14
Kojto 90:cb3d968589d8 3890 #define FTM_SWOCTRL_CH7OCV_MASK 0x8000u
Kojto 90:cb3d968589d8 3891 #define FTM_SWOCTRL_CH7OCV_SHIFT 15
Kojto 90:cb3d968589d8 3892 /* PWMLOAD Bit Fields */
Kojto 90:cb3d968589d8 3893 #define FTM_PWMLOAD_CH0SEL_MASK 0x1u
Kojto 90:cb3d968589d8 3894 #define FTM_PWMLOAD_CH0SEL_SHIFT 0
Kojto 90:cb3d968589d8 3895 #define FTM_PWMLOAD_CH1SEL_MASK 0x2u
Kojto 90:cb3d968589d8 3896 #define FTM_PWMLOAD_CH1SEL_SHIFT 1
Kojto 90:cb3d968589d8 3897 #define FTM_PWMLOAD_CH2SEL_MASK 0x4u
Kojto 90:cb3d968589d8 3898 #define FTM_PWMLOAD_CH2SEL_SHIFT 2
Kojto 90:cb3d968589d8 3899 #define FTM_PWMLOAD_CH3SEL_MASK 0x8u
Kojto 90:cb3d968589d8 3900 #define FTM_PWMLOAD_CH3SEL_SHIFT 3
Kojto 90:cb3d968589d8 3901 #define FTM_PWMLOAD_CH4SEL_MASK 0x10u
Kojto 90:cb3d968589d8 3902 #define FTM_PWMLOAD_CH4SEL_SHIFT 4
Kojto 90:cb3d968589d8 3903 #define FTM_PWMLOAD_CH5SEL_MASK 0x20u
Kojto 90:cb3d968589d8 3904 #define FTM_PWMLOAD_CH5SEL_SHIFT 5
Kojto 90:cb3d968589d8 3905 #define FTM_PWMLOAD_CH6SEL_MASK 0x40u
Kojto 90:cb3d968589d8 3906 #define FTM_PWMLOAD_CH6SEL_SHIFT 6
Kojto 90:cb3d968589d8 3907 #define FTM_PWMLOAD_CH7SEL_MASK 0x80u
Kojto 90:cb3d968589d8 3908 #define FTM_PWMLOAD_CH7SEL_SHIFT 7
Kojto 90:cb3d968589d8 3909 #define FTM_PWMLOAD_LDOK_MASK 0x200u
Kojto 90:cb3d968589d8 3910 #define FTM_PWMLOAD_LDOK_SHIFT 9
Kojto 90:cb3d968589d8 3911
Kojto 90:cb3d968589d8 3912 /*!
Kojto 90:cb3d968589d8 3913 * @}
Kojto 90:cb3d968589d8 3914 */ /* end of group FTM_Register_Masks */
Kojto 90:cb3d968589d8 3915
Kojto 90:cb3d968589d8 3916
Kojto 90:cb3d968589d8 3917 /* FTM - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 3918 /** Peripheral FTM0 base address */
Kojto 90:cb3d968589d8 3919 #define FTM0_BASE (0x40038000u)
Kojto 90:cb3d968589d8 3920 /** Peripheral FTM0 base pointer */
Kojto 90:cb3d968589d8 3921 #define FTM0 ((FTM_Type *)FTM0_BASE)
Kojto 90:cb3d968589d8 3922 #define FTM0_BASE_PTR (FTM0)
Kojto 90:cb3d968589d8 3923 /** Peripheral FTM1 base address */
Kojto 90:cb3d968589d8 3924 #define FTM1_BASE (0x40039000u)
Kojto 90:cb3d968589d8 3925 /** Peripheral FTM1 base pointer */
Kojto 90:cb3d968589d8 3926 #define FTM1 ((FTM_Type *)FTM1_BASE)
Kojto 90:cb3d968589d8 3927 #define FTM1_BASE_PTR (FTM1)
Kojto 90:cb3d968589d8 3928 /** Peripheral FTM2 base address */
Kojto 90:cb3d968589d8 3929 #define FTM2_BASE (0x4003A000u)
Kojto 90:cb3d968589d8 3930 /** Peripheral FTM2 base pointer */
Kojto 90:cb3d968589d8 3931 #define FTM2 ((FTM_Type *)FTM2_BASE)
Kojto 90:cb3d968589d8 3932 #define FTM2_BASE_PTR (FTM2)
Kojto 90:cb3d968589d8 3933 /** Peripheral FTM3 base address */
Kojto 90:cb3d968589d8 3934 #define FTM3_BASE (0x40026000u)
Kojto 90:cb3d968589d8 3935 /** Peripheral FTM3 base pointer */
Kojto 90:cb3d968589d8 3936 #define FTM3 ((FTM_Type *)FTM3_BASE)
Kojto 90:cb3d968589d8 3937 #define FTM3_BASE_PTR (FTM3)
Kojto 90:cb3d968589d8 3938 /** Array initializer of FTM peripheral base addresses */
Kojto 90:cb3d968589d8 3939 #define FTM_BASE_ADDRS { FTM0_BASE, FTM1_BASE, FTM2_BASE, FTM3_BASE }
Kojto 90:cb3d968589d8 3940 /** Array initializer of FTM peripheral base pointers */
Kojto 90:cb3d968589d8 3941 #define FTM_BASE_PTRS { FTM0, FTM1, FTM2, FTM3 }
Kojto 90:cb3d968589d8 3942 /** Interrupt vectors for the FTM peripheral type */
Kojto 90:cb3d968589d8 3943 #define FTM_IRQS { FTM0_IRQn, FTM1_IRQn, FTM2_IRQn, FTM3_IRQn }
Kojto 90:cb3d968589d8 3944
Kojto 90:cb3d968589d8 3945 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 3946 -- FTM - Register accessor macros
Kojto 90:cb3d968589d8 3947 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 3948
Kojto 90:cb3d968589d8 3949 /*!
Kojto 90:cb3d968589d8 3950 * @addtogroup FTM_Register_Accessor_Macros FTM - Register accessor macros
Kojto 90:cb3d968589d8 3951 * @{
Kojto 90:cb3d968589d8 3952 */
Kojto 90:cb3d968589d8 3953
Kojto 90:cb3d968589d8 3954
Kojto 90:cb3d968589d8 3955 /* FTM - Register instance definitions */
Kojto 90:cb3d968589d8 3956 /* FTM0 */
Kojto 90:cb3d968589d8 3957 #define FTM0_SC FTM_SC_REG(FTM0)
Kojto 90:cb3d968589d8 3958 #define FTM0_CNT FTM_CNT_REG(FTM0)
Kojto 90:cb3d968589d8 3959 #define FTM0_MOD FTM_MOD_REG(FTM0)
Kojto 90:cb3d968589d8 3960 #define FTM0_C0SC FTM_CnSC_REG(FTM0,0)
Kojto 90:cb3d968589d8 3961 #define FTM0_C0V FTM_CnV_REG(FTM0,0)
Kojto 90:cb3d968589d8 3962 #define FTM0_C1SC FTM_CnSC_REG(FTM0,1)
Kojto 90:cb3d968589d8 3963 #define FTM0_C1V FTM_CnV_REG(FTM0,1)
Kojto 90:cb3d968589d8 3964 #define FTM0_C2SC FTM_CnSC_REG(FTM0,2)
Kojto 90:cb3d968589d8 3965 #define FTM0_C2V FTM_CnV_REG(FTM0,2)
Kojto 90:cb3d968589d8 3966 #define FTM0_C3SC FTM_CnSC_REG(FTM0,3)
Kojto 90:cb3d968589d8 3967 #define FTM0_C3V FTM_CnV_REG(FTM0,3)
Kojto 90:cb3d968589d8 3968 #define FTM0_C4SC FTM_CnSC_REG(FTM0,4)
Kojto 90:cb3d968589d8 3969 #define FTM0_C4V FTM_CnV_REG(FTM0,4)
Kojto 90:cb3d968589d8 3970 #define FTM0_C5SC FTM_CnSC_REG(FTM0,5)
Kojto 90:cb3d968589d8 3971 #define FTM0_C5V FTM_CnV_REG(FTM0,5)
Kojto 90:cb3d968589d8 3972 #define FTM0_C6SC FTM_CnSC_REG(FTM0,6)
Kojto 90:cb3d968589d8 3973 #define FTM0_C6V FTM_CnV_REG(FTM0,6)
Kojto 90:cb3d968589d8 3974 #define FTM0_C7SC FTM_CnSC_REG(FTM0,7)
Kojto 90:cb3d968589d8 3975 #define FTM0_C7V FTM_CnV_REG(FTM0,7)
Kojto 90:cb3d968589d8 3976 #define FTM0_CNTIN FTM_CNTIN_REG(FTM0)
Kojto 90:cb3d968589d8 3977 #define FTM0_STATUS FTM_STATUS_REG(FTM0)
Kojto 90:cb3d968589d8 3978 #define FTM0_MODE FTM_MODE_REG(FTM0)
Kojto 90:cb3d968589d8 3979 #define FTM0_SYNC FTM_SYNC_REG(FTM0)
Kojto 90:cb3d968589d8 3980 #define FTM0_OUTINIT FTM_OUTINIT_REG(FTM0)
Kojto 90:cb3d968589d8 3981 #define FTM0_OUTMASK FTM_OUTMASK_REG(FTM0)
Kojto 90:cb3d968589d8 3982 #define FTM0_COMBINE FTM_COMBINE_REG(FTM0)
Kojto 90:cb3d968589d8 3983 #define FTM0_DEADTIME FTM_DEADTIME_REG(FTM0)
Kojto 90:cb3d968589d8 3984 #define FTM0_EXTTRIG FTM_EXTTRIG_REG(FTM0)
Kojto 90:cb3d968589d8 3985 #define FTM0_POL FTM_POL_REG(FTM0)
Kojto 90:cb3d968589d8 3986 #define FTM0_FMS FTM_FMS_REG(FTM0)
Kojto 90:cb3d968589d8 3987 #define FTM0_FILTER FTM_FILTER_REG(FTM0)
Kojto 90:cb3d968589d8 3988 #define FTM0_FLTCTRL FTM_FLTCTRL_REG(FTM0)
Kojto 90:cb3d968589d8 3989 #define FTM0_QDCTRL FTM_QDCTRL_REG(FTM0)
Kojto 90:cb3d968589d8 3990 #define FTM0_CONF FTM_CONF_REG(FTM0)
Kojto 90:cb3d968589d8 3991 #define FTM0_FLTPOL FTM_FLTPOL_REG(FTM0)
Kojto 90:cb3d968589d8 3992 #define FTM0_SYNCONF FTM_SYNCONF_REG(FTM0)
Kojto 90:cb3d968589d8 3993 #define FTM0_INVCTRL FTM_INVCTRL_REG(FTM0)
Kojto 90:cb3d968589d8 3994 #define FTM0_SWOCTRL FTM_SWOCTRL_REG(FTM0)
Kojto 90:cb3d968589d8 3995 #define FTM0_PWMLOAD FTM_PWMLOAD_REG(FTM0)
Kojto 90:cb3d968589d8 3996 /* FTM1 */
Kojto 90:cb3d968589d8 3997 #define FTM1_SC FTM_SC_REG(FTM1)
Kojto 90:cb3d968589d8 3998 #define FTM1_CNT FTM_CNT_REG(FTM1)
Kojto 90:cb3d968589d8 3999 #define FTM1_MOD FTM_MOD_REG(FTM1)
Kojto 90:cb3d968589d8 4000 #define FTM1_C0SC FTM_CnSC_REG(FTM1,0)
Kojto 90:cb3d968589d8 4001 #define FTM1_C0V FTM_CnV_REG(FTM1,0)
Kojto 90:cb3d968589d8 4002 #define FTM1_C1SC FTM_CnSC_REG(FTM1,1)
Kojto 90:cb3d968589d8 4003 #define FTM1_C1V FTM_CnV_REG(FTM1,1)
Kojto 90:cb3d968589d8 4004 #define FTM1_CNTIN FTM_CNTIN_REG(FTM1)
Kojto 90:cb3d968589d8 4005 #define FTM1_STATUS FTM_STATUS_REG(FTM1)
Kojto 90:cb3d968589d8 4006 #define FTM1_MODE FTM_MODE_REG(FTM1)
Kojto 90:cb3d968589d8 4007 #define FTM1_SYNC FTM_SYNC_REG(FTM1)
Kojto 90:cb3d968589d8 4008 #define FTM1_OUTINIT FTM_OUTINIT_REG(FTM1)
Kojto 90:cb3d968589d8 4009 #define FTM1_OUTMASK FTM_OUTMASK_REG(FTM1)
Kojto 90:cb3d968589d8 4010 #define FTM1_COMBINE FTM_COMBINE_REG(FTM1)
Kojto 90:cb3d968589d8 4011 #define FTM1_DEADTIME FTM_DEADTIME_REG(FTM1)
Kojto 90:cb3d968589d8 4012 #define FTM1_EXTTRIG FTM_EXTTRIG_REG(FTM1)
Kojto 90:cb3d968589d8 4013 #define FTM1_POL FTM_POL_REG(FTM1)
Kojto 90:cb3d968589d8 4014 #define FTM1_FMS FTM_FMS_REG(FTM1)
Kojto 90:cb3d968589d8 4015 #define FTM1_FILTER FTM_FILTER_REG(FTM1)
Kojto 90:cb3d968589d8 4016 #define FTM1_FLTCTRL FTM_FLTCTRL_REG(FTM1)
Kojto 90:cb3d968589d8 4017 #define FTM1_QDCTRL FTM_QDCTRL_REG(FTM1)
Kojto 90:cb3d968589d8 4018 #define FTM1_CONF FTM_CONF_REG(FTM1)
Kojto 90:cb3d968589d8 4019 #define FTM1_FLTPOL FTM_FLTPOL_REG(FTM1)
Kojto 90:cb3d968589d8 4020 #define FTM1_SYNCONF FTM_SYNCONF_REG(FTM1)
Kojto 90:cb3d968589d8 4021 #define FTM1_INVCTRL FTM_INVCTRL_REG(FTM1)
Kojto 90:cb3d968589d8 4022 #define FTM1_SWOCTRL FTM_SWOCTRL_REG(FTM1)
Kojto 90:cb3d968589d8 4023 #define FTM1_PWMLOAD FTM_PWMLOAD_REG(FTM1)
Kojto 90:cb3d968589d8 4024 /* FTM2 */
Kojto 90:cb3d968589d8 4025 #define FTM2_SC FTM_SC_REG(FTM2)
Kojto 90:cb3d968589d8 4026 #define FTM2_CNT FTM_CNT_REG(FTM2)
Kojto 90:cb3d968589d8 4027 #define FTM2_MOD FTM_MOD_REG(FTM2)
Kojto 90:cb3d968589d8 4028 #define FTM2_C0SC FTM_CnSC_REG(FTM2,0)
Kojto 90:cb3d968589d8 4029 #define FTM2_C0V FTM_CnV_REG(FTM2,0)
Kojto 90:cb3d968589d8 4030 #define FTM2_C1SC FTM_CnSC_REG(FTM2,1)
Kojto 90:cb3d968589d8 4031 #define FTM2_C1V FTM_CnV_REG(FTM2,1)
Kojto 90:cb3d968589d8 4032 #define FTM2_CNTIN FTM_CNTIN_REG(FTM2)
Kojto 90:cb3d968589d8 4033 #define FTM2_STATUS FTM_STATUS_REG(FTM2)
Kojto 90:cb3d968589d8 4034 #define FTM2_MODE FTM_MODE_REG(FTM2)
Kojto 90:cb3d968589d8 4035 #define FTM2_SYNC FTM_SYNC_REG(FTM2)
Kojto 90:cb3d968589d8 4036 #define FTM2_OUTINIT FTM_OUTINIT_REG(FTM2)
Kojto 90:cb3d968589d8 4037 #define FTM2_OUTMASK FTM_OUTMASK_REG(FTM2)
Kojto 90:cb3d968589d8 4038 #define FTM2_COMBINE FTM_COMBINE_REG(FTM2)
Kojto 90:cb3d968589d8 4039 #define FTM2_DEADTIME FTM_DEADTIME_REG(FTM2)
Kojto 90:cb3d968589d8 4040 #define FTM2_EXTTRIG FTM_EXTTRIG_REG(FTM2)
Kojto 90:cb3d968589d8 4041 #define FTM2_POL FTM_POL_REG(FTM2)
Kojto 90:cb3d968589d8 4042 #define FTM2_FMS FTM_FMS_REG(FTM2)
Kojto 90:cb3d968589d8 4043 #define FTM2_FILTER FTM_FILTER_REG(FTM2)
Kojto 90:cb3d968589d8 4044 #define FTM2_FLTCTRL FTM_FLTCTRL_REG(FTM2)
Kojto 90:cb3d968589d8 4045 #define FTM2_QDCTRL FTM_QDCTRL_REG(FTM2)
Kojto 90:cb3d968589d8 4046 #define FTM2_CONF FTM_CONF_REG(FTM2)
Kojto 90:cb3d968589d8 4047 #define FTM2_FLTPOL FTM_FLTPOL_REG(FTM2)
Kojto 90:cb3d968589d8 4048 #define FTM2_SYNCONF FTM_SYNCONF_REG(FTM2)
Kojto 90:cb3d968589d8 4049 #define FTM2_INVCTRL FTM_INVCTRL_REG(FTM2)
Kojto 90:cb3d968589d8 4050 #define FTM2_SWOCTRL FTM_SWOCTRL_REG(FTM2)
Kojto 90:cb3d968589d8 4051 #define FTM2_PWMLOAD FTM_PWMLOAD_REG(FTM2)
Kojto 90:cb3d968589d8 4052 /* FTM3 */
Kojto 90:cb3d968589d8 4053 #define FTM3_SC FTM_SC_REG(FTM3)
Kojto 90:cb3d968589d8 4054 #define FTM3_CNT FTM_CNT_REG(FTM3)
Kojto 90:cb3d968589d8 4055 #define FTM3_MOD FTM_MOD_REG(FTM3)
Kojto 90:cb3d968589d8 4056 #define FTM3_C0SC FTM_CnSC_REG(FTM3,0)
Kojto 90:cb3d968589d8 4057 #define FTM3_C0V FTM_CnV_REG(FTM3,0)
Kojto 90:cb3d968589d8 4058 #define FTM3_C1SC FTM_CnSC_REG(FTM3,1)
Kojto 90:cb3d968589d8 4059 #define FTM3_C1V FTM_CnV_REG(FTM3,1)
Kojto 90:cb3d968589d8 4060 #define FTM3_C2SC FTM_CnSC_REG(FTM3,2)
Kojto 90:cb3d968589d8 4061 #define FTM3_C2V FTM_CnV_REG(FTM3,2)
Kojto 90:cb3d968589d8 4062 #define FTM3_C3SC FTM_CnSC_REG(FTM3,3)
Kojto 90:cb3d968589d8 4063 #define FTM3_C3V FTM_CnV_REG(FTM3,3)
Kojto 90:cb3d968589d8 4064 #define FTM3_C4SC FTM_CnSC_REG(FTM3,4)
Kojto 90:cb3d968589d8 4065 #define FTM3_C4V FTM_CnV_REG(FTM3,4)
Kojto 90:cb3d968589d8 4066 #define FTM3_C5SC FTM_CnSC_REG(FTM3,5)
Kojto 90:cb3d968589d8 4067 #define FTM3_C5V FTM_CnV_REG(FTM3,5)
Kojto 90:cb3d968589d8 4068 #define FTM3_C6SC FTM_CnSC_REG(FTM3,6)
Kojto 90:cb3d968589d8 4069 #define FTM3_C6V FTM_CnV_REG(FTM3,6)
Kojto 90:cb3d968589d8 4070 #define FTM3_C7SC FTM_CnSC_REG(FTM3,7)
Kojto 90:cb3d968589d8 4071 #define FTM3_C7V FTM_CnV_REG(FTM3,7)
Kojto 90:cb3d968589d8 4072 #define FTM3_CNTIN FTM_CNTIN_REG(FTM3)
Kojto 90:cb3d968589d8 4073 #define FTM3_STATUS FTM_STATUS_REG(FTM3)
Kojto 90:cb3d968589d8 4074 #define FTM3_MODE FTM_MODE_REG(FTM3)
Kojto 90:cb3d968589d8 4075 #define FTM3_SYNC FTM_SYNC_REG(FTM3)
Kojto 90:cb3d968589d8 4076 #define FTM3_OUTINIT FTM_OUTINIT_REG(FTM3)
Kojto 90:cb3d968589d8 4077 #define FTM3_OUTMASK FTM_OUTMASK_REG(FTM3)
Kojto 90:cb3d968589d8 4078 #define FTM3_COMBINE FTM_COMBINE_REG(FTM3)
Kojto 90:cb3d968589d8 4079 #define FTM3_DEADTIME FTM_DEADTIME_REG(FTM3)
Kojto 90:cb3d968589d8 4080 #define FTM3_EXTTRIG FTM_EXTTRIG_REG(FTM3)
Kojto 90:cb3d968589d8 4081 #define FTM3_POL FTM_POL_REG(FTM3)
Kojto 90:cb3d968589d8 4082 #define FTM3_FMS FTM_FMS_REG(FTM3)
Kojto 90:cb3d968589d8 4083 #define FTM3_FILTER FTM_FILTER_REG(FTM3)
Kojto 90:cb3d968589d8 4084 #define FTM3_FLTCTRL FTM_FLTCTRL_REG(FTM3)
Kojto 90:cb3d968589d8 4085 #define FTM3_QDCTRL FTM_QDCTRL_REG(FTM3)
Kojto 90:cb3d968589d8 4086 #define FTM3_CONF FTM_CONF_REG(FTM3)
Kojto 90:cb3d968589d8 4087 #define FTM3_FLTPOL FTM_FLTPOL_REG(FTM3)
Kojto 90:cb3d968589d8 4088 #define FTM3_SYNCONF FTM_SYNCONF_REG(FTM3)
Kojto 90:cb3d968589d8 4089 #define FTM3_INVCTRL FTM_INVCTRL_REG(FTM3)
Kojto 90:cb3d968589d8 4090 #define FTM3_SWOCTRL FTM_SWOCTRL_REG(FTM3)
Kojto 90:cb3d968589d8 4091 #define FTM3_PWMLOAD FTM_PWMLOAD_REG(FTM3)
Kojto 90:cb3d968589d8 4092
Kojto 90:cb3d968589d8 4093 /* FTM - Register array accessors */
Kojto 90:cb3d968589d8 4094 #define FTM0_CnSC(index) FTM_CnSC_REG(FTM0,index)
Kojto 90:cb3d968589d8 4095 #define FTM1_CnSC(index) FTM_CnSC_REG(FTM1,index)
Kojto 90:cb3d968589d8 4096 #define FTM2_CnSC(index) FTM_CnSC_REG(FTM2,index)
Kojto 90:cb3d968589d8 4097 #define FTM3_CnSC(index) FTM_CnSC_REG(FTM3,index)
Kojto 90:cb3d968589d8 4098 #define FTM0_CnV(index) FTM_CnV_REG(FTM0,index)
Kojto 90:cb3d968589d8 4099 #define FTM1_CnV(index) FTM_CnV_REG(FTM1,index)
Kojto 90:cb3d968589d8 4100 #define FTM2_CnV(index) FTM_CnV_REG(FTM2,index)
Kojto 90:cb3d968589d8 4101 #define FTM3_CnV(index) FTM_CnV_REG(FTM3,index)
Kojto 90:cb3d968589d8 4102
Kojto 90:cb3d968589d8 4103 /*!
Kojto 90:cb3d968589d8 4104 * @}
Kojto 90:cb3d968589d8 4105 */ /* end of group FTM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 4106
Kojto 90:cb3d968589d8 4107
Kojto 90:cb3d968589d8 4108 /*!
Kojto 90:cb3d968589d8 4109 * @}
Kojto 90:cb3d968589d8 4110 */ /* end of group FTM_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 4111
Kojto 90:cb3d968589d8 4112
Kojto 90:cb3d968589d8 4113 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4114 -- GPIO Peripheral Access Layer
Kojto 90:cb3d968589d8 4115 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4116
Kojto 90:cb3d968589d8 4117 /*!
Kojto 90:cb3d968589d8 4118 * @addtogroup GPIO_Peripheral_Access_Layer GPIO Peripheral Access Layer
Kojto 90:cb3d968589d8 4119 * @{
Kojto 90:cb3d968589d8 4120 */
Kojto 90:cb3d968589d8 4121
Kojto 90:cb3d968589d8 4122 /** GPIO - Register Layout Typedef */
Kojto 90:cb3d968589d8 4123 typedef struct {
Kojto 90:cb3d968589d8 4124 __IO uint32_t PDOR; /**< Port Data Output Register, offset: 0x0 */
Kojto 90:cb3d968589d8 4125 __O uint32_t PSOR; /**< Port Set Output Register, offset: 0x4 */
Kojto 90:cb3d968589d8 4126 __O uint32_t PCOR; /**< Port Clear Output Register, offset: 0x8 */
Kojto 90:cb3d968589d8 4127 __O uint32_t PTOR; /**< Port Toggle Output Register, offset: 0xC */
Kojto 90:cb3d968589d8 4128 __I uint32_t PDIR; /**< Port Data Input Register, offset: 0x10 */
Kojto 90:cb3d968589d8 4129 __IO uint32_t PDDR; /**< Port Data Direction Register, offset: 0x14 */
Kojto 90:cb3d968589d8 4130 } GPIO_Type, *GPIO_MemMapPtr;
Kojto 90:cb3d968589d8 4131
Kojto 90:cb3d968589d8 4132 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4133 -- GPIO - Register accessor macros
Kojto 90:cb3d968589d8 4134 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4135
Kojto 90:cb3d968589d8 4136 /*!
Kojto 90:cb3d968589d8 4137 * @addtogroup GPIO_Register_Accessor_Macros GPIO - Register accessor macros
Kojto 90:cb3d968589d8 4138 * @{
Kojto 90:cb3d968589d8 4139 */
Kojto 90:cb3d968589d8 4140
Kojto 90:cb3d968589d8 4141
Kojto 90:cb3d968589d8 4142 /* GPIO - Register accessors */
Kojto 90:cb3d968589d8 4143 #define GPIO_PDOR_REG(base) ((base)->PDOR)
Kojto 90:cb3d968589d8 4144 #define GPIO_PSOR_REG(base) ((base)->PSOR)
Kojto 90:cb3d968589d8 4145 #define GPIO_PCOR_REG(base) ((base)->PCOR)
Kojto 90:cb3d968589d8 4146 #define GPIO_PTOR_REG(base) ((base)->PTOR)
Kojto 90:cb3d968589d8 4147 #define GPIO_PDIR_REG(base) ((base)->PDIR)
Kojto 90:cb3d968589d8 4148 #define GPIO_PDDR_REG(base) ((base)->PDDR)
Kojto 90:cb3d968589d8 4149
Kojto 90:cb3d968589d8 4150 /*!
Kojto 90:cb3d968589d8 4151 * @}
Kojto 90:cb3d968589d8 4152 */ /* end of group GPIO_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 4153
Kojto 90:cb3d968589d8 4154
Kojto 90:cb3d968589d8 4155 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4156 -- GPIO Register Masks
Kojto 90:cb3d968589d8 4157 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4158
Kojto 90:cb3d968589d8 4159 /*!
Kojto 90:cb3d968589d8 4160 * @addtogroup GPIO_Register_Masks GPIO Register Masks
Kojto 90:cb3d968589d8 4161 * @{
Kojto 90:cb3d968589d8 4162 */
Kojto 90:cb3d968589d8 4163
Kojto 90:cb3d968589d8 4164 /* PDOR Bit Fields */
Kojto 90:cb3d968589d8 4165 #define GPIO_PDOR_PDO_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 4166 #define GPIO_PDOR_PDO_SHIFT 0
Kojto 90:cb3d968589d8 4167 #define GPIO_PDOR_PDO(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PDOR_PDO_SHIFT))&GPIO_PDOR_PDO_MASK)
Kojto 90:cb3d968589d8 4168 /* PSOR Bit Fields */
Kojto 90:cb3d968589d8 4169 #define GPIO_PSOR_PTSO_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 4170 #define GPIO_PSOR_PTSO_SHIFT 0
Kojto 90:cb3d968589d8 4171 #define GPIO_PSOR_PTSO(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PSOR_PTSO_SHIFT))&GPIO_PSOR_PTSO_MASK)
Kojto 90:cb3d968589d8 4172 /* PCOR Bit Fields */
Kojto 90:cb3d968589d8 4173 #define GPIO_PCOR_PTCO_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 4174 #define GPIO_PCOR_PTCO_SHIFT 0
Kojto 90:cb3d968589d8 4175 #define GPIO_PCOR_PTCO(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PCOR_PTCO_SHIFT))&GPIO_PCOR_PTCO_MASK)
Kojto 90:cb3d968589d8 4176 /* PTOR Bit Fields */
Kojto 90:cb3d968589d8 4177 #define GPIO_PTOR_PTTO_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 4178 #define GPIO_PTOR_PTTO_SHIFT 0
Kojto 90:cb3d968589d8 4179 #define GPIO_PTOR_PTTO(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PTOR_PTTO_SHIFT))&GPIO_PTOR_PTTO_MASK)
Kojto 90:cb3d968589d8 4180 /* PDIR Bit Fields */
Kojto 90:cb3d968589d8 4181 #define GPIO_PDIR_PDI_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 4182 #define GPIO_PDIR_PDI_SHIFT 0
Kojto 90:cb3d968589d8 4183 #define GPIO_PDIR_PDI(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PDIR_PDI_SHIFT))&GPIO_PDIR_PDI_MASK)
Kojto 90:cb3d968589d8 4184 /* PDDR Bit Fields */
Kojto 90:cb3d968589d8 4185 #define GPIO_PDDR_PDD_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 4186 #define GPIO_PDDR_PDD_SHIFT 0
Kojto 90:cb3d968589d8 4187 #define GPIO_PDDR_PDD(x) (((uint32_t)(((uint32_t)(x))<<GPIO_PDDR_PDD_SHIFT))&GPIO_PDDR_PDD_MASK)
Kojto 90:cb3d968589d8 4188
Kojto 90:cb3d968589d8 4189 /*!
Kojto 90:cb3d968589d8 4190 * @}
Kojto 90:cb3d968589d8 4191 */ /* end of group GPIO_Register_Masks */
Kojto 90:cb3d968589d8 4192
Kojto 90:cb3d968589d8 4193
Kojto 90:cb3d968589d8 4194 /* GPIO - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 4195 /** Peripheral PTA base address */
Kojto 90:cb3d968589d8 4196 #define PTA_BASE (0x400FF000u)
Kojto 90:cb3d968589d8 4197 /** Peripheral PTA base pointer */
Kojto 90:cb3d968589d8 4198 #define PTA ((GPIO_Type *)PTA_BASE)
Kojto 90:cb3d968589d8 4199 #define PTA_BASE_PTR (PTA)
Kojto 90:cb3d968589d8 4200 /** Peripheral PTB base address */
Kojto 90:cb3d968589d8 4201 #define PTB_BASE (0x400FF040u)
Kojto 90:cb3d968589d8 4202 /** Peripheral PTB base pointer */
Kojto 90:cb3d968589d8 4203 #define PTB ((GPIO_Type *)PTB_BASE)
Kojto 90:cb3d968589d8 4204 #define PTB_BASE_PTR (PTB)
Kojto 90:cb3d968589d8 4205 /** Peripheral PTC base address */
Kojto 90:cb3d968589d8 4206 #define PTC_BASE (0x400FF080u)
Kojto 90:cb3d968589d8 4207 /** Peripheral PTC base pointer */
Kojto 90:cb3d968589d8 4208 #define PTC ((GPIO_Type *)PTC_BASE)
Kojto 90:cb3d968589d8 4209 #define PTC_BASE_PTR (PTC)
Kojto 90:cb3d968589d8 4210 /** Peripheral PTD base address */
Kojto 90:cb3d968589d8 4211 #define PTD_BASE (0x400FF0C0u)
Kojto 90:cb3d968589d8 4212 /** Peripheral PTD base pointer */
Kojto 90:cb3d968589d8 4213 #define PTD ((GPIO_Type *)PTD_BASE)
Kojto 90:cb3d968589d8 4214 #define PTD_BASE_PTR (PTD)
Kojto 90:cb3d968589d8 4215 /** Peripheral PTE base address */
Kojto 90:cb3d968589d8 4216 #define PTE_BASE (0x400FF100u)
Kojto 90:cb3d968589d8 4217 /** Peripheral PTE base pointer */
Kojto 90:cb3d968589d8 4218 #define PTE ((GPIO_Type *)PTE_BASE)
Kojto 90:cb3d968589d8 4219 #define PTE_BASE_PTR (PTE)
Kojto 90:cb3d968589d8 4220 /** Array initializer of GPIO peripheral base addresses */
Kojto 90:cb3d968589d8 4221 #define GPIO_BASE_ADDRS { PTA_BASE, PTB_BASE, PTC_BASE, PTD_BASE, PTE_BASE }
Kojto 90:cb3d968589d8 4222 /** Array initializer of GPIO peripheral base pointers */
Kojto 90:cb3d968589d8 4223 #define GPIO_BASE_PTRS { PTA, PTB, PTC, PTD, PTE }
Kojto 90:cb3d968589d8 4224
Kojto 90:cb3d968589d8 4225 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4226 -- GPIO - Register accessor macros
Kojto 90:cb3d968589d8 4227 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4228
Kojto 90:cb3d968589d8 4229 /*!
Kojto 90:cb3d968589d8 4230 * @addtogroup GPIO_Register_Accessor_Macros GPIO - Register accessor macros
Kojto 90:cb3d968589d8 4231 * @{
Kojto 90:cb3d968589d8 4232 */
Kojto 90:cb3d968589d8 4233
Kojto 90:cb3d968589d8 4234
Kojto 90:cb3d968589d8 4235 /* GPIO - Register instance definitions */
Kojto 90:cb3d968589d8 4236 /* PTA */
Kojto 90:cb3d968589d8 4237 #define GPIOA_PDOR GPIO_PDOR_REG(PTA)
Kojto 90:cb3d968589d8 4238 #define GPIOA_PSOR GPIO_PSOR_REG(PTA)
Kojto 90:cb3d968589d8 4239 #define GPIOA_PCOR GPIO_PCOR_REG(PTA)
Kojto 90:cb3d968589d8 4240 #define GPIOA_PTOR GPIO_PTOR_REG(PTA)
Kojto 90:cb3d968589d8 4241 #define GPIOA_PDIR GPIO_PDIR_REG(PTA)
Kojto 90:cb3d968589d8 4242 #define GPIOA_PDDR GPIO_PDDR_REG(PTA)
Kojto 90:cb3d968589d8 4243 /* PTB */
Kojto 90:cb3d968589d8 4244 #define GPIOB_PDOR GPIO_PDOR_REG(PTB)
Kojto 90:cb3d968589d8 4245 #define GPIOB_PSOR GPIO_PSOR_REG(PTB)
Kojto 90:cb3d968589d8 4246 #define GPIOB_PCOR GPIO_PCOR_REG(PTB)
Kojto 90:cb3d968589d8 4247 #define GPIOB_PTOR GPIO_PTOR_REG(PTB)
Kojto 90:cb3d968589d8 4248 #define GPIOB_PDIR GPIO_PDIR_REG(PTB)
Kojto 90:cb3d968589d8 4249 #define GPIOB_PDDR GPIO_PDDR_REG(PTB)
Kojto 90:cb3d968589d8 4250 /* PTC */
Kojto 90:cb3d968589d8 4251 #define GPIOC_PDOR GPIO_PDOR_REG(PTC)
Kojto 90:cb3d968589d8 4252 #define GPIOC_PSOR GPIO_PSOR_REG(PTC)
Kojto 90:cb3d968589d8 4253 #define GPIOC_PCOR GPIO_PCOR_REG(PTC)
Kojto 90:cb3d968589d8 4254 #define GPIOC_PTOR GPIO_PTOR_REG(PTC)
Kojto 90:cb3d968589d8 4255 #define GPIOC_PDIR GPIO_PDIR_REG(PTC)
Kojto 90:cb3d968589d8 4256 #define GPIOC_PDDR GPIO_PDDR_REG(PTC)
Kojto 90:cb3d968589d8 4257 /* PTD */
Kojto 90:cb3d968589d8 4258 #define GPIOD_PDOR GPIO_PDOR_REG(PTD)
Kojto 90:cb3d968589d8 4259 #define GPIOD_PSOR GPIO_PSOR_REG(PTD)
Kojto 90:cb3d968589d8 4260 #define GPIOD_PCOR GPIO_PCOR_REG(PTD)
Kojto 90:cb3d968589d8 4261 #define GPIOD_PTOR GPIO_PTOR_REG(PTD)
Kojto 90:cb3d968589d8 4262 #define GPIOD_PDIR GPIO_PDIR_REG(PTD)
Kojto 90:cb3d968589d8 4263 #define GPIOD_PDDR GPIO_PDDR_REG(PTD)
Kojto 90:cb3d968589d8 4264 /* PTE */
Kojto 90:cb3d968589d8 4265 #define GPIOE_PDOR GPIO_PDOR_REG(PTE)
Kojto 90:cb3d968589d8 4266 #define GPIOE_PSOR GPIO_PSOR_REG(PTE)
Kojto 90:cb3d968589d8 4267 #define GPIOE_PCOR GPIO_PCOR_REG(PTE)
Kojto 90:cb3d968589d8 4268 #define GPIOE_PTOR GPIO_PTOR_REG(PTE)
Kojto 90:cb3d968589d8 4269 #define GPIOE_PDIR GPIO_PDIR_REG(PTE)
Kojto 90:cb3d968589d8 4270 #define GPIOE_PDDR GPIO_PDDR_REG(PTE)
Kojto 90:cb3d968589d8 4271
Kojto 90:cb3d968589d8 4272 /*!
Kojto 90:cb3d968589d8 4273 * @}
Kojto 90:cb3d968589d8 4274 */ /* end of group GPIO_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 4275
Kojto 90:cb3d968589d8 4276
Kojto 90:cb3d968589d8 4277 /*!
Kojto 90:cb3d968589d8 4278 * @}
Kojto 90:cb3d968589d8 4279 */ /* end of group GPIO_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 4280
Kojto 90:cb3d968589d8 4281
Kojto 90:cb3d968589d8 4282 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4283 -- I2C Peripheral Access Layer
Kojto 90:cb3d968589d8 4284 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4285
Kojto 90:cb3d968589d8 4286 /*!
Kojto 90:cb3d968589d8 4287 * @addtogroup I2C_Peripheral_Access_Layer I2C Peripheral Access Layer
Kojto 90:cb3d968589d8 4288 * @{
Kojto 90:cb3d968589d8 4289 */
Kojto 90:cb3d968589d8 4290
Kojto 90:cb3d968589d8 4291 /** I2C - Register Layout Typedef */
Kojto 90:cb3d968589d8 4292 typedef struct {
Kojto 90:cb3d968589d8 4293 __IO uint8_t A1; /**< I2C Address Register 1, offset: 0x0 */
Kojto 90:cb3d968589d8 4294 __IO uint8_t F; /**< I2C Frequency Divider register, offset: 0x1 */
Kojto 90:cb3d968589d8 4295 __IO uint8_t C1; /**< I2C Control Register 1, offset: 0x2 */
Kojto 90:cb3d968589d8 4296 __IO uint8_t S; /**< I2C Status register, offset: 0x3 */
Kojto 90:cb3d968589d8 4297 __IO uint8_t D; /**< I2C Data I/O register, offset: 0x4 */
Kojto 90:cb3d968589d8 4298 __IO uint8_t C2; /**< I2C Control Register 2, offset: 0x5 */
Kojto 90:cb3d968589d8 4299 __IO uint8_t FLT; /**< I2C Programmable Input Glitch Filter register, offset: 0x6 */
Kojto 90:cb3d968589d8 4300 __IO uint8_t RA; /**< I2C Range Address register, offset: 0x7 */
Kojto 90:cb3d968589d8 4301 __IO uint8_t SMB; /**< I2C SMBus Control and Status register, offset: 0x8 */
Kojto 90:cb3d968589d8 4302 __IO uint8_t A2; /**< I2C Address Register 2, offset: 0x9 */
Kojto 90:cb3d968589d8 4303 __IO uint8_t SLTH; /**< I2C SCL Low Timeout Register High, offset: 0xA */
Kojto 90:cb3d968589d8 4304 __IO uint8_t SLTL; /**< I2C SCL Low Timeout Register Low, offset: 0xB */
Kojto 90:cb3d968589d8 4305 } I2C_Type, *I2C_MemMapPtr;
Kojto 90:cb3d968589d8 4306
Kojto 90:cb3d968589d8 4307 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4308 -- I2C - Register accessor macros
Kojto 90:cb3d968589d8 4309 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4310
Kojto 90:cb3d968589d8 4311 /*!
Kojto 90:cb3d968589d8 4312 * @addtogroup I2C_Register_Accessor_Macros I2C - Register accessor macros
Kojto 90:cb3d968589d8 4313 * @{
Kojto 90:cb3d968589d8 4314 */
Kojto 90:cb3d968589d8 4315
Kojto 90:cb3d968589d8 4316
Kojto 90:cb3d968589d8 4317 /* I2C - Register accessors */
Kojto 90:cb3d968589d8 4318 #define I2C_A1_REG(base) ((base)->A1)
Kojto 90:cb3d968589d8 4319 #define I2C_F_REG(base) ((base)->F)
Kojto 90:cb3d968589d8 4320 #define I2C_C1_REG(base) ((base)->C1)
Kojto 90:cb3d968589d8 4321 #define I2C_S_REG(base) ((base)->S)
Kojto 90:cb3d968589d8 4322 #define I2C_D_REG(base) ((base)->D)
Kojto 90:cb3d968589d8 4323 #define I2C_C2_REG(base) ((base)->C2)
Kojto 90:cb3d968589d8 4324 #define I2C_FLT_REG(base) ((base)->FLT)
Kojto 90:cb3d968589d8 4325 #define I2C_RA_REG(base) ((base)->RA)
Kojto 90:cb3d968589d8 4326 #define I2C_SMB_REG(base) ((base)->SMB)
Kojto 90:cb3d968589d8 4327 #define I2C_A2_REG(base) ((base)->A2)
Kojto 90:cb3d968589d8 4328 #define I2C_SLTH_REG(base) ((base)->SLTH)
Kojto 90:cb3d968589d8 4329 #define I2C_SLTL_REG(base) ((base)->SLTL)
Kojto 90:cb3d968589d8 4330
Kojto 90:cb3d968589d8 4331 /*!
Kojto 90:cb3d968589d8 4332 * @}
Kojto 90:cb3d968589d8 4333 */ /* end of group I2C_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 4334
Kojto 90:cb3d968589d8 4335
Kojto 90:cb3d968589d8 4336 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4337 -- I2C Register Masks
Kojto 90:cb3d968589d8 4338 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4339
Kojto 90:cb3d968589d8 4340 /*!
Kojto 90:cb3d968589d8 4341 * @addtogroup I2C_Register_Masks I2C Register Masks
Kojto 90:cb3d968589d8 4342 * @{
Kojto 90:cb3d968589d8 4343 */
Kojto 90:cb3d968589d8 4344
Kojto 90:cb3d968589d8 4345 /* A1 Bit Fields */
Kojto 90:cb3d968589d8 4346 #define I2C_A1_AD_MASK 0xFEu
Kojto 90:cb3d968589d8 4347 #define I2C_A1_AD_SHIFT 1
Kojto 90:cb3d968589d8 4348 #define I2C_A1_AD(x) (((uint8_t)(((uint8_t)(x))<<I2C_A1_AD_SHIFT))&I2C_A1_AD_MASK)
Kojto 90:cb3d968589d8 4349 /* F Bit Fields */
Kojto 90:cb3d968589d8 4350 #define I2C_F_ICR_MASK 0x3Fu
Kojto 90:cb3d968589d8 4351 #define I2C_F_ICR_SHIFT 0
Kojto 90:cb3d968589d8 4352 #define I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x))<<I2C_F_ICR_SHIFT))&I2C_F_ICR_MASK)
Kojto 90:cb3d968589d8 4353 #define I2C_F_MULT_MASK 0xC0u
Kojto 90:cb3d968589d8 4354 #define I2C_F_MULT_SHIFT 6
Kojto 90:cb3d968589d8 4355 #define I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x))<<I2C_F_MULT_SHIFT))&I2C_F_MULT_MASK)
Kojto 90:cb3d968589d8 4356 /* C1 Bit Fields */
Kojto 90:cb3d968589d8 4357 #define I2C_C1_DMAEN_MASK 0x1u
Kojto 90:cb3d968589d8 4358 #define I2C_C1_DMAEN_SHIFT 0
Kojto 90:cb3d968589d8 4359 #define I2C_C1_WUEN_MASK 0x2u
Kojto 90:cb3d968589d8 4360 #define I2C_C1_WUEN_SHIFT 1
Kojto 90:cb3d968589d8 4361 #define I2C_C1_RSTA_MASK 0x4u
Kojto 90:cb3d968589d8 4362 #define I2C_C1_RSTA_SHIFT 2
Kojto 90:cb3d968589d8 4363 #define I2C_C1_TXAK_MASK 0x8u
Kojto 90:cb3d968589d8 4364 #define I2C_C1_TXAK_SHIFT 3
Kojto 90:cb3d968589d8 4365 #define I2C_C1_TX_MASK 0x10u
Kojto 90:cb3d968589d8 4366 #define I2C_C1_TX_SHIFT 4
Kojto 90:cb3d968589d8 4367 #define I2C_C1_MST_MASK 0x20u
Kojto 90:cb3d968589d8 4368 #define I2C_C1_MST_SHIFT 5
Kojto 90:cb3d968589d8 4369 #define I2C_C1_IICIE_MASK 0x40u
Kojto 90:cb3d968589d8 4370 #define I2C_C1_IICIE_SHIFT 6
Kojto 90:cb3d968589d8 4371 #define I2C_C1_IICEN_MASK 0x80u
Kojto 90:cb3d968589d8 4372 #define I2C_C1_IICEN_SHIFT 7
Kojto 90:cb3d968589d8 4373 /* S Bit Fields */
Kojto 90:cb3d968589d8 4374 #define I2C_S_RXAK_MASK 0x1u
Kojto 90:cb3d968589d8 4375 #define I2C_S_RXAK_SHIFT 0
Kojto 90:cb3d968589d8 4376 #define I2C_S_IICIF_MASK 0x2u
Kojto 90:cb3d968589d8 4377 #define I2C_S_IICIF_SHIFT 1
Kojto 90:cb3d968589d8 4378 #define I2C_S_SRW_MASK 0x4u
Kojto 90:cb3d968589d8 4379 #define I2C_S_SRW_SHIFT 2
Kojto 90:cb3d968589d8 4380 #define I2C_S_RAM_MASK 0x8u
Kojto 90:cb3d968589d8 4381 #define I2C_S_RAM_SHIFT 3
Kojto 90:cb3d968589d8 4382 #define I2C_S_ARBL_MASK 0x10u
Kojto 90:cb3d968589d8 4383 #define I2C_S_ARBL_SHIFT 4
Kojto 90:cb3d968589d8 4384 #define I2C_S_BUSY_MASK 0x20u
Kojto 90:cb3d968589d8 4385 #define I2C_S_BUSY_SHIFT 5
Kojto 90:cb3d968589d8 4386 #define I2C_S_IAAS_MASK 0x40u
Kojto 90:cb3d968589d8 4387 #define I2C_S_IAAS_SHIFT 6
Kojto 90:cb3d968589d8 4388 #define I2C_S_TCF_MASK 0x80u
Kojto 90:cb3d968589d8 4389 #define I2C_S_TCF_SHIFT 7
Kojto 90:cb3d968589d8 4390 /* D Bit Fields */
Kojto 90:cb3d968589d8 4391 #define I2C_D_DATA_MASK 0xFFu
Kojto 90:cb3d968589d8 4392 #define I2C_D_DATA_SHIFT 0
Kojto 90:cb3d968589d8 4393 #define I2C_D_DATA(x) (((uint8_t)(((uint8_t)(x))<<I2C_D_DATA_SHIFT))&I2C_D_DATA_MASK)
Kojto 90:cb3d968589d8 4394 /* C2 Bit Fields */
Kojto 90:cb3d968589d8 4395 #define I2C_C2_AD_MASK 0x7u
Kojto 90:cb3d968589d8 4396 #define I2C_C2_AD_SHIFT 0
Kojto 90:cb3d968589d8 4397 #define I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x))<<I2C_C2_AD_SHIFT))&I2C_C2_AD_MASK)
Kojto 90:cb3d968589d8 4398 #define I2C_C2_RMEN_MASK 0x8u
Kojto 90:cb3d968589d8 4399 #define I2C_C2_RMEN_SHIFT 3
Kojto 90:cb3d968589d8 4400 #define I2C_C2_SBRC_MASK 0x10u
Kojto 90:cb3d968589d8 4401 #define I2C_C2_SBRC_SHIFT 4
Kojto 90:cb3d968589d8 4402 #define I2C_C2_HDRS_MASK 0x20u
Kojto 90:cb3d968589d8 4403 #define I2C_C2_HDRS_SHIFT 5
Kojto 90:cb3d968589d8 4404 #define I2C_C2_ADEXT_MASK 0x40u
Kojto 90:cb3d968589d8 4405 #define I2C_C2_ADEXT_SHIFT 6
Kojto 90:cb3d968589d8 4406 #define I2C_C2_GCAEN_MASK 0x80u
Kojto 90:cb3d968589d8 4407 #define I2C_C2_GCAEN_SHIFT 7
Kojto 90:cb3d968589d8 4408 /* FLT Bit Fields */
Kojto 90:cb3d968589d8 4409 #define I2C_FLT_FLT_MASK 0xFu
Kojto 90:cb3d968589d8 4410 #define I2C_FLT_FLT_SHIFT 0
Kojto 90:cb3d968589d8 4411 #define I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x))<<I2C_FLT_FLT_SHIFT))&I2C_FLT_FLT_MASK)
Kojto 90:cb3d968589d8 4412 #define I2C_FLT_STARTF_MASK 0x10u
Kojto 90:cb3d968589d8 4413 #define I2C_FLT_STARTF_SHIFT 4
Kojto 90:cb3d968589d8 4414 #define I2C_FLT_SSIE_MASK 0x20u
Kojto 90:cb3d968589d8 4415 #define I2C_FLT_SSIE_SHIFT 5
Kojto 90:cb3d968589d8 4416 #define I2C_FLT_STOPF_MASK 0x40u
Kojto 90:cb3d968589d8 4417 #define I2C_FLT_STOPF_SHIFT 6
Kojto 90:cb3d968589d8 4418 #define I2C_FLT_SHEN_MASK 0x80u
Kojto 90:cb3d968589d8 4419 #define I2C_FLT_SHEN_SHIFT 7
Kojto 90:cb3d968589d8 4420 /* RA Bit Fields */
Kojto 90:cb3d968589d8 4421 #define I2C_RA_RAD_MASK 0xFEu
Kojto 90:cb3d968589d8 4422 #define I2C_RA_RAD_SHIFT 1
Kojto 90:cb3d968589d8 4423 #define I2C_RA_RAD(x) (((uint8_t)(((uint8_t)(x))<<I2C_RA_RAD_SHIFT))&I2C_RA_RAD_MASK)
Kojto 90:cb3d968589d8 4424 /* SMB Bit Fields */
Kojto 90:cb3d968589d8 4425 #define I2C_SMB_SHTF2IE_MASK 0x1u
Kojto 90:cb3d968589d8 4426 #define I2C_SMB_SHTF2IE_SHIFT 0
Kojto 90:cb3d968589d8 4427 #define I2C_SMB_SHTF2_MASK 0x2u
Kojto 90:cb3d968589d8 4428 #define I2C_SMB_SHTF2_SHIFT 1
Kojto 90:cb3d968589d8 4429 #define I2C_SMB_SHTF1_MASK 0x4u
Kojto 90:cb3d968589d8 4430 #define I2C_SMB_SHTF1_SHIFT 2
Kojto 90:cb3d968589d8 4431 #define I2C_SMB_SLTF_MASK 0x8u
Kojto 90:cb3d968589d8 4432 #define I2C_SMB_SLTF_SHIFT 3
Kojto 90:cb3d968589d8 4433 #define I2C_SMB_TCKSEL_MASK 0x10u
Kojto 90:cb3d968589d8 4434 #define I2C_SMB_TCKSEL_SHIFT 4
Kojto 90:cb3d968589d8 4435 #define I2C_SMB_SIICAEN_MASK 0x20u
Kojto 90:cb3d968589d8 4436 #define I2C_SMB_SIICAEN_SHIFT 5
Kojto 90:cb3d968589d8 4437 #define I2C_SMB_ALERTEN_MASK 0x40u
Kojto 90:cb3d968589d8 4438 #define I2C_SMB_ALERTEN_SHIFT 6
Kojto 90:cb3d968589d8 4439 #define I2C_SMB_FACK_MASK 0x80u
Kojto 90:cb3d968589d8 4440 #define I2C_SMB_FACK_SHIFT 7
Kojto 90:cb3d968589d8 4441 /* A2 Bit Fields */
Kojto 90:cb3d968589d8 4442 #define I2C_A2_SAD_MASK 0xFEu
Kojto 90:cb3d968589d8 4443 #define I2C_A2_SAD_SHIFT 1
Kojto 90:cb3d968589d8 4444 #define I2C_A2_SAD(x) (((uint8_t)(((uint8_t)(x))<<I2C_A2_SAD_SHIFT))&I2C_A2_SAD_MASK)
Kojto 90:cb3d968589d8 4445 /* SLTH Bit Fields */
Kojto 90:cb3d968589d8 4446 #define I2C_SLTH_SSLT_MASK 0xFFu
Kojto 90:cb3d968589d8 4447 #define I2C_SLTH_SSLT_SHIFT 0
Kojto 90:cb3d968589d8 4448 #define I2C_SLTH_SSLT(x) (((uint8_t)(((uint8_t)(x))<<I2C_SLTH_SSLT_SHIFT))&I2C_SLTH_SSLT_MASK)
Kojto 90:cb3d968589d8 4449 /* SLTL Bit Fields */
Kojto 90:cb3d968589d8 4450 #define I2C_SLTL_SSLT_MASK 0xFFu
Kojto 90:cb3d968589d8 4451 #define I2C_SLTL_SSLT_SHIFT 0
Kojto 90:cb3d968589d8 4452 #define I2C_SLTL_SSLT(x) (((uint8_t)(((uint8_t)(x))<<I2C_SLTL_SSLT_SHIFT))&I2C_SLTL_SSLT_MASK)
Kojto 90:cb3d968589d8 4453
Kojto 90:cb3d968589d8 4454 /*!
Kojto 90:cb3d968589d8 4455 * @}
Kojto 90:cb3d968589d8 4456 */ /* end of group I2C_Register_Masks */
Kojto 90:cb3d968589d8 4457
Kojto 90:cb3d968589d8 4458
Kojto 90:cb3d968589d8 4459 /* I2C - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 4460 /** Peripheral I2C0 base address */
Kojto 90:cb3d968589d8 4461 #define I2C0_BASE (0x40066000u)
Kojto 90:cb3d968589d8 4462 /** Peripheral I2C0 base pointer */
Kojto 90:cb3d968589d8 4463 #define I2C0 ((I2C_Type *)I2C0_BASE)
Kojto 90:cb3d968589d8 4464 #define I2C0_BASE_PTR (I2C0)
Kojto 90:cb3d968589d8 4465 /** Peripheral I2C1 base address */
Kojto 90:cb3d968589d8 4466 #define I2C1_BASE (0x40067000u)
Kojto 90:cb3d968589d8 4467 /** Peripheral I2C1 base pointer */
Kojto 90:cb3d968589d8 4468 #define I2C1 ((I2C_Type *)I2C1_BASE)
Kojto 90:cb3d968589d8 4469 #define I2C1_BASE_PTR (I2C1)
Kojto 90:cb3d968589d8 4470 /** Array initializer of I2C peripheral base addresses */
Kojto 90:cb3d968589d8 4471 #define I2C_BASE_ADDRS { I2C0_BASE, I2C1_BASE }
Kojto 90:cb3d968589d8 4472 /** Array initializer of I2C peripheral base pointers */
Kojto 90:cb3d968589d8 4473 #define I2C_BASE_PTRS { I2C0, I2C1 }
Kojto 90:cb3d968589d8 4474 /** Interrupt vectors for the I2C peripheral type */
Kojto 90:cb3d968589d8 4475 #define I2C_IRQS { I2C0_IRQn, I2C1_IRQn }
Kojto 90:cb3d968589d8 4476
Kojto 90:cb3d968589d8 4477 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4478 -- I2C - Register accessor macros
Kojto 90:cb3d968589d8 4479 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4480
Kojto 90:cb3d968589d8 4481 /*!
Kojto 90:cb3d968589d8 4482 * @addtogroup I2C_Register_Accessor_Macros I2C - Register accessor macros
Kojto 90:cb3d968589d8 4483 * @{
Kojto 90:cb3d968589d8 4484 */
Kojto 90:cb3d968589d8 4485
Kojto 90:cb3d968589d8 4486
Kojto 90:cb3d968589d8 4487 /* I2C - Register instance definitions */
Kojto 90:cb3d968589d8 4488 /* I2C0 */
Kojto 90:cb3d968589d8 4489 #define I2C0_A1 I2C_A1_REG(I2C0)
Kojto 90:cb3d968589d8 4490 #define I2C0_F I2C_F_REG(I2C0)
Kojto 90:cb3d968589d8 4491 #define I2C0_C1 I2C_C1_REG(I2C0)
Kojto 90:cb3d968589d8 4492 #define I2C0_S I2C_S_REG(I2C0)
Kojto 90:cb3d968589d8 4493 #define I2C0_D I2C_D_REG(I2C0)
Kojto 90:cb3d968589d8 4494 #define I2C0_C2 I2C_C2_REG(I2C0)
Kojto 90:cb3d968589d8 4495 #define I2C0_FLT I2C_FLT_REG(I2C0)
Kojto 90:cb3d968589d8 4496 #define I2C0_RA I2C_RA_REG(I2C0)
Kojto 90:cb3d968589d8 4497 #define I2C0_SMB I2C_SMB_REG(I2C0)
Kojto 90:cb3d968589d8 4498 #define I2C0_A2 I2C_A2_REG(I2C0)
Kojto 90:cb3d968589d8 4499 #define I2C0_SLTH I2C_SLTH_REG(I2C0)
Kojto 90:cb3d968589d8 4500 #define I2C0_SLTL I2C_SLTL_REG(I2C0)
Kojto 90:cb3d968589d8 4501 /* I2C1 */
Kojto 90:cb3d968589d8 4502 #define I2C1_A1 I2C_A1_REG(I2C1)
Kojto 90:cb3d968589d8 4503 #define I2C1_F I2C_F_REG(I2C1)
Kojto 90:cb3d968589d8 4504 #define I2C1_C1 I2C_C1_REG(I2C1)
Kojto 90:cb3d968589d8 4505 #define I2C1_S I2C_S_REG(I2C1)
Kojto 90:cb3d968589d8 4506 #define I2C1_D I2C_D_REG(I2C1)
Kojto 90:cb3d968589d8 4507 #define I2C1_C2 I2C_C2_REG(I2C1)
Kojto 90:cb3d968589d8 4508 #define I2C1_FLT I2C_FLT_REG(I2C1)
Kojto 90:cb3d968589d8 4509 #define I2C1_RA I2C_RA_REG(I2C1)
Kojto 90:cb3d968589d8 4510 #define I2C1_SMB I2C_SMB_REG(I2C1)
Kojto 90:cb3d968589d8 4511 #define I2C1_A2 I2C_A2_REG(I2C1)
Kojto 90:cb3d968589d8 4512 #define I2C1_SLTH I2C_SLTH_REG(I2C1)
Kojto 90:cb3d968589d8 4513 #define I2C1_SLTL I2C_SLTL_REG(I2C1)
Kojto 90:cb3d968589d8 4514
Kojto 90:cb3d968589d8 4515 /*!
Kojto 90:cb3d968589d8 4516 * @}
Kojto 90:cb3d968589d8 4517 */ /* end of group I2C_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 4518
Kojto 90:cb3d968589d8 4519
Kojto 90:cb3d968589d8 4520 /*!
Kojto 90:cb3d968589d8 4521 * @}
Kojto 90:cb3d968589d8 4522 */ /* end of group I2C_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 4523
Kojto 90:cb3d968589d8 4524
Kojto 90:cb3d968589d8 4525 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4526 -- I2S Peripheral Access Layer
Kojto 90:cb3d968589d8 4527 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4528
Kojto 90:cb3d968589d8 4529 /*!
Kojto 90:cb3d968589d8 4530 * @addtogroup I2S_Peripheral_Access_Layer I2S Peripheral Access Layer
Kojto 90:cb3d968589d8 4531 * @{
Kojto 90:cb3d968589d8 4532 */
Kojto 90:cb3d968589d8 4533
Kojto 90:cb3d968589d8 4534 /** I2S - Register Layout Typedef */
Kojto 90:cb3d968589d8 4535 typedef struct {
Kojto 90:cb3d968589d8 4536 __IO uint32_t TCSR; /**< SAI Transmit Control Register, offset: 0x0 */
Kojto 90:cb3d968589d8 4537 __IO uint32_t TCR1; /**< SAI Transmit Configuration 1 Register, offset: 0x4 */
Kojto 90:cb3d968589d8 4538 __IO uint32_t TCR2; /**< SAI Transmit Configuration 2 Register, offset: 0x8 */
Kojto 90:cb3d968589d8 4539 __IO uint32_t TCR3; /**< SAI Transmit Configuration 3 Register, offset: 0xC */
Kojto 90:cb3d968589d8 4540 __IO uint32_t TCR4; /**< SAI Transmit Configuration 4 Register, offset: 0x10 */
Kojto 90:cb3d968589d8 4541 __IO uint32_t TCR5; /**< SAI Transmit Configuration 5 Register, offset: 0x14 */
Kojto 90:cb3d968589d8 4542 uint8_t RESERVED_0[8];
Kojto 90:cb3d968589d8 4543 __O uint32_t TDR[1]; /**< SAI Transmit Data Register, array offset: 0x20, array step: 0x4 */
Kojto 90:cb3d968589d8 4544 uint8_t RESERVED_1[28];
Kojto 90:cb3d968589d8 4545 __I uint32_t TFR[1]; /**< SAI Transmit FIFO Register, array offset: 0x40, array step: 0x4 */
Kojto 90:cb3d968589d8 4546 uint8_t RESERVED_2[28];
Kojto 90:cb3d968589d8 4547 __IO uint32_t TMR; /**< SAI Transmit Mask Register, offset: 0x60 */
Kojto 90:cb3d968589d8 4548 uint8_t RESERVED_3[28];
Kojto 90:cb3d968589d8 4549 __IO uint32_t RCSR; /**< SAI Receive Control Register, offset: 0x80 */
Kojto 90:cb3d968589d8 4550 __IO uint32_t RCR1; /**< SAI Receive Configuration 1 Register, offset: 0x84 */
Kojto 90:cb3d968589d8 4551 __IO uint32_t RCR2; /**< SAI Receive Configuration 2 Register, offset: 0x88 */
Kojto 90:cb3d968589d8 4552 __IO uint32_t RCR3; /**< SAI Receive Configuration 3 Register, offset: 0x8C */
Kojto 90:cb3d968589d8 4553 __IO uint32_t RCR4; /**< SAI Receive Configuration 4 Register, offset: 0x90 */
Kojto 90:cb3d968589d8 4554 __IO uint32_t RCR5; /**< SAI Receive Configuration 5 Register, offset: 0x94 */
Kojto 90:cb3d968589d8 4555 uint8_t RESERVED_4[8];
Kojto 90:cb3d968589d8 4556 __I uint32_t RDR[1]; /**< SAI Receive Data Register, array offset: 0xA0, array step: 0x4 */
Kojto 90:cb3d968589d8 4557 uint8_t RESERVED_5[28];
Kojto 90:cb3d968589d8 4558 __I uint32_t RFR[1]; /**< SAI Receive FIFO Register, array offset: 0xC0, array step: 0x4 */
Kojto 90:cb3d968589d8 4559 uint8_t RESERVED_6[28];
Kojto 90:cb3d968589d8 4560 __IO uint32_t RMR; /**< SAI Receive Mask Register, offset: 0xE0 */
Kojto 90:cb3d968589d8 4561 uint8_t RESERVED_7[28];
Kojto 90:cb3d968589d8 4562 __IO uint32_t MCR; /**< SAI MCLK Control Register, offset: 0x100 */
Kojto 90:cb3d968589d8 4563 __IO uint32_t MDR; /**< SAI MCLK Divide Register, offset: 0x104 */
Kojto 90:cb3d968589d8 4564 } I2S_Type, *I2S_MemMapPtr;
Kojto 90:cb3d968589d8 4565
Kojto 90:cb3d968589d8 4566 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4567 -- I2S - Register accessor macros
Kojto 90:cb3d968589d8 4568 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4569
Kojto 90:cb3d968589d8 4570 /*!
Kojto 90:cb3d968589d8 4571 * @addtogroup I2S_Register_Accessor_Macros I2S - Register accessor macros
Kojto 90:cb3d968589d8 4572 * @{
Kojto 90:cb3d968589d8 4573 */
Kojto 90:cb3d968589d8 4574
Kojto 90:cb3d968589d8 4575
Kojto 90:cb3d968589d8 4576 /* I2S - Register accessors */
Kojto 90:cb3d968589d8 4577 #define I2S_TCSR_REG(base) ((base)->TCSR)
Kojto 90:cb3d968589d8 4578 #define I2S_TCR1_REG(base) ((base)->TCR1)
Kojto 90:cb3d968589d8 4579 #define I2S_TCR2_REG(base) ((base)->TCR2)
Kojto 90:cb3d968589d8 4580 #define I2S_TCR3_REG(base) ((base)->TCR3)
Kojto 90:cb3d968589d8 4581 #define I2S_TCR4_REG(base) ((base)->TCR4)
Kojto 90:cb3d968589d8 4582 #define I2S_TCR5_REG(base) ((base)->TCR5)
Kojto 90:cb3d968589d8 4583 #define I2S_TDR_REG(base,index) ((base)->TDR[index])
Kojto 90:cb3d968589d8 4584 #define I2S_TFR_REG(base,index) ((base)->TFR[index])
Kojto 90:cb3d968589d8 4585 #define I2S_TMR_REG(base) ((base)->TMR)
Kojto 90:cb3d968589d8 4586 #define I2S_RCSR_REG(base) ((base)->RCSR)
Kojto 90:cb3d968589d8 4587 #define I2S_RCR1_REG(base) ((base)->RCR1)
Kojto 90:cb3d968589d8 4588 #define I2S_RCR2_REG(base) ((base)->RCR2)
Kojto 90:cb3d968589d8 4589 #define I2S_RCR3_REG(base) ((base)->RCR3)
Kojto 90:cb3d968589d8 4590 #define I2S_RCR4_REG(base) ((base)->RCR4)
Kojto 90:cb3d968589d8 4591 #define I2S_RCR5_REG(base) ((base)->RCR5)
Kojto 90:cb3d968589d8 4592 #define I2S_RDR_REG(base,index) ((base)->RDR[index])
Kojto 90:cb3d968589d8 4593 #define I2S_RFR_REG(base,index) ((base)->RFR[index])
Kojto 90:cb3d968589d8 4594 #define I2S_RMR_REG(base) ((base)->RMR)
Kojto 90:cb3d968589d8 4595 #define I2S_MCR_REG(base) ((base)->MCR)
Kojto 90:cb3d968589d8 4596 #define I2S_MDR_REG(base) ((base)->MDR)
Kojto 90:cb3d968589d8 4597
Kojto 90:cb3d968589d8 4598 /*!
Kojto 90:cb3d968589d8 4599 * @}
Kojto 90:cb3d968589d8 4600 */ /* end of group I2S_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 4601
Kojto 90:cb3d968589d8 4602
Kojto 90:cb3d968589d8 4603 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4604 -- I2S Register Masks
Kojto 90:cb3d968589d8 4605 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4606
Kojto 90:cb3d968589d8 4607 /*!
Kojto 90:cb3d968589d8 4608 * @addtogroup I2S_Register_Masks I2S Register Masks
Kojto 90:cb3d968589d8 4609 * @{
Kojto 90:cb3d968589d8 4610 */
Kojto 90:cb3d968589d8 4611
Kojto 90:cb3d968589d8 4612 /* TCSR Bit Fields */
Kojto 90:cb3d968589d8 4613 #define I2S_TCSR_FRDE_MASK 0x1u
Kojto 90:cb3d968589d8 4614 #define I2S_TCSR_FRDE_SHIFT 0
Kojto 90:cb3d968589d8 4615 #define I2S_TCSR_FWDE_MASK 0x2u
Kojto 90:cb3d968589d8 4616 #define I2S_TCSR_FWDE_SHIFT 1
Kojto 90:cb3d968589d8 4617 #define I2S_TCSR_FRIE_MASK 0x100u
Kojto 90:cb3d968589d8 4618 #define I2S_TCSR_FRIE_SHIFT 8
Kojto 90:cb3d968589d8 4619 #define I2S_TCSR_FWIE_MASK 0x200u
Kojto 90:cb3d968589d8 4620 #define I2S_TCSR_FWIE_SHIFT 9
Kojto 90:cb3d968589d8 4621 #define I2S_TCSR_FEIE_MASK 0x400u
Kojto 90:cb3d968589d8 4622 #define I2S_TCSR_FEIE_SHIFT 10
Kojto 90:cb3d968589d8 4623 #define I2S_TCSR_SEIE_MASK 0x800u
Kojto 90:cb3d968589d8 4624 #define I2S_TCSR_SEIE_SHIFT 11
Kojto 90:cb3d968589d8 4625 #define I2S_TCSR_WSIE_MASK 0x1000u
Kojto 90:cb3d968589d8 4626 #define I2S_TCSR_WSIE_SHIFT 12
Kojto 90:cb3d968589d8 4627 #define I2S_TCSR_FRF_MASK 0x10000u
Kojto 90:cb3d968589d8 4628 #define I2S_TCSR_FRF_SHIFT 16
Kojto 90:cb3d968589d8 4629 #define I2S_TCSR_FWF_MASK 0x20000u
Kojto 90:cb3d968589d8 4630 #define I2S_TCSR_FWF_SHIFT 17
Kojto 90:cb3d968589d8 4631 #define I2S_TCSR_FEF_MASK 0x40000u
Kojto 90:cb3d968589d8 4632 #define I2S_TCSR_FEF_SHIFT 18
Kojto 90:cb3d968589d8 4633 #define I2S_TCSR_SEF_MASK 0x80000u
Kojto 90:cb3d968589d8 4634 #define I2S_TCSR_SEF_SHIFT 19
Kojto 90:cb3d968589d8 4635 #define I2S_TCSR_WSF_MASK 0x100000u
Kojto 90:cb3d968589d8 4636 #define I2S_TCSR_WSF_SHIFT 20
Kojto 90:cb3d968589d8 4637 #define I2S_TCSR_SR_MASK 0x1000000u
Kojto 90:cb3d968589d8 4638 #define I2S_TCSR_SR_SHIFT 24
Kojto 90:cb3d968589d8 4639 #define I2S_TCSR_FR_MASK 0x2000000u
Kojto 90:cb3d968589d8 4640 #define I2S_TCSR_FR_SHIFT 25
Kojto 90:cb3d968589d8 4641 #define I2S_TCSR_BCE_MASK 0x10000000u
Kojto 90:cb3d968589d8 4642 #define I2S_TCSR_BCE_SHIFT 28
Kojto 90:cb3d968589d8 4643 #define I2S_TCSR_DBGE_MASK 0x20000000u
Kojto 90:cb3d968589d8 4644 #define I2S_TCSR_DBGE_SHIFT 29
Kojto 90:cb3d968589d8 4645 #define I2S_TCSR_STOPE_MASK 0x40000000u
Kojto 90:cb3d968589d8 4646 #define I2S_TCSR_STOPE_SHIFT 30
Kojto 90:cb3d968589d8 4647 #define I2S_TCSR_TE_MASK 0x80000000u
Kojto 90:cb3d968589d8 4648 #define I2S_TCSR_TE_SHIFT 31
Kojto 90:cb3d968589d8 4649 /* TCR1 Bit Fields */
Kojto 90:cb3d968589d8 4650 #define I2S_TCR1_TFW_MASK 0x7u
Kojto 90:cb3d968589d8 4651 #define I2S_TCR1_TFW_SHIFT 0
Kojto 90:cb3d968589d8 4652 #define I2S_TCR1_TFW(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR1_TFW_SHIFT))&I2S_TCR1_TFW_MASK)
Kojto 90:cb3d968589d8 4653 /* TCR2 Bit Fields */
Kojto 90:cb3d968589d8 4654 #define I2S_TCR2_DIV_MASK 0xFFu
Kojto 90:cb3d968589d8 4655 #define I2S_TCR2_DIV_SHIFT 0
Kojto 90:cb3d968589d8 4656 #define I2S_TCR2_DIV(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR2_DIV_SHIFT))&I2S_TCR2_DIV_MASK)
Kojto 90:cb3d968589d8 4657 #define I2S_TCR2_BCD_MASK 0x1000000u
Kojto 90:cb3d968589d8 4658 #define I2S_TCR2_BCD_SHIFT 24
Kojto 90:cb3d968589d8 4659 #define I2S_TCR2_BCP_MASK 0x2000000u
Kojto 90:cb3d968589d8 4660 #define I2S_TCR2_BCP_SHIFT 25
Kojto 90:cb3d968589d8 4661 #define I2S_TCR2_MSEL_MASK 0xC000000u
Kojto 90:cb3d968589d8 4662 #define I2S_TCR2_MSEL_SHIFT 26
Kojto 90:cb3d968589d8 4663 #define I2S_TCR2_MSEL(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR2_MSEL_SHIFT))&I2S_TCR2_MSEL_MASK)
Kojto 90:cb3d968589d8 4664 #define I2S_TCR2_BCI_MASK 0x10000000u
Kojto 90:cb3d968589d8 4665 #define I2S_TCR2_BCI_SHIFT 28
Kojto 90:cb3d968589d8 4666 #define I2S_TCR2_BCS_MASK 0x20000000u
Kojto 90:cb3d968589d8 4667 #define I2S_TCR2_BCS_SHIFT 29
Kojto 90:cb3d968589d8 4668 #define I2S_TCR2_SYNC_MASK 0xC0000000u
Kojto 90:cb3d968589d8 4669 #define I2S_TCR2_SYNC_SHIFT 30
Kojto 90:cb3d968589d8 4670 #define I2S_TCR2_SYNC(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR2_SYNC_SHIFT))&I2S_TCR2_SYNC_MASK)
Kojto 90:cb3d968589d8 4671 /* TCR3 Bit Fields */
Kojto 90:cb3d968589d8 4672 #define I2S_TCR3_WDFL_MASK 0xFu
Kojto 90:cb3d968589d8 4673 #define I2S_TCR3_WDFL_SHIFT 0
Kojto 90:cb3d968589d8 4674 #define I2S_TCR3_WDFL(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR3_WDFL_SHIFT))&I2S_TCR3_WDFL_MASK)
Kojto 90:cb3d968589d8 4675 #define I2S_TCR3_TCE_MASK 0x10000u
Kojto 90:cb3d968589d8 4676 #define I2S_TCR3_TCE_SHIFT 16
Kojto 90:cb3d968589d8 4677 /* TCR4 Bit Fields */
Kojto 90:cb3d968589d8 4678 #define I2S_TCR4_FSD_MASK 0x1u
Kojto 90:cb3d968589d8 4679 #define I2S_TCR4_FSD_SHIFT 0
Kojto 90:cb3d968589d8 4680 #define I2S_TCR4_FSP_MASK 0x2u
Kojto 90:cb3d968589d8 4681 #define I2S_TCR4_FSP_SHIFT 1
Kojto 90:cb3d968589d8 4682 #define I2S_TCR4_ONDEM_MASK 0x4u
Kojto 90:cb3d968589d8 4683 #define I2S_TCR4_ONDEM_SHIFT 2
Kojto 90:cb3d968589d8 4684 #define I2S_TCR4_FSE_MASK 0x8u
Kojto 90:cb3d968589d8 4685 #define I2S_TCR4_FSE_SHIFT 3
Kojto 90:cb3d968589d8 4686 #define I2S_TCR4_MF_MASK 0x10u
Kojto 90:cb3d968589d8 4687 #define I2S_TCR4_MF_SHIFT 4
Kojto 90:cb3d968589d8 4688 #define I2S_TCR4_SYWD_MASK 0x1F00u
Kojto 90:cb3d968589d8 4689 #define I2S_TCR4_SYWD_SHIFT 8
Kojto 90:cb3d968589d8 4690 #define I2S_TCR4_SYWD(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR4_SYWD_SHIFT))&I2S_TCR4_SYWD_MASK)
Kojto 90:cb3d968589d8 4691 #define I2S_TCR4_FRSZ_MASK 0xF0000u
Kojto 90:cb3d968589d8 4692 #define I2S_TCR4_FRSZ_SHIFT 16
Kojto 90:cb3d968589d8 4693 #define I2S_TCR4_FRSZ(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR4_FRSZ_SHIFT))&I2S_TCR4_FRSZ_MASK)
Kojto 90:cb3d968589d8 4694 #define I2S_TCR4_FPACK_MASK 0x3000000u
Kojto 90:cb3d968589d8 4695 #define I2S_TCR4_FPACK_SHIFT 24
Kojto 90:cb3d968589d8 4696 #define I2S_TCR4_FPACK(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR4_FPACK_SHIFT))&I2S_TCR4_FPACK_MASK)
Kojto 90:cb3d968589d8 4697 #define I2S_TCR4_FCONT_MASK 0x10000000u
Kojto 90:cb3d968589d8 4698 #define I2S_TCR4_FCONT_SHIFT 28
Kojto 90:cb3d968589d8 4699 /* TCR5 Bit Fields */
Kojto 90:cb3d968589d8 4700 #define I2S_TCR5_FBT_MASK 0x1F00u
Kojto 90:cb3d968589d8 4701 #define I2S_TCR5_FBT_SHIFT 8
Kojto 90:cb3d968589d8 4702 #define I2S_TCR5_FBT(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR5_FBT_SHIFT))&I2S_TCR5_FBT_MASK)
Kojto 90:cb3d968589d8 4703 #define I2S_TCR5_W0W_MASK 0x1F0000u
Kojto 90:cb3d968589d8 4704 #define I2S_TCR5_W0W_SHIFT 16
Kojto 90:cb3d968589d8 4705 #define I2S_TCR5_W0W(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR5_W0W_SHIFT))&I2S_TCR5_W0W_MASK)
Kojto 90:cb3d968589d8 4706 #define I2S_TCR5_WNW_MASK 0x1F000000u
Kojto 90:cb3d968589d8 4707 #define I2S_TCR5_WNW_SHIFT 24
Kojto 90:cb3d968589d8 4708 #define I2S_TCR5_WNW(x) (((uint32_t)(((uint32_t)(x))<<I2S_TCR5_WNW_SHIFT))&I2S_TCR5_WNW_MASK)
Kojto 90:cb3d968589d8 4709 /* TDR Bit Fields */
Kojto 90:cb3d968589d8 4710 #define I2S_TDR_TDR_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 4711 #define I2S_TDR_TDR_SHIFT 0
Kojto 90:cb3d968589d8 4712 #define I2S_TDR_TDR(x) (((uint32_t)(((uint32_t)(x))<<I2S_TDR_TDR_SHIFT))&I2S_TDR_TDR_MASK)
Kojto 90:cb3d968589d8 4713 /* TFR Bit Fields */
Kojto 90:cb3d968589d8 4714 #define I2S_TFR_RFP_MASK 0xFu
Kojto 90:cb3d968589d8 4715 #define I2S_TFR_RFP_SHIFT 0
Kojto 90:cb3d968589d8 4716 #define I2S_TFR_RFP(x) (((uint32_t)(((uint32_t)(x))<<I2S_TFR_RFP_SHIFT))&I2S_TFR_RFP_MASK)
Kojto 90:cb3d968589d8 4717 #define I2S_TFR_WFP_MASK 0xF0000u
Kojto 90:cb3d968589d8 4718 #define I2S_TFR_WFP_SHIFT 16
Kojto 90:cb3d968589d8 4719 #define I2S_TFR_WFP(x) (((uint32_t)(((uint32_t)(x))<<I2S_TFR_WFP_SHIFT))&I2S_TFR_WFP_MASK)
Kojto 90:cb3d968589d8 4720 /* TMR Bit Fields */
Kojto 90:cb3d968589d8 4721 #define I2S_TMR_TWM_MASK 0xFFFFu
Kojto 90:cb3d968589d8 4722 #define I2S_TMR_TWM_SHIFT 0
Kojto 90:cb3d968589d8 4723 #define I2S_TMR_TWM(x) (((uint32_t)(((uint32_t)(x))<<I2S_TMR_TWM_SHIFT))&I2S_TMR_TWM_MASK)
Kojto 90:cb3d968589d8 4724 /* RCSR Bit Fields */
Kojto 90:cb3d968589d8 4725 #define I2S_RCSR_FRDE_MASK 0x1u
Kojto 90:cb3d968589d8 4726 #define I2S_RCSR_FRDE_SHIFT 0
Kojto 90:cb3d968589d8 4727 #define I2S_RCSR_FWDE_MASK 0x2u
Kojto 90:cb3d968589d8 4728 #define I2S_RCSR_FWDE_SHIFT 1
Kojto 90:cb3d968589d8 4729 #define I2S_RCSR_FRIE_MASK 0x100u
Kojto 90:cb3d968589d8 4730 #define I2S_RCSR_FRIE_SHIFT 8
Kojto 90:cb3d968589d8 4731 #define I2S_RCSR_FWIE_MASK 0x200u
Kojto 90:cb3d968589d8 4732 #define I2S_RCSR_FWIE_SHIFT 9
Kojto 90:cb3d968589d8 4733 #define I2S_RCSR_FEIE_MASK 0x400u
Kojto 90:cb3d968589d8 4734 #define I2S_RCSR_FEIE_SHIFT 10
Kojto 90:cb3d968589d8 4735 #define I2S_RCSR_SEIE_MASK 0x800u
Kojto 90:cb3d968589d8 4736 #define I2S_RCSR_SEIE_SHIFT 11
Kojto 90:cb3d968589d8 4737 #define I2S_RCSR_WSIE_MASK 0x1000u
Kojto 90:cb3d968589d8 4738 #define I2S_RCSR_WSIE_SHIFT 12
Kojto 90:cb3d968589d8 4739 #define I2S_RCSR_FRF_MASK 0x10000u
Kojto 90:cb3d968589d8 4740 #define I2S_RCSR_FRF_SHIFT 16
Kojto 90:cb3d968589d8 4741 #define I2S_RCSR_FWF_MASK 0x20000u
Kojto 90:cb3d968589d8 4742 #define I2S_RCSR_FWF_SHIFT 17
Kojto 90:cb3d968589d8 4743 #define I2S_RCSR_FEF_MASK 0x40000u
Kojto 90:cb3d968589d8 4744 #define I2S_RCSR_FEF_SHIFT 18
Kojto 90:cb3d968589d8 4745 #define I2S_RCSR_SEF_MASK 0x80000u
Kojto 90:cb3d968589d8 4746 #define I2S_RCSR_SEF_SHIFT 19
Kojto 90:cb3d968589d8 4747 #define I2S_RCSR_WSF_MASK 0x100000u
Kojto 90:cb3d968589d8 4748 #define I2S_RCSR_WSF_SHIFT 20
Kojto 90:cb3d968589d8 4749 #define I2S_RCSR_SR_MASK 0x1000000u
Kojto 90:cb3d968589d8 4750 #define I2S_RCSR_SR_SHIFT 24
Kojto 90:cb3d968589d8 4751 #define I2S_RCSR_FR_MASK 0x2000000u
Kojto 90:cb3d968589d8 4752 #define I2S_RCSR_FR_SHIFT 25
Kojto 90:cb3d968589d8 4753 #define I2S_RCSR_BCE_MASK 0x10000000u
Kojto 90:cb3d968589d8 4754 #define I2S_RCSR_BCE_SHIFT 28
Kojto 90:cb3d968589d8 4755 #define I2S_RCSR_DBGE_MASK 0x20000000u
Kojto 90:cb3d968589d8 4756 #define I2S_RCSR_DBGE_SHIFT 29
Kojto 90:cb3d968589d8 4757 #define I2S_RCSR_STOPE_MASK 0x40000000u
Kojto 90:cb3d968589d8 4758 #define I2S_RCSR_STOPE_SHIFT 30
Kojto 90:cb3d968589d8 4759 #define I2S_RCSR_RE_MASK 0x80000000u
Kojto 90:cb3d968589d8 4760 #define I2S_RCSR_RE_SHIFT 31
Kojto 90:cb3d968589d8 4761 /* RCR1 Bit Fields */
Kojto 90:cb3d968589d8 4762 #define I2S_RCR1_RFW_MASK 0x7u
Kojto 90:cb3d968589d8 4763 #define I2S_RCR1_RFW_SHIFT 0
Kojto 90:cb3d968589d8 4764 #define I2S_RCR1_RFW(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR1_RFW_SHIFT))&I2S_RCR1_RFW_MASK)
Kojto 90:cb3d968589d8 4765 /* RCR2 Bit Fields */
Kojto 90:cb3d968589d8 4766 #define I2S_RCR2_DIV_MASK 0xFFu
Kojto 90:cb3d968589d8 4767 #define I2S_RCR2_DIV_SHIFT 0
Kojto 90:cb3d968589d8 4768 #define I2S_RCR2_DIV(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR2_DIV_SHIFT))&I2S_RCR2_DIV_MASK)
Kojto 90:cb3d968589d8 4769 #define I2S_RCR2_BCD_MASK 0x1000000u
Kojto 90:cb3d968589d8 4770 #define I2S_RCR2_BCD_SHIFT 24
Kojto 90:cb3d968589d8 4771 #define I2S_RCR2_BCP_MASK 0x2000000u
Kojto 90:cb3d968589d8 4772 #define I2S_RCR2_BCP_SHIFT 25
Kojto 90:cb3d968589d8 4773 #define I2S_RCR2_MSEL_MASK 0xC000000u
Kojto 90:cb3d968589d8 4774 #define I2S_RCR2_MSEL_SHIFT 26
Kojto 90:cb3d968589d8 4775 #define I2S_RCR2_MSEL(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR2_MSEL_SHIFT))&I2S_RCR2_MSEL_MASK)
Kojto 90:cb3d968589d8 4776 #define I2S_RCR2_BCI_MASK 0x10000000u
Kojto 90:cb3d968589d8 4777 #define I2S_RCR2_BCI_SHIFT 28
Kojto 90:cb3d968589d8 4778 #define I2S_RCR2_BCS_MASK 0x20000000u
Kojto 90:cb3d968589d8 4779 #define I2S_RCR2_BCS_SHIFT 29
Kojto 90:cb3d968589d8 4780 #define I2S_RCR2_SYNC_MASK 0xC0000000u
Kojto 90:cb3d968589d8 4781 #define I2S_RCR2_SYNC_SHIFT 30
Kojto 90:cb3d968589d8 4782 #define I2S_RCR2_SYNC(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR2_SYNC_SHIFT))&I2S_RCR2_SYNC_MASK)
Kojto 90:cb3d968589d8 4783 /* RCR3 Bit Fields */
Kojto 90:cb3d968589d8 4784 #define I2S_RCR3_WDFL_MASK 0xFu
Kojto 90:cb3d968589d8 4785 #define I2S_RCR3_WDFL_SHIFT 0
Kojto 90:cb3d968589d8 4786 #define I2S_RCR3_WDFL(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR3_WDFL_SHIFT))&I2S_RCR3_WDFL_MASK)
Kojto 90:cb3d968589d8 4787 #define I2S_RCR3_RCE_MASK 0x10000u
Kojto 90:cb3d968589d8 4788 #define I2S_RCR3_RCE_SHIFT 16
Kojto 90:cb3d968589d8 4789 /* RCR4 Bit Fields */
Kojto 90:cb3d968589d8 4790 #define I2S_RCR4_FSD_MASK 0x1u
Kojto 90:cb3d968589d8 4791 #define I2S_RCR4_FSD_SHIFT 0
Kojto 90:cb3d968589d8 4792 #define I2S_RCR4_FSP_MASK 0x2u
Kojto 90:cb3d968589d8 4793 #define I2S_RCR4_FSP_SHIFT 1
Kojto 90:cb3d968589d8 4794 #define I2S_RCR4_ONDEM_MASK 0x4u
Kojto 90:cb3d968589d8 4795 #define I2S_RCR4_ONDEM_SHIFT 2
Kojto 90:cb3d968589d8 4796 #define I2S_RCR4_FSE_MASK 0x8u
Kojto 90:cb3d968589d8 4797 #define I2S_RCR4_FSE_SHIFT 3
Kojto 90:cb3d968589d8 4798 #define I2S_RCR4_MF_MASK 0x10u
Kojto 90:cb3d968589d8 4799 #define I2S_RCR4_MF_SHIFT 4
Kojto 90:cb3d968589d8 4800 #define I2S_RCR4_SYWD_MASK 0x1F00u
Kojto 90:cb3d968589d8 4801 #define I2S_RCR4_SYWD_SHIFT 8
Kojto 90:cb3d968589d8 4802 #define I2S_RCR4_SYWD(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR4_SYWD_SHIFT))&I2S_RCR4_SYWD_MASK)
Kojto 90:cb3d968589d8 4803 #define I2S_RCR4_FRSZ_MASK 0xF0000u
Kojto 90:cb3d968589d8 4804 #define I2S_RCR4_FRSZ_SHIFT 16
Kojto 90:cb3d968589d8 4805 #define I2S_RCR4_FRSZ(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR4_FRSZ_SHIFT))&I2S_RCR4_FRSZ_MASK)
Kojto 90:cb3d968589d8 4806 #define I2S_RCR4_FPACK_MASK 0x3000000u
Kojto 90:cb3d968589d8 4807 #define I2S_RCR4_FPACK_SHIFT 24
Kojto 90:cb3d968589d8 4808 #define I2S_RCR4_FPACK(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR4_FPACK_SHIFT))&I2S_RCR4_FPACK_MASK)
Kojto 90:cb3d968589d8 4809 #define I2S_RCR4_FCONT_MASK 0x10000000u
Kojto 90:cb3d968589d8 4810 #define I2S_RCR4_FCONT_SHIFT 28
Kojto 90:cb3d968589d8 4811 /* RCR5 Bit Fields */
Kojto 90:cb3d968589d8 4812 #define I2S_RCR5_FBT_MASK 0x1F00u
Kojto 90:cb3d968589d8 4813 #define I2S_RCR5_FBT_SHIFT 8
Kojto 90:cb3d968589d8 4814 #define I2S_RCR5_FBT(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR5_FBT_SHIFT))&I2S_RCR5_FBT_MASK)
Kojto 90:cb3d968589d8 4815 #define I2S_RCR5_W0W_MASK 0x1F0000u
Kojto 90:cb3d968589d8 4816 #define I2S_RCR5_W0W_SHIFT 16
Kojto 90:cb3d968589d8 4817 #define I2S_RCR5_W0W(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR5_W0W_SHIFT))&I2S_RCR5_W0W_MASK)
Kojto 90:cb3d968589d8 4818 #define I2S_RCR5_WNW_MASK 0x1F000000u
Kojto 90:cb3d968589d8 4819 #define I2S_RCR5_WNW_SHIFT 24
Kojto 90:cb3d968589d8 4820 #define I2S_RCR5_WNW(x) (((uint32_t)(((uint32_t)(x))<<I2S_RCR5_WNW_SHIFT))&I2S_RCR5_WNW_MASK)
Kojto 90:cb3d968589d8 4821 /* RDR Bit Fields */
Kojto 90:cb3d968589d8 4822 #define I2S_RDR_RDR_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 4823 #define I2S_RDR_RDR_SHIFT 0
Kojto 90:cb3d968589d8 4824 #define I2S_RDR_RDR(x) (((uint32_t)(((uint32_t)(x))<<I2S_RDR_RDR_SHIFT))&I2S_RDR_RDR_MASK)
Kojto 90:cb3d968589d8 4825 /* RFR Bit Fields */
Kojto 90:cb3d968589d8 4826 #define I2S_RFR_RFP_MASK 0xFu
Kojto 90:cb3d968589d8 4827 #define I2S_RFR_RFP_SHIFT 0
Kojto 90:cb3d968589d8 4828 #define I2S_RFR_RFP(x) (((uint32_t)(((uint32_t)(x))<<I2S_RFR_RFP_SHIFT))&I2S_RFR_RFP_MASK)
Kojto 90:cb3d968589d8 4829 #define I2S_RFR_WFP_MASK 0xF0000u
Kojto 90:cb3d968589d8 4830 #define I2S_RFR_WFP_SHIFT 16
Kojto 90:cb3d968589d8 4831 #define I2S_RFR_WFP(x) (((uint32_t)(((uint32_t)(x))<<I2S_RFR_WFP_SHIFT))&I2S_RFR_WFP_MASK)
Kojto 90:cb3d968589d8 4832 /* RMR Bit Fields */
Kojto 90:cb3d968589d8 4833 #define I2S_RMR_RWM_MASK 0xFFFFu
Kojto 90:cb3d968589d8 4834 #define I2S_RMR_RWM_SHIFT 0
Kojto 90:cb3d968589d8 4835 #define I2S_RMR_RWM(x) (((uint32_t)(((uint32_t)(x))<<I2S_RMR_RWM_SHIFT))&I2S_RMR_RWM_MASK)
Kojto 90:cb3d968589d8 4836 /* MCR Bit Fields */
Kojto 90:cb3d968589d8 4837 #define I2S_MCR_MICS_MASK 0x3000000u
Kojto 90:cb3d968589d8 4838 #define I2S_MCR_MICS_SHIFT 24
Kojto 90:cb3d968589d8 4839 #define I2S_MCR_MICS(x) (((uint32_t)(((uint32_t)(x))<<I2S_MCR_MICS_SHIFT))&I2S_MCR_MICS_MASK)
Kojto 90:cb3d968589d8 4840 #define I2S_MCR_MOE_MASK 0x40000000u
Kojto 90:cb3d968589d8 4841 #define I2S_MCR_MOE_SHIFT 30
Kojto 90:cb3d968589d8 4842 #define I2S_MCR_DUF_MASK 0x80000000u
Kojto 90:cb3d968589d8 4843 #define I2S_MCR_DUF_SHIFT 31
Kojto 90:cb3d968589d8 4844 /* MDR Bit Fields */
Kojto 90:cb3d968589d8 4845 #define I2S_MDR_DIVIDE_MASK 0xFFFu
Kojto 90:cb3d968589d8 4846 #define I2S_MDR_DIVIDE_SHIFT 0
Kojto 90:cb3d968589d8 4847 #define I2S_MDR_DIVIDE(x) (((uint32_t)(((uint32_t)(x))<<I2S_MDR_DIVIDE_SHIFT))&I2S_MDR_DIVIDE_MASK)
Kojto 90:cb3d968589d8 4848 #define I2S_MDR_FRACT_MASK 0xFF000u
Kojto 90:cb3d968589d8 4849 #define I2S_MDR_FRACT_SHIFT 12
Kojto 90:cb3d968589d8 4850 #define I2S_MDR_FRACT(x) (((uint32_t)(((uint32_t)(x))<<I2S_MDR_FRACT_SHIFT))&I2S_MDR_FRACT_MASK)
Kojto 90:cb3d968589d8 4851
Kojto 90:cb3d968589d8 4852 /*!
Kojto 90:cb3d968589d8 4853 * @}
Kojto 90:cb3d968589d8 4854 */ /* end of group I2S_Register_Masks */
Kojto 90:cb3d968589d8 4855
Kojto 90:cb3d968589d8 4856
Kojto 90:cb3d968589d8 4857 /* I2S - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 4858 /** Peripheral I2S0 base address */
Kojto 90:cb3d968589d8 4859 #define I2S0_BASE (0x4002F000u)
Kojto 90:cb3d968589d8 4860 /** Peripheral I2S0 base pointer */
Kojto 90:cb3d968589d8 4861 #define I2S0 ((I2S_Type *)I2S0_BASE)
Kojto 90:cb3d968589d8 4862 #define I2S0_BASE_PTR (I2S0)
Kojto 90:cb3d968589d8 4863 /** Array initializer of I2S peripheral base addresses */
Kojto 90:cb3d968589d8 4864 #define I2S_BASE_ADDRS { I2S0_BASE }
Kojto 90:cb3d968589d8 4865 /** Array initializer of I2S peripheral base pointers */
Kojto 90:cb3d968589d8 4866 #define I2S_BASE_PTRS { I2S0 }
Kojto 90:cb3d968589d8 4867 /** Interrupt vectors for the I2S peripheral type */
Kojto 90:cb3d968589d8 4868 #define I2S_RX_IRQS { I2S0_Rx_IRQn }
Kojto 90:cb3d968589d8 4869 #define I2S_TX_IRQS { I2S0_Tx_IRQn }
Kojto 90:cb3d968589d8 4870
Kojto 90:cb3d968589d8 4871 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4872 -- I2S - Register accessor macros
Kojto 90:cb3d968589d8 4873 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4874
Kojto 90:cb3d968589d8 4875 /*!
Kojto 90:cb3d968589d8 4876 * @addtogroup I2S_Register_Accessor_Macros I2S - Register accessor macros
Kojto 90:cb3d968589d8 4877 * @{
Kojto 90:cb3d968589d8 4878 */
Kojto 90:cb3d968589d8 4879
Kojto 90:cb3d968589d8 4880
Kojto 90:cb3d968589d8 4881 /* I2S - Register instance definitions */
Kojto 90:cb3d968589d8 4882 /* I2S0 */
Kojto 90:cb3d968589d8 4883 #define I2S0_TCSR I2S_TCSR_REG(I2S0)
Kojto 90:cb3d968589d8 4884 #define I2S0_TCR1 I2S_TCR1_REG(I2S0)
Kojto 90:cb3d968589d8 4885 #define I2S0_TCR2 I2S_TCR2_REG(I2S0)
Kojto 90:cb3d968589d8 4886 #define I2S0_TCR3 I2S_TCR3_REG(I2S0)
Kojto 90:cb3d968589d8 4887 #define I2S0_TCR4 I2S_TCR4_REG(I2S0)
Kojto 90:cb3d968589d8 4888 #define I2S0_TCR5 I2S_TCR5_REG(I2S0)
Kojto 90:cb3d968589d8 4889 #define I2S0_TDR0 I2S_TDR_REG(I2S0,0)
Kojto 90:cb3d968589d8 4890 #define I2S0_TFR0 I2S_TFR_REG(I2S0,0)
Kojto 90:cb3d968589d8 4891 #define I2S0_TMR I2S_TMR_REG(I2S0)
Kojto 90:cb3d968589d8 4892 #define I2S0_RCSR I2S_RCSR_REG(I2S0)
Kojto 90:cb3d968589d8 4893 #define I2S0_RCR1 I2S_RCR1_REG(I2S0)
Kojto 90:cb3d968589d8 4894 #define I2S0_RCR2 I2S_RCR2_REG(I2S0)
Kojto 90:cb3d968589d8 4895 #define I2S0_RCR3 I2S_RCR3_REG(I2S0)
Kojto 90:cb3d968589d8 4896 #define I2S0_RCR4 I2S_RCR4_REG(I2S0)
Kojto 90:cb3d968589d8 4897 #define I2S0_RCR5 I2S_RCR5_REG(I2S0)
Kojto 90:cb3d968589d8 4898 #define I2S0_RDR0 I2S_RDR_REG(I2S0,0)
Kojto 90:cb3d968589d8 4899 #define I2S0_RFR0 I2S_RFR_REG(I2S0,0)
Kojto 90:cb3d968589d8 4900 #define I2S0_RMR I2S_RMR_REG(I2S0)
Kojto 90:cb3d968589d8 4901 #define I2S0_MCR I2S_MCR_REG(I2S0)
Kojto 90:cb3d968589d8 4902 #define I2S0_MDR I2S_MDR_REG(I2S0)
Kojto 90:cb3d968589d8 4903
Kojto 90:cb3d968589d8 4904 /* I2S - Register array accessors */
Kojto 90:cb3d968589d8 4905 #define I2S0_TDR(index) I2S_TDR_REG(I2S0,index)
Kojto 90:cb3d968589d8 4906 #define I2S0_TFR(index) I2S_TFR_REG(I2S0,index)
Kojto 90:cb3d968589d8 4907 #define I2S0_RDR(index) I2S_RDR_REG(I2S0,index)
Kojto 90:cb3d968589d8 4908 #define I2S0_RFR(index) I2S_RFR_REG(I2S0,index)
Kojto 90:cb3d968589d8 4909
Kojto 90:cb3d968589d8 4910 /*!
Kojto 90:cb3d968589d8 4911 * @}
Kojto 90:cb3d968589d8 4912 */ /* end of group I2S_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 4913
Kojto 90:cb3d968589d8 4914
Kojto 90:cb3d968589d8 4915 /*!
Kojto 90:cb3d968589d8 4916 * @}
Kojto 90:cb3d968589d8 4917 */ /* end of group I2S_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 4918
Kojto 90:cb3d968589d8 4919
Kojto 90:cb3d968589d8 4920 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4921 -- LLWU Peripheral Access Layer
Kojto 90:cb3d968589d8 4922 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4923
Kojto 90:cb3d968589d8 4924 /*!
Kojto 90:cb3d968589d8 4925 * @addtogroup LLWU_Peripheral_Access_Layer LLWU Peripheral Access Layer
Kojto 90:cb3d968589d8 4926 * @{
Kojto 90:cb3d968589d8 4927 */
Kojto 90:cb3d968589d8 4928
Kojto 90:cb3d968589d8 4929 /** LLWU - Register Layout Typedef */
Kojto 90:cb3d968589d8 4930 typedef struct {
Kojto 90:cb3d968589d8 4931 __IO uint8_t PE1; /**< LLWU Pin Enable 1 register, offset: 0x0 */
Kojto 90:cb3d968589d8 4932 __IO uint8_t PE2; /**< LLWU Pin Enable 2 register, offset: 0x1 */
Kojto 90:cb3d968589d8 4933 __IO uint8_t PE3; /**< LLWU Pin Enable 3 register, offset: 0x2 */
Kojto 90:cb3d968589d8 4934 __IO uint8_t PE4; /**< LLWU Pin Enable 4 register, offset: 0x3 */
Kojto 90:cb3d968589d8 4935 __IO uint8_t ME; /**< LLWU Module Enable register, offset: 0x4 */
Kojto 90:cb3d968589d8 4936 __IO uint8_t F1; /**< LLWU Flag 1 register, offset: 0x5 */
Kojto 90:cb3d968589d8 4937 __IO uint8_t F2; /**< LLWU Flag 2 register, offset: 0x6 */
Kojto 90:cb3d968589d8 4938 __I uint8_t F3; /**< LLWU Flag 3 register, offset: 0x7 */
Kojto 90:cb3d968589d8 4939 __IO uint8_t FILT1; /**< LLWU Pin Filter 1 register, offset: 0x8 */
Kojto 90:cb3d968589d8 4940 __IO uint8_t FILT2; /**< LLWU Pin Filter 2 register, offset: 0x9 */
Kojto 90:cb3d968589d8 4941 } LLWU_Type, *LLWU_MemMapPtr;
Kojto 90:cb3d968589d8 4942
Kojto 90:cb3d968589d8 4943 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4944 -- LLWU - Register accessor macros
Kojto 90:cb3d968589d8 4945 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4946
Kojto 90:cb3d968589d8 4947 /*!
Kojto 90:cb3d968589d8 4948 * @addtogroup LLWU_Register_Accessor_Macros LLWU - Register accessor macros
Kojto 90:cb3d968589d8 4949 * @{
Kojto 90:cb3d968589d8 4950 */
Kojto 90:cb3d968589d8 4951
Kojto 90:cb3d968589d8 4952
Kojto 90:cb3d968589d8 4953 /* LLWU - Register accessors */
Kojto 90:cb3d968589d8 4954 #define LLWU_PE1_REG(base) ((base)->PE1)
Kojto 90:cb3d968589d8 4955 #define LLWU_PE2_REG(base) ((base)->PE2)
Kojto 90:cb3d968589d8 4956 #define LLWU_PE3_REG(base) ((base)->PE3)
Kojto 90:cb3d968589d8 4957 #define LLWU_PE4_REG(base) ((base)->PE4)
Kojto 90:cb3d968589d8 4958 #define LLWU_ME_REG(base) ((base)->ME)
Kojto 90:cb3d968589d8 4959 #define LLWU_F1_REG(base) ((base)->F1)
Kojto 90:cb3d968589d8 4960 #define LLWU_F2_REG(base) ((base)->F2)
Kojto 90:cb3d968589d8 4961 #define LLWU_F3_REG(base) ((base)->F3)
Kojto 90:cb3d968589d8 4962 #define LLWU_FILT1_REG(base) ((base)->FILT1)
Kojto 90:cb3d968589d8 4963 #define LLWU_FILT2_REG(base) ((base)->FILT2)
Kojto 90:cb3d968589d8 4964
Kojto 90:cb3d968589d8 4965 /*!
Kojto 90:cb3d968589d8 4966 * @}
Kojto 90:cb3d968589d8 4967 */ /* end of group LLWU_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 4968
Kojto 90:cb3d968589d8 4969
Kojto 90:cb3d968589d8 4970 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 4971 -- LLWU Register Masks
Kojto 90:cb3d968589d8 4972 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 4973
Kojto 90:cb3d968589d8 4974 /*!
Kojto 90:cb3d968589d8 4975 * @addtogroup LLWU_Register_Masks LLWU Register Masks
Kojto 90:cb3d968589d8 4976 * @{
Kojto 90:cb3d968589d8 4977 */
Kojto 90:cb3d968589d8 4978
Kojto 90:cb3d968589d8 4979 /* PE1 Bit Fields */
Kojto 90:cb3d968589d8 4980 #define LLWU_PE1_WUPE0_MASK 0x3u
Kojto 90:cb3d968589d8 4981 #define LLWU_PE1_WUPE0_SHIFT 0
Kojto 90:cb3d968589d8 4982 #define LLWU_PE1_WUPE0(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE1_WUPE0_SHIFT))&LLWU_PE1_WUPE0_MASK)
Kojto 90:cb3d968589d8 4983 #define LLWU_PE1_WUPE1_MASK 0xCu
Kojto 90:cb3d968589d8 4984 #define LLWU_PE1_WUPE1_SHIFT 2
Kojto 90:cb3d968589d8 4985 #define LLWU_PE1_WUPE1(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE1_WUPE1_SHIFT))&LLWU_PE1_WUPE1_MASK)
Kojto 90:cb3d968589d8 4986 #define LLWU_PE1_WUPE2_MASK 0x30u
Kojto 90:cb3d968589d8 4987 #define LLWU_PE1_WUPE2_SHIFT 4
Kojto 90:cb3d968589d8 4988 #define LLWU_PE1_WUPE2(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE1_WUPE2_SHIFT))&LLWU_PE1_WUPE2_MASK)
Kojto 90:cb3d968589d8 4989 #define LLWU_PE1_WUPE3_MASK 0xC0u
Kojto 90:cb3d968589d8 4990 #define LLWU_PE1_WUPE3_SHIFT 6
Kojto 90:cb3d968589d8 4991 #define LLWU_PE1_WUPE3(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE1_WUPE3_SHIFT))&LLWU_PE1_WUPE3_MASK)
Kojto 90:cb3d968589d8 4992 /* PE2 Bit Fields */
Kojto 90:cb3d968589d8 4993 #define LLWU_PE2_WUPE4_MASK 0x3u
Kojto 90:cb3d968589d8 4994 #define LLWU_PE2_WUPE4_SHIFT 0
Kojto 90:cb3d968589d8 4995 #define LLWU_PE2_WUPE4(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE2_WUPE4_SHIFT))&LLWU_PE2_WUPE4_MASK)
Kojto 90:cb3d968589d8 4996 #define LLWU_PE2_WUPE5_MASK 0xCu
Kojto 90:cb3d968589d8 4997 #define LLWU_PE2_WUPE5_SHIFT 2
Kojto 90:cb3d968589d8 4998 #define LLWU_PE2_WUPE5(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE2_WUPE5_SHIFT))&LLWU_PE2_WUPE5_MASK)
Kojto 90:cb3d968589d8 4999 #define LLWU_PE2_WUPE6_MASK 0x30u
Kojto 90:cb3d968589d8 5000 #define LLWU_PE2_WUPE6_SHIFT 4
Kojto 90:cb3d968589d8 5001 #define LLWU_PE2_WUPE6(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE2_WUPE6_SHIFT))&LLWU_PE2_WUPE6_MASK)
Kojto 90:cb3d968589d8 5002 #define LLWU_PE2_WUPE7_MASK 0xC0u
Kojto 90:cb3d968589d8 5003 #define LLWU_PE2_WUPE7_SHIFT 6
Kojto 90:cb3d968589d8 5004 #define LLWU_PE2_WUPE7(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE2_WUPE7_SHIFT))&LLWU_PE2_WUPE7_MASK)
Kojto 90:cb3d968589d8 5005 /* PE3 Bit Fields */
Kojto 90:cb3d968589d8 5006 #define LLWU_PE3_WUPE8_MASK 0x3u
Kojto 90:cb3d968589d8 5007 #define LLWU_PE3_WUPE8_SHIFT 0
Kojto 90:cb3d968589d8 5008 #define LLWU_PE3_WUPE8(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE3_WUPE8_SHIFT))&LLWU_PE3_WUPE8_MASK)
Kojto 90:cb3d968589d8 5009 #define LLWU_PE3_WUPE9_MASK 0xCu
Kojto 90:cb3d968589d8 5010 #define LLWU_PE3_WUPE9_SHIFT 2
Kojto 90:cb3d968589d8 5011 #define LLWU_PE3_WUPE9(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE3_WUPE9_SHIFT))&LLWU_PE3_WUPE9_MASK)
Kojto 90:cb3d968589d8 5012 #define LLWU_PE3_WUPE10_MASK 0x30u
Kojto 90:cb3d968589d8 5013 #define LLWU_PE3_WUPE10_SHIFT 4
Kojto 90:cb3d968589d8 5014 #define LLWU_PE3_WUPE10(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE3_WUPE10_SHIFT))&LLWU_PE3_WUPE10_MASK)
Kojto 90:cb3d968589d8 5015 #define LLWU_PE3_WUPE11_MASK 0xC0u
Kojto 90:cb3d968589d8 5016 #define LLWU_PE3_WUPE11_SHIFT 6
Kojto 90:cb3d968589d8 5017 #define LLWU_PE3_WUPE11(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE3_WUPE11_SHIFT))&LLWU_PE3_WUPE11_MASK)
Kojto 90:cb3d968589d8 5018 /* PE4 Bit Fields */
Kojto 90:cb3d968589d8 5019 #define LLWU_PE4_WUPE12_MASK 0x3u
Kojto 90:cb3d968589d8 5020 #define LLWU_PE4_WUPE12_SHIFT 0
Kojto 90:cb3d968589d8 5021 #define LLWU_PE4_WUPE12(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE4_WUPE12_SHIFT))&LLWU_PE4_WUPE12_MASK)
Kojto 90:cb3d968589d8 5022 #define LLWU_PE4_WUPE13_MASK 0xCu
Kojto 90:cb3d968589d8 5023 #define LLWU_PE4_WUPE13_SHIFT 2
Kojto 90:cb3d968589d8 5024 #define LLWU_PE4_WUPE13(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE4_WUPE13_SHIFT))&LLWU_PE4_WUPE13_MASK)
Kojto 90:cb3d968589d8 5025 #define LLWU_PE4_WUPE14_MASK 0x30u
Kojto 90:cb3d968589d8 5026 #define LLWU_PE4_WUPE14_SHIFT 4
Kojto 90:cb3d968589d8 5027 #define LLWU_PE4_WUPE14(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE4_WUPE14_SHIFT))&LLWU_PE4_WUPE14_MASK)
Kojto 90:cb3d968589d8 5028 #define LLWU_PE4_WUPE15_MASK 0xC0u
Kojto 90:cb3d968589d8 5029 #define LLWU_PE4_WUPE15_SHIFT 6
Kojto 90:cb3d968589d8 5030 #define LLWU_PE4_WUPE15(x) (((uint8_t)(((uint8_t)(x))<<LLWU_PE4_WUPE15_SHIFT))&LLWU_PE4_WUPE15_MASK)
Kojto 90:cb3d968589d8 5031 /* ME Bit Fields */
Kojto 90:cb3d968589d8 5032 #define LLWU_ME_WUME0_MASK 0x1u
Kojto 90:cb3d968589d8 5033 #define LLWU_ME_WUME0_SHIFT 0
Kojto 90:cb3d968589d8 5034 #define LLWU_ME_WUME1_MASK 0x2u
Kojto 90:cb3d968589d8 5035 #define LLWU_ME_WUME1_SHIFT 1
Kojto 90:cb3d968589d8 5036 #define LLWU_ME_WUME2_MASK 0x4u
Kojto 90:cb3d968589d8 5037 #define LLWU_ME_WUME2_SHIFT 2
Kojto 90:cb3d968589d8 5038 #define LLWU_ME_WUME3_MASK 0x8u
Kojto 90:cb3d968589d8 5039 #define LLWU_ME_WUME3_SHIFT 3
Kojto 90:cb3d968589d8 5040 #define LLWU_ME_WUME4_MASK 0x10u
Kojto 90:cb3d968589d8 5041 #define LLWU_ME_WUME4_SHIFT 4
Kojto 90:cb3d968589d8 5042 #define LLWU_ME_WUME5_MASK 0x20u
Kojto 90:cb3d968589d8 5043 #define LLWU_ME_WUME5_SHIFT 5
Kojto 90:cb3d968589d8 5044 #define LLWU_ME_WUME6_MASK 0x40u
Kojto 90:cb3d968589d8 5045 #define LLWU_ME_WUME6_SHIFT 6
Kojto 90:cb3d968589d8 5046 #define LLWU_ME_WUME7_MASK 0x80u
Kojto 90:cb3d968589d8 5047 #define LLWU_ME_WUME7_SHIFT 7
Kojto 90:cb3d968589d8 5048 /* F1 Bit Fields */
Kojto 90:cb3d968589d8 5049 #define LLWU_F1_WUF0_MASK 0x1u
Kojto 90:cb3d968589d8 5050 #define LLWU_F1_WUF0_SHIFT 0
Kojto 90:cb3d968589d8 5051 #define LLWU_F1_WUF1_MASK 0x2u
Kojto 90:cb3d968589d8 5052 #define LLWU_F1_WUF1_SHIFT 1
Kojto 90:cb3d968589d8 5053 #define LLWU_F1_WUF2_MASK 0x4u
Kojto 90:cb3d968589d8 5054 #define LLWU_F1_WUF2_SHIFT 2
Kojto 90:cb3d968589d8 5055 #define LLWU_F1_WUF3_MASK 0x8u
Kojto 90:cb3d968589d8 5056 #define LLWU_F1_WUF3_SHIFT 3
Kojto 90:cb3d968589d8 5057 #define LLWU_F1_WUF4_MASK 0x10u
Kojto 90:cb3d968589d8 5058 #define LLWU_F1_WUF4_SHIFT 4
Kojto 90:cb3d968589d8 5059 #define LLWU_F1_WUF5_MASK 0x20u
Kojto 90:cb3d968589d8 5060 #define LLWU_F1_WUF5_SHIFT 5
Kojto 90:cb3d968589d8 5061 #define LLWU_F1_WUF6_MASK 0x40u
Kojto 90:cb3d968589d8 5062 #define LLWU_F1_WUF6_SHIFT 6
Kojto 90:cb3d968589d8 5063 #define LLWU_F1_WUF7_MASK 0x80u
Kojto 90:cb3d968589d8 5064 #define LLWU_F1_WUF7_SHIFT 7
Kojto 90:cb3d968589d8 5065 /* F2 Bit Fields */
Kojto 90:cb3d968589d8 5066 #define LLWU_F2_WUF8_MASK 0x1u
Kojto 90:cb3d968589d8 5067 #define LLWU_F2_WUF8_SHIFT 0
Kojto 90:cb3d968589d8 5068 #define LLWU_F2_WUF9_MASK 0x2u
Kojto 90:cb3d968589d8 5069 #define LLWU_F2_WUF9_SHIFT 1
Kojto 90:cb3d968589d8 5070 #define LLWU_F2_WUF10_MASK 0x4u
Kojto 90:cb3d968589d8 5071 #define LLWU_F2_WUF10_SHIFT 2
Kojto 90:cb3d968589d8 5072 #define LLWU_F2_WUF11_MASK 0x8u
Kojto 90:cb3d968589d8 5073 #define LLWU_F2_WUF11_SHIFT 3
Kojto 90:cb3d968589d8 5074 #define LLWU_F2_WUF12_MASK 0x10u
Kojto 90:cb3d968589d8 5075 #define LLWU_F2_WUF12_SHIFT 4
Kojto 90:cb3d968589d8 5076 #define LLWU_F2_WUF13_MASK 0x20u
Kojto 90:cb3d968589d8 5077 #define LLWU_F2_WUF13_SHIFT 5
Kojto 90:cb3d968589d8 5078 #define LLWU_F2_WUF14_MASK 0x40u
Kojto 90:cb3d968589d8 5079 #define LLWU_F2_WUF14_SHIFT 6
Kojto 90:cb3d968589d8 5080 #define LLWU_F2_WUF15_MASK 0x80u
Kojto 90:cb3d968589d8 5081 #define LLWU_F2_WUF15_SHIFT 7
Kojto 90:cb3d968589d8 5082 /* F3 Bit Fields */
Kojto 90:cb3d968589d8 5083 #define LLWU_F3_MWUF0_MASK 0x1u
Kojto 90:cb3d968589d8 5084 #define LLWU_F3_MWUF0_SHIFT 0
Kojto 90:cb3d968589d8 5085 #define LLWU_F3_MWUF1_MASK 0x2u
Kojto 90:cb3d968589d8 5086 #define LLWU_F3_MWUF1_SHIFT 1
Kojto 90:cb3d968589d8 5087 #define LLWU_F3_MWUF2_MASK 0x4u
Kojto 90:cb3d968589d8 5088 #define LLWU_F3_MWUF2_SHIFT 2
Kojto 90:cb3d968589d8 5089 #define LLWU_F3_MWUF3_MASK 0x8u
Kojto 90:cb3d968589d8 5090 #define LLWU_F3_MWUF3_SHIFT 3
Kojto 90:cb3d968589d8 5091 #define LLWU_F3_MWUF4_MASK 0x10u
Kojto 90:cb3d968589d8 5092 #define LLWU_F3_MWUF4_SHIFT 4
Kojto 90:cb3d968589d8 5093 #define LLWU_F3_MWUF5_MASK 0x20u
Kojto 90:cb3d968589d8 5094 #define LLWU_F3_MWUF5_SHIFT 5
Kojto 90:cb3d968589d8 5095 #define LLWU_F3_MWUF6_MASK 0x40u
Kojto 90:cb3d968589d8 5096 #define LLWU_F3_MWUF6_SHIFT 6
Kojto 90:cb3d968589d8 5097 #define LLWU_F3_MWUF7_MASK 0x80u
Kojto 90:cb3d968589d8 5098 #define LLWU_F3_MWUF7_SHIFT 7
Kojto 90:cb3d968589d8 5099 /* FILT1 Bit Fields */
Kojto 90:cb3d968589d8 5100 #define LLWU_FILT1_FILTSEL_MASK 0xFu
Kojto 90:cb3d968589d8 5101 #define LLWU_FILT1_FILTSEL_SHIFT 0
Kojto 90:cb3d968589d8 5102 #define LLWU_FILT1_FILTSEL(x) (((uint8_t)(((uint8_t)(x))<<LLWU_FILT1_FILTSEL_SHIFT))&LLWU_FILT1_FILTSEL_MASK)
Kojto 90:cb3d968589d8 5103 #define LLWU_FILT1_FILTE_MASK 0x60u
Kojto 90:cb3d968589d8 5104 #define LLWU_FILT1_FILTE_SHIFT 5
Kojto 90:cb3d968589d8 5105 #define LLWU_FILT1_FILTE(x) (((uint8_t)(((uint8_t)(x))<<LLWU_FILT1_FILTE_SHIFT))&LLWU_FILT1_FILTE_MASK)
Kojto 90:cb3d968589d8 5106 #define LLWU_FILT1_FILTF_MASK 0x80u
Kojto 90:cb3d968589d8 5107 #define LLWU_FILT1_FILTF_SHIFT 7
Kojto 90:cb3d968589d8 5108 /* FILT2 Bit Fields */
Kojto 90:cb3d968589d8 5109 #define LLWU_FILT2_FILTSEL_MASK 0xFu
Kojto 90:cb3d968589d8 5110 #define LLWU_FILT2_FILTSEL_SHIFT 0
Kojto 90:cb3d968589d8 5111 #define LLWU_FILT2_FILTSEL(x) (((uint8_t)(((uint8_t)(x))<<LLWU_FILT2_FILTSEL_SHIFT))&LLWU_FILT2_FILTSEL_MASK)
Kojto 90:cb3d968589d8 5112 #define LLWU_FILT2_FILTE_MASK 0x60u
Kojto 90:cb3d968589d8 5113 #define LLWU_FILT2_FILTE_SHIFT 5
Kojto 90:cb3d968589d8 5114 #define LLWU_FILT2_FILTE(x) (((uint8_t)(((uint8_t)(x))<<LLWU_FILT2_FILTE_SHIFT))&LLWU_FILT2_FILTE_MASK)
Kojto 90:cb3d968589d8 5115 #define LLWU_FILT2_FILTF_MASK 0x80u
Kojto 90:cb3d968589d8 5116 #define LLWU_FILT2_FILTF_SHIFT 7
Kojto 90:cb3d968589d8 5117
Kojto 90:cb3d968589d8 5118 /*!
Kojto 90:cb3d968589d8 5119 * @}
Kojto 90:cb3d968589d8 5120 */ /* end of group LLWU_Register_Masks */
Kojto 90:cb3d968589d8 5121
Kojto 90:cb3d968589d8 5122
Kojto 90:cb3d968589d8 5123 /* LLWU - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 5124 /** Peripheral LLWU base address */
Kojto 90:cb3d968589d8 5125 #define LLWU_BASE (0x4007C000u)
Kojto 90:cb3d968589d8 5126 /** Peripheral LLWU base pointer */
Kojto 90:cb3d968589d8 5127 #define LLWU ((LLWU_Type *)LLWU_BASE)
Kojto 90:cb3d968589d8 5128 #define LLWU_BASE_PTR (LLWU)
Kojto 90:cb3d968589d8 5129 /** Array initializer of LLWU peripheral base addresses */
Kojto 90:cb3d968589d8 5130 #define LLWU_BASE_ADDRS { LLWU_BASE }
Kojto 90:cb3d968589d8 5131 /** Array initializer of LLWU peripheral base pointers */
Kojto 90:cb3d968589d8 5132 #define LLWU_BASE_PTRS { LLWU }
Kojto 90:cb3d968589d8 5133 /** Interrupt vectors for the LLWU peripheral type */
Kojto 90:cb3d968589d8 5134 #define LLWU_IRQS { LLW_IRQn }
Kojto 90:cb3d968589d8 5135
Kojto 90:cb3d968589d8 5136 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5137 -- LLWU - Register accessor macros
Kojto 90:cb3d968589d8 5138 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5139
Kojto 90:cb3d968589d8 5140 /*!
Kojto 90:cb3d968589d8 5141 * @addtogroup LLWU_Register_Accessor_Macros LLWU - Register accessor macros
Kojto 90:cb3d968589d8 5142 * @{
Kojto 90:cb3d968589d8 5143 */
Kojto 90:cb3d968589d8 5144
Kojto 90:cb3d968589d8 5145
Kojto 90:cb3d968589d8 5146 /* LLWU - Register instance definitions */
Kojto 90:cb3d968589d8 5147 /* LLWU */
Kojto 90:cb3d968589d8 5148 #define LLWU_PE1 LLWU_PE1_REG(LLWU)
Kojto 90:cb3d968589d8 5149 #define LLWU_PE2 LLWU_PE2_REG(LLWU)
Kojto 90:cb3d968589d8 5150 #define LLWU_PE3 LLWU_PE3_REG(LLWU)
Kojto 90:cb3d968589d8 5151 #define LLWU_PE4 LLWU_PE4_REG(LLWU)
Kojto 90:cb3d968589d8 5152 #define LLWU_ME LLWU_ME_REG(LLWU)
Kojto 90:cb3d968589d8 5153 #define LLWU_F1 LLWU_F1_REG(LLWU)
Kojto 90:cb3d968589d8 5154 #define LLWU_F2 LLWU_F2_REG(LLWU)
Kojto 90:cb3d968589d8 5155 #define LLWU_F3 LLWU_F3_REG(LLWU)
Kojto 90:cb3d968589d8 5156 #define LLWU_FILT1 LLWU_FILT1_REG(LLWU)
Kojto 90:cb3d968589d8 5157 #define LLWU_FILT2 LLWU_FILT2_REG(LLWU)
Kojto 90:cb3d968589d8 5158
Kojto 90:cb3d968589d8 5159 /*!
Kojto 90:cb3d968589d8 5160 * @}
Kojto 90:cb3d968589d8 5161 */ /* end of group LLWU_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5162
Kojto 90:cb3d968589d8 5163
Kojto 90:cb3d968589d8 5164 /*!
Kojto 90:cb3d968589d8 5165 * @}
Kojto 90:cb3d968589d8 5166 */ /* end of group LLWU_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 5167
Kojto 90:cb3d968589d8 5168
Kojto 90:cb3d968589d8 5169 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5170 -- LPTMR Peripheral Access Layer
Kojto 90:cb3d968589d8 5171 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5172
Kojto 90:cb3d968589d8 5173 /*!
Kojto 90:cb3d968589d8 5174 * @addtogroup LPTMR_Peripheral_Access_Layer LPTMR Peripheral Access Layer
Kojto 90:cb3d968589d8 5175 * @{
Kojto 90:cb3d968589d8 5176 */
Kojto 90:cb3d968589d8 5177
Kojto 90:cb3d968589d8 5178 /** LPTMR - Register Layout Typedef */
Kojto 90:cb3d968589d8 5179 typedef struct {
Kojto 90:cb3d968589d8 5180 __IO uint32_t CSR; /**< Low Power Timer Control Status Register, offset: 0x0 */
Kojto 90:cb3d968589d8 5181 __IO uint32_t PSR; /**< Low Power Timer Prescale Register, offset: 0x4 */
Kojto 90:cb3d968589d8 5182 __IO uint32_t CMR; /**< Low Power Timer Compare Register, offset: 0x8 */
Kojto 90:cb3d968589d8 5183 __IO uint32_t CNR; /**< Low Power Timer Counter Register, offset: 0xC */
Kojto 90:cb3d968589d8 5184 } LPTMR_Type, *LPTMR_MemMapPtr;
Kojto 90:cb3d968589d8 5185
Kojto 90:cb3d968589d8 5186 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5187 -- LPTMR - Register accessor macros
Kojto 90:cb3d968589d8 5188 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5189
Kojto 90:cb3d968589d8 5190 /*!
Kojto 90:cb3d968589d8 5191 * @addtogroup LPTMR_Register_Accessor_Macros LPTMR - Register accessor macros
Kojto 90:cb3d968589d8 5192 * @{
Kojto 90:cb3d968589d8 5193 */
Kojto 90:cb3d968589d8 5194
Kojto 90:cb3d968589d8 5195
Kojto 90:cb3d968589d8 5196 /* LPTMR - Register accessors */
Kojto 90:cb3d968589d8 5197 #define LPTMR_CSR_REG(base) ((base)->CSR)
Kojto 90:cb3d968589d8 5198 #define LPTMR_PSR_REG(base) ((base)->PSR)
Kojto 90:cb3d968589d8 5199 #define LPTMR_CMR_REG(base) ((base)->CMR)
Kojto 90:cb3d968589d8 5200 #define LPTMR_CNR_REG(base) ((base)->CNR)
Kojto 90:cb3d968589d8 5201
Kojto 90:cb3d968589d8 5202 /*!
Kojto 90:cb3d968589d8 5203 * @}
Kojto 90:cb3d968589d8 5204 */ /* end of group LPTMR_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5205
Kojto 90:cb3d968589d8 5206
Kojto 90:cb3d968589d8 5207 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5208 -- LPTMR Register Masks
Kojto 90:cb3d968589d8 5209 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5210
Kojto 90:cb3d968589d8 5211 /*!
Kojto 90:cb3d968589d8 5212 * @addtogroup LPTMR_Register_Masks LPTMR Register Masks
Kojto 90:cb3d968589d8 5213 * @{
Kojto 90:cb3d968589d8 5214 */
Kojto 90:cb3d968589d8 5215
Kojto 90:cb3d968589d8 5216 /* CSR Bit Fields */
Kojto 90:cb3d968589d8 5217 #define LPTMR_CSR_TEN_MASK 0x1u
Kojto 90:cb3d968589d8 5218 #define LPTMR_CSR_TEN_SHIFT 0
Kojto 90:cb3d968589d8 5219 #define LPTMR_CSR_TMS_MASK 0x2u
Kojto 90:cb3d968589d8 5220 #define LPTMR_CSR_TMS_SHIFT 1
Kojto 90:cb3d968589d8 5221 #define LPTMR_CSR_TFC_MASK 0x4u
Kojto 90:cb3d968589d8 5222 #define LPTMR_CSR_TFC_SHIFT 2
Kojto 90:cb3d968589d8 5223 #define LPTMR_CSR_TPP_MASK 0x8u
Kojto 90:cb3d968589d8 5224 #define LPTMR_CSR_TPP_SHIFT 3
Kojto 90:cb3d968589d8 5225 #define LPTMR_CSR_TPS_MASK 0x30u
Kojto 90:cb3d968589d8 5226 #define LPTMR_CSR_TPS_SHIFT 4
Kojto 90:cb3d968589d8 5227 #define LPTMR_CSR_TPS(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_CSR_TPS_SHIFT))&LPTMR_CSR_TPS_MASK)
Kojto 90:cb3d968589d8 5228 #define LPTMR_CSR_TIE_MASK 0x40u
Kojto 90:cb3d968589d8 5229 #define LPTMR_CSR_TIE_SHIFT 6
Kojto 90:cb3d968589d8 5230 #define LPTMR_CSR_TCF_MASK 0x80u
Kojto 90:cb3d968589d8 5231 #define LPTMR_CSR_TCF_SHIFT 7
Kojto 90:cb3d968589d8 5232 /* PSR Bit Fields */
Kojto 90:cb3d968589d8 5233 #define LPTMR_PSR_PCS_MASK 0x3u
Kojto 90:cb3d968589d8 5234 #define LPTMR_PSR_PCS_SHIFT 0
Kojto 90:cb3d968589d8 5235 #define LPTMR_PSR_PCS(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_PSR_PCS_SHIFT))&LPTMR_PSR_PCS_MASK)
Kojto 90:cb3d968589d8 5236 #define LPTMR_PSR_PBYP_MASK 0x4u
Kojto 90:cb3d968589d8 5237 #define LPTMR_PSR_PBYP_SHIFT 2
Kojto 90:cb3d968589d8 5238 #define LPTMR_PSR_PRESCALE_MASK 0x78u
Kojto 90:cb3d968589d8 5239 #define LPTMR_PSR_PRESCALE_SHIFT 3
Kojto 90:cb3d968589d8 5240 #define LPTMR_PSR_PRESCALE(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_PSR_PRESCALE_SHIFT))&LPTMR_PSR_PRESCALE_MASK)
Kojto 90:cb3d968589d8 5241 /* CMR Bit Fields */
Kojto 90:cb3d968589d8 5242 #define LPTMR_CMR_COMPARE_MASK 0xFFFFu
Kojto 90:cb3d968589d8 5243 #define LPTMR_CMR_COMPARE_SHIFT 0
Kojto 90:cb3d968589d8 5244 #define LPTMR_CMR_COMPARE(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_CMR_COMPARE_SHIFT))&LPTMR_CMR_COMPARE_MASK)
Kojto 90:cb3d968589d8 5245 /* CNR Bit Fields */
Kojto 90:cb3d968589d8 5246 #define LPTMR_CNR_COUNTER_MASK 0xFFFFu
Kojto 90:cb3d968589d8 5247 #define LPTMR_CNR_COUNTER_SHIFT 0
Kojto 90:cb3d968589d8 5248 #define LPTMR_CNR_COUNTER(x) (((uint32_t)(((uint32_t)(x))<<LPTMR_CNR_COUNTER_SHIFT))&LPTMR_CNR_COUNTER_MASK)
Kojto 90:cb3d968589d8 5249
Kojto 90:cb3d968589d8 5250 /*!
Kojto 90:cb3d968589d8 5251 * @}
Kojto 90:cb3d968589d8 5252 */ /* end of group LPTMR_Register_Masks */
Kojto 90:cb3d968589d8 5253
Kojto 90:cb3d968589d8 5254
Kojto 90:cb3d968589d8 5255 /* LPTMR - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 5256 /** Peripheral LPTMR0 base address */
Kojto 90:cb3d968589d8 5257 #define LPTMR0_BASE (0x40040000u)
Kojto 90:cb3d968589d8 5258 /** Peripheral LPTMR0 base pointer */
Kojto 90:cb3d968589d8 5259 #define LPTMR0 ((LPTMR_Type *)LPTMR0_BASE)
Kojto 90:cb3d968589d8 5260 #define LPTMR0_BASE_PTR (LPTMR0)
Kojto 90:cb3d968589d8 5261 /** Array initializer of LPTMR peripheral base addresses */
Kojto 90:cb3d968589d8 5262 #define LPTMR_BASE_ADDRS { LPTMR0_BASE }
Kojto 90:cb3d968589d8 5263 /** Array initializer of LPTMR peripheral base pointers */
Kojto 90:cb3d968589d8 5264 #define LPTMR_BASE_PTRS { LPTMR0 }
Kojto 90:cb3d968589d8 5265 /** Interrupt vectors for the LPTMR peripheral type */
Kojto 90:cb3d968589d8 5266 #define LPTMR_IRQS { LPTimer_IRQn }
Kojto 90:cb3d968589d8 5267
Kojto 90:cb3d968589d8 5268 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5269 -- LPTMR - Register accessor macros
Kojto 90:cb3d968589d8 5270 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5271
Kojto 90:cb3d968589d8 5272 /*!
Kojto 90:cb3d968589d8 5273 * @addtogroup LPTMR_Register_Accessor_Macros LPTMR - Register accessor macros
Kojto 90:cb3d968589d8 5274 * @{
Kojto 90:cb3d968589d8 5275 */
Kojto 90:cb3d968589d8 5276
Kojto 90:cb3d968589d8 5277
Kojto 90:cb3d968589d8 5278 /* LPTMR - Register instance definitions */
Kojto 90:cb3d968589d8 5279 /* LPTMR0 */
Kojto 90:cb3d968589d8 5280 #define LPTMR0_CSR LPTMR_CSR_REG(LPTMR0)
Kojto 90:cb3d968589d8 5281 #define LPTMR0_PSR LPTMR_PSR_REG(LPTMR0)
Kojto 90:cb3d968589d8 5282 #define LPTMR0_CMR LPTMR_CMR_REG(LPTMR0)
Kojto 90:cb3d968589d8 5283 #define LPTMR0_CNR LPTMR_CNR_REG(LPTMR0)
Kojto 90:cb3d968589d8 5284
Kojto 90:cb3d968589d8 5285 /*!
Kojto 90:cb3d968589d8 5286 * @}
Kojto 90:cb3d968589d8 5287 */ /* end of group LPTMR_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5288
Kojto 90:cb3d968589d8 5289
Kojto 90:cb3d968589d8 5290 /*!
Kojto 90:cb3d968589d8 5291 * @}
Kojto 90:cb3d968589d8 5292 */ /* end of group LPTMR_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 5293
Kojto 90:cb3d968589d8 5294
Kojto 90:cb3d968589d8 5295 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5296 -- LPUART Peripheral Access Layer
Kojto 90:cb3d968589d8 5297 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5298
Kojto 90:cb3d968589d8 5299 /*!
Kojto 90:cb3d968589d8 5300 * @addtogroup LPUART_Peripheral_Access_Layer LPUART Peripheral Access Layer
Kojto 90:cb3d968589d8 5301 * @{
Kojto 90:cb3d968589d8 5302 */
Kojto 90:cb3d968589d8 5303
Kojto 90:cb3d968589d8 5304 /** LPUART - Register Layout Typedef */
Kojto 90:cb3d968589d8 5305 typedef struct {
Kojto 90:cb3d968589d8 5306 __IO uint32_t BAUD; /**< LPUART Baud Rate Register, offset: 0x0 */
Kojto 90:cb3d968589d8 5307 __IO uint32_t STAT; /**< LPUART Status Register, offset: 0x4 */
Kojto 90:cb3d968589d8 5308 __IO uint32_t CTRL; /**< LPUART Control Register, offset: 0x8 */
Kojto 90:cb3d968589d8 5309 __IO uint32_t DATA; /**< LPUART Data Register, offset: 0xC */
Kojto 90:cb3d968589d8 5310 __IO uint32_t MATCH; /**< LPUART Match Address Register, offset: 0x10 */
Kojto 90:cb3d968589d8 5311 __IO uint32_t MODIR; /**< LPUART Modem IrDA Register, offset: 0x14 */
Kojto 90:cb3d968589d8 5312 } LPUART_Type, *LPUART_MemMapPtr;
Kojto 90:cb3d968589d8 5313
Kojto 90:cb3d968589d8 5314 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5315 -- LPUART - Register accessor macros
Kojto 90:cb3d968589d8 5316 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5317
Kojto 90:cb3d968589d8 5318 /*!
Kojto 90:cb3d968589d8 5319 * @addtogroup LPUART_Register_Accessor_Macros LPUART - Register accessor macros
Kojto 90:cb3d968589d8 5320 * @{
Kojto 90:cb3d968589d8 5321 */
Kojto 90:cb3d968589d8 5322
Kojto 90:cb3d968589d8 5323
Kojto 90:cb3d968589d8 5324 /* LPUART - Register accessors */
Kojto 90:cb3d968589d8 5325 #define LPUART_BAUD_REG(base) ((base)->BAUD)
Kojto 90:cb3d968589d8 5326 #define LPUART_STAT_REG(base) ((base)->STAT)
Kojto 90:cb3d968589d8 5327 #define LPUART_CTRL_REG(base) ((base)->CTRL)
Kojto 90:cb3d968589d8 5328 #define LPUART_DATA_REG(base) ((base)->DATA)
Kojto 90:cb3d968589d8 5329 #define LPUART_MATCH_REG(base) ((base)->MATCH)
Kojto 90:cb3d968589d8 5330 #define LPUART_MODIR_REG(base) ((base)->MODIR)
Kojto 90:cb3d968589d8 5331
Kojto 90:cb3d968589d8 5332 /*!
Kojto 90:cb3d968589d8 5333 * @}
Kojto 90:cb3d968589d8 5334 */ /* end of group LPUART_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5335
Kojto 90:cb3d968589d8 5336
Kojto 90:cb3d968589d8 5337 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5338 -- LPUART Register Masks
Kojto 90:cb3d968589d8 5339 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5340
Kojto 90:cb3d968589d8 5341 /*!
Kojto 90:cb3d968589d8 5342 * @addtogroup LPUART_Register_Masks LPUART Register Masks
Kojto 90:cb3d968589d8 5343 * @{
Kojto 90:cb3d968589d8 5344 */
Kojto 90:cb3d968589d8 5345
Kojto 90:cb3d968589d8 5346 /* BAUD Bit Fields */
Kojto 90:cb3d968589d8 5347 #define LPUART_BAUD_SBR_MASK 0x1FFFu
Kojto 90:cb3d968589d8 5348 #define LPUART_BAUD_SBR_SHIFT 0
Kojto 90:cb3d968589d8 5349 #define LPUART_BAUD_SBR(x) (((uint32_t)(((uint32_t)(x))<<LPUART_BAUD_SBR_SHIFT))&LPUART_BAUD_SBR_MASK)
Kojto 90:cb3d968589d8 5350 #define LPUART_BAUD_SBNS_MASK 0x2000u
Kojto 90:cb3d968589d8 5351 #define LPUART_BAUD_SBNS_SHIFT 13
Kojto 90:cb3d968589d8 5352 #define LPUART_BAUD_RXEDGIE_MASK 0x4000u
Kojto 90:cb3d968589d8 5353 #define LPUART_BAUD_RXEDGIE_SHIFT 14
Kojto 90:cb3d968589d8 5354 #define LPUART_BAUD_LBKDIE_MASK 0x8000u
Kojto 90:cb3d968589d8 5355 #define LPUART_BAUD_LBKDIE_SHIFT 15
Kojto 90:cb3d968589d8 5356 #define LPUART_BAUD_RESYNCDIS_MASK 0x10000u
Kojto 90:cb3d968589d8 5357 #define LPUART_BAUD_RESYNCDIS_SHIFT 16
Kojto 90:cb3d968589d8 5358 #define LPUART_BAUD_BOTHEDGE_MASK 0x20000u
Kojto 90:cb3d968589d8 5359 #define LPUART_BAUD_BOTHEDGE_SHIFT 17
Kojto 90:cb3d968589d8 5360 #define LPUART_BAUD_MATCFG_MASK 0xC0000u
Kojto 90:cb3d968589d8 5361 #define LPUART_BAUD_MATCFG_SHIFT 18
Kojto 90:cb3d968589d8 5362 #define LPUART_BAUD_MATCFG(x) (((uint32_t)(((uint32_t)(x))<<LPUART_BAUD_MATCFG_SHIFT))&LPUART_BAUD_MATCFG_MASK)
Kojto 90:cb3d968589d8 5363 #define LPUART_BAUD_RDMAE_MASK 0x200000u
Kojto 90:cb3d968589d8 5364 #define LPUART_BAUD_RDMAE_SHIFT 21
Kojto 90:cb3d968589d8 5365 #define LPUART_BAUD_TDMAE_MASK 0x800000u
Kojto 90:cb3d968589d8 5366 #define LPUART_BAUD_TDMAE_SHIFT 23
Kojto 90:cb3d968589d8 5367 #define LPUART_BAUD_OSR_MASK 0x1F000000u
Kojto 90:cb3d968589d8 5368 #define LPUART_BAUD_OSR_SHIFT 24
Kojto 90:cb3d968589d8 5369 #define LPUART_BAUD_OSR(x) (((uint32_t)(((uint32_t)(x))<<LPUART_BAUD_OSR_SHIFT))&LPUART_BAUD_OSR_MASK)
Kojto 90:cb3d968589d8 5370 #define LPUART_BAUD_M10_MASK 0x20000000u
Kojto 90:cb3d968589d8 5371 #define LPUART_BAUD_M10_SHIFT 29
Kojto 90:cb3d968589d8 5372 #define LPUART_BAUD_MAEN2_MASK 0x40000000u
Kojto 90:cb3d968589d8 5373 #define LPUART_BAUD_MAEN2_SHIFT 30
Kojto 90:cb3d968589d8 5374 #define LPUART_BAUD_MAEN1_MASK 0x80000000u
Kojto 90:cb3d968589d8 5375 #define LPUART_BAUD_MAEN1_SHIFT 31
Kojto 90:cb3d968589d8 5376 /* STAT Bit Fields */
Kojto 90:cb3d968589d8 5377 #define LPUART_STAT_MA2F_MASK 0x4000u
Kojto 90:cb3d968589d8 5378 #define LPUART_STAT_MA2F_SHIFT 14
Kojto 90:cb3d968589d8 5379 #define LPUART_STAT_MA1F_MASK 0x8000u
Kojto 90:cb3d968589d8 5380 #define LPUART_STAT_MA1F_SHIFT 15
Kojto 90:cb3d968589d8 5381 #define LPUART_STAT_PF_MASK 0x10000u
Kojto 90:cb3d968589d8 5382 #define LPUART_STAT_PF_SHIFT 16
Kojto 90:cb3d968589d8 5383 #define LPUART_STAT_FE_MASK 0x20000u
Kojto 90:cb3d968589d8 5384 #define LPUART_STAT_FE_SHIFT 17
Kojto 90:cb3d968589d8 5385 #define LPUART_STAT_NF_MASK 0x40000u
Kojto 90:cb3d968589d8 5386 #define LPUART_STAT_NF_SHIFT 18
Kojto 90:cb3d968589d8 5387 #define LPUART_STAT_OR_MASK 0x80000u
Kojto 90:cb3d968589d8 5388 #define LPUART_STAT_OR_SHIFT 19
Kojto 90:cb3d968589d8 5389 #define LPUART_STAT_IDLE_MASK 0x100000u
Kojto 90:cb3d968589d8 5390 #define LPUART_STAT_IDLE_SHIFT 20
Kojto 90:cb3d968589d8 5391 #define LPUART_STAT_RDRF_MASK 0x200000u
Kojto 90:cb3d968589d8 5392 #define LPUART_STAT_RDRF_SHIFT 21
Kojto 90:cb3d968589d8 5393 #define LPUART_STAT_TC_MASK 0x400000u
Kojto 90:cb3d968589d8 5394 #define LPUART_STAT_TC_SHIFT 22
Kojto 90:cb3d968589d8 5395 #define LPUART_STAT_TDRE_MASK 0x800000u
Kojto 90:cb3d968589d8 5396 #define LPUART_STAT_TDRE_SHIFT 23
Kojto 90:cb3d968589d8 5397 #define LPUART_STAT_RAF_MASK 0x1000000u
Kojto 90:cb3d968589d8 5398 #define LPUART_STAT_RAF_SHIFT 24
Kojto 90:cb3d968589d8 5399 #define LPUART_STAT_LBKDE_MASK 0x2000000u
Kojto 90:cb3d968589d8 5400 #define LPUART_STAT_LBKDE_SHIFT 25
Kojto 90:cb3d968589d8 5401 #define LPUART_STAT_BRK13_MASK 0x4000000u
Kojto 90:cb3d968589d8 5402 #define LPUART_STAT_BRK13_SHIFT 26
Kojto 90:cb3d968589d8 5403 #define LPUART_STAT_RWUID_MASK 0x8000000u
Kojto 90:cb3d968589d8 5404 #define LPUART_STAT_RWUID_SHIFT 27
Kojto 90:cb3d968589d8 5405 #define LPUART_STAT_RXINV_MASK 0x10000000u
Kojto 90:cb3d968589d8 5406 #define LPUART_STAT_RXINV_SHIFT 28
Kojto 90:cb3d968589d8 5407 #define LPUART_STAT_MSBF_MASK 0x20000000u
Kojto 90:cb3d968589d8 5408 #define LPUART_STAT_MSBF_SHIFT 29
Kojto 90:cb3d968589d8 5409 #define LPUART_STAT_RXEDGIF_MASK 0x40000000u
Kojto 90:cb3d968589d8 5410 #define LPUART_STAT_RXEDGIF_SHIFT 30
Kojto 90:cb3d968589d8 5411 #define LPUART_STAT_LBKDIF_MASK 0x80000000u
Kojto 90:cb3d968589d8 5412 #define LPUART_STAT_LBKDIF_SHIFT 31
Kojto 90:cb3d968589d8 5413 /* CTRL Bit Fields */
Kojto 90:cb3d968589d8 5414 #define LPUART_CTRL_PT_MASK 0x1u
Kojto 90:cb3d968589d8 5415 #define LPUART_CTRL_PT_SHIFT 0
Kojto 90:cb3d968589d8 5416 #define LPUART_CTRL_PE_MASK 0x2u
Kojto 90:cb3d968589d8 5417 #define LPUART_CTRL_PE_SHIFT 1
Kojto 90:cb3d968589d8 5418 #define LPUART_CTRL_ILT_MASK 0x4u
Kojto 90:cb3d968589d8 5419 #define LPUART_CTRL_ILT_SHIFT 2
Kojto 90:cb3d968589d8 5420 #define LPUART_CTRL_WAKE_MASK 0x8u
Kojto 90:cb3d968589d8 5421 #define LPUART_CTRL_WAKE_SHIFT 3
Kojto 90:cb3d968589d8 5422 #define LPUART_CTRL_M_MASK 0x10u
Kojto 90:cb3d968589d8 5423 #define LPUART_CTRL_M_SHIFT 4
Kojto 90:cb3d968589d8 5424 #define LPUART_CTRL_RSRC_MASK 0x20u
Kojto 90:cb3d968589d8 5425 #define LPUART_CTRL_RSRC_SHIFT 5
Kojto 90:cb3d968589d8 5426 #define LPUART_CTRL_DOZEEN_MASK 0x40u
Kojto 90:cb3d968589d8 5427 #define LPUART_CTRL_DOZEEN_SHIFT 6
Kojto 90:cb3d968589d8 5428 #define LPUART_CTRL_LOOPS_MASK 0x80u
Kojto 90:cb3d968589d8 5429 #define LPUART_CTRL_LOOPS_SHIFT 7
Kojto 90:cb3d968589d8 5430 #define LPUART_CTRL_IDLECFG_MASK 0x700u
Kojto 90:cb3d968589d8 5431 #define LPUART_CTRL_IDLECFG_SHIFT 8
Kojto 90:cb3d968589d8 5432 #define LPUART_CTRL_IDLECFG(x) (((uint32_t)(((uint32_t)(x))<<LPUART_CTRL_IDLECFG_SHIFT))&LPUART_CTRL_IDLECFG_MASK)
Kojto 90:cb3d968589d8 5433 #define LPUART_CTRL_MA2IE_MASK 0x4000u
Kojto 90:cb3d968589d8 5434 #define LPUART_CTRL_MA2IE_SHIFT 14
Kojto 90:cb3d968589d8 5435 #define LPUART_CTRL_MA1IE_MASK 0x8000u
Kojto 90:cb3d968589d8 5436 #define LPUART_CTRL_MA1IE_SHIFT 15
Kojto 90:cb3d968589d8 5437 #define LPUART_CTRL_SBK_MASK 0x10000u
Kojto 90:cb3d968589d8 5438 #define LPUART_CTRL_SBK_SHIFT 16
Kojto 90:cb3d968589d8 5439 #define LPUART_CTRL_RWU_MASK 0x20000u
Kojto 90:cb3d968589d8 5440 #define LPUART_CTRL_RWU_SHIFT 17
Kojto 90:cb3d968589d8 5441 #define LPUART_CTRL_RE_MASK 0x40000u
Kojto 90:cb3d968589d8 5442 #define LPUART_CTRL_RE_SHIFT 18
Kojto 90:cb3d968589d8 5443 #define LPUART_CTRL_TE_MASK 0x80000u
Kojto 90:cb3d968589d8 5444 #define LPUART_CTRL_TE_SHIFT 19
Kojto 90:cb3d968589d8 5445 #define LPUART_CTRL_ILIE_MASK 0x100000u
Kojto 90:cb3d968589d8 5446 #define LPUART_CTRL_ILIE_SHIFT 20
Kojto 90:cb3d968589d8 5447 #define LPUART_CTRL_RIE_MASK 0x200000u
Kojto 90:cb3d968589d8 5448 #define LPUART_CTRL_RIE_SHIFT 21
Kojto 90:cb3d968589d8 5449 #define LPUART_CTRL_TCIE_MASK 0x400000u
Kojto 90:cb3d968589d8 5450 #define LPUART_CTRL_TCIE_SHIFT 22
Kojto 90:cb3d968589d8 5451 #define LPUART_CTRL_TIE_MASK 0x800000u
Kojto 90:cb3d968589d8 5452 #define LPUART_CTRL_TIE_SHIFT 23
Kojto 90:cb3d968589d8 5453 #define LPUART_CTRL_PEIE_MASK 0x1000000u
Kojto 90:cb3d968589d8 5454 #define LPUART_CTRL_PEIE_SHIFT 24
Kojto 90:cb3d968589d8 5455 #define LPUART_CTRL_FEIE_MASK 0x2000000u
Kojto 90:cb3d968589d8 5456 #define LPUART_CTRL_FEIE_SHIFT 25
Kojto 90:cb3d968589d8 5457 #define LPUART_CTRL_NEIE_MASK 0x4000000u
Kojto 90:cb3d968589d8 5458 #define LPUART_CTRL_NEIE_SHIFT 26
Kojto 90:cb3d968589d8 5459 #define LPUART_CTRL_ORIE_MASK 0x8000000u
Kojto 90:cb3d968589d8 5460 #define LPUART_CTRL_ORIE_SHIFT 27
Kojto 90:cb3d968589d8 5461 #define LPUART_CTRL_TXINV_MASK 0x10000000u
Kojto 90:cb3d968589d8 5462 #define LPUART_CTRL_TXINV_SHIFT 28
Kojto 90:cb3d968589d8 5463 #define LPUART_CTRL_TXDIR_MASK 0x20000000u
Kojto 90:cb3d968589d8 5464 #define LPUART_CTRL_TXDIR_SHIFT 29
Kojto 90:cb3d968589d8 5465 #define LPUART_CTRL_R9T8_MASK 0x40000000u
Kojto 90:cb3d968589d8 5466 #define LPUART_CTRL_R9T8_SHIFT 30
Kojto 90:cb3d968589d8 5467 #define LPUART_CTRL_R8T9_MASK 0x80000000u
Kojto 90:cb3d968589d8 5468 #define LPUART_CTRL_R8T9_SHIFT 31
Kojto 90:cb3d968589d8 5469 /* DATA Bit Fields */
Kojto 90:cb3d968589d8 5470 #define LPUART_DATA_R0T0_MASK 0x1u
Kojto 90:cb3d968589d8 5471 #define LPUART_DATA_R0T0_SHIFT 0
Kojto 90:cb3d968589d8 5472 #define LPUART_DATA_R1T1_MASK 0x2u
Kojto 90:cb3d968589d8 5473 #define LPUART_DATA_R1T1_SHIFT 1
Kojto 90:cb3d968589d8 5474 #define LPUART_DATA_R2T2_MASK 0x4u
Kojto 90:cb3d968589d8 5475 #define LPUART_DATA_R2T2_SHIFT 2
Kojto 90:cb3d968589d8 5476 #define LPUART_DATA_R3T3_MASK 0x8u
Kojto 90:cb3d968589d8 5477 #define LPUART_DATA_R3T3_SHIFT 3
Kojto 90:cb3d968589d8 5478 #define LPUART_DATA_R4T4_MASK 0x10u
Kojto 90:cb3d968589d8 5479 #define LPUART_DATA_R4T4_SHIFT 4
Kojto 90:cb3d968589d8 5480 #define LPUART_DATA_R5T5_MASK 0x20u
Kojto 90:cb3d968589d8 5481 #define LPUART_DATA_R5T5_SHIFT 5
Kojto 90:cb3d968589d8 5482 #define LPUART_DATA_R6T6_MASK 0x40u
Kojto 90:cb3d968589d8 5483 #define LPUART_DATA_R6T6_SHIFT 6
Kojto 90:cb3d968589d8 5484 #define LPUART_DATA_R7T7_MASK 0x80u
Kojto 90:cb3d968589d8 5485 #define LPUART_DATA_R7T7_SHIFT 7
Kojto 90:cb3d968589d8 5486 #define LPUART_DATA_R8T8_MASK 0x100u
Kojto 90:cb3d968589d8 5487 #define LPUART_DATA_R8T8_SHIFT 8
Kojto 90:cb3d968589d8 5488 #define LPUART_DATA_R9T9_MASK 0x200u
Kojto 90:cb3d968589d8 5489 #define LPUART_DATA_R9T9_SHIFT 9
Kojto 90:cb3d968589d8 5490 #define LPUART_DATA_IDLINE_MASK 0x800u
Kojto 90:cb3d968589d8 5491 #define LPUART_DATA_IDLINE_SHIFT 11
Kojto 90:cb3d968589d8 5492 #define LPUART_DATA_RXEMPT_MASK 0x1000u
Kojto 90:cb3d968589d8 5493 #define LPUART_DATA_RXEMPT_SHIFT 12
Kojto 90:cb3d968589d8 5494 #define LPUART_DATA_FRETSC_MASK 0x2000u
Kojto 90:cb3d968589d8 5495 #define LPUART_DATA_FRETSC_SHIFT 13
Kojto 90:cb3d968589d8 5496 #define LPUART_DATA_PARITYE_MASK 0x4000u
Kojto 90:cb3d968589d8 5497 #define LPUART_DATA_PARITYE_SHIFT 14
Kojto 90:cb3d968589d8 5498 #define LPUART_DATA_NOISY_MASK 0x8000u
Kojto 90:cb3d968589d8 5499 #define LPUART_DATA_NOISY_SHIFT 15
Kojto 90:cb3d968589d8 5500 /* MATCH Bit Fields */
Kojto 90:cb3d968589d8 5501 #define LPUART_MATCH_MA1_MASK 0x3FFu
Kojto 90:cb3d968589d8 5502 #define LPUART_MATCH_MA1_SHIFT 0
Kojto 90:cb3d968589d8 5503 #define LPUART_MATCH_MA1(x) (((uint32_t)(((uint32_t)(x))<<LPUART_MATCH_MA1_SHIFT))&LPUART_MATCH_MA1_MASK)
Kojto 90:cb3d968589d8 5504 #define LPUART_MATCH_MA2_MASK 0x3FF0000u
Kojto 90:cb3d968589d8 5505 #define LPUART_MATCH_MA2_SHIFT 16
Kojto 90:cb3d968589d8 5506 #define LPUART_MATCH_MA2(x) (((uint32_t)(((uint32_t)(x))<<LPUART_MATCH_MA2_SHIFT))&LPUART_MATCH_MA2_MASK)
Kojto 90:cb3d968589d8 5507 /* MODIR Bit Fields */
Kojto 90:cb3d968589d8 5508 #define LPUART_MODIR_TXCTSE_MASK 0x1u
Kojto 90:cb3d968589d8 5509 #define LPUART_MODIR_TXCTSE_SHIFT 0
Kojto 90:cb3d968589d8 5510 #define LPUART_MODIR_TXRTSE_MASK 0x2u
Kojto 90:cb3d968589d8 5511 #define LPUART_MODIR_TXRTSE_SHIFT 1
Kojto 90:cb3d968589d8 5512 #define LPUART_MODIR_TXRTSPOL_MASK 0x4u
Kojto 90:cb3d968589d8 5513 #define LPUART_MODIR_TXRTSPOL_SHIFT 2
Kojto 90:cb3d968589d8 5514 #define LPUART_MODIR_RXRTSE_MASK 0x8u
Kojto 90:cb3d968589d8 5515 #define LPUART_MODIR_RXRTSE_SHIFT 3
Kojto 90:cb3d968589d8 5516 #define LPUART_MODIR_TXCTSC_MASK 0x10u
Kojto 90:cb3d968589d8 5517 #define LPUART_MODIR_TXCTSC_SHIFT 4
Kojto 90:cb3d968589d8 5518 #define LPUART_MODIR_TXCTSSRC_MASK 0x20u
Kojto 90:cb3d968589d8 5519 #define LPUART_MODIR_TXCTSSRC_SHIFT 5
Kojto 90:cb3d968589d8 5520 #define LPUART_MODIR_TNP_MASK 0x30000u
Kojto 90:cb3d968589d8 5521 #define LPUART_MODIR_TNP_SHIFT 16
Kojto 90:cb3d968589d8 5522 #define LPUART_MODIR_TNP(x) (((uint32_t)(((uint32_t)(x))<<LPUART_MODIR_TNP_SHIFT))&LPUART_MODIR_TNP_MASK)
Kojto 90:cb3d968589d8 5523 #define LPUART_MODIR_IREN_MASK 0x40000u
Kojto 90:cb3d968589d8 5524 #define LPUART_MODIR_IREN_SHIFT 18
Kojto 90:cb3d968589d8 5525
Kojto 90:cb3d968589d8 5526 /*!
Kojto 90:cb3d968589d8 5527 * @}
Kojto 90:cb3d968589d8 5528 */ /* end of group LPUART_Register_Masks */
Kojto 90:cb3d968589d8 5529
Kojto 90:cb3d968589d8 5530
Kojto 90:cb3d968589d8 5531 /* LPUART - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 5532 /** Peripheral LPUART0 base address */
Kojto 90:cb3d968589d8 5533 #define LPUART0_BASE (0x4002A000u)
Kojto 90:cb3d968589d8 5534 /** Peripheral LPUART0 base pointer */
Kojto 90:cb3d968589d8 5535 #define LPUART0 ((LPUART_Type *)LPUART0_BASE)
Kojto 90:cb3d968589d8 5536 #define LPUART0_BASE_PTR (LPUART0)
Kojto 90:cb3d968589d8 5537 /** Array initializer of LPUART peripheral base addresses */
Kojto 90:cb3d968589d8 5538 #define LPUART_BASE_ADDRS { LPUART0_BASE }
Kojto 90:cb3d968589d8 5539 /** Array initializer of LPUART peripheral base pointers */
Kojto 90:cb3d968589d8 5540 #define LPUART_BASE_PTRS { LPUART0 }
Kojto 90:cb3d968589d8 5541 /** Interrupt vectors for the LPUART peripheral type */
Kojto 90:cb3d968589d8 5542 #define LPUART_RX_TX_IRQS { LPUART0_IRQn }
Kojto 90:cb3d968589d8 5543 #define LPUART_ERR_IRQS { LPUART0_IRQn }
Kojto 90:cb3d968589d8 5544
Kojto 90:cb3d968589d8 5545 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5546 -- LPUART - Register accessor macros
Kojto 90:cb3d968589d8 5547 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5548
Kojto 90:cb3d968589d8 5549 /*!
Kojto 90:cb3d968589d8 5550 * @addtogroup LPUART_Register_Accessor_Macros LPUART - Register accessor macros
Kojto 90:cb3d968589d8 5551 * @{
Kojto 90:cb3d968589d8 5552 */
Kojto 90:cb3d968589d8 5553
Kojto 90:cb3d968589d8 5554
Kojto 90:cb3d968589d8 5555 /* LPUART - Register instance definitions */
Kojto 90:cb3d968589d8 5556 /* LPUART0 */
Kojto 90:cb3d968589d8 5557 #define LPUART0_BAUD LPUART_BAUD_REG(LPUART0)
Kojto 90:cb3d968589d8 5558 #define LPUART0_STAT LPUART_STAT_REG(LPUART0)
Kojto 90:cb3d968589d8 5559 #define LPUART0_CTRL LPUART_CTRL_REG(LPUART0)
Kojto 90:cb3d968589d8 5560 #define LPUART0_DATA LPUART_DATA_REG(LPUART0)
Kojto 90:cb3d968589d8 5561 #define LPUART0_MATCH LPUART_MATCH_REG(LPUART0)
Kojto 90:cb3d968589d8 5562 #define LPUART0_MODIR LPUART_MODIR_REG(LPUART0)
Kojto 90:cb3d968589d8 5563
Kojto 90:cb3d968589d8 5564 /*!
Kojto 90:cb3d968589d8 5565 * @}
Kojto 90:cb3d968589d8 5566 */ /* end of group LPUART_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5567
Kojto 90:cb3d968589d8 5568
Kojto 90:cb3d968589d8 5569 /*!
Kojto 90:cb3d968589d8 5570 * @}
Kojto 90:cb3d968589d8 5571 */ /* end of group LPUART_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 5572
Kojto 90:cb3d968589d8 5573
Kojto 90:cb3d968589d8 5574 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5575 -- MCG Peripheral Access Layer
Kojto 90:cb3d968589d8 5576 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5577
Kojto 90:cb3d968589d8 5578 /*!
Kojto 90:cb3d968589d8 5579 * @addtogroup MCG_Peripheral_Access_Layer MCG Peripheral Access Layer
Kojto 90:cb3d968589d8 5580 * @{
Kojto 90:cb3d968589d8 5581 */
Kojto 90:cb3d968589d8 5582
Kojto 90:cb3d968589d8 5583 /** MCG - Register Layout Typedef */
Kojto 90:cb3d968589d8 5584 typedef struct {
Kojto 90:cb3d968589d8 5585 __IO uint8_t C1; /**< MCG Control 1 Register, offset: 0x0 */
Kojto 90:cb3d968589d8 5586 __IO uint8_t C2; /**< MCG Control 2 Register, offset: 0x1 */
Kojto 90:cb3d968589d8 5587 __IO uint8_t C3; /**< MCG Control 3 Register, offset: 0x2 */
Kojto 90:cb3d968589d8 5588 __IO uint8_t C4; /**< MCG Control 4 Register, offset: 0x3 */
Kojto 90:cb3d968589d8 5589 __IO uint8_t C5; /**< MCG Control 5 Register, offset: 0x4 */
Kojto 90:cb3d968589d8 5590 __IO uint8_t C6; /**< MCG Control 6 Register, offset: 0x5 */
Kojto 90:cb3d968589d8 5591 __IO uint8_t S; /**< MCG Status Register, offset: 0x6 */
Kojto 90:cb3d968589d8 5592 uint8_t RESERVED_0[1];
Kojto 90:cb3d968589d8 5593 __IO uint8_t SC; /**< MCG Status and Control Register, offset: 0x8 */
Kojto 90:cb3d968589d8 5594 uint8_t RESERVED_1[1];
Kojto 90:cb3d968589d8 5595 __IO uint8_t ATCVH; /**< MCG Auto Trim Compare Value High Register, offset: 0xA */
Kojto 90:cb3d968589d8 5596 __IO uint8_t ATCVL; /**< MCG Auto Trim Compare Value Low Register, offset: 0xB */
Kojto 90:cb3d968589d8 5597 __IO uint8_t C7; /**< MCG Control 7 Register, offset: 0xC */
Kojto 90:cb3d968589d8 5598 __IO uint8_t C8; /**< MCG Control 8 Register, offset: 0xD */
Kojto 90:cb3d968589d8 5599 } MCG_Type, *MCG_MemMapPtr;
Kojto 90:cb3d968589d8 5600
Kojto 90:cb3d968589d8 5601 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5602 -- MCG - Register accessor macros
Kojto 90:cb3d968589d8 5603 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5604
Kojto 90:cb3d968589d8 5605 /*!
Kojto 90:cb3d968589d8 5606 * @addtogroup MCG_Register_Accessor_Macros MCG - Register accessor macros
Kojto 90:cb3d968589d8 5607 * @{
Kojto 90:cb3d968589d8 5608 */
Kojto 90:cb3d968589d8 5609
Kojto 90:cb3d968589d8 5610
Kojto 90:cb3d968589d8 5611 /* MCG - Register accessors */
Kojto 90:cb3d968589d8 5612 #define MCG_C1_REG(base) ((base)->C1)
Kojto 90:cb3d968589d8 5613 #define MCG_C2_REG(base) ((base)->C2)
Kojto 90:cb3d968589d8 5614 #define MCG_C3_REG(base) ((base)->C3)
Kojto 90:cb3d968589d8 5615 #define MCG_C4_REG(base) ((base)->C4)
Kojto 90:cb3d968589d8 5616 #define MCG_C5_REG(base) ((base)->C5)
Kojto 90:cb3d968589d8 5617 #define MCG_C6_REG(base) ((base)->C6)
Kojto 90:cb3d968589d8 5618 #define MCG_S_REG(base) ((base)->S)
Kojto 90:cb3d968589d8 5619 #define MCG_SC_REG(base) ((base)->SC)
Kojto 90:cb3d968589d8 5620 #define MCG_ATCVH_REG(base) ((base)->ATCVH)
Kojto 90:cb3d968589d8 5621 #define MCG_ATCVL_REG(base) ((base)->ATCVL)
Kojto 90:cb3d968589d8 5622 #define MCG_C7_REG(base) ((base)->C7)
Kojto 90:cb3d968589d8 5623 #define MCG_C8_REG(base) ((base)->C8)
Kojto 90:cb3d968589d8 5624
Kojto 90:cb3d968589d8 5625 /*!
Kojto 90:cb3d968589d8 5626 * @}
Kojto 90:cb3d968589d8 5627 */ /* end of group MCG_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5628
Kojto 90:cb3d968589d8 5629
Kojto 90:cb3d968589d8 5630 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5631 -- MCG Register Masks
Kojto 90:cb3d968589d8 5632 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5633
Kojto 90:cb3d968589d8 5634 /*!
Kojto 90:cb3d968589d8 5635 * @addtogroup MCG_Register_Masks MCG Register Masks
Kojto 90:cb3d968589d8 5636 * @{
Kojto 90:cb3d968589d8 5637 */
Kojto 90:cb3d968589d8 5638
Kojto 90:cb3d968589d8 5639 /* C1 Bit Fields */
Kojto 90:cb3d968589d8 5640 #define MCG_C1_IREFSTEN_MASK 0x1u
Kojto 90:cb3d968589d8 5641 #define MCG_C1_IREFSTEN_SHIFT 0
Kojto 90:cb3d968589d8 5642 #define MCG_C1_IRCLKEN_MASK 0x2u
Kojto 90:cb3d968589d8 5643 #define MCG_C1_IRCLKEN_SHIFT 1
Kojto 90:cb3d968589d8 5644 #define MCG_C1_IREFS_MASK 0x4u
Kojto 90:cb3d968589d8 5645 #define MCG_C1_IREFS_SHIFT 2
Kojto 90:cb3d968589d8 5646 #define MCG_C1_FRDIV_MASK 0x38u
Kojto 90:cb3d968589d8 5647 #define MCG_C1_FRDIV_SHIFT 3
Kojto 90:cb3d968589d8 5648 #define MCG_C1_FRDIV(x) (((uint8_t)(((uint8_t)(x))<<MCG_C1_FRDIV_SHIFT))&MCG_C1_FRDIV_MASK)
Kojto 90:cb3d968589d8 5649 #define MCG_C1_CLKS_MASK 0xC0u
Kojto 90:cb3d968589d8 5650 #define MCG_C1_CLKS_SHIFT 6
Kojto 90:cb3d968589d8 5651 #define MCG_C1_CLKS(x) (((uint8_t)(((uint8_t)(x))<<MCG_C1_CLKS_SHIFT))&MCG_C1_CLKS_MASK)
Kojto 90:cb3d968589d8 5652 /* C2 Bit Fields */
Kojto 90:cb3d968589d8 5653 #define MCG_C2_IRCS_MASK 0x1u
Kojto 90:cb3d968589d8 5654 #define MCG_C2_IRCS_SHIFT 0
Kojto 90:cb3d968589d8 5655 #define MCG_C2_LP_MASK 0x2u
Kojto 90:cb3d968589d8 5656 #define MCG_C2_LP_SHIFT 1
Kojto 90:cb3d968589d8 5657 #define MCG_C2_EREFS_MASK 0x4u
Kojto 90:cb3d968589d8 5658 #define MCG_C2_EREFS_SHIFT 2
Kojto 90:cb3d968589d8 5659 #define MCG_C2_HGO_MASK 0x8u
Kojto 90:cb3d968589d8 5660 #define MCG_C2_HGO_SHIFT 3
Kojto 90:cb3d968589d8 5661 #define MCG_C2_RANGE_MASK 0x30u
Kojto 90:cb3d968589d8 5662 #define MCG_C2_RANGE_SHIFT 4
Kojto 90:cb3d968589d8 5663 #define MCG_C2_RANGE(x) (((uint8_t)(((uint8_t)(x))<<MCG_C2_RANGE_SHIFT))&MCG_C2_RANGE_MASK)
Kojto 90:cb3d968589d8 5664 #define MCG_C2_FCFTRIM_MASK 0x40u
Kojto 90:cb3d968589d8 5665 #define MCG_C2_FCFTRIM_SHIFT 6
Kojto 90:cb3d968589d8 5666 #define MCG_C2_LOCRE0_MASK 0x80u
Kojto 90:cb3d968589d8 5667 #define MCG_C2_LOCRE0_SHIFT 7
Kojto 90:cb3d968589d8 5668 /* C3 Bit Fields */
Kojto 90:cb3d968589d8 5669 #define MCG_C3_SCTRIM_MASK 0xFFu
Kojto 90:cb3d968589d8 5670 #define MCG_C3_SCTRIM_SHIFT 0
Kojto 90:cb3d968589d8 5671 #define MCG_C3_SCTRIM(x) (((uint8_t)(((uint8_t)(x))<<MCG_C3_SCTRIM_SHIFT))&MCG_C3_SCTRIM_MASK)
Kojto 90:cb3d968589d8 5672 /* C4 Bit Fields */
Kojto 90:cb3d968589d8 5673 #define MCG_C4_SCFTRIM_MASK 0x1u
Kojto 90:cb3d968589d8 5674 #define MCG_C4_SCFTRIM_SHIFT 0
Kojto 90:cb3d968589d8 5675 #define MCG_C4_FCTRIM_MASK 0x1Eu
Kojto 90:cb3d968589d8 5676 #define MCG_C4_FCTRIM_SHIFT 1
Kojto 90:cb3d968589d8 5677 #define MCG_C4_FCTRIM(x) (((uint8_t)(((uint8_t)(x))<<MCG_C4_FCTRIM_SHIFT))&MCG_C4_FCTRIM_MASK)
Kojto 90:cb3d968589d8 5678 #define MCG_C4_DRST_DRS_MASK 0x60u
Kojto 90:cb3d968589d8 5679 #define MCG_C4_DRST_DRS_SHIFT 5
Kojto 90:cb3d968589d8 5680 #define MCG_C4_DRST_DRS(x) (((uint8_t)(((uint8_t)(x))<<MCG_C4_DRST_DRS_SHIFT))&MCG_C4_DRST_DRS_MASK)
Kojto 90:cb3d968589d8 5681 #define MCG_C4_DMX32_MASK 0x80u
Kojto 90:cb3d968589d8 5682 #define MCG_C4_DMX32_SHIFT 7
Kojto 90:cb3d968589d8 5683 /* C5 Bit Fields */
Kojto 90:cb3d968589d8 5684 #define MCG_C5_PRDIV0_MASK 0x1Fu
Kojto 90:cb3d968589d8 5685 #define MCG_C5_PRDIV0_SHIFT 0
Kojto 90:cb3d968589d8 5686 #define MCG_C5_PRDIV0(x) (((uint8_t)(((uint8_t)(x))<<MCG_C5_PRDIV0_SHIFT))&MCG_C5_PRDIV0_MASK)
Kojto 90:cb3d968589d8 5687 #define MCG_C5_PLLSTEN0_MASK 0x20u
Kojto 90:cb3d968589d8 5688 #define MCG_C5_PLLSTEN0_SHIFT 5
Kojto 90:cb3d968589d8 5689 #define MCG_C5_PLLCLKEN0_MASK 0x40u
Kojto 90:cb3d968589d8 5690 #define MCG_C5_PLLCLKEN0_SHIFT 6
Kojto 90:cb3d968589d8 5691 /* C6 Bit Fields */
Kojto 90:cb3d968589d8 5692 #define MCG_C6_VDIV0_MASK 0x1Fu
Kojto 90:cb3d968589d8 5693 #define MCG_C6_VDIV0_SHIFT 0
Kojto 90:cb3d968589d8 5694 #define MCG_C6_VDIV0(x) (((uint8_t)(((uint8_t)(x))<<MCG_C6_VDIV0_SHIFT))&MCG_C6_VDIV0_MASK)
Kojto 90:cb3d968589d8 5695 #define MCG_C6_CME0_MASK 0x20u
Kojto 90:cb3d968589d8 5696 #define MCG_C6_CME0_SHIFT 5
Kojto 90:cb3d968589d8 5697 #define MCG_C6_PLLS_MASK 0x40u
Kojto 90:cb3d968589d8 5698 #define MCG_C6_PLLS_SHIFT 6
Kojto 90:cb3d968589d8 5699 #define MCG_C6_LOLIE0_MASK 0x80u
Kojto 90:cb3d968589d8 5700 #define MCG_C6_LOLIE0_SHIFT 7
Kojto 90:cb3d968589d8 5701 /* S Bit Fields */
Kojto 90:cb3d968589d8 5702 #define MCG_S_IRCST_MASK 0x1u
Kojto 90:cb3d968589d8 5703 #define MCG_S_IRCST_SHIFT 0
Kojto 90:cb3d968589d8 5704 #define MCG_S_OSCINIT0_MASK 0x2u
Kojto 90:cb3d968589d8 5705 #define MCG_S_OSCINIT0_SHIFT 1
Kojto 90:cb3d968589d8 5706 #define MCG_S_CLKST_MASK 0xCu
Kojto 90:cb3d968589d8 5707 #define MCG_S_CLKST_SHIFT 2
Kojto 90:cb3d968589d8 5708 #define MCG_S_CLKST(x) (((uint8_t)(((uint8_t)(x))<<MCG_S_CLKST_SHIFT))&MCG_S_CLKST_MASK)
Kojto 90:cb3d968589d8 5709 #define MCG_S_IREFST_MASK 0x10u
Kojto 90:cb3d968589d8 5710 #define MCG_S_IREFST_SHIFT 4
Kojto 90:cb3d968589d8 5711 #define MCG_S_PLLST_MASK 0x20u
Kojto 90:cb3d968589d8 5712 #define MCG_S_PLLST_SHIFT 5
Kojto 90:cb3d968589d8 5713 #define MCG_S_LOCK0_MASK 0x40u
Kojto 90:cb3d968589d8 5714 #define MCG_S_LOCK0_SHIFT 6
Kojto 90:cb3d968589d8 5715 #define MCG_S_LOLS0_MASK 0x80u
Kojto 90:cb3d968589d8 5716 #define MCG_S_LOLS0_SHIFT 7
Kojto 90:cb3d968589d8 5717 /* SC Bit Fields */
Kojto 90:cb3d968589d8 5718 #define MCG_SC_LOCS0_MASK 0x1u
Kojto 90:cb3d968589d8 5719 #define MCG_SC_LOCS0_SHIFT 0
Kojto 90:cb3d968589d8 5720 #define MCG_SC_FCRDIV_MASK 0xEu
Kojto 90:cb3d968589d8 5721 #define MCG_SC_FCRDIV_SHIFT 1
Kojto 90:cb3d968589d8 5722 #define MCG_SC_FCRDIV(x) (((uint8_t)(((uint8_t)(x))<<MCG_SC_FCRDIV_SHIFT))&MCG_SC_FCRDIV_MASK)
Kojto 90:cb3d968589d8 5723 #define MCG_SC_FLTPRSRV_MASK 0x10u
Kojto 90:cb3d968589d8 5724 #define MCG_SC_FLTPRSRV_SHIFT 4
Kojto 90:cb3d968589d8 5725 #define MCG_SC_ATMF_MASK 0x20u
Kojto 90:cb3d968589d8 5726 #define MCG_SC_ATMF_SHIFT 5
Kojto 90:cb3d968589d8 5727 #define MCG_SC_ATMS_MASK 0x40u
Kojto 90:cb3d968589d8 5728 #define MCG_SC_ATMS_SHIFT 6
Kojto 90:cb3d968589d8 5729 #define MCG_SC_ATME_MASK 0x80u
Kojto 90:cb3d968589d8 5730 #define MCG_SC_ATME_SHIFT 7
Kojto 90:cb3d968589d8 5731 /* ATCVH Bit Fields */
Kojto 90:cb3d968589d8 5732 #define MCG_ATCVH_ATCVH_MASK 0xFFu
Kojto 90:cb3d968589d8 5733 #define MCG_ATCVH_ATCVH_SHIFT 0
Kojto 90:cb3d968589d8 5734 #define MCG_ATCVH_ATCVH(x) (((uint8_t)(((uint8_t)(x))<<MCG_ATCVH_ATCVH_SHIFT))&MCG_ATCVH_ATCVH_MASK)
Kojto 90:cb3d968589d8 5735 /* ATCVL Bit Fields */
Kojto 90:cb3d968589d8 5736 #define MCG_ATCVL_ATCVL_MASK 0xFFu
Kojto 90:cb3d968589d8 5737 #define MCG_ATCVL_ATCVL_SHIFT 0
Kojto 90:cb3d968589d8 5738 #define MCG_ATCVL_ATCVL(x) (((uint8_t)(((uint8_t)(x))<<MCG_ATCVL_ATCVL_SHIFT))&MCG_ATCVL_ATCVL_MASK)
Kojto 90:cb3d968589d8 5739 /* C7 Bit Fields */
Kojto 90:cb3d968589d8 5740 #define MCG_C7_OSCSEL_MASK 0x3u
Kojto 90:cb3d968589d8 5741 #define MCG_C7_OSCSEL_SHIFT 0
Kojto 90:cb3d968589d8 5742 #define MCG_C7_OSCSEL(x) (((uint8_t)(((uint8_t)(x))<<MCG_C7_OSCSEL_SHIFT))&MCG_C7_OSCSEL_MASK)
Kojto 90:cb3d968589d8 5743 /* C8 Bit Fields */
Kojto 90:cb3d968589d8 5744 #define MCG_C8_LOCS1_MASK 0x1u
Kojto 90:cb3d968589d8 5745 #define MCG_C8_LOCS1_SHIFT 0
Kojto 90:cb3d968589d8 5746 #define MCG_C8_CME1_MASK 0x20u
Kojto 90:cb3d968589d8 5747 #define MCG_C8_CME1_SHIFT 5
Kojto 90:cb3d968589d8 5748 #define MCG_C8_LOLRE_MASK 0x40u
Kojto 90:cb3d968589d8 5749 #define MCG_C8_LOLRE_SHIFT 6
Kojto 90:cb3d968589d8 5750 #define MCG_C8_LOCRE1_MASK 0x80u
Kojto 90:cb3d968589d8 5751 #define MCG_C8_LOCRE1_SHIFT 7
Kojto 90:cb3d968589d8 5752
Kojto 90:cb3d968589d8 5753 /*!
Kojto 90:cb3d968589d8 5754 * @}
Kojto 90:cb3d968589d8 5755 */ /* end of group MCG_Register_Masks */
Kojto 90:cb3d968589d8 5756
Kojto 90:cb3d968589d8 5757
Kojto 90:cb3d968589d8 5758 /* MCG - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 5759 /** Peripheral MCG base address */
Kojto 90:cb3d968589d8 5760 #define MCG_BASE (0x40064000u)
Kojto 90:cb3d968589d8 5761 /** Peripheral MCG base pointer */
Kojto 90:cb3d968589d8 5762 #define MCG ((MCG_Type *)MCG_BASE)
Kojto 90:cb3d968589d8 5763 #define MCG_BASE_PTR (MCG)
Kojto 90:cb3d968589d8 5764 /** Array initializer of MCG peripheral base addresses */
Kojto 90:cb3d968589d8 5765 #define MCG_BASE_ADDRS { MCG_BASE }
Kojto 90:cb3d968589d8 5766 /** Array initializer of MCG peripheral base pointers */
Kojto 90:cb3d968589d8 5767 #define MCG_BASE_PTRS { MCG }
Kojto 90:cb3d968589d8 5768
Kojto 90:cb3d968589d8 5769 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5770 -- MCG - Register accessor macros
Kojto 90:cb3d968589d8 5771 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5772
Kojto 90:cb3d968589d8 5773 /*!
Kojto 90:cb3d968589d8 5774 * @addtogroup MCG_Register_Accessor_Macros MCG - Register accessor macros
Kojto 90:cb3d968589d8 5775 * @{
Kojto 90:cb3d968589d8 5776 */
Kojto 90:cb3d968589d8 5777
Kojto 90:cb3d968589d8 5778
Kojto 90:cb3d968589d8 5779 /* MCG - Register instance definitions */
Kojto 90:cb3d968589d8 5780 /* MCG */
Kojto 90:cb3d968589d8 5781 #define MCG_C1 MCG_C1_REG(MCG)
Kojto 90:cb3d968589d8 5782 #define MCG_C2 MCG_C2_REG(MCG)
Kojto 90:cb3d968589d8 5783 #define MCG_C3 MCG_C3_REG(MCG)
Kojto 90:cb3d968589d8 5784 #define MCG_C4 MCG_C4_REG(MCG)
Kojto 90:cb3d968589d8 5785 #define MCG_C5 MCG_C5_REG(MCG)
Kojto 90:cb3d968589d8 5786 #define MCG_C6 MCG_C6_REG(MCG)
Kojto 90:cb3d968589d8 5787 #define MCG_S MCG_S_REG(MCG)
Kojto 90:cb3d968589d8 5788 #define MCG_SC MCG_SC_REG(MCG)
Kojto 90:cb3d968589d8 5789 #define MCG_ATCVH MCG_ATCVH_REG(MCG)
Kojto 90:cb3d968589d8 5790 #define MCG_ATCVL MCG_ATCVL_REG(MCG)
Kojto 90:cb3d968589d8 5791 #define MCG_C7 MCG_C7_REG(MCG)
Kojto 90:cb3d968589d8 5792 #define MCG_C8 MCG_C8_REG(MCG)
Kojto 90:cb3d968589d8 5793
Kojto 90:cb3d968589d8 5794 /*!
Kojto 90:cb3d968589d8 5795 * @}
Kojto 90:cb3d968589d8 5796 */ /* end of group MCG_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5797
Kojto 90:cb3d968589d8 5798
Kojto 90:cb3d968589d8 5799 /*!
Kojto 90:cb3d968589d8 5800 * @}
Kojto 90:cb3d968589d8 5801 */ /* end of group MCG_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 5802
Kojto 90:cb3d968589d8 5803
Kojto 90:cb3d968589d8 5804 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5805 -- MCM Peripheral Access Layer
Kojto 90:cb3d968589d8 5806 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5807
Kojto 90:cb3d968589d8 5808 /*!
Kojto 90:cb3d968589d8 5809 * @addtogroup MCM_Peripheral_Access_Layer MCM Peripheral Access Layer
Kojto 90:cb3d968589d8 5810 * @{
Kojto 90:cb3d968589d8 5811 */
Kojto 90:cb3d968589d8 5812
Kojto 90:cb3d968589d8 5813 /** MCM - Register Layout Typedef */
Kojto 90:cb3d968589d8 5814 typedef struct {
Kojto 90:cb3d968589d8 5815 uint8_t RESERVED_0[8];
Kojto 90:cb3d968589d8 5816 __I uint16_t PLASC; /**< Crossbar Switch (AXBS) Slave Configuration, offset: 0x8 */
Kojto 90:cb3d968589d8 5817 __I uint16_t PLAMC; /**< Crossbar Switch (AXBS) Master Configuration, offset: 0xA */
Kojto 90:cb3d968589d8 5818 __IO uint32_t PLACR; /**< Crossbar Switch (AXBS) Control Register, offset: 0xC */
Kojto 90:cb3d968589d8 5819 __IO uint32_t ISCR; /**< Interrupt Status and Control Register, offset: 0x10 */
Kojto 90:cb3d968589d8 5820 uint8_t RESERVED_1[44];
Kojto 90:cb3d968589d8 5821 __IO uint32_t CPO; /**< Compute Operation Control Register, offset: 0x40 */
Kojto 90:cb3d968589d8 5822 } MCM_Type, *MCM_MemMapPtr;
Kojto 90:cb3d968589d8 5823
Kojto 90:cb3d968589d8 5824 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5825 -- MCM - Register accessor macros
Kojto 90:cb3d968589d8 5826 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5827
Kojto 90:cb3d968589d8 5828 /*!
Kojto 90:cb3d968589d8 5829 * @addtogroup MCM_Register_Accessor_Macros MCM - Register accessor macros
Kojto 90:cb3d968589d8 5830 * @{
Kojto 90:cb3d968589d8 5831 */
Kojto 90:cb3d968589d8 5832
Kojto 90:cb3d968589d8 5833
Kojto 90:cb3d968589d8 5834 /* MCM - Register accessors */
Kojto 90:cb3d968589d8 5835 #define MCM_PLASC_REG(base) ((base)->PLASC)
Kojto 90:cb3d968589d8 5836 #define MCM_PLAMC_REG(base) ((base)->PLAMC)
Kojto 90:cb3d968589d8 5837 #define MCM_PLACR_REG(base) ((base)->PLACR)
Kojto 90:cb3d968589d8 5838 #define MCM_ISCR_REG(base) ((base)->ISCR)
Kojto 90:cb3d968589d8 5839 #define MCM_CPO_REG(base) ((base)->CPO)
Kojto 90:cb3d968589d8 5840
Kojto 90:cb3d968589d8 5841 /*!
Kojto 90:cb3d968589d8 5842 * @}
Kojto 90:cb3d968589d8 5843 */ /* end of group MCM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5844
Kojto 90:cb3d968589d8 5845
Kojto 90:cb3d968589d8 5846 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5847 -- MCM Register Masks
Kojto 90:cb3d968589d8 5848 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5849
Kojto 90:cb3d968589d8 5850 /*!
Kojto 90:cb3d968589d8 5851 * @addtogroup MCM_Register_Masks MCM Register Masks
Kojto 90:cb3d968589d8 5852 * @{
Kojto 90:cb3d968589d8 5853 */
Kojto 90:cb3d968589d8 5854
Kojto 90:cb3d968589d8 5855 /* PLASC Bit Fields */
Kojto 90:cb3d968589d8 5856 #define MCM_PLASC_ASC_MASK 0xFFu
Kojto 90:cb3d968589d8 5857 #define MCM_PLASC_ASC_SHIFT 0
Kojto 90:cb3d968589d8 5858 #define MCM_PLASC_ASC(x) (((uint16_t)(((uint16_t)(x))<<MCM_PLASC_ASC_SHIFT))&MCM_PLASC_ASC_MASK)
Kojto 90:cb3d968589d8 5859 /* PLAMC Bit Fields */
Kojto 90:cb3d968589d8 5860 #define MCM_PLAMC_AMC_MASK 0xFFu
Kojto 90:cb3d968589d8 5861 #define MCM_PLAMC_AMC_SHIFT 0
Kojto 90:cb3d968589d8 5862 #define MCM_PLAMC_AMC(x) (((uint16_t)(((uint16_t)(x))<<MCM_PLAMC_AMC_SHIFT))&MCM_PLAMC_AMC_MASK)
Kojto 90:cb3d968589d8 5863 /* PLACR Bit Fields */
Kojto 90:cb3d968589d8 5864 #define MCM_PLACR_ARB_MASK 0x200u
Kojto 90:cb3d968589d8 5865 #define MCM_PLACR_ARB_SHIFT 9
Kojto 90:cb3d968589d8 5866 /* ISCR Bit Fields */
Kojto 90:cb3d968589d8 5867 #define MCM_ISCR_FIOC_MASK 0x100u
Kojto 90:cb3d968589d8 5868 #define MCM_ISCR_FIOC_SHIFT 8
Kojto 90:cb3d968589d8 5869 #define MCM_ISCR_FDZC_MASK 0x200u
Kojto 90:cb3d968589d8 5870 #define MCM_ISCR_FDZC_SHIFT 9
Kojto 90:cb3d968589d8 5871 #define MCM_ISCR_FOFC_MASK 0x400u
Kojto 90:cb3d968589d8 5872 #define MCM_ISCR_FOFC_SHIFT 10
Kojto 90:cb3d968589d8 5873 #define MCM_ISCR_FUFC_MASK 0x800u
Kojto 90:cb3d968589d8 5874 #define MCM_ISCR_FUFC_SHIFT 11
Kojto 90:cb3d968589d8 5875 #define MCM_ISCR_FIXC_MASK 0x1000u
Kojto 90:cb3d968589d8 5876 #define MCM_ISCR_FIXC_SHIFT 12
Kojto 90:cb3d968589d8 5877 #define MCM_ISCR_FIDC_MASK 0x8000u
Kojto 90:cb3d968589d8 5878 #define MCM_ISCR_FIDC_SHIFT 15
Kojto 90:cb3d968589d8 5879 #define MCM_ISCR_FIOCE_MASK 0x1000000u
Kojto 90:cb3d968589d8 5880 #define MCM_ISCR_FIOCE_SHIFT 24
Kojto 90:cb3d968589d8 5881 #define MCM_ISCR_FDZCE_MASK 0x2000000u
Kojto 90:cb3d968589d8 5882 #define MCM_ISCR_FDZCE_SHIFT 25
Kojto 90:cb3d968589d8 5883 #define MCM_ISCR_FOFCE_MASK 0x4000000u
Kojto 90:cb3d968589d8 5884 #define MCM_ISCR_FOFCE_SHIFT 26
Kojto 90:cb3d968589d8 5885 #define MCM_ISCR_FUFCE_MASK 0x8000000u
Kojto 90:cb3d968589d8 5886 #define MCM_ISCR_FUFCE_SHIFT 27
Kojto 90:cb3d968589d8 5887 #define MCM_ISCR_FIXCE_MASK 0x10000000u
Kojto 90:cb3d968589d8 5888 #define MCM_ISCR_FIXCE_SHIFT 28
Kojto 90:cb3d968589d8 5889 #define MCM_ISCR_FIDCE_MASK 0x80000000u
Kojto 90:cb3d968589d8 5890 #define MCM_ISCR_FIDCE_SHIFT 31
Kojto 90:cb3d968589d8 5891 /* CPO Bit Fields */
Kojto 90:cb3d968589d8 5892 #define MCM_CPO_CPOREQ_MASK 0x1u
Kojto 90:cb3d968589d8 5893 #define MCM_CPO_CPOREQ_SHIFT 0
Kojto 90:cb3d968589d8 5894 #define MCM_CPO_CPOACK_MASK 0x2u
Kojto 90:cb3d968589d8 5895 #define MCM_CPO_CPOACK_SHIFT 1
Kojto 90:cb3d968589d8 5896 #define MCM_CPO_CPOWOI_MASK 0x4u
Kojto 90:cb3d968589d8 5897 #define MCM_CPO_CPOWOI_SHIFT 2
Kojto 90:cb3d968589d8 5898
Kojto 90:cb3d968589d8 5899 /*!
Kojto 90:cb3d968589d8 5900 * @}
Kojto 90:cb3d968589d8 5901 */ /* end of group MCM_Register_Masks */
Kojto 90:cb3d968589d8 5902
Kojto 90:cb3d968589d8 5903
Kojto 90:cb3d968589d8 5904 /* MCM - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 5905 /** Peripheral MCM base address */
Kojto 90:cb3d968589d8 5906 #define MCM_BASE (0xE0080000u)
Kojto 90:cb3d968589d8 5907 /** Peripheral MCM base pointer */
Kojto 90:cb3d968589d8 5908 #define MCM ((MCM_Type *)MCM_BASE)
Kojto 90:cb3d968589d8 5909 #define MCM_BASE_PTR (MCM)
Kojto 90:cb3d968589d8 5910 /** Array initializer of MCM peripheral base addresses */
Kojto 90:cb3d968589d8 5911 #define MCM_BASE_ADDRS { MCM_BASE }
Kojto 90:cb3d968589d8 5912 /** Array initializer of MCM peripheral base pointers */
Kojto 90:cb3d968589d8 5913 #define MCM_BASE_PTRS { MCM }
Kojto 90:cb3d968589d8 5914
Kojto 90:cb3d968589d8 5915 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5916 -- MCM - Register accessor macros
Kojto 90:cb3d968589d8 5917 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5918
Kojto 90:cb3d968589d8 5919 /*!
Kojto 90:cb3d968589d8 5920 * @addtogroup MCM_Register_Accessor_Macros MCM - Register accessor macros
Kojto 90:cb3d968589d8 5921 * @{
Kojto 90:cb3d968589d8 5922 */
Kojto 90:cb3d968589d8 5923
Kojto 90:cb3d968589d8 5924
Kojto 90:cb3d968589d8 5925 /* MCM - Register instance definitions */
Kojto 90:cb3d968589d8 5926 /* MCM */
Kojto 90:cb3d968589d8 5927 #define MCM_PLASC MCM_PLASC_REG(MCM)
Kojto 90:cb3d968589d8 5928 #define MCM_PLAMC MCM_PLAMC_REG(MCM)
Kojto 90:cb3d968589d8 5929 #define MCM_PLACR MCM_PLACR_REG(MCM)
Kojto 90:cb3d968589d8 5930 #define MCM_ISCR MCM_ISCR_REG(MCM)
Kojto 90:cb3d968589d8 5931 #define MCM_CPO MCM_CPO_REG(MCM)
Kojto 90:cb3d968589d8 5932
Kojto 90:cb3d968589d8 5933 /*!
Kojto 90:cb3d968589d8 5934 * @}
Kojto 90:cb3d968589d8 5935 */ /* end of group MCM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5936
Kojto 90:cb3d968589d8 5937
Kojto 90:cb3d968589d8 5938 /*!
Kojto 90:cb3d968589d8 5939 * @}
Kojto 90:cb3d968589d8 5940 */ /* end of group MCM_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 5941
Kojto 90:cb3d968589d8 5942
Kojto 90:cb3d968589d8 5943 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5944 -- NV Peripheral Access Layer
Kojto 90:cb3d968589d8 5945 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5946
Kojto 90:cb3d968589d8 5947 /*!
Kojto 90:cb3d968589d8 5948 * @addtogroup NV_Peripheral_Access_Layer NV Peripheral Access Layer
Kojto 90:cb3d968589d8 5949 * @{
Kojto 90:cb3d968589d8 5950 */
Kojto 90:cb3d968589d8 5951
Kojto 90:cb3d968589d8 5952 /** NV - Register Layout Typedef */
Kojto 90:cb3d968589d8 5953 typedef struct {
Kojto 90:cb3d968589d8 5954 __I uint8_t BACKKEY3; /**< Backdoor Comparison Key 3., offset: 0x0 */
Kojto 90:cb3d968589d8 5955 __I uint8_t BACKKEY2; /**< Backdoor Comparison Key 2., offset: 0x1 */
Kojto 90:cb3d968589d8 5956 __I uint8_t BACKKEY1; /**< Backdoor Comparison Key 1., offset: 0x2 */
Kojto 90:cb3d968589d8 5957 __I uint8_t BACKKEY0; /**< Backdoor Comparison Key 0., offset: 0x3 */
Kojto 90:cb3d968589d8 5958 __I uint8_t BACKKEY7; /**< Backdoor Comparison Key 7., offset: 0x4 */
Kojto 90:cb3d968589d8 5959 __I uint8_t BACKKEY6; /**< Backdoor Comparison Key 6., offset: 0x5 */
Kojto 90:cb3d968589d8 5960 __I uint8_t BACKKEY5; /**< Backdoor Comparison Key 5., offset: 0x6 */
Kojto 90:cb3d968589d8 5961 __I uint8_t BACKKEY4; /**< Backdoor Comparison Key 4., offset: 0x7 */
Kojto 90:cb3d968589d8 5962 __I uint8_t FPROT3; /**< Non-volatile P-Flash Protection 1 - Low Register, offset: 0x8 */
Kojto 90:cb3d968589d8 5963 __I uint8_t FPROT2; /**< Non-volatile P-Flash Protection 1 - High Register, offset: 0x9 */
Kojto 90:cb3d968589d8 5964 __I uint8_t FPROT1; /**< Non-volatile P-Flash Protection 0 - Low Register, offset: 0xA */
Kojto 90:cb3d968589d8 5965 __I uint8_t FPROT0; /**< Non-volatile P-Flash Protection 0 - High Register, offset: 0xB */
Kojto 90:cb3d968589d8 5966 __I uint8_t FSEC; /**< Non-volatile Flash Security Register, offset: 0xC */
Kojto 90:cb3d968589d8 5967 __I uint8_t FOPT; /**< Non-volatile Flash Option Register, offset: 0xD */
Kojto 90:cb3d968589d8 5968 } NV_Type, *NV_MemMapPtr;
Kojto 90:cb3d968589d8 5969
Kojto 90:cb3d968589d8 5970 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 5971 -- NV - Register accessor macros
Kojto 90:cb3d968589d8 5972 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 5973
Kojto 90:cb3d968589d8 5974 /*!
Kojto 90:cb3d968589d8 5975 * @addtogroup NV_Register_Accessor_Macros NV - Register accessor macros
Kojto 90:cb3d968589d8 5976 * @{
Kojto 90:cb3d968589d8 5977 */
Kojto 90:cb3d968589d8 5978
Kojto 90:cb3d968589d8 5979
Kojto 90:cb3d968589d8 5980 /* NV - Register accessors */
Kojto 90:cb3d968589d8 5981 #define NV_BACKKEY3_REG(base) ((base)->BACKKEY3)
Kojto 90:cb3d968589d8 5982 #define NV_BACKKEY2_REG(base) ((base)->BACKKEY2)
Kojto 90:cb3d968589d8 5983 #define NV_BACKKEY1_REG(base) ((base)->BACKKEY1)
Kojto 90:cb3d968589d8 5984 #define NV_BACKKEY0_REG(base) ((base)->BACKKEY0)
Kojto 90:cb3d968589d8 5985 #define NV_BACKKEY7_REG(base) ((base)->BACKKEY7)
Kojto 90:cb3d968589d8 5986 #define NV_BACKKEY6_REG(base) ((base)->BACKKEY6)
Kojto 90:cb3d968589d8 5987 #define NV_BACKKEY5_REG(base) ((base)->BACKKEY5)
Kojto 90:cb3d968589d8 5988 #define NV_BACKKEY4_REG(base) ((base)->BACKKEY4)
Kojto 90:cb3d968589d8 5989 #define NV_FPROT3_REG(base) ((base)->FPROT3)
Kojto 90:cb3d968589d8 5990 #define NV_FPROT2_REG(base) ((base)->FPROT2)
Kojto 90:cb3d968589d8 5991 #define NV_FPROT1_REG(base) ((base)->FPROT1)
Kojto 90:cb3d968589d8 5992 #define NV_FPROT0_REG(base) ((base)->FPROT0)
Kojto 90:cb3d968589d8 5993 #define NV_FSEC_REG(base) ((base)->FSEC)
Kojto 90:cb3d968589d8 5994 #define NV_FOPT_REG(base) ((base)->FOPT)
Kojto 90:cb3d968589d8 5995
Kojto 90:cb3d968589d8 5996 /*!
Kojto 90:cb3d968589d8 5997 * @}
Kojto 90:cb3d968589d8 5998 */ /* end of group NV_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 5999
Kojto 90:cb3d968589d8 6000
Kojto 90:cb3d968589d8 6001 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6002 -- NV Register Masks
Kojto 90:cb3d968589d8 6003 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6004
Kojto 90:cb3d968589d8 6005 /*!
Kojto 90:cb3d968589d8 6006 * @addtogroup NV_Register_Masks NV Register Masks
Kojto 90:cb3d968589d8 6007 * @{
Kojto 90:cb3d968589d8 6008 */
Kojto 90:cb3d968589d8 6009
Kojto 90:cb3d968589d8 6010 /* BACKKEY3 Bit Fields */
Kojto 90:cb3d968589d8 6011 #define NV_BACKKEY3_KEY_MASK 0xFFu
Kojto 90:cb3d968589d8 6012 #define NV_BACKKEY3_KEY_SHIFT 0
Kojto 90:cb3d968589d8 6013 #define NV_BACKKEY3_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY3_KEY_SHIFT))&NV_BACKKEY3_KEY_MASK)
Kojto 90:cb3d968589d8 6014 /* BACKKEY2 Bit Fields */
Kojto 90:cb3d968589d8 6015 #define NV_BACKKEY2_KEY_MASK 0xFFu
Kojto 90:cb3d968589d8 6016 #define NV_BACKKEY2_KEY_SHIFT 0
Kojto 90:cb3d968589d8 6017 #define NV_BACKKEY2_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY2_KEY_SHIFT))&NV_BACKKEY2_KEY_MASK)
Kojto 90:cb3d968589d8 6018 /* BACKKEY1 Bit Fields */
Kojto 90:cb3d968589d8 6019 #define NV_BACKKEY1_KEY_MASK 0xFFu
Kojto 90:cb3d968589d8 6020 #define NV_BACKKEY1_KEY_SHIFT 0
Kojto 90:cb3d968589d8 6021 #define NV_BACKKEY1_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY1_KEY_SHIFT))&NV_BACKKEY1_KEY_MASK)
Kojto 90:cb3d968589d8 6022 /* BACKKEY0 Bit Fields */
Kojto 90:cb3d968589d8 6023 #define NV_BACKKEY0_KEY_MASK 0xFFu
Kojto 90:cb3d968589d8 6024 #define NV_BACKKEY0_KEY_SHIFT 0
Kojto 90:cb3d968589d8 6025 #define NV_BACKKEY0_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY0_KEY_SHIFT))&NV_BACKKEY0_KEY_MASK)
Kojto 90:cb3d968589d8 6026 /* BACKKEY7 Bit Fields */
Kojto 90:cb3d968589d8 6027 #define NV_BACKKEY7_KEY_MASK 0xFFu
Kojto 90:cb3d968589d8 6028 #define NV_BACKKEY7_KEY_SHIFT 0
Kojto 90:cb3d968589d8 6029 #define NV_BACKKEY7_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY7_KEY_SHIFT))&NV_BACKKEY7_KEY_MASK)
Kojto 90:cb3d968589d8 6030 /* BACKKEY6 Bit Fields */
Kojto 90:cb3d968589d8 6031 #define NV_BACKKEY6_KEY_MASK 0xFFu
Kojto 90:cb3d968589d8 6032 #define NV_BACKKEY6_KEY_SHIFT 0
Kojto 90:cb3d968589d8 6033 #define NV_BACKKEY6_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY6_KEY_SHIFT))&NV_BACKKEY6_KEY_MASK)
Kojto 90:cb3d968589d8 6034 /* BACKKEY5 Bit Fields */
Kojto 90:cb3d968589d8 6035 #define NV_BACKKEY5_KEY_MASK 0xFFu
Kojto 90:cb3d968589d8 6036 #define NV_BACKKEY5_KEY_SHIFT 0
Kojto 90:cb3d968589d8 6037 #define NV_BACKKEY5_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY5_KEY_SHIFT))&NV_BACKKEY5_KEY_MASK)
Kojto 90:cb3d968589d8 6038 /* BACKKEY4 Bit Fields */
Kojto 90:cb3d968589d8 6039 #define NV_BACKKEY4_KEY_MASK 0xFFu
Kojto 90:cb3d968589d8 6040 #define NV_BACKKEY4_KEY_SHIFT 0
Kojto 90:cb3d968589d8 6041 #define NV_BACKKEY4_KEY(x) (((uint8_t)(((uint8_t)(x))<<NV_BACKKEY4_KEY_SHIFT))&NV_BACKKEY4_KEY_MASK)
Kojto 90:cb3d968589d8 6042 /* FPROT3 Bit Fields */
Kojto 90:cb3d968589d8 6043 #define NV_FPROT3_PROT_MASK 0xFFu
Kojto 90:cb3d968589d8 6044 #define NV_FPROT3_PROT_SHIFT 0
Kojto 90:cb3d968589d8 6045 #define NV_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FPROT3_PROT_SHIFT))&NV_FPROT3_PROT_MASK)
Kojto 90:cb3d968589d8 6046 /* FPROT2 Bit Fields */
Kojto 90:cb3d968589d8 6047 #define NV_FPROT2_PROT_MASK 0xFFu
Kojto 90:cb3d968589d8 6048 #define NV_FPROT2_PROT_SHIFT 0
Kojto 90:cb3d968589d8 6049 #define NV_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FPROT2_PROT_SHIFT))&NV_FPROT2_PROT_MASK)
Kojto 90:cb3d968589d8 6050 /* FPROT1 Bit Fields */
Kojto 90:cb3d968589d8 6051 #define NV_FPROT1_PROT_MASK 0xFFu
Kojto 90:cb3d968589d8 6052 #define NV_FPROT1_PROT_SHIFT 0
Kojto 90:cb3d968589d8 6053 #define NV_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FPROT1_PROT_SHIFT))&NV_FPROT1_PROT_MASK)
Kojto 90:cb3d968589d8 6054 /* FPROT0 Bit Fields */
Kojto 90:cb3d968589d8 6055 #define NV_FPROT0_PROT_MASK 0xFFu
Kojto 90:cb3d968589d8 6056 #define NV_FPROT0_PROT_SHIFT 0
Kojto 90:cb3d968589d8 6057 #define NV_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x))<<NV_FPROT0_PROT_SHIFT))&NV_FPROT0_PROT_MASK)
Kojto 90:cb3d968589d8 6058 /* FSEC Bit Fields */
Kojto 90:cb3d968589d8 6059 #define NV_FSEC_SEC_MASK 0x3u
Kojto 90:cb3d968589d8 6060 #define NV_FSEC_SEC_SHIFT 0
Kojto 90:cb3d968589d8 6061 #define NV_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x))<<NV_FSEC_SEC_SHIFT))&NV_FSEC_SEC_MASK)
Kojto 90:cb3d968589d8 6062 #define NV_FSEC_FSLACC_MASK 0xCu
Kojto 90:cb3d968589d8 6063 #define NV_FSEC_FSLACC_SHIFT 2
Kojto 90:cb3d968589d8 6064 #define NV_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x))<<NV_FSEC_FSLACC_SHIFT))&NV_FSEC_FSLACC_MASK)
Kojto 90:cb3d968589d8 6065 #define NV_FSEC_MEEN_MASK 0x30u
Kojto 90:cb3d968589d8 6066 #define NV_FSEC_MEEN_SHIFT 4
Kojto 90:cb3d968589d8 6067 #define NV_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x))<<NV_FSEC_MEEN_SHIFT))&NV_FSEC_MEEN_MASK)
Kojto 90:cb3d968589d8 6068 #define NV_FSEC_KEYEN_MASK 0xC0u
Kojto 90:cb3d968589d8 6069 #define NV_FSEC_KEYEN_SHIFT 6
Kojto 90:cb3d968589d8 6070 #define NV_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x))<<NV_FSEC_KEYEN_SHIFT))&NV_FSEC_KEYEN_MASK)
Kojto 90:cb3d968589d8 6071 /* FOPT Bit Fields */
Kojto 90:cb3d968589d8 6072 #define NV_FOPT_LPBOOT_MASK 0x1u
Kojto 90:cb3d968589d8 6073 #define NV_FOPT_LPBOOT_SHIFT 0
Kojto 90:cb3d968589d8 6074 #define NV_FOPT_EZPORT_DIS_MASK 0x2u
Kojto 90:cb3d968589d8 6075 #define NV_FOPT_EZPORT_DIS_SHIFT 1
Kojto 90:cb3d968589d8 6076 #define NV_FOPT_NMI_DIS_MASK 0x4u
Kojto 90:cb3d968589d8 6077 #define NV_FOPT_NMI_DIS_SHIFT 2
Kojto 90:cb3d968589d8 6078 #define NV_FOPT_FAST_INIT_MASK 0x20u
Kojto 90:cb3d968589d8 6079 #define NV_FOPT_FAST_INIT_SHIFT 5
Kojto 90:cb3d968589d8 6080
Kojto 90:cb3d968589d8 6081 /*!
Kojto 90:cb3d968589d8 6082 * @}
Kojto 90:cb3d968589d8 6083 */ /* end of group NV_Register_Masks */
Kojto 90:cb3d968589d8 6084
Kojto 90:cb3d968589d8 6085
Kojto 90:cb3d968589d8 6086 /* NV - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 6087 /** Peripheral FTFA_FlashConfig base address */
Kojto 90:cb3d968589d8 6088 #define FTFA_FlashConfig_BASE (0x400u)
Kojto 90:cb3d968589d8 6089 /** Peripheral FTFA_FlashConfig base pointer */
Kojto 90:cb3d968589d8 6090 #define FTFA_FlashConfig ((NV_Type *)FTFA_FlashConfig_BASE)
Kojto 90:cb3d968589d8 6091 #define FTFA_FlashConfig_BASE_PTR (FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6092 /** Array initializer of NV peripheral base addresses */
Kojto 90:cb3d968589d8 6093 #define NV_BASE_ADDRS { FTFA_FlashConfig_BASE }
Kojto 90:cb3d968589d8 6094 /** Array initializer of NV peripheral base pointers */
Kojto 90:cb3d968589d8 6095 #define NV_BASE_PTRS { FTFA_FlashConfig }
Kojto 90:cb3d968589d8 6096
Kojto 90:cb3d968589d8 6097 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6098 -- NV - Register accessor macros
Kojto 90:cb3d968589d8 6099 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6100
Kojto 90:cb3d968589d8 6101 /*!
Kojto 90:cb3d968589d8 6102 * @addtogroup NV_Register_Accessor_Macros NV - Register accessor macros
Kojto 90:cb3d968589d8 6103 * @{
Kojto 90:cb3d968589d8 6104 */
Kojto 90:cb3d968589d8 6105
Kojto 90:cb3d968589d8 6106
Kojto 90:cb3d968589d8 6107 /* NV - Register instance definitions */
Kojto 90:cb3d968589d8 6108 /* FTFA_FlashConfig */
Kojto 90:cb3d968589d8 6109 #define NV_BACKKEY3 NV_BACKKEY3_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6110 #define NV_BACKKEY2 NV_BACKKEY2_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6111 #define NV_BACKKEY1 NV_BACKKEY1_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6112 #define NV_BACKKEY0 NV_BACKKEY0_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6113 #define NV_BACKKEY7 NV_BACKKEY7_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6114 #define NV_BACKKEY6 NV_BACKKEY6_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6115 #define NV_BACKKEY5 NV_BACKKEY5_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6116 #define NV_BACKKEY4 NV_BACKKEY4_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6117 #define NV_FPROT3 NV_FPROT3_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6118 #define NV_FPROT2 NV_FPROT2_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6119 #define NV_FPROT1 NV_FPROT1_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6120 #define NV_FPROT0 NV_FPROT0_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6121 #define NV_FSEC NV_FSEC_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6122 #define NV_FOPT NV_FOPT_REG(FTFA_FlashConfig)
Kojto 90:cb3d968589d8 6123
Kojto 90:cb3d968589d8 6124 /*!
Kojto 90:cb3d968589d8 6125 * @}
Kojto 90:cb3d968589d8 6126 */ /* end of group NV_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6127
Kojto 90:cb3d968589d8 6128
Kojto 90:cb3d968589d8 6129 /*!
Kojto 90:cb3d968589d8 6130 * @}
Kojto 90:cb3d968589d8 6131 */ /* end of group NV_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 6132
Kojto 90:cb3d968589d8 6133
Kojto 90:cb3d968589d8 6134 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6135 -- OSC Peripheral Access Layer
Kojto 90:cb3d968589d8 6136 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6137
Kojto 90:cb3d968589d8 6138 /*!
Kojto 90:cb3d968589d8 6139 * @addtogroup OSC_Peripheral_Access_Layer OSC Peripheral Access Layer
Kojto 90:cb3d968589d8 6140 * @{
Kojto 90:cb3d968589d8 6141 */
Kojto 90:cb3d968589d8 6142
Kojto 90:cb3d968589d8 6143 /** OSC - Register Layout Typedef */
Kojto 90:cb3d968589d8 6144 typedef struct {
Kojto 90:cb3d968589d8 6145 __IO uint8_t CR; /**< OSC Control Register, offset: 0x0 */
Kojto 90:cb3d968589d8 6146 uint8_t RESERVED_0[1];
Kojto 90:cb3d968589d8 6147 __IO uint8_t DIV; /**< OSC_DIV, offset: 0x2 */
Kojto 90:cb3d968589d8 6148 } OSC_Type, *OSC_MemMapPtr;
Kojto 90:cb3d968589d8 6149
Kojto 90:cb3d968589d8 6150 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6151 -- OSC - Register accessor macros
Kojto 90:cb3d968589d8 6152 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6153
Kojto 90:cb3d968589d8 6154 /*!
Kojto 90:cb3d968589d8 6155 * @addtogroup OSC_Register_Accessor_Macros OSC - Register accessor macros
Kojto 90:cb3d968589d8 6156 * @{
Kojto 90:cb3d968589d8 6157 */
Kojto 90:cb3d968589d8 6158
Kojto 90:cb3d968589d8 6159
Kojto 90:cb3d968589d8 6160 /* OSC - Register accessors */
Kojto 90:cb3d968589d8 6161 #define OSC_CR_REG(base) ((base)->CR)
Kojto 90:cb3d968589d8 6162 #define OSC_DIV_REG(base) ((base)->DIV)
Kojto 90:cb3d968589d8 6163
Kojto 90:cb3d968589d8 6164 /*!
Kojto 90:cb3d968589d8 6165 * @}
Kojto 90:cb3d968589d8 6166 */ /* end of group OSC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6167
Kojto 90:cb3d968589d8 6168
Kojto 90:cb3d968589d8 6169 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6170 -- OSC Register Masks
Kojto 90:cb3d968589d8 6171 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6172
Kojto 90:cb3d968589d8 6173 /*!
Kojto 90:cb3d968589d8 6174 * @addtogroup OSC_Register_Masks OSC Register Masks
Kojto 90:cb3d968589d8 6175 * @{
Kojto 90:cb3d968589d8 6176 */
Kojto 90:cb3d968589d8 6177
Kojto 90:cb3d968589d8 6178 /* CR Bit Fields */
Kojto 90:cb3d968589d8 6179 #define OSC_CR_SC16P_MASK 0x1u
Kojto 90:cb3d968589d8 6180 #define OSC_CR_SC16P_SHIFT 0
Kojto 90:cb3d968589d8 6181 #define OSC_CR_SC8P_MASK 0x2u
Kojto 90:cb3d968589d8 6182 #define OSC_CR_SC8P_SHIFT 1
Kojto 90:cb3d968589d8 6183 #define OSC_CR_SC4P_MASK 0x4u
Kojto 90:cb3d968589d8 6184 #define OSC_CR_SC4P_SHIFT 2
Kojto 90:cb3d968589d8 6185 #define OSC_CR_SC2P_MASK 0x8u
Kojto 90:cb3d968589d8 6186 #define OSC_CR_SC2P_SHIFT 3
Kojto 90:cb3d968589d8 6187 #define OSC_CR_EREFSTEN_MASK 0x20u
Kojto 90:cb3d968589d8 6188 #define OSC_CR_EREFSTEN_SHIFT 5
Kojto 90:cb3d968589d8 6189 #define OSC_CR_ERCLKEN_MASK 0x80u
Kojto 90:cb3d968589d8 6190 #define OSC_CR_ERCLKEN_SHIFT 7
Kojto 90:cb3d968589d8 6191 /* DIV Bit Fields */
Kojto 90:cb3d968589d8 6192 #define OSC_DIV_ERPS_MASK 0xC0u
Kojto 90:cb3d968589d8 6193 #define OSC_DIV_ERPS_SHIFT 6
Kojto 90:cb3d968589d8 6194 #define OSC_DIV_ERPS(x) (((uint8_t)(((uint8_t)(x))<<OSC_DIV_ERPS_SHIFT))&OSC_DIV_ERPS_MASK)
Kojto 90:cb3d968589d8 6195
Kojto 90:cb3d968589d8 6196 /*!
Kojto 90:cb3d968589d8 6197 * @}
Kojto 90:cb3d968589d8 6198 */ /* end of group OSC_Register_Masks */
Kojto 90:cb3d968589d8 6199
Kojto 90:cb3d968589d8 6200
Kojto 90:cb3d968589d8 6201 /* OSC - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 6202 /** Peripheral OSC base address */
Kojto 90:cb3d968589d8 6203 #define OSC_BASE (0x40065000u)
Kojto 90:cb3d968589d8 6204 /** Peripheral OSC base pointer */
Kojto 90:cb3d968589d8 6205 #define OSC ((OSC_Type *)OSC_BASE)
Kojto 90:cb3d968589d8 6206 #define OSC_BASE_PTR (OSC)
Kojto 90:cb3d968589d8 6207 /** Array initializer of OSC peripheral base addresses */
Kojto 90:cb3d968589d8 6208 #define OSC_BASE_ADDRS { OSC_BASE }
Kojto 90:cb3d968589d8 6209 /** Array initializer of OSC peripheral base pointers */
Kojto 90:cb3d968589d8 6210 #define OSC_BASE_PTRS { OSC }
Kojto 90:cb3d968589d8 6211
Kojto 90:cb3d968589d8 6212 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6213 -- OSC - Register accessor macros
Kojto 90:cb3d968589d8 6214 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6215
Kojto 90:cb3d968589d8 6216 /*!
Kojto 90:cb3d968589d8 6217 * @addtogroup OSC_Register_Accessor_Macros OSC - Register accessor macros
Kojto 90:cb3d968589d8 6218 * @{
Kojto 90:cb3d968589d8 6219 */
Kojto 90:cb3d968589d8 6220
Kojto 90:cb3d968589d8 6221
Kojto 90:cb3d968589d8 6222 /* OSC - Register instance definitions */
Kojto 90:cb3d968589d8 6223 /* OSC */
Kojto 90:cb3d968589d8 6224 #define OSC_CR OSC_CR_REG(OSC)
Kojto 90:cb3d968589d8 6225 #define OSC_DIV OSC_DIV_REG(OSC)
Kojto 90:cb3d968589d8 6226
Kojto 90:cb3d968589d8 6227 /*!
Kojto 90:cb3d968589d8 6228 * @}
Kojto 90:cb3d968589d8 6229 */ /* end of group OSC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6230
Kojto 90:cb3d968589d8 6231
Kojto 90:cb3d968589d8 6232 /*!
Kojto 90:cb3d968589d8 6233 * @}
Kojto 90:cb3d968589d8 6234 */ /* end of group OSC_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 6235
Kojto 90:cb3d968589d8 6236
Kojto 90:cb3d968589d8 6237 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6238 -- PDB Peripheral Access Layer
Kojto 90:cb3d968589d8 6239 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6240
Kojto 90:cb3d968589d8 6241 /*!
Kojto 90:cb3d968589d8 6242 * @addtogroup PDB_Peripheral_Access_Layer PDB Peripheral Access Layer
Kojto 90:cb3d968589d8 6243 * @{
Kojto 90:cb3d968589d8 6244 */
Kojto 90:cb3d968589d8 6245
Kojto 90:cb3d968589d8 6246 /** PDB - Register Layout Typedef */
Kojto 90:cb3d968589d8 6247 typedef struct {
Kojto 90:cb3d968589d8 6248 __IO uint32_t SC; /**< Status and Control register, offset: 0x0 */
Kojto 90:cb3d968589d8 6249 __IO uint32_t MOD; /**< Modulus register, offset: 0x4 */
Kojto 90:cb3d968589d8 6250 __I uint32_t CNT; /**< Counter register, offset: 0x8 */
Kojto 90:cb3d968589d8 6251 __IO uint32_t IDLY; /**< Interrupt Delay register, offset: 0xC */
Kojto 90:cb3d968589d8 6252 struct { /* offset: 0x10, array step: 0x28 */
Kojto 90:cb3d968589d8 6253 __IO uint32_t C1; /**< Channel n Control register 1, array offset: 0x10, array step: 0x28 */
Kojto 90:cb3d968589d8 6254 __IO uint32_t S; /**< Channel n Status register, array offset: 0x14, array step: 0x28 */
Kojto 90:cb3d968589d8 6255 __IO uint32_t DLY[2]; /**< Channel n Delay 0 register..Channel n Delay 1 register, array offset: 0x18, array step: index*0x28, index2*0x4 */
Kojto 90:cb3d968589d8 6256 uint8_t RESERVED_0[24];
Kojto 90:cb3d968589d8 6257 } CH[2];
Kojto 90:cb3d968589d8 6258 uint8_t RESERVED_0[240];
Kojto 90:cb3d968589d8 6259 struct { /* offset: 0x150, array step: 0x8 */
Kojto 90:cb3d968589d8 6260 __IO uint32_t INTC; /**< DAC Interval Trigger n Control register, array offset: 0x150, array step: 0x8 */
Kojto 90:cb3d968589d8 6261 __IO uint32_t INT; /**< DAC Interval n register, array offset: 0x154, array step: 0x8 */
Kojto 90:cb3d968589d8 6262 } DAC[2];
Kojto 90:cb3d968589d8 6263 uint8_t RESERVED_1[48];
Kojto 90:cb3d968589d8 6264 __IO uint32_t POEN; /**< Pulse-Out n Enable register, offset: 0x190 */
Kojto 90:cb3d968589d8 6265 __IO uint32_t PODLY[2]; /**< Pulse-Out n Delay register, array offset: 0x194, array step: 0x4 */
Kojto 90:cb3d968589d8 6266 } PDB_Type, *PDB_MemMapPtr;
Kojto 90:cb3d968589d8 6267
Kojto 90:cb3d968589d8 6268 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6269 -- PDB - Register accessor macros
Kojto 90:cb3d968589d8 6270 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6271
Kojto 90:cb3d968589d8 6272 /*!
Kojto 90:cb3d968589d8 6273 * @addtogroup PDB_Register_Accessor_Macros PDB - Register accessor macros
Kojto 90:cb3d968589d8 6274 * @{
Kojto 90:cb3d968589d8 6275 */
Kojto 90:cb3d968589d8 6276
Kojto 90:cb3d968589d8 6277
Kojto 90:cb3d968589d8 6278 /* PDB - Register accessors */
Kojto 90:cb3d968589d8 6279 #define PDB_SC_REG(base) ((base)->SC)
Kojto 90:cb3d968589d8 6280 #define PDB_MOD_REG(base) ((base)->MOD)
Kojto 90:cb3d968589d8 6281 #define PDB_CNT_REG(base) ((base)->CNT)
Kojto 90:cb3d968589d8 6282 #define PDB_IDLY_REG(base) ((base)->IDLY)
Kojto 90:cb3d968589d8 6283 #define PDB_C1_REG(base,index) ((base)->CH[index].C1)
Kojto 90:cb3d968589d8 6284 #define PDB_S_REG(base,index) ((base)->CH[index].S)
Kojto 90:cb3d968589d8 6285 #define PDB_DLY_REG(base,index,index2) ((base)->CH[index].DLY[index2])
Kojto 90:cb3d968589d8 6286 #define PDB_INTC_REG(base,index) ((base)->DAC[index].INTC)
Kojto 90:cb3d968589d8 6287 #define PDB_INT_REG(base,index) ((base)->DAC[index].INT)
Kojto 90:cb3d968589d8 6288 #define PDB_POEN_REG(base) ((base)->POEN)
Kojto 90:cb3d968589d8 6289 #define PDB_PODLY_REG(base,index) ((base)->PODLY[index])
Kojto 90:cb3d968589d8 6290
Kojto 90:cb3d968589d8 6291 /*!
Kojto 90:cb3d968589d8 6292 * @}
Kojto 90:cb3d968589d8 6293 */ /* end of group PDB_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6294
Kojto 90:cb3d968589d8 6295
Kojto 90:cb3d968589d8 6296 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6297 -- PDB Register Masks
Kojto 90:cb3d968589d8 6298 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6299
Kojto 90:cb3d968589d8 6300 /*!
Kojto 90:cb3d968589d8 6301 * @addtogroup PDB_Register_Masks PDB Register Masks
Kojto 90:cb3d968589d8 6302 * @{
Kojto 90:cb3d968589d8 6303 */
Kojto 90:cb3d968589d8 6304
Kojto 90:cb3d968589d8 6305 /* SC Bit Fields */
Kojto 90:cb3d968589d8 6306 #define PDB_SC_LDOK_MASK 0x1u
Kojto 90:cb3d968589d8 6307 #define PDB_SC_LDOK_SHIFT 0
Kojto 90:cb3d968589d8 6308 #define PDB_SC_CONT_MASK 0x2u
Kojto 90:cb3d968589d8 6309 #define PDB_SC_CONT_SHIFT 1
Kojto 90:cb3d968589d8 6310 #define PDB_SC_MULT_MASK 0xCu
Kojto 90:cb3d968589d8 6311 #define PDB_SC_MULT_SHIFT 2
Kojto 90:cb3d968589d8 6312 #define PDB_SC_MULT(x) (((uint32_t)(((uint32_t)(x))<<PDB_SC_MULT_SHIFT))&PDB_SC_MULT_MASK)
Kojto 90:cb3d968589d8 6313 #define PDB_SC_PDBIE_MASK 0x20u
Kojto 90:cb3d968589d8 6314 #define PDB_SC_PDBIE_SHIFT 5
Kojto 90:cb3d968589d8 6315 #define PDB_SC_PDBIF_MASK 0x40u
Kojto 90:cb3d968589d8 6316 #define PDB_SC_PDBIF_SHIFT 6
Kojto 90:cb3d968589d8 6317 #define PDB_SC_PDBEN_MASK 0x80u
Kojto 90:cb3d968589d8 6318 #define PDB_SC_PDBEN_SHIFT 7
Kojto 90:cb3d968589d8 6319 #define PDB_SC_TRGSEL_MASK 0xF00u
Kojto 90:cb3d968589d8 6320 #define PDB_SC_TRGSEL_SHIFT 8
Kojto 90:cb3d968589d8 6321 #define PDB_SC_TRGSEL(x) (((uint32_t)(((uint32_t)(x))<<PDB_SC_TRGSEL_SHIFT))&PDB_SC_TRGSEL_MASK)
Kojto 90:cb3d968589d8 6322 #define PDB_SC_PRESCALER_MASK 0x7000u
Kojto 90:cb3d968589d8 6323 #define PDB_SC_PRESCALER_SHIFT 12
Kojto 90:cb3d968589d8 6324 #define PDB_SC_PRESCALER(x) (((uint32_t)(((uint32_t)(x))<<PDB_SC_PRESCALER_SHIFT))&PDB_SC_PRESCALER_MASK)
Kojto 90:cb3d968589d8 6325 #define PDB_SC_DMAEN_MASK 0x8000u
Kojto 90:cb3d968589d8 6326 #define PDB_SC_DMAEN_SHIFT 15
Kojto 90:cb3d968589d8 6327 #define PDB_SC_SWTRIG_MASK 0x10000u
Kojto 90:cb3d968589d8 6328 #define PDB_SC_SWTRIG_SHIFT 16
Kojto 90:cb3d968589d8 6329 #define PDB_SC_PDBEIE_MASK 0x20000u
Kojto 90:cb3d968589d8 6330 #define PDB_SC_PDBEIE_SHIFT 17
Kojto 90:cb3d968589d8 6331 #define PDB_SC_LDMOD_MASK 0xC0000u
Kojto 90:cb3d968589d8 6332 #define PDB_SC_LDMOD_SHIFT 18
Kojto 90:cb3d968589d8 6333 #define PDB_SC_LDMOD(x) (((uint32_t)(((uint32_t)(x))<<PDB_SC_LDMOD_SHIFT))&PDB_SC_LDMOD_MASK)
Kojto 90:cb3d968589d8 6334 /* MOD Bit Fields */
Kojto 90:cb3d968589d8 6335 #define PDB_MOD_MOD_MASK 0xFFFFu
Kojto 90:cb3d968589d8 6336 #define PDB_MOD_MOD_SHIFT 0
Kojto 90:cb3d968589d8 6337 #define PDB_MOD_MOD(x) (((uint32_t)(((uint32_t)(x))<<PDB_MOD_MOD_SHIFT))&PDB_MOD_MOD_MASK)
Kojto 90:cb3d968589d8 6338 /* CNT Bit Fields */
Kojto 90:cb3d968589d8 6339 #define PDB_CNT_CNT_MASK 0xFFFFu
Kojto 90:cb3d968589d8 6340 #define PDB_CNT_CNT_SHIFT 0
Kojto 90:cb3d968589d8 6341 #define PDB_CNT_CNT(x) (((uint32_t)(((uint32_t)(x))<<PDB_CNT_CNT_SHIFT))&PDB_CNT_CNT_MASK)
Kojto 90:cb3d968589d8 6342 /* IDLY Bit Fields */
Kojto 90:cb3d968589d8 6343 #define PDB_IDLY_IDLY_MASK 0xFFFFu
Kojto 90:cb3d968589d8 6344 #define PDB_IDLY_IDLY_SHIFT 0
Kojto 90:cb3d968589d8 6345 #define PDB_IDLY_IDLY(x) (((uint32_t)(((uint32_t)(x))<<PDB_IDLY_IDLY_SHIFT))&PDB_IDLY_IDLY_MASK)
Kojto 90:cb3d968589d8 6346 /* C1 Bit Fields */
Kojto 90:cb3d968589d8 6347 #define PDB_C1_EN_MASK 0xFFu
Kojto 90:cb3d968589d8 6348 #define PDB_C1_EN_SHIFT 0
Kojto 90:cb3d968589d8 6349 #define PDB_C1_EN(x) (((uint32_t)(((uint32_t)(x))<<PDB_C1_EN_SHIFT))&PDB_C1_EN_MASK)
Kojto 90:cb3d968589d8 6350 #define PDB_C1_TOS_MASK 0xFF00u
Kojto 90:cb3d968589d8 6351 #define PDB_C1_TOS_SHIFT 8
Kojto 90:cb3d968589d8 6352 #define PDB_C1_TOS(x) (((uint32_t)(((uint32_t)(x))<<PDB_C1_TOS_SHIFT))&PDB_C1_TOS_MASK)
Kojto 90:cb3d968589d8 6353 #define PDB_C1_BB_MASK 0xFF0000u
Kojto 90:cb3d968589d8 6354 #define PDB_C1_BB_SHIFT 16
Kojto 90:cb3d968589d8 6355 #define PDB_C1_BB(x) (((uint32_t)(((uint32_t)(x))<<PDB_C1_BB_SHIFT))&PDB_C1_BB_MASK)
Kojto 90:cb3d968589d8 6356 /* S Bit Fields */
Kojto 90:cb3d968589d8 6357 #define PDB_S_ERR_MASK 0xFFu
Kojto 90:cb3d968589d8 6358 #define PDB_S_ERR_SHIFT 0
Kojto 90:cb3d968589d8 6359 #define PDB_S_ERR(x) (((uint32_t)(((uint32_t)(x))<<PDB_S_ERR_SHIFT))&PDB_S_ERR_MASK)
Kojto 90:cb3d968589d8 6360 #define PDB_S_CF_MASK 0xFF0000u
Kojto 90:cb3d968589d8 6361 #define PDB_S_CF_SHIFT 16
Kojto 90:cb3d968589d8 6362 #define PDB_S_CF(x) (((uint32_t)(((uint32_t)(x))<<PDB_S_CF_SHIFT))&PDB_S_CF_MASK)
Kojto 90:cb3d968589d8 6363 /* DLY Bit Fields */
Kojto 90:cb3d968589d8 6364 #define PDB_DLY_DLY_MASK 0xFFFFu
Kojto 90:cb3d968589d8 6365 #define PDB_DLY_DLY_SHIFT 0
Kojto 90:cb3d968589d8 6366 #define PDB_DLY_DLY(x) (((uint32_t)(((uint32_t)(x))<<PDB_DLY_DLY_SHIFT))&PDB_DLY_DLY_MASK)
Kojto 90:cb3d968589d8 6367 /* INTC Bit Fields */
Kojto 90:cb3d968589d8 6368 #define PDB_INTC_TOE_MASK 0x1u
Kojto 90:cb3d968589d8 6369 #define PDB_INTC_TOE_SHIFT 0
Kojto 90:cb3d968589d8 6370 #define PDB_INTC_EXT_MASK 0x2u
Kojto 90:cb3d968589d8 6371 #define PDB_INTC_EXT_SHIFT 1
Kojto 90:cb3d968589d8 6372 /* INT Bit Fields */
Kojto 90:cb3d968589d8 6373 #define PDB_INT_INT_MASK 0xFFFFu
Kojto 90:cb3d968589d8 6374 #define PDB_INT_INT_SHIFT 0
Kojto 90:cb3d968589d8 6375 #define PDB_INT_INT(x) (((uint32_t)(((uint32_t)(x))<<PDB_INT_INT_SHIFT))&PDB_INT_INT_MASK)
Kojto 90:cb3d968589d8 6376 /* POEN Bit Fields */
Kojto 90:cb3d968589d8 6377 #define PDB_POEN_POEN_MASK 0xFFu
Kojto 90:cb3d968589d8 6378 #define PDB_POEN_POEN_SHIFT 0
Kojto 90:cb3d968589d8 6379 #define PDB_POEN_POEN(x) (((uint32_t)(((uint32_t)(x))<<PDB_POEN_POEN_SHIFT))&PDB_POEN_POEN_MASK)
Kojto 90:cb3d968589d8 6380 /* PODLY Bit Fields */
Kojto 90:cb3d968589d8 6381 #define PDB_PODLY_DLY2_MASK 0xFFFFu
Kojto 90:cb3d968589d8 6382 #define PDB_PODLY_DLY2_SHIFT 0
Kojto 90:cb3d968589d8 6383 #define PDB_PODLY_DLY2(x) (((uint32_t)(((uint32_t)(x))<<PDB_PODLY_DLY2_SHIFT))&PDB_PODLY_DLY2_MASK)
Kojto 90:cb3d968589d8 6384 #define PDB_PODLY_DLY1_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 6385 #define PDB_PODLY_DLY1_SHIFT 16
Kojto 90:cb3d968589d8 6386 #define PDB_PODLY_DLY1(x) (((uint32_t)(((uint32_t)(x))<<PDB_PODLY_DLY1_SHIFT))&PDB_PODLY_DLY1_MASK)
Kojto 90:cb3d968589d8 6387
Kojto 90:cb3d968589d8 6388 /*!
Kojto 90:cb3d968589d8 6389 * @}
Kojto 90:cb3d968589d8 6390 */ /* end of group PDB_Register_Masks */
Kojto 90:cb3d968589d8 6391
Kojto 90:cb3d968589d8 6392
Kojto 90:cb3d968589d8 6393 /* PDB - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 6394 /** Peripheral PDB0 base address */
Kojto 90:cb3d968589d8 6395 #define PDB0_BASE (0x40036000u)
Kojto 90:cb3d968589d8 6396 /** Peripheral PDB0 base pointer */
Kojto 90:cb3d968589d8 6397 #define PDB0 ((PDB_Type *)PDB0_BASE)
Kojto 90:cb3d968589d8 6398 #define PDB0_BASE_PTR (PDB0)
Kojto 90:cb3d968589d8 6399 /** Array initializer of PDB peripheral base addresses */
Kojto 90:cb3d968589d8 6400 #define PDB_BASE_ADDRS { PDB0_BASE }
Kojto 90:cb3d968589d8 6401 /** Array initializer of PDB peripheral base pointers */
Kojto 90:cb3d968589d8 6402 #define PDB_BASE_PTRS { PDB0 }
Kojto 90:cb3d968589d8 6403 /** Interrupt vectors for the PDB peripheral type */
Kojto 90:cb3d968589d8 6404 #define PDB_IRQS { PDB0_IRQn }
Kojto 90:cb3d968589d8 6405
Kojto 90:cb3d968589d8 6406 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6407 -- PDB - Register accessor macros
Kojto 90:cb3d968589d8 6408 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6409
Kojto 90:cb3d968589d8 6410 /*!
Kojto 90:cb3d968589d8 6411 * @addtogroup PDB_Register_Accessor_Macros PDB - Register accessor macros
Kojto 90:cb3d968589d8 6412 * @{
Kojto 90:cb3d968589d8 6413 */
Kojto 90:cb3d968589d8 6414
Kojto 90:cb3d968589d8 6415
Kojto 90:cb3d968589d8 6416 /* PDB - Register instance definitions */
Kojto 90:cb3d968589d8 6417 /* PDB0 */
Kojto 90:cb3d968589d8 6418 #define PDB0_SC PDB_SC_REG(PDB0)
Kojto 90:cb3d968589d8 6419 #define PDB0_MOD PDB_MOD_REG(PDB0)
Kojto 90:cb3d968589d8 6420 #define PDB0_CNT PDB_CNT_REG(PDB0)
Kojto 90:cb3d968589d8 6421 #define PDB0_IDLY PDB_IDLY_REG(PDB0)
Kojto 90:cb3d968589d8 6422 #define PDB0_CH0C1 PDB_C1_REG(PDB0,0)
Kojto 90:cb3d968589d8 6423 #define PDB0_CH0S PDB_S_REG(PDB0,0)
Kojto 90:cb3d968589d8 6424 #define PDB0_CH0DLY0 PDB_DLY_REG(PDB0,0,0)
Kojto 90:cb3d968589d8 6425 #define PDB0_CH0DLY1 PDB_DLY_REG(PDB0,0,1)
Kojto 90:cb3d968589d8 6426 #define PDB0_CH1C1 PDB_C1_REG(PDB0,1)
Kojto 90:cb3d968589d8 6427 #define PDB0_CH1S PDB_S_REG(PDB0,1)
Kojto 90:cb3d968589d8 6428 #define PDB0_CH1DLY0 PDB_DLY_REG(PDB0,1,0)
Kojto 90:cb3d968589d8 6429 #define PDB0_CH1DLY1 PDB_DLY_REG(PDB0,1,1)
Kojto 90:cb3d968589d8 6430 #define PDB0_DACINTC0 PDB_INTC_REG(PDB0,0)
Kojto 90:cb3d968589d8 6431 #define PDB0_DACINT0 PDB_INT_REG(PDB0,0)
Kojto 90:cb3d968589d8 6432 #define PDB0_DACINTC1 PDB_INTC_REG(PDB0,1)
Kojto 90:cb3d968589d8 6433 #define PDB0_DACINT1 PDB_INT_REG(PDB0,1)
Kojto 90:cb3d968589d8 6434 #define PDB0_POEN PDB_POEN_REG(PDB0)
Kojto 90:cb3d968589d8 6435 #define PDB0_PO0DLY PDB_PODLY_REG(PDB0,0)
Kojto 90:cb3d968589d8 6436 #define PDB0_PO1DLY PDB_PODLY_REG(PDB0,1)
Kojto 90:cb3d968589d8 6437
Kojto 90:cb3d968589d8 6438 /* PDB - Register array accessors */
Kojto 90:cb3d968589d8 6439 #define PDB0_C1(index) PDB_C1_REG(PDB0,index)
Kojto 90:cb3d968589d8 6440 #define PDB0_S(index) PDB_S_REG(PDB0,index)
Kojto 90:cb3d968589d8 6441 #define PDB0_DLY(index,index2) PDB_DLY_REG(PDB0,index,index2)
Kojto 90:cb3d968589d8 6442 #define PDB0_INTC(index) PDB_INTC_REG(PDB0,index)
Kojto 90:cb3d968589d8 6443 #define PDB0_INT(index) PDB_INT_REG(PDB0,index)
Kojto 90:cb3d968589d8 6444 #define PDB0_PODLY(index) PDB_PODLY_REG(PDB0,index)
Kojto 90:cb3d968589d8 6445
Kojto 90:cb3d968589d8 6446 /*!
Kojto 90:cb3d968589d8 6447 * @}
Kojto 90:cb3d968589d8 6448 */ /* end of group PDB_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6449
Kojto 90:cb3d968589d8 6450
Kojto 90:cb3d968589d8 6451 /*!
Kojto 90:cb3d968589d8 6452 * @}
Kojto 90:cb3d968589d8 6453 */ /* end of group PDB_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 6454
Kojto 90:cb3d968589d8 6455
Kojto 90:cb3d968589d8 6456 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6457 -- PIT Peripheral Access Layer
Kojto 90:cb3d968589d8 6458 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6459
Kojto 90:cb3d968589d8 6460 /*!
Kojto 90:cb3d968589d8 6461 * @addtogroup PIT_Peripheral_Access_Layer PIT Peripheral Access Layer
Kojto 90:cb3d968589d8 6462 * @{
Kojto 90:cb3d968589d8 6463 */
Kojto 90:cb3d968589d8 6464
Kojto 90:cb3d968589d8 6465 /** PIT - Register Layout Typedef */
Kojto 90:cb3d968589d8 6466 typedef struct {
Kojto 90:cb3d968589d8 6467 __IO uint32_t MCR; /**< PIT Module Control Register, offset: 0x0 */
Kojto 90:cb3d968589d8 6468 uint8_t RESERVED_0[252];
Kojto 90:cb3d968589d8 6469 struct { /* offset: 0x100, array step: 0x10 */
Kojto 90:cb3d968589d8 6470 __IO uint32_t LDVAL; /**< Timer Load Value Register, array offset: 0x100, array step: 0x10 */
Kojto 90:cb3d968589d8 6471 __I uint32_t CVAL; /**< Current Timer Value Register, array offset: 0x104, array step: 0x10 */
Kojto 90:cb3d968589d8 6472 __IO uint32_t TCTRL; /**< Timer Control Register, array offset: 0x108, array step: 0x10 */
Kojto 90:cb3d968589d8 6473 __IO uint32_t TFLG; /**< Timer Flag Register, array offset: 0x10C, array step: 0x10 */
Kojto 90:cb3d968589d8 6474 } CHANNEL[4];
Kojto 90:cb3d968589d8 6475 } PIT_Type, *PIT_MemMapPtr;
Kojto 90:cb3d968589d8 6476
Kojto 90:cb3d968589d8 6477 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6478 -- PIT - Register accessor macros
Kojto 90:cb3d968589d8 6479 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6480
Kojto 90:cb3d968589d8 6481 /*!
Kojto 90:cb3d968589d8 6482 * @addtogroup PIT_Register_Accessor_Macros PIT - Register accessor macros
Kojto 90:cb3d968589d8 6483 * @{
Kojto 90:cb3d968589d8 6484 */
Kojto 90:cb3d968589d8 6485
Kojto 90:cb3d968589d8 6486
Kojto 90:cb3d968589d8 6487 /* PIT - Register accessors */
Kojto 90:cb3d968589d8 6488 #define PIT_MCR_REG(base) ((base)->MCR)
Kojto 90:cb3d968589d8 6489 #define PIT_LDVAL_REG(base,index) ((base)->CHANNEL[index].LDVAL)
Kojto 90:cb3d968589d8 6490 #define PIT_CVAL_REG(base,index) ((base)->CHANNEL[index].CVAL)
Kojto 90:cb3d968589d8 6491 #define PIT_TCTRL_REG(base,index) ((base)->CHANNEL[index].TCTRL)
Kojto 90:cb3d968589d8 6492 #define PIT_TFLG_REG(base,index) ((base)->CHANNEL[index].TFLG)
Kojto 90:cb3d968589d8 6493
Kojto 90:cb3d968589d8 6494 /*!
Kojto 90:cb3d968589d8 6495 * @}
Kojto 90:cb3d968589d8 6496 */ /* end of group PIT_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6497
Kojto 90:cb3d968589d8 6498
Kojto 90:cb3d968589d8 6499 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6500 -- PIT Register Masks
Kojto 90:cb3d968589d8 6501 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6502
Kojto 90:cb3d968589d8 6503 /*!
Kojto 90:cb3d968589d8 6504 * @addtogroup PIT_Register_Masks PIT Register Masks
Kojto 90:cb3d968589d8 6505 * @{
Kojto 90:cb3d968589d8 6506 */
Kojto 90:cb3d968589d8 6507
Kojto 90:cb3d968589d8 6508 /* MCR Bit Fields */
Kojto 90:cb3d968589d8 6509 #define PIT_MCR_FRZ_MASK 0x1u
Kojto 90:cb3d968589d8 6510 #define PIT_MCR_FRZ_SHIFT 0
Kojto 90:cb3d968589d8 6511 #define PIT_MCR_MDIS_MASK 0x2u
Kojto 90:cb3d968589d8 6512 #define PIT_MCR_MDIS_SHIFT 1
Kojto 90:cb3d968589d8 6513 /* LDVAL Bit Fields */
Kojto 90:cb3d968589d8 6514 #define PIT_LDVAL_TSV_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 6515 #define PIT_LDVAL_TSV_SHIFT 0
Kojto 90:cb3d968589d8 6516 #define PIT_LDVAL_TSV(x) (((uint32_t)(((uint32_t)(x))<<PIT_LDVAL_TSV_SHIFT))&PIT_LDVAL_TSV_MASK)
Kojto 90:cb3d968589d8 6517 /* CVAL Bit Fields */
Kojto 90:cb3d968589d8 6518 #define PIT_CVAL_TVL_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 6519 #define PIT_CVAL_TVL_SHIFT 0
Kojto 90:cb3d968589d8 6520 #define PIT_CVAL_TVL(x) (((uint32_t)(((uint32_t)(x))<<PIT_CVAL_TVL_SHIFT))&PIT_CVAL_TVL_MASK)
Kojto 90:cb3d968589d8 6521 /* TCTRL Bit Fields */
Kojto 90:cb3d968589d8 6522 #define PIT_TCTRL_TEN_MASK 0x1u
Kojto 90:cb3d968589d8 6523 #define PIT_TCTRL_TEN_SHIFT 0
Kojto 90:cb3d968589d8 6524 #define PIT_TCTRL_TIE_MASK 0x2u
Kojto 90:cb3d968589d8 6525 #define PIT_TCTRL_TIE_SHIFT 1
Kojto 90:cb3d968589d8 6526 #define PIT_TCTRL_CHN_MASK 0x4u
Kojto 90:cb3d968589d8 6527 #define PIT_TCTRL_CHN_SHIFT 2
Kojto 90:cb3d968589d8 6528 /* TFLG Bit Fields */
Kojto 90:cb3d968589d8 6529 #define PIT_TFLG_TIF_MASK 0x1u
Kojto 90:cb3d968589d8 6530 #define PIT_TFLG_TIF_SHIFT 0
Kojto 90:cb3d968589d8 6531
Kojto 90:cb3d968589d8 6532 /*!
Kojto 90:cb3d968589d8 6533 * @}
Kojto 90:cb3d968589d8 6534 */ /* end of group PIT_Register_Masks */
Kojto 90:cb3d968589d8 6535
Kojto 90:cb3d968589d8 6536
Kojto 90:cb3d968589d8 6537 /* PIT - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 6538 /** Peripheral PIT base address */
Kojto 90:cb3d968589d8 6539 #define PIT_BASE (0x40037000u)
Kojto 90:cb3d968589d8 6540 /** Peripheral PIT base pointer */
Kojto 90:cb3d968589d8 6541 #define PIT ((PIT_Type *)PIT_BASE)
Kojto 90:cb3d968589d8 6542 #define PIT_BASE_PTR (PIT)
Kojto 90:cb3d968589d8 6543 /** Array initializer of PIT peripheral base addresses */
Kojto 90:cb3d968589d8 6544 #define PIT_BASE_ADDRS { PIT_BASE }
Kojto 90:cb3d968589d8 6545 /** Array initializer of PIT peripheral base pointers */
Kojto 90:cb3d968589d8 6546 #define PIT_BASE_PTRS { PIT }
Kojto 90:cb3d968589d8 6547 /** Interrupt vectors for the PIT peripheral type */
Kojto 90:cb3d968589d8 6548 #define PIT_IRQS { PIT0_IRQn, PIT1_IRQn, PIT2_IRQn, PIT3_IRQn }
Kojto 90:cb3d968589d8 6549
Kojto 90:cb3d968589d8 6550 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6551 -- PIT - Register accessor macros
Kojto 90:cb3d968589d8 6552 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6553
Kojto 90:cb3d968589d8 6554 /*!
Kojto 90:cb3d968589d8 6555 * @addtogroup PIT_Register_Accessor_Macros PIT - Register accessor macros
Kojto 90:cb3d968589d8 6556 * @{
Kojto 90:cb3d968589d8 6557 */
Kojto 90:cb3d968589d8 6558
Kojto 90:cb3d968589d8 6559
Kojto 90:cb3d968589d8 6560 /* PIT - Register instance definitions */
Kojto 90:cb3d968589d8 6561 /* PIT */
Kojto 90:cb3d968589d8 6562 #define PIT_MCR PIT_MCR_REG(PIT)
Kojto 90:cb3d968589d8 6563 #define PIT_LDVAL0 PIT_LDVAL_REG(PIT,0)
Kojto 90:cb3d968589d8 6564 #define PIT_CVAL0 PIT_CVAL_REG(PIT,0)
Kojto 90:cb3d968589d8 6565 #define PIT_TCTRL0 PIT_TCTRL_REG(PIT,0)
Kojto 90:cb3d968589d8 6566 #define PIT_TFLG0 PIT_TFLG_REG(PIT,0)
Kojto 90:cb3d968589d8 6567 #define PIT_LDVAL1 PIT_LDVAL_REG(PIT,1)
Kojto 90:cb3d968589d8 6568 #define PIT_CVAL1 PIT_CVAL_REG(PIT,1)
Kojto 90:cb3d968589d8 6569 #define PIT_TCTRL1 PIT_TCTRL_REG(PIT,1)
Kojto 90:cb3d968589d8 6570 #define PIT_TFLG1 PIT_TFLG_REG(PIT,1)
Kojto 90:cb3d968589d8 6571 #define PIT_LDVAL2 PIT_LDVAL_REG(PIT,2)
Kojto 90:cb3d968589d8 6572 #define PIT_CVAL2 PIT_CVAL_REG(PIT,2)
Kojto 90:cb3d968589d8 6573 #define PIT_TCTRL2 PIT_TCTRL_REG(PIT,2)
Kojto 90:cb3d968589d8 6574 #define PIT_TFLG2 PIT_TFLG_REG(PIT,2)
Kojto 90:cb3d968589d8 6575 #define PIT_LDVAL3 PIT_LDVAL_REG(PIT,3)
Kojto 90:cb3d968589d8 6576 #define PIT_CVAL3 PIT_CVAL_REG(PIT,3)
Kojto 90:cb3d968589d8 6577 #define PIT_TCTRL3 PIT_TCTRL_REG(PIT,3)
Kojto 90:cb3d968589d8 6578 #define PIT_TFLG3 PIT_TFLG_REG(PIT,3)
Kojto 90:cb3d968589d8 6579
Kojto 90:cb3d968589d8 6580 /* PIT - Register array accessors */
Kojto 90:cb3d968589d8 6581 #define PIT_LDVAL(index) PIT_LDVAL_REG(PIT,index)
Kojto 90:cb3d968589d8 6582 #define PIT_CVAL(index) PIT_CVAL_REG(PIT,index)
Kojto 90:cb3d968589d8 6583 #define PIT_TCTRL(index) PIT_TCTRL_REG(PIT,index)
Kojto 90:cb3d968589d8 6584 #define PIT_TFLG(index) PIT_TFLG_REG(PIT,index)
Kojto 90:cb3d968589d8 6585
Kojto 90:cb3d968589d8 6586 /*!
Kojto 90:cb3d968589d8 6587 * @}
Kojto 90:cb3d968589d8 6588 */ /* end of group PIT_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6589
Kojto 90:cb3d968589d8 6590
Kojto 90:cb3d968589d8 6591 /*!
Kojto 90:cb3d968589d8 6592 * @}
Kojto 90:cb3d968589d8 6593 */ /* end of group PIT_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 6594
Kojto 90:cb3d968589d8 6595
Kojto 90:cb3d968589d8 6596 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6597 -- PMC Peripheral Access Layer
Kojto 90:cb3d968589d8 6598 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6599
Kojto 90:cb3d968589d8 6600 /*!
Kojto 90:cb3d968589d8 6601 * @addtogroup PMC_Peripheral_Access_Layer PMC Peripheral Access Layer
Kojto 90:cb3d968589d8 6602 * @{
Kojto 90:cb3d968589d8 6603 */
Kojto 90:cb3d968589d8 6604
Kojto 90:cb3d968589d8 6605 /** PMC - Register Layout Typedef */
Kojto 90:cb3d968589d8 6606 typedef struct {
Kojto 90:cb3d968589d8 6607 __IO uint8_t LVDSC1; /**< Low Voltage Detect Status And Control 1 register, offset: 0x0 */
Kojto 90:cb3d968589d8 6608 __IO uint8_t LVDSC2; /**< Low Voltage Detect Status And Control 2 register, offset: 0x1 */
Kojto 90:cb3d968589d8 6609 __IO uint8_t REGSC; /**< Regulator Status And Control register, offset: 0x2 */
Kojto 90:cb3d968589d8 6610 } PMC_Type, *PMC_MemMapPtr;
Kojto 90:cb3d968589d8 6611
Kojto 90:cb3d968589d8 6612 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6613 -- PMC - Register accessor macros
Kojto 90:cb3d968589d8 6614 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6615
Kojto 90:cb3d968589d8 6616 /*!
Kojto 90:cb3d968589d8 6617 * @addtogroup PMC_Register_Accessor_Macros PMC - Register accessor macros
Kojto 90:cb3d968589d8 6618 * @{
Kojto 90:cb3d968589d8 6619 */
Kojto 90:cb3d968589d8 6620
Kojto 90:cb3d968589d8 6621
Kojto 90:cb3d968589d8 6622 /* PMC - Register accessors */
Kojto 90:cb3d968589d8 6623 #define PMC_LVDSC1_REG(base) ((base)->LVDSC1)
Kojto 90:cb3d968589d8 6624 #define PMC_LVDSC2_REG(base) ((base)->LVDSC2)
Kojto 90:cb3d968589d8 6625 #define PMC_REGSC_REG(base) ((base)->REGSC)
Kojto 90:cb3d968589d8 6626
Kojto 90:cb3d968589d8 6627 /*!
Kojto 90:cb3d968589d8 6628 * @}
Kojto 90:cb3d968589d8 6629 */ /* end of group PMC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6630
Kojto 90:cb3d968589d8 6631
Kojto 90:cb3d968589d8 6632 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6633 -- PMC Register Masks
Kojto 90:cb3d968589d8 6634 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6635
Kojto 90:cb3d968589d8 6636 /*!
Kojto 90:cb3d968589d8 6637 * @addtogroup PMC_Register_Masks PMC Register Masks
Kojto 90:cb3d968589d8 6638 * @{
Kojto 90:cb3d968589d8 6639 */
Kojto 90:cb3d968589d8 6640
Kojto 90:cb3d968589d8 6641 /* LVDSC1 Bit Fields */
Kojto 90:cb3d968589d8 6642 #define PMC_LVDSC1_LVDV_MASK 0x3u
Kojto 90:cb3d968589d8 6643 #define PMC_LVDSC1_LVDV_SHIFT 0
Kojto 90:cb3d968589d8 6644 #define PMC_LVDSC1_LVDV(x) (((uint8_t)(((uint8_t)(x))<<PMC_LVDSC1_LVDV_SHIFT))&PMC_LVDSC1_LVDV_MASK)
Kojto 90:cb3d968589d8 6645 #define PMC_LVDSC1_LVDRE_MASK 0x10u
Kojto 90:cb3d968589d8 6646 #define PMC_LVDSC1_LVDRE_SHIFT 4
Kojto 90:cb3d968589d8 6647 #define PMC_LVDSC1_LVDIE_MASK 0x20u
Kojto 90:cb3d968589d8 6648 #define PMC_LVDSC1_LVDIE_SHIFT 5
Kojto 90:cb3d968589d8 6649 #define PMC_LVDSC1_LVDACK_MASK 0x40u
Kojto 90:cb3d968589d8 6650 #define PMC_LVDSC1_LVDACK_SHIFT 6
Kojto 90:cb3d968589d8 6651 #define PMC_LVDSC1_LVDF_MASK 0x80u
Kojto 90:cb3d968589d8 6652 #define PMC_LVDSC1_LVDF_SHIFT 7
Kojto 90:cb3d968589d8 6653 /* LVDSC2 Bit Fields */
Kojto 90:cb3d968589d8 6654 #define PMC_LVDSC2_LVWV_MASK 0x3u
Kojto 90:cb3d968589d8 6655 #define PMC_LVDSC2_LVWV_SHIFT 0
Kojto 90:cb3d968589d8 6656 #define PMC_LVDSC2_LVWV(x) (((uint8_t)(((uint8_t)(x))<<PMC_LVDSC2_LVWV_SHIFT))&PMC_LVDSC2_LVWV_MASK)
Kojto 90:cb3d968589d8 6657 #define PMC_LVDSC2_LVWIE_MASK 0x20u
Kojto 90:cb3d968589d8 6658 #define PMC_LVDSC2_LVWIE_SHIFT 5
Kojto 90:cb3d968589d8 6659 #define PMC_LVDSC2_LVWACK_MASK 0x40u
Kojto 90:cb3d968589d8 6660 #define PMC_LVDSC2_LVWACK_SHIFT 6
Kojto 90:cb3d968589d8 6661 #define PMC_LVDSC2_LVWF_MASK 0x80u
Kojto 90:cb3d968589d8 6662 #define PMC_LVDSC2_LVWF_SHIFT 7
Kojto 90:cb3d968589d8 6663 /* REGSC Bit Fields */
Kojto 90:cb3d968589d8 6664 #define PMC_REGSC_BGBE_MASK 0x1u
Kojto 90:cb3d968589d8 6665 #define PMC_REGSC_BGBE_SHIFT 0
Kojto 90:cb3d968589d8 6666 #define PMC_REGSC_REGONS_MASK 0x4u
Kojto 90:cb3d968589d8 6667 #define PMC_REGSC_REGONS_SHIFT 2
Kojto 90:cb3d968589d8 6668 #define PMC_REGSC_ACKISO_MASK 0x8u
Kojto 90:cb3d968589d8 6669 #define PMC_REGSC_ACKISO_SHIFT 3
Kojto 90:cb3d968589d8 6670 #define PMC_REGSC_BGEN_MASK 0x10u
Kojto 90:cb3d968589d8 6671 #define PMC_REGSC_BGEN_SHIFT 4
Kojto 90:cb3d968589d8 6672
Kojto 90:cb3d968589d8 6673 /*!
Kojto 90:cb3d968589d8 6674 * @}
Kojto 90:cb3d968589d8 6675 */ /* end of group PMC_Register_Masks */
Kojto 90:cb3d968589d8 6676
Kojto 90:cb3d968589d8 6677
Kojto 90:cb3d968589d8 6678 /* PMC - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 6679 /** Peripheral PMC base address */
Kojto 90:cb3d968589d8 6680 #define PMC_BASE (0x4007D000u)
Kojto 90:cb3d968589d8 6681 /** Peripheral PMC base pointer */
Kojto 90:cb3d968589d8 6682 #define PMC ((PMC_Type *)PMC_BASE)
Kojto 90:cb3d968589d8 6683 #define PMC_BASE_PTR (PMC)
Kojto 90:cb3d968589d8 6684 /** Array initializer of PMC peripheral base addresses */
Kojto 90:cb3d968589d8 6685 #define PMC_BASE_ADDRS { PMC_BASE }
Kojto 90:cb3d968589d8 6686 /** Array initializer of PMC peripheral base pointers */
Kojto 90:cb3d968589d8 6687 #define PMC_BASE_PTRS { PMC }
Kojto 90:cb3d968589d8 6688 /** Interrupt vectors for the PMC peripheral type */
Kojto 90:cb3d968589d8 6689 #define PMC_IRQS { LVD_LVW_IRQn }
Kojto 90:cb3d968589d8 6690
Kojto 90:cb3d968589d8 6691 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6692 -- PMC - Register accessor macros
Kojto 90:cb3d968589d8 6693 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6694
Kojto 90:cb3d968589d8 6695 /*!
Kojto 90:cb3d968589d8 6696 * @addtogroup PMC_Register_Accessor_Macros PMC - Register accessor macros
Kojto 90:cb3d968589d8 6697 * @{
Kojto 90:cb3d968589d8 6698 */
Kojto 90:cb3d968589d8 6699
Kojto 90:cb3d968589d8 6700
Kojto 90:cb3d968589d8 6701 /* PMC - Register instance definitions */
Kojto 90:cb3d968589d8 6702 /* PMC */
Kojto 90:cb3d968589d8 6703 #define PMC_LVDSC1 PMC_LVDSC1_REG(PMC)
Kojto 90:cb3d968589d8 6704 #define PMC_LVDSC2 PMC_LVDSC2_REG(PMC)
Kojto 90:cb3d968589d8 6705 #define PMC_REGSC PMC_REGSC_REG(PMC)
Kojto 90:cb3d968589d8 6706
Kojto 90:cb3d968589d8 6707 /*!
Kojto 90:cb3d968589d8 6708 * @}
Kojto 90:cb3d968589d8 6709 */ /* end of group PMC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6710
Kojto 90:cb3d968589d8 6711
Kojto 90:cb3d968589d8 6712 /*!
Kojto 90:cb3d968589d8 6713 * @}
Kojto 90:cb3d968589d8 6714 */ /* end of group PMC_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 6715
Kojto 90:cb3d968589d8 6716
Kojto 90:cb3d968589d8 6717 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6718 -- PORT Peripheral Access Layer
Kojto 90:cb3d968589d8 6719 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6720
Kojto 90:cb3d968589d8 6721 /*!
Kojto 90:cb3d968589d8 6722 * @addtogroup PORT_Peripheral_Access_Layer PORT Peripheral Access Layer
Kojto 90:cb3d968589d8 6723 * @{
Kojto 90:cb3d968589d8 6724 */
Kojto 90:cb3d968589d8 6725
Kojto 90:cb3d968589d8 6726 /** PORT - Register Layout Typedef */
Kojto 90:cb3d968589d8 6727 typedef struct {
Kojto 90:cb3d968589d8 6728 __IO uint32_t PCR[32]; /**< Pin Control Register n, array offset: 0x0, array step: 0x4 */
Kojto 90:cb3d968589d8 6729 __O uint32_t GPCLR; /**< Global Pin Control Low Register, offset: 0x80 */
Kojto 90:cb3d968589d8 6730 __O uint32_t GPCHR; /**< Global Pin Control High Register, offset: 0x84 */
Kojto 90:cb3d968589d8 6731 uint8_t RESERVED_0[24];
Kojto 90:cb3d968589d8 6732 __IO uint32_t ISFR; /**< Interrupt Status Flag Register, offset: 0xA0 */
Kojto 90:cb3d968589d8 6733 uint8_t RESERVED_1[28];
Kojto 90:cb3d968589d8 6734 __IO uint32_t DFER; /**< Digital Filter Enable Register, offset: 0xC0 */
Kojto 90:cb3d968589d8 6735 __IO uint32_t DFCR; /**< Digital Filter Clock Register, offset: 0xC4 */
Kojto 90:cb3d968589d8 6736 __IO uint32_t DFWR; /**< Digital Filter Width Register, offset: 0xC8 */
Kojto 90:cb3d968589d8 6737 } PORT_Type, *PORT_MemMapPtr;
Kojto 90:cb3d968589d8 6738
Kojto 90:cb3d968589d8 6739 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6740 -- PORT - Register accessor macros
Kojto 90:cb3d968589d8 6741 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6742
Kojto 90:cb3d968589d8 6743 /*!
Kojto 90:cb3d968589d8 6744 * @addtogroup PORT_Register_Accessor_Macros PORT - Register accessor macros
Kojto 90:cb3d968589d8 6745 * @{
Kojto 90:cb3d968589d8 6746 */
Kojto 90:cb3d968589d8 6747
Kojto 90:cb3d968589d8 6748
Kojto 90:cb3d968589d8 6749 /* PORT - Register accessors */
Kojto 90:cb3d968589d8 6750 #define PORT_PCR_REG(base,index) ((base)->PCR[index])
Kojto 90:cb3d968589d8 6751 #define PORT_GPCLR_REG(base) ((base)->GPCLR)
Kojto 90:cb3d968589d8 6752 #define PORT_GPCHR_REG(base) ((base)->GPCHR)
Kojto 90:cb3d968589d8 6753 #define PORT_ISFR_REG(base) ((base)->ISFR)
Kojto 90:cb3d968589d8 6754 #define PORT_DFER_REG(base) ((base)->DFER)
Kojto 90:cb3d968589d8 6755 #define PORT_DFCR_REG(base) ((base)->DFCR)
Kojto 90:cb3d968589d8 6756 #define PORT_DFWR_REG(base) ((base)->DFWR)
Kojto 90:cb3d968589d8 6757
Kojto 90:cb3d968589d8 6758 /*!
Kojto 90:cb3d968589d8 6759 * @}
Kojto 90:cb3d968589d8 6760 */ /* end of group PORT_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 6761
Kojto 90:cb3d968589d8 6762
Kojto 90:cb3d968589d8 6763 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6764 -- PORT Register Masks
Kojto 90:cb3d968589d8 6765 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6766
Kojto 90:cb3d968589d8 6767 /*!
Kojto 90:cb3d968589d8 6768 * @addtogroup PORT_Register_Masks PORT Register Masks
Kojto 90:cb3d968589d8 6769 * @{
Kojto 90:cb3d968589d8 6770 */
Kojto 90:cb3d968589d8 6771
Kojto 90:cb3d968589d8 6772 /* PCR Bit Fields */
Kojto 90:cb3d968589d8 6773 #define PORT_PCR_PS_MASK 0x1u
Kojto 90:cb3d968589d8 6774 #define PORT_PCR_PS_SHIFT 0
Kojto 90:cb3d968589d8 6775 #define PORT_PCR_PE_MASK 0x2u
Kojto 90:cb3d968589d8 6776 #define PORT_PCR_PE_SHIFT 1
Kojto 90:cb3d968589d8 6777 #define PORT_PCR_SRE_MASK 0x4u
Kojto 90:cb3d968589d8 6778 #define PORT_PCR_SRE_SHIFT 2
Kojto 90:cb3d968589d8 6779 #define PORT_PCR_PFE_MASK 0x10u
Kojto 90:cb3d968589d8 6780 #define PORT_PCR_PFE_SHIFT 4
Kojto 90:cb3d968589d8 6781 #define PORT_PCR_ODE_MASK 0x20u
Kojto 90:cb3d968589d8 6782 #define PORT_PCR_ODE_SHIFT 5
Kojto 90:cb3d968589d8 6783 #define PORT_PCR_DSE_MASK 0x40u
Kojto 90:cb3d968589d8 6784 #define PORT_PCR_DSE_SHIFT 6
Kojto 90:cb3d968589d8 6785 #define PORT_PCR_MUX_MASK 0x700u
Kojto 90:cb3d968589d8 6786 #define PORT_PCR_MUX_SHIFT 8
Kojto 90:cb3d968589d8 6787 #define PORT_PCR_MUX(x) (((uint32_t)(((uint32_t)(x))<<PORT_PCR_MUX_SHIFT))&PORT_PCR_MUX_MASK)
Kojto 90:cb3d968589d8 6788 #define PORT_PCR_LK_MASK 0x8000u
Kojto 90:cb3d968589d8 6789 #define PORT_PCR_LK_SHIFT 15
Kojto 90:cb3d968589d8 6790 #define PORT_PCR_IRQC_MASK 0xF0000u
Kojto 90:cb3d968589d8 6791 #define PORT_PCR_IRQC_SHIFT 16
Kojto 90:cb3d968589d8 6792 #define PORT_PCR_IRQC(x) (((uint32_t)(((uint32_t)(x))<<PORT_PCR_IRQC_SHIFT))&PORT_PCR_IRQC_MASK)
Kojto 90:cb3d968589d8 6793 #define PORT_PCR_ISF_MASK 0x1000000u
Kojto 90:cb3d968589d8 6794 #define PORT_PCR_ISF_SHIFT 24
Kojto 90:cb3d968589d8 6795 /* GPCLR Bit Fields */
Kojto 90:cb3d968589d8 6796 #define PORT_GPCLR_GPWD_MASK 0xFFFFu
Kojto 90:cb3d968589d8 6797 #define PORT_GPCLR_GPWD_SHIFT 0
Kojto 90:cb3d968589d8 6798 #define PORT_GPCLR_GPWD(x) (((uint32_t)(((uint32_t)(x))<<PORT_GPCLR_GPWD_SHIFT))&PORT_GPCLR_GPWD_MASK)
Kojto 90:cb3d968589d8 6799 #define PORT_GPCLR_GPWE_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 6800 #define PORT_GPCLR_GPWE_SHIFT 16
Kojto 90:cb3d968589d8 6801 #define PORT_GPCLR_GPWE(x) (((uint32_t)(((uint32_t)(x))<<PORT_GPCLR_GPWE_SHIFT))&PORT_GPCLR_GPWE_MASK)
Kojto 90:cb3d968589d8 6802 /* GPCHR Bit Fields */
Kojto 90:cb3d968589d8 6803 #define PORT_GPCHR_GPWD_MASK 0xFFFFu
Kojto 90:cb3d968589d8 6804 #define PORT_GPCHR_GPWD_SHIFT 0
Kojto 90:cb3d968589d8 6805 #define PORT_GPCHR_GPWD(x) (((uint32_t)(((uint32_t)(x))<<PORT_GPCHR_GPWD_SHIFT))&PORT_GPCHR_GPWD_MASK)
Kojto 90:cb3d968589d8 6806 #define PORT_GPCHR_GPWE_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 6807 #define PORT_GPCHR_GPWE_SHIFT 16
Kojto 90:cb3d968589d8 6808 #define PORT_GPCHR_GPWE(x) (((uint32_t)(((uint32_t)(x))<<PORT_GPCHR_GPWE_SHIFT))&PORT_GPCHR_GPWE_MASK)
Kojto 90:cb3d968589d8 6809 /* ISFR Bit Fields */
Kojto 90:cb3d968589d8 6810 #define PORT_ISFR_ISF_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 6811 #define PORT_ISFR_ISF_SHIFT 0
Kojto 90:cb3d968589d8 6812 #define PORT_ISFR_ISF(x) (((uint32_t)(((uint32_t)(x))<<PORT_ISFR_ISF_SHIFT))&PORT_ISFR_ISF_MASK)
Kojto 90:cb3d968589d8 6813 /* DFER Bit Fields */
Kojto 90:cb3d968589d8 6814 #define PORT_DFER_DFE_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 6815 #define PORT_DFER_DFE_SHIFT 0
Kojto 90:cb3d968589d8 6816 #define PORT_DFER_DFE(x) (((uint32_t)(((uint32_t)(x))<<PORT_DFER_DFE_SHIFT))&PORT_DFER_DFE_MASK)
Kojto 90:cb3d968589d8 6817 /* DFCR Bit Fields */
Kojto 90:cb3d968589d8 6818 #define PORT_DFCR_CS_MASK 0x1u
Kojto 90:cb3d968589d8 6819 #define PORT_DFCR_CS_SHIFT 0
Kojto 90:cb3d968589d8 6820 /* DFWR Bit Fields */
Kojto 90:cb3d968589d8 6821 #define PORT_DFWR_FILT_MASK 0x1Fu
Kojto 90:cb3d968589d8 6822 #define PORT_DFWR_FILT_SHIFT 0
Kojto 90:cb3d968589d8 6823 #define PORT_DFWR_FILT(x) (((uint32_t)(((uint32_t)(x))<<PORT_DFWR_FILT_SHIFT))&PORT_DFWR_FILT_MASK)
Kojto 90:cb3d968589d8 6824
Kojto 90:cb3d968589d8 6825 /*!
Kojto 90:cb3d968589d8 6826 * @}
Kojto 90:cb3d968589d8 6827 */ /* end of group PORT_Register_Masks */
Kojto 90:cb3d968589d8 6828
Kojto 90:cb3d968589d8 6829
Kojto 90:cb3d968589d8 6830 /* PORT - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 6831 /** Peripheral PORTA base address */
Kojto 90:cb3d968589d8 6832 #define PORTA_BASE (0x40049000u)
Kojto 90:cb3d968589d8 6833 /** Peripheral PORTA base pointer */
Kojto 90:cb3d968589d8 6834 #define PORTA ((PORT_Type *)PORTA_BASE)
Kojto 90:cb3d968589d8 6835 #define PORTA_BASE_PTR (PORTA)
Kojto 90:cb3d968589d8 6836 /** Peripheral PORTB base address */
Kojto 90:cb3d968589d8 6837 #define PORTB_BASE (0x4004A000u)
Kojto 90:cb3d968589d8 6838 /** Peripheral PORTB base pointer */
Kojto 90:cb3d968589d8 6839 #define PORTB ((PORT_Type *)PORTB_BASE)
Kojto 90:cb3d968589d8 6840 #define PORTB_BASE_PTR (PORTB)
Kojto 90:cb3d968589d8 6841 /** Peripheral PORTC base address */
Kojto 90:cb3d968589d8 6842 #define PORTC_BASE (0x4004B000u)
Kojto 90:cb3d968589d8 6843 /** Peripheral PORTC base pointer */
Kojto 90:cb3d968589d8 6844 #define PORTC ((PORT_Type *)PORTC_BASE)
Kojto 90:cb3d968589d8 6845 #define PORTC_BASE_PTR (PORTC)
Kojto 90:cb3d968589d8 6846 /** Peripheral PORTD base address */
Kojto 90:cb3d968589d8 6847 #define PORTD_BASE (0x4004C000u)
Kojto 90:cb3d968589d8 6848 /** Peripheral PORTD base pointer */
Kojto 90:cb3d968589d8 6849 #define PORTD ((PORT_Type *)PORTD_BASE)
Kojto 90:cb3d968589d8 6850 #define PORTD_BASE_PTR (PORTD)
Kojto 90:cb3d968589d8 6851 /** Peripheral PORTE base address */
Kojto 90:cb3d968589d8 6852 #define PORTE_BASE (0x4004D000u)
Kojto 90:cb3d968589d8 6853 /** Peripheral PORTE base pointer */
Kojto 90:cb3d968589d8 6854 #define PORTE ((PORT_Type *)PORTE_BASE)
Kojto 90:cb3d968589d8 6855 #define PORTE_BASE_PTR (PORTE)
Kojto 90:cb3d968589d8 6856 /** Array initializer of PORT peripheral base addresses */
Kojto 90:cb3d968589d8 6857 #define PORT_BASE_ADDRS { PORTA_BASE, PORTB_BASE, PORTC_BASE, PORTD_BASE, PORTE_BASE }
Kojto 90:cb3d968589d8 6858 /** Array initializer of PORT peripheral base pointers */
Kojto 90:cb3d968589d8 6859 #define PORT_BASE_PTRS { PORTA, PORTB, PORTC, PORTD, PORTE }
Kojto 90:cb3d968589d8 6860 /** Interrupt vectors for the PORT peripheral type */
Kojto 90:cb3d968589d8 6861 #define PORT_IRQS { PORTA_IRQn, PORTB_IRQn, PORTC_IRQn, PORTD_IRQn, PORTE_IRQn }
Kojto 90:cb3d968589d8 6862
Kojto 90:cb3d968589d8 6863 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 6864 -- PORT - Register accessor macros
Kojto 90:cb3d968589d8 6865 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 6866
Kojto 90:cb3d968589d8 6867 /*!
Kojto 90:cb3d968589d8 6868 * @addtogroup PORT_Register_Accessor_Macros PORT - Register accessor macros
Kojto 90:cb3d968589d8 6869 * @{
Kojto 90:cb3d968589d8 6870 */
Kojto 90:cb3d968589d8 6871
Kojto 90:cb3d968589d8 6872
Kojto 90:cb3d968589d8 6873 /* PORT - Register instance definitions */
Kojto 90:cb3d968589d8 6874 /* PORTA */
Kojto 90:cb3d968589d8 6875 #define PORTA_PCR0 PORT_PCR_REG(PORTA,0)
Kojto 90:cb3d968589d8 6876 #define PORTA_PCR1 PORT_PCR_REG(PORTA,1)
Kojto 90:cb3d968589d8 6877 #define PORTA_PCR2 PORT_PCR_REG(PORTA,2)
Kojto 90:cb3d968589d8 6878 #define PORTA_PCR3 PORT_PCR_REG(PORTA,3)
Kojto 90:cb3d968589d8 6879 #define PORTA_PCR4 PORT_PCR_REG(PORTA,4)
Kojto 90:cb3d968589d8 6880 #define PORTA_PCR5 PORT_PCR_REG(PORTA,5)
Kojto 90:cb3d968589d8 6881 #define PORTA_PCR6 PORT_PCR_REG(PORTA,6)
Kojto 90:cb3d968589d8 6882 #define PORTA_PCR7 PORT_PCR_REG(PORTA,7)
Kojto 90:cb3d968589d8 6883 #define PORTA_PCR8 PORT_PCR_REG(PORTA,8)
Kojto 90:cb3d968589d8 6884 #define PORTA_PCR9 PORT_PCR_REG(PORTA,9)
Kojto 90:cb3d968589d8 6885 #define PORTA_PCR10 PORT_PCR_REG(PORTA,10)
Kojto 90:cb3d968589d8 6886 #define PORTA_PCR11 PORT_PCR_REG(PORTA,11)
Kojto 90:cb3d968589d8 6887 #define PORTA_PCR12 PORT_PCR_REG(PORTA,12)
Kojto 90:cb3d968589d8 6888 #define PORTA_PCR13 PORT_PCR_REG(PORTA,13)
Kojto 90:cb3d968589d8 6889 #define PORTA_PCR14 PORT_PCR_REG(PORTA,14)
Kojto 90:cb3d968589d8 6890 #define PORTA_PCR15 PORT_PCR_REG(PORTA,15)
Kojto 90:cb3d968589d8 6891 #define PORTA_PCR16 PORT_PCR_REG(PORTA,16)
Kojto 90:cb3d968589d8 6892 #define PORTA_PCR17 PORT_PCR_REG(PORTA,17)
Kojto 90:cb3d968589d8 6893 #define PORTA_PCR18 PORT_PCR_REG(PORTA,18)
Kojto 90:cb3d968589d8 6894 #define PORTA_PCR19 PORT_PCR_REG(PORTA,19)
Kojto 90:cb3d968589d8 6895 #define PORTA_PCR20 PORT_PCR_REG(PORTA,20)
Kojto 90:cb3d968589d8 6896 #define PORTA_PCR21 PORT_PCR_REG(PORTA,21)
Kojto 90:cb3d968589d8 6897 #define PORTA_PCR22 PORT_PCR_REG(PORTA,22)
Kojto 90:cb3d968589d8 6898 #define PORTA_PCR23 PORT_PCR_REG(PORTA,23)
Kojto 90:cb3d968589d8 6899 #define PORTA_PCR24 PORT_PCR_REG(PORTA,24)
Kojto 90:cb3d968589d8 6900 #define PORTA_PCR25 PORT_PCR_REG(PORTA,25)
Kojto 90:cb3d968589d8 6901 #define PORTA_PCR26 PORT_PCR_REG(PORTA,26)
Kojto 90:cb3d968589d8 6902 #define PORTA_PCR27 PORT_PCR_REG(PORTA,27)
Kojto 90:cb3d968589d8 6903 #define PORTA_PCR28 PORT_PCR_REG(PORTA,28)
Kojto 90:cb3d968589d8 6904 #define PORTA_PCR29 PORT_PCR_REG(PORTA,29)
Kojto 90:cb3d968589d8 6905 #define PORTA_PCR30 PORT_PCR_REG(PORTA,30)
Kojto 90:cb3d968589d8 6906 #define PORTA_PCR31 PORT_PCR_REG(PORTA,31)
Kojto 90:cb3d968589d8 6907 #define PORTA_GPCLR PORT_GPCLR_REG(PORTA)
Kojto 90:cb3d968589d8 6908 #define PORTA_GPCHR PORT_GPCHR_REG(PORTA)
Kojto 90:cb3d968589d8 6909 #define PORTA_ISFR PORT_ISFR_REG(PORTA)
Kojto 90:cb3d968589d8 6910 /* PORTB */
Kojto 90:cb3d968589d8 6911 #define PORTB_PCR0 PORT_PCR_REG(PORTB,0)
Kojto 90:cb3d968589d8 6912 #define PORTB_PCR1 PORT_PCR_REG(PORTB,1)
Kojto 90:cb3d968589d8 6913 #define PORTB_PCR2 PORT_PCR_REG(PORTB,2)
Kojto 90:cb3d968589d8 6914 #define PORTB_PCR3 PORT_PCR_REG(PORTB,3)
Kojto 90:cb3d968589d8 6915 #define PORTB_PCR4 PORT_PCR_REG(PORTB,4)
Kojto 90:cb3d968589d8 6916 #define PORTB_PCR5 PORT_PCR_REG(PORTB,5)
Kojto 90:cb3d968589d8 6917 #define PORTB_PCR6 PORT_PCR_REG(PORTB,6)
Kojto 90:cb3d968589d8 6918 #define PORTB_PCR7 PORT_PCR_REG(PORTB,7)
Kojto 90:cb3d968589d8 6919 #define PORTB_PCR8 PORT_PCR_REG(PORTB,8)
Kojto 90:cb3d968589d8 6920 #define PORTB_PCR9 PORT_PCR_REG(PORTB,9)
Kojto 90:cb3d968589d8 6921 #define PORTB_PCR10 PORT_PCR_REG(PORTB,10)
Kojto 90:cb3d968589d8 6922 #define PORTB_PCR11 PORT_PCR_REG(PORTB,11)
Kojto 90:cb3d968589d8 6923 #define PORTB_PCR12 PORT_PCR_REG(PORTB,12)
Kojto 90:cb3d968589d8 6924 #define PORTB_PCR13 PORT_PCR_REG(PORTB,13)
Kojto 90:cb3d968589d8 6925 #define PORTB_PCR14 PORT_PCR_REG(PORTB,14)
Kojto 90:cb3d968589d8 6926 #define PORTB_PCR15 PORT_PCR_REG(PORTB,15)
Kojto 90:cb3d968589d8 6927 #define PORTB_PCR16 PORT_PCR_REG(PORTB,16)
Kojto 90:cb3d968589d8 6928 #define PORTB_PCR17 PORT_PCR_REG(PORTB,17)
Kojto 90:cb3d968589d8 6929 #define PORTB_PCR18 PORT_PCR_REG(PORTB,18)
Kojto 90:cb3d968589d8 6930 #define PORTB_PCR19 PORT_PCR_REG(PORTB,19)
Kojto 90:cb3d968589d8 6931 #define PORTB_PCR20 PORT_PCR_REG(PORTB,20)
Kojto 90:cb3d968589d8 6932 #define PORTB_PCR21 PORT_PCR_REG(PORTB,21)
Kojto 90:cb3d968589d8 6933 #define PORTB_PCR22 PORT_PCR_REG(PORTB,22)
Kojto 90:cb3d968589d8 6934 #define PORTB_PCR23 PORT_PCR_REG(PORTB,23)
Kojto 90:cb3d968589d8 6935 #define PORTB_PCR24 PORT_PCR_REG(PORTB,24)
Kojto 90:cb3d968589d8 6936 #define PORTB_PCR25 PORT_PCR_REG(PORTB,25)
Kojto 90:cb3d968589d8 6937 #define PORTB_PCR26 PORT_PCR_REG(PORTB,26)
Kojto 90:cb3d968589d8 6938 #define PORTB_PCR27 PORT_PCR_REG(PORTB,27)
Kojto 90:cb3d968589d8 6939 #define PORTB_PCR28 PORT_PCR_REG(PORTB,28)
Kojto 90:cb3d968589d8 6940 #define PORTB_PCR29 PORT_PCR_REG(PORTB,29)
Kojto 90:cb3d968589d8 6941 #define PORTB_PCR30 PORT_PCR_REG(PORTB,30)
Kojto 90:cb3d968589d8 6942 #define PORTB_PCR31 PORT_PCR_REG(PORTB,31)
Kojto 90:cb3d968589d8 6943 #define PORTB_GPCLR PORT_GPCLR_REG(PORTB)
Kojto 90:cb3d968589d8 6944 #define PORTB_GPCHR PORT_GPCHR_REG(PORTB)
Kojto 90:cb3d968589d8 6945 #define PORTB_ISFR PORT_ISFR_REG(PORTB)
Kojto 90:cb3d968589d8 6946 /* PORTC */
Kojto 90:cb3d968589d8 6947 #define PORTC_PCR0 PORT_PCR_REG(PORTC,0)
Kojto 90:cb3d968589d8 6948 #define PORTC_PCR1 PORT_PCR_REG(PORTC,1)
Kojto 90:cb3d968589d8 6949 #define PORTC_PCR2 PORT_PCR_REG(PORTC,2)
Kojto 90:cb3d968589d8 6950 #define PORTC_PCR3 PORT_PCR_REG(PORTC,3)
Kojto 90:cb3d968589d8 6951 #define PORTC_PCR4 PORT_PCR_REG(PORTC,4)
Kojto 90:cb3d968589d8 6952 #define PORTC_PCR5 PORT_PCR_REG(PORTC,5)
Kojto 90:cb3d968589d8 6953 #define PORTC_PCR6 PORT_PCR_REG(PORTC,6)
Kojto 90:cb3d968589d8 6954 #define PORTC_PCR7 PORT_PCR_REG(PORTC,7)
Kojto 90:cb3d968589d8 6955 #define PORTC_PCR8 PORT_PCR_REG(PORTC,8)
Kojto 90:cb3d968589d8 6956 #define PORTC_PCR9 PORT_PCR_REG(PORTC,9)
Kojto 90:cb3d968589d8 6957 #define PORTC_PCR10 PORT_PCR_REG(PORTC,10)
Kojto 90:cb3d968589d8 6958 #define PORTC_PCR11 PORT_PCR_REG(PORTC,11)
Kojto 90:cb3d968589d8 6959 #define PORTC_PCR12 PORT_PCR_REG(PORTC,12)
Kojto 90:cb3d968589d8 6960 #define PORTC_PCR13 PORT_PCR_REG(PORTC,13)
Kojto 90:cb3d968589d8 6961 #define PORTC_PCR14 PORT_PCR_REG(PORTC,14)
Kojto 90:cb3d968589d8 6962 #define PORTC_PCR15 PORT_PCR_REG(PORTC,15)
Kojto 90:cb3d968589d8 6963 #define PORTC_PCR16 PORT_PCR_REG(PORTC,16)
Kojto 90:cb3d968589d8 6964 #define PORTC_PCR17 PORT_PCR_REG(PORTC,17)
Kojto 90:cb3d968589d8 6965 #define PORTC_PCR18 PORT_PCR_REG(PORTC,18)
Kojto 90:cb3d968589d8 6966 #define PORTC_PCR19 PORT_PCR_REG(PORTC,19)
Kojto 90:cb3d968589d8 6967 #define PORTC_PCR20 PORT_PCR_REG(PORTC,20)
Kojto 90:cb3d968589d8 6968 #define PORTC_PCR21 PORT_PCR_REG(PORTC,21)
Kojto 90:cb3d968589d8 6969 #define PORTC_PCR22 PORT_PCR_REG(PORTC,22)
Kojto 90:cb3d968589d8 6970 #define PORTC_PCR23 PORT_PCR_REG(PORTC,23)
Kojto 90:cb3d968589d8 6971 #define PORTC_PCR24 PORT_PCR_REG(PORTC,24)
Kojto 90:cb3d968589d8 6972 #define PORTC_PCR25 PORT_PCR_REG(PORTC,25)
Kojto 90:cb3d968589d8 6973 #define PORTC_PCR26 PORT_PCR_REG(PORTC,26)
Kojto 90:cb3d968589d8 6974 #define PORTC_PCR27 PORT_PCR_REG(PORTC,27)
Kojto 90:cb3d968589d8 6975 #define PORTC_PCR28 PORT_PCR_REG(PORTC,28)
Kojto 90:cb3d968589d8 6976 #define PORTC_PCR29 PORT_PCR_REG(PORTC,29)
Kojto 90:cb3d968589d8 6977 #define PORTC_PCR30 PORT_PCR_REG(PORTC,30)
Kojto 90:cb3d968589d8 6978 #define PORTC_PCR31 PORT_PCR_REG(PORTC,31)
Kojto 90:cb3d968589d8 6979 #define PORTC_GPCLR PORT_GPCLR_REG(PORTC)
Kojto 90:cb3d968589d8 6980 #define PORTC_GPCHR PORT_GPCHR_REG(PORTC)
Kojto 90:cb3d968589d8 6981 #define PORTC_ISFR PORT_ISFR_REG(PORTC)
Kojto 90:cb3d968589d8 6982 /* PORTD */
Kojto 90:cb3d968589d8 6983 #define PORTD_PCR0 PORT_PCR_REG(PORTD,0)
Kojto 90:cb3d968589d8 6984 #define PORTD_PCR1 PORT_PCR_REG(PORTD,1)
Kojto 90:cb3d968589d8 6985 #define PORTD_PCR2 PORT_PCR_REG(PORTD,2)
Kojto 90:cb3d968589d8 6986 #define PORTD_PCR3 PORT_PCR_REG(PORTD,3)
Kojto 90:cb3d968589d8 6987 #define PORTD_PCR4 PORT_PCR_REG(PORTD,4)
Kojto 90:cb3d968589d8 6988 #define PORTD_PCR5 PORT_PCR_REG(PORTD,5)
Kojto 90:cb3d968589d8 6989 #define PORTD_PCR6 PORT_PCR_REG(PORTD,6)
Kojto 90:cb3d968589d8 6990 #define PORTD_PCR7 PORT_PCR_REG(PORTD,7)
Kojto 90:cb3d968589d8 6991 #define PORTD_PCR8 PORT_PCR_REG(PORTD,8)
Kojto 90:cb3d968589d8 6992 #define PORTD_PCR9 PORT_PCR_REG(PORTD,9)
Kojto 90:cb3d968589d8 6993 #define PORTD_PCR10 PORT_PCR_REG(PORTD,10)
Kojto 90:cb3d968589d8 6994 #define PORTD_PCR11 PORT_PCR_REG(PORTD,11)
Kojto 90:cb3d968589d8 6995 #define PORTD_PCR12 PORT_PCR_REG(PORTD,12)
Kojto 90:cb3d968589d8 6996 #define PORTD_PCR13 PORT_PCR_REG(PORTD,13)
Kojto 90:cb3d968589d8 6997 #define PORTD_PCR14 PORT_PCR_REG(PORTD,14)
Kojto 90:cb3d968589d8 6998 #define PORTD_PCR15 PORT_PCR_REG(PORTD,15)
Kojto 90:cb3d968589d8 6999 #define PORTD_PCR16 PORT_PCR_REG(PORTD,16)
Kojto 90:cb3d968589d8 7000 #define PORTD_PCR17 PORT_PCR_REG(PORTD,17)
Kojto 90:cb3d968589d8 7001 #define PORTD_PCR18 PORT_PCR_REG(PORTD,18)
Kojto 90:cb3d968589d8 7002 #define PORTD_PCR19 PORT_PCR_REG(PORTD,19)
Kojto 90:cb3d968589d8 7003 #define PORTD_PCR20 PORT_PCR_REG(PORTD,20)
Kojto 90:cb3d968589d8 7004 #define PORTD_PCR21 PORT_PCR_REG(PORTD,21)
Kojto 90:cb3d968589d8 7005 #define PORTD_PCR22 PORT_PCR_REG(PORTD,22)
Kojto 90:cb3d968589d8 7006 #define PORTD_PCR23 PORT_PCR_REG(PORTD,23)
Kojto 90:cb3d968589d8 7007 #define PORTD_PCR24 PORT_PCR_REG(PORTD,24)
Kojto 90:cb3d968589d8 7008 #define PORTD_PCR25 PORT_PCR_REG(PORTD,25)
Kojto 90:cb3d968589d8 7009 #define PORTD_PCR26 PORT_PCR_REG(PORTD,26)
Kojto 90:cb3d968589d8 7010 #define PORTD_PCR27 PORT_PCR_REG(PORTD,27)
Kojto 90:cb3d968589d8 7011 #define PORTD_PCR28 PORT_PCR_REG(PORTD,28)
Kojto 90:cb3d968589d8 7012 #define PORTD_PCR29 PORT_PCR_REG(PORTD,29)
Kojto 90:cb3d968589d8 7013 #define PORTD_PCR30 PORT_PCR_REG(PORTD,30)
Kojto 90:cb3d968589d8 7014 #define PORTD_PCR31 PORT_PCR_REG(PORTD,31)
Kojto 90:cb3d968589d8 7015 #define PORTD_GPCLR PORT_GPCLR_REG(PORTD)
Kojto 90:cb3d968589d8 7016 #define PORTD_GPCHR PORT_GPCHR_REG(PORTD)
Kojto 90:cb3d968589d8 7017 #define PORTD_ISFR PORT_ISFR_REG(PORTD)
Kojto 90:cb3d968589d8 7018 #define PORTD_DFER PORT_DFER_REG(PORTD)
Kojto 90:cb3d968589d8 7019 #define PORTD_DFCR PORT_DFCR_REG(PORTD)
Kojto 90:cb3d968589d8 7020 #define PORTD_DFWR PORT_DFWR_REG(PORTD)
Kojto 90:cb3d968589d8 7021 /* PORTE */
Kojto 90:cb3d968589d8 7022 #define PORTE_PCR0 PORT_PCR_REG(PORTE,0)
Kojto 90:cb3d968589d8 7023 #define PORTE_PCR1 PORT_PCR_REG(PORTE,1)
Kojto 90:cb3d968589d8 7024 #define PORTE_PCR2 PORT_PCR_REG(PORTE,2)
Kojto 90:cb3d968589d8 7025 #define PORTE_PCR3 PORT_PCR_REG(PORTE,3)
Kojto 90:cb3d968589d8 7026 #define PORTE_PCR4 PORT_PCR_REG(PORTE,4)
Kojto 90:cb3d968589d8 7027 #define PORTE_PCR5 PORT_PCR_REG(PORTE,5)
Kojto 90:cb3d968589d8 7028 #define PORTE_PCR6 PORT_PCR_REG(PORTE,6)
Kojto 90:cb3d968589d8 7029 #define PORTE_PCR7 PORT_PCR_REG(PORTE,7)
Kojto 90:cb3d968589d8 7030 #define PORTE_PCR8 PORT_PCR_REG(PORTE,8)
Kojto 90:cb3d968589d8 7031 #define PORTE_PCR9 PORT_PCR_REG(PORTE,9)
Kojto 90:cb3d968589d8 7032 #define PORTE_PCR10 PORT_PCR_REG(PORTE,10)
Kojto 90:cb3d968589d8 7033 #define PORTE_PCR11 PORT_PCR_REG(PORTE,11)
Kojto 90:cb3d968589d8 7034 #define PORTE_PCR12 PORT_PCR_REG(PORTE,12)
Kojto 90:cb3d968589d8 7035 #define PORTE_PCR13 PORT_PCR_REG(PORTE,13)
Kojto 90:cb3d968589d8 7036 #define PORTE_PCR14 PORT_PCR_REG(PORTE,14)
Kojto 90:cb3d968589d8 7037 #define PORTE_PCR15 PORT_PCR_REG(PORTE,15)
Kojto 90:cb3d968589d8 7038 #define PORTE_PCR16 PORT_PCR_REG(PORTE,16)
Kojto 90:cb3d968589d8 7039 #define PORTE_PCR17 PORT_PCR_REG(PORTE,17)
Kojto 90:cb3d968589d8 7040 #define PORTE_PCR18 PORT_PCR_REG(PORTE,18)
Kojto 90:cb3d968589d8 7041 #define PORTE_PCR19 PORT_PCR_REG(PORTE,19)
Kojto 90:cb3d968589d8 7042 #define PORTE_PCR20 PORT_PCR_REG(PORTE,20)
Kojto 90:cb3d968589d8 7043 #define PORTE_PCR21 PORT_PCR_REG(PORTE,21)
Kojto 90:cb3d968589d8 7044 #define PORTE_PCR22 PORT_PCR_REG(PORTE,22)
Kojto 90:cb3d968589d8 7045 #define PORTE_PCR23 PORT_PCR_REG(PORTE,23)
Kojto 90:cb3d968589d8 7046 #define PORTE_PCR24 PORT_PCR_REG(PORTE,24)
Kojto 90:cb3d968589d8 7047 #define PORTE_PCR25 PORT_PCR_REG(PORTE,25)
Kojto 90:cb3d968589d8 7048 #define PORTE_PCR26 PORT_PCR_REG(PORTE,26)
Kojto 90:cb3d968589d8 7049 #define PORTE_PCR27 PORT_PCR_REG(PORTE,27)
Kojto 90:cb3d968589d8 7050 #define PORTE_PCR28 PORT_PCR_REG(PORTE,28)
Kojto 90:cb3d968589d8 7051 #define PORTE_PCR29 PORT_PCR_REG(PORTE,29)
Kojto 90:cb3d968589d8 7052 #define PORTE_PCR30 PORT_PCR_REG(PORTE,30)
Kojto 90:cb3d968589d8 7053 #define PORTE_PCR31 PORT_PCR_REG(PORTE,31)
Kojto 90:cb3d968589d8 7054 #define PORTE_GPCLR PORT_GPCLR_REG(PORTE)
Kojto 90:cb3d968589d8 7055 #define PORTE_GPCHR PORT_GPCHR_REG(PORTE)
Kojto 90:cb3d968589d8 7056 #define PORTE_ISFR PORT_ISFR_REG(PORTE)
Kojto 90:cb3d968589d8 7057
Kojto 90:cb3d968589d8 7058 /* PORT - Register array accessors */
Kojto 90:cb3d968589d8 7059 #define PORTA_PCR(index) PORT_PCR_REG(PORTA,index)
Kojto 90:cb3d968589d8 7060 #define PORTB_PCR(index) PORT_PCR_REG(PORTB,index)
Kojto 90:cb3d968589d8 7061 #define PORTC_PCR(index) PORT_PCR_REG(PORTC,index)
Kojto 90:cb3d968589d8 7062 #define PORTD_PCR(index) PORT_PCR_REG(PORTD,index)
Kojto 90:cb3d968589d8 7063 #define PORTE_PCR(index) PORT_PCR_REG(PORTE,index)
Kojto 90:cb3d968589d8 7064
Kojto 90:cb3d968589d8 7065 /*!
Kojto 90:cb3d968589d8 7066 * @}
Kojto 90:cb3d968589d8 7067 */ /* end of group PORT_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7068
Kojto 90:cb3d968589d8 7069
Kojto 90:cb3d968589d8 7070 /*!
Kojto 90:cb3d968589d8 7071 * @}
Kojto 90:cb3d968589d8 7072 */ /* end of group PORT_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 7073
Kojto 90:cb3d968589d8 7074
Kojto 90:cb3d968589d8 7075 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7076 -- RCM Peripheral Access Layer
Kojto 90:cb3d968589d8 7077 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7078
Kojto 90:cb3d968589d8 7079 /*!
Kojto 90:cb3d968589d8 7080 * @addtogroup RCM_Peripheral_Access_Layer RCM Peripheral Access Layer
Kojto 90:cb3d968589d8 7081 * @{
Kojto 90:cb3d968589d8 7082 */
Kojto 90:cb3d968589d8 7083
Kojto 90:cb3d968589d8 7084 /** RCM - Register Layout Typedef */
Kojto 90:cb3d968589d8 7085 typedef struct {
Kojto 90:cb3d968589d8 7086 __I uint8_t SRS0; /**< System Reset Status Register 0, offset: 0x0 */
Kojto 90:cb3d968589d8 7087 __I uint8_t SRS1; /**< System Reset Status Register 1, offset: 0x1 */
Kojto 90:cb3d968589d8 7088 uint8_t RESERVED_0[2];
Kojto 90:cb3d968589d8 7089 __IO uint8_t RPFC; /**< Reset Pin Filter Control register, offset: 0x4 */
Kojto 90:cb3d968589d8 7090 __IO uint8_t RPFW; /**< Reset Pin Filter Width register, offset: 0x5 */
Kojto 90:cb3d968589d8 7091 uint8_t RESERVED_1[1];
Kojto 90:cb3d968589d8 7092 __I uint8_t MR; /**< Mode Register, offset: 0x7 */
Kojto 90:cb3d968589d8 7093 __IO uint8_t SSRS0; /**< Sticky System Reset Status Register 0, offset: 0x8 */
Kojto 90:cb3d968589d8 7094 __IO uint8_t SSRS1; /**< Sticky System Reset Status Register 1, offset: 0x9 */
Kojto 90:cb3d968589d8 7095 } RCM_Type, *RCM_MemMapPtr;
Kojto 90:cb3d968589d8 7096
Kojto 90:cb3d968589d8 7097 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7098 -- RCM - Register accessor macros
Kojto 90:cb3d968589d8 7099 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7100
Kojto 90:cb3d968589d8 7101 /*!
Kojto 90:cb3d968589d8 7102 * @addtogroup RCM_Register_Accessor_Macros RCM - Register accessor macros
Kojto 90:cb3d968589d8 7103 * @{
Kojto 90:cb3d968589d8 7104 */
Kojto 90:cb3d968589d8 7105
Kojto 90:cb3d968589d8 7106
Kojto 90:cb3d968589d8 7107 /* RCM - Register accessors */
Kojto 90:cb3d968589d8 7108 #define RCM_SRS0_REG(base) ((base)->SRS0)
Kojto 90:cb3d968589d8 7109 #define RCM_SRS1_REG(base) ((base)->SRS1)
Kojto 90:cb3d968589d8 7110 #define RCM_RPFC_REG(base) ((base)->RPFC)
Kojto 90:cb3d968589d8 7111 #define RCM_RPFW_REG(base) ((base)->RPFW)
Kojto 90:cb3d968589d8 7112 #define RCM_MR_REG(base) ((base)->MR)
Kojto 90:cb3d968589d8 7113 #define RCM_SSRS0_REG(base) ((base)->SSRS0)
Kojto 90:cb3d968589d8 7114 #define RCM_SSRS1_REG(base) ((base)->SSRS1)
Kojto 90:cb3d968589d8 7115
Kojto 90:cb3d968589d8 7116 /*!
Kojto 90:cb3d968589d8 7117 * @}
Kojto 90:cb3d968589d8 7118 */ /* end of group RCM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7119
Kojto 90:cb3d968589d8 7120
Kojto 90:cb3d968589d8 7121 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7122 -- RCM Register Masks
Kojto 90:cb3d968589d8 7123 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7124
Kojto 90:cb3d968589d8 7125 /*!
Kojto 90:cb3d968589d8 7126 * @addtogroup RCM_Register_Masks RCM Register Masks
Kojto 90:cb3d968589d8 7127 * @{
Kojto 90:cb3d968589d8 7128 */
Kojto 90:cb3d968589d8 7129
Kojto 90:cb3d968589d8 7130 /* SRS0 Bit Fields */
Kojto 90:cb3d968589d8 7131 #define RCM_SRS0_WAKEUP_MASK 0x1u
Kojto 90:cb3d968589d8 7132 #define RCM_SRS0_WAKEUP_SHIFT 0
Kojto 90:cb3d968589d8 7133 #define RCM_SRS0_LVD_MASK 0x2u
Kojto 90:cb3d968589d8 7134 #define RCM_SRS0_LVD_SHIFT 1
Kojto 90:cb3d968589d8 7135 #define RCM_SRS0_LOC_MASK 0x4u
Kojto 90:cb3d968589d8 7136 #define RCM_SRS0_LOC_SHIFT 2
Kojto 90:cb3d968589d8 7137 #define RCM_SRS0_LOL_MASK 0x8u
Kojto 90:cb3d968589d8 7138 #define RCM_SRS0_LOL_SHIFT 3
Kojto 90:cb3d968589d8 7139 #define RCM_SRS0_WDOG_MASK 0x20u
Kojto 90:cb3d968589d8 7140 #define RCM_SRS0_WDOG_SHIFT 5
Kojto 90:cb3d968589d8 7141 #define RCM_SRS0_PIN_MASK 0x40u
Kojto 90:cb3d968589d8 7142 #define RCM_SRS0_PIN_SHIFT 6
Kojto 90:cb3d968589d8 7143 #define RCM_SRS0_POR_MASK 0x80u
Kojto 90:cb3d968589d8 7144 #define RCM_SRS0_POR_SHIFT 7
Kojto 90:cb3d968589d8 7145 /* SRS1 Bit Fields */
Kojto 90:cb3d968589d8 7146 #define RCM_SRS1_JTAG_MASK 0x1u
Kojto 90:cb3d968589d8 7147 #define RCM_SRS1_JTAG_SHIFT 0
Kojto 90:cb3d968589d8 7148 #define RCM_SRS1_LOCKUP_MASK 0x2u
Kojto 90:cb3d968589d8 7149 #define RCM_SRS1_LOCKUP_SHIFT 1
Kojto 90:cb3d968589d8 7150 #define RCM_SRS1_SW_MASK 0x4u
Kojto 90:cb3d968589d8 7151 #define RCM_SRS1_SW_SHIFT 2
Kojto 90:cb3d968589d8 7152 #define RCM_SRS1_MDM_AP_MASK 0x8u
Kojto 90:cb3d968589d8 7153 #define RCM_SRS1_MDM_AP_SHIFT 3
Kojto 90:cb3d968589d8 7154 #define RCM_SRS1_EZPT_MASK 0x10u
Kojto 90:cb3d968589d8 7155 #define RCM_SRS1_EZPT_SHIFT 4
Kojto 90:cb3d968589d8 7156 #define RCM_SRS1_SACKERR_MASK 0x20u
Kojto 90:cb3d968589d8 7157 #define RCM_SRS1_SACKERR_SHIFT 5
Kojto 90:cb3d968589d8 7158 /* RPFC Bit Fields */
Kojto 90:cb3d968589d8 7159 #define RCM_RPFC_RSTFLTSRW_MASK 0x3u
Kojto 90:cb3d968589d8 7160 #define RCM_RPFC_RSTFLTSRW_SHIFT 0
Kojto 90:cb3d968589d8 7161 #define RCM_RPFC_RSTFLTSRW(x) (((uint8_t)(((uint8_t)(x))<<RCM_RPFC_RSTFLTSRW_SHIFT))&RCM_RPFC_RSTFLTSRW_MASK)
Kojto 90:cb3d968589d8 7162 #define RCM_RPFC_RSTFLTSS_MASK 0x4u
Kojto 90:cb3d968589d8 7163 #define RCM_RPFC_RSTFLTSS_SHIFT 2
Kojto 90:cb3d968589d8 7164 /* RPFW Bit Fields */
Kojto 90:cb3d968589d8 7165 #define RCM_RPFW_RSTFLTSEL_MASK 0x1Fu
Kojto 90:cb3d968589d8 7166 #define RCM_RPFW_RSTFLTSEL_SHIFT 0
Kojto 90:cb3d968589d8 7167 #define RCM_RPFW_RSTFLTSEL(x) (((uint8_t)(((uint8_t)(x))<<RCM_RPFW_RSTFLTSEL_SHIFT))&RCM_RPFW_RSTFLTSEL_MASK)
Kojto 90:cb3d968589d8 7168 /* MR Bit Fields */
Kojto 90:cb3d968589d8 7169 #define RCM_MR_EZP_MS_MASK 0x2u
Kojto 90:cb3d968589d8 7170 #define RCM_MR_EZP_MS_SHIFT 1
Kojto 90:cb3d968589d8 7171 /* SSRS0 Bit Fields */
Kojto 90:cb3d968589d8 7172 #define RCM_SSRS0_SWAKEUP_MASK 0x1u
Kojto 90:cb3d968589d8 7173 #define RCM_SSRS0_SWAKEUP_SHIFT 0
Kojto 90:cb3d968589d8 7174 #define RCM_SSRS0_SLVD_MASK 0x2u
Kojto 90:cb3d968589d8 7175 #define RCM_SSRS0_SLVD_SHIFT 1
Kojto 90:cb3d968589d8 7176 #define RCM_SSRS0_SLOC_MASK 0x4u
Kojto 90:cb3d968589d8 7177 #define RCM_SSRS0_SLOC_SHIFT 2
Kojto 90:cb3d968589d8 7178 #define RCM_SSRS0_SLOL_MASK 0x8u
Kojto 90:cb3d968589d8 7179 #define RCM_SSRS0_SLOL_SHIFT 3
Kojto 90:cb3d968589d8 7180 #define RCM_SSRS0_SWDOG_MASK 0x20u
Kojto 90:cb3d968589d8 7181 #define RCM_SSRS0_SWDOG_SHIFT 5
Kojto 90:cb3d968589d8 7182 #define RCM_SSRS0_SPIN_MASK 0x40u
Kojto 90:cb3d968589d8 7183 #define RCM_SSRS0_SPIN_SHIFT 6
Kojto 90:cb3d968589d8 7184 #define RCM_SSRS0_SPOR_MASK 0x80u
Kojto 90:cb3d968589d8 7185 #define RCM_SSRS0_SPOR_SHIFT 7
Kojto 90:cb3d968589d8 7186 /* SSRS1 Bit Fields */
Kojto 90:cb3d968589d8 7187 #define RCM_SSRS1_SJTAG_MASK 0x1u
Kojto 90:cb3d968589d8 7188 #define RCM_SSRS1_SJTAG_SHIFT 0
Kojto 90:cb3d968589d8 7189 #define RCM_SSRS1_SLOCKUP_MASK 0x2u
Kojto 90:cb3d968589d8 7190 #define RCM_SSRS1_SLOCKUP_SHIFT 1
Kojto 90:cb3d968589d8 7191 #define RCM_SSRS1_SSW_MASK 0x4u
Kojto 90:cb3d968589d8 7192 #define RCM_SSRS1_SSW_SHIFT 2
Kojto 90:cb3d968589d8 7193 #define RCM_SSRS1_SMDM_AP_MASK 0x8u
Kojto 90:cb3d968589d8 7194 #define RCM_SSRS1_SMDM_AP_SHIFT 3
Kojto 90:cb3d968589d8 7195 #define RCM_SSRS1_SEZPT_MASK 0x10u
Kojto 90:cb3d968589d8 7196 #define RCM_SSRS1_SEZPT_SHIFT 4
Kojto 90:cb3d968589d8 7197 #define RCM_SSRS1_SSACKERR_MASK 0x20u
Kojto 90:cb3d968589d8 7198 #define RCM_SSRS1_SSACKERR_SHIFT 5
Kojto 90:cb3d968589d8 7199
Kojto 90:cb3d968589d8 7200 /*!
Kojto 90:cb3d968589d8 7201 * @}
Kojto 90:cb3d968589d8 7202 */ /* end of group RCM_Register_Masks */
Kojto 90:cb3d968589d8 7203
Kojto 90:cb3d968589d8 7204
Kojto 90:cb3d968589d8 7205 /* RCM - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 7206 /** Peripheral RCM base address */
Kojto 90:cb3d968589d8 7207 #define RCM_BASE (0x4007F000u)
Kojto 90:cb3d968589d8 7208 /** Peripheral RCM base pointer */
Kojto 90:cb3d968589d8 7209 #define RCM ((RCM_Type *)RCM_BASE)
Kojto 90:cb3d968589d8 7210 #define RCM_BASE_PTR (RCM)
Kojto 90:cb3d968589d8 7211 /** Array initializer of RCM peripheral base addresses */
Kojto 90:cb3d968589d8 7212 #define RCM_BASE_ADDRS { RCM_BASE }
Kojto 90:cb3d968589d8 7213 /** Array initializer of RCM peripheral base pointers */
Kojto 90:cb3d968589d8 7214 #define RCM_BASE_PTRS { RCM }
Kojto 90:cb3d968589d8 7215
Kojto 90:cb3d968589d8 7216 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7217 -- RCM - Register accessor macros
Kojto 90:cb3d968589d8 7218 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7219
Kojto 90:cb3d968589d8 7220 /*!
Kojto 90:cb3d968589d8 7221 * @addtogroup RCM_Register_Accessor_Macros RCM - Register accessor macros
Kojto 90:cb3d968589d8 7222 * @{
Kojto 90:cb3d968589d8 7223 */
Kojto 90:cb3d968589d8 7224
Kojto 90:cb3d968589d8 7225
Kojto 90:cb3d968589d8 7226 /* RCM - Register instance definitions */
Kojto 90:cb3d968589d8 7227 /* RCM */
Kojto 90:cb3d968589d8 7228 #define RCM_SRS0 RCM_SRS0_REG(RCM)
Kojto 90:cb3d968589d8 7229 #define RCM_SRS1 RCM_SRS1_REG(RCM)
Kojto 90:cb3d968589d8 7230 #define RCM_RPFC RCM_RPFC_REG(RCM)
Kojto 90:cb3d968589d8 7231 #define RCM_RPFW RCM_RPFW_REG(RCM)
Kojto 90:cb3d968589d8 7232 #define RCM_MR RCM_MR_REG(RCM)
Kojto 90:cb3d968589d8 7233 #define RCM_SSRS0 RCM_SSRS0_REG(RCM)
Kojto 90:cb3d968589d8 7234 #define RCM_SSRS1 RCM_SSRS1_REG(RCM)
Kojto 90:cb3d968589d8 7235
Kojto 90:cb3d968589d8 7236 /*!
Kojto 90:cb3d968589d8 7237 * @}
Kojto 90:cb3d968589d8 7238 */ /* end of group RCM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7239
Kojto 90:cb3d968589d8 7240
Kojto 90:cb3d968589d8 7241 /*!
Kojto 90:cb3d968589d8 7242 * @}
Kojto 90:cb3d968589d8 7243 */ /* end of group RCM_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 7244
Kojto 90:cb3d968589d8 7245
Kojto 90:cb3d968589d8 7246 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7247 -- RFSYS Peripheral Access Layer
Kojto 90:cb3d968589d8 7248 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7249
Kojto 90:cb3d968589d8 7250 /*!
Kojto 90:cb3d968589d8 7251 * @addtogroup RFSYS_Peripheral_Access_Layer RFSYS Peripheral Access Layer
Kojto 90:cb3d968589d8 7252 * @{
Kojto 90:cb3d968589d8 7253 */
Kojto 90:cb3d968589d8 7254
Kojto 90:cb3d968589d8 7255 /** RFSYS - Register Layout Typedef */
Kojto 90:cb3d968589d8 7256 typedef struct {
Kojto 90:cb3d968589d8 7257 __IO uint32_t REG[8]; /**< Register file register, array offset: 0x0, array step: 0x4 */
Kojto 90:cb3d968589d8 7258 } RFSYS_Type, *RFSYS_MemMapPtr;
Kojto 90:cb3d968589d8 7259
Kojto 90:cb3d968589d8 7260 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7261 -- RFSYS - Register accessor macros
Kojto 90:cb3d968589d8 7262 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7263
Kojto 90:cb3d968589d8 7264 /*!
Kojto 90:cb3d968589d8 7265 * @addtogroup RFSYS_Register_Accessor_Macros RFSYS - Register accessor macros
Kojto 90:cb3d968589d8 7266 * @{
Kojto 90:cb3d968589d8 7267 */
Kojto 90:cb3d968589d8 7268
Kojto 90:cb3d968589d8 7269
Kojto 90:cb3d968589d8 7270 /* RFSYS - Register accessors */
Kojto 90:cb3d968589d8 7271 #define RFSYS_REG_REG(base,index) ((base)->REG[index])
Kojto 90:cb3d968589d8 7272
Kojto 90:cb3d968589d8 7273 /*!
Kojto 90:cb3d968589d8 7274 * @}
Kojto 90:cb3d968589d8 7275 */ /* end of group RFSYS_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7276
Kojto 90:cb3d968589d8 7277
Kojto 90:cb3d968589d8 7278 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7279 -- RFSYS Register Masks
Kojto 90:cb3d968589d8 7280 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7281
Kojto 90:cb3d968589d8 7282 /*!
Kojto 90:cb3d968589d8 7283 * @addtogroup RFSYS_Register_Masks RFSYS Register Masks
Kojto 90:cb3d968589d8 7284 * @{
Kojto 90:cb3d968589d8 7285 */
Kojto 90:cb3d968589d8 7286
Kojto 90:cb3d968589d8 7287 /* REG Bit Fields */
Kojto 90:cb3d968589d8 7288 #define RFSYS_REG_LL_MASK 0xFFu
Kojto 90:cb3d968589d8 7289 #define RFSYS_REG_LL_SHIFT 0
Kojto 90:cb3d968589d8 7290 #define RFSYS_REG_LL(x) (((uint32_t)(((uint32_t)(x))<<RFSYS_REG_LL_SHIFT))&RFSYS_REG_LL_MASK)
Kojto 90:cb3d968589d8 7291 #define RFSYS_REG_LH_MASK 0xFF00u
Kojto 90:cb3d968589d8 7292 #define RFSYS_REG_LH_SHIFT 8
Kojto 90:cb3d968589d8 7293 #define RFSYS_REG_LH(x) (((uint32_t)(((uint32_t)(x))<<RFSYS_REG_LH_SHIFT))&RFSYS_REG_LH_MASK)
Kojto 90:cb3d968589d8 7294 #define RFSYS_REG_HL_MASK 0xFF0000u
Kojto 90:cb3d968589d8 7295 #define RFSYS_REG_HL_SHIFT 16
Kojto 90:cb3d968589d8 7296 #define RFSYS_REG_HL(x) (((uint32_t)(((uint32_t)(x))<<RFSYS_REG_HL_SHIFT))&RFSYS_REG_HL_MASK)
Kojto 90:cb3d968589d8 7297 #define RFSYS_REG_HH_MASK 0xFF000000u
Kojto 90:cb3d968589d8 7298 #define RFSYS_REG_HH_SHIFT 24
Kojto 90:cb3d968589d8 7299 #define RFSYS_REG_HH(x) (((uint32_t)(((uint32_t)(x))<<RFSYS_REG_HH_SHIFT))&RFSYS_REG_HH_MASK)
Kojto 90:cb3d968589d8 7300
Kojto 90:cb3d968589d8 7301 /*!
Kojto 90:cb3d968589d8 7302 * @}
Kojto 90:cb3d968589d8 7303 */ /* end of group RFSYS_Register_Masks */
Kojto 90:cb3d968589d8 7304
Kojto 90:cb3d968589d8 7305
Kojto 90:cb3d968589d8 7306 /* RFSYS - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 7307 /** Peripheral RFSYS base address */
Kojto 90:cb3d968589d8 7308 #define RFSYS_BASE (0x40041000u)
Kojto 90:cb3d968589d8 7309 /** Peripheral RFSYS base pointer */
Kojto 90:cb3d968589d8 7310 #define RFSYS ((RFSYS_Type *)RFSYS_BASE)
Kojto 90:cb3d968589d8 7311 #define RFSYS_BASE_PTR (RFSYS)
Kojto 90:cb3d968589d8 7312 /** Array initializer of RFSYS peripheral base addresses */
Kojto 90:cb3d968589d8 7313 #define RFSYS_BASE_ADDRS { RFSYS_BASE }
Kojto 90:cb3d968589d8 7314 /** Array initializer of RFSYS peripheral base pointers */
Kojto 90:cb3d968589d8 7315 #define RFSYS_BASE_PTRS { RFSYS }
Kojto 90:cb3d968589d8 7316
Kojto 90:cb3d968589d8 7317 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7318 -- RFSYS - Register accessor macros
Kojto 90:cb3d968589d8 7319 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7320
Kojto 90:cb3d968589d8 7321 /*!
Kojto 90:cb3d968589d8 7322 * @addtogroup RFSYS_Register_Accessor_Macros RFSYS - Register accessor macros
Kojto 90:cb3d968589d8 7323 * @{
Kojto 90:cb3d968589d8 7324 */
Kojto 90:cb3d968589d8 7325
Kojto 90:cb3d968589d8 7326
Kojto 90:cb3d968589d8 7327 /* RFSYS - Register instance definitions */
Kojto 90:cb3d968589d8 7328 /* RFSYS */
Kojto 90:cb3d968589d8 7329 #define RFSYS_REG0 RFSYS_REG_REG(RFSYS,0)
Kojto 90:cb3d968589d8 7330 #define RFSYS_REG1 RFSYS_REG_REG(RFSYS,1)
Kojto 90:cb3d968589d8 7331 #define RFSYS_REG2 RFSYS_REG_REG(RFSYS,2)
Kojto 90:cb3d968589d8 7332 #define RFSYS_REG3 RFSYS_REG_REG(RFSYS,3)
Kojto 90:cb3d968589d8 7333 #define RFSYS_REG4 RFSYS_REG_REG(RFSYS,4)
Kojto 90:cb3d968589d8 7334 #define RFSYS_REG5 RFSYS_REG_REG(RFSYS,5)
Kojto 90:cb3d968589d8 7335 #define RFSYS_REG6 RFSYS_REG_REG(RFSYS,6)
Kojto 90:cb3d968589d8 7336 #define RFSYS_REG7 RFSYS_REG_REG(RFSYS,7)
Kojto 90:cb3d968589d8 7337
Kojto 90:cb3d968589d8 7338 /* RFSYS - Register array accessors */
Kojto 90:cb3d968589d8 7339 #define RFSYS_REG(index) RFSYS_REG_REG(RFSYS,index)
Kojto 90:cb3d968589d8 7340
Kojto 90:cb3d968589d8 7341 /*!
Kojto 90:cb3d968589d8 7342 * @}
Kojto 90:cb3d968589d8 7343 */ /* end of group RFSYS_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7344
Kojto 90:cb3d968589d8 7345
Kojto 90:cb3d968589d8 7346 /*!
Kojto 90:cb3d968589d8 7347 * @}
Kojto 90:cb3d968589d8 7348 */ /* end of group RFSYS_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 7349
Kojto 90:cb3d968589d8 7350
Kojto 90:cb3d968589d8 7351 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7352 -- RFVBAT Peripheral Access Layer
Kojto 90:cb3d968589d8 7353 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7354
Kojto 90:cb3d968589d8 7355 /*!
Kojto 90:cb3d968589d8 7356 * @addtogroup RFVBAT_Peripheral_Access_Layer RFVBAT Peripheral Access Layer
Kojto 90:cb3d968589d8 7357 * @{
Kojto 90:cb3d968589d8 7358 */
Kojto 90:cb3d968589d8 7359
Kojto 90:cb3d968589d8 7360 /** RFVBAT - Register Layout Typedef */
Kojto 90:cb3d968589d8 7361 typedef struct {
Kojto 90:cb3d968589d8 7362 __IO uint32_t REG[8]; /**< VBAT register file register, array offset: 0x0, array step: 0x4 */
Kojto 90:cb3d968589d8 7363 } RFVBAT_Type, *RFVBAT_MemMapPtr;
Kojto 90:cb3d968589d8 7364
Kojto 90:cb3d968589d8 7365 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7366 -- RFVBAT - Register accessor macros
Kojto 90:cb3d968589d8 7367 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7368
Kojto 90:cb3d968589d8 7369 /*!
Kojto 90:cb3d968589d8 7370 * @addtogroup RFVBAT_Register_Accessor_Macros RFVBAT - Register accessor macros
Kojto 90:cb3d968589d8 7371 * @{
Kojto 90:cb3d968589d8 7372 */
Kojto 90:cb3d968589d8 7373
Kojto 90:cb3d968589d8 7374
Kojto 90:cb3d968589d8 7375 /* RFVBAT - Register accessors */
Kojto 90:cb3d968589d8 7376 #define RFVBAT_REG_REG(base,index) ((base)->REG[index])
Kojto 90:cb3d968589d8 7377
Kojto 90:cb3d968589d8 7378 /*!
Kojto 90:cb3d968589d8 7379 * @}
Kojto 90:cb3d968589d8 7380 */ /* end of group RFVBAT_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7381
Kojto 90:cb3d968589d8 7382
Kojto 90:cb3d968589d8 7383 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7384 -- RFVBAT Register Masks
Kojto 90:cb3d968589d8 7385 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7386
Kojto 90:cb3d968589d8 7387 /*!
Kojto 90:cb3d968589d8 7388 * @addtogroup RFVBAT_Register_Masks RFVBAT Register Masks
Kojto 90:cb3d968589d8 7389 * @{
Kojto 90:cb3d968589d8 7390 */
Kojto 90:cb3d968589d8 7391
Kojto 90:cb3d968589d8 7392 /* REG Bit Fields */
Kojto 90:cb3d968589d8 7393 #define RFVBAT_REG_LL_MASK 0xFFu
Kojto 90:cb3d968589d8 7394 #define RFVBAT_REG_LL_SHIFT 0
Kojto 90:cb3d968589d8 7395 #define RFVBAT_REG_LL(x) (((uint32_t)(((uint32_t)(x))<<RFVBAT_REG_LL_SHIFT))&RFVBAT_REG_LL_MASK)
Kojto 90:cb3d968589d8 7396 #define RFVBAT_REG_LH_MASK 0xFF00u
Kojto 90:cb3d968589d8 7397 #define RFVBAT_REG_LH_SHIFT 8
Kojto 90:cb3d968589d8 7398 #define RFVBAT_REG_LH(x) (((uint32_t)(((uint32_t)(x))<<RFVBAT_REG_LH_SHIFT))&RFVBAT_REG_LH_MASK)
Kojto 90:cb3d968589d8 7399 #define RFVBAT_REG_HL_MASK 0xFF0000u
Kojto 90:cb3d968589d8 7400 #define RFVBAT_REG_HL_SHIFT 16
Kojto 90:cb3d968589d8 7401 #define RFVBAT_REG_HL(x) (((uint32_t)(((uint32_t)(x))<<RFVBAT_REG_HL_SHIFT))&RFVBAT_REG_HL_MASK)
Kojto 90:cb3d968589d8 7402 #define RFVBAT_REG_HH_MASK 0xFF000000u
Kojto 90:cb3d968589d8 7403 #define RFVBAT_REG_HH_SHIFT 24
Kojto 90:cb3d968589d8 7404 #define RFVBAT_REG_HH(x) (((uint32_t)(((uint32_t)(x))<<RFVBAT_REG_HH_SHIFT))&RFVBAT_REG_HH_MASK)
Kojto 90:cb3d968589d8 7405
Kojto 90:cb3d968589d8 7406 /*!
Kojto 90:cb3d968589d8 7407 * @}
Kojto 90:cb3d968589d8 7408 */ /* end of group RFVBAT_Register_Masks */
Kojto 90:cb3d968589d8 7409
Kojto 90:cb3d968589d8 7410
Kojto 90:cb3d968589d8 7411 /* RFVBAT - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 7412 /** Peripheral RFVBAT base address */
Kojto 90:cb3d968589d8 7413 #define RFVBAT_BASE (0x4003E000u)
Kojto 90:cb3d968589d8 7414 /** Peripheral RFVBAT base pointer */
Kojto 90:cb3d968589d8 7415 #define RFVBAT ((RFVBAT_Type *)RFVBAT_BASE)
Kojto 90:cb3d968589d8 7416 #define RFVBAT_BASE_PTR (RFVBAT)
Kojto 90:cb3d968589d8 7417 /** Array initializer of RFVBAT peripheral base addresses */
Kojto 90:cb3d968589d8 7418 #define RFVBAT_BASE_ADDRS { RFVBAT_BASE }
Kojto 90:cb3d968589d8 7419 /** Array initializer of RFVBAT peripheral base pointers */
Kojto 90:cb3d968589d8 7420 #define RFVBAT_BASE_PTRS { RFVBAT }
Kojto 90:cb3d968589d8 7421
Kojto 90:cb3d968589d8 7422 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7423 -- RFVBAT - Register accessor macros
Kojto 90:cb3d968589d8 7424 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7425
Kojto 90:cb3d968589d8 7426 /*!
Kojto 90:cb3d968589d8 7427 * @addtogroup RFVBAT_Register_Accessor_Macros RFVBAT - Register accessor macros
Kojto 90:cb3d968589d8 7428 * @{
Kojto 90:cb3d968589d8 7429 */
Kojto 90:cb3d968589d8 7430
Kojto 90:cb3d968589d8 7431
Kojto 90:cb3d968589d8 7432 /* RFVBAT - Register instance definitions */
Kojto 90:cb3d968589d8 7433 /* RFVBAT */
Kojto 90:cb3d968589d8 7434 #define RFVBAT_REG0 RFVBAT_REG_REG(RFVBAT,0)
Kojto 90:cb3d968589d8 7435 #define RFVBAT_REG1 RFVBAT_REG_REG(RFVBAT,1)
Kojto 90:cb3d968589d8 7436 #define RFVBAT_REG2 RFVBAT_REG_REG(RFVBAT,2)
Kojto 90:cb3d968589d8 7437 #define RFVBAT_REG3 RFVBAT_REG_REG(RFVBAT,3)
Kojto 90:cb3d968589d8 7438 #define RFVBAT_REG4 RFVBAT_REG_REG(RFVBAT,4)
Kojto 90:cb3d968589d8 7439 #define RFVBAT_REG5 RFVBAT_REG_REG(RFVBAT,5)
Kojto 90:cb3d968589d8 7440 #define RFVBAT_REG6 RFVBAT_REG_REG(RFVBAT,6)
Kojto 90:cb3d968589d8 7441 #define RFVBAT_REG7 RFVBAT_REG_REG(RFVBAT,7)
Kojto 90:cb3d968589d8 7442
Kojto 90:cb3d968589d8 7443 /* RFVBAT - Register array accessors */
Kojto 90:cb3d968589d8 7444 #define RFVBAT_REG(index) RFVBAT_REG_REG(RFVBAT,index)
Kojto 90:cb3d968589d8 7445
Kojto 90:cb3d968589d8 7446 /*!
Kojto 90:cb3d968589d8 7447 * @}
Kojto 90:cb3d968589d8 7448 */ /* end of group RFVBAT_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7449
Kojto 90:cb3d968589d8 7450
Kojto 90:cb3d968589d8 7451 /*!
Kojto 90:cb3d968589d8 7452 * @}
Kojto 90:cb3d968589d8 7453 */ /* end of group RFVBAT_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 7454
Kojto 90:cb3d968589d8 7455
Kojto 90:cb3d968589d8 7456 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7457 -- RNG Peripheral Access Layer
Kojto 90:cb3d968589d8 7458 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7459
Kojto 90:cb3d968589d8 7460 /*!
Kojto 90:cb3d968589d8 7461 * @addtogroup RNG_Peripheral_Access_Layer RNG Peripheral Access Layer
Kojto 90:cb3d968589d8 7462 * @{
Kojto 90:cb3d968589d8 7463 */
Kojto 90:cb3d968589d8 7464
Kojto 90:cb3d968589d8 7465 /** RNG - Register Layout Typedef */
Kojto 90:cb3d968589d8 7466 typedef struct {
Kojto 90:cb3d968589d8 7467 __IO uint32_t CR; /**< RNGA Control Register, offset: 0x0 */
Kojto 90:cb3d968589d8 7468 __I uint32_t SR; /**< RNGA Status Register, offset: 0x4 */
Kojto 90:cb3d968589d8 7469 __O uint32_t ER; /**< RNGA Entropy Register, offset: 0x8 */
Kojto 90:cb3d968589d8 7470 __I uint32_t OR; /**< RNGA Output Register, offset: 0xC */
Kojto 90:cb3d968589d8 7471 } RNG_Type, *RNG_MemMapPtr;
Kojto 90:cb3d968589d8 7472
Kojto 90:cb3d968589d8 7473 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7474 -- RNG - Register accessor macros
Kojto 90:cb3d968589d8 7475 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7476
Kojto 90:cb3d968589d8 7477 /*!
Kojto 90:cb3d968589d8 7478 * @addtogroup RNG_Register_Accessor_Macros RNG - Register accessor macros
Kojto 90:cb3d968589d8 7479 * @{
Kojto 90:cb3d968589d8 7480 */
Kojto 90:cb3d968589d8 7481
Kojto 90:cb3d968589d8 7482
Kojto 90:cb3d968589d8 7483 /* RNG - Register accessors */
Kojto 90:cb3d968589d8 7484 #define RNG_CR_REG(base) ((base)->CR)
Kojto 90:cb3d968589d8 7485 #define RNG_SR_REG(base) ((base)->SR)
Kojto 90:cb3d968589d8 7486 #define RNG_ER_REG(base) ((base)->ER)
Kojto 90:cb3d968589d8 7487 #define RNG_OR_REG(base) ((base)->OR)
Kojto 90:cb3d968589d8 7488
Kojto 90:cb3d968589d8 7489 /*!
Kojto 90:cb3d968589d8 7490 * @}
Kojto 90:cb3d968589d8 7491 */ /* end of group RNG_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7492
Kojto 90:cb3d968589d8 7493
Kojto 90:cb3d968589d8 7494 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7495 -- RNG Register Masks
Kojto 90:cb3d968589d8 7496 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7497
Kojto 90:cb3d968589d8 7498 /*!
Kojto 90:cb3d968589d8 7499 * @addtogroup RNG_Register_Masks RNG Register Masks
Kojto 90:cb3d968589d8 7500 * @{
Kojto 90:cb3d968589d8 7501 */
Kojto 90:cb3d968589d8 7502
Kojto 90:cb3d968589d8 7503 /* CR Bit Fields */
Kojto 90:cb3d968589d8 7504 #define RNG_CR_GO_MASK 0x1u
Kojto 90:cb3d968589d8 7505 #define RNG_CR_GO_SHIFT 0
Kojto 90:cb3d968589d8 7506 #define RNG_CR_HA_MASK 0x2u
Kojto 90:cb3d968589d8 7507 #define RNG_CR_HA_SHIFT 1
Kojto 90:cb3d968589d8 7508 #define RNG_CR_INTM_MASK 0x4u
Kojto 90:cb3d968589d8 7509 #define RNG_CR_INTM_SHIFT 2
Kojto 90:cb3d968589d8 7510 #define RNG_CR_CLRI_MASK 0x8u
Kojto 90:cb3d968589d8 7511 #define RNG_CR_CLRI_SHIFT 3
Kojto 90:cb3d968589d8 7512 #define RNG_CR_SLP_MASK 0x10u
Kojto 90:cb3d968589d8 7513 #define RNG_CR_SLP_SHIFT 4
Kojto 90:cb3d968589d8 7514 /* SR Bit Fields */
Kojto 90:cb3d968589d8 7515 #define RNG_SR_SECV_MASK 0x1u
Kojto 90:cb3d968589d8 7516 #define RNG_SR_SECV_SHIFT 0
Kojto 90:cb3d968589d8 7517 #define RNG_SR_LRS_MASK 0x2u
Kojto 90:cb3d968589d8 7518 #define RNG_SR_LRS_SHIFT 1
Kojto 90:cb3d968589d8 7519 #define RNG_SR_ORU_MASK 0x4u
Kojto 90:cb3d968589d8 7520 #define RNG_SR_ORU_SHIFT 2
Kojto 90:cb3d968589d8 7521 #define RNG_SR_ERRI_MASK 0x8u
Kojto 90:cb3d968589d8 7522 #define RNG_SR_ERRI_SHIFT 3
Kojto 90:cb3d968589d8 7523 #define RNG_SR_SLP_MASK 0x10u
Kojto 90:cb3d968589d8 7524 #define RNG_SR_SLP_SHIFT 4
Kojto 90:cb3d968589d8 7525 #define RNG_SR_OREG_LVL_MASK 0xFF00u
Kojto 90:cb3d968589d8 7526 #define RNG_SR_OREG_LVL_SHIFT 8
Kojto 90:cb3d968589d8 7527 #define RNG_SR_OREG_LVL(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_OREG_LVL_SHIFT))&RNG_SR_OREG_LVL_MASK)
Kojto 90:cb3d968589d8 7528 #define RNG_SR_OREG_SIZE_MASK 0xFF0000u
Kojto 90:cb3d968589d8 7529 #define RNG_SR_OREG_SIZE_SHIFT 16
Kojto 90:cb3d968589d8 7530 #define RNG_SR_OREG_SIZE(x) (((uint32_t)(((uint32_t)(x))<<RNG_SR_OREG_SIZE_SHIFT))&RNG_SR_OREG_SIZE_MASK)
Kojto 90:cb3d968589d8 7531 /* ER Bit Fields */
Kojto 90:cb3d968589d8 7532 #define RNG_ER_EXT_ENT_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 7533 #define RNG_ER_EXT_ENT_SHIFT 0
Kojto 90:cb3d968589d8 7534 #define RNG_ER_EXT_ENT(x) (((uint32_t)(((uint32_t)(x))<<RNG_ER_EXT_ENT_SHIFT))&RNG_ER_EXT_ENT_MASK)
Kojto 90:cb3d968589d8 7535 /* OR Bit Fields */
Kojto 90:cb3d968589d8 7536 #define RNG_OR_RANDOUT_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 7537 #define RNG_OR_RANDOUT_SHIFT 0
Kojto 90:cb3d968589d8 7538 #define RNG_OR_RANDOUT(x) (((uint32_t)(((uint32_t)(x))<<RNG_OR_RANDOUT_SHIFT))&RNG_OR_RANDOUT_MASK)
Kojto 90:cb3d968589d8 7539
Kojto 90:cb3d968589d8 7540 /*!
Kojto 90:cb3d968589d8 7541 * @}
Kojto 90:cb3d968589d8 7542 */ /* end of group RNG_Register_Masks */
Kojto 90:cb3d968589d8 7543
Kojto 90:cb3d968589d8 7544
Kojto 90:cb3d968589d8 7545 /* RNG - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 7546 /** Peripheral RNG base address */
Kojto 90:cb3d968589d8 7547 #define RNG_BASE (0x40029000u)
Kojto 90:cb3d968589d8 7548 /** Peripheral RNG base pointer */
Kojto 90:cb3d968589d8 7549 #define RNG ((RNG_Type *)RNG_BASE)
Kojto 90:cb3d968589d8 7550 #define RNG_BASE_PTR (RNG)
Kojto 90:cb3d968589d8 7551 /** Array initializer of RNG peripheral base addresses */
Kojto 90:cb3d968589d8 7552 #define RNG_BASE_ADDRS { RNG_BASE }
Kojto 90:cb3d968589d8 7553 /** Array initializer of RNG peripheral base pointers */
Kojto 90:cb3d968589d8 7554 #define RNG_BASE_PTRS { RNG }
Kojto 90:cb3d968589d8 7555 /** Interrupt vectors for the RNG peripheral type */
Kojto 90:cb3d968589d8 7556 #define RNG_IRQS { RNG_IRQn }
Kojto 90:cb3d968589d8 7557
Kojto 90:cb3d968589d8 7558 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7559 -- RNG - Register accessor macros
Kojto 90:cb3d968589d8 7560 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7561
Kojto 90:cb3d968589d8 7562 /*!
Kojto 90:cb3d968589d8 7563 * @addtogroup RNG_Register_Accessor_Macros RNG - Register accessor macros
Kojto 90:cb3d968589d8 7564 * @{
Kojto 90:cb3d968589d8 7565 */
Kojto 90:cb3d968589d8 7566
Kojto 90:cb3d968589d8 7567
Kojto 90:cb3d968589d8 7568 /* RNG - Register instance definitions */
Kojto 90:cb3d968589d8 7569 /* RNG */
Kojto 90:cb3d968589d8 7570 #define RNG_CR RNG_CR_REG(RNG)
Kojto 90:cb3d968589d8 7571 #define RNG_SR RNG_SR_REG(RNG)
Kojto 90:cb3d968589d8 7572 #define RNG_ER RNG_ER_REG(RNG)
Kojto 90:cb3d968589d8 7573 #define RNG_OR RNG_OR_REG(RNG)
Kojto 90:cb3d968589d8 7574
Kojto 90:cb3d968589d8 7575 /*!
Kojto 90:cb3d968589d8 7576 * @}
Kojto 90:cb3d968589d8 7577 */ /* end of group RNG_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7578
Kojto 90:cb3d968589d8 7579
Kojto 90:cb3d968589d8 7580 /*!
Kojto 90:cb3d968589d8 7581 * @}
Kojto 90:cb3d968589d8 7582 */ /* end of group RNG_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 7583
Kojto 90:cb3d968589d8 7584
Kojto 90:cb3d968589d8 7585 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7586 -- RTC Peripheral Access Layer
Kojto 90:cb3d968589d8 7587 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7588
Kojto 90:cb3d968589d8 7589 /*!
Kojto 90:cb3d968589d8 7590 * @addtogroup RTC_Peripheral_Access_Layer RTC Peripheral Access Layer
Kojto 90:cb3d968589d8 7591 * @{
Kojto 90:cb3d968589d8 7592 */
Kojto 90:cb3d968589d8 7593
Kojto 90:cb3d968589d8 7594 /** RTC - Register Layout Typedef */
Kojto 90:cb3d968589d8 7595 typedef struct {
Kojto 90:cb3d968589d8 7596 __IO uint32_t TSR; /**< RTC Time Seconds Register, offset: 0x0 */
Kojto 90:cb3d968589d8 7597 __IO uint32_t TPR; /**< RTC Time Prescaler Register, offset: 0x4 */
Kojto 90:cb3d968589d8 7598 __IO uint32_t TAR; /**< RTC Time Alarm Register, offset: 0x8 */
Kojto 90:cb3d968589d8 7599 __IO uint32_t TCR; /**< RTC Time Compensation Register, offset: 0xC */
Kojto 90:cb3d968589d8 7600 __IO uint32_t CR; /**< RTC Control Register, offset: 0x10 */
Kojto 90:cb3d968589d8 7601 __IO uint32_t SR; /**< RTC Status Register, offset: 0x14 */
Kojto 90:cb3d968589d8 7602 __IO uint32_t LR; /**< RTC Lock Register, offset: 0x18 */
Kojto 90:cb3d968589d8 7603 __IO uint32_t IER; /**< RTC Interrupt Enable Register, offset: 0x1C */
Kojto 90:cb3d968589d8 7604 uint8_t RESERVED_0[2016];
Kojto 90:cb3d968589d8 7605 __IO uint32_t WAR; /**< RTC Write Access Register, offset: 0x800 */
Kojto 90:cb3d968589d8 7606 __IO uint32_t RAR; /**< RTC Read Access Register, offset: 0x804 */
Kojto 90:cb3d968589d8 7607 } RTC_Type, *RTC_MemMapPtr;
Kojto 90:cb3d968589d8 7608
Kojto 90:cb3d968589d8 7609 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7610 -- RTC - Register accessor macros
Kojto 90:cb3d968589d8 7611 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7612
Kojto 90:cb3d968589d8 7613 /*!
Kojto 90:cb3d968589d8 7614 * @addtogroup RTC_Register_Accessor_Macros RTC - Register accessor macros
Kojto 90:cb3d968589d8 7615 * @{
Kojto 90:cb3d968589d8 7616 */
Kojto 90:cb3d968589d8 7617
Kojto 90:cb3d968589d8 7618
Kojto 90:cb3d968589d8 7619 /* RTC - Register accessors */
Kojto 90:cb3d968589d8 7620 #define RTC_TSR_REG(base) ((base)->TSR)
Kojto 90:cb3d968589d8 7621 #define RTC_TPR_REG(base) ((base)->TPR)
Kojto 90:cb3d968589d8 7622 #define RTC_TAR_REG(base) ((base)->TAR)
Kojto 90:cb3d968589d8 7623 #define RTC_TCR_REG(base) ((base)->TCR)
Kojto 90:cb3d968589d8 7624 #define RTC_CR_REG(base) ((base)->CR)
Kojto 90:cb3d968589d8 7625 #define RTC_SR_REG(base) ((base)->SR)
Kojto 90:cb3d968589d8 7626 #define RTC_LR_REG(base) ((base)->LR)
Kojto 90:cb3d968589d8 7627 #define RTC_IER_REG(base) ((base)->IER)
Kojto 90:cb3d968589d8 7628 #define RTC_WAR_REG(base) ((base)->WAR)
Kojto 90:cb3d968589d8 7629 #define RTC_RAR_REG(base) ((base)->RAR)
Kojto 90:cb3d968589d8 7630
Kojto 90:cb3d968589d8 7631 /*!
Kojto 90:cb3d968589d8 7632 * @}
Kojto 90:cb3d968589d8 7633 */ /* end of group RTC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7634
Kojto 90:cb3d968589d8 7635
Kojto 90:cb3d968589d8 7636 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7637 -- RTC Register Masks
Kojto 90:cb3d968589d8 7638 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7639
Kojto 90:cb3d968589d8 7640 /*!
Kojto 90:cb3d968589d8 7641 * @addtogroup RTC_Register_Masks RTC Register Masks
Kojto 90:cb3d968589d8 7642 * @{
Kojto 90:cb3d968589d8 7643 */
Kojto 90:cb3d968589d8 7644
Kojto 90:cb3d968589d8 7645 /* TSR Bit Fields */
Kojto 90:cb3d968589d8 7646 #define RTC_TSR_TSR_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 7647 #define RTC_TSR_TSR_SHIFT 0
Kojto 90:cb3d968589d8 7648 #define RTC_TSR_TSR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TSR_TSR_SHIFT))&RTC_TSR_TSR_MASK)
Kojto 90:cb3d968589d8 7649 /* TPR Bit Fields */
Kojto 90:cb3d968589d8 7650 #define RTC_TPR_TPR_MASK 0xFFFFu
Kojto 90:cb3d968589d8 7651 #define RTC_TPR_TPR_SHIFT 0
Kojto 90:cb3d968589d8 7652 #define RTC_TPR_TPR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TPR_TPR_SHIFT))&RTC_TPR_TPR_MASK)
Kojto 90:cb3d968589d8 7653 /* TAR Bit Fields */
Kojto 90:cb3d968589d8 7654 #define RTC_TAR_TAR_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 7655 #define RTC_TAR_TAR_SHIFT 0
Kojto 90:cb3d968589d8 7656 #define RTC_TAR_TAR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TAR_TAR_SHIFT))&RTC_TAR_TAR_MASK)
Kojto 90:cb3d968589d8 7657 /* TCR Bit Fields */
Kojto 90:cb3d968589d8 7658 #define RTC_TCR_TCR_MASK 0xFFu
Kojto 90:cb3d968589d8 7659 #define RTC_TCR_TCR_SHIFT 0
Kojto 90:cb3d968589d8 7660 #define RTC_TCR_TCR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TCR_TCR_SHIFT))&RTC_TCR_TCR_MASK)
Kojto 90:cb3d968589d8 7661 #define RTC_TCR_CIR_MASK 0xFF00u
Kojto 90:cb3d968589d8 7662 #define RTC_TCR_CIR_SHIFT 8
Kojto 90:cb3d968589d8 7663 #define RTC_TCR_CIR(x) (((uint32_t)(((uint32_t)(x))<<RTC_TCR_CIR_SHIFT))&RTC_TCR_CIR_MASK)
Kojto 90:cb3d968589d8 7664 #define RTC_TCR_TCV_MASK 0xFF0000u
Kojto 90:cb3d968589d8 7665 #define RTC_TCR_TCV_SHIFT 16
Kojto 90:cb3d968589d8 7666 #define RTC_TCR_TCV(x) (((uint32_t)(((uint32_t)(x))<<RTC_TCR_TCV_SHIFT))&RTC_TCR_TCV_MASK)
Kojto 90:cb3d968589d8 7667 #define RTC_TCR_CIC_MASK 0xFF000000u
Kojto 90:cb3d968589d8 7668 #define RTC_TCR_CIC_SHIFT 24
Kojto 90:cb3d968589d8 7669 #define RTC_TCR_CIC(x) (((uint32_t)(((uint32_t)(x))<<RTC_TCR_CIC_SHIFT))&RTC_TCR_CIC_MASK)
Kojto 90:cb3d968589d8 7670 /* CR Bit Fields */
Kojto 90:cb3d968589d8 7671 #define RTC_CR_SWR_MASK 0x1u
Kojto 90:cb3d968589d8 7672 #define RTC_CR_SWR_SHIFT 0
Kojto 90:cb3d968589d8 7673 #define RTC_CR_WPE_MASK 0x2u
Kojto 90:cb3d968589d8 7674 #define RTC_CR_WPE_SHIFT 1
Kojto 90:cb3d968589d8 7675 #define RTC_CR_SUP_MASK 0x4u
Kojto 90:cb3d968589d8 7676 #define RTC_CR_SUP_SHIFT 2
Kojto 90:cb3d968589d8 7677 #define RTC_CR_UM_MASK 0x8u
Kojto 90:cb3d968589d8 7678 #define RTC_CR_UM_SHIFT 3
Kojto 90:cb3d968589d8 7679 #define RTC_CR_WPS_MASK 0x10u
Kojto 90:cb3d968589d8 7680 #define RTC_CR_WPS_SHIFT 4
Kojto 90:cb3d968589d8 7681 #define RTC_CR_OSCE_MASK 0x100u
Kojto 90:cb3d968589d8 7682 #define RTC_CR_OSCE_SHIFT 8
Kojto 90:cb3d968589d8 7683 #define RTC_CR_CLKO_MASK 0x200u
Kojto 90:cb3d968589d8 7684 #define RTC_CR_CLKO_SHIFT 9
Kojto 90:cb3d968589d8 7685 #define RTC_CR_SC16P_MASK 0x400u
Kojto 90:cb3d968589d8 7686 #define RTC_CR_SC16P_SHIFT 10
Kojto 90:cb3d968589d8 7687 #define RTC_CR_SC8P_MASK 0x800u
Kojto 90:cb3d968589d8 7688 #define RTC_CR_SC8P_SHIFT 11
Kojto 90:cb3d968589d8 7689 #define RTC_CR_SC4P_MASK 0x1000u
Kojto 90:cb3d968589d8 7690 #define RTC_CR_SC4P_SHIFT 12
Kojto 90:cb3d968589d8 7691 #define RTC_CR_SC2P_MASK 0x2000u
Kojto 90:cb3d968589d8 7692 #define RTC_CR_SC2P_SHIFT 13
Kojto 90:cb3d968589d8 7693 /* SR Bit Fields */
Kojto 90:cb3d968589d8 7694 #define RTC_SR_TIF_MASK 0x1u
Kojto 90:cb3d968589d8 7695 #define RTC_SR_TIF_SHIFT 0
Kojto 90:cb3d968589d8 7696 #define RTC_SR_TOF_MASK 0x2u
Kojto 90:cb3d968589d8 7697 #define RTC_SR_TOF_SHIFT 1
Kojto 90:cb3d968589d8 7698 #define RTC_SR_TAF_MASK 0x4u
Kojto 90:cb3d968589d8 7699 #define RTC_SR_TAF_SHIFT 2
Kojto 90:cb3d968589d8 7700 #define RTC_SR_TCE_MASK 0x10u
Kojto 90:cb3d968589d8 7701 #define RTC_SR_TCE_SHIFT 4
Kojto 90:cb3d968589d8 7702 /* LR Bit Fields */
Kojto 90:cb3d968589d8 7703 #define RTC_LR_TCL_MASK 0x8u
Kojto 90:cb3d968589d8 7704 #define RTC_LR_TCL_SHIFT 3
Kojto 90:cb3d968589d8 7705 #define RTC_LR_CRL_MASK 0x10u
Kojto 90:cb3d968589d8 7706 #define RTC_LR_CRL_SHIFT 4
Kojto 90:cb3d968589d8 7707 #define RTC_LR_SRL_MASK 0x20u
Kojto 90:cb3d968589d8 7708 #define RTC_LR_SRL_SHIFT 5
Kojto 90:cb3d968589d8 7709 #define RTC_LR_LRL_MASK 0x40u
Kojto 90:cb3d968589d8 7710 #define RTC_LR_LRL_SHIFT 6
Kojto 90:cb3d968589d8 7711 /* IER Bit Fields */
Kojto 90:cb3d968589d8 7712 #define RTC_IER_TIIE_MASK 0x1u
Kojto 90:cb3d968589d8 7713 #define RTC_IER_TIIE_SHIFT 0
Kojto 90:cb3d968589d8 7714 #define RTC_IER_TOIE_MASK 0x2u
Kojto 90:cb3d968589d8 7715 #define RTC_IER_TOIE_SHIFT 1
Kojto 90:cb3d968589d8 7716 #define RTC_IER_TAIE_MASK 0x4u
Kojto 90:cb3d968589d8 7717 #define RTC_IER_TAIE_SHIFT 2
Kojto 90:cb3d968589d8 7718 #define RTC_IER_TSIE_MASK 0x10u
Kojto 90:cb3d968589d8 7719 #define RTC_IER_TSIE_SHIFT 4
Kojto 90:cb3d968589d8 7720 #define RTC_IER_WPON_MASK 0x80u
Kojto 90:cb3d968589d8 7721 #define RTC_IER_WPON_SHIFT 7
Kojto 90:cb3d968589d8 7722 /* WAR Bit Fields */
Kojto 90:cb3d968589d8 7723 #define RTC_WAR_TSRW_MASK 0x1u
Kojto 90:cb3d968589d8 7724 #define RTC_WAR_TSRW_SHIFT 0
Kojto 90:cb3d968589d8 7725 #define RTC_WAR_TPRW_MASK 0x2u
Kojto 90:cb3d968589d8 7726 #define RTC_WAR_TPRW_SHIFT 1
Kojto 90:cb3d968589d8 7727 #define RTC_WAR_TARW_MASK 0x4u
Kojto 90:cb3d968589d8 7728 #define RTC_WAR_TARW_SHIFT 2
Kojto 90:cb3d968589d8 7729 #define RTC_WAR_TCRW_MASK 0x8u
Kojto 90:cb3d968589d8 7730 #define RTC_WAR_TCRW_SHIFT 3
Kojto 90:cb3d968589d8 7731 #define RTC_WAR_CRW_MASK 0x10u
Kojto 90:cb3d968589d8 7732 #define RTC_WAR_CRW_SHIFT 4
Kojto 90:cb3d968589d8 7733 #define RTC_WAR_SRW_MASK 0x20u
Kojto 90:cb3d968589d8 7734 #define RTC_WAR_SRW_SHIFT 5
Kojto 90:cb3d968589d8 7735 #define RTC_WAR_LRW_MASK 0x40u
Kojto 90:cb3d968589d8 7736 #define RTC_WAR_LRW_SHIFT 6
Kojto 90:cb3d968589d8 7737 #define RTC_WAR_IERW_MASK 0x80u
Kojto 90:cb3d968589d8 7738 #define RTC_WAR_IERW_SHIFT 7
Kojto 90:cb3d968589d8 7739 /* RAR Bit Fields */
Kojto 90:cb3d968589d8 7740 #define RTC_RAR_TSRR_MASK 0x1u
Kojto 90:cb3d968589d8 7741 #define RTC_RAR_TSRR_SHIFT 0
Kojto 90:cb3d968589d8 7742 #define RTC_RAR_TPRR_MASK 0x2u
Kojto 90:cb3d968589d8 7743 #define RTC_RAR_TPRR_SHIFT 1
Kojto 90:cb3d968589d8 7744 #define RTC_RAR_TARR_MASK 0x4u
Kojto 90:cb3d968589d8 7745 #define RTC_RAR_TARR_SHIFT 2
Kojto 90:cb3d968589d8 7746 #define RTC_RAR_TCRR_MASK 0x8u
Kojto 90:cb3d968589d8 7747 #define RTC_RAR_TCRR_SHIFT 3
Kojto 90:cb3d968589d8 7748 #define RTC_RAR_CRR_MASK 0x10u
Kojto 90:cb3d968589d8 7749 #define RTC_RAR_CRR_SHIFT 4
Kojto 90:cb3d968589d8 7750 #define RTC_RAR_SRR_MASK 0x20u
Kojto 90:cb3d968589d8 7751 #define RTC_RAR_SRR_SHIFT 5
Kojto 90:cb3d968589d8 7752 #define RTC_RAR_LRR_MASK 0x40u
Kojto 90:cb3d968589d8 7753 #define RTC_RAR_LRR_SHIFT 6
Kojto 90:cb3d968589d8 7754 #define RTC_RAR_IERR_MASK 0x80u
Kojto 90:cb3d968589d8 7755 #define RTC_RAR_IERR_SHIFT 7
Kojto 90:cb3d968589d8 7756
Kojto 90:cb3d968589d8 7757 /*!
Kojto 90:cb3d968589d8 7758 * @}
Kojto 90:cb3d968589d8 7759 */ /* end of group RTC_Register_Masks */
Kojto 90:cb3d968589d8 7760
Kojto 90:cb3d968589d8 7761
Kojto 90:cb3d968589d8 7762 /* RTC - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 7763 /** Peripheral RTC base address */
Kojto 90:cb3d968589d8 7764 #define RTC_BASE (0x4003D000u)
Kojto 90:cb3d968589d8 7765 /** Peripheral RTC base pointer */
Kojto 90:cb3d968589d8 7766 #define RTC ((RTC_Type *)RTC_BASE)
Kojto 90:cb3d968589d8 7767 #define RTC_BASE_PTR (RTC)
Kojto 90:cb3d968589d8 7768 /** Array initializer of RTC peripheral base addresses */
Kojto 90:cb3d968589d8 7769 #define RTC_BASE_ADDRS { RTC_BASE }
Kojto 90:cb3d968589d8 7770 /** Array initializer of RTC peripheral base pointers */
Kojto 90:cb3d968589d8 7771 #define RTC_BASE_PTRS { RTC }
Kojto 90:cb3d968589d8 7772 /** Interrupt vectors for the RTC peripheral type */
Kojto 90:cb3d968589d8 7773 #define RTC_IRQS { RTC_IRQn }
Kojto 90:cb3d968589d8 7774 #define RTC_SECONDS_IRQS { RTC_Seconds_IRQn }
Kojto 90:cb3d968589d8 7775
Kojto 90:cb3d968589d8 7776 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7777 -- RTC - Register accessor macros
Kojto 90:cb3d968589d8 7778 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7779
Kojto 90:cb3d968589d8 7780 /*!
Kojto 90:cb3d968589d8 7781 * @addtogroup RTC_Register_Accessor_Macros RTC - Register accessor macros
Kojto 90:cb3d968589d8 7782 * @{
Kojto 90:cb3d968589d8 7783 */
Kojto 90:cb3d968589d8 7784
Kojto 90:cb3d968589d8 7785
Kojto 90:cb3d968589d8 7786 /* RTC - Register instance definitions */
Kojto 90:cb3d968589d8 7787 /* RTC */
Kojto 90:cb3d968589d8 7788 #define RTC_TSR RTC_TSR_REG(RTC)
Kojto 90:cb3d968589d8 7789 #define RTC_TPR RTC_TPR_REG(RTC)
Kojto 90:cb3d968589d8 7790 #define RTC_TAR RTC_TAR_REG(RTC)
Kojto 90:cb3d968589d8 7791 #define RTC_TCR RTC_TCR_REG(RTC)
Kojto 90:cb3d968589d8 7792 #define RTC_CR RTC_CR_REG(RTC)
Kojto 90:cb3d968589d8 7793 #define RTC_SR RTC_SR_REG(RTC)
Kojto 90:cb3d968589d8 7794 #define RTC_LR RTC_LR_REG(RTC)
Kojto 90:cb3d968589d8 7795 #define RTC_IER RTC_IER_REG(RTC)
Kojto 90:cb3d968589d8 7796 #define RTC_WAR RTC_WAR_REG(RTC)
Kojto 90:cb3d968589d8 7797 #define RTC_RAR RTC_RAR_REG(RTC)
Kojto 90:cb3d968589d8 7798
Kojto 90:cb3d968589d8 7799 /*!
Kojto 90:cb3d968589d8 7800 * @}
Kojto 90:cb3d968589d8 7801 */ /* end of group RTC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7802
Kojto 90:cb3d968589d8 7803
Kojto 90:cb3d968589d8 7804 /*!
Kojto 90:cb3d968589d8 7805 * @}
Kojto 90:cb3d968589d8 7806 */ /* end of group RTC_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 7807
Kojto 90:cb3d968589d8 7808
Kojto 90:cb3d968589d8 7809 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7810 -- SIM Peripheral Access Layer
Kojto 90:cb3d968589d8 7811 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7812
Kojto 90:cb3d968589d8 7813 /*!
Kojto 90:cb3d968589d8 7814 * @addtogroup SIM_Peripheral_Access_Layer SIM Peripheral Access Layer
Kojto 90:cb3d968589d8 7815 * @{
Kojto 90:cb3d968589d8 7816 */
Kojto 90:cb3d968589d8 7817
Kojto 90:cb3d968589d8 7818 /** SIM - Register Layout Typedef */
Kojto 90:cb3d968589d8 7819 typedef struct {
Kojto 90:cb3d968589d8 7820 __IO uint32_t SOPT1; /**< System Options Register 1, offset: 0x0 */
Kojto 90:cb3d968589d8 7821 __IO uint32_t SOPT1CFG; /**< SOPT1 Configuration Register, offset: 0x4 */
Kojto 90:cb3d968589d8 7822 uint8_t RESERVED_0[4092];
Kojto 90:cb3d968589d8 7823 __IO uint32_t SOPT2; /**< System Options Register 2, offset: 0x1004 */
Kojto 90:cb3d968589d8 7824 uint8_t RESERVED_1[4];
Kojto 90:cb3d968589d8 7825 __IO uint32_t SOPT4; /**< System Options Register 4, offset: 0x100C */
Kojto 90:cb3d968589d8 7826 __IO uint32_t SOPT5; /**< System Options Register 5, offset: 0x1010 */
Kojto 90:cb3d968589d8 7827 uint8_t RESERVED_2[4];
Kojto 90:cb3d968589d8 7828 __IO uint32_t SOPT7; /**< System Options Register 7, offset: 0x1018 */
Kojto 90:cb3d968589d8 7829 __IO uint32_t SOPT8; /**< System Options Register 8, offset: 0x101C */
Kojto 90:cb3d968589d8 7830 uint8_t RESERVED_3[4];
Kojto 90:cb3d968589d8 7831 __I uint32_t SDID; /**< System Device Identification Register, offset: 0x1024 */
Kojto 90:cb3d968589d8 7832 uint8_t RESERVED_4[12];
Kojto 90:cb3d968589d8 7833 __IO uint32_t SCGC4; /**< System Clock Gating Control Register 4, offset: 0x1034 */
Kojto 90:cb3d968589d8 7834 __IO uint32_t SCGC5; /**< System Clock Gating Control Register 5, offset: 0x1038 */
Kojto 90:cb3d968589d8 7835 __IO uint32_t SCGC6; /**< System Clock Gating Control Register 6, offset: 0x103C */
Kojto 90:cb3d968589d8 7836 __IO uint32_t SCGC7; /**< System Clock Gating Control Register 7, offset: 0x1040 */
Kojto 90:cb3d968589d8 7837 __IO uint32_t CLKDIV1; /**< System Clock Divider Register 1, offset: 0x1044 */
Kojto 90:cb3d968589d8 7838 __IO uint32_t CLKDIV2; /**< System Clock Divider Register 2, offset: 0x1048 */
Kojto 90:cb3d968589d8 7839 __IO uint32_t FCFG1; /**< Flash Configuration Register 1, offset: 0x104C */
Kojto 90:cb3d968589d8 7840 __I uint32_t FCFG2; /**< Flash Configuration Register 2, offset: 0x1050 */
Kojto 90:cb3d968589d8 7841 __I uint32_t UIDH; /**< Unique Identification Register High, offset: 0x1054 */
Kojto 90:cb3d968589d8 7842 __I uint32_t UIDMH; /**< Unique Identification Register Mid-High, offset: 0x1058 */
Kojto 90:cb3d968589d8 7843 __I uint32_t UIDML; /**< Unique Identification Register Mid Low, offset: 0x105C */
Kojto 90:cb3d968589d8 7844 __I uint32_t UIDL; /**< Unique Identification Register Low, offset: 0x1060 */
Kojto 90:cb3d968589d8 7845 } SIM_Type, *SIM_MemMapPtr;
Kojto 90:cb3d968589d8 7846
Kojto 90:cb3d968589d8 7847 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7848 -- SIM - Register accessor macros
Kojto 90:cb3d968589d8 7849 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7850
Kojto 90:cb3d968589d8 7851 /*!
Kojto 90:cb3d968589d8 7852 * @addtogroup SIM_Register_Accessor_Macros SIM - Register accessor macros
Kojto 90:cb3d968589d8 7853 * @{
Kojto 90:cb3d968589d8 7854 */
Kojto 90:cb3d968589d8 7855
Kojto 90:cb3d968589d8 7856
Kojto 90:cb3d968589d8 7857 /* SIM - Register accessors */
Kojto 90:cb3d968589d8 7858 #define SIM_SOPT1_REG(base) ((base)->SOPT1)
Kojto 90:cb3d968589d8 7859 #define SIM_SOPT1CFG_REG(base) ((base)->SOPT1CFG)
Kojto 90:cb3d968589d8 7860 #define SIM_SOPT2_REG(base) ((base)->SOPT2)
Kojto 90:cb3d968589d8 7861 #define SIM_SOPT4_REG(base) ((base)->SOPT4)
Kojto 90:cb3d968589d8 7862 #define SIM_SOPT5_REG(base) ((base)->SOPT5)
Kojto 90:cb3d968589d8 7863 #define SIM_SOPT7_REG(base) ((base)->SOPT7)
Kojto 90:cb3d968589d8 7864 #define SIM_SOPT8_REG(base) ((base)->SOPT8)
Kojto 90:cb3d968589d8 7865 #define SIM_SDID_REG(base) ((base)->SDID)
Kojto 90:cb3d968589d8 7866 #define SIM_SCGC4_REG(base) ((base)->SCGC4)
Kojto 90:cb3d968589d8 7867 #define SIM_SCGC5_REG(base) ((base)->SCGC5)
Kojto 90:cb3d968589d8 7868 #define SIM_SCGC6_REG(base) ((base)->SCGC6)
Kojto 90:cb3d968589d8 7869 #define SIM_SCGC7_REG(base) ((base)->SCGC7)
Kojto 90:cb3d968589d8 7870 #define SIM_CLKDIV1_REG(base) ((base)->CLKDIV1)
Kojto 90:cb3d968589d8 7871 #define SIM_CLKDIV2_REG(base) ((base)->CLKDIV2)
Kojto 90:cb3d968589d8 7872 #define SIM_FCFG1_REG(base) ((base)->FCFG1)
Kojto 90:cb3d968589d8 7873 #define SIM_FCFG2_REG(base) ((base)->FCFG2)
Kojto 90:cb3d968589d8 7874 #define SIM_UIDH_REG(base) ((base)->UIDH)
Kojto 90:cb3d968589d8 7875 #define SIM_UIDMH_REG(base) ((base)->UIDMH)
Kojto 90:cb3d968589d8 7876 #define SIM_UIDML_REG(base) ((base)->UIDML)
Kojto 90:cb3d968589d8 7877 #define SIM_UIDL_REG(base) ((base)->UIDL)
Kojto 90:cb3d968589d8 7878
Kojto 90:cb3d968589d8 7879 /*!
Kojto 90:cb3d968589d8 7880 * @}
Kojto 90:cb3d968589d8 7881 */ /* end of group SIM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 7882
Kojto 90:cb3d968589d8 7883
Kojto 90:cb3d968589d8 7884 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 7885 -- SIM Register Masks
Kojto 90:cb3d968589d8 7886 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 7887
Kojto 90:cb3d968589d8 7888 /*!
Kojto 90:cb3d968589d8 7889 * @addtogroup SIM_Register_Masks SIM Register Masks
Kojto 90:cb3d968589d8 7890 * @{
Kojto 90:cb3d968589d8 7891 */
Kojto 90:cb3d968589d8 7892
Kojto 90:cb3d968589d8 7893 /* SOPT1 Bit Fields */
Kojto 90:cb3d968589d8 7894 #define SIM_SOPT1_RAMSIZE_MASK 0xF000u
Kojto 90:cb3d968589d8 7895 #define SIM_SOPT1_RAMSIZE_SHIFT 12
Kojto 90:cb3d968589d8 7896 #define SIM_SOPT1_RAMSIZE(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT1_RAMSIZE_SHIFT))&SIM_SOPT1_RAMSIZE_MASK)
Kojto 90:cb3d968589d8 7897 #define SIM_SOPT1_OSC32KOUT_MASK 0x30000u
Kojto 90:cb3d968589d8 7898 #define SIM_SOPT1_OSC32KOUT_SHIFT 16
Kojto 90:cb3d968589d8 7899 #define SIM_SOPT1_OSC32KOUT(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT1_OSC32KOUT_SHIFT))&SIM_SOPT1_OSC32KOUT_MASK)
Kojto 90:cb3d968589d8 7900 #define SIM_SOPT1_OSC32KSEL_MASK 0xC0000u
Kojto 90:cb3d968589d8 7901 #define SIM_SOPT1_OSC32KSEL_SHIFT 18
Kojto 90:cb3d968589d8 7902 #define SIM_SOPT1_OSC32KSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT1_OSC32KSEL_SHIFT))&SIM_SOPT1_OSC32KSEL_MASK)
Kojto 90:cb3d968589d8 7903 #define SIM_SOPT1_USBVSTBY_MASK 0x20000000u
Kojto 90:cb3d968589d8 7904 #define SIM_SOPT1_USBVSTBY_SHIFT 29
Kojto 90:cb3d968589d8 7905 #define SIM_SOPT1_USBSSTBY_MASK 0x40000000u
Kojto 90:cb3d968589d8 7906 #define SIM_SOPT1_USBSSTBY_SHIFT 30
Kojto 90:cb3d968589d8 7907 #define SIM_SOPT1_USBREGEN_MASK 0x80000000u
Kojto 90:cb3d968589d8 7908 #define SIM_SOPT1_USBREGEN_SHIFT 31
Kojto 90:cb3d968589d8 7909 /* SOPT1CFG Bit Fields */
Kojto 90:cb3d968589d8 7910 #define SIM_SOPT1CFG_URWE_MASK 0x1000000u
Kojto 90:cb3d968589d8 7911 #define SIM_SOPT1CFG_URWE_SHIFT 24
Kojto 90:cb3d968589d8 7912 #define SIM_SOPT1CFG_UVSWE_MASK 0x2000000u
Kojto 90:cb3d968589d8 7913 #define SIM_SOPT1CFG_UVSWE_SHIFT 25
Kojto 90:cb3d968589d8 7914 #define SIM_SOPT1CFG_USSWE_MASK 0x4000000u
Kojto 90:cb3d968589d8 7915 #define SIM_SOPT1CFG_USSWE_SHIFT 26
Kojto 90:cb3d968589d8 7916 /* SOPT2 Bit Fields */
Kojto 90:cb3d968589d8 7917 #define SIM_SOPT2_RTCCLKOUTSEL_MASK 0x10u
Kojto 90:cb3d968589d8 7918 #define SIM_SOPT2_RTCCLKOUTSEL_SHIFT 4
Kojto 90:cb3d968589d8 7919 #define SIM_SOPT2_CLKOUTSEL_MASK 0xE0u
Kojto 90:cb3d968589d8 7920 #define SIM_SOPT2_CLKOUTSEL_SHIFT 5
Kojto 90:cb3d968589d8 7921 #define SIM_SOPT2_CLKOUTSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT2_CLKOUTSEL_SHIFT))&SIM_SOPT2_CLKOUTSEL_MASK)
Kojto 90:cb3d968589d8 7922 #define SIM_SOPT2_FBSL_MASK 0x300u
Kojto 90:cb3d968589d8 7923 #define SIM_SOPT2_FBSL_SHIFT 8
Kojto 90:cb3d968589d8 7924 #define SIM_SOPT2_FBSL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT2_FBSL_SHIFT))&SIM_SOPT2_FBSL_MASK)
Kojto 90:cb3d968589d8 7925 #define SIM_SOPT2_TRACECLKSEL_MASK 0x1000u
Kojto 90:cb3d968589d8 7926 #define SIM_SOPT2_TRACECLKSEL_SHIFT 12
Kojto 90:cb3d968589d8 7927 #define SIM_SOPT2_PLLFLLSEL_MASK 0x30000u
Kojto 90:cb3d968589d8 7928 #define SIM_SOPT2_PLLFLLSEL_SHIFT 16
Kojto 90:cb3d968589d8 7929 #define SIM_SOPT2_PLLFLLSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT2_PLLFLLSEL_SHIFT))&SIM_SOPT2_PLLFLLSEL_MASK)
Kojto 90:cb3d968589d8 7930 #define SIM_SOPT2_USBSRC_MASK 0x40000u
Kojto 90:cb3d968589d8 7931 #define SIM_SOPT2_USBSRC_SHIFT 18
Kojto 90:cb3d968589d8 7932 #define SIM_SOPT2_LPUARTSRC_MASK 0xC000000u
Kojto 90:cb3d968589d8 7933 #define SIM_SOPT2_LPUARTSRC_SHIFT 26
Kojto 90:cb3d968589d8 7934 #define SIM_SOPT2_LPUARTSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT2_LPUARTSRC_SHIFT))&SIM_SOPT2_LPUARTSRC_MASK)
Kojto 90:cb3d968589d8 7935 /* SOPT4 Bit Fields */
Kojto 90:cb3d968589d8 7936 #define SIM_SOPT4_FTM0FLT0_MASK 0x1u
Kojto 90:cb3d968589d8 7937 #define SIM_SOPT4_FTM0FLT0_SHIFT 0
Kojto 90:cb3d968589d8 7938 #define SIM_SOPT4_FTM0FLT1_MASK 0x2u
Kojto 90:cb3d968589d8 7939 #define SIM_SOPT4_FTM0FLT1_SHIFT 1
Kojto 90:cb3d968589d8 7940 #define SIM_SOPT4_FTM1FLT0_MASK 0x10u
Kojto 90:cb3d968589d8 7941 #define SIM_SOPT4_FTM1FLT0_SHIFT 4
Kojto 90:cb3d968589d8 7942 #define SIM_SOPT4_FTM2FLT0_MASK 0x100u
Kojto 90:cb3d968589d8 7943 #define SIM_SOPT4_FTM2FLT0_SHIFT 8
Kojto 90:cb3d968589d8 7944 #define SIM_SOPT4_FTM3FLT0_MASK 0x1000u
Kojto 90:cb3d968589d8 7945 #define SIM_SOPT4_FTM3FLT0_SHIFT 12
Kojto 90:cb3d968589d8 7946 #define SIM_SOPT4_FTM1CH0SRC_MASK 0xC0000u
Kojto 90:cb3d968589d8 7947 #define SIM_SOPT4_FTM1CH0SRC_SHIFT 18
Kojto 90:cb3d968589d8 7948 #define SIM_SOPT4_FTM1CH0SRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT4_FTM1CH0SRC_SHIFT))&SIM_SOPT4_FTM1CH0SRC_MASK)
Kojto 90:cb3d968589d8 7949 #define SIM_SOPT4_FTM2CH0SRC_MASK 0x300000u
Kojto 90:cb3d968589d8 7950 #define SIM_SOPT4_FTM2CH0SRC_SHIFT 20
Kojto 90:cb3d968589d8 7951 #define SIM_SOPT4_FTM2CH0SRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT4_FTM2CH0SRC_SHIFT))&SIM_SOPT4_FTM2CH0SRC_MASK)
Kojto 90:cb3d968589d8 7952 #define SIM_SOPT4_FTM2CH1SRC_MASK 0x400000u
Kojto 90:cb3d968589d8 7953 #define SIM_SOPT4_FTM2CH1SRC_SHIFT 22
Kojto 90:cb3d968589d8 7954 #define SIM_SOPT4_FTM0CLKSEL_MASK 0x1000000u
Kojto 90:cb3d968589d8 7955 #define SIM_SOPT4_FTM0CLKSEL_SHIFT 24
Kojto 90:cb3d968589d8 7956 #define SIM_SOPT4_FTM1CLKSEL_MASK 0x2000000u
Kojto 90:cb3d968589d8 7957 #define SIM_SOPT4_FTM1CLKSEL_SHIFT 25
Kojto 90:cb3d968589d8 7958 #define SIM_SOPT4_FTM2CLKSEL_MASK 0x4000000u
Kojto 90:cb3d968589d8 7959 #define SIM_SOPT4_FTM2CLKSEL_SHIFT 26
Kojto 90:cb3d968589d8 7960 #define SIM_SOPT4_FTM3CLKSEL_MASK 0x8000000u
Kojto 90:cb3d968589d8 7961 #define SIM_SOPT4_FTM3CLKSEL_SHIFT 27
Kojto 90:cb3d968589d8 7962 #define SIM_SOPT4_FTM0TRG0SRC_MASK 0x10000000u
Kojto 90:cb3d968589d8 7963 #define SIM_SOPT4_FTM0TRG0SRC_SHIFT 28
Kojto 90:cb3d968589d8 7964 #define SIM_SOPT4_FTM0TRG1SRC_MASK 0x20000000u
Kojto 90:cb3d968589d8 7965 #define SIM_SOPT4_FTM0TRG1SRC_SHIFT 29
Kojto 90:cb3d968589d8 7966 #define SIM_SOPT4_FTM3TRG0SRC_MASK 0x40000000u
Kojto 90:cb3d968589d8 7967 #define SIM_SOPT4_FTM3TRG0SRC_SHIFT 30
Kojto 90:cb3d968589d8 7968 #define SIM_SOPT4_FTM3TRG1SRC_MASK 0x80000000u
Kojto 90:cb3d968589d8 7969 #define SIM_SOPT4_FTM3TRG1SRC_SHIFT 31
Kojto 90:cb3d968589d8 7970 /* SOPT5 Bit Fields */
Kojto 90:cb3d968589d8 7971 #define SIM_SOPT5_UART0TXSRC_MASK 0x3u
Kojto 90:cb3d968589d8 7972 #define SIM_SOPT5_UART0TXSRC_SHIFT 0
Kojto 90:cb3d968589d8 7973 #define SIM_SOPT5_UART0TXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_UART0TXSRC_SHIFT))&SIM_SOPT5_UART0TXSRC_MASK)
Kojto 90:cb3d968589d8 7974 #define SIM_SOPT5_UART0RXSRC_MASK 0xCu
Kojto 90:cb3d968589d8 7975 #define SIM_SOPT5_UART0RXSRC_SHIFT 2
Kojto 90:cb3d968589d8 7976 #define SIM_SOPT5_UART0RXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_UART0RXSRC_SHIFT))&SIM_SOPT5_UART0RXSRC_MASK)
Kojto 90:cb3d968589d8 7977 #define SIM_SOPT5_UART1TXSRC_MASK 0x30u
Kojto 90:cb3d968589d8 7978 #define SIM_SOPT5_UART1TXSRC_SHIFT 4
Kojto 90:cb3d968589d8 7979 #define SIM_SOPT5_UART1TXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_UART1TXSRC_SHIFT))&SIM_SOPT5_UART1TXSRC_MASK)
Kojto 90:cb3d968589d8 7980 #define SIM_SOPT5_UART1RXSRC_MASK 0xC0u
Kojto 90:cb3d968589d8 7981 #define SIM_SOPT5_UART1RXSRC_SHIFT 6
Kojto 90:cb3d968589d8 7982 #define SIM_SOPT5_UART1RXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_UART1RXSRC_SHIFT))&SIM_SOPT5_UART1RXSRC_MASK)
Kojto 90:cb3d968589d8 7983 #define SIM_SOPT5_LPUART0RXSRC_MASK 0xC0000u
Kojto 90:cb3d968589d8 7984 #define SIM_SOPT5_LPUART0RXSRC_SHIFT 18
Kojto 90:cb3d968589d8 7985 #define SIM_SOPT5_LPUART0RXSRC(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT5_LPUART0RXSRC_SHIFT))&SIM_SOPT5_LPUART0RXSRC_MASK)
Kojto 90:cb3d968589d8 7986 /* SOPT7 Bit Fields */
Kojto 90:cb3d968589d8 7987 #define SIM_SOPT7_ADC0TRGSEL_MASK 0xFu
Kojto 90:cb3d968589d8 7988 #define SIM_SOPT7_ADC0TRGSEL_SHIFT 0
Kojto 90:cb3d968589d8 7989 #define SIM_SOPT7_ADC0TRGSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT7_ADC0TRGSEL_SHIFT))&SIM_SOPT7_ADC0TRGSEL_MASK)
Kojto 90:cb3d968589d8 7990 #define SIM_SOPT7_ADC0PRETRGSEL_MASK 0x10u
Kojto 90:cb3d968589d8 7991 #define SIM_SOPT7_ADC0PRETRGSEL_SHIFT 4
Kojto 90:cb3d968589d8 7992 #define SIM_SOPT7_ADC0ALTTRGEN_MASK 0x80u
Kojto 90:cb3d968589d8 7993 #define SIM_SOPT7_ADC0ALTTRGEN_SHIFT 7
Kojto 90:cb3d968589d8 7994 #define SIM_SOPT7_ADC1TRGSEL_MASK 0xF00u
Kojto 90:cb3d968589d8 7995 #define SIM_SOPT7_ADC1TRGSEL_SHIFT 8
Kojto 90:cb3d968589d8 7996 #define SIM_SOPT7_ADC1TRGSEL(x) (((uint32_t)(((uint32_t)(x))<<SIM_SOPT7_ADC1TRGSEL_SHIFT))&SIM_SOPT7_ADC1TRGSEL_MASK)
Kojto 90:cb3d968589d8 7997 #define SIM_SOPT7_ADC1PRETRGSEL_MASK 0x1000u
Kojto 90:cb3d968589d8 7998 #define SIM_SOPT7_ADC1PRETRGSEL_SHIFT 12
Kojto 90:cb3d968589d8 7999 #define SIM_SOPT7_ADC1ALTTRGEN_MASK 0x8000u
Kojto 90:cb3d968589d8 8000 #define SIM_SOPT7_ADC1ALTTRGEN_SHIFT 15
Kojto 90:cb3d968589d8 8001 /* SOPT8 Bit Fields */
Kojto 90:cb3d968589d8 8002 #define SIM_SOPT8_FTM0SYNCBIT_MASK 0x1u
Kojto 90:cb3d968589d8 8003 #define SIM_SOPT8_FTM0SYNCBIT_SHIFT 0
Kojto 90:cb3d968589d8 8004 #define SIM_SOPT8_FTM1SYNCBIT_MASK 0x2u
Kojto 90:cb3d968589d8 8005 #define SIM_SOPT8_FTM1SYNCBIT_SHIFT 1
Kojto 90:cb3d968589d8 8006 #define SIM_SOPT8_FTM2SYNCBIT_MASK 0x4u
Kojto 90:cb3d968589d8 8007 #define SIM_SOPT8_FTM2SYNCBIT_SHIFT 2
Kojto 90:cb3d968589d8 8008 #define SIM_SOPT8_FTM3SYNCBIT_MASK 0x8u
Kojto 90:cb3d968589d8 8009 #define SIM_SOPT8_FTM3SYNCBIT_SHIFT 3
Kojto 90:cb3d968589d8 8010 #define SIM_SOPT8_FTM0OCH0SRC_MASK 0x10000u
Kojto 90:cb3d968589d8 8011 #define SIM_SOPT8_FTM0OCH0SRC_SHIFT 16
Kojto 90:cb3d968589d8 8012 #define SIM_SOPT8_FTM0OCH1SRC_MASK 0x20000u
Kojto 90:cb3d968589d8 8013 #define SIM_SOPT8_FTM0OCH1SRC_SHIFT 17
Kojto 90:cb3d968589d8 8014 #define SIM_SOPT8_FTM0OCH2SRC_MASK 0x40000u
Kojto 90:cb3d968589d8 8015 #define SIM_SOPT8_FTM0OCH2SRC_SHIFT 18
Kojto 90:cb3d968589d8 8016 #define SIM_SOPT8_FTM0OCH3SRC_MASK 0x80000u
Kojto 90:cb3d968589d8 8017 #define SIM_SOPT8_FTM0OCH3SRC_SHIFT 19
Kojto 90:cb3d968589d8 8018 #define SIM_SOPT8_FTM0OCH4SRC_MASK 0x100000u
Kojto 90:cb3d968589d8 8019 #define SIM_SOPT8_FTM0OCH4SRC_SHIFT 20
Kojto 90:cb3d968589d8 8020 #define SIM_SOPT8_FTM0OCH5SRC_MASK 0x200000u
Kojto 90:cb3d968589d8 8021 #define SIM_SOPT8_FTM0OCH5SRC_SHIFT 21
Kojto 90:cb3d968589d8 8022 #define SIM_SOPT8_FTM0OCH6SRC_MASK 0x400000u
Kojto 90:cb3d968589d8 8023 #define SIM_SOPT8_FTM0OCH6SRC_SHIFT 22
Kojto 90:cb3d968589d8 8024 #define SIM_SOPT8_FTM0OCH7SRC_MASK 0x800000u
Kojto 90:cb3d968589d8 8025 #define SIM_SOPT8_FTM0OCH7SRC_SHIFT 23
Kojto 90:cb3d968589d8 8026 #define SIM_SOPT8_FTM3OCH0SRC_MASK 0x1000000u
Kojto 90:cb3d968589d8 8027 #define SIM_SOPT8_FTM3OCH0SRC_SHIFT 24
Kojto 90:cb3d968589d8 8028 #define SIM_SOPT8_FTM3OCH1SRC_MASK 0x2000000u
Kojto 90:cb3d968589d8 8029 #define SIM_SOPT8_FTM3OCH1SRC_SHIFT 25
Kojto 90:cb3d968589d8 8030 #define SIM_SOPT8_FTM3OCH2SRC_MASK 0x4000000u
Kojto 90:cb3d968589d8 8031 #define SIM_SOPT8_FTM3OCH2SRC_SHIFT 26
Kojto 90:cb3d968589d8 8032 #define SIM_SOPT8_FTM3OCH3SRC_MASK 0x8000000u
Kojto 90:cb3d968589d8 8033 #define SIM_SOPT8_FTM3OCH3SRC_SHIFT 27
Kojto 90:cb3d968589d8 8034 #define SIM_SOPT8_FTM3OCH4SRC_MASK 0x10000000u
Kojto 90:cb3d968589d8 8035 #define SIM_SOPT8_FTM3OCH4SRC_SHIFT 28
Kojto 90:cb3d968589d8 8036 #define SIM_SOPT8_FTM3OCH5SRC_MASK 0x20000000u
Kojto 90:cb3d968589d8 8037 #define SIM_SOPT8_FTM3OCH5SRC_SHIFT 29
Kojto 90:cb3d968589d8 8038 #define SIM_SOPT8_FTM3OCH6SRC_MASK 0x40000000u
Kojto 90:cb3d968589d8 8039 #define SIM_SOPT8_FTM3OCH6SRC_SHIFT 30
Kojto 90:cb3d968589d8 8040 #define SIM_SOPT8_FTM3OCH7SRC_MASK 0x80000000u
Kojto 90:cb3d968589d8 8041 #define SIM_SOPT8_FTM3OCH7SRC_SHIFT 31
Kojto 90:cb3d968589d8 8042 /* SDID Bit Fields */
Kojto 90:cb3d968589d8 8043 #define SIM_SDID_PINID_MASK 0xFu
Kojto 90:cb3d968589d8 8044 #define SIM_SDID_PINID_SHIFT 0
Kojto 90:cb3d968589d8 8045 #define SIM_SDID_PINID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_PINID_SHIFT))&SIM_SDID_PINID_MASK)
Kojto 90:cb3d968589d8 8046 #define SIM_SDID_FAMID_MASK 0x70u
Kojto 90:cb3d968589d8 8047 #define SIM_SDID_FAMID_SHIFT 4
Kojto 90:cb3d968589d8 8048 #define SIM_SDID_FAMID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_FAMID_SHIFT))&SIM_SDID_FAMID_MASK)
Kojto 90:cb3d968589d8 8049 #define SIM_SDID_DIEID_MASK 0xF80u
Kojto 90:cb3d968589d8 8050 #define SIM_SDID_DIEID_SHIFT 7
Kojto 90:cb3d968589d8 8051 #define SIM_SDID_DIEID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_DIEID_SHIFT))&SIM_SDID_DIEID_MASK)
Kojto 90:cb3d968589d8 8052 #define SIM_SDID_REVID_MASK 0xF000u
Kojto 90:cb3d968589d8 8053 #define SIM_SDID_REVID_SHIFT 12
Kojto 90:cb3d968589d8 8054 #define SIM_SDID_REVID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_REVID_SHIFT))&SIM_SDID_REVID_MASK)
Kojto 90:cb3d968589d8 8055 #define SIM_SDID_SERIESID_MASK 0xF00000u
Kojto 90:cb3d968589d8 8056 #define SIM_SDID_SERIESID_SHIFT 20
Kojto 90:cb3d968589d8 8057 #define SIM_SDID_SERIESID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_SERIESID_SHIFT))&SIM_SDID_SERIESID_MASK)
Kojto 90:cb3d968589d8 8058 #define SIM_SDID_SUBFAMID_MASK 0xF000000u
Kojto 90:cb3d968589d8 8059 #define SIM_SDID_SUBFAMID_SHIFT 24
Kojto 90:cb3d968589d8 8060 #define SIM_SDID_SUBFAMID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_SUBFAMID_SHIFT))&SIM_SDID_SUBFAMID_MASK)
Kojto 90:cb3d968589d8 8061 #define SIM_SDID_FAMILYID_MASK 0xF0000000u
Kojto 90:cb3d968589d8 8062 #define SIM_SDID_FAMILYID_SHIFT 28
Kojto 90:cb3d968589d8 8063 #define SIM_SDID_FAMILYID(x) (((uint32_t)(((uint32_t)(x))<<SIM_SDID_FAMILYID_SHIFT))&SIM_SDID_FAMILYID_MASK)
Kojto 90:cb3d968589d8 8064 /* SCGC4 Bit Fields */
Kojto 90:cb3d968589d8 8065 #define SIM_SCGC4_EWM_MASK 0x2u
Kojto 90:cb3d968589d8 8066 #define SIM_SCGC4_EWM_SHIFT 1
Kojto 90:cb3d968589d8 8067 #define SIM_SCGC4_I2C0_MASK 0x40u
Kojto 90:cb3d968589d8 8068 #define SIM_SCGC4_I2C0_SHIFT 6
Kojto 90:cb3d968589d8 8069 #define SIM_SCGC4_I2C1_MASK 0x80u
Kojto 90:cb3d968589d8 8070 #define SIM_SCGC4_I2C1_SHIFT 7
Kojto 90:cb3d968589d8 8071 #define SIM_SCGC4_UART0_MASK 0x400u
Kojto 90:cb3d968589d8 8072 #define SIM_SCGC4_UART0_SHIFT 10
Kojto 90:cb3d968589d8 8073 #define SIM_SCGC4_UART1_MASK 0x800u
Kojto 90:cb3d968589d8 8074 #define SIM_SCGC4_UART1_SHIFT 11
Kojto 90:cb3d968589d8 8075 #define SIM_SCGC4_UART2_MASK 0x1000u
Kojto 90:cb3d968589d8 8076 #define SIM_SCGC4_UART2_SHIFT 12
Kojto 90:cb3d968589d8 8077 #define SIM_SCGC4_USBOTG_MASK 0x40000u
Kojto 90:cb3d968589d8 8078 #define SIM_SCGC4_USBOTG_SHIFT 18
Kojto 90:cb3d968589d8 8079 #define SIM_SCGC4_CMP_MASK 0x80000u
Kojto 90:cb3d968589d8 8080 #define SIM_SCGC4_CMP_SHIFT 19
Kojto 90:cb3d968589d8 8081 #define SIM_SCGC4_VREF_MASK 0x100000u
Kojto 90:cb3d968589d8 8082 #define SIM_SCGC4_VREF_SHIFT 20
Kojto 90:cb3d968589d8 8083 /* SCGC5 Bit Fields */
Kojto 90:cb3d968589d8 8084 #define SIM_SCGC5_LPTMR_MASK 0x1u
Kojto 90:cb3d968589d8 8085 #define SIM_SCGC5_LPTMR_SHIFT 0
Kojto 90:cb3d968589d8 8086 #define SIM_SCGC5_PORTA_MASK 0x200u
Kojto 90:cb3d968589d8 8087 #define SIM_SCGC5_PORTA_SHIFT 9
Kojto 90:cb3d968589d8 8088 #define SIM_SCGC5_PORTB_MASK 0x400u
Kojto 90:cb3d968589d8 8089 #define SIM_SCGC5_PORTB_SHIFT 10
Kojto 90:cb3d968589d8 8090 #define SIM_SCGC5_PORTC_MASK 0x800u
Kojto 90:cb3d968589d8 8091 #define SIM_SCGC5_PORTC_SHIFT 11
Kojto 90:cb3d968589d8 8092 #define SIM_SCGC5_PORTD_MASK 0x1000u
Kojto 90:cb3d968589d8 8093 #define SIM_SCGC5_PORTD_SHIFT 12
Kojto 90:cb3d968589d8 8094 #define SIM_SCGC5_PORTE_MASK 0x2000u
Kojto 90:cb3d968589d8 8095 #define SIM_SCGC5_PORTE_SHIFT 13
Kojto 90:cb3d968589d8 8096 /* SCGC6 Bit Fields */
Kojto 90:cb3d968589d8 8097 #define SIM_SCGC6_FTF_MASK 0x1u
Kojto 90:cb3d968589d8 8098 #define SIM_SCGC6_FTF_SHIFT 0
Kojto 90:cb3d968589d8 8099 #define SIM_SCGC6_DMAMUX_MASK 0x2u
Kojto 90:cb3d968589d8 8100 #define SIM_SCGC6_DMAMUX_SHIFT 1
Kojto 90:cb3d968589d8 8101 #define SIM_SCGC6_FTM3_MASK 0x40u
Kojto 90:cb3d968589d8 8102 #define SIM_SCGC6_FTM3_SHIFT 6
Kojto 90:cb3d968589d8 8103 #define SIM_SCGC6_ADC1_MASK 0x80u
Kojto 90:cb3d968589d8 8104 #define SIM_SCGC6_ADC1_SHIFT 7
Kojto 90:cb3d968589d8 8105 #define SIM_SCGC6_DAC1_MASK 0x100u
Kojto 90:cb3d968589d8 8106 #define SIM_SCGC6_DAC1_SHIFT 8
Kojto 90:cb3d968589d8 8107 #define SIM_SCGC6_RNGA_MASK 0x200u
Kojto 90:cb3d968589d8 8108 #define SIM_SCGC6_RNGA_SHIFT 9
Kojto 90:cb3d968589d8 8109 #define SIM_SCGC6_LPUART0_MASK 0x400u
Kojto 90:cb3d968589d8 8110 #define SIM_SCGC6_LPUART0_SHIFT 10
Kojto 90:cb3d968589d8 8111 #define SIM_SCGC6_SPI0_MASK 0x1000u
Kojto 90:cb3d968589d8 8112 #define SIM_SCGC6_SPI0_SHIFT 12
Kojto 90:cb3d968589d8 8113 #define SIM_SCGC6_SPI1_MASK 0x2000u
Kojto 90:cb3d968589d8 8114 #define SIM_SCGC6_SPI1_SHIFT 13
Kojto 90:cb3d968589d8 8115 #define SIM_SCGC6_I2S_MASK 0x8000u
Kojto 90:cb3d968589d8 8116 #define SIM_SCGC6_I2S_SHIFT 15
Kojto 90:cb3d968589d8 8117 #define SIM_SCGC6_CRC_MASK 0x40000u
Kojto 90:cb3d968589d8 8118 #define SIM_SCGC6_CRC_SHIFT 18
Kojto 90:cb3d968589d8 8119 #define SIM_SCGC6_PDB_MASK 0x400000u
Kojto 90:cb3d968589d8 8120 #define SIM_SCGC6_PDB_SHIFT 22
Kojto 90:cb3d968589d8 8121 #define SIM_SCGC6_PIT_MASK 0x800000u
Kojto 90:cb3d968589d8 8122 #define SIM_SCGC6_PIT_SHIFT 23
Kojto 90:cb3d968589d8 8123 #define SIM_SCGC6_FTM0_MASK 0x1000000u
Kojto 90:cb3d968589d8 8124 #define SIM_SCGC6_FTM0_SHIFT 24
Kojto 90:cb3d968589d8 8125 #define SIM_SCGC6_FTM1_MASK 0x2000000u
Kojto 90:cb3d968589d8 8126 #define SIM_SCGC6_FTM1_SHIFT 25
Kojto 90:cb3d968589d8 8127 #define SIM_SCGC6_FTM2_MASK 0x4000000u
Kojto 90:cb3d968589d8 8128 #define SIM_SCGC6_FTM2_SHIFT 26
Kojto 90:cb3d968589d8 8129 #define SIM_SCGC6_ADC0_MASK 0x8000000u
Kojto 90:cb3d968589d8 8130 #define SIM_SCGC6_ADC0_SHIFT 27
Kojto 90:cb3d968589d8 8131 #define SIM_SCGC6_RTC_MASK 0x20000000u
Kojto 90:cb3d968589d8 8132 #define SIM_SCGC6_RTC_SHIFT 29
Kojto 90:cb3d968589d8 8133 #define SIM_SCGC6_DAC0_MASK 0x80000000u
Kojto 90:cb3d968589d8 8134 #define SIM_SCGC6_DAC0_SHIFT 31
Kojto 90:cb3d968589d8 8135 /* SCGC7 Bit Fields */
Kojto 90:cb3d968589d8 8136 #define SIM_SCGC7_FLEXBUS_MASK 0x1u
Kojto 90:cb3d968589d8 8137 #define SIM_SCGC7_FLEXBUS_SHIFT 0
Kojto 90:cb3d968589d8 8138 #define SIM_SCGC7_DMA_MASK 0x2u
Kojto 90:cb3d968589d8 8139 #define SIM_SCGC7_DMA_SHIFT 1
Kojto 90:cb3d968589d8 8140 /* CLKDIV1 Bit Fields */
Kojto 90:cb3d968589d8 8141 #define SIM_CLKDIV1_OUTDIV4_MASK 0xF0000u
Kojto 90:cb3d968589d8 8142 #define SIM_CLKDIV1_OUTDIV4_SHIFT 16
Kojto 90:cb3d968589d8 8143 #define SIM_CLKDIV1_OUTDIV4(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV1_OUTDIV4_SHIFT))&SIM_CLKDIV1_OUTDIV4_MASK)
Kojto 90:cb3d968589d8 8144 #define SIM_CLKDIV1_OUTDIV3_MASK 0xF00000u
Kojto 90:cb3d968589d8 8145 #define SIM_CLKDIV1_OUTDIV3_SHIFT 20
Kojto 90:cb3d968589d8 8146 #define SIM_CLKDIV1_OUTDIV3(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV1_OUTDIV3_SHIFT))&SIM_CLKDIV1_OUTDIV3_MASK)
Kojto 90:cb3d968589d8 8147 #define SIM_CLKDIV1_OUTDIV2_MASK 0xF000000u
Kojto 90:cb3d968589d8 8148 #define SIM_CLKDIV1_OUTDIV2_SHIFT 24
Kojto 90:cb3d968589d8 8149 #define SIM_CLKDIV1_OUTDIV2(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV1_OUTDIV2_SHIFT))&SIM_CLKDIV1_OUTDIV2_MASK)
Kojto 90:cb3d968589d8 8150 #define SIM_CLKDIV1_OUTDIV1_MASK 0xF0000000u
Kojto 90:cb3d968589d8 8151 #define SIM_CLKDIV1_OUTDIV1_SHIFT 28
Kojto 90:cb3d968589d8 8152 #define SIM_CLKDIV1_OUTDIV1(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV1_OUTDIV1_SHIFT))&SIM_CLKDIV1_OUTDIV1_MASK)
Kojto 90:cb3d968589d8 8153 /* CLKDIV2 Bit Fields */
Kojto 90:cb3d968589d8 8154 #define SIM_CLKDIV2_USBFRAC_MASK 0x1u
Kojto 90:cb3d968589d8 8155 #define SIM_CLKDIV2_USBFRAC_SHIFT 0
Kojto 90:cb3d968589d8 8156 #define SIM_CLKDIV2_USBDIV_MASK 0xEu
Kojto 90:cb3d968589d8 8157 #define SIM_CLKDIV2_USBDIV_SHIFT 1
Kojto 90:cb3d968589d8 8158 #define SIM_CLKDIV2_USBDIV(x) (((uint32_t)(((uint32_t)(x))<<SIM_CLKDIV2_USBDIV_SHIFT))&SIM_CLKDIV2_USBDIV_MASK)
Kojto 90:cb3d968589d8 8159 /* FCFG1 Bit Fields */
Kojto 90:cb3d968589d8 8160 #define SIM_FCFG1_FLASHDIS_MASK 0x1u
Kojto 90:cb3d968589d8 8161 #define SIM_FCFG1_FLASHDIS_SHIFT 0
Kojto 90:cb3d968589d8 8162 #define SIM_FCFG1_FLASHDOZE_MASK 0x2u
Kojto 90:cb3d968589d8 8163 #define SIM_FCFG1_FLASHDOZE_SHIFT 1
Kojto 90:cb3d968589d8 8164 #define SIM_FCFG1_PFSIZE_MASK 0xF000000u
Kojto 90:cb3d968589d8 8165 #define SIM_FCFG1_PFSIZE_SHIFT 24
Kojto 90:cb3d968589d8 8166 #define SIM_FCFG1_PFSIZE(x) (((uint32_t)(((uint32_t)(x))<<SIM_FCFG1_PFSIZE_SHIFT))&SIM_FCFG1_PFSIZE_MASK)
Kojto 90:cb3d968589d8 8167 /* FCFG2 Bit Fields */
Kojto 90:cb3d968589d8 8168 #define SIM_FCFG2_MAXADDR1_MASK 0x7F0000u
Kojto 90:cb3d968589d8 8169 #define SIM_FCFG2_MAXADDR1_SHIFT 16
Kojto 90:cb3d968589d8 8170 #define SIM_FCFG2_MAXADDR1(x) (((uint32_t)(((uint32_t)(x))<<SIM_FCFG2_MAXADDR1_SHIFT))&SIM_FCFG2_MAXADDR1_MASK)
Kojto 90:cb3d968589d8 8171 #define SIM_FCFG2_MAXADDR0_MASK 0x7F000000u
Kojto 90:cb3d968589d8 8172 #define SIM_FCFG2_MAXADDR0_SHIFT 24
Kojto 90:cb3d968589d8 8173 #define SIM_FCFG2_MAXADDR0(x) (((uint32_t)(((uint32_t)(x))<<SIM_FCFG2_MAXADDR0_SHIFT))&SIM_FCFG2_MAXADDR0_MASK)
Kojto 90:cb3d968589d8 8174 /* UIDH Bit Fields */
Kojto 90:cb3d968589d8 8175 #define SIM_UIDH_UID_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8176 #define SIM_UIDH_UID_SHIFT 0
Kojto 90:cb3d968589d8 8177 #define SIM_UIDH_UID(x) (((uint32_t)(((uint32_t)(x))<<SIM_UIDH_UID_SHIFT))&SIM_UIDH_UID_MASK)
Kojto 90:cb3d968589d8 8178 /* UIDMH Bit Fields */
Kojto 90:cb3d968589d8 8179 #define SIM_UIDMH_UID_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8180 #define SIM_UIDMH_UID_SHIFT 0
Kojto 90:cb3d968589d8 8181 #define SIM_UIDMH_UID(x) (((uint32_t)(((uint32_t)(x))<<SIM_UIDMH_UID_SHIFT))&SIM_UIDMH_UID_MASK)
Kojto 90:cb3d968589d8 8182 /* UIDML Bit Fields */
Kojto 90:cb3d968589d8 8183 #define SIM_UIDML_UID_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8184 #define SIM_UIDML_UID_SHIFT 0
Kojto 90:cb3d968589d8 8185 #define SIM_UIDML_UID(x) (((uint32_t)(((uint32_t)(x))<<SIM_UIDML_UID_SHIFT))&SIM_UIDML_UID_MASK)
Kojto 90:cb3d968589d8 8186 /* UIDL Bit Fields */
Kojto 90:cb3d968589d8 8187 #define SIM_UIDL_UID_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8188 #define SIM_UIDL_UID_SHIFT 0
Kojto 90:cb3d968589d8 8189 #define SIM_UIDL_UID(x) (((uint32_t)(((uint32_t)(x))<<SIM_UIDL_UID_SHIFT))&SIM_UIDL_UID_MASK)
Kojto 90:cb3d968589d8 8190
Kojto 90:cb3d968589d8 8191 /*!
Kojto 90:cb3d968589d8 8192 * @}
Kojto 90:cb3d968589d8 8193 */ /* end of group SIM_Register_Masks */
Kojto 90:cb3d968589d8 8194
Kojto 90:cb3d968589d8 8195
Kojto 90:cb3d968589d8 8196 /* SIM - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 8197 /** Peripheral SIM base address */
Kojto 90:cb3d968589d8 8198 #define SIM_BASE (0x40047000u)
Kojto 90:cb3d968589d8 8199 /** Peripheral SIM base pointer */
Kojto 90:cb3d968589d8 8200 #define SIM ((SIM_Type *)SIM_BASE)
Kojto 90:cb3d968589d8 8201 #define SIM_BASE_PTR (SIM)
Kojto 90:cb3d968589d8 8202 /** Array initializer of SIM peripheral base addresses */
Kojto 90:cb3d968589d8 8203 #define SIM_BASE_ADDRS { SIM_BASE }
Kojto 90:cb3d968589d8 8204 /** Array initializer of SIM peripheral base pointers */
Kojto 90:cb3d968589d8 8205 #define SIM_BASE_PTRS { SIM }
Kojto 90:cb3d968589d8 8206
Kojto 90:cb3d968589d8 8207 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8208 -- SIM - Register accessor macros
Kojto 90:cb3d968589d8 8209 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8210
Kojto 90:cb3d968589d8 8211 /*!
Kojto 90:cb3d968589d8 8212 * @addtogroup SIM_Register_Accessor_Macros SIM - Register accessor macros
Kojto 90:cb3d968589d8 8213 * @{
Kojto 90:cb3d968589d8 8214 */
Kojto 90:cb3d968589d8 8215
Kojto 90:cb3d968589d8 8216
Kojto 90:cb3d968589d8 8217 /* SIM - Register instance definitions */
Kojto 90:cb3d968589d8 8218 /* SIM */
Kojto 90:cb3d968589d8 8219 #define SIM_SOPT1 SIM_SOPT1_REG(SIM)
Kojto 90:cb3d968589d8 8220 #define SIM_SOPT1CFG SIM_SOPT1CFG_REG(SIM)
Kojto 90:cb3d968589d8 8221 #define SIM_SOPT2 SIM_SOPT2_REG(SIM)
Kojto 90:cb3d968589d8 8222 #define SIM_SOPT4 SIM_SOPT4_REG(SIM)
Kojto 90:cb3d968589d8 8223 #define SIM_SOPT5 SIM_SOPT5_REG(SIM)
Kojto 90:cb3d968589d8 8224 #define SIM_SOPT7 SIM_SOPT7_REG(SIM)
Kojto 90:cb3d968589d8 8225 #define SIM_SOPT8 SIM_SOPT8_REG(SIM)
Kojto 90:cb3d968589d8 8226 #define SIM_SDID SIM_SDID_REG(SIM)
Kojto 90:cb3d968589d8 8227 #define SIM_SCGC4 SIM_SCGC4_REG(SIM)
Kojto 90:cb3d968589d8 8228 #define SIM_SCGC5 SIM_SCGC5_REG(SIM)
Kojto 90:cb3d968589d8 8229 #define SIM_SCGC6 SIM_SCGC6_REG(SIM)
Kojto 90:cb3d968589d8 8230 #define SIM_SCGC7 SIM_SCGC7_REG(SIM)
Kojto 90:cb3d968589d8 8231 #define SIM_CLKDIV1 SIM_CLKDIV1_REG(SIM)
Kojto 90:cb3d968589d8 8232 #define SIM_CLKDIV2 SIM_CLKDIV2_REG(SIM)
Kojto 90:cb3d968589d8 8233 #define SIM_FCFG1 SIM_FCFG1_REG(SIM)
Kojto 90:cb3d968589d8 8234 #define SIM_FCFG2 SIM_FCFG2_REG(SIM)
Kojto 90:cb3d968589d8 8235 #define SIM_UIDH SIM_UIDH_REG(SIM)
Kojto 90:cb3d968589d8 8236 #define SIM_UIDMH SIM_UIDMH_REG(SIM)
Kojto 90:cb3d968589d8 8237 #define SIM_UIDML SIM_UIDML_REG(SIM)
Kojto 90:cb3d968589d8 8238 #define SIM_UIDL SIM_UIDL_REG(SIM)
Kojto 90:cb3d968589d8 8239
Kojto 90:cb3d968589d8 8240 /*!
Kojto 90:cb3d968589d8 8241 * @}
Kojto 90:cb3d968589d8 8242 */ /* end of group SIM_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 8243
Kojto 90:cb3d968589d8 8244
Kojto 90:cb3d968589d8 8245 /*!
Kojto 90:cb3d968589d8 8246 * @}
Kojto 90:cb3d968589d8 8247 */ /* end of group SIM_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 8248
Kojto 90:cb3d968589d8 8249
Kojto 90:cb3d968589d8 8250 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8251 -- SMC Peripheral Access Layer
Kojto 90:cb3d968589d8 8252 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8253
Kojto 90:cb3d968589d8 8254 /*!
Kojto 90:cb3d968589d8 8255 * @addtogroup SMC_Peripheral_Access_Layer SMC Peripheral Access Layer
Kojto 90:cb3d968589d8 8256 * @{
Kojto 90:cb3d968589d8 8257 */
Kojto 90:cb3d968589d8 8258
Kojto 90:cb3d968589d8 8259 /** SMC - Register Layout Typedef */
Kojto 90:cb3d968589d8 8260 typedef struct {
Kojto 90:cb3d968589d8 8261 __IO uint8_t PMPROT; /**< Power Mode Protection register, offset: 0x0 */
Kojto 90:cb3d968589d8 8262 __IO uint8_t PMCTRL; /**< Power Mode Control register, offset: 0x1 */
Kojto 90:cb3d968589d8 8263 __IO uint8_t STOPCTRL; /**< Stop Control Register, offset: 0x2 */
Kojto 90:cb3d968589d8 8264 __I uint8_t PMSTAT; /**< Power Mode Status register, offset: 0x3 */
Kojto 90:cb3d968589d8 8265 } SMC_Type, *SMC_MemMapPtr;
Kojto 90:cb3d968589d8 8266
Kojto 90:cb3d968589d8 8267 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8268 -- SMC - Register accessor macros
Kojto 90:cb3d968589d8 8269 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8270
Kojto 90:cb3d968589d8 8271 /*!
Kojto 90:cb3d968589d8 8272 * @addtogroup SMC_Register_Accessor_Macros SMC - Register accessor macros
Kojto 90:cb3d968589d8 8273 * @{
Kojto 90:cb3d968589d8 8274 */
Kojto 90:cb3d968589d8 8275
Kojto 90:cb3d968589d8 8276
Kojto 90:cb3d968589d8 8277 /* SMC - Register accessors */
Kojto 90:cb3d968589d8 8278 #define SMC_PMPROT_REG(base) ((base)->PMPROT)
Kojto 90:cb3d968589d8 8279 #define SMC_PMCTRL_REG(base) ((base)->PMCTRL)
Kojto 90:cb3d968589d8 8280 #define SMC_STOPCTRL_REG(base) ((base)->STOPCTRL)
Kojto 90:cb3d968589d8 8281 #define SMC_PMSTAT_REG(base) ((base)->PMSTAT)
Kojto 90:cb3d968589d8 8282
Kojto 90:cb3d968589d8 8283 /*!
Kojto 90:cb3d968589d8 8284 * @}
Kojto 90:cb3d968589d8 8285 */ /* end of group SMC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 8286
Kojto 90:cb3d968589d8 8287
Kojto 90:cb3d968589d8 8288 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8289 -- SMC Register Masks
Kojto 90:cb3d968589d8 8290 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8291
Kojto 90:cb3d968589d8 8292 /*!
Kojto 90:cb3d968589d8 8293 * @addtogroup SMC_Register_Masks SMC Register Masks
Kojto 90:cb3d968589d8 8294 * @{
Kojto 90:cb3d968589d8 8295 */
Kojto 90:cb3d968589d8 8296
Kojto 90:cb3d968589d8 8297 /* PMPROT Bit Fields */
Kojto 90:cb3d968589d8 8298 #define SMC_PMPROT_AVLLS_MASK 0x2u
Kojto 90:cb3d968589d8 8299 #define SMC_PMPROT_AVLLS_SHIFT 1
Kojto 90:cb3d968589d8 8300 #define SMC_PMPROT_ALLS_MASK 0x8u
Kojto 90:cb3d968589d8 8301 #define SMC_PMPROT_ALLS_SHIFT 3
Kojto 90:cb3d968589d8 8302 #define SMC_PMPROT_AVLP_MASK 0x20u
Kojto 90:cb3d968589d8 8303 #define SMC_PMPROT_AVLP_SHIFT 5
Kojto 90:cb3d968589d8 8304 #define SMC_PMPROT_AHSRUN_MASK 0x80u
Kojto 90:cb3d968589d8 8305 #define SMC_PMPROT_AHSRUN_SHIFT 7
Kojto 90:cb3d968589d8 8306 /* PMCTRL Bit Fields */
Kojto 90:cb3d968589d8 8307 #define SMC_PMCTRL_STOPM_MASK 0x7u
Kojto 90:cb3d968589d8 8308 #define SMC_PMCTRL_STOPM_SHIFT 0
Kojto 90:cb3d968589d8 8309 #define SMC_PMCTRL_STOPM(x) (((uint8_t)(((uint8_t)(x))<<SMC_PMCTRL_STOPM_SHIFT))&SMC_PMCTRL_STOPM_MASK)
Kojto 90:cb3d968589d8 8310 #define SMC_PMCTRL_STOPA_MASK 0x8u
Kojto 90:cb3d968589d8 8311 #define SMC_PMCTRL_STOPA_SHIFT 3
Kojto 90:cb3d968589d8 8312 #define SMC_PMCTRL_RUNM_MASK 0x60u
Kojto 90:cb3d968589d8 8313 #define SMC_PMCTRL_RUNM_SHIFT 5
Kojto 90:cb3d968589d8 8314 #define SMC_PMCTRL_RUNM(x) (((uint8_t)(((uint8_t)(x))<<SMC_PMCTRL_RUNM_SHIFT))&SMC_PMCTRL_RUNM_MASK)
Kojto 90:cb3d968589d8 8315 /* STOPCTRL Bit Fields */
Kojto 90:cb3d968589d8 8316 #define SMC_STOPCTRL_LLSM_MASK 0x7u
Kojto 90:cb3d968589d8 8317 #define SMC_STOPCTRL_LLSM_SHIFT 0
Kojto 90:cb3d968589d8 8318 #define SMC_STOPCTRL_LLSM(x) (((uint8_t)(((uint8_t)(x))<<SMC_STOPCTRL_LLSM_SHIFT))&SMC_STOPCTRL_LLSM_MASK)
Kojto 90:cb3d968589d8 8319 #define SMC_STOPCTRL_PORPO_MASK 0x20u
Kojto 90:cb3d968589d8 8320 #define SMC_STOPCTRL_PORPO_SHIFT 5
Kojto 90:cb3d968589d8 8321 #define SMC_STOPCTRL_PSTOPO_MASK 0xC0u
Kojto 90:cb3d968589d8 8322 #define SMC_STOPCTRL_PSTOPO_SHIFT 6
Kojto 90:cb3d968589d8 8323 #define SMC_STOPCTRL_PSTOPO(x) (((uint8_t)(((uint8_t)(x))<<SMC_STOPCTRL_PSTOPO_SHIFT))&SMC_STOPCTRL_PSTOPO_MASK)
Kojto 90:cb3d968589d8 8324 /* PMSTAT Bit Fields */
Kojto 90:cb3d968589d8 8325 #define SMC_PMSTAT_PMSTAT_MASK 0xFFu
Kojto 90:cb3d968589d8 8326 #define SMC_PMSTAT_PMSTAT_SHIFT 0
Kojto 90:cb3d968589d8 8327 #define SMC_PMSTAT_PMSTAT(x) (((uint8_t)(((uint8_t)(x))<<SMC_PMSTAT_PMSTAT_SHIFT))&SMC_PMSTAT_PMSTAT_MASK)
Kojto 90:cb3d968589d8 8328
Kojto 90:cb3d968589d8 8329 /*!
Kojto 90:cb3d968589d8 8330 * @}
Kojto 90:cb3d968589d8 8331 */ /* end of group SMC_Register_Masks */
Kojto 90:cb3d968589d8 8332
Kojto 90:cb3d968589d8 8333
Kojto 90:cb3d968589d8 8334 /* SMC - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 8335 /** Peripheral SMC base address */
Kojto 90:cb3d968589d8 8336 #define SMC_BASE (0x4007E000u)
Kojto 90:cb3d968589d8 8337 /** Peripheral SMC base pointer */
Kojto 90:cb3d968589d8 8338 #define SMC ((SMC_Type *)SMC_BASE)
Kojto 90:cb3d968589d8 8339 #define SMC_BASE_PTR (SMC)
Kojto 90:cb3d968589d8 8340 /** Array initializer of SMC peripheral base addresses */
Kojto 90:cb3d968589d8 8341 #define SMC_BASE_ADDRS { SMC_BASE }
Kojto 90:cb3d968589d8 8342 /** Array initializer of SMC peripheral base pointers */
Kojto 90:cb3d968589d8 8343 #define SMC_BASE_PTRS { SMC }
Kojto 90:cb3d968589d8 8344
Kojto 90:cb3d968589d8 8345 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8346 -- SMC - Register accessor macros
Kojto 90:cb3d968589d8 8347 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8348
Kojto 90:cb3d968589d8 8349 /*!
Kojto 90:cb3d968589d8 8350 * @addtogroup SMC_Register_Accessor_Macros SMC - Register accessor macros
Kojto 90:cb3d968589d8 8351 * @{
Kojto 90:cb3d968589d8 8352 */
Kojto 90:cb3d968589d8 8353
Kojto 90:cb3d968589d8 8354
Kojto 90:cb3d968589d8 8355 /* SMC - Register instance definitions */
Kojto 90:cb3d968589d8 8356 /* SMC */
Kojto 90:cb3d968589d8 8357 #define SMC_PMPROT SMC_PMPROT_REG(SMC)
Kojto 90:cb3d968589d8 8358 #define SMC_PMCTRL SMC_PMCTRL_REG(SMC)
Kojto 90:cb3d968589d8 8359 #define SMC_STOPCTRL SMC_STOPCTRL_REG(SMC)
Kojto 90:cb3d968589d8 8360 #define SMC_PMSTAT SMC_PMSTAT_REG(SMC)
Kojto 90:cb3d968589d8 8361
Kojto 90:cb3d968589d8 8362 /*!
Kojto 90:cb3d968589d8 8363 * @}
Kojto 90:cb3d968589d8 8364 */ /* end of group SMC_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 8365
Kojto 90:cb3d968589d8 8366
Kojto 90:cb3d968589d8 8367 /*!
Kojto 90:cb3d968589d8 8368 * @}
Kojto 90:cb3d968589d8 8369 */ /* end of group SMC_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 8370
Kojto 90:cb3d968589d8 8371
Kojto 90:cb3d968589d8 8372 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8373 -- SPI Peripheral Access Layer
Kojto 90:cb3d968589d8 8374 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8375
Kojto 90:cb3d968589d8 8376 /*!
Kojto 90:cb3d968589d8 8377 * @addtogroup SPI_Peripheral_Access_Layer SPI Peripheral Access Layer
Kojto 90:cb3d968589d8 8378 * @{
Kojto 90:cb3d968589d8 8379 */
Kojto 90:cb3d968589d8 8380
Kojto 90:cb3d968589d8 8381 /** SPI - Register Layout Typedef */
Kojto 90:cb3d968589d8 8382 typedef struct {
Kojto 90:cb3d968589d8 8383 __IO uint32_t MCR; /**< Module Configuration Register, offset: 0x0 */
Kojto 90:cb3d968589d8 8384 uint8_t RESERVED_0[4];
Kojto 90:cb3d968589d8 8385 __IO uint32_t TCR; /**< Transfer Count Register, offset: 0x8 */
Kojto 90:cb3d968589d8 8386 union { /* offset: 0xC */
Kojto 90:cb3d968589d8 8387 __IO uint32_t CTAR[2]; /**< Clock and Transfer Attributes Register (In Master Mode), array offset: 0xC, array step: 0x4 */
Kojto 90:cb3d968589d8 8388 __IO uint32_t CTAR_SLAVE[1]; /**< Clock and Transfer Attributes Register (In Slave Mode), array offset: 0xC, array step: 0x4 */
Kojto 90:cb3d968589d8 8389 };
Kojto 90:cb3d968589d8 8390 uint8_t RESERVED_1[24];
Kojto 90:cb3d968589d8 8391 __IO uint32_t SR; /**< Status Register, offset: 0x2C */
Kojto 90:cb3d968589d8 8392 __IO uint32_t RSER; /**< DMA/Interrupt Request Select and Enable Register, offset: 0x30 */
Kojto 90:cb3d968589d8 8393 union { /* offset: 0x34 */
Kojto 90:cb3d968589d8 8394 __IO uint32_t PUSHR; /**< PUSH TX FIFO Register In Master Mode, offset: 0x34 */
Kojto 90:cb3d968589d8 8395 __IO uint32_t PUSHR_SLAVE; /**< PUSH TX FIFO Register In Slave Mode, offset: 0x34 */
Kojto 90:cb3d968589d8 8396 };
Kojto 90:cb3d968589d8 8397 __I uint32_t POPR; /**< POP RX FIFO Register, offset: 0x38 */
Kojto 90:cb3d968589d8 8398 __I uint32_t TXFR0; /**< Transmit FIFO Registers, offset: 0x3C */
Kojto 90:cb3d968589d8 8399 __I uint32_t TXFR1; /**< Transmit FIFO Registers, offset: 0x40 */
Kojto 90:cb3d968589d8 8400 __I uint32_t TXFR2; /**< Transmit FIFO Registers, offset: 0x44 */
Kojto 90:cb3d968589d8 8401 __I uint32_t TXFR3; /**< Transmit FIFO Registers, offset: 0x48 */
Kojto 90:cb3d968589d8 8402 uint8_t RESERVED_2[48];
Kojto 90:cb3d968589d8 8403 __I uint32_t RXFR0; /**< Receive FIFO Registers, offset: 0x7C */
Kojto 90:cb3d968589d8 8404 __I uint32_t RXFR1; /**< Receive FIFO Registers, offset: 0x80 */
Kojto 90:cb3d968589d8 8405 __I uint32_t RXFR2; /**< Receive FIFO Registers, offset: 0x84 */
Kojto 90:cb3d968589d8 8406 __I uint32_t RXFR3; /**< Receive FIFO Registers, offset: 0x88 */
Kojto 90:cb3d968589d8 8407 } SPI_Type, *SPI_MemMapPtr;
Kojto 90:cb3d968589d8 8408
Kojto 90:cb3d968589d8 8409 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8410 -- SPI - Register accessor macros
Kojto 90:cb3d968589d8 8411 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8412
Kojto 90:cb3d968589d8 8413 /*!
Kojto 90:cb3d968589d8 8414 * @addtogroup SPI_Register_Accessor_Macros SPI - Register accessor macros
Kojto 90:cb3d968589d8 8415 * @{
Kojto 90:cb3d968589d8 8416 */
Kojto 90:cb3d968589d8 8417
Kojto 90:cb3d968589d8 8418
Kojto 90:cb3d968589d8 8419 /* SPI - Register accessors */
Kojto 90:cb3d968589d8 8420 #define SPI_MCR_REG(base) ((base)->MCR)
Kojto 90:cb3d968589d8 8421 #define SPI_TCR_REG(base) ((base)->TCR)
Kojto 90:cb3d968589d8 8422 #define SPI_CTAR_REG(base,index2) ((base)->CTAR[index2])
Kojto 90:cb3d968589d8 8423 #define SPI_CTAR_SLAVE_REG(base,index2) ((base)->CTAR_SLAVE[index2])
Kojto 90:cb3d968589d8 8424 #define SPI_SR_REG(base) ((base)->SR)
Kojto 90:cb3d968589d8 8425 #define SPI_RSER_REG(base) ((base)->RSER)
Kojto 90:cb3d968589d8 8426 #define SPI_PUSHR_REG(base) ((base)->PUSHR)
Kojto 90:cb3d968589d8 8427 #define SPI_PUSHR_SLAVE_REG(base) ((base)->PUSHR_SLAVE)
Kojto 90:cb3d968589d8 8428 #define SPI_POPR_REG(base) ((base)->POPR)
Kojto 90:cb3d968589d8 8429 #define SPI_TXFR0_REG(base) ((base)->TXFR0)
Kojto 90:cb3d968589d8 8430 #define SPI_TXFR1_REG(base) ((base)->TXFR1)
Kojto 90:cb3d968589d8 8431 #define SPI_TXFR2_REG(base) ((base)->TXFR2)
Kojto 90:cb3d968589d8 8432 #define SPI_TXFR3_REG(base) ((base)->TXFR3)
Kojto 90:cb3d968589d8 8433 #define SPI_RXFR0_REG(base) ((base)->RXFR0)
Kojto 90:cb3d968589d8 8434 #define SPI_RXFR1_REG(base) ((base)->RXFR1)
Kojto 90:cb3d968589d8 8435 #define SPI_RXFR2_REG(base) ((base)->RXFR2)
Kojto 90:cb3d968589d8 8436 #define SPI_RXFR3_REG(base) ((base)->RXFR3)
Kojto 90:cb3d968589d8 8437
Kojto 90:cb3d968589d8 8438 /*!
Kojto 90:cb3d968589d8 8439 * @}
Kojto 90:cb3d968589d8 8440 */ /* end of group SPI_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 8441
Kojto 90:cb3d968589d8 8442
Kojto 90:cb3d968589d8 8443 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8444 -- SPI Register Masks
Kojto 90:cb3d968589d8 8445 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8446
Kojto 90:cb3d968589d8 8447 /*!
Kojto 90:cb3d968589d8 8448 * @addtogroup SPI_Register_Masks SPI Register Masks
Kojto 90:cb3d968589d8 8449 * @{
Kojto 90:cb3d968589d8 8450 */
Kojto 90:cb3d968589d8 8451
Kojto 90:cb3d968589d8 8452 /* MCR Bit Fields */
Kojto 90:cb3d968589d8 8453 #define SPI_MCR_HALT_MASK 0x1u
Kojto 90:cb3d968589d8 8454 #define SPI_MCR_HALT_SHIFT 0
Kojto 90:cb3d968589d8 8455 #define SPI_MCR_SMPL_PT_MASK 0x300u
Kojto 90:cb3d968589d8 8456 #define SPI_MCR_SMPL_PT_SHIFT 8
Kojto 90:cb3d968589d8 8457 #define SPI_MCR_SMPL_PT(x) (((uint32_t)(((uint32_t)(x))<<SPI_MCR_SMPL_PT_SHIFT))&SPI_MCR_SMPL_PT_MASK)
Kojto 90:cb3d968589d8 8458 #define SPI_MCR_CLR_RXF_MASK 0x400u
Kojto 90:cb3d968589d8 8459 #define SPI_MCR_CLR_RXF_SHIFT 10
Kojto 90:cb3d968589d8 8460 #define SPI_MCR_CLR_TXF_MASK 0x800u
Kojto 90:cb3d968589d8 8461 #define SPI_MCR_CLR_TXF_SHIFT 11
Kojto 90:cb3d968589d8 8462 #define SPI_MCR_DIS_RXF_MASK 0x1000u
Kojto 90:cb3d968589d8 8463 #define SPI_MCR_DIS_RXF_SHIFT 12
Kojto 90:cb3d968589d8 8464 #define SPI_MCR_DIS_TXF_MASK 0x2000u
Kojto 90:cb3d968589d8 8465 #define SPI_MCR_DIS_TXF_SHIFT 13
Kojto 90:cb3d968589d8 8466 #define SPI_MCR_MDIS_MASK 0x4000u
Kojto 90:cb3d968589d8 8467 #define SPI_MCR_MDIS_SHIFT 14
Kojto 90:cb3d968589d8 8468 #define SPI_MCR_DOZE_MASK 0x8000u
Kojto 90:cb3d968589d8 8469 #define SPI_MCR_DOZE_SHIFT 15
Kojto 90:cb3d968589d8 8470 #define SPI_MCR_PCSIS_MASK 0x3F0000u
Kojto 90:cb3d968589d8 8471 #define SPI_MCR_PCSIS_SHIFT 16
Kojto 90:cb3d968589d8 8472 #define SPI_MCR_PCSIS(x) (((uint32_t)(((uint32_t)(x))<<SPI_MCR_PCSIS_SHIFT))&SPI_MCR_PCSIS_MASK)
Kojto 90:cb3d968589d8 8473 #define SPI_MCR_ROOE_MASK 0x1000000u
Kojto 90:cb3d968589d8 8474 #define SPI_MCR_ROOE_SHIFT 24
Kojto 90:cb3d968589d8 8475 #define SPI_MCR_PCSSE_MASK 0x2000000u
Kojto 90:cb3d968589d8 8476 #define SPI_MCR_PCSSE_SHIFT 25
Kojto 90:cb3d968589d8 8477 #define SPI_MCR_MTFE_MASK 0x4000000u
Kojto 90:cb3d968589d8 8478 #define SPI_MCR_MTFE_SHIFT 26
Kojto 90:cb3d968589d8 8479 #define SPI_MCR_FRZ_MASK 0x8000000u
Kojto 90:cb3d968589d8 8480 #define SPI_MCR_FRZ_SHIFT 27
Kojto 90:cb3d968589d8 8481 #define SPI_MCR_DCONF_MASK 0x30000000u
Kojto 90:cb3d968589d8 8482 #define SPI_MCR_DCONF_SHIFT 28
Kojto 90:cb3d968589d8 8483 #define SPI_MCR_DCONF(x) (((uint32_t)(((uint32_t)(x))<<SPI_MCR_DCONF_SHIFT))&SPI_MCR_DCONF_MASK)
Kojto 90:cb3d968589d8 8484 #define SPI_MCR_CONT_SCKE_MASK 0x40000000u
Kojto 90:cb3d968589d8 8485 #define SPI_MCR_CONT_SCKE_SHIFT 30
Kojto 90:cb3d968589d8 8486 #define SPI_MCR_MSTR_MASK 0x80000000u
Kojto 90:cb3d968589d8 8487 #define SPI_MCR_MSTR_SHIFT 31
Kojto 90:cb3d968589d8 8488 /* TCR Bit Fields */
Kojto 90:cb3d968589d8 8489 #define SPI_TCR_SPI_TCNT_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 8490 #define SPI_TCR_SPI_TCNT_SHIFT 16
Kojto 90:cb3d968589d8 8491 #define SPI_TCR_SPI_TCNT(x) (((uint32_t)(((uint32_t)(x))<<SPI_TCR_SPI_TCNT_SHIFT))&SPI_TCR_SPI_TCNT_MASK)
Kojto 90:cb3d968589d8 8492 /* CTAR Bit Fields */
Kojto 90:cb3d968589d8 8493 #define SPI_CTAR_BR_MASK 0xFu
Kojto 90:cb3d968589d8 8494 #define SPI_CTAR_BR_SHIFT 0
Kojto 90:cb3d968589d8 8495 #define SPI_CTAR_BR(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_BR_SHIFT))&SPI_CTAR_BR_MASK)
Kojto 90:cb3d968589d8 8496 #define SPI_CTAR_DT_MASK 0xF0u
Kojto 90:cb3d968589d8 8497 #define SPI_CTAR_DT_SHIFT 4
Kojto 90:cb3d968589d8 8498 #define SPI_CTAR_DT(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_DT_SHIFT))&SPI_CTAR_DT_MASK)
Kojto 90:cb3d968589d8 8499 #define SPI_CTAR_ASC_MASK 0xF00u
Kojto 90:cb3d968589d8 8500 #define SPI_CTAR_ASC_SHIFT 8
Kojto 90:cb3d968589d8 8501 #define SPI_CTAR_ASC(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_ASC_SHIFT))&SPI_CTAR_ASC_MASK)
Kojto 90:cb3d968589d8 8502 #define SPI_CTAR_CSSCK_MASK 0xF000u
Kojto 90:cb3d968589d8 8503 #define SPI_CTAR_CSSCK_SHIFT 12
Kojto 90:cb3d968589d8 8504 #define SPI_CTAR_CSSCK(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_CSSCK_SHIFT))&SPI_CTAR_CSSCK_MASK)
Kojto 90:cb3d968589d8 8505 #define SPI_CTAR_PBR_MASK 0x30000u
Kojto 90:cb3d968589d8 8506 #define SPI_CTAR_PBR_SHIFT 16
Kojto 90:cb3d968589d8 8507 #define SPI_CTAR_PBR(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_PBR_SHIFT))&SPI_CTAR_PBR_MASK)
Kojto 90:cb3d968589d8 8508 #define SPI_CTAR_PDT_MASK 0xC0000u
Kojto 90:cb3d968589d8 8509 #define SPI_CTAR_PDT_SHIFT 18
Kojto 90:cb3d968589d8 8510 #define SPI_CTAR_PDT(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_PDT_SHIFT))&SPI_CTAR_PDT_MASK)
Kojto 90:cb3d968589d8 8511 #define SPI_CTAR_PASC_MASK 0x300000u
Kojto 90:cb3d968589d8 8512 #define SPI_CTAR_PASC_SHIFT 20
Kojto 90:cb3d968589d8 8513 #define SPI_CTAR_PASC(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_PASC_SHIFT))&SPI_CTAR_PASC_MASK)
Kojto 90:cb3d968589d8 8514 #define SPI_CTAR_PCSSCK_MASK 0xC00000u
Kojto 90:cb3d968589d8 8515 #define SPI_CTAR_PCSSCK_SHIFT 22
Kojto 90:cb3d968589d8 8516 #define SPI_CTAR_PCSSCK(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_PCSSCK_SHIFT))&SPI_CTAR_PCSSCK_MASK)
Kojto 90:cb3d968589d8 8517 #define SPI_CTAR_LSBFE_MASK 0x1000000u
Kojto 90:cb3d968589d8 8518 #define SPI_CTAR_LSBFE_SHIFT 24
Kojto 90:cb3d968589d8 8519 #define SPI_CTAR_CPHA_MASK 0x2000000u
Kojto 90:cb3d968589d8 8520 #define SPI_CTAR_CPHA_SHIFT 25
Kojto 90:cb3d968589d8 8521 #define SPI_CTAR_CPOL_MASK 0x4000000u
Kojto 90:cb3d968589d8 8522 #define SPI_CTAR_CPOL_SHIFT 26
Kojto 90:cb3d968589d8 8523 #define SPI_CTAR_FMSZ_MASK 0x78000000u
Kojto 90:cb3d968589d8 8524 #define SPI_CTAR_FMSZ_SHIFT 27
Kojto 90:cb3d968589d8 8525 #define SPI_CTAR_FMSZ(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_FMSZ_SHIFT))&SPI_CTAR_FMSZ_MASK)
Kojto 90:cb3d968589d8 8526 #define SPI_CTAR_DBR_MASK 0x80000000u
Kojto 90:cb3d968589d8 8527 #define SPI_CTAR_DBR_SHIFT 31
Kojto 90:cb3d968589d8 8528 /* CTAR_SLAVE Bit Fields */
Kojto 90:cb3d968589d8 8529 #define SPI_CTAR_SLAVE_CPHA_MASK 0x2000000u
Kojto 90:cb3d968589d8 8530 #define SPI_CTAR_SLAVE_CPHA_SHIFT 25
Kojto 90:cb3d968589d8 8531 #define SPI_CTAR_SLAVE_CPOL_MASK 0x4000000u
Kojto 90:cb3d968589d8 8532 #define SPI_CTAR_SLAVE_CPOL_SHIFT 26
Kojto 90:cb3d968589d8 8533 #define SPI_CTAR_SLAVE_FMSZ_MASK 0xF8000000u
Kojto 90:cb3d968589d8 8534 #define SPI_CTAR_SLAVE_FMSZ_SHIFT 27
Kojto 90:cb3d968589d8 8535 #define SPI_CTAR_SLAVE_FMSZ(x) (((uint32_t)(((uint32_t)(x))<<SPI_CTAR_SLAVE_FMSZ_SHIFT))&SPI_CTAR_SLAVE_FMSZ_MASK)
Kojto 90:cb3d968589d8 8536 /* SR Bit Fields */
Kojto 90:cb3d968589d8 8537 #define SPI_SR_POPNXTPTR_MASK 0xFu
Kojto 90:cb3d968589d8 8538 #define SPI_SR_POPNXTPTR_SHIFT 0
Kojto 90:cb3d968589d8 8539 #define SPI_SR_POPNXTPTR(x) (((uint32_t)(((uint32_t)(x))<<SPI_SR_POPNXTPTR_SHIFT))&SPI_SR_POPNXTPTR_MASK)
Kojto 90:cb3d968589d8 8540 #define SPI_SR_RXCTR_MASK 0xF0u
Kojto 90:cb3d968589d8 8541 #define SPI_SR_RXCTR_SHIFT 4
Kojto 90:cb3d968589d8 8542 #define SPI_SR_RXCTR(x) (((uint32_t)(((uint32_t)(x))<<SPI_SR_RXCTR_SHIFT))&SPI_SR_RXCTR_MASK)
Kojto 90:cb3d968589d8 8543 #define SPI_SR_TXNXTPTR_MASK 0xF00u
Kojto 90:cb3d968589d8 8544 #define SPI_SR_TXNXTPTR_SHIFT 8
Kojto 90:cb3d968589d8 8545 #define SPI_SR_TXNXTPTR(x) (((uint32_t)(((uint32_t)(x))<<SPI_SR_TXNXTPTR_SHIFT))&SPI_SR_TXNXTPTR_MASK)
Kojto 90:cb3d968589d8 8546 #define SPI_SR_TXCTR_MASK 0xF000u
Kojto 90:cb3d968589d8 8547 #define SPI_SR_TXCTR_SHIFT 12
Kojto 90:cb3d968589d8 8548 #define SPI_SR_TXCTR(x) (((uint32_t)(((uint32_t)(x))<<SPI_SR_TXCTR_SHIFT))&SPI_SR_TXCTR_MASK)
Kojto 90:cb3d968589d8 8549 #define SPI_SR_RFDF_MASK 0x20000u
Kojto 90:cb3d968589d8 8550 #define SPI_SR_RFDF_SHIFT 17
Kojto 90:cb3d968589d8 8551 #define SPI_SR_RFOF_MASK 0x80000u
Kojto 90:cb3d968589d8 8552 #define SPI_SR_RFOF_SHIFT 19
Kojto 90:cb3d968589d8 8553 #define SPI_SR_TFFF_MASK 0x2000000u
Kojto 90:cb3d968589d8 8554 #define SPI_SR_TFFF_SHIFT 25
Kojto 90:cb3d968589d8 8555 #define SPI_SR_TFUF_MASK 0x8000000u
Kojto 90:cb3d968589d8 8556 #define SPI_SR_TFUF_SHIFT 27
Kojto 90:cb3d968589d8 8557 #define SPI_SR_EOQF_MASK 0x10000000u
Kojto 90:cb3d968589d8 8558 #define SPI_SR_EOQF_SHIFT 28
Kojto 90:cb3d968589d8 8559 #define SPI_SR_TXRXS_MASK 0x40000000u
Kojto 90:cb3d968589d8 8560 #define SPI_SR_TXRXS_SHIFT 30
Kojto 90:cb3d968589d8 8561 #define SPI_SR_TCF_MASK 0x80000000u
Kojto 90:cb3d968589d8 8562 #define SPI_SR_TCF_SHIFT 31
Kojto 90:cb3d968589d8 8563 /* RSER Bit Fields */
Kojto 90:cb3d968589d8 8564 #define SPI_RSER_RFDF_DIRS_MASK 0x10000u
Kojto 90:cb3d968589d8 8565 #define SPI_RSER_RFDF_DIRS_SHIFT 16
Kojto 90:cb3d968589d8 8566 #define SPI_RSER_RFDF_RE_MASK 0x20000u
Kojto 90:cb3d968589d8 8567 #define SPI_RSER_RFDF_RE_SHIFT 17
Kojto 90:cb3d968589d8 8568 #define SPI_RSER_RFOF_RE_MASK 0x80000u
Kojto 90:cb3d968589d8 8569 #define SPI_RSER_RFOF_RE_SHIFT 19
Kojto 90:cb3d968589d8 8570 #define SPI_RSER_TFFF_DIRS_MASK 0x1000000u
Kojto 90:cb3d968589d8 8571 #define SPI_RSER_TFFF_DIRS_SHIFT 24
Kojto 90:cb3d968589d8 8572 #define SPI_RSER_TFFF_RE_MASK 0x2000000u
Kojto 90:cb3d968589d8 8573 #define SPI_RSER_TFFF_RE_SHIFT 25
Kojto 90:cb3d968589d8 8574 #define SPI_RSER_TFUF_RE_MASK 0x8000000u
Kojto 90:cb3d968589d8 8575 #define SPI_RSER_TFUF_RE_SHIFT 27
Kojto 90:cb3d968589d8 8576 #define SPI_RSER_EOQF_RE_MASK 0x10000000u
Kojto 90:cb3d968589d8 8577 #define SPI_RSER_EOQF_RE_SHIFT 28
Kojto 90:cb3d968589d8 8578 #define SPI_RSER_TCF_RE_MASK 0x80000000u
Kojto 90:cb3d968589d8 8579 #define SPI_RSER_TCF_RE_SHIFT 31
Kojto 90:cb3d968589d8 8580 /* PUSHR Bit Fields */
Kojto 90:cb3d968589d8 8581 #define SPI_PUSHR_TXDATA_MASK 0xFFFFu
Kojto 90:cb3d968589d8 8582 #define SPI_PUSHR_TXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8583 #define SPI_PUSHR_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_PUSHR_TXDATA_SHIFT))&SPI_PUSHR_TXDATA_MASK)
Kojto 90:cb3d968589d8 8584 #define SPI_PUSHR_PCS_MASK 0x3F0000u
Kojto 90:cb3d968589d8 8585 #define SPI_PUSHR_PCS_SHIFT 16
Kojto 90:cb3d968589d8 8586 #define SPI_PUSHR_PCS(x) (((uint32_t)(((uint32_t)(x))<<SPI_PUSHR_PCS_SHIFT))&SPI_PUSHR_PCS_MASK)
Kojto 90:cb3d968589d8 8587 #define SPI_PUSHR_CTCNT_MASK 0x4000000u
Kojto 90:cb3d968589d8 8588 #define SPI_PUSHR_CTCNT_SHIFT 26
Kojto 90:cb3d968589d8 8589 #define SPI_PUSHR_EOQ_MASK 0x8000000u
Kojto 90:cb3d968589d8 8590 #define SPI_PUSHR_EOQ_SHIFT 27
Kojto 90:cb3d968589d8 8591 #define SPI_PUSHR_CTAS_MASK 0x70000000u
Kojto 90:cb3d968589d8 8592 #define SPI_PUSHR_CTAS_SHIFT 28
Kojto 90:cb3d968589d8 8593 #define SPI_PUSHR_CTAS(x) (((uint32_t)(((uint32_t)(x))<<SPI_PUSHR_CTAS_SHIFT))&SPI_PUSHR_CTAS_MASK)
Kojto 90:cb3d968589d8 8594 #define SPI_PUSHR_CONT_MASK 0x80000000u
Kojto 90:cb3d968589d8 8595 #define SPI_PUSHR_CONT_SHIFT 31
Kojto 90:cb3d968589d8 8596 /* PUSHR_SLAVE Bit Fields */
Kojto 90:cb3d968589d8 8597 #define SPI_PUSHR_SLAVE_TXDATA_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8598 #define SPI_PUSHR_SLAVE_TXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8599 #define SPI_PUSHR_SLAVE_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_PUSHR_SLAVE_TXDATA_SHIFT))&SPI_PUSHR_SLAVE_TXDATA_MASK)
Kojto 90:cb3d968589d8 8600 /* POPR Bit Fields */
Kojto 90:cb3d968589d8 8601 #define SPI_POPR_RXDATA_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8602 #define SPI_POPR_RXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8603 #define SPI_POPR_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_POPR_RXDATA_SHIFT))&SPI_POPR_RXDATA_MASK)
Kojto 90:cb3d968589d8 8604 /* TXFR0 Bit Fields */
Kojto 90:cb3d968589d8 8605 #define SPI_TXFR0_TXDATA_MASK 0xFFFFu
Kojto 90:cb3d968589d8 8606 #define SPI_TXFR0_TXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8607 #define SPI_TXFR0_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR0_TXDATA_SHIFT))&SPI_TXFR0_TXDATA_MASK)
Kojto 90:cb3d968589d8 8608 #define SPI_TXFR0_TXCMD_TXDATA_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 8609 #define SPI_TXFR0_TXCMD_TXDATA_SHIFT 16
Kojto 90:cb3d968589d8 8610 #define SPI_TXFR0_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR0_TXCMD_TXDATA_SHIFT))&SPI_TXFR0_TXCMD_TXDATA_MASK)
Kojto 90:cb3d968589d8 8611 /* TXFR1 Bit Fields */
Kojto 90:cb3d968589d8 8612 #define SPI_TXFR1_TXDATA_MASK 0xFFFFu
Kojto 90:cb3d968589d8 8613 #define SPI_TXFR1_TXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8614 #define SPI_TXFR1_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR1_TXDATA_SHIFT))&SPI_TXFR1_TXDATA_MASK)
Kojto 90:cb3d968589d8 8615 #define SPI_TXFR1_TXCMD_TXDATA_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 8616 #define SPI_TXFR1_TXCMD_TXDATA_SHIFT 16
Kojto 90:cb3d968589d8 8617 #define SPI_TXFR1_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR1_TXCMD_TXDATA_SHIFT))&SPI_TXFR1_TXCMD_TXDATA_MASK)
Kojto 90:cb3d968589d8 8618 /* TXFR2 Bit Fields */
Kojto 90:cb3d968589d8 8619 #define SPI_TXFR2_TXDATA_MASK 0xFFFFu
Kojto 90:cb3d968589d8 8620 #define SPI_TXFR2_TXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8621 #define SPI_TXFR2_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR2_TXDATA_SHIFT))&SPI_TXFR2_TXDATA_MASK)
Kojto 90:cb3d968589d8 8622 #define SPI_TXFR2_TXCMD_TXDATA_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 8623 #define SPI_TXFR2_TXCMD_TXDATA_SHIFT 16
Kojto 90:cb3d968589d8 8624 #define SPI_TXFR2_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR2_TXCMD_TXDATA_SHIFT))&SPI_TXFR2_TXCMD_TXDATA_MASK)
Kojto 90:cb3d968589d8 8625 /* TXFR3 Bit Fields */
Kojto 90:cb3d968589d8 8626 #define SPI_TXFR3_TXDATA_MASK 0xFFFFu
Kojto 90:cb3d968589d8 8627 #define SPI_TXFR3_TXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8628 #define SPI_TXFR3_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR3_TXDATA_SHIFT))&SPI_TXFR3_TXDATA_MASK)
Kojto 90:cb3d968589d8 8629 #define SPI_TXFR3_TXCMD_TXDATA_MASK 0xFFFF0000u
Kojto 90:cb3d968589d8 8630 #define SPI_TXFR3_TXCMD_TXDATA_SHIFT 16
Kojto 90:cb3d968589d8 8631 #define SPI_TXFR3_TXCMD_TXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_TXFR3_TXCMD_TXDATA_SHIFT))&SPI_TXFR3_TXCMD_TXDATA_MASK)
Kojto 90:cb3d968589d8 8632 /* RXFR0 Bit Fields */
Kojto 90:cb3d968589d8 8633 #define SPI_RXFR0_RXDATA_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8634 #define SPI_RXFR0_RXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8635 #define SPI_RXFR0_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_RXFR0_RXDATA_SHIFT))&SPI_RXFR0_RXDATA_MASK)
Kojto 90:cb3d968589d8 8636 /* RXFR1 Bit Fields */
Kojto 90:cb3d968589d8 8637 #define SPI_RXFR1_RXDATA_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8638 #define SPI_RXFR1_RXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8639 #define SPI_RXFR1_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_RXFR1_RXDATA_SHIFT))&SPI_RXFR1_RXDATA_MASK)
Kojto 90:cb3d968589d8 8640 /* RXFR2 Bit Fields */
Kojto 90:cb3d968589d8 8641 #define SPI_RXFR2_RXDATA_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8642 #define SPI_RXFR2_RXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8643 #define SPI_RXFR2_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_RXFR2_RXDATA_SHIFT))&SPI_RXFR2_RXDATA_MASK)
Kojto 90:cb3d968589d8 8644 /* RXFR3 Bit Fields */
Kojto 90:cb3d968589d8 8645 #define SPI_RXFR3_RXDATA_MASK 0xFFFFFFFFu
Kojto 90:cb3d968589d8 8646 #define SPI_RXFR3_RXDATA_SHIFT 0
Kojto 90:cb3d968589d8 8647 #define SPI_RXFR3_RXDATA(x) (((uint32_t)(((uint32_t)(x))<<SPI_RXFR3_RXDATA_SHIFT))&SPI_RXFR3_RXDATA_MASK)
Kojto 90:cb3d968589d8 8648
Kojto 90:cb3d968589d8 8649 /*!
Kojto 90:cb3d968589d8 8650 * @}
Kojto 90:cb3d968589d8 8651 */ /* end of group SPI_Register_Masks */
Kojto 90:cb3d968589d8 8652
Kojto 90:cb3d968589d8 8653
Kojto 90:cb3d968589d8 8654 /* SPI - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 8655 /** Peripheral SPI0 base address */
Kojto 90:cb3d968589d8 8656 #define SPI0_BASE (0x4002C000u)
Kojto 90:cb3d968589d8 8657 /** Peripheral SPI0 base pointer */
Kojto 90:cb3d968589d8 8658 #define SPI0 ((SPI_Type *)SPI0_BASE)
Kojto 90:cb3d968589d8 8659 #define SPI0_BASE_PTR (SPI0)
Kojto 90:cb3d968589d8 8660 /** Peripheral SPI1 base address */
Kojto 90:cb3d968589d8 8661 #define SPI1_BASE (0x4002D000u)
Kojto 90:cb3d968589d8 8662 /** Peripheral SPI1 base pointer */
Kojto 90:cb3d968589d8 8663 #define SPI1 ((SPI_Type *)SPI1_BASE)
Kojto 90:cb3d968589d8 8664 #define SPI1_BASE_PTR (SPI1)
Kojto 90:cb3d968589d8 8665 /** Array initializer of SPI peripheral base addresses */
Kojto 90:cb3d968589d8 8666 #define SPI_BASE_ADDRS { SPI0_BASE, SPI1_BASE }
Kojto 90:cb3d968589d8 8667 /** Array initializer of SPI peripheral base pointers */
Kojto 90:cb3d968589d8 8668 #define SPI_BASE_PTRS { SPI0, SPI1 }
Kojto 90:cb3d968589d8 8669 /** Interrupt vectors for the SPI peripheral type */
Kojto 90:cb3d968589d8 8670 #define SPI_IRQS { SPI0_IRQn, SPI1_IRQn }
Kojto 90:cb3d968589d8 8671
Kojto 90:cb3d968589d8 8672 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8673 -- SPI - Register accessor macros
Kojto 90:cb3d968589d8 8674 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8675
Kojto 90:cb3d968589d8 8676 /*!
Kojto 90:cb3d968589d8 8677 * @addtogroup SPI_Register_Accessor_Macros SPI - Register accessor macros
Kojto 90:cb3d968589d8 8678 * @{
Kojto 90:cb3d968589d8 8679 */
Kojto 90:cb3d968589d8 8680
Kojto 90:cb3d968589d8 8681
Kojto 90:cb3d968589d8 8682 /* SPI - Register instance definitions */
Kojto 90:cb3d968589d8 8683 /* SPI0 */
Kojto 90:cb3d968589d8 8684 #define SPI0_MCR SPI_MCR_REG(SPI0)
Kojto 90:cb3d968589d8 8685 #define SPI0_TCR SPI_TCR_REG(SPI0)
Kojto 90:cb3d968589d8 8686 #define SPI0_CTAR0 SPI_CTAR_REG(SPI0,0)
Kojto 90:cb3d968589d8 8687 #define SPI0_CTAR0_SLAVE SPI_CTAR_SLAVE_REG(SPI0,0)
Kojto 90:cb3d968589d8 8688 #define SPI0_CTAR1 SPI_CTAR_REG(SPI0,1)
Kojto 90:cb3d968589d8 8689 #define SPI0_SR SPI_SR_REG(SPI0)
Kojto 90:cb3d968589d8 8690 #define SPI0_RSER SPI_RSER_REG(SPI0)
Kojto 90:cb3d968589d8 8691 #define SPI0_PUSHR SPI_PUSHR_REG(SPI0)
Kojto 90:cb3d968589d8 8692 #define SPI0_PUSHR_SLAVE SPI_PUSHR_SLAVE_REG(SPI0)
Kojto 90:cb3d968589d8 8693 #define SPI0_POPR SPI_POPR_REG(SPI0)
Kojto 90:cb3d968589d8 8694 #define SPI0_TXFR0 SPI_TXFR0_REG(SPI0)
Kojto 90:cb3d968589d8 8695 #define SPI0_TXFR1 SPI_TXFR1_REG(SPI0)
Kojto 90:cb3d968589d8 8696 #define SPI0_TXFR2 SPI_TXFR2_REG(SPI0)
Kojto 90:cb3d968589d8 8697 #define SPI0_TXFR3 SPI_TXFR3_REG(SPI0)
Kojto 90:cb3d968589d8 8698 #define SPI0_RXFR0 SPI_RXFR0_REG(SPI0)
Kojto 90:cb3d968589d8 8699 #define SPI0_RXFR1 SPI_RXFR1_REG(SPI0)
Kojto 90:cb3d968589d8 8700 #define SPI0_RXFR2 SPI_RXFR2_REG(SPI0)
Kojto 90:cb3d968589d8 8701 #define SPI0_RXFR3 SPI_RXFR3_REG(SPI0)
Kojto 90:cb3d968589d8 8702 /* SPI1 */
Kojto 90:cb3d968589d8 8703 #define SPI1_MCR SPI_MCR_REG(SPI1)
Kojto 90:cb3d968589d8 8704 #define SPI1_TCR SPI_TCR_REG(SPI1)
Kojto 90:cb3d968589d8 8705 #define SPI1_CTAR0 SPI_CTAR_REG(SPI1,0)
Kojto 90:cb3d968589d8 8706 #define SPI1_CTAR0_SLAVE SPI_CTAR_SLAVE_REG(SPI1,0)
Kojto 90:cb3d968589d8 8707 #define SPI1_CTAR1 SPI_CTAR_REG(SPI1,1)
Kojto 90:cb3d968589d8 8708 #define SPI1_SR SPI_SR_REG(SPI1)
Kojto 90:cb3d968589d8 8709 #define SPI1_RSER SPI_RSER_REG(SPI1)
Kojto 90:cb3d968589d8 8710 #define SPI1_PUSHR SPI_PUSHR_REG(SPI1)
Kojto 90:cb3d968589d8 8711 #define SPI1_PUSHR_SLAVE SPI_PUSHR_SLAVE_REG(SPI1)
Kojto 90:cb3d968589d8 8712 #define SPI1_POPR SPI_POPR_REG(SPI1)
Kojto 90:cb3d968589d8 8713 #define SPI1_TXFR0 SPI_TXFR0_REG(SPI1)
Kojto 90:cb3d968589d8 8714 #define SPI1_TXFR1 SPI_TXFR1_REG(SPI1)
Kojto 90:cb3d968589d8 8715 #define SPI1_TXFR2 SPI_TXFR2_REG(SPI1)
Kojto 90:cb3d968589d8 8716 #define SPI1_TXFR3 SPI_TXFR3_REG(SPI1)
Kojto 90:cb3d968589d8 8717 #define SPI1_RXFR0 SPI_RXFR0_REG(SPI1)
Kojto 90:cb3d968589d8 8718 #define SPI1_RXFR1 SPI_RXFR1_REG(SPI1)
Kojto 90:cb3d968589d8 8719 #define SPI1_RXFR2 SPI_RXFR2_REG(SPI1)
Kojto 90:cb3d968589d8 8720 #define SPI1_RXFR3 SPI_RXFR3_REG(SPI1)
Kojto 90:cb3d968589d8 8721
Kojto 90:cb3d968589d8 8722 /* SPI - Register array accessors */
Kojto 90:cb3d968589d8 8723 #define SPI0_CTAR(index2) SPI_CTAR_REG(SPI0,index2)
Kojto 90:cb3d968589d8 8724 #define SPI1_CTAR(index2) SPI_CTAR_REG(SPI1,index2)
Kojto 90:cb3d968589d8 8725 #define SPI0_CTAR_SLAVE(index2) SPI_CTAR_SLAVE_REG(SPI0,index2)
Kojto 90:cb3d968589d8 8726 #define SPI1_CTAR_SLAVE(index2) SPI_CTAR_SLAVE_REG(SPI1,index2)
Kojto 90:cb3d968589d8 8727
Kojto 90:cb3d968589d8 8728 /*!
Kojto 90:cb3d968589d8 8729 * @}
Kojto 90:cb3d968589d8 8730 */ /* end of group SPI_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 8731
Kojto 90:cb3d968589d8 8732
Kojto 90:cb3d968589d8 8733 /*!
Kojto 90:cb3d968589d8 8734 * @}
Kojto 90:cb3d968589d8 8735 */ /* end of group SPI_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 8736
Kojto 90:cb3d968589d8 8737
Kojto 90:cb3d968589d8 8738 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8739 -- UART Peripheral Access Layer
Kojto 90:cb3d968589d8 8740 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8741
Kojto 90:cb3d968589d8 8742 /*!
Kojto 90:cb3d968589d8 8743 * @addtogroup UART_Peripheral_Access_Layer UART Peripheral Access Layer
Kojto 90:cb3d968589d8 8744 * @{
Kojto 90:cb3d968589d8 8745 */
Kojto 90:cb3d968589d8 8746
Kojto 90:cb3d968589d8 8747 /** UART - Register Layout Typedef */
Kojto 90:cb3d968589d8 8748 typedef struct {
Kojto 90:cb3d968589d8 8749 __IO uint8_t BDH; /**< UART Baud Rate Registers: High, offset: 0x0 */
Kojto 90:cb3d968589d8 8750 __IO uint8_t BDL; /**< UART Baud Rate Registers: Low, offset: 0x1 */
Kojto 90:cb3d968589d8 8751 __IO uint8_t C1; /**< UART Control Register 1, offset: 0x2 */
Kojto 90:cb3d968589d8 8752 __IO uint8_t C2; /**< UART Control Register 2, offset: 0x3 */
Kojto 90:cb3d968589d8 8753 __I uint8_t S1; /**< UART Status Register 1, offset: 0x4 */
Kojto 90:cb3d968589d8 8754 __IO uint8_t S2; /**< UART Status Register 2, offset: 0x5 */
Kojto 90:cb3d968589d8 8755 __IO uint8_t C3; /**< UART Control Register 3, offset: 0x6 */
Kojto 90:cb3d968589d8 8756 __IO uint8_t D; /**< UART Data Register, offset: 0x7 */
Kojto 90:cb3d968589d8 8757 __IO uint8_t MA1; /**< UART Match Address Registers 1, offset: 0x8 */
Kojto 90:cb3d968589d8 8758 __IO uint8_t MA2; /**< UART Match Address Registers 2, offset: 0x9 */
Kojto 90:cb3d968589d8 8759 __IO uint8_t C4; /**< UART Control Register 4, offset: 0xA */
Kojto 90:cb3d968589d8 8760 __IO uint8_t C5; /**< UART Control Register 5, offset: 0xB */
Kojto 90:cb3d968589d8 8761 __I uint8_t ED; /**< UART Extended Data Register, offset: 0xC */
Kojto 90:cb3d968589d8 8762 __IO uint8_t MODEM; /**< UART Modem Register, offset: 0xD */
Kojto 90:cb3d968589d8 8763 __IO uint8_t IR; /**< UART Infrared Register, offset: 0xE */
Kojto 90:cb3d968589d8 8764 uint8_t RESERVED_0[1];
Kojto 90:cb3d968589d8 8765 __IO uint8_t PFIFO; /**< UART FIFO Parameters, offset: 0x10 */
Kojto 90:cb3d968589d8 8766 __IO uint8_t CFIFO; /**< UART FIFO Control Register, offset: 0x11 */
Kojto 90:cb3d968589d8 8767 __IO uint8_t SFIFO; /**< UART FIFO Status Register, offset: 0x12 */
Kojto 90:cb3d968589d8 8768 __IO uint8_t TWFIFO; /**< UART FIFO Transmit Watermark, offset: 0x13 */
Kojto 90:cb3d968589d8 8769 __I uint8_t TCFIFO; /**< UART FIFO Transmit Count, offset: 0x14 */
Kojto 90:cb3d968589d8 8770 __IO uint8_t RWFIFO; /**< UART FIFO Receive Watermark, offset: 0x15 */
Kojto 90:cb3d968589d8 8771 __I uint8_t RCFIFO; /**< UART FIFO Receive Count, offset: 0x16 */
Kojto 90:cb3d968589d8 8772 uint8_t RESERVED_1[1];
Kojto 90:cb3d968589d8 8773 __IO uint8_t C7816; /**< UART 7816 Control Register, offset: 0x18 */
Kojto 90:cb3d968589d8 8774 __IO uint8_t IE7816; /**< UART 7816 Interrupt Enable Register, offset: 0x19 */
Kojto 90:cb3d968589d8 8775 __IO uint8_t IS7816; /**< UART 7816 Interrupt Status Register, offset: 0x1A */
Kojto 90:cb3d968589d8 8776 __IO uint8_t WP7816; /**< UART 7816 Wait Parameter Register, offset: 0x1B */
Kojto 90:cb3d968589d8 8777 __IO uint8_t WN7816; /**< UART 7816 Wait N Register, offset: 0x1C */
Kojto 90:cb3d968589d8 8778 __IO uint8_t WF7816; /**< UART 7816 Wait FD Register, offset: 0x1D */
Kojto 90:cb3d968589d8 8779 __IO uint8_t ET7816; /**< UART 7816 Error Threshold Register, offset: 0x1E */
Kojto 90:cb3d968589d8 8780 __IO uint8_t TL7816; /**< UART 7816 Transmit Length Register, offset: 0x1F */
Kojto 90:cb3d968589d8 8781 uint8_t RESERVED_2[26];
Kojto 90:cb3d968589d8 8782 __IO uint8_t AP7816A_T0; /**< UART 7816 ATR Duration Timer Register A, offset: 0x3A */
Kojto 90:cb3d968589d8 8783 __IO uint8_t AP7816B_T0; /**< UART 7816 ATR Duration Timer Register B, offset: 0x3B */
Kojto 90:cb3d968589d8 8784 union { /* offset: 0x3C */
Kojto 90:cb3d968589d8 8785 struct { /* offset: 0x3C */
Kojto 90:cb3d968589d8 8786 __IO uint8_t WP7816A_T0; /**< UART 7816 Wait Parameter Register A, offset: 0x3C */
Kojto 90:cb3d968589d8 8787 __IO uint8_t WP7816B_T0; /**< UART 7816 Wait Parameter Register B, offset: 0x3D */
Kojto 90:cb3d968589d8 8788 } TYPE0;
Kojto 90:cb3d968589d8 8789 struct { /* offset: 0x3C */
Kojto 90:cb3d968589d8 8790 __IO uint8_t WP7816A_T1; /**< UART 7816 Wait Parameter Register A, offset: 0x3C */
Kojto 90:cb3d968589d8 8791 __IO uint8_t WP7816B_T1; /**< UART 7816 Wait Parameter Register B, offset: 0x3D */
Kojto 90:cb3d968589d8 8792 } TYPE1;
Kojto 90:cb3d968589d8 8793 };
Kojto 90:cb3d968589d8 8794 __IO uint8_t WGP7816_T1; /**< UART 7816 Wait and Guard Parameter Register, offset: 0x3E */
Kojto 90:cb3d968589d8 8795 __IO uint8_t WP7816C_T1; /**< UART 7816 Wait Parameter Register C, offset: 0x3F */
Kojto 90:cb3d968589d8 8796 } UART_Type, *UART_MemMapPtr;
Kojto 90:cb3d968589d8 8797
Kojto 90:cb3d968589d8 8798 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8799 -- UART - Register accessor macros
Kojto 90:cb3d968589d8 8800 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8801
Kojto 90:cb3d968589d8 8802 /*!
Kojto 90:cb3d968589d8 8803 * @addtogroup UART_Register_Accessor_Macros UART - Register accessor macros
Kojto 90:cb3d968589d8 8804 * @{
Kojto 90:cb3d968589d8 8805 */
Kojto 90:cb3d968589d8 8806
Kojto 90:cb3d968589d8 8807
Kojto 90:cb3d968589d8 8808 /* UART - Register accessors */
Kojto 90:cb3d968589d8 8809 #define UART_BDH_REG(base) ((base)->BDH)
Kojto 90:cb3d968589d8 8810 #define UART_BDL_REG(base) ((base)->BDL)
Kojto 90:cb3d968589d8 8811 #define UART_C1_REG(base) ((base)->C1)
Kojto 90:cb3d968589d8 8812 #define UART_C2_REG(base) ((base)->C2)
Kojto 90:cb3d968589d8 8813 #define UART_S1_REG(base) ((base)->S1)
Kojto 90:cb3d968589d8 8814 #define UART_S2_REG(base) ((base)->S2)
Kojto 90:cb3d968589d8 8815 #define UART_C3_REG(base) ((base)->C3)
Kojto 90:cb3d968589d8 8816 #define UART_D_REG(base) ((base)->D)
Kojto 90:cb3d968589d8 8817 #define UART_MA1_REG(base) ((base)->MA1)
Kojto 90:cb3d968589d8 8818 #define UART_MA2_REG(base) ((base)->MA2)
Kojto 90:cb3d968589d8 8819 #define UART_C4_REG(base) ((base)->C4)
Kojto 90:cb3d968589d8 8820 #define UART_C5_REG(base) ((base)->C5)
Kojto 90:cb3d968589d8 8821 #define UART_ED_REG(base) ((base)->ED)
Kojto 90:cb3d968589d8 8822 #define UART_MODEM_REG(base) ((base)->MODEM)
Kojto 90:cb3d968589d8 8823 #define UART_IR_REG(base) ((base)->IR)
Kojto 90:cb3d968589d8 8824 #define UART_PFIFO_REG(base) ((base)->PFIFO)
Kojto 90:cb3d968589d8 8825 #define UART_CFIFO_REG(base) ((base)->CFIFO)
Kojto 90:cb3d968589d8 8826 #define UART_SFIFO_REG(base) ((base)->SFIFO)
Kojto 90:cb3d968589d8 8827 #define UART_TWFIFO_REG(base) ((base)->TWFIFO)
Kojto 90:cb3d968589d8 8828 #define UART_TCFIFO_REG(base) ((base)->TCFIFO)
Kojto 90:cb3d968589d8 8829 #define UART_RWFIFO_REG(base) ((base)->RWFIFO)
Kojto 90:cb3d968589d8 8830 #define UART_RCFIFO_REG(base) ((base)->RCFIFO)
Kojto 90:cb3d968589d8 8831 #define UART_C7816_REG(base) ((base)->C7816)
Kojto 90:cb3d968589d8 8832 #define UART_IE7816_REG(base) ((base)->IE7816)
Kojto 90:cb3d968589d8 8833 #define UART_IS7816_REG(base) ((base)->IS7816)
Kojto 90:cb3d968589d8 8834 #define UART_WP7816_REG(base) ((base)->WP7816)
Kojto 90:cb3d968589d8 8835 #define UART_WN7816_REG(base) ((base)->WN7816)
Kojto 90:cb3d968589d8 8836 #define UART_WF7816_REG(base) ((base)->WF7816)
Kojto 90:cb3d968589d8 8837 #define UART_ET7816_REG(base) ((base)->ET7816)
Kojto 90:cb3d968589d8 8838 #define UART_TL7816_REG(base) ((base)->TL7816)
Kojto 90:cb3d968589d8 8839 #define UART_AP7816A_T0_REG(base) ((base)->AP7816A_T0)
Kojto 90:cb3d968589d8 8840 #define UART_AP7816B_T0_REG(base) ((base)->AP7816B_T0)
Kojto 90:cb3d968589d8 8841 #define UART_WP7816A_T0_REG(base) ((base)->TYPE0.WP7816A_T0)
Kojto 90:cb3d968589d8 8842 #define UART_WP7816B_T0_REG(base) ((base)->TYPE0.WP7816B_T0)
Kojto 90:cb3d968589d8 8843 #define UART_WP7816A_T1_REG(base) ((base)->TYPE1.WP7816A_T1)
Kojto 90:cb3d968589d8 8844 #define UART_WP7816B_T1_REG(base) ((base)->TYPE1.WP7816B_T1)
Kojto 90:cb3d968589d8 8845 #define UART_WGP7816_T1_REG(base) ((base)->WGP7816_T1)
Kojto 90:cb3d968589d8 8846 #define UART_WP7816C_T1_REG(base) ((base)->WP7816C_T1)
Kojto 90:cb3d968589d8 8847
Kojto 90:cb3d968589d8 8848 /*!
Kojto 90:cb3d968589d8 8849 * @}
Kojto 90:cb3d968589d8 8850 */ /* end of group UART_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 8851
Kojto 90:cb3d968589d8 8852
Kojto 90:cb3d968589d8 8853 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 8854 -- UART Register Masks
Kojto 90:cb3d968589d8 8855 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 8856
Kojto 90:cb3d968589d8 8857 /*!
Kojto 90:cb3d968589d8 8858 * @addtogroup UART_Register_Masks UART Register Masks
Kojto 90:cb3d968589d8 8859 * @{
Kojto 90:cb3d968589d8 8860 */
Kojto 90:cb3d968589d8 8861
Kojto 90:cb3d968589d8 8862 /* BDH Bit Fields */
Kojto 90:cb3d968589d8 8863 #define UART_BDH_SBR_MASK 0x1Fu
Kojto 90:cb3d968589d8 8864 #define UART_BDH_SBR_SHIFT 0
Kojto 90:cb3d968589d8 8865 #define UART_BDH_SBR(x) (((uint8_t)(((uint8_t)(x))<<UART_BDH_SBR_SHIFT))&UART_BDH_SBR_MASK)
Kojto 90:cb3d968589d8 8866 #define UART_BDH_RXEDGIE_MASK 0x40u
Kojto 90:cb3d968589d8 8867 #define UART_BDH_RXEDGIE_SHIFT 6
Kojto 90:cb3d968589d8 8868 #define UART_BDH_LBKDIE_MASK 0x80u
Kojto 90:cb3d968589d8 8869 #define UART_BDH_LBKDIE_SHIFT 7
Kojto 90:cb3d968589d8 8870 /* BDL Bit Fields */
Kojto 90:cb3d968589d8 8871 #define UART_BDL_SBR_MASK 0xFFu
Kojto 90:cb3d968589d8 8872 #define UART_BDL_SBR_SHIFT 0
Kojto 90:cb3d968589d8 8873 #define UART_BDL_SBR(x) (((uint8_t)(((uint8_t)(x))<<UART_BDL_SBR_SHIFT))&UART_BDL_SBR_MASK)
Kojto 90:cb3d968589d8 8874 /* C1 Bit Fields */
Kojto 90:cb3d968589d8 8875 #define UART_C1_PT_MASK 0x1u
Kojto 90:cb3d968589d8 8876 #define UART_C1_PT_SHIFT 0
Kojto 90:cb3d968589d8 8877 #define UART_C1_PE_MASK 0x2u
Kojto 90:cb3d968589d8 8878 #define UART_C1_PE_SHIFT 1
Kojto 90:cb3d968589d8 8879 #define UART_C1_ILT_MASK 0x4u
Kojto 90:cb3d968589d8 8880 #define UART_C1_ILT_SHIFT 2
Kojto 90:cb3d968589d8 8881 #define UART_C1_WAKE_MASK 0x8u
Kojto 90:cb3d968589d8 8882 #define UART_C1_WAKE_SHIFT 3
Kojto 90:cb3d968589d8 8883 #define UART_C1_M_MASK 0x10u
Kojto 90:cb3d968589d8 8884 #define UART_C1_M_SHIFT 4
Kojto 90:cb3d968589d8 8885 #define UART_C1_RSRC_MASK 0x20u
Kojto 90:cb3d968589d8 8886 #define UART_C1_RSRC_SHIFT 5
Kojto 90:cb3d968589d8 8887 #define UART_C1_UARTSWAI_MASK 0x40u
Kojto 90:cb3d968589d8 8888 #define UART_C1_UARTSWAI_SHIFT 6
Kojto 90:cb3d968589d8 8889 #define UART_C1_LOOPS_MASK 0x80u
Kojto 90:cb3d968589d8 8890 #define UART_C1_LOOPS_SHIFT 7
Kojto 90:cb3d968589d8 8891 /* C2 Bit Fields */
Kojto 90:cb3d968589d8 8892 #define UART_C2_SBK_MASK 0x1u
Kojto 90:cb3d968589d8 8893 #define UART_C2_SBK_SHIFT 0
Kojto 90:cb3d968589d8 8894 #define UART_C2_RWU_MASK 0x2u
Kojto 90:cb3d968589d8 8895 #define UART_C2_RWU_SHIFT 1
Kojto 90:cb3d968589d8 8896 #define UART_C2_RE_MASK 0x4u
Kojto 90:cb3d968589d8 8897 #define UART_C2_RE_SHIFT 2
Kojto 90:cb3d968589d8 8898 #define UART_C2_TE_MASK 0x8u
Kojto 90:cb3d968589d8 8899 #define UART_C2_TE_SHIFT 3
Kojto 90:cb3d968589d8 8900 #define UART_C2_ILIE_MASK 0x10u
Kojto 90:cb3d968589d8 8901 #define UART_C2_ILIE_SHIFT 4
Kojto 90:cb3d968589d8 8902 #define UART_C2_RIE_MASK 0x20u
Kojto 90:cb3d968589d8 8903 #define UART_C2_RIE_SHIFT 5
Kojto 90:cb3d968589d8 8904 #define UART_C2_TCIE_MASK 0x40u
Kojto 90:cb3d968589d8 8905 #define UART_C2_TCIE_SHIFT 6
Kojto 90:cb3d968589d8 8906 #define UART_C2_TIE_MASK 0x80u
Kojto 90:cb3d968589d8 8907 #define UART_C2_TIE_SHIFT 7
Kojto 90:cb3d968589d8 8908 /* S1 Bit Fields */
Kojto 90:cb3d968589d8 8909 #define UART_S1_PF_MASK 0x1u
Kojto 90:cb3d968589d8 8910 #define UART_S1_PF_SHIFT 0
Kojto 90:cb3d968589d8 8911 #define UART_S1_FE_MASK 0x2u
Kojto 90:cb3d968589d8 8912 #define UART_S1_FE_SHIFT 1
Kojto 90:cb3d968589d8 8913 #define UART_S1_NF_MASK 0x4u
Kojto 90:cb3d968589d8 8914 #define UART_S1_NF_SHIFT 2
Kojto 90:cb3d968589d8 8915 #define UART_S1_OR_MASK 0x8u
Kojto 90:cb3d968589d8 8916 #define UART_S1_OR_SHIFT 3
Kojto 90:cb3d968589d8 8917 #define UART_S1_IDLE_MASK 0x10u
Kojto 90:cb3d968589d8 8918 #define UART_S1_IDLE_SHIFT 4
Kojto 90:cb3d968589d8 8919 #define UART_S1_RDRF_MASK 0x20u
Kojto 90:cb3d968589d8 8920 #define UART_S1_RDRF_SHIFT 5
Kojto 90:cb3d968589d8 8921 #define UART_S1_TC_MASK 0x40u
Kojto 90:cb3d968589d8 8922 #define UART_S1_TC_SHIFT 6
Kojto 90:cb3d968589d8 8923 #define UART_S1_TDRE_MASK 0x80u
Kojto 90:cb3d968589d8 8924 #define UART_S1_TDRE_SHIFT 7
Kojto 90:cb3d968589d8 8925 /* S2 Bit Fields */
Kojto 90:cb3d968589d8 8926 #define UART_S2_RAF_MASK 0x1u
Kojto 90:cb3d968589d8 8927 #define UART_S2_RAF_SHIFT 0
Kojto 90:cb3d968589d8 8928 #define UART_S2_LBKDE_MASK 0x2u
Kojto 90:cb3d968589d8 8929 #define UART_S2_LBKDE_SHIFT 1
Kojto 90:cb3d968589d8 8930 #define UART_S2_BRK13_MASK 0x4u
Kojto 90:cb3d968589d8 8931 #define UART_S2_BRK13_SHIFT 2
Kojto 90:cb3d968589d8 8932 #define UART_S2_RWUID_MASK 0x8u
Kojto 90:cb3d968589d8 8933 #define UART_S2_RWUID_SHIFT 3
Kojto 90:cb3d968589d8 8934 #define UART_S2_RXINV_MASK 0x10u
Kojto 90:cb3d968589d8 8935 #define UART_S2_RXINV_SHIFT 4
Kojto 90:cb3d968589d8 8936 #define UART_S2_MSBF_MASK 0x20u
Kojto 90:cb3d968589d8 8937 #define UART_S2_MSBF_SHIFT 5
Kojto 90:cb3d968589d8 8938 #define UART_S2_RXEDGIF_MASK 0x40u
Kojto 90:cb3d968589d8 8939 #define UART_S2_RXEDGIF_SHIFT 6
Kojto 90:cb3d968589d8 8940 #define UART_S2_LBKDIF_MASK 0x80u
Kojto 90:cb3d968589d8 8941 #define UART_S2_LBKDIF_SHIFT 7
Kojto 90:cb3d968589d8 8942 /* C3 Bit Fields */
Kojto 90:cb3d968589d8 8943 #define UART_C3_PEIE_MASK 0x1u
Kojto 90:cb3d968589d8 8944 #define UART_C3_PEIE_SHIFT 0
Kojto 90:cb3d968589d8 8945 #define UART_C3_FEIE_MASK 0x2u
Kojto 90:cb3d968589d8 8946 #define UART_C3_FEIE_SHIFT 1
Kojto 90:cb3d968589d8 8947 #define UART_C3_NEIE_MASK 0x4u
Kojto 90:cb3d968589d8 8948 #define UART_C3_NEIE_SHIFT 2
Kojto 90:cb3d968589d8 8949 #define UART_C3_ORIE_MASK 0x8u
Kojto 90:cb3d968589d8 8950 #define UART_C3_ORIE_SHIFT 3
Kojto 90:cb3d968589d8 8951 #define UART_C3_TXINV_MASK 0x10u
Kojto 90:cb3d968589d8 8952 #define UART_C3_TXINV_SHIFT 4
Kojto 90:cb3d968589d8 8953 #define UART_C3_TXDIR_MASK 0x20u
Kojto 90:cb3d968589d8 8954 #define UART_C3_TXDIR_SHIFT 5
Kojto 90:cb3d968589d8 8955 #define UART_C3_T8_MASK 0x40u
Kojto 90:cb3d968589d8 8956 #define UART_C3_T8_SHIFT 6
Kojto 90:cb3d968589d8 8957 #define UART_C3_R8_MASK 0x80u
Kojto 90:cb3d968589d8 8958 #define UART_C3_R8_SHIFT 7
Kojto 90:cb3d968589d8 8959 /* D Bit Fields */
Kojto 90:cb3d968589d8 8960 #define UART_D_RT_MASK 0xFFu
Kojto 90:cb3d968589d8 8961 #define UART_D_RT_SHIFT 0
Kojto 90:cb3d968589d8 8962 #define UART_D_RT(x) (((uint8_t)(((uint8_t)(x))<<UART_D_RT_SHIFT))&UART_D_RT_MASK)
Kojto 90:cb3d968589d8 8963 /* MA1 Bit Fields */
Kojto 90:cb3d968589d8 8964 #define UART_MA1_MA_MASK 0xFFu
Kojto 90:cb3d968589d8 8965 #define UART_MA1_MA_SHIFT 0
Kojto 90:cb3d968589d8 8966 #define UART_MA1_MA(x) (((uint8_t)(((uint8_t)(x))<<UART_MA1_MA_SHIFT))&UART_MA1_MA_MASK)
Kojto 90:cb3d968589d8 8967 /* MA2 Bit Fields */
Kojto 90:cb3d968589d8 8968 #define UART_MA2_MA_MASK 0xFFu
Kojto 90:cb3d968589d8 8969 #define UART_MA2_MA_SHIFT 0
Kojto 90:cb3d968589d8 8970 #define UART_MA2_MA(x) (((uint8_t)(((uint8_t)(x))<<UART_MA2_MA_SHIFT))&UART_MA2_MA_MASK)
Kojto 90:cb3d968589d8 8971 /* C4 Bit Fields */
Kojto 90:cb3d968589d8 8972 #define UART_C4_BRFA_MASK 0x1Fu
Kojto 90:cb3d968589d8 8973 #define UART_C4_BRFA_SHIFT 0
Kojto 90:cb3d968589d8 8974 #define UART_C4_BRFA(x) (((uint8_t)(((uint8_t)(x))<<UART_C4_BRFA_SHIFT))&UART_C4_BRFA_MASK)
Kojto 90:cb3d968589d8 8975 #define UART_C4_M10_MASK 0x20u
Kojto 90:cb3d968589d8 8976 #define UART_C4_M10_SHIFT 5
Kojto 90:cb3d968589d8 8977 #define UART_C4_MAEN2_MASK 0x40u
Kojto 90:cb3d968589d8 8978 #define UART_C4_MAEN2_SHIFT 6
Kojto 90:cb3d968589d8 8979 #define UART_C4_MAEN1_MASK 0x80u
Kojto 90:cb3d968589d8 8980 #define UART_C4_MAEN1_SHIFT 7
Kojto 90:cb3d968589d8 8981 /* C5 Bit Fields */
Kojto 90:cb3d968589d8 8982 #define UART_C5_RDMAS_MASK 0x20u
Kojto 90:cb3d968589d8 8983 #define UART_C5_RDMAS_SHIFT 5
Kojto 90:cb3d968589d8 8984 #define UART_C5_TDMAS_MASK 0x80u
Kojto 90:cb3d968589d8 8985 #define UART_C5_TDMAS_SHIFT 7
Kojto 90:cb3d968589d8 8986 /* ED Bit Fields */
Kojto 90:cb3d968589d8 8987 #define UART_ED_PARITYE_MASK 0x40u
Kojto 90:cb3d968589d8 8988 #define UART_ED_PARITYE_SHIFT 6
Kojto 90:cb3d968589d8 8989 #define UART_ED_NOISY_MASK 0x80u
Kojto 90:cb3d968589d8 8990 #define UART_ED_NOISY_SHIFT 7
Kojto 90:cb3d968589d8 8991 /* MODEM Bit Fields */
Kojto 90:cb3d968589d8 8992 #define UART_MODEM_TXCTSE_MASK 0x1u
Kojto 90:cb3d968589d8 8993 #define UART_MODEM_TXCTSE_SHIFT 0
Kojto 90:cb3d968589d8 8994 #define UART_MODEM_TXRTSE_MASK 0x2u
Kojto 90:cb3d968589d8 8995 #define UART_MODEM_TXRTSE_SHIFT 1
Kojto 90:cb3d968589d8 8996 #define UART_MODEM_TXRTSPOL_MASK 0x4u
Kojto 90:cb3d968589d8 8997 #define UART_MODEM_TXRTSPOL_SHIFT 2
Kojto 90:cb3d968589d8 8998 #define UART_MODEM_RXRTSE_MASK 0x8u
Kojto 90:cb3d968589d8 8999 #define UART_MODEM_RXRTSE_SHIFT 3
Kojto 90:cb3d968589d8 9000 /* IR Bit Fields */
Kojto 90:cb3d968589d8 9001 #define UART_IR_TNP_MASK 0x3u
Kojto 90:cb3d968589d8 9002 #define UART_IR_TNP_SHIFT 0
Kojto 90:cb3d968589d8 9003 #define UART_IR_TNP(x) (((uint8_t)(((uint8_t)(x))<<UART_IR_TNP_SHIFT))&UART_IR_TNP_MASK)
Kojto 90:cb3d968589d8 9004 #define UART_IR_IREN_MASK 0x4u
Kojto 90:cb3d968589d8 9005 #define UART_IR_IREN_SHIFT 2
Kojto 90:cb3d968589d8 9006 /* PFIFO Bit Fields */
Kojto 90:cb3d968589d8 9007 #define UART_PFIFO_RXFIFOSIZE_MASK 0x7u
Kojto 90:cb3d968589d8 9008 #define UART_PFIFO_RXFIFOSIZE_SHIFT 0
Kojto 90:cb3d968589d8 9009 #define UART_PFIFO_RXFIFOSIZE(x) (((uint8_t)(((uint8_t)(x))<<UART_PFIFO_RXFIFOSIZE_SHIFT))&UART_PFIFO_RXFIFOSIZE_MASK)
Kojto 90:cb3d968589d8 9010 #define UART_PFIFO_RXFE_MASK 0x8u
Kojto 90:cb3d968589d8 9011 #define UART_PFIFO_RXFE_SHIFT 3
Kojto 90:cb3d968589d8 9012 #define UART_PFIFO_TXFIFOSIZE_MASK 0x70u
Kojto 90:cb3d968589d8 9013 #define UART_PFIFO_TXFIFOSIZE_SHIFT 4
Kojto 90:cb3d968589d8 9014 #define UART_PFIFO_TXFIFOSIZE(x) (((uint8_t)(((uint8_t)(x))<<UART_PFIFO_TXFIFOSIZE_SHIFT))&UART_PFIFO_TXFIFOSIZE_MASK)
Kojto 90:cb3d968589d8 9015 #define UART_PFIFO_TXFE_MASK 0x80u
Kojto 90:cb3d968589d8 9016 #define UART_PFIFO_TXFE_SHIFT 7
Kojto 90:cb3d968589d8 9017 /* CFIFO Bit Fields */
Kojto 90:cb3d968589d8 9018 #define UART_CFIFO_RXUFE_MASK 0x1u
Kojto 90:cb3d968589d8 9019 #define UART_CFIFO_RXUFE_SHIFT 0
Kojto 90:cb3d968589d8 9020 #define UART_CFIFO_TXOFE_MASK 0x2u
Kojto 90:cb3d968589d8 9021 #define UART_CFIFO_TXOFE_SHIFT 1
Kojto 90:cb3d968589d8 9022 #define UART_CFIFO_RXOFE_MASK 0x4u
Kojto 90:cb3d968589d8 9023 #define UART_CFIFO_RXOFE_SHIFT 2
Kojto 90:cb3d968589d8 9024 #define UART_CFIFO_RXFLUSH_MASK 0x40u
Kojto 90:cb3d968589d8 9025 #define UART_CFIFO_RXFLUSH_SHIFT 6
Kojto 90:cb3d968589d8 9026 #define UART_CFIFO_TXFLUSH_MASK 0x80u
Kojto 90:cb3d968589d8 9027 #define UART_CFIFO_TXFLUSH_SHIFT 7
Kojto 90:cb3d968589d8 9028 /* SFIFO Bit Fields */
Kojto 90:cb3d968589d8 9029 #define UART_SFIFO_RXUF_MASK 0x1u
Kojto 90:cb3d968589d8 9030 #define UART_SFIFO_RXUF_SHIFT 0
Kojto 90:cb3d968589d8 9031 #define UART_SFIFO_TXOF_MASK 0x2u
Kojto 90:cb3d968589d8 9032 #define UART_SFIFO_TXOF_SHIFT 1
Kojto 90:cb3d968589d8 9033 #define UART_SFIFO_RXOF_MASK 0x4u
Kojto 90:cb3d968589d8 9034 #define UART_SFIFO_RXOF_SHIFT 2
Kojto 90:cb3d968589d8 9035 #define UART_SFIFO_RXEMPT_MASK 0x40u
Kojto 90:cb3d968589d8 9036 #define UART_SFIFO_RXEMPT_SHIFT 6
Kojto 90:cb3d968589d8 9037 #define UART_SFIFO_TXEMPT_MASK 0x80u
Kojto 90:cb3d968589d8 9038 #define UART_SFIFO_TXEMPT_SHIFT 7
Kojto 90:cb3d968589d8 9039 /* TWFIFO Bit Fields */
Kojto 90:cb3d968589d8 9040 #define UART_TWFIFO_TXWATER_MASK 0xFFu
Kojto 90:cb3d968589d8 9041 #define UART_TWFIFO_TXWATER_SHIFT 0
Kojto 90:cb3d968589d8 9042 #define UART_TWFIFO_TXWATER(x) (((uint8_t)(((uint8_t)(x))<<UART_TWFIFO_TXWATER_SHIFT))&UART_TWFIFO_TXWATER_MASK)
Kojto 90:cb3d968589d8 9043 /* TCFIFO Bit Fields */
Kojto 90:cb3d968589d8 9044 #define UART_TCFIFO_TXCOUNT_MASK 0xFFu
Kojto 90:cb3d968589d8 9045 #define UART_TCFIFO_TXCOUNT_SHIFT 0
Kojto 90:cb3d968589d8 9046 #define UART_TCFIFO_TXCOUNT(x) (((uint8_t)(((uint8_t)(x))<<UART_TCFIFO_TXCOUNT_SHIFT))&UART_TCFIFO_TXCOUNT_MASK)
Kojto 90:cb3d968589d8 9047 /* RWFIFO Bit Fields */
Kojto 90:cb3d968589d8 9048 #define UART_RWFIFO_RXWATER_MASK 0xFFu
Kojto 90:cb3d968589d8 9049 #define UART_RWFIFO_RXWATER_SHIFT 0
Kojto 90:cb3d968589d8 9050 #define UART_RWFIFO_RXWATER(x) (((uint8_t)(((uint8_t)(x))<<UART_RWFIFO_RXWATER_SHIFT))&UART_RWFIFO_RXWATER_MASK)
Kojto 90:cb3d968589d8 9051 /* RCFIFO Bit Fields */
Kojto 90:cb3d968589d8 9052 #define UART_RCFIFO_RXCOUNT_MASK 0xFFu
Kojto 90:cb3d968589d8 9053 #define UART_RCFIFO_RXCOUNT_SHIFT 0
Kojto 90:cb3d968589d8 9054 #define UART_RCFIFO_RXCOUNT(x) (((uint8_t)(((uint8_t)(x))<<UART_RCFIFO_RXCOUNT_SHIFT))&UART_RCFIFO_RXCOUNT_MASK)
Kojto 90:cb3d968589d8 9055 /* C7816 Bit Fields */
Kojto 90:cb3d968589d8 9056 #define UART_C7816_ISO_7816E_MASK 0x1u
Kojto 90:cb3d968589d8 9057 #define UART_C7816_ISO_7816E_SHIFT 0
Kojto 90:cb3d968589d8 9058 #define UART_C7816_TTYPE_MASK 0x2u
Kojto 90:cb3d968589d8 9059 #define UART_C7816_TTYPE_SHIFT 1
Kojto 90:cb3d968589d8 9060 #define UART_C7816_INIT_MASK 0x4u
Kojto 90:cb3d968589d8 9061 #define UART_C7816_INIT_SHIFT 2
Kojto 90:cb3d968589d8 9062 #define UART_C7816_ANACK_MASK 0x8u
Kojto 90:cb3d968589d8 9063 #define UART_C7816_ANACK_SHIFT 3
Kojto 90:cb3d968589d8 9064 #define UART_C7816_ONACK_MASK 0x10u
Kojto 90:cb3d968589d8 9065 #define UART_C7816_ONACK_SHIFT 4
Kojto 90:cb3d968589d8 9066 /* IE7816 Bit Fields */
Kojto 90:cb3d968589d8 9067 #define UART_IE7816_RXTE_MASK 0x1u
Kojto 90:cb3d968589d8 9068 #define UART_IE7816_RXTE_SHIFT 0
Kojto 90:cb3d968589d8 9069 #define UART_IE7816_TXTE_MASK 0x2u
Kojto 90:cb3d968589d8 9070 #define UART_IE7816_TXTE_SHIFT 1
Kojto 90:cb3d968589d8 9071 #define UART_IE7816_GTVE_MASK 0x4u
Kojto 90:cb3d968589d8 9072 #define UART_IE7816_GTVE_SHIFT 2
Kojto 90:cb3d968589d8 9073 #define UART_IE7816_ADTE_MASK 0x8u
Kojto 90:cb3d968589d8 9074 #define UART_IE7816_ADTE_SHIFT 3
Kojto 90:cb3d968589d8 9075 #define UART_IE7816_INITDE_MASK 0x10u
Kojto 90:cb3d968589d8 9076 #define UART_IE7816_INITDE_SHIFT 4
Kojto 90:cb3d968589d8 9077 #define UART_IE7816_BWTE_MASK 0x20u
Kojto 90:cb3d968589d8 9078 #define UART_IE7816_BWTE_SHIFT 5
Kojto 90:cb3d968589d8 9079 #define UART_IE7816_CWTE_MASK 0x40u
Kojto 90:cb3d968589d8 9080 #define UART_IE7816_CWTE_SHIFT 6
Kojto 90:cb3d968589d8 9081 #define UART_IE7816_WTE_MASK 0x80u
Kojto 90:cb3d968589d8 9082 #define UART_IE7816_WTE_SHIFT 7
Kojto 90:cb3d968589d8 9083 /* IS7816 Bit Fields */
Kojto 90:cb3d968589d8 9084 #define UART_IS7816_RXT_MASK 0x1u
Kojto 90:cb3d968589d8 9085 #define UART_IS7816_RXT_SHIFT 0
Kojto 90:cb3d968589d8 9086 #define UART_IS7816_TXT_MASK 0x2u
Kojto 90:cb3d968589d8 9087 #define UART_IS7816_TXT_SHIFT 1
Kojto 90:cb3d968589d8 9088 #define UART_IS7816_GTV_MASK 0x4u
Kojto 90:cb3d968589d8 9089 #define UART_IS7816_GTV_SHIFT 2
Kojto 90:cb3d968589d8 9090 #define UART_IS7816_ADT_MASK 0x8u
Kojto 90:cb3d968589d8 9091 #define UART_IS7816_ADT_SHIFT 3
Kojto 90:cb3d968589d8 9092 #define UART_IS7816_INITD_MASK 0x10u
Kojto 90:cb3d968589d8 9093 #define UART_IS7816_INITD_SHIFT 4
Kojto 90:cb3d968589d8 9094 #define UART_IS7816_BWT_MASK 0x20u
Kojto 90:cb3d968589d8 9095 #define UART_IS7816_BWT_SHIFT 5
Kojto 90:cb3d968589d8 9096 #define UART_IS7816_CWT_MASK 0x40u
Kojto 90:cb3d968589d8 9097 #define UART_IS7816_CWT_SHIFT 6
Kojto 90:cb3d968589d8 9098 #define UART_IS7816_WT_MASK 0x80u
Kojto 90:cb3d968589d8 9099 #define UART_IS7816_WT_SHIFT 7
Kojto 90:cb3d968589d8 9100 /* WP7816 Bit Fields */
Kojto 90:cb3d968589d8 9101 #define UART_WP7816_WTX_MASK 0xFFu
Kojto 90:cb3d968589d8 9102 #define UART_WP7816_WTX_SHIFT 0
Kojto 90:cb3d968589d8 9103 #define UART_WP7816_WTX(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816_WTX_SHIFT))&UART_WP7816_WTX_MASK)
Kojto 90:cb3d968589d8 9104 /* WN7816 Bit Fields */
Kojto 90:cb3d968589d8 9105 #define UART_WN7816_GTN_MASK 0xFFu
Kojto 90:cb3d968589d8 9106 #define UART_WN7816_GTN_SHIFT 0
Kojto 90:cb3d968589d8 9107 #define UART_WN7816_GTN(x) (((uint8_t)(((uint8_t)(x))<<UART_WN7816_GTN_SHIFT))&UART_WN7816_GTN_MASK)
Kojto 90:cb3d968589d8 9108 /* WF7816 Bit Fields */
Kojto 90:cb3d968589d8 9109 #define UART_WF7816_GTFD_MASK 0xFFu
Kojto 90:cb3d968589d8 9110 #define UART_WF7816_GTFD_SHIFT 0
Kojto 90:cb3d968589d8 9111 #define UART_WF7816_GTFD(x) (((uint8_t)(((uint8_t)(x))<<UART_WF7816_GTFD_SHIFT))&UART_WF7816_GTFD_MASK)
Kojto 90:cb3d968589d8 9112 /* ET7816 Bit Fields */
Kojto 90:cb3d968589d8 9113 #define UART_ET7816_RXTHRESHOLD_MASK 0xFu
Kojto 90:cb3d968589d8 9114 #define UART_ET7816_RXTHRESHOLD_SHIFT 0
Kojto 90:cb3d968589d8 9115 #define UART_ET7816_RXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x))<<UART_ET7816_RXTHRESHOLD_SHIFT))&UART_ET7816_RXTHRESHOLD_MASK)
Kojto 90:cb3d968589d8 9116 #define UART_ET7816_TXTHRESHOLD_MASK 0xF0u
Kojto 90:cb3d968589d8 9117 #define UART_ET7816_TXTHRESHOLD_SHIFT 4
Kojto 90:cb3d968589d8 9118 #define UART_ET7816_TXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x))<<UART_ET7816_TXTHRESHOLD_SHIFT))&UART_ET7816_TXTHRESHOLD_MASK)
Kojto 90:cb3d968589d8 9119 /* TL7816 Bit Fields */
Kojto 90:cb3d968589d8 9120 #define UART_TL7816_TLEN_MASK 0xFFu
Kojto 90:cb3d968589d8 9121 #define UART_TL7816_TLEN_SHIFT 0
Kojto 90:cb3d968589d8 9122 #define UART_TL7816_TLEN(x) (((uint8_t)(((uint8_t)(x))<<UART_TL7816_TLEN_SHIFT))&UART_TL7816_TLEN_MASK)
Kojto 90:cb3d968589d8 9123 /* AP7816A_T0 Bit Fields */
Kojto 90:cb3d968589d8 9124 #define UART_AP7816A_T0_ADTI_H_MASK 0xFFu
Kojto 90:cb3d968589d8 9125 #define UART_AP7816A_T0_ADTI_H_SHIFT 0
Kojto 90:cb3d968589d8 9126 #define UART_AP7816A_T0_ADTI_H(x) (((uint8_t)(((uint8_t)(x))<<UART_AP7816A_T0_ADTI_H_SHIFT))&UART_AP7816A_T0_ADTI_H_MASK)
Kojto 90:cb3d968589d8 9127 /* AP7816B_T0 Bit Fields */
Kojto 90:cb3d968589d8 9128 #define UART_AP7816B_T0_ADTI_L_MASK 0xFFu
Kojto 90:cb3d968589d8 9129 #define UART_AP7816B_T0_ADTI_L_SHIFT 0
Kojto 90:cb3d968589d8 9130 #define UART_AP7816B_T0_ADTI_L(x) (((uint8_t)(((uint8_t)(x))<<UART_AP7816B_T0_ADTI_L_SHIFT))&UART_AP7816B_T0_ADTI_L_MASK)
Kojto 90:cb3d968589d8 9131 /* WP7816A_T0 Bit Fields */
Kojto 90:cb3d968589d8 9132 #define UART_WP7816A_T0_WI_H_MASK 0xFFu
Kojto 90:cb3d968589d8 9133 #define UART_WP7816A_T0_WI_H_SHIFT 0
Kojto 90:cb3d968589d8 9134 #define UART_WP7816A_T0_WI_H(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816A_T0_WI_H_SHIFT))&UART_WP7816A_T0_WI_H_MASK)
Kojto 90:cb3d968589d8 9135 /* WP7816B_T0 Bit Fields */
Kojto 90:cb3d968589d8 9136 #define UART_WP7816B_T0_WI_L_MASK 0xFFu
Kojto 90:cb3d968589d8 9137 #define UART_WP7816B_T0_WI_L_SHIFT 0
Kojto 90:cb3d968589d8 9138 #define UART_WP7816B_T0_WI_L(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816B_T0_WI_L_SHIFT))&UART_WP7816B_T0_WI_L_MASK)
Kojto 90:cb3d968589d8 9139 /* WP7816A_T1 Bit Fields */
Kojto 90:cb3d968589d8 9140 #define UART_WP7816A_T1_BWI_H_MASK 0xFFu
Kojto 90:cb3d968589d8 9141 #define UART_WP7816A_T1_BWI_H_SHIFT 0
Kojto 90:cb3d968589d8 9142 #define UART_WP7816A_T1_BWI_H(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816A_T1_BWI_H_SHIFT))&UART_WP7816A_T1_BWI_H_MASK)
Kojto 90:cb3d968589d8 9143 /* WP7816B_T1 Bit Fields */
Kojto 90:cb3d968589d8 9144 #define UART_WP7816B_T1_BWI_L_MASK 0xFFu
Kojto 90:cb3d968589d8 9145 #define UART_WP7816B_T1_BWI_L_SHIFT 0
Kojto 90:cb3d968589d8 9146 #define UART_WP7816B_T1_BWI_L(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816B_T1_BWI_L_SHIFT))&UART_WP7816B_T1_BWI_L_MASK)
Kojto 90:cb3d968589d8 9147 /* WGP7816_T1 Bit Fields */
Kojto 90:cb3d968589d8 9148 #define UART_WGP7816_T1_BGI_MASK 0xFu
Kojto 90:cb3d968589d8 9149 #define UART_WGP7816_T1_BGI_SHIFT 0
Kojto 90:cb3d968589d8 9150 #define UART_WGP7816_T1_BGI(x) (((uint8_t)(((uint8_t)(x))<<UART_WGP7816_T1_BGI_SHIFT))&UART_WGP7816_T1_BGI_MASK)
Kojto 90:cb3d968589d8 9151 #define UART_WGP7816_T1_CWI1_MASK 0xF0u
Kojto 90:cb3d968589d8 9152 #define UART_WGP7816_T1_CWI1_SHIFT 4
Kojto 90:cb3d968589d8 9153 #define UART_WGP7816_T1_CWI1(x) (((uint8_t)(((uint8_t)(x))<<UART_WGP7816_T1_CWI1_SHIFT))&UART_WGP7816_T1_CWI1_MASK)
Kojto 90:cb3d968589d8 9154 /* WP7816C_T1 Bit Fields */
Kojto 90:cb3d968589d8 9155 #define UART_WP7816C_T1_CWI2_MASK 0x1Fu
Kojto 90:cb3d968589d8 9156 #define UART_WP7816C_T1_CWI2_SHIFT 0
Kojto 90:cb3d968589d8 9157 #define UART_WP7816C_T1_CWI2(x) (((uint8_t)(((uint8_t)(x))<<UART_WP7816C_T1_CWI2_SHIFT))&UART_WP7816C_T1_CWI2_MASK)
Kojto 90:cb3d968589d8 9158
Kojto 90:cb3d968589d8 9159 /*!
Kojto 90:cb3d968589d8 9160 * @}
Kojto 90:cb3d968589d8 9161 */ /* end of group UART_Register_Masks */
Kojto 90:cb3d968589d8 9162
Kojto 90:cb3d968589d8 9163
Kojto 90:cb3d968589d8 9164 /* UART - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 9165 /** Peripheral UART0 base address */
Kojto 90:cb3d968589d8 9166 #define UART0_BASE (0x4006A000u)
Kojto 90:cb3d968589d8 9167 /** Peripheral UART0 base pointer */
Kojto 90:cb3d968589d8 9168 #define UART0 ((UART_Type *)UART0_BASE)
Kojto 90:cb3d968589d8 9169 #define UART0_BASE_PTR (UART0)
Kojto 90:cb3d968589d8 9170 /** Peripheral UART1 base address */
Kojto 90:cb3d968589d8 9171 #define UART1_BASE (0x4006B000u)
Kojto 90:cb3d968589d8 9172 /** Peripheral UART1 base pointer */
Kojto 90:cb3d968589d8 9173 #define UART1 ((UART_Type *)UART1_BASE)
Kojto 90:cb3d968589d8 9174 #define UART1_BASE_PTR (UART1)
Kojto 90:cb3d968589d8 9175 /** Peripheral UART2 base address */
Kojto 90:cb3d968589d8 9176 #define UART2_BASE (0x4006C000u)
Kojto 90:cb3d968589d8 9177 /** Peripheral UART2 base pointer */
Kojto 90:cb3d968589d8 9178 #define UART2 ((UART_Type *)UART2_BASE)
Kojto 90:cb3d968589d8 9179 #define UART2_BASE_PTR (UART2)
Kojto 90:cb3d968589d8 9180 /** Array initializer of UART peripheral base addresses */
Kojto 90:cb3d968589d8 9181 #define UART_BASE_ADDRS { UART0_BASE, UART1_BASE, UART2_BASE }
Kojto 90:cb3d968589d8 9182 /** Array initializer of UART peripheral base pointers */
Kojto 90:cb3d968589d8 9183 #define UART_BASE_PTRS { UART0, UART1, UART2 }
Kojto 90:cb3d968589d8 9184 /** Interrupt vectors for the UART peripheral type */
Kojto 90:cb3d968589d8 9185 #define UART_RX_TX_IRQS { UART0_RX_TX_IRQn, UART1_RX_TX_IRQn, UART2_RX_TX_IRQn }
Kojto 90:cb3d968589d8 9186 #define UART_ERR_IRQS { UART0_ERR_IRQn, UART1_ERR_IRQn, UART2_ERR_IRQn }
Kojto 90:cb3d968589d8 9187
Kojto 90:cb3d968589d8 9188 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9189 -- UART - Register accessor macros
Kojto 90:cb3d968589d8 9190 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9191
Kojto 90:cb3d968589d8 9192 /*!
Kojto 90:cb3d968589d8 9193 * @addtogroup UART_Register_Accessor_Macros UART - Register accessor macros
Kojto 90:cb3d968589d8 9194 * @{
Kojto 90:cb3d968589d8 9195 */
Kojto 90:cb3d968589d8 9196
Kojto 90:cb3d968589d8 9197
Kojto 90:cb3d968589d8 9198 /* UART - Register instance definitions */
Kojto 90:cb3d968589d8 9199 /* UART0 */
Kojto 90:cb3d968589d8 9200 #define UART0_BDH UART_BDH_REG(UART0)
Kojto 90:cb3d968589d8 9201 #define UART0_BDL UART_BDL_REG(UART0)
Kojto 90:cb3d968589d8 9202 #define UART0_C1 UART_C1_REG(UART0)
Kojto 90:cb3d968589d8 9203 #define UART0_C2 UART_C2_REG(UART0)
Kojto 90:cb3d968589d8 9204 #define UART0_S1 UART_S1_REG(UART0)
Kojto 90:cb3d968589d8 9205 #define UART0_S2 UART_S2_REG(UART0)
Kojto 90:cb3d968589d8 9206 #define UART0_C3 UART_C3_REG(UART0)
Kojto 90:cb3d968589d8 9207 #define UART0_D UART_D_REG(UART0)
Kojto 90:cb3d968589d8 9208 #define UART0_MA1 UART_MA1_REG(UART0)
Kojto 90:cb3d968589d8 9209 #define UART0_MA2 UART_MA2_REG(UART0)
Kojto 90:cb3d968589d8 9210 #define UART0_C4 UART_C4_REG(UART0)
Kojto 90:cb3d968589d8 9211 #define UART0_C5 UART_C5_REG(UART0)
Kojto 90:cb3d968589d8 9212 #define UART0_ED UART_ED_REG(UART0)
Kojto 90:cb3d968589d8 9213 #define UART0_MODEM UART_MODEM_REG(UART0)
Kojto 90:cb3d968589d8 9214 #define UART0_IR UART_IR_REG(UART0)
Kojto 90:cb3d968589d8 9215 #define UART0_PFIFO UART_PFIFO_REG(UART0)
Kojto 90:cb3d968589d8 9216 #define UART0_CFIFO UART_CFIFO_REG(UART0)
Kojto 90:cb3d968589d8 9217 #define UART0_SFIFO UART_SFIFO_REG(UART0)
Kojto 90:cb3d968589d8 9218 #define UART0_TWFIFO UART_TWFIFO_REG(UART0)
Kojto 90:cb3d968589d8 9219 #define UART0_TCFIFO UART_TCFIFO_REG(UART0)
Kojto 90:cb3d968589d8 9220 #define UART0_RWFIFO UART_RWFIFO_REG(UART0)
Kojto 90:cb3d968589d8 9221 #define UART0_RCFIFO UART_RCFIFO_REG(UART0)
Kojto 90:cb3d968589d8 9222 #define UART0_C7816 UART_C7816_REG(UART0)
Kojto 90:cb3d968589d8 9223 #define UART0_IE7816 UART_IE7816_REG(UART0)
Kojto 90:cb3d968589d8 9224 #define UART0_IS7816 UART_IS7816_REG(UART0)
Kojto 90:cb3d968589d8 9225 #define UART0_WP7816 UART_WP7816_REG(UART0)
Kojto 90:cb3d968589d8 9226 #define UART0_WN7816 UART_WN7816_REG(UART0)
Kojto 90:cb3d968589d8 9227 #define UART0_WF7816 UART_WF7816_REG(UART0)
Kojto 90:cb3d968589d8 9228 #define UART0_ET7816 UART_ET7816_REG(UART0)
Kojto 90:cb3d968589d8 9229 #define UART0_TL7816 UART_TL7816_REG(UART0)
Kojto 90:cb3d968589d8 9230 #define UART0_AP7816A_T0 UART_AP7816A_T0_REG(UART0)
Kojto 90:cb3d968589d8 9231 #define UART0_AP7816B_T0 UART_AP7816B_T0_REG(UART0)
Kojto 90:cb3d968589d8 9232 #define UART0_WP7816A_T0 UART_WP7816A_T0_REG(UART0)
Kojto 90:cb3d968589d8 9233 #define UART0_WP7816A_T1 UART_WP7816A_T1_REG(UART0)
Kojto 90:cb3d968589d8 9234 #define UART0_WP7816B_T0 UART_WP7816B_T0_REG(UART0)
Kojto 90:cb3d968589d8 9235 #define UART0_WP7816B_T1 UART_WP7816B_T1_REG(UART0)
Kojto 90:cb3d968589d8 9236 #define UART0_WGP7816_T1 UART_WGP7816_T1_REG(UART0)
Kojto 90:cb3d968589d8 9237 #define UART0_WP7816C_T1 UART_WP7816C_T1_REG(UART0)
Kojto 90:cb3d968589d8 9238 /* UART1 */
Kojto 90:cb3d968589d8 9239 #define UART1_BDH UART_BDH_REG(UART1)
Kojto 90:cb3d968589d8 9240 #define UART1_BDL UART_BDL_REG(UART1)
Kojto 90:cb3d968589d8 9241 #define UART1_C1 UART_C1_REG(UART1)
Kojto 90:cb3d968589d8 9242 #define UART1_C2 UART_C2_REG(UART1)
Kojto 90:cb3d968589d8 9243 #define UART1_S1 UART_S1_REG(UART1)
Kojto 90:cb3d968589d8 9244 #define UART1_S2 UART_S2_REG(UART1)
Kojto 90:cb3d968589d8 9245 #define UART1_C3 UART_C3_REG(UART1)
Kojto 90:cb3d968589d8 9246 #define UART1_D UART_D_REG(UART1)
Kojto 90:cb3d968589d8 9247 #define UART1_MA1 UART_MA1_REG(UART1)
Kojto 90:cb3d968589d8 9248 #define UART1_MA2 UART_MA2_REG(UART1)
Kojto 90:cb3d968589d8 9249 #define UART1_C4 UART_C4_REG(UART1)
Kojto 90:cb3d968589d8 9250 #define UART1_C5 UART_C5_REG(UART1)
Kojto 90:cb3d968589d8 9251 #define UART1_ED UART_ED_REG(UART1)
Kojto 90:cb3d968589d8 9252 #define UART1_MODEM UART_MODEM_REG(UART1)
Kojto 90:cb3d968589d8 9253 #define UART1_IR UART_IR_REG(UART1)
Kojto 90:cb3d968589d8 9254 #define UART1_PFIFO UART_PFIFO_REG(UART1)
Kojto 90:cb3d968589d8 9255 #define UART1_CFIFO UART_CFIFO_REG(UART1)
Kojto 90:cb3d968589d8 9256 #define UART1_SFIFO UART_SFIFO_REG(UART1)
Kojto 90:cb3d968589d8 9257 #define UART1_TWFIFO UART_TWFIFO_REG(UART1)
Kojto 90:cb3d968589d8 9258 #define UART1_TCFIFO UART_TCFIFO_REG(UART1)
Kojto 90:cb3d968589d8 9259 #define UART1_RWFIFO UART_RWFIFO_REG(UART1)
Kojto 90:cb3d968589d8 9260 #define UART1_RCFIFO UART_RCFIFO_REG(UART1)
Kojto 90:cb3d968589d8 9261 /* UART2 */
Kojto 90:cb3d968589d8 9262 #define UART2_BDH UART_BDH_REG(UART2)
Kojto 90:cb3d968589d8 9263 #define UART2_BDL UART_BDL_REG(UART2)
Kojto 90:cb3d968589d8 9264 #define UART2_C1 UART_C1_REG(UART2)
Kojto 90:cb3d968589d8 9265 #define UART2_C2 UART_C2_REG(UART2)
Kojto 90:cb3d968589d8 9266 #define UART2_S1 UART_S1_REG(UART2)
Kojto 90:cb3d968589d8 9267 #define UART2_S2 UART_S2_REG(UART2)
Kojto 90:cb3d968589d8 9268 #define UART2_C3 UART_C3_REG(UART2)
Kojto 90:cb3d968589d8 9269 #define UART2_D UART_D_REG(UART2)
Kojto 90:cb3d968589d8 9270 #define UART2_MA1 UART_MA1_REG(UART2)
Kojto 90:cb3d968589d8 9271 #define UART2_MA2 UART_MA2_REG(UART2)
Kojto 90:cb3d968589d8 9272 #define UART2_C4 UART_C4_REG(UART2)
Kojto 90:cb3d968589d8 9273 #define UART2_C5 UART_C5_REG(UART2)
Kojto 90:cb3d968589d8 9274 #define UART2_ED UART_ED_REG(UART2)
Kojto 90:cb3d968589d8 9275 #define UART2_MODEM UART_MODEM_REG(UART2)
Kojto 90:cb3d968589d8 9276 #define UART2_IR UART_IR_REG(UART2)
Kojto 90:cb3d968589d8 9277 #define UART2_PFIFO UART_PFIFO_REG(UART2)
Kojto 90:cb3d968589d8 9278 #define UART2_CFIFO UART_CFIFO_REG(UART2)
Kojto 90:cb3d968589d8 9279 #define UART2_SFIFO UART_SFIFO_REG(UART2)
Kojto 90:cb3d968589d8 9280 #define UART2_TWFIFO UART_TWFIFO_REG(UART2)
Kojto 90:cb3d968589d8 9281 #define UART2_TCFIFO UART_TCFIFO_REG(UART2)
Kojto 90:cb3d968589d8 9282 #define UART2_RWFIFO UART_RWFIFO_REG(UART2)
Kojto 90:cb3d968589d8 9283 #define UART2_RCFIFO UART_RCFIFO_REG(UART2)
Kojto 90:cb3d968589d8 9284
Kojto 90:cb3d968589d8 9285 /*!
Kojto 90:cb3d968589d8 9286 * @}
Kojto 90:cb3d968589d8 9287 */ /* end of group UART_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 9288
Kojto 90:cb3d968589d8 9289
Kojto 90:cb3d968589d8 9290 /*!
Kojto 90:cb3d968589d8 9291 * @}
Kojto 90:cb3d968589d8 9292 */ /* end of group UART_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 9293
Kojto 90:cb3d968589d8 9294
Kojto 90:cb3d968589d8 9295 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9296 -- USB Peripheral Access Layer
Kojto 90:cb3d968589d8 9297 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9298
Kojto 90:cb3d968589d8 9299 /*!
Kojto 90:cb3d968589d8 9300 * @addtogroup USB_Peripheral_Access_Layer USB Peripheral Access Layer
Kojto 90:cb3d968589d8 9301 * @{
Kojto 90:cb3d968589d8 9302 */
Kojto 90:cb3d968589d8 9303
Kojto 90:cb3d968589d8 9304 /** USB - Register Layout Typedef */
Kojto 90:cb3d968589d8 9305 typedef struct {
Kojto 90:cb3d968589d8 9306 __I uint8_t PERID; /**< Peripheral ID register, offset: 0x0 */
Kojto 90:cb3d968589d8 9307 uint8_t RESERVED_0[3];
Kojto 90:cb3d968589d8 9308 __I uint8_t IDCOMP; /**< Peripheral ID Complement register, offset: 0x4 */
Kojto 90:cb3d968589d8 9309 uint8_t RESERVED_1[3];
Kojto 90:cb3d968589d8 9310 __I uint8_t REV; /**< Peripheral Revision register, offset: 0x8 */
Kojto 90:cb3d968589d8 9311 uint8_t RESERVED_2[3];
Kojto 90:cb3d968589d8 9312 __I uint8_t ADDINFO; /**< Peripheral Additional Info register, offset: 0xC */
Kojto 90:cb3d968589d8 9313 uint8_t RESERVED_3[3];
Kojto 90:cb3d968589d8 9314 __IO uint8_t OTGISTAT; /**< OTG Interrupt Status register, offset: 0x10 */
Kojto 90:cb3d968589d8 9315 uint8_t RESERVED_4[3];
Kojto 90:cb3d968589d8 9316 __IO uint8_t OTGICR; /**< OTG Interrupt Control register, offset: 0x14 */
Kojto 90:cb3d968589d8 9317 uint8_t RESERVED_5[3];
Kojto 90:cb3d968589d8 9318 __IO uint8_t OTGSTAT; /**< OTG Status register, offset: 0x18 */
Kojto 90:cb3d968589d8 9319 uint8_t RESERVED_6[3];
Kojto 90:cb3d968589d8 9320 __IO uint8_t OTGCTL; /**< OTG Control register, offset: 0x1C */
Kojto 90:cb3d968589d8 9321 uint8_t RESERVED_7[99];
Kojto 90:cb3d968589d8 9322 __IO uint8_t ISTAT; /**< Interrupt Status register, offset: 0x80 */
Kojto 90:cb3d968589d8 9323 uint8_t RESERVED_8[3];
Kojto 90:cb3d968589d8 9324 __IO uint8_t INTEN; /**< Interrupt Enable register, offset: 0x84 */
Kojto 90:cb3d968589d8 9325 uint8_t RESERVED_9[3];
Kojto 90:cb3d968589d8 9326 __IO uint8_t ERRSTAT; /**< Error Interrupt Status register, offset: 0x88 */
Kojto 90:cb3d968589d8 9327 uint8_t RESERVED_10[3];
Kojto 90:cb3d968589d8 9328 __IO uint8_t ERREN; /**< Error Interrupt Enable register, offset: 0x8C */
Kojto 90:cb3d968589d8 9329 uint8_t RESERVED_11[3];
Kojto 90:cb3d968589d8 9330 __I uint8_t STAT; /**< Status register, offset: 0x90 */
Kojto 90:cb3d968589d8 9331 uint8_t RESERVED_12[3];
Kojto 90:cb3d968589d8 9332 __IO uint8_t CTL; /**< Control register, offset: 0x94 */
Kojto 90:cb3d968589d8 9333 uint8_t RESERVED_13[3];
Kojto 90:cb3d968589d8 9334 __IO uint8_t ADDR; /**< Address register, offset: 0x98 */
Kojto 90:cb3d968589d8 9335 uint8_t RESERVED_14[3];
Kojto 90:cb3d968589d8 9336 __IO uint8_t BDTPAGE1; /**< BDT Page register 1, offset: 0x9C */
Kojto 90:cb3d968589d8 9337 uint8_t RESERVED_15[3];
Kojto 90:cb3d968589d8 9338 __IO uint8_t FRMNUML; /**< Frame Number register Low, offset: 0xA0 */
Kojto 90:cb3d968589d8 9339 uint8_t RESERVED_16[3];
Kojto 90:cb3d968589d8 9340 __IO uint8_t FRMNUMH; /**< Frame Number register High, offset: 0xA4 */
Kojto 90:cb3d968589d8 9341 uint8_t RESERVED_17[3];
Kojto 90:cb3d968589d8 9342 __IO uint8_t TOKEN; /**< Token register, offset: 0xA8 */
Kojto 90:cb3d968589d8 9343 uint8_t RESERVED_18[3];
Kojto 90:cb3d968589d8 9344 __IO uint8_t SOFTHLD; /**< SOF Threshold register, offset: 0xAC */
Kojto 90:cb3d968589d8 9345 uint8_t RESERVED_19[3];
Kojto 90:cb3d968589d8 9346 __IO uint8_t BDTPAGE2; /**< BDT Page Register 2, offset: 0xB0 */
Kojto 90:cb3d968589d8 9347 uint8_t RESERVED_20[3];
Kojto 90:cb3d968589d8 9348 __IO uint8_t BDTPAGE3; /**< BDT Page Register 3, offset: 0xB4 */
Kojto 90:cb3d968589d8 9349 uint8_t RESERVED_21[11];
Kojto 90:cb3d968589d8 9350 struct { /* offset: 0xC0, array step: 0x4 */
Kojto 90:cb3d968589d8 9351 __IO uint8_t ENDPT; /**< Endpoint Control register, array offset: 0xC0, array step: 0x4 */
Kojto 90:cb3d968589d8 9352 uint8_t RESERVED_0[3];
Kojto 90:cb3d968589d8 9353 } ENDPOINT[16];
Kojto 90:cb3d968589d8 9354 __IO uint8_t USBCTRL; /**< USB Control register, offset: 0x100 */
Kojto 90:cb3d968589d8 9355 uint8_t RESERVED_22[3];
Kojto 90:cb3d968589d8 9356 __I uint8_t OBSERVE; /**< USB OTG Observe register, offset: 0x104 */
Kojto 90:cb3d968589d8 9357 uint8_t RESERVED_23[3];
Kojto 90:cb3d968589d8 9358 __IO uint8_t CONTROL; /**< USB OTG Control register, offset: 0x108 */
Kojto 90:cb3d968589d8 9359 uint8_t RESERVED_24[3];
Kojto 90:cb3d968589d8 9360 __IO uint8_t USBTRC0; /**< USB Transceiver Control register 0, offset: 0x10C */
Kojto 90:cb3d968589d8 9361 uint8_t RESERVED_25[7];
Kojto 90:cb3d968589d8 9362 __IO uint8_t USBFRMADJUST; /**< Frame Adjust Register, offset: 0x114 */
Kojto 90:cb3d968589d8 9363 uint8_t RESERVED_26[43];
Kojto 90:cb3d968589d8 9364 __IO uint8_t CLK_RECOVER_CTRL; /**< USB Clock recovery control, offset: 0x140 */
Kojto 90:cb3d968589d8 9365 uint8_t RESERVED_27[3];
Kojto 90:cb3d968589d8 9366 __IO uint8_t CLK_RECOVER_IRC_EN; /**< IRC48M oscillator enable register, offset: 0x144 */
Kojto 90:cb3d968589d8 9367 uint8_t RESERVED_28[23];
Kojto 90:cb3d968589d8 9368 __IO uint8_t CLK_RECOVER_INT_STATUS; /**< Clock recovery separated interrupt status, offset: 0x15C */
Kojto 90:cb3d968589d8 9369 } USB_Type, *USB_MemMapPtr;
Kojto 90:cb3d968589d8 9370
Kojto 90:cb3d968589d8 9371 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9372 -- USB - Register accessor macros
Kojto 90:cb3d968589d8 9373 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9374
Kojto 90:cb3d968589d8 9375 /*!
Kojto 90:cb3d968589d8 9376 * @addtogroup USB_Register_Accessor_Macros USB - Register accessor macros
Kojto 90:cb3d968589d8 9377 * @{
Kojto 90:cb3d968589d8 9378 */
Kojto 90:cb3d968589d8 9379
Kojto 90:cb3d968589d8 9380
Kojto 90:cb3d968589d8 9381 /* USB - Register accessors */
Kojto 90:cb3d968589d8 9382 #define USB_PERID_REG(base) ((base)->PERID)
Kojto 90:cb3d968589d8 9383 #define USB_IDCOMP_REG(base) ((base)->IDCOMP)
Kojto 90:cb3d968589d8 9384 #define USB_REV_REG(base) ((base)->REV)
Kojto 90:cb3d968589d8 9385 #define USB_ADDINFO_REG(base) ((base)->ADDINFO)
Kojto 90:cb3d968589d8 9386 #define USB_OTGISTAT_REG(base) ((base)->OTGISTAT)
Kojto 90:cb3d968589d8 9387 #define USB_OTGICR_REG(base) ((base)->OTGICR)
Kojto 90:cb3d968589d8 9388 #define USB_OTGSTAT_REG(base) ((base)->OTGSTAT)
Kojto 90:cb3d968589d8 9389 #define USB_OTGCTL_REG(base) ((base)->OTGCTL)
Kojto 90:cb3d968589d8 9390 #define USB_ISTAT_REG(base) ((base)->ISTAT)
Kojto 90:cb3d968589d8 9391 #define USB_INTEN_REG(base) ((base)->INTEN)
Kojto 90:cb3d968589d8 9392 #define USB_ERRSTAT_REG(base) ((base)->ERRSTAT)
Kojto 90:cb3d968589d8 9393 #define USB_ERREN_REG(base) ((base)->ERREN)
Kojto 90:cb3d968589d8 9394 #define USB_STAT_REG(base) ((base)->STAT)
Kojto 90:cb3d968589d8 9395 #define USB_CTL_REG(base) ((base)->CTL)
Kojto 90:cb3d968589d8 9396 #define USB_ADDR_REG(base) ((base)->ADDR)
Kojto 90:cb3d968589d8 9397 #define USB_BDTPAGE1_REG(base) ((base)->BDTPAGE1)
Kojto 90:cb3d968589d8 9398 #define USB_FRMNUML_REG(base) ((base)->FRMNUML)
Kojto 90:cb3d968589d8 9399 #define USB_FRMNUMH_REG(base) ((base)->FRMNUMH)
Kojto 90:cb3d968589d8 9400 #define USB_TOKEN_REG(base) ((base)->TOKEN)
Kojto 90:cb3d968589d8 9401 #define USB_SOFTHLD_REG(base) ((base)->SOFTHLD)
Kojto 90:cb3d968589d8 9402 #define USB_BDTPAGE2_REG(base) ((base)->BDTPAGE2)
Kojto 90:cb3d968589d8 9403 #define USB_BDTPAGE3_REG(base) ((base)->BDTPAGE3)
Kojto 90:cb3d968589d8 9404 #define USB_ENDPT_REG(base,index) ((base)->ENDPOINT[index].ENDPT)
Kojto 90:cb3d968589d8 9405 #define USB_USBCTRL_REG(base) ((base)->USBCTRL)
Kojto 90:cb3d968589d8 9406 #define USB_OBSERVE_REG(base) ((base)->OBSERVE)
Kojto 90:cb3d968589d8 9407 #define USB_CONTROL_REG(base) ((base)->CONTROL)
Kojto 90:cb3d968589d8 9408 #define USB_USBTRC0_REG(base) ((base)->USBTRC0)
Kojto 90:cb3d968589d8 9409 #define USB_USBFRMADJUST_REG(base) ((base)->USBFRMADJUST)
Kojto 90:cb3d968589d8 9410 #define USB_CLK_RECOVER_CTRL_REG(base) ((base)->CLK_RECOVER_CTRL)
Kojto 90:cb3d968589d8 9411 #define USB_CLK_RECOVER_IRC_EN_REG(base) ((base)->CLK_RECOVER_IRC_EN)
Kojto 90:cb3d968589d8 9412 #define USB_CLK_RECOVER_INT_STATUS_REG(base) ((base)->CLK_RECOVER_INT_STATUS)
Kojto 90:cb3d968589d8 9413
Kojto 90:cb3d968589d8 9414 /*!
Kojto 90:cb3d968589d8 9415 * @}
Kojto 90:cb3d968589d8 9416 */ /* end of group USB_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 9417
Kojto 90:cb3d968589d8 9418
Kojto 90:cb3d968589d8 9419 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9420 -- USB Register Masks
Kojto 90:cb3d968589d8 9421 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9422
Kojto 90:cb3d968589d8 9423 /*!
Kojto 90:cb3d968589d8 9424 * @addtogroup USB_Register_Masks USB Register Masks
Kojto 90:cb3d968589d8 9425 * @{
Kojto 90:cb3d968589d8 9426 */
Kojto 90:cb3d968589d8 9427
Kojto 90:cb3d968589d8 9428 /* PERID Bit Fields */
Kojto 90:cb3d968589d8 9429 #define USB_PERID_ID_MASK 0x3Fu
Kojto 90:cb3d968589d8 9430 #define USB_PERID_ID_SHIFT 0
Kojto 90:cb3d968589d8 9431 #define USB_PERID_ID(x) (((uint8_t)(((uint8_t)(x))<<USB_PERID_ID_SHIFT))&USB_PERID_ID_MASK)
Kojto 90:cb3d968589d8 9432 /* IDCOMP Bit Fields */
Kojto 90:cb3d968589d8 9433 #define USB_IDCOMP_NID_MASK 0x3Fu
Kojto 90:cb3d968589d8 9434 #define USB_IDCOMP_NID_SHIFT 0
Kojto 90:cb3d968589d8 9435 #define USB_IDCOMP_NID(x) (((uint8_t)(((uint8_t)(x))<<USB_IDCOMP_NID_SHIFT))&USB_IDCOMP_NID_MASK)
Kojto 90:cb3d968589d8 9436 /* REV Bit Fields */
Kojto 90:cb3d968589d8 9437 #define USB_REV_REV_MASK 0xFFu
Kojto 90:cb3d968589d8 9438 #define USB_REV_REV_SHIFT 0
Kojto 90:cb3d968589d8 9439 #define USB_REV_REV(x) (((uint8_t)(((uint8_t)(x))<<USB_REV_REV_SHIFT))&USB_REV_REV_MASK)
Kojto 90:cb3d968589d8 9440 /* ADDINFO Bit Fields */
Kojto 90:cb3d968589d8 9441 #define USB_ADDINFO_IEHOST_MASK 0x1u
Kojto 90:cb3d968589d8 9442 #define USB_ADDINFO_IEHOST_SHIFT 0
Kojto 90:cb3d968589d8 9443 /* OTGISTAT Bit Fields */
Kojto 90:cb3d968589d8 9444 #define USB_OTGISTAT_AVBUSCHG_MASK 0x1u
Kojto 90:cb3d968589d8 9445 #define USB_OTGISTAT_AVBUSCHG_SHIFT 0
Kojto 90:cb3d968589d8 9446 #define USB_OTGISTAT_B_SESS_CHG_MASK 0x4u
Kojto 90:cb3d968589d8 9447 #define USB_OTGISTAT_B_SESS_CHG_SHIFT 2
Kojto 90:cb3d968589d8 9448 #define USB_OTGISTAT_SESSVLDCHG_MASK 0x8u
Kojto 90:cb3d968589d8 9449 #define USB_OTGISTAT_SESSVLDCHG_SHIFT 3
Kojto 90:cb3d968589d8 9450 #define USB_OTGISTAT_LINE_STATE_CHG_MASK 0x20u
Kojto 90:cb3d968589d8 9451 #define USB_OTGISTAT_LINE_STATE_CHG_SHIFT 5
Kojto 90:cb3d968589d8 9452 #define USB_OTGISTAT_ONEMSEC_MASK 0x40u
Kojto 90:cb3d968589d8 9453 #define USB_OTGISTAT_ONEMSEC_SHIFT 6
Kojto 90:cb3d968589d8 9454 #define USB_OTGISTAT_IDCHG_MASK 0x80u
Kojto 90:cb3d968589d8 9455 #define USB_OTGISTAT_IDCHG_SHIFT 7
Kojto 90:cb3d968589d8 9456 /* OTGICR Bit Fields */
Kojto 90:cb3d968589d8 9457 #define USB_OTGICR_AVBUSEN_MASK 0x1u
Kojto 90:cb3d968589d8 9458 #define USB_OTGICR_AVBUSEN_SHIFT 0
Kojto 90:cb3d968589d8 9459 #define USB_OTGICR_BSESSEN_MASK 0x4u
Kojto 90:cb3d968589d8 9460 #define USB_OTGICR_BSESSEN_SHIFT 2
Kojto 90:cb3d968589d8 9461 #define USB_OTGICR_SESSVLDEN_MASK 0x8u
Kojto 90:cb3d968589d8 9462 #define USB_OTGICR_SESSVLDEN_SHIFT 3
Kojto 90:cb3d968589d8 9463 #define USB_OTGICR_LINESTATEEN_MASK 0x20u
Kojto 90:cb3d968589d8 9464 #define USB_OTGICR_LINESTATEEN_SHIFT 5
Kojto 90:cb3d968589d8 9465 #define USB_OTGICR_ONEMSECEN_MASK 0x40u
Kojto 90:cb3d968589d8 9466 #define USB_OTGICR_ONEMSECEN_SHIFT 6
Kojto 90:cb3d968589d8 9467 #define USB_OTGICR_IDEN_MASK 0x80u
Kojto 90:cb3d968589d8 9468 #define USB_OTGICR_IDEN_SHIFT 7
Kojto 90:cb3d968589d8 9469 /* OTGSTAT Bit Fields */
Kojto 90:cb3d968589d8 9470 #define USB_OTGSTAT_AVBUSVLD_MASK 0x1u
Kojto 90:cb3d968589d8 9471 #define USB_OTGSTAT_AVBUSVLD_SHIFT 0
Kojto 90:cb3d968589d8 9472 #define USB_OTGSTAT_BSESSEND_MASK 0x4u
Kojto 90:cb3d968589d8 9473 #define USB_OTGSTAT_BSESSEND_SHIFT 2
Kojto 90:cb3d968589d8 9474 #define USB_OTGSTAT_SESS_VLD_MASK 0x8u
Kojto 90:cb3d968589d8 9475 #define USB_OTGSTAT_SESS_VLD_SHIFT 3
Kojto 90:cb3d968589d8 9476 #define USB_OTGSTAT_LINESTATESTABLE_MASK 0x20u
Kojto 90:cb3d968589d8 9477 #define USB_OTGSTAT_LINESTATESTABLE_SHIFT 5
Kojto 90:cb3d968589d8 9478 #define USB_OTGSTAT_ONEMSECEN_MASK 0x40u
Kojto 90:cb3d968589d8 9479 #define USB_OTGSTAT_ONEMSECEN_SHIFT 6
Kojto 90:cb3d968589d8 9480 #define USB_OTGSTAT_ID_MASK 0x80u
Kojto 90:cb3d968589d8 9481 #define USB_OTGSTAT_ID_SHIFT 7
Kojto 90:cb3d968589d8 9482 /* OTGCTL Bit Fields */
Kojto 90:cb3d968589d8 9483 #define USB_OTGCTL_OTGEN_MASK 0x4u
Kojto 90:cb3d968589d8 9484 #define USB_OTGCTL_OTGEN_SHIFT 2
Kojto 90:cb3d968589d8 9485 #define USB_OTGCTL_DMLOW_MASK 0x10u
Kojto 90:cb3d968589d8 9486 #define USB_OTGCTL_DMLOW_SHIFT 4
Kojto 90:cb3d968589d8 9487 #define USB_OTGCTL_DPLOW_MASK 0x20u
Kojto 90:cb3d968589d8 9488 #define USB_OTGCTL_DPLOW_SHIFT 5
Kojto 90:cb3d968589d8 9489 #define USB_OTGCTL_DPHIGH_MASK 0x80u
Kojto 90:cb3d968589d8 9490 #define USB_OTGCTL_DPHIGH_SHIFT 7
Kojto 90:cb3d968589d8 9491 /* ISTAT Bit Fields */
Kojto 90:cb3d968589d8 9492 #define USB_ISTAT_USBRST_MASK 0x1u
Kojto 90:cb3d968589d8 9493 #define USB_ISTAT_USBRST_SHIFT 0
Kojto 90:cb3d968589d8 9494 #define USB_ISTAT_ERROR_MASK 0x2u
Kojto 90:cb3d968589d8 9495 #define USB_ISTAT_ERROR_SHIFT 1
Kojto 90:cb3d968589d8 9496 #define USB_ISTAT_SOFTOK_MASK 0x4u
Kojto 90:cb3d968589d8 9497 #define USB_ISTAT_SOFTOK_SHIFT 2
Kojto 90:cb3d968589d8 9498 #define USB_ISTAT_TOKDNE_MASK 0x8u
Kojto 90:cb3d968589d8 9499 #define USB_ISTAT_TOKDNE_SHIFT 3
Kojto 90:cb3d968589d8 9500 #define USB_ISTAT_SLEEP_MASK 0x10u
Kojto 90:cb3d968589d8 9501 #define USB_ISTAT_SLEEP_SHIFT 4
Kojto 90:cb3d968589d8 9502 #define USB_ISTAT_RESUME_MASK 0x20u
Kojto 90:cb3d968589d8 9503 #define USB_ISTAT_RESUME_SHIFT 5
Kojto 90:cb3d968589d8 9504 #define USB_ISTAT_ATTACH_MASK 0x40u
Kojto 90:cb3d968589d8 9505 #define USB_ISTAT_ATTACH_SHIFT 6
Kojto 90:cb3d968589d8 9506 #define USB_ISTAT_STALL_MASK 0x80u
Kojto 90:cb3d968589d8 9507 #define USB_ISTAT_STALL_SHIFT 7
Kojto 90:cb3d968589d8 9508 /* INTEN Bit Fields */
Kojto 90:cb3d968589d8 9509 #define USB_INTEN_USBRSTEN_MASK 0x1u
Kojto 90:cb3d968589d8 9510 #define USB_INTEN_USBRSTEN_SHIFT 0
Kojto 90:cb3d968589d8 9511 #define USB_INTEN_ERROREN_MASK 0x2u
Kojto 90:cb3d968589d8 9512 #define USB_INTEN_ERROREN_SHIFT 1
Kojto 90:cb3d968589d8 9513 #define USB_INTEN_SOFTOKEN_MASK 0x4u
Kojto 90:cb3d968589d8 9514 #define USB_INTEN_SOFTOKEN_SHIFT 2
Kojto 90:cb3d968589d8 9515 #define USB_INTEN_TOKDNEEN_MASK 0x8u
Kojto 90:cb3d968589d8 9516 #define USB_INTEN_TOKDNEEN_SHIFT 3
Kojto 90:cb3d968589d8 9517 #define USB_INTEN_SLEEPEN_MASK 0x10u
Kojto 90:cb3d968589d8 9518 #define USB_INTEN_SLEEPEN_SHIFT 4
Kojto 90:cb3d968589d8 9519 #define USB_INTEN_RESUMEEN_MASK 0x20u
Kojto 90:cb3d968589d8 9520 #define USB_INTEN_RESUMEEN_SHIFT 5
Kojto 90:cb3d968589d8 9521 #define USB_INTEN_ATTACHEN_MASK 0x40u
Kojto 90:cb3d968589d8 9522 #define USB_INTEN_ATTACHEN_SHIFT 6
Kojto 90:cb3d968589d8 9523 #define USB_INTEN_STALLEN_MASK 0x80u
Kojto 90:cb3d968589d8 9524 #define USB_INTEN_STALLEN_SHIFT 7
Kojto 90:cb3d968589d8 9525 /* ERRSTAT Bit Fields */
Kojto 90:cb3d968589d8 9526 #define USB_ERRSTAT_PIDERR_MASK 0x1u
Kojto 90:cb3d968589d8 9527 #define USB_ERRSTAT_PIDERR_SHIFT 0
Kojto 90:cb3d968589d8 9528 #define USB_ERRSTAT_CRC5EOF_MASK 0x2u
Kojto 90:cb3d968589d8 9529 #define USB_ERRSTAT_CRC5EOF_SHIFT 1
Kojto 90:cb3d968589d8 9530 #define USB_ERRSTAT_CRC16_MASK 0x4u
Kojto 90:cb3d968589d8 9531 #define USB_ERRSTAT_CRC16_SHIFT 2
Kojto 90:cb3d968589d8 9532 #define USB_ERRSTAT_DFN8_MASK 0x8u
Kojto 90:cb3d968589d8 9533 #define USB_ERRSTAT_DFN8_SHIFT 3
Kojto 90:cb3d968589d8 9534 #define USB_ERRSTAT_BTOERR_MASK 0x10u
Kojto 90:cb3d968589d8 9535 #define USB_ERRSTAT_BTOERR_SHIFT 4
Kojto 90:cb3d968589d8 9536 #define USB_ERRSTAT_DMAERR_MASK 0x20u
Kojto 90:cb3d968589d8 9537 #define USB_ERRSTAT_DMAERR_SHIFT 5
Kojto 90:cb3d968589d8 9538 #define USB_ERRSTAT_BTSERR_MASK 0x80u
Kojto 90:cb3d968589d8 9539 #define USB_ERRSTAT_BTSERR_SHIFT 7
Kojto 90:cb3d968589d8 9540 /* ERREN Bit Fields */
Kojto 90:cb3d968589d8 9541 #define USB_ERREN_PIDERREN_MASK 0x1u
Kojto 90:cb3d968589d8 9542 #define USB_ERREN_PIDERREN_SHIFT 0
Kojto 90:cb3d968589d8 9543 #define USB_ERREN_CRC5EOFEN_MASK 0x2u
Kojto 90:cb3d968589d8 9544 #define USB_ERREN_CRC5EOFEN_SHIFT 1
Kojto 90:cb3d968589d8 9545 #define USB_ERREN_CRC16EN_MASK 0x4u
Kojto 90:cb3d968589d8 9546 #define USB_ERREN_CRC16EN_SHIFT 2
Kojto 90:cb3d968589d8 9547 #define USB_ERREN_DFN8EN_MASK 0x8u
Kojto 90:cb3d968589d8 9548 #define USB_ERREN_DFN8EN_SHIFT 3
Kojto 90:cb3d968589d8 9549 #define USB_ERREN_BTOERREN_MASK 0x10u
Kojto 90:cb3d968589d8 9550 #define USB_ERREN_BTOERREN_SHIFT 4
Kojto 90:cb3d968589d8 9551 #define USB_ERREN_DMAERREN_MASK 0x20u
Kojto 90:cb3d968589d8 9552 #define USB_ERREN_DMAERREN_SHIFT 5
Kojto 90:cb3d968589d8 9553 #define USB_ERREN_BTSERREN_MASK 0x80u
Kojto 90:cb3d968589d8 9554 #define USB_ERREN_BTSERREN_SHIFT 7
Kojto 90:cb3d968589d8 9555 /* STAT Bit Fields */
Kojto 90:cb3d968589d8 9556 #define USB_STAT_ODD_MASK 0x4u
Kojto 90:cb3d968589d8 9557 #define USB_STAT_ODD_SHIFT 2
Kojto 90:cb3d968589d8 9558 #define USB_STAT_TX_MASK 0x8u
Kojto 90:cb3d968589d8 9559 #define USB_STAT_TX_SHIFT 3
Kojto 90:cb3d968589d8 9560 #define USB_STAT_ENDP_MASK 0xF0u
Kojto 90:cb3d968589d8 9561 #define USB_STAT_ENDP_SHIFT 4
Kojto 90:cb3d968589d8 9562 #define USB_STAT_ENDP(x) (((uint8_t)(((uint8_t)(x))<<USB_STAT_ENDP_SHIFT))&USB_STAT_ENDP_MASK)
Kojto 90:cb3d968589d8 9563 /* CTL Bit Fields */
Kojto 90:cb3d968589d8 9564 #define USB_CTL_USBENSOFEN_MASK 0x1u
Kojto 90:cb3d968589d8 9565 #define USB_CTL_USBENSOFEN_SHIFT 0
Kojto 90:cb3d968589d8 9566 #define USB_CTL_ODDRST_MASK 0x2u
Kojto 90:cb3d968589d8 9567 #define USB_CTL_ODDRST_SHIFT 1
Kojto 90:cb3d968589d8 9568 #define USB_CTL_RESUME_MASK 0x4u
Kojto 90:cb3d968589d8 9569 #define USB_CTL_RESUME_SHIFT 2
Kojto 90:cb3d968589d8 9570 #define USB_CTL_HOSTMODEEN_MASK 0x8u
Kojto 90:cb3d968589d8 9571 #define USB_CTL_HOSTMODEEN_SHIFT 3
Kojto 90:cb3d968589d8 9572 #define USB_CTL_RESET_MASK 0x10u
Kojto 90:cb3d968589d8 9573 #define USB_CTL_RESET_SHIFT 4
Kojto 90:cb3d968589d8 9574 #define USB_CTL_TXSUSPENDTOKENBUSY_MASK 0x20u
Kojto 90:cb3d968589d8 9575 #define USB_CTL_TXSUSPENDTOKENBUSY_SHIFT 5
Kojto 90:cb3d968589d8 9576 #define USB_CTL_SE0_MASK 0x40u
Kojto 90:cb3d968589d8 9577 #define USB_CTL_SE0_SHIFT 6
Kojto 90:cb3d968589d8 9578 #define USB_CTL_JSTATE_MASK 0x80u
Kojto 90:cb3d968589d8 9579 #define USB_CTL_JSTATE_SHIFT 7
Kojto 90:cb3d968589d8 9580 /* ADDR Bit Fields */
Kojto 90:cb3d968589d8 9581 #define USB_ADDR_ADDR_MASK 0x7Fu
Kojto 90:cb3d968589d8 9582 #define USB_ADDR_ADDR_SHIFT 0
Kojto 90:cb3d968589d8 9583 #define USB_ADDR_ADDR(x) (((uint8_t)(((uint8_t)(x))<<USB_ADDR_ADDR_SHIFT))&USB_ADDR_ADDR_MASK)
Kojto 90:cb3d968589d8 9584 #define USB_ADDR_LSEN_MASK 0x80u
Kojto 90:cb3d968589d8 9585 #define USB_ADDR_LSEN_SHIFT 7
Kojto 90:cb3d968589d8 9586 /* BDTPAGE1 Bit Fields */
Kojto 90:cb3d968589d8 9587 #define USB_BDTPAGE1_BDTBA_MASK 0xFEu
Kojto 90:cb3d968589d8 9588 #define USB_BDTPAGE1_BDTBA_SHIFT 1
Kojto 90:cb3d968589d8 9589 #define USB_BDTPAGE1_BDTBA(x) (((uint8_t)(((uint8_t)(x))<<USB_BDTPAGE1_BDTBA_SHIFT))&USB_BDTPAGE1_BDTBA_MASK)
Kojto 90:cb3d968589d8 9590 /* FRMNUML Bit Fields */
Kojto 90:cb3d968589d8 9591 #define USB_FRMNUML_FRM_MASK 0xFFu
Kojto 90:cb3d968589d8 9592 #define USB_FRMNUML_FRM_SHIFT 0
Kojto 90:cb3d968589d8 9593 #define USB_FRMNUML_FRM(x) (((uint8_t)(((uint8_t)(x))<<USB_FRMNUML_FRM_SHIFT))&USB_FRMNUML_FRM_MASK)
Kojto 90:cb3d968589d8 9594 /* FRMNUMH Bit Fields */
Kojto 90:cb3d968589d8 9595 #define USB_FRMNUMH_FRM_MASK 0x7u
Kojto 90:cb3d968589d8 9596 #define USB_FRMNUMH_FRM_SHIFT 0
Kojto 90:cb3d968589d8 9597 #define USB_FRMNUMH_FRM(x) (((uint8_t)(((uint8_t)(x))<<USB_FRMNUMH_FRM_SHIFT))&USB_FRMNUMH_FRM_MASK)
Kojto 90:cb3d968589d8 9598 /* TOKEN Bit Fields */
Kojto 90:cb3d968589d8 9599 #define USB_TOKEN_TOKENENDPT_MASK 0xFu
Kojto 90:cb3d968589d8 9600 #define USB_TOKEN_TOKENENDPT_SHIFT 0
Kojto 90:cb3d968589d8 9601 #define USB_TOKEN_TOKENENDPT(x) (((uint8_t)(((uint8_t)(x))<<USB_TOKEN_TOKENENDPT_SHIFT))&USB_TOKEN_TOKENENDPT_MASK)
Kojto 90:cb3d968589d8 9602 #define USB_TOKEN_TOKENPID_MASK 0xF0u
Kojto 90:cb3d968589d8 9603 #define USB_TOKEN_TOKENPID_SHIFT 4
Kojto 90:cb3d968589d8 9604 #define USB_TOKEN_TOKENPID(x) (((uint8_t)(((uint8_t)(x))<<USB_TOKEN_TOKENPID_SHIFT))&USB_TOKEN_TOKENPID_MASK)
Kojto 90:cb3d968589d8 9605 /* SOFTHLD Bit Fields */
Kojto 90:cb3d968589d8 9606 #define USB_SOFTHLD_CNT_MASK 0xFFu
Kojto 90:cb3d968589d8 9607 #define USB_SOFTHLD_CNT_SHIFT 0
Kojto 90:cb3d968589d8 9608 #define USB_SOFTHLD_CNT(x) (((uint8_t)(((uint8_t)(x))<<USB_SOFTHLD_CNT_SHIFT))&USB_SOFTHLD_CNT_MASK)
Kojto 90:cb3d968589d8 9609 /* BDTPAGE2 Bit Fields */
Kojto 90:cb3d968589d8 9610 #define USB_BDTPAGE2_BDTBA_MASK 0xFFu
Kojto 90:cb3d968589d8 9611 #define USB_BDTPAGE2_BDTBA_SHIFT 0
Kojto 90:cb3d968589d8 9612 #define USB_BDTPAGE2_BDTBA(x) (((uint8_t)(((uint8_t)(x))<<USB_BDTPAGE2_BDTBA_SHIFT))&USB_BDTPAGE2_BDTBA_MASK)
Kojto 90:cb3d968589d8 9613 /* BDTPAGE3 Bit Fields */
Kojto 90:cb3d968589d8 9614 #define USB_BDTPAGE3_BDTBA_MASK 0xFFu
Kojto 90:cb3d968589d8 9615 #define USB_BDTPAGE3_BDTBA_SHIFT 0
Kojto 90:cb3d968589d8 9616 #define USB_BDTPAGE3_BDTBA(x) (((uint8_t)(((uint8_t)(x))<<USB_BDTPAGE3_BDTBA_SHIFT))&USB_BDTPAGE3_BDTBA_MASK)
Kojto 90:cb3d968589d8 9617 /* ENDPT Bit Fields */
Kojto 90:cb3d968589d8 9618 #define USB_ENDPT_EPHSHK_MASK 0x1u
Kojto 90:cb3d968589d8 9619 #define USB_ENDPT_EPHSHK_SHIFT 0
Kojto 90:cb3d968589d8 9620 #define USB_ENDPT_EPSTALL_MASK 0x2u
Kojto 90:cb3d968589d8 9621 #define USB_ENDPT_EPSTALL_SHIFT 1
Kojto 90:cb3d968589d8 9622 #define USB_ENDPT_EPTXEN_MASK 0x4u
Kojto 90:cb3d968589d8 9623 #define USB_ENDPT_EPTXEN_SHIFT 2
Kojto 90:cb3d968589d8 9624 #define USB_ENDPT_EPRXEN_MASK 0x8u
Kojto 90:cb3d968589d8 9625 #define USB_ENDPT_EPRXEN_SHIFT 3
Kojto 90:cb3d968589d8 9626 #define USB_ENDPT_EPCTLDIS_MASK 0x10u
Kojto 90:cb3d968589d8 9627 #define USB_ENDPT_EPCTLDIS_SHIFT 4
Kojto 90:cb3d968589d8 9628 #define USB_ENDPT_RETRYDIS_MASK 0x40u
Kojto 90:cb3d968589d8 9629 #define USB_ENDPT_RETRYDIS_SHIFT 6
Kojto 90:cb3d968589d8 9630 #define USB_ENDPT_HOSTWOHUB_MASK 0x80u
Kojto 90:cb3d968589d8 9631 #define USB_ENDPT_HOSTWOHUB_SHIFT 7
Kojto 90:cb3d968589d8 9632 /* USBCTRL Bit Fields */
Kojto 90:cb3d968589d8 9633 #define USB_USBCTRL_PDE_MASK 0x40u
Kojto 90:cb3d968589d8 9634 #define USB_USBCTRL_PDE_SHIFT 6
Kojto 90:cb3d968589d8 9635 #define USB_USBCTRL_SUSP_MASK 0x80u
Kojto 90:cb3d968589d8 9636 #define USB_USBCTRL_SUSP_SHIFT 7
Kojto 90:cb3d968589d8 9637 /* OBSERVE Bit Fields */
Kojto 90:cb3d968589d8 9638 #define USB_OBSERVE_DMPD_MASK 0x10u
Kojto 90:cb3d968589d8 9639 #define USB_OBSERVE_DMPD_SHIFT 4
Kojto 90:cb3d968589d8 9640 #define USB_OBSERVE_DPPD_MASK 0x40u
Kojto 90:cb3d968589d8 9641 #define USB_OBSERVE_DPPD_SHIFT 6
Kojto 90:cb3d968589d8 9642 #define USB_OBSERVE_DPPU_MASK 0x80u
Kojto 90:cb3d968589d8 9643 #define USB_OBSERVE_DPPU_SHIFT 7
Kojto 90:cb3d968589d8 9644 /* CONTROL Bit Fields */
Kojto 90:cb3d968589d8 9645 #define USB_CONTROL_DPPULLUPNONOTG_MASK 0x10u
Kojto 90:cb3d968589d8 9646 #define USB_CONTROL_DPPULLUPNONOTG_SHIFT 4
Kojto 90:cb3d968589d8 9647 /* USBTRC0 Bit Fields */
Kojto 90:cb3d968589d8 9648 #define USB_USBTRC0_USB_RESUME_INT_MASK 0x1u
Kojto 90:cb3d968589d8 9649 #define USB_USBTRC0_USB_RESUME_INT_SHIFT 0
Kojto 90:cb3d968589d8 9650 #define USB_USBTRC0_SYNC_DET_MASK 0x2u
Kojto 90:cb3d968589d8 9651 #define USB_USBTRC0_SYNC_DET_SHIFT 1
Kojto 90:cb3d968589d8 9652 #define USB_USBTRC0_USB_CLK_RECOVERY_INT_MASK 0x4u
Kojto 90:cb3d968589d8 9653 #define USB_USBTRC0_USB_CLK_RECOVERY_INT_SHIFT 2
Kojto 90:cb3d968589d8 9654 #define USB_USBTRC0_USBRESMEN_MASK 0x20u
Kojto 90:cb3d968589d8 9655 #define USB_USBTRC0_USBRESMEN_SHIFT 5
Kojto 90:cb3d968589d8 9656 #define USB_USBTRC0_USBRESET_MASK 0x80u
Kojto 90:cb3d968589d8 9657 #define USB_USBTRC0_USBRESET_SHIFT 7
Kojto 90:cb3d968589d8 9658 /* USBFRMADJUST Bit Fields */
Kojto 90:cb3d968589d8 9659 #define USB_USBFRMADJUST_ADJ_MASK 0xFFu
Kojto 90:cb3d968589d8 9660 #define USB_USBFRMADJUST_ADJ_SHIFT 0
Kojto 90:cb3d968589d8 9661 #define USB_USBFRMADJUST_ADJ(x) (((uint8_t)(((uint8_t)(x))<<USB_USBFRMADJUST_ADJ_SHIFT))&USB_USBFRMADJUST_ADJ_MASK)
Kojto 90:cb3d968589d8 9662 /* CLK_RECOVER_CTRL Bit Fields */
Kojto 90:cb3d968589d8 9663 #define USB_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_MASK 0x20u
Kojto 90:cb3d968589d8 9664 #define USB_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_SHIFT 5
Kojto 90:cb3d968589d8 9665 #define USB_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_MASK 0x40u
Kojto 90:cb3d968589d8 9666 #define USB_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_SHIFT 6
Kojto 90:cb3d968589d8 9667 #define USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_MASK 0x80u
Kojto 90:cb3d968589d8 9668 #define USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_SHIFT 7
Kojto 90:cb3d968589d8 9669 /* CLK_RECOVER_IRC_EN Bit Fields */
Kojto 90:cb3d968589d8 9670 #define USB_CLK_RECOVER_IRC_EN_REG_EN_MASK 0x1u
Kojto 90:cb3d968589d8 9671 #define USB_CLK_RECOVER_IRC_EN_REG_EN_SHIFT 0
Kojto 90:cb3d968589d8 9672 #define USB_CLK_RECOVER_IRC_EN_IRC_EN_MASK 0x2u
Kojto 90:cb3d968589d8 9673 #define USB_CLK_RECOVER_IRC_EN_IRC_EN_SHIFT 1
Kojto 90:cb3d968589d8 9674 /* CLK_RECOVER_INT_STATUS Bit Fields */
Kojto 90:cb3d968589d8 9675 #define USB_CLK_RECOVER_INT_STATUS_OVF_ERROR_MASK 0x10u
Kojto 90:cb3d968589d8 9676 #define USB_CLK_RECOVER_INT_STATUS_OVF_ERROR_SHIFT 4
Kojto 90:cb3d968589d8 9677
Kojto 90:cb3d968589d8 9678 /*!
Kojto 90:cb3d968589d8 9679 * @}
Kojto 90:cb3d968589d8 9680 */ /* end of group USB_Register_Masks */
Kojto 90:cb3d968589d8 9681
Kojto 90:cb3d968589d8 9682
Kojto 90:cb3d968589d8 9683 /* USB - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 9684 /** Peripheral USB0 base address */
Kojto 90:cb3d968589d8 9685 #define USB0_BASE (0x40072000u)
Kojto 90:cb3d968589d8 9686 /** Peripheral USB0 base pointer */
Kojto 90:cb3d968589d8 9687 #define USB0 ((USB_Type *)USB0_BASE)
Kojto 90:cb3d968589d8 9688 #define USB0_BASE_PTR (USB0)
Kojto 90:cb3d968589d8 9689 /** Array initializer of USB peripheral base addresses */
Kojto 90:cb3d968589d8 9690 #define USB_BASE_ADDRS { USB0_BASE }
Kojto 90:cb3d968589d8 9691 /** Array initializer of USB peripheral base pointers */
Kojto 90:cb3d968589d8 9692 #define USB_BASE_PTRS { USB0 }
Kojto 90:cb3d968589d8 9693 /** Interrupt vectors for the USB peripheral type */
Kojto 90:cb3d968589d8 9694 #define USB_IRQS { USB0_IRQn }
Kojto 90:cb3d968589d8 9695
Kojto 90:cb3d968589d8 9696 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9697 -- USB - Register accessor macros
Kojto 90:cb3d968589d8 9698 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9699
Kojto 90:cb3d968589d8 9700 /*!
Kojto 90:cb3d968589d8 9701 * @addtogroup USB_Register_Accessor_Macros USB - Register accessor macros
Kojto 90:cb3d968589d8 9702 * @{
Kojto 90:cb3d968589d8 9703 */
Kojto 90:cb3d968589d8 9704
Kojto 90:cb3d968589d8 9705
Kojto 90:cb3d968589d8 9706 /* USB - Register instance definitions */
Kojto 90:cb3d968589d8 9707 /* USB0 */
Kojto 90:cb3d968589d8 9708 #define USB0_PERID USB_PERID_REG(USB0)
Kojto 90:cb3d968589d8 9709 #define USB0_IDCOMP USB_IDCOMP_REG(USB0)
Kojto 90:cb3d968589d8 9710 #define USB0_REV USB_REV_REG(USB0)
Kojto 90:cb3d968589d8 9711 #define USB0_ADDINFO USB_ADDINFO_REG(USB0)
Kojto 90:cb3d968589d8 9712 #define USB0_OTGISTAT USB_OTGISTAT_REG(USB0)
Kojto 90:cb3d968589d8 9713 #define USB0_OTGICR USB_OTGICR_REG(USB0)
Kojto 90:cb3d968589d8 9714 #define USB0_OTGSTAT USB_OTGSTAT_REG(USB0)
Kojto 90:cb3d968589d8 9715 #define USB0_OTGCTL USB_OTGCTL_REG(USB0)
Kojto 90:cb3d968589d8 9716 #define USB0_ISTAT USB_ISTAT_REG(USB0)
Kojto 90:cb3d968589d8 9717 #define USB0_INTEN USB_INTEN_REG(USB0)
Kojto 90:cb3d968589d8 9718 #define USB0_ERRSTAT USB_ERRSTAT_REG(USB0)
Kojto 90:cb3d968589d8 9719 #define USB0_ERREN USB_ERREN_REG(USB0)
Kojto 90:cb3d968589d8 9720 #define USB0_STAT USB_STAT_REG(USB0)
Kojto 90:cb3d968589d8 9721 #define USB0_CTL USB_CTL_REG(USB0)
Kojto 90:cb3d968589d8 9722 #define USB0_ADDR USB_ADDR_REG(USB0)
Kojto 90:cb3d968589d8 9723 #define USB0_BDTPAGE1 USB_BDTPAGE1_REG(USB0)
Kojto 90:cb3d968589d8 9724 #define USB0_FRMNUML USB_FRMNUML_REG(USB0)
Kojto 90:cb3d968589d8 9725 #define USB0_FRMNUMH USB_FRMNUMH_REG(USB0)
Kojto 90:cb3d968589d8 9726 #define USB0_TOKEN USB_TOKEN_REG(USB0)
Kojto 90:cb3d968589d8 9727 #define USB0_SOFTHLD USB_SOFTHLD_REG(USB0)
Kojto 90:cb3d968589d8 9728 #define USB0_BDTPAGE2 USB_BDTPAGE2_REG(USB0)
Kojto 90:cb3d968589d8 9729 #define USB0_BDTPAGE3 USB_BDTPAGE3_REG(USB0)
Kojto 90:cb3d968589d8 9730 #define USB0_ENDPT0 USB_ENDPT_REG(USB0,0)
Kojto 90:cb3d968589d8 9731 #define USB0_ENDPT1 USB_ENDPT_REG(USB0,1)
Kojto 90:cb3d968589d8 9732 #define USB0_ENDPT2 USB_ENDPT_REG(USB0,2)
Kojto 90:cb3d968589d8 9733 #define USB0_ENDPT3 USB_ENDPT_REG(USB0,3)
Kojto 90:cb3d968589d8 9734 #define USB0_ENDPT4 USB_ENDPT_REG(USB0,4)
Kojto 90:cb3d968589d8 9735 #define USB0_ENDPT5 USB_ENDPT_REG(USB0,5)
Kojto 90:cb3d968589d8 9736 #define USB0_ENDPT6 USB_ENDPT_REG(USB0,6)
Kojto 90:cb3d968589d8 9737 #define USB0_ENDPT7 USB_ENDPT_REG(USB0,7)
Kojto 90:cb3d968589d8 9738 #define USB0_ENDPT8 USB_ENDPT_REG(USB0,8)
Kojto 90:cb3d968589d8 9739 #define USB0_ENDPT9 USB_ENDPT_REG(USB0,9)
Kojto 90:cb3d968589d8 9740 #define USB0_ENDPT10 USB_ENDPT_REG(USB0,10)
Kojto 90:cb3d968589d8 9741 #define USB0_ENDPT11 USB_ENDPT_REG(USB0,11)
Kojto 90:cb3d968589d8 9742 #define USB0_ENDPT12 USB_ENDPT_REG(USB0,12)
Kojto 90:cb3d968589d8 9743 #define USB0_ENDPT13 USB_ENDPT_REG(USB0,13)
Kojto 90:cb3d968589d8 9744 #define USB0_ENDPT14 USB_ENDPT_REG(USB0,14)
Kojto 90:cb3d968589d8 9745 #define USB0_ENDPT15 USB_ENDPT_REG(USB0,15)
Kojto 90:cb3d968589d8 9746 #define USB0_USBCTRL USB_USBCTRL_REG(USB0)
Kojto 90:cb3d968589d8 9747 #define USB0_OBSERVE USB_OBSERVE_REG(USB0)
Kojto 90:cb3d968589d8 9748 #define USB0_CONTROL USB_CONTROL_REG(USB0)
Kojto 90:cb3d968589d8 9749 #define USB0_USBTRC0 USB_USBTRC0_REG(USB0)
Kojto 90:cb3d968589d8 9750 #define USB0_USBFRMADJUST USB_USBFRMADJUST_REG(USB0)
Kojto 90:cb3d968589d8 9751 #define USB0_CLK_RECOVER_CTRL USB_CLK_RECOVER_CTRL_REG(USB0)
Kojto 90:cb3d968589d8 9752 #define USB0_CLK_RECOVER_IRC_EN USB_CLK_RECOVER_IRC_EN_REG(USB0)
Kojto 90:cb3d968589d8 9753 #define USB0_CLK_RECOVER_INT_STATUS USB_CLK_RECOVER_INT_STATUS_REG(USB0)
Kojto 90:cb3d968589d8 9754
Kojto 90:cb3d968589d8 9755 /* USB - Register array accessors */
Kojto 90:cb3d968589d8 9756 #define USB0_ENDPT(index) USB_ENDPT_REG(USB0,index)
Kojto 90:cb3d968589d8 9757
Kojto 90:cb3d968589d8 9758 /*!
Kojto 90:cb3d968589d8 9759 * @}
Kojto 90:cb3d968589d8 9760 */ /* end of group USB_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 9761
Kojto 90:cb3d968589d8 9762
Kojto 90:cb3d968589d8 9763 /*!
Kojto 90:cb3d968589d8 9764 * @}
Kojto 90:cb3d968589d8 9765 */ /* end of group USB_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 9766
Kojto 90:cb3d968589d8 9767
Kojto 90:cb3d968589d8 9768 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9769 -- VREF Peripheral Access Layer
Kojto 90:cb3d968589d8 9770 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9771
Kojto 90:cb3d968589d8 9772 /*!
Kojto 90:cb3d968589d8 9773 * @addtogroup VREF_Peripheral_Access_Layer VREF Peripheral Access Layer
Kojto 90:cb3d968589d8 9774 * @{
Kojto 90:cb3d968589d8 9775 */
Kojto 90:cb3d968589d8 9776
Kojto 90:cb3d968589d8 9777 /** VREF - Register Layout Typedef */
Kojto 90:cb3d968589d8 9778 typedef struct {
Kojto 90:cb3d968589d8 9779 __IO uint8_t TRM; /**< VREF Trim Register, offset: 0x0 */
Kojto 90:cb3d968589d8 9780 __IO uint8_t SC; /**< VREF Status and Control Register, offset: 0x1 */
Kojto 90:cb3d968589d8 9781 } VREF_Type, *VREF_MemMapPtr;
Kojto 90:cb3d968589d8 9782
Kojto 90:cb3d968589d8 9783 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9784 -- VREF - Register accessor macros
Kojto 90:cb3d968589d8 9785 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9786
Kojto 90:cb3d968589d8 9787 /*!
Kojto 90:cb3d968589d8 9788 * @addtogroup VREF_Register_Accessor_Macros VREF - Register accessor macros
Kojto 90:cb3d968589d8 9789 * @{
Kojto 90:cb3d968589d8 9790 */
Kojto 90:cb3d968589d8 9791
Kojto 90:cb3d968589d8 9792
Kojto 90:cb3d968589d8 9793 /* VREF - Register accessors */
Kojto 90:cb3d968589d8 9794 #define VREF_TRM_REG(base) ((base)->TRM)
Kojto 90:cb3d968589d8 9795 #define VREF_SC_REG(base) ((base)->SC)
Kojto 90:cb3d968589d8 9796
Kojto 90:cb3d968589d8 9797 /*!
Kojto 90:cb3d968589d8 9798 * @}
Kojto 90:cb3d968589d8 9799 */ /* end of group VREF_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 9800
Kojto 90:cb3d968589d8 9801
Kojto 90:cb3d968589d8 9802 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9803 -- VREF Register Masks
Kojto 90:cb3d968589d8 9804 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9805
Kojto 90:cb3d968589d8 9806 /*!
Kojto 90:cb3d968589d8 9807 * @addtogroup VREF_Register_Masks VREF Register Masks
Kojto 90:cb3d968589d8 9808 * @{
Kojto 90:cb3d968589d8 9809 */
Kojto 90:cb3d968589d8 9810
Kojto 90:cb3d968589d8 9811 /* TRM Bit Fields */
Kojto 90:cb3d968589d8 9812 #define VREF_TRM_TRIM_MASK 0x3Fu
Kojto 90:cb3d968589d8 9813 #define VREF_TRM_TRIM_SHIFT 0
Kojto 90:cb3d968589d8 9814 #define VREF_TRM_TRIM(x) (((uint8_t)(((uint8_t)(x))<<VREF_TRM_TRIM_SHIFT))&VREF_TRM_TRIM_MASK)
Kojto 90:cb3d968589d8 9815 #define VREF_TRM_CHOPEN_MASK 0x40u
Kojto 90:cb3d968589d8 9816 #define VREF_TRM_CHOPEN_SHIFT 6
Kojto 90:cb3d968589d8 9817 /* SC Bit Fields */
Kojto 90:cb3d968589d8 9818 #define VREF_SC_MODE_LV_MASK 0x3u
Kojto 90:cb3d968589d8 9819 #define VREF_SC_MODE_LV_SHIFT 0
Kojto 90:cb3d968589d8 9820 #define VREF_SC_MODE_LV(x) (((uint8_t)(((uint8_t)(x))<<VREF_SC_MODE_LV_SHIFT))&VREF_SC_MODE_LV_MASK)
Kojto 90:cb3d968589d8 9821 #define VREF_SC_VREFST_MASK 0x4u
Kojto 90:cb3d968589d8 9822 #define VREF_SC_VREFST_SHIFT 2
Kojto 90:cb3d968589d8 9823 #define VREF_SC_ICOMPEN_MASK 0x20u
Kojto 90:cb3d968589d8 9824 #define VREF_SC_ICOMPEN_SHIFT 5
Kojto 90:cb3d968589d8 9825 #define VREF_SC_REGEN_MASK 0x40u
Kojto 90:cb3d968589d8 9826 #define VREF_SC_REGEN_SHIFT 6
Kojto 90:cb3d968589d8 9827 #define VREF_SC_VREFEN_MASK 0x80u
Kojto 90:cb3d968589d8 9828 #define VREF_SC_VREFEN_SHIFT 7
Kojto 90:cb3d968589d8 9829
Kojto 90:cb3d968589d8 9830 /*!
Kojto 90:cb3d968589d8 9831 * @}
Kojto 90:cb3d968589d8 9832 */ /* end of group VREF_Register_Masks */
Kojto 90:cb3d968589d8 9833
Kojto 90:cb3d968589d8 9834
Kojto 90:cb3d968589d8 9835 /* VREF - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 9836 /** Peripheral VREF base address */
Kojto 90:cb3d968589d8 9837 #define VREF_BASE (0x40074000u)
Kojto 90:cb3d968589d8 9838 /** Peripheral VREF base pointer */
Kojto 90:cb3d968589d8 9839 #define VREF ((VREF_Type *)VREF_BASE)
Kojto 90:cb3d968589d8 9840 #define VREF_BASE_PTR (VREF)
Kojto 90:cb3d968589d8 9841 /** Array initializer of VREF peripheral base addresses */
Kojto 90:cb3d968589d8 9842 #define VREF_BASE_ADDRS { VREF_BASE }
Kojto 90:cb3d968589d8 9843 /** Array initializer of VREF peripheral base pointers */
Kojto 90:cb3d968589d8 9844 #define VREF_BASE_PTRS { VREF }
Kojto 90:cb3d968589d8 9845
Kojto 90:cb3d968589d8 9846 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9847 -- VREF - Register accessor macros
Kojto 90:cb3d968589d8 9848 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9849
Kojto 90:cb3d968589d8 9850 /*!
Kojto 90:cb3d968589d8 9851 * @addtogroup VREF_Register_Accessor_Macros VREF - Register accessor macros
Kojto 90:cb3d968589d8 9852 * @{
Kojto 90:cb3d968589d8 9853 */
Kojto 90:cb3d968589d8 9854
Kojto 90:cb3d968589d8 9855
Kojto 90:cb3d968589d8 9856 /* VREF - Register instance definitions */
Kojto 90:cb3d968589d8 9857 /* VREF */
Kojto 90:cb3d968589d8 9858 #define VREF_TRM VREF_TRM_REG(VREF)
Kojto 90:cb3d968589d8 9859 #define VREF_SC VREF_SC_REG(VREF)
Kojto 90:cb3d968589d8 9860
Kojto 90:cb3d968589d8 9861 /*!
Kojto 90:cb3d968589d8 9862 * @}
Kojto 90:cb3d968589d8 9863 */ /* end of group VREF_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 9864
Kojto 90:cb3d968589d8 9865
Kojto 90:cb3d968589d8 9866 /*!
Kojto 90:cb3d968589d8 9867 * @}
Kojto 90:cb3d968589d8 9868 */ /* end of group VREF_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 9869
Kojto 90:cb3d968589d8 9870
Kojto 90:cb3d968589d8 9871 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9872 -- WDOG Peripheral Access Layer
Kojto 90:cb3d968589d8 9873 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9874
Kojto 90:cb3d968589d8 9875 /*!
Kojto 90:cb3d968589d8 9876 * @addtogroup WDOG_Peripheral_Access_Layer WDOG Peripheral Access Layer
Kojto 90:cb3d968589d8 9877 * @{
Kojto 90:cb3d968589d8 9878 */
Kojto 90:cb3d968589d8 9879
Kojto 90:cb3d968589d8 9880 /** WDOG - Register Layout Typedef */
Kojto 90:cb3d968589d8 9881 typedef struct {
Kojto 90:cb3d968589d8 9882 __IO uint16_t STCTRLH; /**< Watchdog Status and Control Register High, offset: 0x0 */
Kojto 90:cb3d968589d8 9883 __IO uint16_t STCTRLL; /**< Watchdog Status and Control Register Low, offset: 0x2 */
Kojto 90:cb3d968589d8 9884 __IO uint16_t TOVALH; /**< Watchdog Time-out Value Register High, offset: 0x4 */
Kojto 90:cb3d968589d8 9885 __IO uint16_t TOVALL; /**< Watchdog Time-out Value Register Low, offset: 0x6 */
Kojto 90:cb3d968589d8 9886 __IO uint16_t WINH; /**< Watchdog Window Register High, offset: 0x8 */
Kojto 90:cb3d968589d8 9887 __IO uint16_t WINL; /**< Watchdog Window Register Low, offset: 0xA */
Kojto 90:cb3d968589d8 9888 __IO uint16_t REFRESH; /**< Watchdog Refresh register, offset: 0xC */
Kojto 90:cb3d968589d8 9889 __IO uint16_t UNLOCK; /**< Watchdog Unlock register, offset: 0xE */
Kojto 90:cb3d968589d8 9890 __IO uint16_t TMROUTH; /**< Watchdog Timer Output Register High, offset: 0x10 */
Kojto 90:cb3d968589d8 9891 __IO uint16_t TMROUTL; /**< Watchdog Timer Output Register Low, offset: 0x12 */
Kojto 90:cb3d968589d8 9892 __IO uint16_t RSTCNT; /**< Watchdog Reset Count register, offset: 0x14 */
Kojto 90:cb3d968589d8 9893 __IO uint16_t PRESC; /**< Watchdog Prescaler register, offset: 0x16 */
Kojto 90:cb3d968589d8 9894 } WDOG_Type, *WDOG_MemMapPtr;
Kojto 90:cb3d968589d8 9895
Kojto 90:cb3d968589d8 9896 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9897 -- WDOG - Register accessor macros
Kojto 90:cb3d968589d8 9898 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9899
Kojto 90:cb3d968589d8 9900 /*!
Kojto 90:cb3d968589d8 9901 * @addtogroup WDOG_Register_Accessor_Macros WDOG - Register accessor macros
Kojto 90:cb3d968589d8 9902 * @{
Kojto 90:cb3d968589d8 9903 */
Kojto 90:cb3d968589d8 9904
Kojto 90:cb3d968589d8 9905
Kojto 90:cb3d968589d8 9906 /* WDOG - Register accessors */
Kojto 90:cb3d968589d8 9907 #define WDOG_STCTRLH_REG(base) ((base)->STCTRLH)
Kojto 90:cb3d968589d8 9908 #define WDOG_STCTRLL_REG(base) ((base)->STCTRLL)
Kojto 90:cb3d968589d8 9909 #define WDOG_TOVALH_REG(base) ((base)->TOVALH)
Kojto 90:cb3d968589d8 9910 #define WDOG_TOVALL_REG(base) ((base)->TOVALL)
Kojto 90:cb3d968589d8 9911 #define WDOG_WINH_REG(base) ((base)->WINH)
Kojto 90:cb3d968589d8 9912 #define WDOG_WINL_REG(base) ((base)->WINL)
Kojto 90:cb3d968589d8 9913 #define WDOG_REFRESH_REG(base) ((base)->REFRESH)
Kojto 90:cb3d968589d8 9914 #define WDOG_UNLOCK_REG(base) ((base)->UNLOCK)
Kojto 90:cb3d968589d8 9915 #define WDOG_TMROUTH_REG(base) ((base)->TMROUTH)
Kojto 90:cb3d968589d8 9916 #define WDOG_TMROUTL_REG(base) ((base)->TMROUTL)
Kojto 90:cb3d968589d8 9917 #define WDOG_RSTCNT_REG(base) ((base)->RSTCNT)
Kojto 90:cb3d968589d8 9918 #define WDOG_PRESC_REG(base) ((base)->PRESC)
Kojto 90:cb3d968589d8 9919
Kojto 90:cb3d968589d8 9920 /*!
Kojto 90:cb3d968589d8 9921 * @}
Kojto 90:cb3d968589d8 9922 */ /* end of group WDOG_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 9923
Kojto 90:cb3d968589d8 9924
Kojto 90:cb3d968589d8 9925 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 9926 -- WDOG Register Masks
Kojto 90:cb3d968589d8 9927 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 9928
Kojto 90:cb3d968589d8 9929 /*!
Kojto 90:cb3d968589d8 9930 * @addtogroup WDOG_Register_Masks WDOG Register Masks
Kojto 90:cb3d968589d8 9931 * @{
Kojto 90:cb3d968589d8 9932 */
Kojto 90:cb3d968589d8 9933
Kojto 90:cb3d968589d8 9934 /* STCTRLH Bit Fields */
Kojto 90:cb3d968589d8 9935 #define WDOG_STCTRLH_WDOGEN_MASK 0x1u
Kojto 90:cb3d968589d8 9936 #define WDOG_STCTRLH_WDOGEN_SHIFT 0
Kojto 90:cb3d968589d8 9937 #define WDOG_STCTRLH_CLKSRC_MASK 0x2u
Kojto 90:cb3d968589d8 9938 #define WDOG_STCTRLH_CLKSRC_SHIFT 1
Kojto 90:cb3d968589d8 9939 #define WDOG_STCTRLH_IRQRSTEN_MASK 0x4u
Kojto 90:cb3d968589d8 9940 #define WDOG_STCTRLH_IRQRSTEN_SHIFT 2
Kojto 90:cb3d968589d8 9941 #define WDOG_STCTRLH_WINEN_MASK 0x8u
Kojto 90:cb3d968589d8 9942 #define WDOG_STCTRLH_WINEN_SHIFT 3
Kojto 90:cb3d968589d8 9943 #define WDOG_STCTRLH_ALLOWUPDATE_MASK 0x10u
Kojto 90:cb3d968589d8 9944 #define WDOG_STCTRLH_ALLOWUPDATE_SHIFT 4
Kojto 90:cb3d968589d8 9945 #define WDOG_STCTRLH_DBGEN_MASK 0x20u
Kojto 90:cb3d968589d8 9946 #define WDOG_STCTRLH_DBGEN_SHIFT 5
Kojto 90:cb3d968589d8 9947 #define WDOG_STCTRLH_STOPEN_MASK 0x40u
Kojto 90:cb3d968589d8 9948 #define WDOG_STCTRLH_STOPEN_SHIFT 6
Kojto 90:cb3d968589d8 9949 #define WDOG_STCTRLH_WAITEN_MASK 0x80u
Kojto 90:cb3d968589d8 9950 #define WDOG_STCTRLH_WAITEN_SHIFT 7
Kojto 90:cb3d968589d8 9951 #define WDOG_STCTRLH_TESTWDOG_MASK 0x400u
Kojto 90:cb3d968589d8 9952 #define WDOG_STCTRLH_TESTWDOG_SHIFT 10
Kojto 90:cb3d968589d8 9953 #define WDOG_STCTRLH_TESTSEL_MASK 0x800u
Kojto 90:cb3d968589d8 9954 #define WDOG_STCTRLH_TESTSEL_SHIFT 11
Kojto 90:cb3d968589d8 9955 #define WDOG_STCTRLH_BYTESEL_MASK 0x3000u
Kojto 90:cb3d968589d8 9956 #define WDOG_STCTRLH_BYTESEL_SHIFT 12
Kojto 90:cb3d968589d8 9957 #define WDOG_STCTRLH_BYTESEL(x) (((uint16_t)(((uint16_t)(x))<<WDOG_STCTRLH_BYTESEL_SHIFT))&WDOG_STCTRLH_BYTESEL_MASK)
Kojto 90:cb3d968589d8 9958 #define WDOG_STCTRLH_DISTESTWDOG_MASK 0x4000u
Kojto 90:cb3d968589d8 9959 #define WDOG_STCTRLH_DISTESTWDOG_SHIFT 14
Kojto 90:cb3d968589d8 9960 /* STCTRLL Bit Fields */
Kojto 90:cb3d968589d8 9961 #define WDOG_STCTRLL_INTFLG_MASK 0x8000u
Kojto 90:cb3d968589d8 9962 #define WDOG_STCTRLL_INTFLG_SHIFT 15
Kojto 90:cb3d968589d8 9963 /* TOVALH Bit Fields */
Kojto 90:cb3d968589d8 9964 #define WDOG_TOVALH_TOVALHIGH_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9965 #define WDOG_TOVALH_TOVALHIGH_SHIFT 0
Kojto 90:cb3d968589d8 9966 #define WDOG_TOVALH_TOVALHIGH(x) (((uint16_t)(((uint16_t)(x))<<WDOG_TOVALH_TOVALHIGH_SHIFT))&WDOG_TOVALH_TOVALHIGH_MASK)
Kojto 90:cb3d968589d8 9967 /* TOVALL Bit Fields */
Kojto 90:cb3d968589d8 9968 #define WDOG_TOVALL_TOVALLOW_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9969 #define WDOG_TOVALL_TOVALLOW_SHIFT 0
Kojto 90:cb3d968589d8 9970 #define WDOG_TOVALL_TOVALLOW(x) (((uint16_t)(((uint16_t)(x))<<WDOG_TOVALL_TOVALLOW_SHIFT))&WDOG_TOVALL_TOVALLOW_MASK)
Kojto 90:cb3d968589d8 9971 /* WINH Bit Fields */
Kojto 90:cb3d968589d8 9972 #define WDOG_WINH_WINHIGH_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9973 #define WDOG_WINH_WINHIGH_SHIFT 0
Kojto 90:cb3d968589d8 9974 #define WDOG_WINH_WINHIGH(x) (((uint16_t)(((uint16_t)(x))<<WDOG_WINH_WINHIGH_SHIFT))&WDOG_WINH_WINHIGH_MASK)
Kojto 90:cb3d968589d8 9975 /* WINL Bit Fields */
Kojto 90:cb3d968589d8 9976 #define WDOG_WINL_WINLOW_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9977 #define WDOG_WINL_WINLOW_SHIFT 0
Kojto 90:cb3d968589d8 9978 #define WDOG_WINL_WINLOW(x) (((uint16_t)(((uint16_t)(x))<<WDOG_WINL_WINLOW_SHIFT))&WDOG_WINL_WINLOW_MASK)
Kojto 90:cb3d968589d8 9979 /* REFRESH Bit Fields */
Kojto 90:cb3d968589d8 9980 #define WDOG_REFRESH_WDOGREFRESH_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9981 #define WDOG_REFRESH_WDOGREFRESH_SHIFT 0
Kojto 90:cb3d968589d8 9982 #define WDOG_REFRESH_WDOGREFRESH(x) (((uint16_t)(((uint16_t)(x))<<WDOG_REFRESH_WDOGREFRESH_SHIFT))&WDOG_REFRESH_WDOGREFRESH_MASK)
Kojto 90:cb3d968589d8 9983 /* UNLOCK Bit Fields */
Kojto 90:cb3d968589d8 9984 #define WDOG_UNLOCK_WDOGUNLOCK_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9985 #define WDOG_UNLOCK_WDOGUNLOCK_SHIFT 0
Kojto 90:cb3d968589d8 9986 #define WDOG_UNLOCK_WDOGUNLOCK(x) (((uint16_t)(((uint16_t)(x))<<WDOG_UNLOCK_WDOGUNLOCK_SHIFT))&WDOG_UNLOCK_WDOGUNLOCK_MASK)
Kojto 90:cb3d968589d8 9987 /* TMROUTH Bit Fields */
Kojto 90:cb3d968589d8 9988 #define WDOG_TMROUTH_TIMEROUTHIGH_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9989 #define WDOG_TMROUTH_TIMEROUTHIGH_SHIFT 0
Kojto 90:cb3d968589d8 9990 #define WDOG_TMROUTH_TIMEROUTHIGH(x) (((uint16_t)(((uint16_t)(x))<<WDOG_TMROUTH_TIMEROUTHIGH_SHIFT))&WDOG_TMROUTH_TIMEROUTHIGH_MASK)
Kojto 90:cb3d968589d8 9991 /* TMROUTL Bit Fields */
Kojto 90:cb3d968589d8 9992 #define WDOG_TMROUTL_TIMEROUTLOW_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9993 #define WDOG_TMROUTL_TIMEROUTLOW_SHIFT 0
Kojto 90:cb3d968589d8 9994 #define WDOG_TMROUTL_TIMEROUTLOW(x) (((uint16_t)(((uint16_t)(x))<<WDOG_TMROUTL_TIMEROUTLOW_SHIFT))&WDOG_TMROUTL_TIMEROUTLOW_MASK)
Kojto 90:cb3d968589d8 9995 /* RSTCNT Bit Fields */
Kojto 90:cb3d968589d8 9996 #define WDOG_RSTCNT_RSTCNT_MASK 0xFFFFu
Kojto 90:cb3d968589d8 9997 #define WDOG_RSTCNT_RSTCNT_SHIFT 0
Kojto 90:cb3d968589d8 9998 #define WDOG_RSTCNT_RSTCNT(x) (((uint16_t)(((uint16_t)(x))<<WDOG_RSTCNT_RSTCNT_SHIFT))&WDOG_RSTCNT_RSTCNT_MASK)
Kojto 90:cb3d968589d8 9999 /* PRESC Bit Fields */
Kojto 90:cb3d968589d8 10000 #define WDOG_PRESC_PRESCVAL_MASK 0x700u
Kojto 90:cb3d968589d8 10001 #define WDOG_PRESC_PRESCVAL_SHIFT 8
Kojto 90:cb3d968589d8 10002 #define WDOG_PRESC_PRESCVAL(x) (((uint16_t)(((uint16_t)(x))<<WDOG_PRESC_PRESCVAL_SHIFT))&WDOG_PRESC_PRESCVAL_MASK)
Kojto 90:cb3d968589d8 10003
Kojto 90:cb3d968589d8 10004 /*!
Kojto 90:cb3d968589d8 10005 * @}
Kojto 90:cb3d968589d8 10006 */ /* end of group WDOG_Register_Masks */
Kojto 90:cb3d968589d8 10007
Kojto 90:cb3d968589d8 10008
Kojto 90:cb3d968589d8 10009 /* WDOG - Peripheral instance base addresses */
Kojto 90:cb3d968589d8 10010 /** Peripheral WDOG base address */
Kojto 90:cb3d968589d8 10011 #define WDOG_BASE (0x40052000u)
Kojto 90:cb3d968589d8 10012 /** Peripheral WDOG base pointer */
Kojto 90:cb3d968589d8 10013 #define WDOG ((WDOG_Type *)WDOG_BASE)
Kojto 90:cb3d968589d8 10014 #define WDOG_BASE_PTR (WDOG)
Kojto 90:cb3d968589d8 10015 /** Array initializer of WDOG peripheral base addresses */
Kojto 90:cb3d968589d8 10016 #define WDOG_BASE_ADDRS { WDOG_BASE }
Kojto 90:cb3d968589d8 10017 /** Array initializer of WDOG peripheral base pointers */
Kojto 90:cb3d968589d8 10018 #define WDOG_BASE_PTRS { WDOG }
Kojto 90:cb3d968589d8 10019 /** Interrupt vectors for the WDOG peripheral type */
Kojto 90:cb3d968589d8 10020 #define WDOG_IRQS { Watchdog_IRQn }
Kojto 90:cb3d968589d8 10021
Kojto 90:cb3d968589d8 10022 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 10023 -- WDOG - Register accessor macros
Kojto 90:cb3d968589d8 10024 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 10025
Kojto 90:cb3d968589d8 10026 /*!
Kojto 90:cb3d968589d8 10027 * @addtogroup WDOG_Register_Accessor_Macros WDOG - Register accessor macros
Kojto 90:cb3d968589d8 10028 * @{
Kojto 90:cb3d968589d8 10029 */
Kojto 90:cb3d968589d8 10030
Kojto 90:cb3d968589d8 10031
Kojto 90:cb3d968589d8 10032 /* WDOG - Register instance definitions */
Kojto 90:cb3d968589d8 10033 /* WDOG */
Kojto 90:cb3d968589d8 10034 #define WDOG_STCTRLH WDOG_STCTRLH_REG(WDOG)
Kojto 90:cb3d968589d8 10035 #define WDOG_STCTRLL WDOG_STCTRLL_REG(WDOG)
Kojto 90:cb3d968589d8 10036 #define WDOG_TOVALH WDOG_TOVALH_REG(WDOG)
Kojto 90:cb3d968589d8 10037 #define WDOG_TOVALL WDOG_TOVALL_REG(WDOG)
Kojto 90:cb3d968589d8 10038 #define WDOG_WINH WDOG_WINH_REG(WDOG)
Kojto 90:cb3d968589d8 10039 #define WDOG_WINL WDOG_WINL_REG(WDOG)
Kojto 90:cb3d968589d8 10040 #define WDOG_REFRESH WDOG_REFRESH_REG(WDOG)
Kojto 90:cb3d968589d8 10041 #define WDOG_UNLOCK WDOG_UNLOCK_REG(WDOG)
Kojto 90:cb3d968589d8 10042 #define WDOG_TMROUTH WDOG_TMROUTH_REG(WDOG)
Kojto 90:cb3d968589d8 10043 #define WDOG_TMROUTL WDOG_TMROUTL_REG(WDOG)
Kojto 90:cb3d968589d8 10044 #define WDOG_RSTCNT WDOG_RSTCNT_REG(WDOG)
Kojto 90:cb3d968589d8 10045 #define WDOG_PRESC WDOG_PRESC_REG(WDOG)
Kojto 90:cb3d968589d8 10046
Kojto 90:cb3d968589d8 10047 /*!
Kojto 90:cb3d968589d8 10048 * @}
Kojto 90:cb3d968589d8 10049 */ /* end of group WDOG_Register_Accessor_Macros */
Kojto 90:cb3d968589d8 10050
Kojto 90:cb3d968589d8 10051
Kojto 90:cb3d968589d8 10052 /*!
Kojto 90:cb3d968589d8 10053 * @}
Kojto 90:cb3d968589d8 10054 */ /* end of group WDOG_Peripheral_Access_Layer */
Kojto 90:cb3d968589d8 10055
Kojto 90:cb3d968589d8 10056
Kojto 90:cb3d968589d8 10057 /*
Kojto 90:cb3d968589d8 10058 ** End of section using anonymous unions
Kojto 90:cb3d968589d8 10059 */
Kojto 90:cb3d968589d8 10060
Kojto 90:cb3d968589d8 10061 #if defined(__ARMCC_VERSION)
Kojto 90:cb3d968589d8 10062 #pragma pop
Kojto 90:cb3d968589d8 10063 #elif defined(__CWCC__)
Kojto 90:cb3d968589d8 10064 #pragma pop
Kojto 90:cb3d968589d8 10065 #elif defined(__GNUC__)
Kojto 90:cb3d968589d8 10066 /* leave anonymous unions enabled */
Kojto 90:cb3d968589d8 10067 #elif defined(__IAR_SYSTEMS_ICC__)
Kojto 90:cb3d968589d8 10068 #pragma language=default
Kojto 90:cb3d968589d8 10069 #else
Kojto 90:cb3d968589d8 10070 #error Not supported compiler type
Kojto 90:cb3d968589d8 10071 #endif
Kojto 90:cb3d968589d8 10072
Kojto 90:cb3d968589d8 10073 /*!
Kojto 90:cb3d968589d8 10074 * @}
Kojto 90:cb3d968589d8 10075 */ /* end of group Peripheral_access_layer */
Kojto 90:cb3d968589d8 10076
Kojto 90:cb3d968589d8 10077
Kojto 90:cb3d968589d8 10078 /* ----------------------------------------------------------------------------
Kojto 90:cb3d968589d8 10079 -- Backward Compatibility
Kojto 90:cb3d968589d8 10080 ---------------------------------------------------------------------------- */
Kojto 90:cb3d968589d8 10081
Kojto 90:cb3d968589d8 10082 /*!
Kojto 90:cb3d968589d8 10083 * @addtogroup Backward_Compatibility_Symbols Backward Compatibility
Kojto 90:cb3d968589d8 10084 * @{
Kojto 90:cb3d968589d8 10085 */
Kojto 90:cb3d968589d8 10086
Kojto 90:cb3d968589d8 10087 #define MCG_C2_EREFS0_MASK MCG_C2_EREFS_MASK
Kojto 90:cb3d968589d8 10088 #define MCG_C2_EREFS0_SHIFT MCG_C2_EREFS_SHIFT
Kojto 90:cb3d968589d8 10089 #define MCG_C2_HGO0_MASK MCG_C2_HGO_MASK
Kojto 90:cb3d968589d8 10090 #define MCG_C2_HGO0_SHIFT MCG_C2_HGO_SHIFT
Kojto 90:cb3d968589d8 10091 #define MCG_C2_RANGE0_MASK MCG_C2_RANGE_MASK
Kojto 90:cb3d968589d8 10092 #define MCG_C2_RANGE0_SHIFT MCG_C2_RANGE_SHIFT
Kojto 90:cb3d968589d8 10093 #define MCG_C2_RANGE0(x) MCG_C2_RANGE(x)
Kojto 90:cb3d968589d8 10094 #define MCM_ISR_REG(base) MCM_ISCR_REG(base)
Kojto 90:cb3d968589d8 10095 #define MCM_ISR_FIOC_MASK MCM_ISCR_FIOC_MASK
Kojto 90:cb3d968589d8 10096 #define MCM_ISR_FIOC_SHIFT MCM_ISCR_FIOC_SHIFT
Kojto 90:cb3d968589d8 10097 #define MCM_ISR_FDZC_MASK MCM_ISCR_FDZC_MASK
Kojto 90:cb3d968589d8 10098 #define MCM_ISR_FDZC_SHIFT MCM_ISCR_FDZC_SHIFT
Kojto 90:cb3d968589d8 10099 #define MCM_ISR_FOFC_MASK MCM_ISCR_FOFC_MASK
Kojto 90:cb3d968589d8 10100 #define MCM_ISR_FOFC_SHIFT MCM_ISCR_FOFC_SHIFT
Kojto 90:cb3d968589d8 10101 #define MCM_ISR_FUFC_MASK MCM_ISCR_FUFC_MASK
Kojto 90:cb3d968589d8 10102 #define MCM_ISR_FUFC_SHIFT MCM_ISCR_FUFC_SHIFT
Kojto 90:cb3d968589d8 10103 #define MCM_ISR_FIXC_MASK MCM_ISCR_FIXC_MASK
Kojto 90:cb3d968589d8 10104 #define MCM_ISR_FIXC_SHIFT MCM_ISCR_FIXC_SHIFT
Kojto 90:cb3d968589d8 10105 #define MCM_ISR_FIDC_MASK MCM_ISCR_FIDC_MASK
Kojto 90:cb3d968589d8 10106 #define MCM_ISR_FIDC_SHIFT MCM_ISCR_FIDC_SHIFT
Kojto 90:cb3d968589d8 10107 #define MCM_ISR_FIOCE_MASK MCM_ISCR_FIOCE_MASK
Kojto 90:cb3d968589d8 10108 #define MCM_ISR_FIOCE_SHIFT MCM_ISCR_FIOCE_SHIFT
Kojto 90:cb3d968589d8 10109 #define MCM_ISR_FDZCE_MASK MCM_ISCR_FDZCE_MASK
Kojto 90:cb3d968589d8 10110 #define MCM_ISR_FDZCE_SHIFT MCM_ISCR_FDZCE_SHIFT
Kojto 90:cb3d968589d8 10111 #define MCM_ISR_FOFCE_MASK MCM_ISCR_FOFCE_MASK
Kojto 90:cb3d968589d8 10112 #define MCM_ISR_FOFCE_SHIFT MCM_ISCR_FOFCE_SHIFT
Kojto 90:cb3d968589d8 10113 #define MCM_ISR_FUFCE_MASK MCM_ISCR_FUFCE_MASK
Kojto 90:cb3d968589d8 10114 #define MCM_ISR_FUFCE_SHIFT MCM_ISCR_FUFCE_SHIFT
Kojto 90:cb3d968589d8 10115 #define MCM_ISR_FIXCE_MASK MCM_ISCR_FIXCE_MASK
Kojto 90:cb3d968589d8 10116 #define MCM_ISR_FIXCE_SHIFT MCM_ISCR_FIXCE_SHIFT
Kojto 90:cb3d968589d8 10117 #define MCM_ISR_FIDCE_MASK MCM_ISCR_FIDCE_MASK
Kojto 90:cb3d968589d8 10118 #define MCM_ISR_FIDCE_SHIFT MCM_ISCR_FIDCE_SHIFT
Kojto 90:cb3d968589d8 10119 #define USB_ADDINFO_IRQNUM_MASK This_symbol_has_been_deprecated
Kojto 90:cb3d968589d8 10120 #define USB_ADDINFO_IRQNUM_SHIFT This_symbol_has_been_deprecated
Kojto 90:cb3d968589d8 10121 #define USB_ADDINFO_IRQNUM(x) This_symbol_has_been_deprecated
Kojto 90:cb3d968589d8 10122
Kojto 90:cb3d968589d8 10123 /*!
Kojto 90:cb3d968589d8 10124 * @}
Kojto 90:cb3d968589d8 10125 */ /* end of group Backward_Compatibility_Symbols */
Kojto 90:cb3d968589d8 10126
Kojto 90:cb3d968589d8 10127
Kojto 90:cb3d968589d8 10128 #else /* #if !defined(MK22F51212_H_) */
Kojto 90:cb3d968589d8 10129 /* There is already included the same memory map. Check if it is compatible (has the same major version) */
Kojto 90:cb3d968589d8 10130 #if (MCU_MEM_MAP_VERSION != 0x0200u)
Kojto 90:cb3d968589d8 10131 #if (!defined(MCU_MEM_MAP_SUPPRESS_VERSION_WARNING))
Kojto 90:cb3d968589d8 10132 #warning There are included two not compatible versions of memory maps. Please check possible differences.
Kojto 90:cb3d968589d8 10133 #endif /* (!defined(MCU_MEM_MAP_SUPPRESS_VERSION_WARNING)) */
Kojto 90:cb3d968589d8 10134 #endif /* (MCU_MEM_MAP_VERSION != 0x0200u) */
Kojto 90:cb3d968589d8 10135 #endif /* #if !defined(MK22F51212_H_) */
Kojto 90:cb3d968589d8 10136
Kojto 90:cb3d968589d8 10137 /* MK22F51212.h, eof. */