The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_KL43Z/TOOLCHAIN_ARM_STD/MKL43Z4.h@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 171:3a7713b1edbc | 1 | /* |
AnnaBridge | 171:3a7713b1edbc | 2 | ** ################################################################### |
AnnaBridge | 171:3a7713b1edbc | 3 | ** Processors: MKL43Z128VLH4 |
AnnaBridge | 171:3a7713b1edbc | 4 | ** MKL43Z128VMP4 |
AnnaBridge | 171:3a7713b1edbc | 5 | ** MKL43Z256VLH4 |
AnnaBridge | 171:3a7713b1edbc | 6 | ** MKL43Z256VMP4 |
AnnaBridge | 171:3a7713b1edbc | 7 | ** |
AnnaBridge | 171:3a7713b1edbc | 8 | ** Compilers: Keil ARM C/C++ Compiler |
AnnaBridge | 171:3a7713b1edbc | 9 | ** Freescale C/C++ for Embedded ARM |
AnnaBridge | 171:3a7713b1edbc | 10 | ** GNU C Compiler |
AnnaBridge | 171:3a7713b1edbc | 11 | ** IAR ANSI C/C++ Compiler for ARM |
AnnaBridge | 171:3a7713b1edbc | 12 | ** |
AnnaBridge | 171:3a7713b1edbc | 13 | ** Reference manual: KL43P64M48SF6RM, Rev.3, Aug 2014 |
AnnaBridge | 171:3a7713b1edbc | 14 | ** Version: rev. 1.6, 2015-07-29 |
AnnaBridge | 171:3a7713b1edbc | 15 | ** Build: b151221 |
AnnaBridge | 171:3a7713b1edbc | 16 | ** |
AnnaBridge | 171:3a7713b1edbc | 17 | ** Abstract: |
AnnaBridge | 171:3a7713b1edbc | 18 | ** CMSIS Peripheral Access Layer for MKL43Z4 |
AnnaBridge | 171:3a7713b1edbc | 19 | ** |
AnnaBridge | 171:3a7713b1edbc | 20 | ** Copyright (c) 1997 - 2015 Freescale Semiconductor, Inc. |
AnnaBridge | 171:3a7713b1edbc | 21 | ** All rights reserved. |
AnnaBridge | 171:3a7713b1edbc | 22 | ** |
AnnaBridge | 171:3a7713b1edbc | 23 | ** Redistribution and use in source and binary forms, with or without modification, |
AnnaBridge | 171:3a7713b1edbc | 24 | ** are permitted provided that the following conditions are met: |
AnnaBridge | 171:3a7713b1edbc | 25 | ** |
AnnaBridge | 171:3a7713b1edbc | 26 | ** o Redistributions of source code must retain the above copyright notice, this list |
AnnaBridge | 171:3a7713b1edbc | 27 | ** of conditions and the following disclaimer. |
AnnaBridge | 171:3a7713b1edbc | 28 | ** |
AnnaBridge | 171:3a7713b1edbc | 29 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
AnnaBridge | 171:3a7713b1edbc | 30 | ** list of conditions and the following disclaimer in the documentation and/or |
AnnaBridge | 171:3a7713b1edbc | 31 | ** other materials provided with the distribution. |
AnnaBridge | 171:3a7713b1edbc | 32 | ** |
AnnaBridge | 171:3a7713b1edbc | 33 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
AnnaBridge | 171:3a7713b1edbc | 34 | ** contributors may be used to endorse or promote products derived from this |
AnnaBridge | 171:3a7713b1edbc | 35 | ** software without specific prior written permission. |
AnnaBridge | 171:3a7713b1edbc | 36 | ** |
AnnaBridge | 171:3a7713b1edbc | 37 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
AnnaBridge | 171:3a7713b1edbc | 38 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
AnnaBridge | 171:3a7713b1edbc | 39 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
AnnaBridge | 171:3a7713b1edbc | 40 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
AnnaBridge | 171:3a7713b1edbc | 41 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
AnnaBridge | 171:3a7713b1edbc | 42 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
AnnaBridge | 171:3a7713b1edbc | 43 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
AnnaBridge | 171:3a7713b1edbc | 44 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
AnnaBridge | 171:3a7713b1edbc | 45 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
AnnaBridge | 171:3a7713b1edbc | 46 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
AnnaBridge | 171:3a7713b1edbc | 47 | ** |
AnnaBridge | 171:3a7713b1edbc | 48 | ** http: www.freescale.com |
AnnaBridge | 171:3a7713b1edbc | 49 | ** mail: support@freescale.com |
AnnaBridge | 171:3a7713b1edbc | 50 | ** |
AnnaBridge | 171:3a7713b1edbc | 51 | ** Revisions: |
AnnaBridge | 171:3a7713b1edbc | 52 | ** - rev. 1.0 (2014-03-27) |
AnnaBridge | 171:3a7713b1edbc | 53 | ** Initial version. |
AnnaBridge | 171:3a7713b1edbc | 54 | ** - rev. 1.1 (2014-05-26) |
AnnaBridge | 171:3a7713b1edbc | 55 | ** I2S registers TCR2/RCR2 and others were changed. |
AnnaBridge | 171:3a7713b1edbc | 56 | ** FLEXIO register FLEXIO_VERID has now bitfields: FEATURE, MINOR, MAJOR. |
AnnaBridge | 171:3a7713b1edbc | 57 | ** Names of the bitfields of the FLEXIO_SHIFTBUF have been changed to the appropriate register name e.g.: FLEXIO_SHIFTBUFBBS_SHIFTBUFBBS. |
AnnaBridge | 171:3a7713b1edbc | 58 | ** Peripheral_BASES macros has been changed to Peripheral_BASE_PTRS, e.g.: ADC_BASES to ADC_BASE_PTRS. |
AnnaBridge | 171:3a7713b1edbc | 59 | ** Clock configuration for high range external oscillator has been added. |
AnnaBridge | 171:3a7713b1edbc | 60 | ** RFSYS module access has been added. |
AnnaBridge | 171:3a7713b1edbc | 61 | ** - rev. 1.2 (2014-07-10) |
AnnaBridge | 171:3a7713b1edbc | 62 | ** GPIO - Renamed modules PTA,PTB,PTC,PTD,PTE to GPIOA,GPIOB,GPIOC,GPIOD,GPIOE. |
AnnaBridge | 171:3a7713b1edbc | 63 | ** UART0 - UART0 module renamed to UART2. |
AnnaBridge | 171:3a7713b1edbc | 64 | ** I2S - removed MDR register. |
AnnaBridge | 171:3a7713b1edbc | 65 | ** - rev. 1.3 (2014-08-21) |
AnnaBridge | 171:3a7713b1edbc | 66 | ** UART2 - Removed ED register. |
AnnaBridge | 171:3a7713b1edbc | 67 | ** UART2 - Removed MODEM register. |
AnnaBridge | 171:3a7713b1edbc | 68 | ** UART2 - Removed IR register. |
AnnaBridge | 171:3a7713b1edbc | 69 | ** UART2 - Removed PFIFO register. |
AnnaBridge | 171:3a7713b1edbc | 70 | ** UART2 - Removed CFIFO register. |
AnnaBridge | 171:3a7713b1edbc | 71 | ** UART2 - Removed SFIFO register. |
AnnaBridge | 171:3a7713b1edbc | 72 | ** UART2 - Removed TWFIFO register. |
AnnaBridge | 171:3a7713b1edbc | 73 | ** UART2 - Removed TCFIFO register. |
AnnaBridge | 171:3a7713b1edbc | 74 | ** UART2 - Removed RWFIFO register. |
AnnaBridge | 171:3a7713b1edbc | 75 | ** UART2 - Removed RCFIFO register. |
AnnaBridge | 171:3a7713b1edbc | 76 | ** USB - Removed bitfield REG_EN in CLK_RECOVER_IRC_EN register. |
AnnaBridge | 171:3a7713b1edbc | 77 | ** SIM - Changed bitfield value MCGIRCLK to LIRC_CLK of bitfield CLKOUTSEL in SOPT2 register. |
AnnaBridge | 171:3a7713b1edbc | 78 | ** SIM - Removed bitfield DIEID in SDID register. |
AnnaBridge | 171:3a7713b1edbc | 79 | ** - rev. 1.4 (2014-09-01) |
AnnaBridge | 171:3a7713b1edbc | 80 | ** USB - USB0_CTL0 was renamed to USB0_OTGCTL register. |
AnnaBridge | 171:3a7713b1edbc | 81 | ** USB - USB0_CTL1 was renamed to USB0_CTL register. |
AnnaBridge | 171:3a7713b1edbc | 82 | ** - rev. 1.5 (2014-09-05) |
AnnaBridge | 171:3a7713b1edbc | 83 | ** USB - Renamed USBEN bitfield of USB0_CTL was renamed to USBENSOFEN. |
AnnaBridge | 171:3a7713b1edbc | 84 | ** - rev. 1.6 (2015-07-29) |
AnnaBridge | 171:3a7713b1edbc | 85 | ** Correction of backward compatibility. |
AnnaBridge | 171:3a7713b1edbc | 86 | ** |
AnnaBridge | 171:3a7713b1edbc | 87 | ** ################################################################### |
AnnaBridge | 171:3a7713b1edbc | 88 | */ |
AnnaBridge | 171:3a7713b1edbc | 89 | |
AnnaBridge | 171:3a7713b1edbc | 90 | /*! |
AnnaBridge | 171:3a7713b1edbc | 91 | * @file MKL43Z4.h |
AnnaBridge | 171:3a7713b1edbc | 92 | * @version 1.6 |
AnnaBridge | 171:3a7713b1edbc | 93 | * @date 2015-07-29 |
AnnaBridge | 171:3a7713b1edbc | 94 | * @brief CMSIS Peripheral Access Layer for MKL43Z4 |
AnnaBridge | 171:3a7713b1edbc | 95 | * |
AnnaBridge | 171:3a7713b1edbc | 96 | * CMSIS Peripheral Access Layer for MKL43Z4 |
AnnaBridge | 171:3a7713b1edbc | 97 | */ |
AnnaBridge | 171:3a7713b1edbc | 98 | |
AnnaBridge | 171:3a7713b1edbc | 99 | #ifndef _MKL43Z4_H_ |
AnnaBridge | 171:3a7713b1edbc | 100 | #define _MKL43Z4_H_ /**< Symbol preventing repeated inclusion */ |
AnnaBridge | 171:3a7713b1edbc | 101 | |
AnnaBridge | 171:3a7713b1edbc | 102 | /** Memory map major version (memory maps with equal major version number are |
AnnaBridge | 171:3a7713b1edbc | 103 | * compatible) */ |
AnnaBridge | 171:3a7713b1edbc | 104 | #define MCU_MEM_MAP_VERSION 0x0100U |
AnnaBridge | 171:3a7713b1edbc | 105 | /** Memory map minor version */ |
AnnaBridge | 171:3a7713b1edbc | 106 | #define MCU_MEM_MAP_VERSION_MINOR 0x0006U |
AnnaBridge | 171:3a7713b1edbc | 107 | |
AnnaBridge | 171:3a7713b1edbc | 108 | |
AnnaBridge | 171:3a7713b1edbc | 109 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 110 | -- Interrupt vector numbers |
AnnaBridge | 171:3a7713b1edbc | 111 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 112 | |
AnnaBridge | 171:3a7713b1edbc | 113 | /*! |
AnnaBridge | 171:3a7713b1edbc | 114 | * @addtogroup Interrupt_vector_numbers Interrupt vector numbers |
AnnaBridge | 171:3a7713b1edbc | 115 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 116 | */ |
AnnaBridge | 171:3a7713b1edbc | 117 | |
AnnaBridge | 171:3a7713b1edbc | 118 | /** Interrupt Number Definitions */ |
AnnaBridge | 171:3a7713b1edbc | 119 | #define NUMBER_OF_INT_VECTORS 48 /**< Number of interrupts in the Vector table */ |
AnnaBridge | 171:3a7713b1edbc | 120 | |
AnnaBridge | 171:3a7713b1edbc | 121 | typedef enum IRQn { |
AnnaBridge | 171:3a7713b1edbc | 122 | /* Auxiliary constants */ |
AnnaBridge | 171:3a7713b1edbc | 123 | NotAvail_IRQn = -128, /**< Not available device specific interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 124 | |
AnnaBridge | 171:3a7713b1edbc | 125 | /* Core interrupts */ |
AnnaBridge | 171:3a7713b1edbc | 126 | NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 127 | HardFault_IRQn = -13, /**< Cortex-M0 SV Hard Fault Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 128 | SVCall_IRQn = -5, /**< Cortex-M0 SV Call Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 129 | PendSV_IRQn = -2, /**< Cortex-M0 Pend SV Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 130 | SysTick_IRQn = -1, /**< Cortex-M0 System Tick Interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 131 | |
AnnaBridge | 171:3a7713b1edbc | 132 | /* Device specific interrupts */ |
AnnaBridge | 171:3a7713b1edbc | 133 | DMA0_IRQn = 0, /**< DMA channel 0 transfer complete */ |
AnnaBridge | 171:3a7713b1edbc | 134 | DMA1_IRQn = 1, /**< DMA channel 1 transfer complete */ |
AnnaBridge | 171:3a7713b1edbc | 135 | DMA2_IRQn = 2, /**< DMA channel 2 transfer complete */ |
AnnaBridge | 171:3a7713b1edbc | 136 | DMA3_IRQn = 3, /**< DMA channel 3 transfer complete */ |
AnnaBridge | 171:3a7713b1edbc | 137 | Reserved20_IRQn = 4, /**< Reserved interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 138 | FTFA_IRQn = 5, /**< Command complete and read collision */ |
AnnaBridge | 171:3a7713b1edbc | 139 | PMC_IRQn = 6, /**< Low-voltage detect, low-voltage warning */ |
AnnaBridge | 171:3a7713b1edbc | 140 | LLWU_IRQn = 7, /**< Low leakage wakeup */ |
AnnaBridge | 171:3a7713b1edbc | 141 | I2C0_IRQn = 8, /**< I2C0 interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 142 | I2C1_IRQn = 9, /**< I2C1 interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 143 | SPI0_IRQn = 10, /**< SPI0 single interrupt vector for all sources */ |
AnnaBridge | 171:3a7713b1edbc | 144 | SPI1_IRQn = 11, /**< SPI1 single interrupt vector for all sources */ |
AnnaBridge | 171:3a7713b1edbc | 145 | LPUART0_IRQn = 12, /**< LPUART0 status and error */ |
AnnaBridge | 171:3a7713b1edbc | 146 | LPUART1_IRQn = 13, /**< LPUART1 status and error */ |
AnnaBridge | 171:3a7713b1edbc | 147 | UART2_FLEXIO_IRQn = 14, /**< UART2 or FLEXIO */ |
AnnaBridge | 171:3a7713b1edbc | 148 | ADC0_IRQn = 15, /**< ADC0 interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 149 | CMP0_IRQn = 16, /**< CMP0 interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 150 | TPM0_IRQn = 17, /**< TPM0 single interrupt vector for all sources */ |
AnnaBridge | 171:3a7713b1edbc | 151 | TPM1_IRQn = 18, /**< TPM1 single interrupt vector for all sources */ |
AnnaBridge | 171:3a7713b1edbc | 152 | TPM2_IRQn = 19, /**< TPM2 single interrupt vector for all sources */ |
AnnaBridge | 171:3a7713b1edbc | 153 | RTC_IRQn = 20, /**< RTC alarm */ |
AnnaBridge | 171:3a7713b1edbc | 154 | RTC_Seconds_IRQn = 21, /**< RTC seconds */ |
AnnaBridge | 171:3a7713b1edbc | 155 | PIT_IRQn = 22, /**< PIT interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 156 | I2S0_IRQn = 23, /**< I2S0 interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 157 | USB0_IRQn = 24, /**< USB0 interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 158 | DAC0_IRQn = 25, /**< DAC0 interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 159 | Reserved42_IRQn = 26, /**< Reserved interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 160 | Reserved43_IRQn = 27, /**< Reserved interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 161 | LPTMR0_IRQn = 28, /**< LPTMR0 interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 162 | LCD_IRQn = 29, /**< LCD interrupt */ |
AnnaBridge | 171:3a7713b1edbc | 163 | PORTA_IRQn = 30, /**< PORTA Pin detect */ |
AnnaBridge | 171:3a7713b1edbc | 164 | PORTC_PORTD_IRQn = 31 /**< Single interrupt vector for PORTC; PORTD Pin detect */ |
AnnaBridge | 171:3a7713b1edbc | 165 | } IRQn_Type; |
AnnaBridge | 171:3a7713b1edbc | 166 | |
AnnaBridge | 171:3a7713b1edbc | 167 | /*! |
AnnaBridge | 171:3a7713b1edbc | 168 | * @} |
AnnaBridge | 171:3a7713b1edbc | 169 | */ /* end of group Interrupt_vector_numbers */ |
AnnaBridge | 171:3a7713b1edbc | 170 | |
AnnaBridge | 171:3a7713b1edbc | 171 | |
AnnaBridge | 171:3a7713b1edbc | 172 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 173 | -- Cortex M0 Core Configuration |
AnnaBridge | 171:3a7713b1edbc | 174 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 175 | |
AnnaBridge | 171:3a7713b1edbc | 176 | /*! |
AnnaBridge | 171:3a7713b1edbc | 177 | * @addtogroup Cortex_Core_Configuration Cortex M0 Core Configuration |
AnnaBridge | 171:3a7713b1edbc | 178 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 179 | */ |
AnnaBridge | 171:3a7713b1edbc | 180 | |
AnnaBridge | 171:3a7713b1edbc | 181 | #define __CM0PLUS_REV 0x0000 /**< Core revision r0p0 */ |
AnnaBridge | 171:3a7713b1edbc | 182 | #define __MPU_PRESENT 0 /**< Defines if an MPU is present or not */ |
AnnaBridge | 171:3a7713b1edbc | 183 | #define __VTOR_PRESENT 1 /**< Defines if an MPU is present or not */ |
AnnaBridge | 171:3a7713b1edbc | 184 | #define __NVIC_PRIO_BITS 2 /**< Number of priority bits implemented in the NVIC */ |
AnnaBridge | 171:3a7713b1edbc | 185 | #define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */ |
AnnaBridge | 171:3a7713b1edbc | 186 | |
AnnaBridge | 171:3a7713b1edbc | 187 | #include "core_cm0plus.h" /* Core Peripheral Access Layer */ |
AnnaBridge | 171:3a7713b1edbc | 188 | #include "system_MKL43Z4.h" /* Device specific configuration file */ |
AnnaBridge | 171:3a7713b1edbc | 189 | |
AnnaBridge | 171:3a7713b1edbc | 190 | /*! |
AnnaBridge | 171:3a7713b1edbc | 191 | * @} |
AnnaBridge | 171:3a7713b1edbc | 192 | */ /* end of group Cortex_Core_Configuration */ |
AnnaBridge | 171:3a7713b1edbc | 193 | |
AnnaBridge | 171:3a7713b1edbc | 194 | |
AnnaBridge | 171:3a7713b1edbc | 195 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 196 | -- Mapping Information |
AnnaBridge | 171:3a7713b1edbc | 197 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 198 | |
AnnaBridge | 171:3a7713b1edbc | 199 | /*! |
AnnaBridge | 171:3a7713b1edbc | 200 | * @addtogroup Mapping_Information Mapping Information |
AnnaBridge | 171:3a7713b1edbc | 201 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 202 | */ |
AnnaBridge | 171:3a7713b1edbc | 203 | |
AnnaBridge | 171:3a7713b1edbc | 204 | /** Mapping Information */ |
AnnaBridge | 171:3a7713b1edbc | 205 | /*! |
AnnaBridge | 171:3a7713b1edbc | 206 | * @addtogroup edma_request |
AnnaBridge | 171:3a7713b1edbc | 207 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 208 | */ |
AnnaBridge | 171:3a7713b1edbc | 209 | |
AnnaBridge | 171:3a7713b1edbc | 210 | /******************************************************************************* |
AnnaBridge | 171:3a7713b1edbc | 211 | * Definitions |
AnnaBridge | 171:3a7713b1edbc | 212 | ******************************************************************************/ |
AnnaBridge | 171:3a7713b1edbc | 213 | |
AnnaBridge | 171:3a7713b1edbc | 214 | /*! |
AnnaBridge | 171:3a7713b1edbc | 215 | * @brief Structure for the DMA hardware request |
AnnaBridge | 171:3a7713b1edbc | 216 | * |
AnnaBridge | 171:3a7713b1edbc | 217 | * Defines the structure for the DMA hardware request collections. The user can configure the |
AnnaBridge | 171:3a7713b1edbc | 218 | * hardware request into DMAMUX to trigger the DMA transfer accordingly. The index |
AnnaBridge | 171:3a7713b1edbc | 219 | * of the hardware request varies according to the to SoC. |
AnnaBridge | 171:3a7713b1edbc | 220 | */ |
AnnaBridge | 171:3a7713b1edbc | 221 | typedef enum _dma_request_source |
AnnaBridge | 171:3a7713b1edbc | 222 | { |
AnnaBridge | 171:3a7713b1edbc | 223 | kDmaRequestMux0Disable = 0|0x100U, /**< Disable */ |
AnnaBridge | 171:3a7713b1edbc | 224 | kDmaRequestMux0Reserved1 = 1|0x100U, /**< Reserved1 */ |
AnnaBridge | 171:3a7713b1edbc | 225 | kDmaRequestMux0LPUART0Rx = 2|0x100U, /**< LPUART0 Receive. */ |
AnnaBridge | 171:3a7713b1edbc | 226 | kDmaRequestMux0LPUART0Tx = 3|0x100U, /**< LPUART0 Transmit. */ |
AnnaBridge | 171:3a7713b1edbc | 227 | kDmaRequestMux0LPUART1Rx = 4|0x100U, /**< LPUART1 Receive. */ |
AnnaBridge | 171:3a7713b1edbc | 228 | kDmaRequestMux0LPUART1Tx = 5|0x100U, /**< LPUART1 Transmit. */ |
AnnaBridge | 171:3a7713b1edbc | 229 | kDmaRequestMux0UART2Rx = 6|0x100U, /**< UART2 Receive. */ |
AnnaBridge | 171:3a7713b1edbc | 230 | kDmaRequestMux0UART2Tx = 7|0x100U, /**< UART2 Transmit. */ |
AnnaBridge | 171:3a7713b1edbc | 231 | kDmaRequestMux0Reserved8 = 8|0x100U, /**< Reserved8 */ |
AnnaBridge | 171:3a7713b1edbc | 232 | kDmaRequestMux0Reserved9 = 9|0x100U, /**< Reserved9 */ |
AnnaBridge | 171:3a7713b1edbc | 233 | kDmaRequestMux0FlexIOChannel0 = 10|0x100U, /**< FlexIO Channel 0. */ |
AnnaBridge | 171:3a7713b1edbc | 234 | kDmaRequestMux0FlexIOChannel1 = 11|0x100U, /**< FlexIO Channel 0. */ |
AnnaBridge | 171:3a7713b1edbc | 235 | kDmaRequestMux0FlexIOChannel2 = 12|0x100U, /**< FlexIO Channel 0. */ |
AnnaBridge | 171:3a7713b1edbc | 236 | kDmaRequestMux0FlexIOChannel3 = 13|0x100U, /**< FlexIO Channel 0. */ |
AnnaBridge | 171:3a7713b1edbc | 237 | kDmaRequestMux0I2S0Rx = 14|0x100U, /**< I2S0 Receive. */ |
AnnaBridge | 171:3a7713b1edbc | 238 | kDmaRequestMux0I2S0Tx = 15|0x100U, /**< I2S0 Transmit. */ |
AnnaBridge | 171:3a7713b1edbc | 239 | kDmaRequestMux0SPI0Rx = 16|0x100U, /**< SPI0 Receive. */ |
AnnaBridge | 171:3a7713b1edbc | 240 | kDmaRequestMux0SPI0Tx = 17|0x100U, /**< SPI0 Transmit. */ |
AnnaBridge | 171:3a7713b1edbc | 241 | kDmaRequestMux0SPI1Rx = 18|0x100U, /**< SPI1 Receive. */ |
AnnaBridge | 171:3a7713b1edbc | 242 | kDmaRequestMux0SPI1Tx = 19|0x100U, /**< SPI1 Transmit. */ |
AnnaBridge | 171:3a7713b1edbc | 243 | kDmaRequestMux0Reserved20 = 20|0x100U, /**< Reserved20 */ |
AnnaBridge | 171:3a7713b1edbc | 244 | kDmaRequestMux0Reserved21 = 21|0x100U, /**< Reserved21 */ |
AnnaBridge | 171:3a7713b1edbc | 245 | kDmaRequestMux0I2C0 = 22|0x100U, /**< I2C0. */ |
AnnaBridge | 171:3a7713b1edbc | 246 | kDmaRequestMux0I2C1 = 23|0x100U, /**< I2C1. */ |
AnnaBridge | 171:3a7713b1edbc | 247 | kDmaRequestMux0TPM0Channel0 = 24|0x100U, /**< TPM0 channel 0. */ |
AnnaBridge | 171:3a7713b1edbc | 248 | kDmaRequestMux0TPM0Channel1 = 25|0x100U, /**< TPM0 channel 1. */ |
AnnaBridge | 171:3a7713b1edbc | 249 | kDmaRequestMux0TPM0Channel2 = 26|0x100U, /**< TPM0 channel 2. */ |
AnnaBridge | 171:3a7713b1edbc | 250 | kDmaRequestMux0TPM0Channel3 = 27|0x100U, /**< TPM0 channel 3. */ |
AnnaBridge | 171:3a7713b1edbc | 251 | kDmaRequestMux0TPM0Channel4 = 28|0x100U, /**< TPM0 channel 4. */ |
AnnaBridge | 171:3a7713b1edbc | 252 | kDmaRequestMux0TPM0Channel5 = 29|0x100U, /**< TPM0 channel 5. */ |
AnnaBridge | 171:3a7713b1edbc | 253 | kDmaRequestMux0Reserved30 = 30|0x100U, /**< Reserved30 */ |
AnnaBridge | 171:3a7713b1edbc | 254 | kDmaRequestMux0Reserved31 = 31|0x100U, /**< Reserved31 */ |
AnnaBridge | 171:3a7713b1edbc | 255 | kDmaRequestMux0TPM1Channel0 = 32|0x100U, /**< TPM1 channel 0. */ |
AnnaBridge | 171:3a7713b1edbc | 256 | kDmaRequestMux0TPM1Channel1 = 33|0x100U, /**< TPM1 channel 1. */ |
AnnaBridge | 171:3a7713b1edbc | 257 | kDmaRequestMux0TPM2Channel0 = 34|0x100U, /**< TPM2 channel 0. */ |
AnnaBridge | 171:3a7713b1edbc | 258 | kDmaRequestMux0TPM2Channel1 = 35|0x100U, /**< TPM2 channel 1. */ |
AnnaBridge | 171:3a7713b1edbc | 259 | kDmaRequestMux0Reserved36 = 36|0x100U, /**< Reserved36 */ |
AnnaBridge | 171:3a7713b1edbc | 260 | kDmaRequestMux0Reserved37 = 37|0x100U, /**< Reserved37 */ |
AnnaBridge | 171:3a7713b1edbc | 261 | kDmaRequestMux0Reserved38 = 38|0x100U, /**< Reserved38 */ |
AnnaBridge | 171:3a7713b1edbc | 262 | kDmaRequestMux0Reserved39 = 39|0x100U, /**< Reserved39 */ |
AnnaBridge | 171:3a7713b1edbc | 263 | kDmaRequestMux0ADC0 = 40|0x100U, /**< ADC0. */ |
AnnaBridge | 171:3a7713b1edbc | 264 | kDmaRequestMux0Reserved41 = 41|0x100U, /**< Reserved41 */ |
AnnaBridge | 171:3a7713b1edbc | 265 | kDmaRequestMux0CMP0 = 42|0x100U, /**< CMP0. */ |
AnnaBridge | 171:3a7713b1edbc | 266 | kDmaRequestMux0Reserved43 = 43|0x100U, /**< Reserved43 */ |
AnnaBridge | 171:3a7713b1edbc | 267 | kDmaRequestMux0Reserved44 = 44|0x100U, /**< Reserved44 */ |
AnnaBridge | 171:3a7713b1edbc | 268 | kDmaRequestMux0DAC0 = 45|0x100U, /**< DAC0. */ |
AnnaBridge | 171:3a7713b1edbc | 269 | kDmaRequestMux0Reserved46 = 46|0x100U, /**< Reserved46 */ |
AnnaBridge | 171:3a7713b1edbc | 270 | kDmaRequestMux0Reserved47 = 47|0x100U, /**< Reserved47 */ |
AnnaBridge | 171:3a7713b1edbc | 271 | kDmaRequestMux0Reserved48 = 48|0x100U, /**< Reserved48 */ |
AnnaBridge | 171:3a7713b1edbc | 272 | kDmaRequestMux0PortA = 49|0x100U, /**< GPIO Port A. */ |
AnnaBridge | 171:3a7713b1edbc | 273 | kDmaRequestMux0Reserved50 = 50|0x100U, /**< Reserved50 */ |
AnnaBridge | 171:3a7713b1edbc | 274 | kDmaRequestMux0PortC = 51|0x100U, /**< GPIO Port C. */ |
AnnaBridge | 171:3a7713b1edbc | 275 | kDmaRequestMux0PortD = 52|0x100U, /**< GPIO Port D. */ |
AnnaBridge | 171:3a7713b1edbc | 276 | kDmaRequestMux0Reserved53 = 53|0x100U, /**< Reserved53 */ |
AnnaBridge | 171:3a7713b1edbc | 277 | kDmaRequestMux0TPM0Overflow = 54|0x100U, /**< TPM0 overflow. */ |
AnnaBridge | 171:3a7713b1edbc | 278 | kDmaRequestMux0TPM1Overflow = 55|0x100U, /**< TPM1 overflow. */ |
AnnaBridge | 171:3a7713b1edbc | 279 | kDmaRequestMux0TPM2Overflow = 56|0x100U, /**< TPM2 overflow. */ |
AnnaBridge | 171:3a7713b1edbc | 280 | kDmaRequestMux0Reserved57 = 57|0x100U, /**< Reserved57 */ |
AnnaBridge | 171:3a7713b1edbc | 281 | kDmaRequestMux0Reserved58 = 58|0x100U, /**< Reserved58 */ |
AnnaBridge | 171:3a7713b1edbc | 282 | kDmaRequestMux0Reserved59 = 59|0x100U, /**< Reserved59 */ |
AnnaBridge | 171:3a7713b1edbc | 283 | kDmaRequestMux0AlwaysOn60 = 60|0x100U, /**< Always enabled. */ |
AnnaBridge | 171:3a7713b1edbc | 284 | kDmaRequestMux0AlwaysOn61 = 61|0x100U, /**< Always enabled. */ |
AnnaBridge | 171:3a7713b1edbc | 285 | kDmaRequestMux0AlwaysOn62 = 62|0x100U, /**< Always enabled. */ |
AnnaBridge | 171:3a7713b1edbc | 286 | kDmaRequestMux0AlwaysOn63 = 63|0x100U, /**< Always enabled. */ |
AnnaBridge | 171:3a7713b1edbc | 287 | } dma_request_source_t; |
AnnaBridge | 171:3a7713b1edbc | 288 | |
AnnaBridge | 171:3a7713b1edbc | 289 | /* @} */ |
AnnaBridge | 171:3a7713b1edbc | 290 | |
AnnaBridge | 171:3a7713b1edbc | 291 | |
AnnaBridge | 171:3a7713b1edbc | 292 | /*! |
AnnaBridge | 171:3a7713b1edbc | 293 | * @} |
AnnaBridge | 171:3a7713b1edbc | 294 | */ /* end of group Mapping_Information */ |
AnnaBridge | 171:3a7713b1edbc | 295 | |
AnnaBridge | 171:3a7713b1edbc | 296 | |
AnnaBridge | 171:3a7713b1edbc | 297 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 298 | -- Device Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 299 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 300 | |
AnnaBridge | 171:3a7713b1edbc | 301 | /*! |
AnnaBridge | 171:3a7713b1edbc | 302 | * @addtogroup Peripheral_access_layer Device Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 303 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 304 | */ |
AnnaBridge | 171:3a7713b1edbc | 305 | |
AnnaBridge | 171:3a7713b1edbc | 306 | |
AnnaBridge | 171:3a7713b1edbc | 307 | /* |
AnnaBridge | 171:3a7713b1edbc | 308 | ** Start of section using anonymous unions |
AnnaBridge | 171:3a7713b1edbc | 309 | */ |
AnnaBridge | 171:3a7713b1edbc | 310 | |
AnnaBridge | 171:3a7713b1edbc | 311 | #if defined(__ARMCC_VERSION) |
AnnaBridge | 171:3a7713b1edbc | 312 | #pragma push |
AnnaBridge | 171:3a7713b1edbc | 313 | #pragma anon_unions |
AnnaBridge | 171:3a7713b1edbc | 314 | #elif defined(__CWCC__) |
AnnaBridge | 171:3a7713b1edbc | 315 | #pragma push |
AnnaBridge | 171:3a7713b1edbc | 316 | #pragma cpp_extensions on |
AnnaBridge | 171:3a7713b1edbc | 317 | #elif defined(__GNUC__) |
AnnaBridge | 171:3a7713b1edbc | 318 | /* anonymous unions are enabled by default */ |
AnnaBridge | 171:3a7713b1edbc | 319 | #elif defined(__IAR_SYSTEMS_ICC__) |
AnnaBridge | 171:3a7713b1edbc | 320 | #pragma language=extended |
AnnaBridge | 171:3a7713b1edbc | 321 | #else |
AnnaBridge | 171:3a7713b1edbc | 322 | #error Not supported compiler type |
AnnaBridge | 171:3a7713b1edbc | 323 | #endif |
AnnaBridge | 171:3a7713b1edbc | 324 | |
AnnaBridge | 171:3a7713b1edbc | 325 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 326 | -- ADC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 327 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 328 | |
AnnaBridge | 171:3a7713b1edbc | 329 | /*! |
AnnaBridge | 171:3a7713b1edbc | 330 | * @addtogroup ADC_Peripheral_Access_Layer ADC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 331 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 332 | */ |
AnnaBridge | 171:3a7713b1edbc | 333 | |
AnnaBridge | 171:3a7713b1edbc | 334 | /** ADC - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 335 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 336 | __IO uint32_t SC1[2]; /**< ADC Status and Control Registers 1, array offset: 0x0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 337 | __IO uint32_t CFG1; /**< ADC Configuration Register 1, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 338 | __IO uint32_t CFG2; /**< ADC Configuration Register 2, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 339 | __I uint32_t R[2]; /**< ADC Data Result Register, array offset: 0x10, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 340 | __IO uint32_t CV1; /**< Compare Value Registers, offset: 0x18 */ |
AnnaBridge | 171:3a7713b1edbc | 341 | __IO uint32_t CV2; /**< Compare Value Registers, offset: 0x1C */ |
AnnaBridge | 171:3a7713b1edbc | 342 | __IO uint32_t SC2; /**< Status and Control Register 2, offset: 0x20 */ |
AnnaBridge | 171:3a7713b1edbc | 343 | __IO uint32_t SC3; /**< Status and Control Register 3, offset: 0x24 */ |
AnnaBridge | 171:3a7713b1edbc | 344 | __IO uint32_t OFS; /**< ADC Offset Correction Register, offset: 0x28 */ |
AnnaBridge | 171:3a7713b1edbc | 345 | __IO uint32_t PG; /**< ADC Plus-Side Gain Register, offset: 0x2C */ |
AnnaBridge | 171:3a7713b1edbc | 346 | __IO uint32_t MG; /**< ADC Minus-Side Gain Register, offset: 0x30 */ |
AnnaBridge | 171:3a7713b1edbc | 347 | __IO uint32_t CLPD; /**< ADC Plus-Side General Calibration Value Register, offset: 0x34 */ |
AnnaBridge | 171:3a7713b1edbc | 348 | __IO uint32_t CLPS; /**< ADC Plus-Side General Calibration Value Register, offset: 0x38 */ |
AnnaBridge | 171:3a7713b1edbc | 349 | __IO uint32_t CLP4; /**< ADC Plus-Side General Calibration Value Register, offset: 0x3C */ |
AnnaBridge | 171:3a7713b1edbc | 350 | __IO uint32_t CLP3; /**< ADC Plus-Side General Calibration Value Register, offset: 0x40 */ |
AnnaBridge | 171:3a7713b1edbc | 351 | __IO uint32_t CLP2; /**< ADC Plus-Side General Calibration Value Register, offset: 0x44 */ |
AnnaBridge | 171:3a7713b1edbc | 352 | __IO uint32_t CLP1; /**< ADC Plus-Side General Calibration Value Register, offset: 0x48 */ |
AnnaBridge | 171:3a7713b1edbc | 353 | __IO uint32_t CLP0; /**< ADC Plus-Side General Calibration Value Register, offset: 0x4C */ |
AnnaBridge | 171:3a7713b1edbc | 354 | uint8_t RESERVED_0[4]; |
AnnaBridge | 171:3a7713b1edbc | 355 | __IO uint32_t CLMD; /**< ADC Minus-Side General Calibration Value Register, offset: 0x54 */ |
AnnaBridge | 171:3a7713b1edbc | 356 | __IO uint32_t CLMS; /**< ADC Minus-Side General Calibration Value Register, offset: 0x58 */ |
AnnaBridge | 171:3a7713b1edbc | 357 | __IO uint32_t CLM4; /**< ADC Minus-Side General Calibration Value Register, offset: 0x5C */ |
AnnaBridge | 171:3a7713b1edbc | 358 | __IO uint32_t CLM3; /**< ADC Minus-Side General Calibration Value Register, offset: 0x60 */ |
AnnaBridge | 171:3a7713b1edbc | 359 | __IO uint32_t CLM2; /**< ADC Minus-Side General Calibration Value Register, offset: 0x64 */ |
AnnaBridge | 171:3a7713b1edbc | 360 | __IO uint32_t CLM1; /**< ADC Minus-Side General Calibration Value Register, offset: 0x68 */ |
AnnaBridge | 171:3a7713b1edbc | 361 | __IO uint32_t CLM0; /**< ADC Minus-Side General Calibration Value Register, offset: 0x6C */ |
AnnaBridge | 171:3a7713b1edbc | 362 | } ADC_Type; |
AnnaBridge | 171:3a7713b1edbc | 363 | |
AnnaBridge | 171:3a7713b1edbc | 364 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 365 | -- ADC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 366 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 367 | |
AnnaBridge | 171:3a7713b1edbc | 368 | /*! |
AnnaBridge | 171:3a7713b1edbc | 369 | * @addtogroup ADC_Register_Masks ADC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 370 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 371 | */ |
AnnaBridge | 171:3a7713b1edbc | 372 | |
AnnaBridge | 171:3a7713b1edbc | 373 | /*! @name SC1 - ADC Status and Control Registers 1 */ |
AnnaBridge | 171:3a7713b1edbc | 374 | #define ADC_SC1_ADCH_MASK (0x1FU) |
AnnaBridge | 171:3a7713b1edbc | 375 | #define ADC_SC1_ADCH_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 376 | #define ADC_SC1_ADCH(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC1_ADCH_SHIFT)) & ADC_SC1_ADCH_MASK) |
AnnaBridge | 171:3a7713b1edbc | 377 | #define ADC_SC1_DIFF_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 378 | #define ADC_SC1_DIFF_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 379 | #define ADC_SC1_DIFF(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC1_DIFF_SHIFT)) & ADC_SC1_DIFF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 380 | #define ADC_SC1_AIEN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 381 | #define ADC_SC1_AIEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 382 | #define ADC_SC1_AIEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC1_AIEN_SHIFT)) & ADC_SC1_AIEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 383 | #define ADC_SC1_COCO_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 384 | #define ADC_SC1_COCO_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 385 | #define ADC_SC1_COCO(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC1_COCO_SHIFT)) & ADC_SC1_COCO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 386 | |
AnnaBridge | 171:3a7713b1edbc | 387 | /* The count of ADC_SC1 */ |
AnnaBridge | 171:3a7713b1edbc | 388 | #define ADC_SC1_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 389 | |
AnnaBridge | 171:3a7713b1edbc | 390 | /*! @name CFG1 - ADC Configuration Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 391 | #define ADC_CFG1_ADICLK_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 392 | #define ADC_CFG1_ADICLK_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 393 | #define ADC_CFG1_ADICLK(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_ADICLK_SHIFT)) & ADC_CFG1_ADICLK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 394 | #define ADC_CFG1_MODE_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 395 | #define ADC_CFG1_MODE_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 396 | #define ADC_CFG1_MODE(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_MODE_SHIFT)) & ADC_CFG1_MODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 397 | #define ADC_CFG1_ADLSMP_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 398 | #define ADC_CFG1_ADLSMP_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 399 | #define ADC_CFG1_ADLSMP(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_ADLSMP_SHIFT)) & ADC_CFG1_ADLSMP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 400 | #define ADC_CFG1_ADIV_MASK (0x60U) |
AnnaBridge | 171:3a7713b1edbc | 401 | #define ADC_CFG1_ADIV_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 402 | #define ADC_CFG1_ADIV(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_ADIV_SHIFT)) & ADC_CFG1_ADIV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 403 | #define ADC_CFG1_ADLPC_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 404 | #define ADC_CFG1_ADLPC_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 405 | #define ADC_CFG1_ADLPC(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG1_ADLPC_SHIFT)) & ADC_CFG1_ADLPC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 406 | |
AnnaBridge | 171:3a7713b1edbc | 407 | /*! @name CFG2 - ADC Configuration Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 408 | #define ADC_CFG2_ADLSTS_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 409 | #define ADC_CFG2_ADLSTS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 410 | #define ADC_CFG2_ADLSTS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG2_ADLSTS_SHIFT)) & ADC_CFG2_ADLSTS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 411 | #define ADC_CFG2_ADHSC_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 412 | #define ADC_CFG2_ADHSC_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 413 | #define ADC_CFG2_ADHSC(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG2_ADHSC_SHIFT)) & ADC_CFG2_ADHSC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 414 | #define ADC_CFG2_ADACKEN_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 415 | #define ADC_CFG2_ADACKEN_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 416 | #define ADC_CFG2_ADACKEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG2_ADACKEN_SHIFT)) & ADC_CFG2_ADACKEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 417 | #define ADC_CFG2_MUXSEL_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 418 | #define ADC_CFG2_MUXSEL_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 419 | #define ADC_CFG2_MUXSEL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG2_MUXSEL_SHIFT)) & ADC_CFG2_MUXSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 420 | |
AnnaBridge | 171:3a7713b1edbc | 421 | /*! @name R - ADC Data Result Register */ |
AnnaBridge | 171:3a7713b1edbc | 422 | #define ADC_R_D_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 423 | #define ADC_R_D_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 424 | #define ADC_R_D(x) (((uint32_t)(((uint32_t)(x)) << ADC_R_D_SHIFT)) & ADC_R_D_MASK) |
AnnaBridge | 171:3a7713b1edbc | 425 | |
AnnaBridge | 171:3a7713b1edbc | 426 | /* The count of ADC_R */ |
AnnaBridge | 171:3a7713b1edbc | 427 | #define ADC_R_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 428 | |
AnnaBridge | 171:3a7713b1edbc | 429 | /*! @name CV1 - Compare Value Registers */ |
AnnaBridge | 171:3a7713b1edbc | 430 | #define ADC_CV1_CV_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 431 | #define ADC_CV1_CV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 432 | #define ADC_CV1_CV(x) (((uint32_t)(((uint32_t)(x)) << ADC_CV1_CV_SHIFT)) & ADC_CV1_CV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 433 | |
AnnaBridge | 171:3a7713b1edbc | 434 | /*! @name CV2 - Compare Value Registers */ |
AnnaBridge | 171:3a7713b1edbc | 435 | #define ADC_CV2_CV_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 436 | #define ADC_CV2_CV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 437 | #define ADC_CV2_CV(x) (((uint32_t)(((uint32_t)(x)) << ADC_CV2_CV_SHIFT)) & ADC_CV2_CV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 438 | |
AnnaBridge | 171:3a7713b1edbc | 439 | /*! @name SC2 - Status and Control Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 440 | #define ADC_SC2_REFSEL_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 441 | #define ADC_SC2_REFSEL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 442 | #define ADC_SC2_REFSEL(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_REFSEL_SHIFT)) & ADC_SC2_REFSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 443 | #define ADC_SC2_DMAEN_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 444 | #define ADC_SC2_DMAEN_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 445 | #define ADC_SC2_DMAEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_DMAEN_SHIFT)) & ADC_SC2_DMAEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 446 | #define ADC_SC2_ACREN_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 447 | #define ADC_SC2_ACREN_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 448 | #define ADC_SC2_ACREN(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ACREN_SHIFT)) & ADC_SC2_ACREN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 449 | #define ADC_SC2_ACFGT_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 450 | #define ADC_SC2_ACFGT_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 451 | #define ADC_SC2_ACFGT(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ACFGT_SHIFT)) & ADC_SC2_ACFGT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 452 | #define ADC_SC2_ACFE_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 453 | #define ADC_SC2_ACFE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 454 | #define ADC_SC2_ACFE(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ACFE_SHIFT)) & ADC_SC2_ACFE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 455 | #define ADC_SC2_ADTRG_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 456 | #define ADC_SC2_ADTRG_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 457 | #define ADC_SC2_ADTRG(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ADTRG_SHIFT)) & ADC_SC2_ADTRG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 458 | #define ADC_SC2_ADACT_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 459 | #define ADC_SC2_ADACT_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 460 | #define ADC_SC2_ADACT(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC2_ADACT_SHIFT)) & ADC_SC2_ADACT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 461 | |
AnnaBridge | 171:3a7713b1edbc | 462 | /*! @name SC3 - Status and Control Register 3 */ |
AnnaBridge | 171:3a7713b1edbc | 463 | #define ADC_SC3_AVGS_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 464 | #define ADC_SC3_AVGS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 465 | #define ADC_SC3_AVGS(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_AVGS_SHIFT)) & ADC_SC3_AVGS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 466 | #define ADC_SC3_AVGE_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 467 | #define ADC_SC3_AVGE_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 468 | #define ADC_SC3_AVGE(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_AVGE_SHIFT)) & ADC_SC3_AVGE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 469 | #define ADC_SC3_ADCO_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 470 | #define ADC_SC3_ADCO_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 471 | #define ADC_SC3_ADCO(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_ADCO_SHIFT)) & ADC_SC3_ADCO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 472 | #define ADC_SC3_CALF_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 473 | #define ADC_SC3_CALF_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 474 | #define ADC_SC3_CALF(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_CALF_SHIFT)) & ADC_SC3_CALF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 475 | #define ADC_SC3_CAL_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 476 | #define ADC_SC3_CAL_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 477 | #define ADC_SC3_CAL(x) (((uint32_t)(((uint32_t)(x)) << ADC_SC3_CAL_SHIFT)) & ADC_SC3_CAL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 478 | |
AnnaBridge | 171:3a7713b1edbc | 479 | /*! @name OFS - ADC Offset Correction Register */ |
AnnaBridge | 171:3a7713b1edbc | 480 | #define ADC_OFS_OFS_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 481 | #define ADC_OFS_OFS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 482 | #define ADC_OFS_OFS(x) (((uint32_t)(((uint32_t)(x)) << ADC_OFS_OFS_SHIFT)) & ADC_OFS_OFS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 483 | |
AnnaBridge | 171:3a7713b1edbc | 484 | /*! @name PG - ADC Plus-Side Gain Register */ |
AnnaBridge | 171:3a7713b1edbc | 485 | #define ADC_PG_PG_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 486 | #define ADC_PG_PG_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 487 | #define ADC_PG_PG(x) (((uint32_t)(((uint32_t)(x)) << ADC_PG_PG_SHIFT)) & ADC_PG_PG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 488 | |
AnnaBridge | 171:3a7713b1edbc | 489 | /*! @name MG - ADC Minus-Side Gain Register */ |
AnnaBridge | 171:3a7713b1edbc | 490 | #define ADC_MG_MG_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 491 | #define ADC_MG_MG_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 492 | #define ADC_MG_MG(x) (((uint32_t)(((uint32_t)(x)) << ADC_MG_MG_SHIFT)) & ADC_MG_MG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 493 | |
AnnaBridge | 171:3a7713b1edbc | 494 | /*! @name CLPD - ADC Plus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 495 | #define ADC_CLPD_CLPD_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 496 | #define ADC_CLPD_CLPD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 497 | #define ADC_CLPD_CLPD(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLPD_CLPD_SHIFT)) & ADC_CLPD_CLPD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 498 | |
AnnaBridge | 171:3a7713b1edbc | 499 | /*! @name CLPS - ADC Plus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 500 | #define ADC_CLPS_CLPS_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 501 | #define ADC_CLPS_CLPS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 502 | #define ADC_CLPS_CLPS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLPS_CLPS_SHIFT)) & ADC_CLPS_CLPS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 503 | |
AnnaBridge | 171:3a7713b1edbc | 504 | /*! @name CLP4 - ADC Plus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 505 | #define ADC_CLP4_CLP4_MASK (0x3FFU) |
AnnaBridge | 171:3a7713b1edbc | 506 | #define ADC_CLP4_CLP4_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 507 | #define ADC_CLP4_CLP4(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP4_CLP4_SHIFT)) & ADC_CLP4_CLP4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 508 | |
AnnaBridge | 171:3a7713b1edbc | 509 | /*! @name CLP3 - ADC Plus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 510 | #define ADC_CLP3_CLP3_MASK (0x1FFU) |
AnnaBridge | 171:3a7713b1edbc | 511 | #define ADC_CLP3_CLP3_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 512 | #define ADC_CLP3_CLP3(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP3_CLP3_SHIFT)) & ADC_CLP3_CLP3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 513 | |
AnnaBridge | 171:3a7713b1edbc | 514 | /*! @name CLP2 - ADC Plus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 515 | #define ADC_CLP2_CLP2_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 516 | #define ADC_CLP2_CLP2_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 517 | #define ADC_CLP2_CLP2(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP2_CLP2_SHIFT)) & ADC_CLP2_CLP2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 518 | |
AnnaBridge | 171:3a7713b1edbc | 519 | /*! @name CLP1 - ADC Plus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 520 | #define ADC_CLP1_CLP1_MASK (0x7FU) |
AnnaBridge | 171:3a7713b1edbc | 521 | #define ADC_CLP1_CLP1_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 522 | #define ADC_CLP1_CLP1(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP1_CLP1_SHIFT)) & ADC_CLP1_CLP1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 523 | |
AnnaBridge | 171:3a7713b1edbc | 524 | /*! @name CLP0 - ADC Plus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 525 | #define ADC_CLP0_CLP0_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 526 | #define ADC_CLP0_CLP0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 527 | #define ADC_CLP0_CLP0(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLP0_CLP0_SHIFT)) & ADC_CLP0_CLP0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 528 | |
AnnaBridge | 171:3a7713b1edbc | 529 | /*! @name CLMD - ADC Minus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 530 | #define ADC_CLMD_CLMD_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 531 | #define ADC_CLMD_CLMD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 532 | #define ADC_CLMD_CLMD(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLMD_CLMD_SHIFT)) & ADC_CLMD_CLMD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 533 | |
AnnaBridge | 171:3a7713b1edbc | 534 | /*! @name CLMS - ADC Minus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 535 | #define ADC_CLMS_CLMS_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 536 | #define ADC_CLMS_CLMS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 537 | #define ADC_CLMS_CLMS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLMS_CLMS_SHIFT)) & ADC_CLMS_CLMS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 538 | |
AnnaBridge | 171:3a7713b1edbc | 539 | /*! @name CLM4 - ADC Minus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 540 | #define ADC_CLM4_CLM4_MASK (0x3FFU) |
AnnaBridge | 171:3a7713b1edbc | 541 | #define ADC_CLM4_CLM4_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 542 | #define ADC_CLM4_CLM4(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLM4_CLM4_SHIFT)) & ADC_CLM4_CLM4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 543 | |
AnnaBridge | 171:3a7713b1edbc | 544 | /*! @name CLM3 - ADC Minus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 545 | #define ADC_CLM3_CLM3_MASK (0x1FFU) |
AnnaBridge | 171:3a7713b1edbc | 546 | #define ADC_CLM3_CLM3_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 547 | #define ADC_CLM3_CLM3(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLM3_CLM3_SHIFT)) & ADC_CLM3_CLM3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 548 | |
AnnaBridge | 171:3a7713b1edbc | 549 | /*! @name CLM2 - ADC Minus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 550 | #define ADC_CLM2_CLM2_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 551 | #define ADC_CLM2_CLM2_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 552 | #define ADC_CLM2_CLM2(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLM2_CLM2_SHIFT)) & ADC_CLM2_CLM2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 553 | |
AnnaBridge | 171:3a7713b1edbc | 554 | /*! @name CLM1 - ADC Minus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 555 | #define ADC_CLM1_CLM1_MASK (0x7FU) |
AnnaBridge | 171:3a7713b1edbc | 556 | #define ADC_CLM1_CLM1_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 557 | #define ADC_CLM1_CLM1(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLM1_CLM1_SHIFT)) & ADC_CLM1_CLM1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 558 | |
AnnaBridge | 171:3a7713b1edbc | 559 | /*! @name CLM0 - ADC Minus-Side General Calibration Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 560 | #define ADC_CLM0_CLM0_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 561 | #define ADC_CLM0_CLM0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 562 | #define ADC_CLM0_CLM0(x) (((uint32_t)(((uint32_t)(x)) << ADC_CLM0_CLM0_SHIFT)) & ADC_CLM0_CLM0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 563 | |
AnnaBridge | 171:3a7713b1edbc | 564 | |
AnnaBridge | 171:3a7713b1edbc | 565 | /*! |
AnnaBridge | 171:3a7713b1edbc | 566 | * @} |
AnnaBridge | 171:3a7713b1edbc | 567 | */ /* end of group ADC_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 568 | |
AnnaBridge | 171:3a7713b1edbc | 569 | |
AnnaBridge | 171:3a7713b1edbc | 570 | /* ADC - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 571 | /** Peripheral ADC0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 572 | #define ADC0_BASE (0x4003B000u) |
AnnaBridge | 171:3a7713b1edbc | 573 | /** Peripheral ADC0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 574 | #define ADC0 ((ADC_Type *)ADC0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 575 | /** Array initializer of ADC peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 576 | #define ADC_BASE_ADDRS { ADC0_BASE } |
AnnaBridge | 171:3a7713b1edbc | 577 | /** Array initializer of ADC peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 578 | #define ADC_BASE_PTRS { ADC0 } |
AnnaBridge | 171:3a7713b1edbc | 579 | /** Interrupt vectors for the ADC peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 580 | #define ADC_IRQS { ADC0_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 581 | |
AnnaBridge | 171:3a7713b1edbc | 582 | /*! |
AnnaBridge | 171:3a7713b1edbc | 583 | * @} |
AnnaBridge | 171:3a7713b1edbc | 584 | */ /* end of group ADC_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 585 | |
AnnaBridge | 171:3a7713b1edbc | 586 | |
AnnaBridge | 171:3a7713b1edbc | 587 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 588 | -- CMP Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 589 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 590 | |
AnnaBridge | 171:3a7713b1edbc | 591 | /*! |
AnnaBridge | 171:3a7713b1edbc | 592 | * @addtogroup CMP_Peripheral_Access_Layer CMP Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 593 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 594 | */ |
AnnaBridge | 171:3a7713b1edbc | 595 | |
AnnaBridge | 171:3a7713b1edbc | 596 | /** CMP - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 597 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 598 | __IO uint8_t CR0; /**< CMP Control Register 0, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 599 | __IO uint8_t CR1; /**< CMP Control Register 1, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 600 | __IO uint8_t FPR; /**< CMP Filter Period Register, offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 601 | __IO uint8_t SCR; /**< CMP Status and Control Register, offset: 0x3 */ |
AnnaBridge | 171:3a7713b1edbc | 602 | __IO uint8_t DACCR; /**< DAC Control Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 603 | __IO uint8_t MUXCR; /**< MUX Control Register, offset: 0x5 */ |
AnnaBridge | 171:3a7713b1edbc | 604 | } CMP_Type; |
AnnaBridge | 171:3a7713b1edbc | 605 | |
AnnaBridge | 171:3a7713b1edbc | 606 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 607 | -- CMP Register Masks |
AnnaBridge | 171:3a7713b1edbc | 608 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 609 | |
AnnaBridge | 171:3a7713b1edbc | 610 | /*! |
AnnaBridge | 171:3a7713b1edbc | 611 | * @addtogroup CMP_Register_Masks CMP Register Masks |
AnnaBridge | 171:3a7713b1edbc | 612 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 613 | */ |
AnnaBridge | 171:3a7713b1edbc | 614 | |
AnnaBridge | 171:3a7713b1edbc | 615 | /*! @name CR0 - CMP Control Register 0 */ |
AnnaBridge | 171:3a7713b1edbc | 616 | #define CMP_CR0_HYSTCTR_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 617 | #define CMP_CR0_HYSTCTR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 618 | #define CMP_CR0_HYSTCTR(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_HYSTCTR_SHIFT)) & CMP_CR0_HYSTCTR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 619 | #define CMP_CR0_FILTER_CNT_MASK (0x70U) |
AnnaBridge | 171:3a7713b1edbc | 620 | #define CMP_CR0_FILTER_CNT_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 621 | #define CMP_CR0_FILTER_CNT(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR0_FILTER_CNT_SHIFT)) & CMP_CR0_FILTER_CNT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 622 | |
AnnaBridge | 171:3a7713b1edbc | 623 | /*! @name CR1 - CMP Control Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 624 | #define CMP_CR1_EN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 625 | #define CMP_CR1_EN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 626 | #define CMP_CR1_EN(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_EN_SHIFT)) & CMP_CR1_EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 627 | #define CMP_CR1_OPE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 628 | #define CMP_CR1_OPE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 629 | #define CMP_CR1_OPE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_OPE_SHIFT)) & CMP_CR1_OPE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 630 | #define CMP_CR1_COS_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 631 | #define CMP_CR1_COS_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 632 | #define CMP_CR1_COS(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_COS_SHIFT)) & CMP_CR1_COS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 633 | #define CMP_CR1_INV_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 634 | #define CMP_CR1_INV_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 635 | #define CMP_CR1_INV(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_INV_SHIFT)) & CMP_CR1_INV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 636 | #define CMP_CR1_PMODE_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 637 | #define CMP_CR1_PMODE_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 638 | #define CMP_CR1_PMODE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_PMODE_SHIFT)) & CMP_CR1_PMODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 639 | #define CMP_CR1_TRIGM_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 640 | #define CMP_CR1_TRIGM_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 641 | #define CMP_CR1_TRIGM(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_TRIGM_SHIFT)) & CMP_CR1_TRIGM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 642 | #define CMP_CR1_WE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 643 | #define CMP_CR1_WE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 644 | #define CMP_CR1_WE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_WE_SHIFT)) & CMP_CR1_WE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 645 | #define CMP_CR1_SE_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 646 | #define CMP_CR1_SE_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 647 | #define CMP_CR1_SE(x) (((uint8_t)(((uint8_t)(x)) << CMP_CR1_SE_SHIFT)) & CMP_CR1_SE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 648 | |
AnnaBridge | 171:3a7713b1edbc | 649 | /*! @name FPR - CMP Filter Period Register */ |
AnnaBridge | 171:3a7713b1edbc | 650 | #define CMP_FPR_FILT_PER_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 651 | #define CMP_FPR_FILT_PER_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 652 | #define CMP_FPR_FILT_PER(x) (((uint8_t)(((uint8_t)(x)) << CMP_FPR_FILT_PER_SHIFT)) & CMP_FPR_FILT_PER_MASK) |
AnnaBridge | 171:3a7713b1edbc | 653 | |
AnnaBridge | 171:3a7713b1edbc | 654 | /*! @name SCR - CMP Status and Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 655 | #define CMP_SCR_COUT_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 656 | #define CMP_SCR_COUT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 657 | #define CMP_SCR_COUT(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_COUT_SHIFT)) & CMP_SCR_COUT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 658 | #define CMP_SCR_CFF_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 659 | #define CMP_SCR_CFF_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 660 | #define CMP_SCR_CFF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFF_SHIFT)) & CMP_SCR_CFF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 661 | #define CMP_SCR_CFR_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 662 | #define CMP_SCR_CFR_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 663 | #define CMP_SCR_CFR(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_CFR_SHIFT)) & CMP_SCR_CFR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 664 | #define CMP_SCR_IEF_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 665 | #define CMP_SCR_IEF_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 666 | #define CMP_SCR_IEF(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IEF_SHIFT)) & CMP_SCR_IEF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 667 | #define CMP_SCR_IER_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 668 | #define CMP_SCR_IER_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 669 | #define CMP_SCR_IER(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_IER_SHIFT)) & CMP_SCR_IER_MASK) |
AnnaBridge | 171:3a7713b1edbc | 670 | #define CMP_SCR_DMAEN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 671 | #define CMP_SCR_DMAEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 672 | #define CMP_SCR_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_SCR_DMAEN_SHIFT)) & CMP_SCR_DMAEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 673 | |
AnnaBridge | 171:3a7713b1edbc | 674 | /*! @name DACCR - DAC Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 675 | #define CMP_DACCR_VOSEL_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 676 | #define CMP_DACCR_VOSEL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 677 | #define CMP_DACCR_VOSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VOSEL_SHIFT)) & CMP_DACCR_VOSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 678 | #define CMP_DACCR_VRSEL_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 679 | #define CMP_DACCR_VRSEL_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 680 | #define CMP_DACCR_VRSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_VRSEL_SHIFT)) & CMP_DACCR_VRSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 681 | #define CMP_DACCR_DACEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 682 | #define CMP_DACCR_DACEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 683 | #define CMP_DACCR_DACEN(x) (((uint8_t)(((uint8_t)(x)) << CMP_DACCR_DACEN_SHIFT)) & CMP_DACCR_DACEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 684 | |
AnnaBridge | 171:3a7713b1edbc | 685 | /*! @name MUXCR - MUX Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 686 | #define CMP_MUXCR_MSEL_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 687 | #define CMP_MUXCR_MSEL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 688 | #define CMP_MUXCR_MSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_MSEL_SHIFT)) & CMP_MUXCR_MSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 689 | #define CMP_MUXCR_PSEL_MASK (0x38U) |
AnnaBridge | 171:3a7713b1edbc | 690 | #define CMP_MUXCR_PSEL_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 691 | #define CMP_MUXCR_PSEL(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSEL_SHIFT)) & CMP_MUXCR_PSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 692 | #define CMP_MUXCR_PSTM_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 693 | #define CMP_MUXCR_PSTM_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 694 | #define CMP_MUXCR_PSTM(x) (((uint8_t)(((uint8_t)(x)) << CMP_MUXCR_PSTM_SHIFT)) & CMP_MUXCR_PSTM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 695 | |
AnnaBridge | 171:3a7713b1edbc | 696 | |
AnnaBridge | 171:3a7713b1edbc | 697 | /*! |
AnnaBridge | 171:3a7713b1edbc | 698 | * @} |
AnnaBridge | 171:3a7713b1edbc | 699 | */ /* end of group CMP_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 700 | |
AnnaBridge | 171:3a7713b1edbc | 701 | |
AnnaBridge | 171:3a7713b1edbc | 702 | /* CMP - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 703 | /** Peripheral CMP0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 704 | #define CMP0_BASE (0x40073000u) |
AnnaBridge | 171:3a7713b1edbc | 705 | /** Peripheral CMP0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 706 | #define CMP0 ((CMP_Type *)CMP0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 707 | /** Array initializer of CMP peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 708 | #define CMP_BASE_ADDRS { CMP0_BASE } |
AnnaBridge | 171:3a7713b1edbc | 709 | /** Array initializer of CMP peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 710 | #define CMP_BASE_PTRS { CMP0 } |
AnnaBridge | 171:3a7713b1edbc | 711 | /** Interrupt vectors for the CMP peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 712 | #define CMP_IRQS { CMP0_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 713 | |
AnnaBridge | 171:3a7713b1edbc | 714 | /*! |
AnnaBridge | 171:3a7713b1edbc | 715 | * @} |
AnnaBridge | 171:3a7713b1edbc | 716 | */ /* end of group CMP_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 717 | |
AnnaBridge | 171:3a7713b1edbc | 718 | |
AnnaBridge | 171:3a7713b1edbc | 719 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 720 | -- DAC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 721 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 722 | |
AnnaBridge | 171:3a7713b1edbc | 723 | /*! |
AnnaBridge | 171:3a7713b1edbc | 724 | * @addtogroup DAC_Peripheral_Access_Layer DAC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 725 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 726 | */ |
AnnaBridge | 171:3a7713b1edbc | 727 | |
AnnaBridge | 171:3a7713b1edbc | 728 | /** DAC - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 729 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 730 | struct { /* offset: 0x0, array step: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 731 | __IO uint8_t DATL; /**< DAC Data Low Register, array offset: 0x0, array step: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 732 | __IO uint8_t DATH; /**< DAC Data High Register, array offset: 0x1, array step: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 733 | } DAT[2]; |
AnnaBridge | 171:3a7713b1edbc | 734 | uint8_t RESERVED_0[28]; |
AnnaBridge | 171:3a7713b1edbc | 735 | __IO uint8_t SR; /**< DAC Status Register, offset: 0x20 */ |
AnnaBridge | 171:3a7713b1edbc | 736 | __IO uint8_t C0; /**< DAC Control Register, offset: 0x21 */ |
AnnaBridge | 171:3a7713b1edbc | 737 | __IO uint8_t C1; /**< DAC Control Register 1, offset: 0x22 */ |
AnnaBridge | 171:3a7713b1edbc | 738 | __IO uint8_t C2; /**< DAC Control Register 2, offset: 0x23 */ |
AnnaBridge | 171:3a7713b1edbc | 739 | } DAC_Type; |
AnnaBridge | 171:3a7713b1edbc | 740 | |
AnnaBridge | 171:3a7713b1edbc | 741 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 742 | -- DAC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 743 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 744 | |
AnnaBridge | 171:3a7713b1edbc | 745 | /*! |
AnnaBridge | 171:3a7713b1edbc | 746 | * @addtogroup DAC_Register_Masks DAC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 747 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 748 | */ |
AnnaBridge | 171:3a7713b1edbc | 749 | |
AnnaBridge | 171:3a7713b1edbc | 750 | /*! @name DATL - DAC Data Low Register */ |
AnnaBridge | 171:3a7713b1edbc | 751 | #define DAC_DATL_DATA0_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 752 | #define DAC_DATL_DATA0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 753 | #define DAC_DATL_DATA0(x) (((uint8_t)(((uint8_t)(x)) << DAC_DATL_DATA0_SHIFT)) & DAC_DATL_DATA0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 754 | |
AnnaBridge | 171:3a7713b1edbc | 755 | /* The count of DAC_DATL */ |
AnnaBridge | 171:3a7713b1edbc | 756 | #define DAC_DATL_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 757 | |
AnnaBridge | 171:3a7713b1edbc | 758 | /*! @name DATH - DAC Data High Register */ |
AnnaBridge | 171:3a7713b1edbc | 759 | #define DAC_DATH_DATA1_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 760 | #define DAC_DATH_DATA1_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 761 | #define DAC_DATH_DATA1(x) (((uint8_t)(((uint8_t)(x)) << DAC_DATH_DATA1_SHIFT)) & DAC_DATH_DATA1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 762 | |
AnnaBridge | 171:3a7713b1edbc | 763 | /* The count of DAC_DATH */ |
AnnaBridge | 171:3a7713b1edbc | 764 | #define DAC_DATH_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 765 | |
AnnaBridge | 171:3a7713b1edbc | 766 | /*! @name SR - DAC Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 767 | #define DAC_SR_DACBFRPBF_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 768 | #define DAC_SR_DACBFRPBF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 769 | #define DAC_SR_DACBFRPBF(x) (((uint8_t)(((uint8_t)(x)) << DAC_SR_DACBFRPBF_SHIFT)) & DAC_SR_DACBFRPBF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 770 | #define DAC_SR_DACBFRPTF_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 771 | #define DAC_SR_DACBFRPTF_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 772 | #define DAC_SR_DACBFRPTF(x) (((uint8_t)(((uint8_t)(x)) << DAC_SR_DACBFRPTF_SHIFT)) & DAC_SR_DACBFRPTF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 773 | |
AnnaBridge | 171:3a7713b1edbc | 774 | /*! @name C0 - DAC Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 775 | #define DAC_C0_DACBBIEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 776 | #define DAC_C0_DACBBIEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 777 | #define DAC_C0_DACBBIEN(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACBBIEN_SHIFT)) & DAC_C0_DACBBIEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 778 | #define DAC_C0_DACBTIEN_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 779 | #define DAC_C0_DACBTIEN_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 780 | #define DAC_C0_DACBTIEN(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACBTIEN_SHIFT)) & DAC_C0_DACBTIEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 781 | #define DAC_C0_LPEN_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 782 | #define DAC_C0_LPEN_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 783 | #define DAC_C0_LPEN(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_LPEN_SHIFT)) & DAC_C0_LPEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 784 | #define DAC_C0_DACSWTRG_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 785 | #define DAC_C0_DACSWTRG_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 786 | #define DAC_C0_DACSWTRG(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACSWTRG_SHIFT)) & DAC_C0_DACSWTRG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 787 | #define DAC_C0_DACTRGSEL_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 788 | #define DAC_C0_DACTRGSEL_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 789 | #define DAC_C0_DACTRGSEL(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACTRGSEL_SHIFT)) & DAC_C0_DACTRGSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 790 | #define DAC_C0_DACRFS_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 791 | #define DAC_C0_DACRFS_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 792 | #define DAC_C0_DACRFS(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACRFS_SHIFT)) & DAC_C0_DACRFS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 793 | #define DAC_C0_DACEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 794 | #define DAC_C0_DACEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 795 | #define DAC_C0_DACEN(x) (((uint8_t)(((uint8_t)(x)) << DAC_C0_DACEN_SHIFT)) & DAC_C0_DACEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 796 | |
AnnaBridge | 171:3a7713b1edbc | 797 | /*! @name C1 - DAC Control Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 798 | #define DAC_C1_DACBFEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 799 | #define DAC_C1_DACBFEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 800 | #define DAC_C1_DACBFEN(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DACBFEN_SHIFT)) & DAC_C1_DACBFEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 801 | #define DAC_C1_DACBFMD_MASK (0x6U) |
AnnaBridge | 171:3a7713b1edbc | 802 | #define DAC_C1_DACBFMD_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 803 | #define DAC_C1_DACBFMD(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DACBFMD_SHIFT)) & DAC_C1_DACBFMD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 804 | #define DAC_C1_DMAEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 805 | #define DAC_C1_DMAEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 806 | #define DAC_C1_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << DAC_C1_DMAEN_SHIFT)) & DAC_C1_DMAEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 807 | |
AnnaBridge | 171:3a7713b1edbc | 808 | /*! @name C2 - DAC Control Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 809 | #define DAC_C2_DACBFUP_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 810 | #define DAC_C2_DACBFUP_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 811 | #define DAC_C2_DACBFUP(x) (((uint8_t)(((uint8_t)(x)) << DAC_C2_DACBFUP_SHIFT)) & DAC_C2_DACBFUP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 812 | #define DAC_C2_DACBFRP_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 813 | #define DAC_C2_DACBFRP_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 814 | #define DAC_C2_DACBFRP(x) (((uint8_t)(((uint8_t)(x)) << DAC_C2_DACBFRP_SHIFT)) & DAC_C2_DACBFRP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 815 | |
AnnaBridge | 171:3a7713b1edbc | 816 | |
AnnaBridge | 171:3a7713b1edbc | 817 | /*! |
AnnaBridge | 171:3a7713b1edbc | 818 | * @} |
AnnaBridge | 171:3a7713b1edbc | 819 | */ /* end of group DAC_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 820 | |
AnnaBridge | 171:3a7713b1edbc | 821 | |
AnnaBridge | 171:3a7713b1edbc | 822 | /* DAC - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 823 | /** Peripheral DAC0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 824 | #define DAC0_BASE (0x4003F000u) |
AnnaBridge | 171:3a7713b1edbc | 825 | /** Peripheral DAC0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 826 | #define DAC0 ((DAC_Type *)DAC0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 827 | /** Array initializer of DAC peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 828 | #define DAC_BASE_ADDRS { DAC0_BASE } |
AnnaBridge | 171:3a7713b1edbc | 829 | /** Array initializer of DAC peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 830 | #define DAC_BASE_PTRS { DAC0 } |
AnnaBridge | 171:3a7713b1edbc | 831 | /** Interrupt vectors for the DAC peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 832 | #define DAC_IRQS { DAC0_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 833 | |
AnnaBridge | 171:3a7713b1edbc | 834 | /*! |
AnnaBridge | 171:3a7713b1edbc | 835 | * @} |
AnnaBridge | 171:3a7713b1edbc | 836 | */ /* end of group DAC_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 837 | |
AnnaBridge | 171:3a7713b1edbc | 838 | |
AnnaBridge | 171:3a7713b1edbc | 839 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 840 | -- DMA Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 841 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 842 | |
AnnaBridge | 171:3a7713b1edbc | 843 | /*! |
AnnaBridge | 171:3a7713b1edbc | 844 | * @addtogroup DMA_Peripheral_Access_Layer DMA Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 845 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 846 | */ |
AnnaBridge | 171:3a7713b1edbc | 847 | |
AnnaBridge | 171:3a7713b1edbc | 848 | /** DMA - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 849 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 850 | uint8_t RESERVED_0[256]; |
AnnaBridge | 171:3a7713b1edbc | 851 | struct { /* offset: 0x100, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 852 | __IO uint32_t SAR; /**< Source Address Register, array offset: 0x100, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 853 | __IO uint32_t DAR; /**< Destination Address Register, array offset: 0x104, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 854 | union { /* offset: 0x108, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 855 | __IO uint32_t DSR_BCR; /**< DMA Status Register / Byte Count Register, array offset: 0x108, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 856 | struct { /* offset: 0x108, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 857 | uint8_t RESERVED_0[3]; |
AnnaBridge | 171:3a7713b1edbc | 858 | __IO uint8_t DSR; /**< DMA_DSR0 register...DMA_DSR3 register., array offset: 0x10B, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 859 | } DMA_DSR_ACCESS8BIT; |
AnnaBridge | 171:3a7713b1edbc | 860 | }; |
AnnaBridge | 171:3a7713b1edbc | 861 | __IO uint32_t DCR; /**< DMA Control Register, array offset: 0x10C, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 862 | } DMA[4]; |
AnnaBridge | 171:3a7713b1edbc | 863 | } DMA_Type; |
AnnaBridge | 171:3a7713b1edbc | 864 | |
AnnaBridge | 171:3a7713b1edbc | 865 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 866 | -- DMA Register Masks |
AnnaBridge | 171:3a7713b1edbc | 867 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 868 | |
AnnaBridge | 171:3a7713b1edbc | 869 | /*! |
AnnaBridge | 171:3a7713b1edbc | 870 | * @addtogroup DMA_Register_Masks DMA Register Masks |
AnnaBridge | 171:3a7713b1edbc | 871 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 872 | */ |
AnnaBridge | 171:3a7713b1edbc | 873 | |
AnnaBridge | 171:3a7713b1edbc | 874 | /*! @name SAR - Source Address Register */ |
AnnaBridge | 171:3a7713b1edbc | 875 | #define DMA_SAR_SAR_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 876 | #define DMA_SAR_SAR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 877 | #define DMA_SAR_SAR(x) (((uint32_t)(((uint32_t)(x)) << DMA_SAR_SAR_SHIFT)) & DMA_SAR_SAR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 878 | |
AnnaBridge | 171:3a7713b1edbc | 879 | /* The count of DMA_SAR */ |
AnnaBridge | 171:3a7713b1edbc | 880 | #define DMA_SAR_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 881 | |
AnnaBridge | 171:3a7713b1edbc | 882 | /*! @name DAR - Destination Address Register */ |
AnnaBridge | 171:3a7713b1edbc | 883 | #define DMA_DAR_DAR_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 884 | #define DMA_DAR_DAR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 885 | #define DMA_DAR_DAR(x) (((uint32_t)(((uint32_t)(x)) << DMA_DAR_DAR_SHIFT)) & DMA_DAR_DAR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 886 | |
AnnaBridge | 171:3a7713b1edbc | 887 | /* The count of DMA_DAR */ |
AnnaBridge | 171:3a7713b1edbc | 888 | #define DMA_DAR_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 889 | |
AnnaBridge | 171:3a7713b1edbc | 890 | /*! @name DSR_BCR - DMA Status Register / Byte Count Register */ |
AnnaBridge | 171:3a7713b1edbc | 891 | #define DMA_DSR_BCR_BCR_MASK (0xFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 892 | #define DMA_DSR_BCR_BCR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 893 | #define DMA_DSR_BCR_BCR(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_BCR_SHIFT)) & DMA_DSR_BCR_BCR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 894 | #define DMA_DSR_BCR_DONE_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 895 | #define DMA_DSR_BCR_DONE_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 896 | #define DMA_DSR_BCR_DONE(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_DONE_SHIFT)) & DMA_DSR_BCR_DONE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 897 | #define DMA_DSR_BCR_BSY_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 898 | #define DMA_DSR_BCR_BSY_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 899 | #define DMA_DSR_BCR_BSY(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_BSY_SHIFT)) & DMA_DSR_BCR_BSY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 900 | #define DMA_DSR_BCR_REQ_MASK (0x4000000U) |
AnnaBridge | 171:3a7713b1edbc | 901 | #define DMA_DSR_BCR_REQ_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 902 | #define DMA_DSR_BCR_REQ(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_REQ_SHIFT)) & DMA_DSR_BCR_REQ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 903 | #define DMA_DSR_BCR_BED_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 904 | #define DMA_DSR_BCR_BED_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 905 | #define DMA_DSR_BCR_BED(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_BED_SHIFT)) & DMA_DSR_BCR_BED_MASK) |
AnnaBridge | 171:3a7713b1edbc | 906 | #define DMA_DSR_BCR_BES_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 907 | #define DMA_DSR_BCR_BES_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 908 | #define DMA_DSR_BCR_BES(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_BES_SHIFT)) & DMA_DSR_BCR_BES_MASK) |
AnnaBridge | 171:3a7713b1edbc | 909 | #define DMA_DSR_BCR_CE_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 910 | #define DMA_DSR_BCR_CE_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 911 | #define DMA_DSR_BCR_CE(x) (((uint32_t)(((uint32_t)(x)) << DMA_DSR_BCR_CE_SHIFT)) & DMA_DSR_BCR_CE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 912 | |
AnnaBridge | 171:3a7713b1edbc | 913 | /* The count of DMA_DSR_BCR */ |
AnnaBridge | 171:3a7713b1edbc | 914 | #define DMA_DSR_BCR_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 915 | |
AnnaBridge | 171:3a7713b1edbc | 916 | /* The count of DMA_DSR */ |
AnnaBridge | 171:3a7713b1edbc | 917 | #define DMA_DSR_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 918 | |
AnnaBridge | 171:3a7713b1edbc | 919 | /*! @name DCR - DMA Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 920 | #define DMA_DCR_LCH2_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 921 | #define DMA_DCR_LCH2_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 922 | #define DMA_DCR_LCH2(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_LCH2_SHIFT)) & DMA_DCR_LCH2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 923 | #define DMA_DCR_LCH1_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 924 | #define DMA_DCR_LCH1_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 925 | #define DMA_DCR_LCH1(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_LCH1_SHIFT)) & DMA_DCR_LCH1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 926 | #define DMA_DCR_LINKCC_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 927 | #define DMA_DCR_LINKCC_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 928 | #define DMA_DCR_LINKCC(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_LINKCC_SHIFT)) & DMA_DCR_LINKCC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 929 | #define DMA_DCR_D_REQ_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 930 | #define DMA_DCR_D_REQ_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 931 | #define DMA_DCR_D_REQ(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_D_REQ_SHIFT)) & DMA_DCR_D_REQ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 932 | #define DMA_DCR_DMOD_MASK (0xF00U) |
AnnaBridge | 171:3a7713b1edbc | 933 | #define DMA_DCR_DMOD_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 934 | #define DMA_DCR_DMOD(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_DMOD_SHIFT)) & DMA_DCR_DMOD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 935 | #define DMA_DCR_SMOD_MASK (0xF000U) |
AnnaBridge | 171:3a7713b1edbc | 936 | #define DMA_DCR_SMOD_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 937 | #define DMA_DCR_SMOD(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_SMOD_SHIFT)) & DMA_DCR_SMOD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 938 | #define DMA_DCR_START_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 939 | #define DMA_DCR_START_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 940 | #define DMA_DCR_START(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_START_SHIFT)) & DMA_DCR_START_MASK) |
AnnaBridge | 171:3a7713b1edbc | 941 | #define DMA_DCR_DSIZE_MASK (0x60000U) |
AnnaBridge | 171:3a7713b1edbc | 942 | #define DMA_DCR_DSIZE_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 943 | #define DMA_DCR_DSIZE(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_DSIZE_SHIFT)) & DMA_DCR_DSIZE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 944 | #define DMA_DCR_DINC_MASK (0x80000U) |
AnnaBridge | 171:3a7713b1edbc | 945 | #define DMA_DCR_DINC_SHIFT (19U) |
AnnaBridge | 171:3a7713b1edbc | 946 | #define DMA_DCR_DINC(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_DINC_SHIFT)) & DMA_DCR_DINC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 947 | #define DMA_DCR_SSIZE_MASK (0x300000U) |
AnnaBridge | 171:3a7713b1edbc | 948 | #define DMA_DCR_SSIZE_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 949 | #define DMA_DCR_SSIZE(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_SSIZE_SHIFT)) & DMA_DCR_SSIZE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 950 | #define DMA_DCR_SINC_MASK (0x400000U) |
AnnaBridge | 171:3a7713b1edbc | 951 | #define DMA_DCR_SINC_SHIFT (22U) |
AnnaBridge | 171:3a7713b1edbc | 952 | #define DMA_DCR_SINC(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_SINC_SHIFT)) & DMA_DCR_SINC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 953 | #define DMA_DCR_EADREQ_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 954 | #define DMA_DCR_EADREQ_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 955 | #define DMA_DCR_EADREQ(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_EADREQ_SHIFT)) & DMA_DCR_EADREQ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 956 | #define DMA_DCR_AA_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 957 | #define DMA_DCR_AA_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 958 | #define DMA_DCR_AA(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_AA_SHIFT)) & DMA_DCR_AA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 959 | #define DMA_DCR_CS_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 960 | #define DMA_DCR_CS_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 961 | #define DMA_DCR_CS(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_CS_SHIFT)) & DMA_DCR_CS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 962 | #define DMA_DCR_ERQ_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 963 | #define DMA_DCR_ERQ_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 964 | #define DMA_DCR_ERQ(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_ERQ_SHIFT)) & DMA_DCR_ERQ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 965 | #define DMA_DCR_EINT_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 966 | #define DMA_DCR_EINT_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 967 | #define DMA_DCR_EINT(x) (((uint32_t)(((uint32_t)(x)) << DMA_DCR_EINT_SHIFT)) & DMA_DCR_EINT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 968 | |
AnnaBridge | 171:3a7713b1edbc | 969 | /* The count of DMA_DCR */ |
AnnaBridge | 171:3a7713b1edbc | 970 | #define DMA_DCR_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 971 | |
AnnaBridge | 171:3a7713b1edbc | 972 | |
AnnaBridge | 171:3a7713b1edbc | 973 | /*! |
AnnaBridge | 171:3a7713b1edbc | 974 | * @} |
AnnaBridge | 171:3a7713b1edbc | 975 | */ /* end of group DMA_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 976 | |
AnnaBridge | 171:3a7713b1edbc | 977 | |
AnnaBridge | 171:3a7713b1edbc | 978 | /* DMA - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 979 | /** Peripheral DMA base address */ |
AnnaBridge | 171:3a7713b1edbc | 980 | #define DMA_BASE (0x40008000u) |
AnnaBridge | 171:3a7713b1edbc | 981 | /** Peripheral DMA base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 982 | #define DMA0 ((DMA_Type *)DMA_BASE) |
AnnaBridge | 171:3a7713b1edbc | 983 | /** Array initializer of DMA peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 984 | #define DMA_BASE_ADDRS { DMA_BASE } |
AnnaBridge | 171:3a7713b1edbc | 985 | /** Array initializer of DMA peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 986 | #define DMA_BASE_PTRS { DMA0 } |
AnnaBridge | 171:3a7713b1edbc | 987 | /** Interrupt vectors for the DMA peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 988 | #define DMA_CHN_IRQS { DMA0_IRQn, DMA1_IRQn, DMA2_IRQn, DMA3_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 989 | |
AnnaBridge | 171:3a7713b1edbc | 990 | /*! |
AnnaBridge | 171:3a7713b1edbc | 991 | * @} |
AnnaBridge | 171:3a7713b1edbc | 992 | */ /* end of group DMA_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 993 | |
AnnaBridge | 171:3a7713b1edbc | 994 | |
AnnaBridge | 171:3a7713b1edbc | 995 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 996 | -- DMAMUX Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 997 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 998 | |
AnnaBridge | 171:3a7713b1edbc | 999 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1000 | * @addtogroup DMAMUX_Peripheral_Access_Layer DMAMUX Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1001 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1002 | */ |
AnnaBridge | 171:3a7713b1edbc | 1003 | |
AnnaBridge | 171:3a7713b1edbc | 1004 | /** DMAMUX - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 1005 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 1006 | __IO uint8_t CHCFG[4]; /**< Channel Configuration register, array offset: 0x0, array step: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 1007 | } DMAMUX_Type; |
AnnaBridge | 171:3a7713b1edbc | 1008 | |
AnnaBridge | 171:3a7713b1edbc | 1009 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1010 | -- DMAMUX Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1011 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1012 | |
AnnaBridge | 171:3a7713b1edbc | 1013 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1014 | * @addtogroup DMAMUX_Register_Masks DMAMUX Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1015 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1016 | */ |
AnnaBridge | 171:3a7713b1edbc | 1017 | |
AnnaBridge | 171:3a7713b1edbc | 1018 | /*! @name CHCFG - Channel Configuration register */ |
AnnaBridge | 171:3a7713b1edbc | 1019 | #define DMAMUX_CHCFG_SOURCE_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 1020 | #define DMAMUX_CHCFG_SOURCE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1021 | #define DMAMUX_CHCFG_SOURCE(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFG_SOURCE_SHIFT)) & DMAMUX_CHCFG_SOURCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1022 | #define DMAMUX_CHCFG_TRIG_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 1023 | #define DMAMUX_CHCFG_TRIG_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1024 | #define DMAMUX_CHCFG_TRIG(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFG_TRIG_SHIFT)) & DMAMUX_CHCFG_TRIG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1025 | #define DMAMUX_CHCFG_ENBL_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1026 | #define DMAMUX_CHCFG_ENBL_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1027 | #define DMAMUX_CHCFG_ENBL(x) (((uint8_t)(((uint8_t)(x)) << DMAMUX_CHCFG_ENBL_SHIFT)) & DMAMUX_CHCFG_ENBL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1028 | |
AnnaBridge | 171:3a7713b1edbc | 1029 | /* The count of DMAMUX_CHCFG */ |
AnnaBridge | 171:3a7713b1edbc | 1030 | #define DMAMUX_CHCFG_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1031 | |
AnnaBridge | 171:3a7713b1edbc | 1032 | |
AnnaBridge | 171:3a7713b1edbc | 1033 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1034 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1035 | */ /* end of group DMAMUX_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 1036 | |
AnnaBridge | 171:3a7713b1edbc | 1037 | |
AnnaBridge | 171:3a7713b1edbc | 1038 | /* DMAMUX - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1039 | /** Peripheral DMAMUX0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 1040 | #define DMAMUX0_BASE (0x40021000u) |
AnnaBridge | 171:3a7713b1edbc | 1041 | /** Peripheral DMAMUX0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1042 | #define DMAMUX0 ((DMAMUX_Type *)DMAMUX0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1043 | /** Array initializer of DMAMUX peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1044 | #define DMAMUX_BASE_ADDRS { DMAMUX0_BASE } |
AnnaBridge | 171:3a7713b1edbc | 1045 | /** Array initializer of DMAMUX peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 1046 | #define DMAMUX_BASE_PTRS { DMAMUX0 } |
AnnaBridge | 171:3a7713b1edbc | 1047 | |
AnnaBridge | 171:3a7713b1edbc | 1048 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1049 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1050 | */ /* end of group DMAMUX_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 1051 | |
AnnaBridge | 171:3a7713b1edbc | 1052 | |
AnnaBridge | 171:3a7713b1edbc | 1053 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1054 | -- FLEXIO Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1055 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1056 | |
AnnaBridge | 171:3a7713b1edbc | 1057 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1058 | * @addtogroup FLEXIO_Peripheral_Access_Layer FLEXIO Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1059 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1060 | */ |
AnnaBridge | 171:3a7713b1edbc | 1061 | |
AnnaBridge | 171:3a7713b1edbc | 1062 | /** FLEXIO - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 1063 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 1064 | __I uint32_t VERID; /**< Version ID Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 1065 | __I uint32_t PARAM; /**< Parameter Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1066 | __IO uint32_t CTRL; /**< FlexIO Control Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 1067 | uint8_t RESERVED_0[4]; |
AnnaBridge | 171:3a7713b1edbc | 1068 | __IO uint32_t SHIFTSTAT; /**< Shifter Status Register, offset: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 1069 | __IO uint32_t SHIFTERR; /**< Shifter Error Register, offset: 0x14 */ |
AnnaBridge | 171:3a7713b1edbc | 1070 | __IO uint32_t TIMSTAT; /**< Timer Status Register, offset: 0x18 */ |
AnnaBridge | 171:3a7713b1edbc | 1071 | uint8_t RESERVED_1[4]; |
AnnaBridge | 171:3a7713b1edbc | 1072 | __IO uint32_t SHIFTSIEN; /**< Shifter Status Interrupt Enable, offset: 0x20 */ |
AnnaBridge | 171:3a7713b1edbc | 1073 | __IO uint32_t SHIFTEIEN; /**< Shifter Error Interrupt Enable, offset: 0x24 */ |
AnnaBridge | 171:3a7713b1edbc | 1074 | __IO uint32_t TIMIEN; /**< Timer Interrupt Enable Register, offset: 0x28 */ |
AnnaBridge | 171:3a7713b1edbc | 1075 | uint8_t RESERVED_2[4]; |
AnnaBridge | 171:3a7713b1edbc | 1076 | __IO uint32_t SHIFTSDEN; /**< Shifter Status DMA Enable, offset: 0x30 */ |
AnnaBridge | 171:3a7713b1edbc | 1077 | uint8_t RESERVED_3[76]; |
AnnaBridge | 171:3a7713b1edbc | 1078 | __IO uint32_t SHIFTCTL[4]; /**< Shifter Control N Register, array offset: 0x80, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1079 | uint8_t RESERVED_4[112]; |
AnnaBridge | 171:3a7713b1edbc | 1080 | __IO uint32_t SHIFTCFG[4]; /**< Shifter Configuration N Register, array offset: 0x100, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1081 | uint8_t RESERVED_5[240]; |
AnnaBridge | 171:3a7713b1edbc | 1082 | __IO uint32_t SHIFTBUF[4]; /**< Shifter Buffer N Register, array offset: 0x200, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1083 | uint8_t RESERVED_6[112]; |
AnnaBridge | 171:3a7713b1edbc | 1084 | __IO uint32_t SHIFTBUFBIS[4]; /**< Shifter Buffer N Bit Swapped Register, array offset: 0x280, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1085 | uint8_t RESERVED_7[112]; |
AnnaBridge | 171:3a7713b1edbc | 1086 | __IO uint32_t SHIFTBUFBYS[4]; /**< Shifter Buffer N Byte Swapped Register, array offset: 0x300, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1087 | uint8_t RESERVED_8[112]; |
AnnaBridge | 171:3a7713b1edbc | 1088 | __IO uint32_t SHIFTBUFBBS[4]; /**< Shifter Buffer N Bit Byte Swapped Register, array offset: 0x380, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1089 | uint8_t RESERVED_9[112]; |
AnnaBridge | 171:3a7713b1edbc | 1090 | __IO uint32_t TIMCTL[4]; /**< Timer Control N Register, array offset: 0x400, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1091 | uint8_t RESERVED_10[112]; |
AnnaBridge | 171:3a7713b1edbc | 1092 | __IO uint32_t TIMCFG[4]; /**< Timer Configuration N Register, array offset: 0x480, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1093 | uint8_t RESERVED_11[112]; |
AnnaBridge | 171:3a7713b1edbc | 1094 | __IO uint32_t TIMCMP[4]; /**< Timer Compare N Register, array offset: 0x500, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1095 | } FLEXIO_Type; |
AnnaBridge | 171:3a7713b1edbc | 1096 | |
AnnaBridge | 171:3a7713b1edbc | 1097 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1098 | -- FLEXIO Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1099 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1100 | |
AnnaBridge | 171:3a7713b1edbc | 1101 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1102 | * @addtogroup FLEXIO_Register_Masks FLEXIO Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1103 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1104 | */ |
AnnaBridge | 171:3a7713b1edbc | 1105 | |
AnnaBridge | 171:3a7713b1edbc | 1106 | /*! @name VERID - Version ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 1107 | #define FLEXIO_VERID_FEATURE_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1108 | #define FLEXIO_VERID_FEATURE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1109 | #define FLEXIO_VERID_FEATURE(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_VERID_FEATURE_SHIFT)) & FLEXIO_VERID_FEATURE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1110 | #define FLEXIO_VERID_MINOR_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 1111 | #define FLEXIO_VERID_MINOR_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 1112 | #define FLEXIO_VERID_MINOR(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_VERID_MINOR_SHIFT)) & FLEXIO_VERID_MINOR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1113 | #define FLEXIO_VERID_MAJOR_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 1114 | #define FLEXIO_VERID_MAJOR_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 1115 | #define FLEXIO_VERID_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_VERID_MAJOR_SHIFT)) & FLEXIO_VERID_MAJOR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1116 | |
AnnaBridge | 171:3a7713b1edbc | 1117 | /*! @name PARAM - Parameter Register */ |
AnnaBridge | 171:3a7713b1edbc | 1118 | #define FLEXIO_PARAM_SHIFTER_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1119 | #define FLEXIO_PARAM_SHIFTER_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1120 | #define FLEXIO_PARAM_SHIFTER(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_PARAM_SHIFTER_SHIFT)) & FLEXIO_PARAM_SHIFTER_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1121 | #define FLEXIO_PARAM_TIMER_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 1122 | #define FLEXIO_PARAM_TIMER_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 1123 | #define FLEXIO_PARAM_TIMER(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_PARAM_TIMER_SHIFT)) & FLEXIO_PARAM_TIMER_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1124 | #define FLEXIO_PARAM_PIN_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 1125 | #define FLEXIO_PARAM_PIN_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 1126 | #define FLEXIO_PARAM_PIN(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_PARAM_PIN_SHIFT)) & FLEXIO_PARAM_PIN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1127 | #define FLEXIO_PARAM_TRIGGER_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 1128 | #define FLEXIO_PARAM_TRIGGER_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 1129 | #define FLEXIO_PARAM_TRIGGER(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_PARAM_TRIGGER_SHIFT)) & FLEXIO_PARAM_TRIGGER_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1130 | |
AnnaBridge | 171:3a7713b1edbc | 1131 | /*! @name CTRL - FlexIO Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 1132 | #define FLEXIO_CTRL_FLEXEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 1133 | #define FLEXIO_CTRL_FLEXEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1134 | #define FLEXIO_CTRL_FLEXEN(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_CTRL_FLEXEN_SHIFT)) & FLEXIO_CTRL_FLEXEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1135 | #define FLEXIO_CTRL_SWRST_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 1136 | #define FLEXIO_CTRL_SWRST_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1137 | #define FLEXIO_CTRL_SWRST(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_CTRL_SWRST_SHIFT)) & FLEXIO_CTRL_SWRST_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1138 | #define FLEXIO_CTRL_FASTACC_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 1139 | #define FLEXIO_CTRL_FASTACC_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 1140 | #define FLEXIO_CTRL_FASTACC(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_CTRL_FASTACC_SHIFT)) & FLEXIO_CTRL_FASTACC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1141 | #define FLEXIO_CTRL_DBGE_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 1142 | #define FLEXIO_CTRL_DBGE_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 1143 | #define FLEXIO_CTRL_DBGE(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_CTRL_DBGE_SHIFT)) & FLEXIO_CTRL_DBGE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1144 | #define FLEXIO_CTRL_DOZEN_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 1145 | #define FLEXIO_CTRL_DOZEN_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 1146 | #define FLEXIO_CTRL_DOZEN(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_CTRL_DOZEN_SHIFT)) & FLEXIO_CTRL_DOZEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1147 | |
AnnaBridge | 171:3a7713b1edbc | 1148 | /*! @name SHIFTSTAT - Shifter Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 1149 | #define FLEXIO_SHIFTSTAT_SSF_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 1150 | #define FLEXIO_SHIFTSTAT_SSF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1151 | #define FLEXIO_SHIFTSTAT_SSF(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTSTAT_SSF_SHIFT)) & FLEXIO_SHIFTSTAT_SSF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1152 | |
AnnaBridge | 171:3a7713b1edbc | 1153 | /*! @name SHIFTERR - Shifter Error Register */ |
AnnaBridge | 171:3a7713b1edbc | 1154 | #define FLEXIO_SHIFTERR_SEF_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 1155 | #define FLEXIO_SHIFTERR_SEF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1156 | #define FLEXIO_SHIFTERR_SEF(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTERR_SEF_SHIFT)) & FLEXIO_SHIFTERR_SEF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1157 | |
AnnaBridge | 171:3a7713b1edbc | 1158 | /*! @name TIMSTAT - Timer Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 1159 | #define FLEXIO_TIMSTAT_TSF_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 1160 | #define FLEXIO_TIMSTAT_TSF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1161 | #define FLEXIO_TIMSTAT_TSF(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMSTAT_TSF_SHIFT)) & FLEXIO_TIMSTAT_TSF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1162 | |
AnnaBridge | 171:3a7713b1edbc | 1163 | /*! @name SHIFTSIEN - Shifter Status Interrupt Enable */ |
AnnaBridge | 171:3a7713b1edbc | 1164 | #define FLEXIO_SHIFTSIEN_SSIE_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 1165 | #define FLEXIO_SHIFTSIEN_SSIE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1166 | #define FLEXIO_SHIFTSIEN_SSIE(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTSIEN_SSIE_SHIFT)) & FLEXIO_SHIFTSIEN_SSIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1167 | |
AnnaBridge | 171:3a7713b1edbc | 1168 | /*! @name SHIFTEIEN - Shifter Error Interrupt Enable */ |
AnnaBridge | 171:3a7713b1edbc | 1169 | #define FLEXIO_SHIFTEIEN_SEIE_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 1170 | #define FLEXIO_SHIFTEIEN_SEIE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1171 | #define FLEXIO_SHIFTEIEN_SEIE(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTEIEN_SEIE_SHIFT)) & FLEXIO_SHIFTEIEN_SEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1172 | |
AnnaBridge | 171:3a7713b1edbc | 1173 | /*! @name TIMIEN - Timer Interrupt Enable Register */ |
AnnaBridge | 171:3a7713b1edbc | 1174 | #define FLEXIO_TIMIEN_TEIE_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 1175 | #define FLEXIO_TIMIEN_TEIE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1176 | #define FLEXIO_TIMIEN_TEIE(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMIEN_TEIE_SHIFT)) & FLEXIO_TIMIEN_TEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1177 | |
AnnaBridge | 171:3a7713b1edbc | 1178 | /*! @name SHIFTSDEN - Shifter Status DMA Enable */ |
AnnaBridge | 171:3a7713b1edbc | 1179 | #define FLEXIO_SHIFTSDEN_SSDE_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 1180 | #define FLEXIO_SHIFTSDEN_SSDE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1181 | #define FLEXIO_SHIFTSDEN_SSDE(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTSDEN_SSDE_SHIFT)) & FLEXIO_SHIFTSDEN_SSDE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1182 | |
AnnaBridge | 171:3a7713b1edbc | 1183 | /*! @name SHIFTCTL - Shifter Control N Register */ |
AnnaBridge | 171:3a7713b1edbc | 1184 | #define FLEXIO_SHIFTCTL_SMOD_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 1185 | #define FLEXIO_SHIFTCTL_SMOD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1186 | #define FLEXIO_SHIFTCTL_SMOD(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCTL_SMOD_SHIFT)) & FLEXIO_SHIFTCTL_SMOD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1187 | #define FLEXIO_SHIFTCTL_PINPOL_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1188 | #define FLEXIO_SHIFTCTL_PINPOL_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1189 | #define FLEXIO_SHIFTCTL_PINPOL(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCTL_PINPOL_SHIFT)) & FLEXIO_SHIFTCTL_PINPOL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1190 | #define FLEXIO_SHIFTCTL_PINSEL_MASK (0x700U) |
AnnaBridge | 171:3a7713b1edbc | 1191 | #define FLEXIO_SHIFTCTL_PINSEL_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 1192 | #define FLEXIO_SHIFTCTL_PINSEL(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCTL_PINSEL_SHIFT)) & FLEXIO_SHIFTCTL_PINSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1193 | #define FLEXIO_SHIFTCTL_PINCFG_MASK (0x30000U) |
AnnaBridge | 171:3a7713b1edbc | 1194 | #define FLEXIO_SHIFTCTL_PINCFG_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 1195 | #define FLEXIO_SHIFTCTL_PINCFG(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCTL_PINCFG_SHIFT)) & FLEXIO_SHIFTCTL_PINCFG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1196 | #define FLEXIO_SHIFTCTL_TIMPOL_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 1197 | #define FLEXIO_SHIFTCTL_TIMPOL_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 1198 | #define FLEXIO_SHIFTCTL_TIMPOL(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCTL_TIMPOL_SHIFT)) & FLEXIO_SHIFTCTL_TIMPOL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1199 | #define FLEXIO_SHIFTCTL_TIMSEL_MASK (0x3000000U) |
AnnaBridge | 171:3a7713b1edbc | 1200 | #define FLEXIO_SHIFTCTL_TIMSEL_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 1201 | #define FLEXIO_SHIFTCTL_TIMSEL(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCTL_TIMSEL_SHIFT)) & FLEXIO_SHIFTCTL_TIMSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1202 | |
AnnaBridge | 171:3a7713b1edbc | 1203 | /* The count of FLEXIO_SHIFTCTL */ |
AnnaBridge | 171:3a7713b1edbc | 1204 | #define FLEXIO_SHIFTCTL_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1205 | |
AnnaBridge | 171:3a7713b1edbc | 1206 | /*! @name SHIFTCFG - Shifter Configuration N Register */ |
AnnaBridge | 171:3a7713b1edbc | 1207 | #define FLEXIO_SHIFTCFG_SSTART_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 1208 | #define FLEXIO_SHIFTCFG_SSTART_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1209 | #define FLEXIO_SHIFTCFG_SSTART(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCFG_SSTART_SHIFT)) & FLEXIO_SHIFTCFG_SSTART_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1210 | #define FLEXIO_SHIFTCFG_SSTOP_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 1211 | #define FLEXIO_SHIFTCFG_SSTOP_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1212 | #define FLEXIO_SHIFTCFG_SSTOP(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCFG_SSTOP_SHIFT)) & FLEXIO_SHIFTCFG_SSTOP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1213 | #define FLEXIO_SHIFTCFG_INSRC_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 1214 | #define FLEXIO_SHIFTCFG_INSRC_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 1215 | #define FLEXIO_SHIFTCFG_INSRC(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTCFG_INSRC_SHIFT)) & FLEXIO_SHIFTCFG_INSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1216 | |
AnnaBridge | 171:3a7713b1edbc | 1217 | /* The count of FLEXIO_SHIFTCFG */ |
AnnaBridge | 171:3a7713b1edbc | 1218 | #define FLEXIO_SHIFTCFG_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1219 | |
AnnaBridge | 171:3a7713b1edbc | 1220 | /*! @name SHIFTBUF - Shifter Buffer N Register */ |
AnnaBridge | 171:3a7713b1edbc | 1221 | #define FLEXIO_SHIFTBUF_SHIFTBUF_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1222 | #define FLEXIO_SHIFTBUF_SHIFTBUF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1223 | #define FLEXIO_SHIFTBUF_SHIFTBUF(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTBUF_SHIFTBUF_SHIFT)) & FLEXIO_SHIFTBUF_SHIFTBUF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1224 | |
AnnaBridge | 171:3a7713b1edbc | 1225 | /* The count of FLEXIO_SHIFTBUF */ |
AnnaBridge | 171:3a7713b1edbc | 1226 | #define FLEXIO_SHIFTBUF_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1227 | |
AnnaBridge | 171:3a7713b1edbc | 1228 | /*! @name SHIFTBUFBIS - Shifter Buffer N Bit Swapped Register */ |
AnnaBridge | 171:3a7713b1edbc | 1229 | #define FLEXIO_SHIFTBUFBIS_SHIFTBUFBIS_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1230 | #define FLEXIO_SHIFTBUFBIS_SHIFTBUFBIS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1231 | #define FLEXIO_SHIFTBUFBIS_SHIFTBUFBIS(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTBUFBIS_SHIFTBUFBIS_SHIFT)) & FLEXIO_SHIFTBUFBIS_SHIFTBUFBIS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1232 | |
AnnaBridge | 171:3a7713b1edbc | 1233 | /* The count of FLEXIO_SHIFTBUFBIS */ |
AnnaBridge | 171:3a7713b1edbc | 1234 | #define FLEXIO_SHIFTBUFBIS_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1235 | |
AnnaBridge | 171:3a7713b1edbc | 1236 | /*! @name SHIFTBUFBYS - Shifter Buffer N Byte Swapped Register */ |
AnnaBridge | 171:3a7713b1edbc | 1237 | #define FLEXIO_SHIFTBUFBYS_SHIFTBUFBYS_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1238 | #define FLEXIO_SHIFTBUFBYS_SHIFTBUFBYS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1239 | #define FLEXIO_SHIFTBUFBYS_SHIFTBUFBYS(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTBUFBYS_SHIFTBUFBYS_SHIFT)) & FLEXIO_SHIFTBUFBYS_SHIFTBUFBYS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1240 | |
AnnaBridge | 171:3a7713b1edbc | 1241 | /* The count of FLEXIO_SHIFTBUFBYS */ |
AnnaBridge | 171:3a7713b1edbc | 1242 | #define FLEXIO_SHIFTBUFBYS_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1243 | |
AnnaBridge | 171:3a7713b1edbc | 1244 | /*! @name SHIFTBUFBBS - Shifter Buffer N Bit Byte Swapped Register */ |
AnnaBridge | 171:3a7713b1edbc | 1245 | #define FLEXIO_SHIFTBUFBBS_SHIFTBUFBBS_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1246 | #define FLEXIO_SHIFTBUFBBS_SHIFTBUFBBS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1247 | #define FLEXIO_SHIFTBUFBBS_SHIFTBUFBBS(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_SHIFTBUFBBS_SHIFTBUFBBS_SHIFT)) & FLEXIO_SHIFTBUFBBS_SHIFTBUFBBS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1248 | |
AnnaBridge | 171:3a7713b1edbc | 1249 | /* The count of FLEXIO_SHIFTBUFBBS */ |
AnnaBridge | 171:3a7713b1edbc | 1250 | #define FLEXIO_SHIFTBUFBBS_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1251 | |
AnnaBridge | 171:3a7713b1edbc | 1252 | /*! @name TIMCTL - Timer Control N Register */ |
AnnaBridge | 171:3a7713b1edbc | 1253 | #define FLEXIO_TIMCTL_TIMOD_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 1254 | #define FLEXIO_TIMCTL_TIMOD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1255 | #define FLEXIO_TIMCTL_TIMOD(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCTL_TIMOD_SHIFT)) & FLEXIO_TIMCTL_TIMOD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1256 | #define FLEXIO_TIMCTL_PINPOL_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1257 | #define FLEXIO_TIMCTL_PINPOL_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1258 | #define FLEXIO_TIMCTL_PINPOL(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCTL_PINPOL_SHIFT)) & FLEXIO_TIMCTL_PINPOL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1259 | #define FLEXIO_TIMCTL_PINSEL_MASK (0x700U) |
AnnaBridge | 171:3a7713b1edbc | 1260 | #define FLEXIO_TIMCTL_PINSEL_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 1261 | #define FLEXIO_TIMCTL_PINSEL(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCTL_PINSEL_SHIFT)) & FLEXIO_TIMCTL_PINSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1262 | #define FLEXIO_TIMCTL_PINCFG_MASK (0x30000U) |
AnnaBridge | 171:3a7713b1edbc | 1263 | #define FLEXIO_TIMCTL_PINCFG_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 1264 | #define FLEXIO_TIMCTL_PINCFG(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCTL_PINCFG_SHIFT)) & FLEXIO_TIMCTL_PINCFG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1265 | #define FLEXIO_TIMCTL_TRGSRC_MASK (0x400000U) |
AnnaBridge | 171:3a7713b1edbc | 1266 | #define FLEXIO_TIMCTL_TRGSRC_SHIFT (22U) |
AnnaBridge | 171:3a7713b1edbc | 1267 | #define FLEXIO_TIMCTL_TRGSRC(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCTL_TRGSRC_SHIFT)) & FLEXIO_TIMCTL_TRGSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1268 | #define FLEXIO_TIMCTL_TRGPOL_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 1269 | #define FLEXIO_TIMCTL_TRGPOL_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 1270 | #define FLEXIO_TIMCTL_TRGPOL(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCTL_TRGPOL_SHIFT)) & FLEXIO_TIMCTL_TRGPOL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1271 | #define FLEXIO_TIMCTL_TRGSEL_MASK (0xF000000U) |
AnnaBridge | 171:3a7713b1edbc | 1272 | #define FLEXIO_TIMCTL_TRGSEL_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 1273 | #define FLEXIO_TIMCTL_TRGSEL(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCTL_TRGSEL_SHIFT)) & FLEXIO_TIMCTL_TRGSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1274 | |
AnnaBridge | 171:3a7713b1edbc | 1275 | /* The count of FLEXIO_TIMCTL */ |
AnnaBridge | 171:3a7713b1edbc | 1276 | #define FLEXIO_TIMCTL_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1277 | |
AnnaBridge | 171:3a7713b1edbc | 1278 | /*! @name TIMCFG - Timer Configuration N Register */ |
AnnaBridge | 171:3a7713b1edbc | 1279 | #define FLEXIO_TIMCFG_TSTART_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 1280 | #define FLEXIO_TIMCFG_TSTART_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1281 | #define FLEXIO_TIMCFG_TSTART(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCFG_TSTART_SHIFT)) & FLEXIO_TIMCFG_TSTART_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1282 | #define FLEXIO_TIMCFG_TSTOP_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 1283 | #define FLEXIO_TIMCFG_TSTOP_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1284 | #define FLEXIO_TIMCFG_TSTOP(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCFG_TSTOP_SHIFT)) & FLEXIO_TIMCFG_TSTOP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1285 | #define FLEXIO_TIMCFG_TIMENA_MASK (0x700U) |
AnnaBridge | 171:3a7713b1edbc | 1286 | #define FLEXIO_TIMCFG_TIMENA_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 1287 | #define FLEXIO_TIMCFG_TIMENA(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCFG_TIMENA_SHIFT)) & FLEXIO_TIMCFG_TIMENA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1288 | #define FLEXIO_TIMCFG_TIMDIS_MASK (0x7000U) |
AnnaBridge | 171:3a7713b1edbc | 1289 | #define FLEXIO_TIMCFG_TIMDIS_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 1290 | #define FLEXIO_TIMCFG_TIMDIS(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCFG_TIMDIS_SHIFT)) & FLEXIO_TIMCFG_TIMDIS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1291 | #define FLEXIO_TIMCFG_TIMRST_MASK (0x70000U) |
AnnaBridge | 171:3a7713b1edbc | 1292 | #define FLEXIO_TIMCFG_TIMRST_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 1293 | #define FLEXIO_TIMCFG_TIMRST(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCFG_TIMRST_SHIFT)) & FLEXIO_TIMCFG_TIMRST_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1294 | #define FLEXIO_TIMCFG_TIMDEC_MASK (0x300000U) |
AnnaBridge | 171:3a7713b1edbc | 1295 | #define FLEXIO_TIMCFG_TIMDEC_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 1296 | #define FLEXIO_TIMCFG_TIMDEC(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCFG_TIMDEC_SHIFT)) & FLEXIO_TIMCFG_TIMDEC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1297 | #define FLEXIO_TIMCFG_TIMOUT_MASK (0x3000000U) |
AnnaBridge | 171:3a7713b1edbc | 1298 | #define FLEXIO_TIMCFG_TIMOUT_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 1299 | #define FLEXIO_TIMCFG_TIMOUT(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCFG_TIMOUT_SHIFT)) & FLEXIO_TIMCFG_TIMOUT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1300 | |
AnnaBridge | 171:3a7713b1edbc | 1301 | /* The count of FLEXIO_TIMCFG */ |
AnnaBridge | 171:3a7713b1edbc | 1302 | #define FLEXIO_TIMCFG_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1303 | |
AnnaBridge | 171:3a7713b1edbc | 1304 | /*! @name TIMCMP - Timer Compare N Register */ |
AnnaBridge | 171:3a7713b1edbc | 1305 | #define FLEXIO_TIMCMP_CMP_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1306 | #define FLEXIO_TIMCMP_CMP_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1307 | #define FLEXIO_TIMCMP_CMP(x) (((uint32_t)(((uint32_t)(x)) << FLEXIO_TIMCMP_CMP_SHIFT)) & FLEXIO_TIMCMP_CMP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1308 | |
AnnaBridge | 171:3a7713b1edbc | 1309 | /* The count of FLEXIO_TIMCMP */ |
AnnaBridge | 171:3a7713b1edbc | 1310 | #define FLEXIO_TIMCMP_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1311 | |
AnnaBridge | 171:3a7713b1edbc | 1312 | |
AnnaBridge | 171:3a7713b1edbc | 1313 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1314 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1315 | */ /* end of group FLEXIO_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 1316 | |
AnnaBridge | 171:3a7713b1edbc | 1317 | |
AnnaBridge | 171:3a7713b1edbc | 1318 | /* FLEXIO - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1319 | /** Peripheral FLEXIO base address */ |
AnnaBridge | 171:3a7713b1edbc | 1320 | #define FLEXIO_BASE (0x4005F000u) |
AnnaBridge | 171:3a7713b1edbc | 1321 | /** Peripheral FLEXIO base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1322 | #define FLEXIO ((FLEXIO_Type *)FLEXIO_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1323 | /** Array initializer of FLEXIO peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1324 | #define FLEXIO_BASE_ADDRS { FLEXIO_BASE } |
AnnaBridge | 171:3a7713b1edbc | 1325 | /** Array initializer of FLEXIO peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 1326 | #define FLEXIO_BASE_PTRS { FLEXIO } |
AnnaBridge | 171:3a7713b1edbc | 1327 | /** Interrupt vectors for the FLEXIO peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 1328 | #define FLEXIO_IRQS { UART2_FLEXIO_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 1329 | |
AnnaBridge | 171:3a7713b1edbc | 1330 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1331 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1332 | */ /* end of group FLEXIO_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 1333 | |
AnnaBridge | 171:3a7713b1edbc | 1334 | |
AnnaBridge | 171:3a7713b1edbc | 1335 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1336 | -- FTFA Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1337 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1338 | |
AnnaBridge | 171:3a7713b1edbc | 1339 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1340 | * @addtogroup FTFA_Peripheral_Access_Layer FTFA Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1341 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1342 | */ |
AnnaBridge | 171:3a7713b1edbc | 1343 | |
AnnaBridge | 171:3a7713b1edbc | 1344 | /** FTFA - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 1345 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 1346 | __IO uint8_t FSTAT; /**< Flash Status Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 1347 | __IO uint8_t FCNFG; /**< Flash Configuration Register, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 1348 | __I uint8_t FSEC; /**< Flash Security Register, offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 1349 | __I uint8_t FOPT; /**< Flash Option Register, offset: 0x3 */ |
AnnaBridge | 171:3a7713b1edbc | 1350 | __IO uint8_t FCCOB3; /**< Flash Common Command Object Registers, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1351 | __IO uint8_t FCCOB2; /**< Flash Common Command Object Registers, offset: 0x5 */ |
AnnaBridge | 171:3a7713b1edbc | 1352 | __IO uint8_t FCCOB1; /**< Flash Common Command Object Registers, offset: 0x6 */ |
AnnaBridge | 171:3a7713b1edbc | 1353 | __IO uint8_t FCCOB0; /**< Flash Common Command Object Registers, offset: 0x7 */ |
AnnaBridge | 171:3a7713b1edbc | 1354 | __IO uint8_t FCCOB7; /**< Flash Common Command Object Registers, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 1355 | __IO uint8_t FCCOB6; /**< Flash Common Command Object Registers, offset: 0x9 */ |
AnnaBridge | 171:3a7713b1edbc | 1356 | __IO uint8_t FCCOB5; /**< Flash Common Command Object Registers, offset: 0xA */ |
AnnaBridge | 171:3a7713b1edbc | 1357 | __IO uint8_t FCCOB4; /**< Flash Common Command Object Registers, offset: 0xB */ |
AnnaBridge | 171:3a7713b1edbc | 1358 | __IO uint8_t FCCOBB; /**< Flash Common Command Object Registers, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 1359 | __IO uint8_t FCCOBA; /**< Flash Common Command Object Registers, offset: 0xD */ |
AnnaBridge | 171:3a7713b1edbc | 1360 | __IO uint8_t FCCOB9; /**< Flash Common Command Object Registers, offset: 0xE */ |
AnnaBridge | 171:3a7713b1edbc | 1361 | __IO uint8_t FCCOB8; /**< Flash Common Command Object Registers, offset: 0xF */ |
AnnaBridge | 171:3a7713b1edbc | 1362 | __IO uint8_t FPROT3; /**< Program Flash Protection Registers, offset: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 1363 | __IO uint8_t FPROT2; /**< Program Flash Protection Registers, offset: 0x11 */ |
AnnaBridge | 171:3a7713b1edbc | 1364 | __IO uint8_t FPROT1; /**< Program Flash Protection Registers, offset: 0x12 */ |
AnnaBridge | 171:3a7713b1edbc | 1365 | __IO uint8_t FPROT0; /**< Program Flash Protection Registers, offset: 0x13 */ |
AnnaBridge | 171:3a7713b1edbc | 1366 | } FTFA_Type; |
AnnaBridge | 171:3a7713b1edbc | 1367 | |
AnnaBridge | 171:3a7713b1edbc | 1368 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1369 | -- FTFA Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1370 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1371 | |
AnnaBridge | 171:3a7713b1edbc | 1372 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1373 | * @addtogroup FTFA_Register_Masks FTFA Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1374 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1375 | */ |
AnnaBridge | 171:3a7713b1edbc | 1376 | |
AnnaBridge | 171:3a7713b1edbc | 1377 | /*! @name FSTAT - Flash Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 1378 | #define FTFA_FSTAT_MGSTAT0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 1379 | #define FTFA_FSTAT_MGSTAT0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1380 | #define FTFA_FSTAT_MGSTAT0(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_MGSTAT0_SHIFT)) & FTFA_FSTAT_MGSTAT0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1381 | #define FTFA_FSTAT_FPVIOL_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 1382 | #define FTFA_FSTAT_FPVIOL_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1383 | #define FTFA_FSTAT_FPVIOL(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_FPVIOL_SHIFT)) & FTFA_FSTAT_FPVIOL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1384 | #define FTFA_FSTAT_ACCERR_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 1385 | #define FTFA_FSTAT_ACCERR_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 1386 | #define FTFA_FSTAT_ACCERR(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_ACCERR_SHIFT)) & FTFA_FSTAT_ACCERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1387 | #define FTFA_FSTAT_RDCOLERR_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 1388 | #define FTFA_FSTAT_RDCOLERR_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1389 | #define FTFA_FSTAT_RDCOLERR(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_RDCOLERR_SHIFT)) & FTFA_FSTAT_RDCOLERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1390 | #define FTFA_FSTAT_CCIF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1391 | #define FTFA_FSTAT_CCIF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1392 | #define FTFA_FSTAT_CCIF(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSTAT_CCIF_SHIFT)) & FTFA_FSTAT_CCIF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1393 | |
AnnaBridge | 171:3a7713b1edbc | 1394 | /*! @name FCNFG - Flash Configuration Register */ |
AnnaBridge | 171:3a7713b1edbc | 1395 | #define FTFA_FCNFG_ERSSUSP_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 1396 | #define FTFA_FCNFG_ERSSUSP_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1397 | #define FTFA_FCNFG_ERSSUSP(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCNFG_ERSSUSP_SHIFT)) & FTFA_FCNFG_ERSSUSP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1398 | #define FTFA_FCNFG_ERSAREQ_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 1399 | #define FTFA_FCNFG_ERSAREQ_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 1400 | #define FTFA_FCNFG_ERSAREQ(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCNFG_ERSAREQ_SHIFT)) & FTFA_FCNFG_ERSAREQ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1401 | #define FTFA_FCNFG_RDCOLLIE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 1402 | #define FTFA_FCNFG_RDCOLLIE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1403 | #define FTFA_FCNFG_RDCOLLIE(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCNFG_RDCOLLIE_SHIFT)) & FTFA_FCNFG_RDCOLLIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1404 | #define FTFA_FCNFG_CCIE_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1405 | #define FTFA_FCNFG_CCIE_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1406 | #define FTFA_FCNFG_CCIE(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCNFG_CCIE_SHIFT)) & FTFA_FCNFG_CCIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1407 | |
AnnaBridge | 171:3a7713b1edbc | 1408 | /*! @name FSEC - Flash Security Register */ |
AnnaBridge | 171:3a7713b1edbc | 1409 | #define FTFA_FSEC_SEC_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 1410 | #define FTFA_FSEC_SEC_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1411 | #define FTFA_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSEC_SEC_SHIFT)) & FTFA_FSEC_SEC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1412 | #define FTFA_FSEC_FSLACC_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 1413 | #define FTFA_FSEC_FSLACC_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 1414 | #define FTFA_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSEC_FSLACC_SHIFT)) & FTFA_FSEC_FSLACC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1415 | #define FTFA_FSEC_MEEN_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 1416 | #define FTFA_FSEC_MEEN_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1417 | #define FTFA_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSEC_MEEN_SHIFT)) & FTFA_FSEC_MEEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1418 | #define FTFA_FSEC_KEYEN_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 1419 | #define FTFA_FSEC_KEYEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1420 | #define FTFA_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FSEC_KEYEN_SHIFT)) & FTFA_FSEC_KEYEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1421 | |
AnnaBridge | 171:3a7713b1edbc | 1422 | /*! @name FOPT - Flash Option Register */ |
AnnaBridge | 171:3a7713b1edbc | 1423 | #define FTFA_FOPT_OPT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1424 | #define FTFA_FOPT_OPT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1425 | #define FTFA_FOPT_OPT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FOPT_OPT_SHIFT)) & FTFA_FOPT_OPT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1426 | |
AnnaBridge | 171:3a7713b1edbc | 1427 | /*! @name FCCOB3 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1428 | #define FTFA_FCCOB3_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1429 | #define FTFA_FCCOB3_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1430 | #define FTFA_FCCOB3_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB3_CCOBn_SHIFT)) & FTFA_FCCOB3_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1431 | |
AnnaBridge | 171:3a7713b1edbc | 1432 | /*! @name FCCOB2 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1433 | #define FTFA_FCCOB2_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1434 | #define FTFA_FCCOB2_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1435 | #define FTFA_FCCOB2_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB2_CCOBn_SHIFT)) & FTFA_FCCOB2_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1436 | |
AnnaBridge | 171:3a7713b1edbc | 1437 | /*! @name FCCOB1 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1438 | #define FTFA_FCCOB1_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1439 | #define FTFA_FCCOB1_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1440 | #define FTFA_FCCOB1_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB1_CCOBn_SHIFT)) & FTFA_FCCOB1_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1441 | |
AnnaBridge | 171:3a7713b1edbc | 1442 | /*! @name FCCOB0 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1443 | #define FTFA_FCCOB0_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1444 | #define FTFA_FCCOB0_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1445 | #define FTFA_FCCOB0_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB0_CCOBn_SHIFT)) & FTFA_FCCOB0_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1446 | |
AnnaBridge | 171:3a7713b1edbc | 1447 | /*! @name FCCOB7 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1448 | #define FTFA_FCCOB7_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1449 | #define FTFA_FCCOB7_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1450 | #define FTFA_FCCOB7_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB7_CCOBn_SHIFT)) & FTFA_FCCOB7_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1451 | |
AnnaBridge | 171:3a7713b1edbc | 1452 | /*! @name FCCOB6 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1453 | #define FTFA_FCCOB6_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1454 | #define FTFA_FCCOB6_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1455 | #define FTFA_FCCOB6_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB6_CCOBn_SHIFT)) & FTFA_FCCOB6_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1456 | |
AnnaBridge | 171:3a7713b1edbc | 1457 | /*! @name FCCOB5 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1458 | #define FTFA_FCCOB5_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1459 | #define FTFA_FCCOB5_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1460 | #define FTFA_FCCOB5_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB5_CCOBn_SHIFT)) & FTFA_FCCOB5_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1461 | |
AnnaBridge | 171:3a7713b1edbc | 1462 | /*! @name FCCOB4 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1463 | #define FTFA_FCCOB4_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1464 | #define FTFA_FCCOB4_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1465 | #define FTFA_FCCOB4_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB4_CCOBn_SHIFT)) & FTFA_FCCOB4_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1466 | |
AnnaBridge | 171:3a7713b1edbc | 1467 | /*! @name FCCOBB - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1468 | #define FTFA_FCCOBB_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1469 | #define FTFA_FCCOBB_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1470 | #define FTFA_FCCOBB_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOBB_CCOBn_SHIFT)) & FTFA_FCCOBB_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1471 | |
AnnaBridge | 171:3a7713b1edbc | 1472 | /*! @name FCCOBA - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1473 | #define FTFA_FCCOBA_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1474 | #define FTFA_FCCOBA_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1475 | #define FTFA_FCCOBA_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOBA_CCOBn_SHIFT)) & FTFA_FCCOBA_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1476 | |
AnnaBridge | 171:3a7713b1edbc | 1477 | /*! @name FCCOB9 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1478 | #define FTFA_FCCOB9_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1479 | #define FTFA_FCCOB9_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1480 | #define FTFA_FCCOB9_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB9_CCOBn_SHIFT)) & FTFA_FCCOB9_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1481 | |
AnnaBridge | 171:3a7713b1edbc | 1482 | /*! @name FCCOB8 - Flash Common Command Object Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1483 | #define FTFA_FCCOB8_CCOBn_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1484 | #define FTFA_FCCOB8_CCOBn_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1485 | #define FTFA_FCCOB8_CCOBn(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FCCOB8_CCOBn_SHIFT)) & FTFA_FCCOB8_CCOBn_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1486 | |
AnnaBridge | 171:3a7713b1edbc | 1487 | /*! @name FPROT3 - Program Flash Protection Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1488 | #define FTFA_FPROT3_PROT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1489 | #define FTFA_FPROT3_PROT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1490 | #define FTFA_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FPROT3_PROT_SHIFT)) & FTFA_FPROT3_PROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1491 | |
AnnaBridge | 171:3a7713b1edbc | 1492 | /*! @name FPROT2 - Program Flash Protection Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1493 | #define FTFA_FPROT2_PROT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1494 | #define FTFA_FPROT2_PROT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1495 | #define FTFA_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FPROT2_PROT_SHIFT)) & FTFA_FPROT2_PROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1496 | |
AnnaBridge | 171:3a7713b1edbc | 1497 | /*! @name FPROT1 - Program Flash Protection Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1498 | #define FTFA_FPROT1_PROT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1499 | #define FTFA_FPROT1_PROT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1500 | #define FTFA_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FPROT1_PROT_SHIFT)) & FTFA_FPROT1_PROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1501 | |
AnnaBridge | 171:3a7713b1edbc | 1502 | /*! @name FPROT0 - Program Flash Protection Registers */ |
AnnaBridge | 171:3a7713b1edbc | 1503 | #define FTFA_FPROT0_PROT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1504 | #define FTFA_FPROT0_PROT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1505 | #define FTFA_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x)) << FTFA_FPROT0_PROT_SHIFT)) & FTFA_FPROT0_PROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1506 | |
AnnaBridge | 171:3a7713b1edbc | 1507 | |
AnnaBridge | 171:3a7713b1edbc | 1508 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1509 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1510 | */ /* end of group FTFA_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 1511 | |
AnnaBridge | 171:3a7713b1edbc | 1512 | |
AnnaBridge | 171:3a7713b1edbc | 1513 | /* FTFA - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1514 | /** Peripheral FTFA base address */ |
AnnaBridge | 171:3a7713b1edbc | 1515 | #define FTFA_BASE (0x40020000u) |
AnnaBridge | 171:3a7713b1edbc | 1516 | /** Peripheral FTFA base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1517 | #define FTFA ((FTFA_Type *)FTFA_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1518 | /** Array initializer of FTFA peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1519 | #define FTFA_BASE_ADDRS { FTFA_BASE } |
AnnaBridge | 171:3a7713b1edbc | 1520 | /** Array initializer of FTFA peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 1521 | #define FTFA_BASE_PTRS { FTFA } |
AnnaBridge | 171:3a7713b1edbc | 1522 | /** Interrupt vectors for the FTFA peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 1523 | #define FTFA_COMMAND_COMPLETE_IRQS { FTFA_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 1524 | |
AnnaBridge | 171:3a7713b1edbc | 1525 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1526 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1527 | */ /* end of group FTFA_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 1528 | |
AnnaBridge | 171:3a7713b1edbc | 1529 | |
AnnaBridge | 171:3a7713b1edbc | 1530 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1531 | -- GPIO Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1532 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1533 | |
AnnaBridge | 171:3a7713b1edbc | 1534 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1535 | * @addtogroup GPIO_Peripheral_Access_Layer GPIO Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1536 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1537 | */ |
AnnaBridge | 171:3a7713b1edbc | 1538 | |
AnnaBridge | 171:3a7713b1edbc | 1539 | /** GPIO - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 1540 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 1541 | __IO uint32_t PDOR; /**< Port Data Output Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 1542 | __O uint32_t PSOR; /**< Port Set Output Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1543 | __O uint32_t PCOR; /**< Port Clear Output Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 1544 | __O uint32_t PTOR; /**< Port Toggle Output Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 1545 | __I uint32_t PDIR; /**< Port Data Input Register, offset: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 1546 | __IO uint32_t PDDR; /**< Port Data Direction Register, offset: 0x14 */ |
AnnaBridge | 171:3a7713b1edbc | 1547 | } GPIO_Type; |
AnnaBridge | 171:3a7713b1edbc | 1548 | |
AnnaBridge | 171:3a7713b1edbc | 1549 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1550 | -- GPIO Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1551 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1552 | |
AnnaBridge | 171:3a7713b1edbc | 1553 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1554 | * @addtogroup GPIO_Register_Masks GPIO Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1555 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1556 | */ |
AnnaBridge | 171:3a7713b1edbc | 1557 | |
AnnaBridge | 171:3a7713b1edbc | 1558 | /*! @name PDOR - Port Data Output Register */ |
AnnaBridge | 171:3a7713b1edbc | 1559 | #define GPIO_PDOR_PDO_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1560 | #define GPIO_PDOR_PDO_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1561 | #define GPIO_PDOR_PDO(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PDOR_PDO_SHIFT)) & GPIO_PDOR_PDO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1562 | |
AnnaBridge | 171:3a7713b1edbc | 1563 | /*! @name PSOR - Port Set Output Register */ |
AnnaBridge | 171:3a7713b1edbc | 1564 | #define GPIO_PSOR_PTSO_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1565 | #define GPIO_PSOR_PTSO_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1566 | #define GPIO_PSOR_PTSO(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PSOR_PTSO_SHIFT)) & GPIO_PSOR_PTSO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1567 | |
AnnaBridge | 171:3a7713b1edbc | 1568 | /*! @name PCOR - Port Clear Output Register */ |
AnnaBridge | 171:3a7713b1edbc | 1569 | #define GPIO_PCOR_PTCO_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1570 | #define GPIO_PCOR_PTCO_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1571 | #define GPIO_PCOR_PTCO(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PCOR_PTCO_SHIFT)) & GPIO_PCOR_PTCO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1572 | |
AnnaBridge | 171:3a7713b1edbc | 1573 | /*! @name PTOR - Port Toggle Output Register */ |
AnnaBridge | 171:3a7713b1edbc | 1574 | #define GPIO_PTOR_PTTO_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1575 | #define GPIO_PTOR_PTTO_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1576 | #define GPIO_PTOR_PTTO(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PTOR_PTTO_SHIFT)) & GPIO_PTOR_PTTO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1577 | |
AnnaBridge | 171:3a7713b1edbc | 1578 | /*! @name PDIR - Port Data Input Register */ |
AnnaBridge | 171:3a7713b1edbc | 1579 | #define GPIO_PDIR_PDI_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1580 | #define GPIO_PDIR_PDI_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1581 | #define GPIO_PDIR_PDI(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PDIR_PDI_SHIFT)) & GPIO_PDIR_PDI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1582 | |
AnnaBridge | 171:3a7713b1edbc | 1583 | /*! @name PDDR - Port Data Direction Register */ |
AnnaBridge | 171:3a7713b1edbc | 1584 | #define GPIO_PDDR_PDD_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 1585 | #define GPIO_PDDR_PDD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1586 | #define GPIO_PDDR_PDD(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PDDR_PDD_SHIFT)) & GPIO_PDDR_PDD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1587 | |
AnnaBridge | 171:3a7713b1edbc | 1588 | |
AnnaBridge | 171:3a7713b1edbc | 1589 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1590 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1591 | */ /* end of group GPIO_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 1592 | |
AnnaBridge | 171:3a7713b1edbc | 1593 | |
AnnaBridge | 171:3a7713b1edbc | 1594 | /* GPIO - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1595 | /** Peripheral GPIOA base address */ |
AnnaBridge | 171:3a7713b1edbc | 1596 | #define GPIOA_BASE (0x400FF000u) |
AnnaBridge | 171:3a7713b1edbc | 1597 | /** Peripheral GPIOA base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1598 | #define GPIOA ((GPIO_Type *)GPIOA_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1599 | /** Peripheral GPIOB base address */ |
AnnaBridge | 171:3a7713b1edbc | 1600 | #define GPIOB_BASE (0x400FF040u) |
AnnaBridge | 171:3a7713b1edbc | 1601 | /** Peripheral GPIOB base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1602 | #define GPIOB ((GPIO_Type *)GPIOB_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1603 | /** Peripheral GPIOC base address */ |
AnnaBridge | 171:3a7713b1edbc | 1604 | #define GPIOC_BASE (0x400FF080u) |
AnnaBridge | 171:3a7713b1edbc | 1605 | /** Peripheral GPIOC base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1606 | #define GPIOC ((GPIO_Type *)GPIOC_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1607 | /** Peripheral GPIOD base address */ |
AnnaBridge | 171:3a7713b1edbc | 1608 | #define GPIOD_BASE (0x400FF0C0u) |
AnnaBridge | 171:3a7713b1edbc | 1609 | /** Peripheral GPIOD base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1610 | #define GPIOD ((GPIO_Type *)GPIOD_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1611 | /** Peripheral GPIOE base address */ |
AnnaBridge | 171:3a7713b1edbc | 1612 | #define GPIOE_BASE (0x400FF100u) |
AnnaBridge | 171:3a7713b1edbc | 1613 | /** Peripheral GPIOE base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1614 | #define GPIOE ((GPIO_Type *)GPIOE_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1615 | /** Array initializer of GPIO peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1616 | #define GPIO_BASE_ADDRS { GPIOA_BASE, GPIOB_BASE, GPIOC_BASE, GPIOD_BASE, GPIOE_BASE } |
AnnaBridge | 171:3a7713b1edbc | 1617 | /** Array initializer of GPIO peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 1618 | #define GPIO_BASE_PTRS { GPIOA, GPIOB, GPIOC, GPIOD, GPIOE } |
AnnaBridge | 171:3a7713b1edbc | 1619 | |
AnnaBridge | 171:3a7713b1edbc | 1620 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1621 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1622 | */ /* end of group GPIO_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 1623 | |
AnnaBridge | 171:3a7713b1edbc | 1624 | |
AnnaBridge | 171:3a7713b1edbc | 1625 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1626 | -- I2C Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1627 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1628 | |
AnnaBridge | 171:3a7713b1edbc | 1629 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1630 | * @addtogroup I2C_Peripheral_Access_Layer I2C Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1631 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1632 | */ |
AnnaBridge | 171:3a7713b1edbc | 1633 | |
AnnaBridge | 171:3a7713b1edbc | 1634 | /** I2C - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 1635 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 1636 | __IO uint8_t A1; /**< I2C Address Register 1, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 1637 | __IO uint8_t F; /**< I2C Frequency Divider register, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 1638 | __IO uint8_t C1; /**< I2C Control Register 1, offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 1639 | __IO uint8_t S; /**< I2C Status register, offset: 0x3 */ |
AnnaBridge | 171:3a7713b1edbc | 1640 | __IO uint8_t D; /**< I2C Data I/O register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1641 | __IO uint8_t C2; /**< I2C Control Register 2, offset: 0x5 */ |
AnnaBridge | 171:3a7713b1edbc | 1642 | __IO uint8_t FLT; /**< I2C Programmable Input Glitch Filter Register, offset: 0x6 */ |
AnnaBridge | 171:3a7713b1edbc | 1643 | __IO uint8_t RA; /**< I2C Range Address register, offset: 0x7 */ |
AnnaBridge | 171:3a7713b1edbc | 1644 | __IO uint8_t SMB; /**< I2C SMBus Control and Status register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 1645 | __IO uint8_t A2; /**< I2C Address Register 2, offset: 0x9 */ |
AnnaBridge | 171:3a7713b1edbc | 1646 | __IO uint8_t SLTH; /**< I2C SCL Low Timeout Register High, offset: 0xA */ |
AnnaBridge | 171:3a7713b1edbc | 1647 | __IO uint8_t SLTL; /**< I2C SCL Low Timeout Register Low, offset: 0xB */ |
AnnaBridge | 171:3a7713b1edbc | 1648 | __IO uint8_t S2; /**< I2C Status register 2, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 1649 | } I2C_Type; |
AnnaBridge | 171:3a7713b1edbc | 1650 | |
AnnaBridge | 171:3a7713b1edbc | 1651 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1652 | -- I2C Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1653 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1654 | |
AnnaBridge | 171:3a7713b1edbc | 1655 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1656 | * @addtogroup I2C_Register_Masks I2C Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1657 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1658 | */ |
AnnaBridge | 171:3a7713b1edbc | 1659 | |
AnnaBridge | 171:3a7713b1edbc | 1660 | /*! @name A1 - I2C Address Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 1661 | #define I2C_A1_AD_MASK (0xFEU) |
AnnaBridge | 171:3a7713b1edbc | 1662 | #define I2C_A1_AD_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1663 | #define I2C_A1_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_A1_AD_SHIFT)) & I2C_A1_AD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1664 | |
AnnaBridge | 171:3a7713b1edbc | 1665 | /*! @name F - I2C Frequency Divider register */ |
AnnaBridge | 171:3a7713b1edbc | 1666 | #define I2C_F_ICR_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 1667 | #define I2C_F_ICR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1668 | #define I2C_F_ICR(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_ICR_SHIFT)) & I2C_F_ICR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1669 | #define I2C_F_MULT_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 1670 | #define I2C_F_MULT_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1671 | #define I2C_F_MULT(x) (((uint8_t)(((uint8_t)(x)) << I2C_F_MULT_SHIFT)) & I2C_F_MULT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1672 | |
AnnaBridge | 171:3a7713b1edbc | 1673 | /*! @name C1 - I2C Control Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 1674 | #define I2C_C1_DMAEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 1675 | #define I2C_C1_DMAEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1676 | #define I2C_C1_DMAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_DMAEN_SHIFT)) & I2C_C1_DMAEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1677 | #define I2C_C1_WUEN_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 1678 | #define I2C_C1_WUEN_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1679 | #define I2C_C1_WUEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_WUEN_SHIFT)) & I2C_C1_WUEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1680 | #define I2C_C1_RSTA_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 1681 | #define I2C_C1_RSTA_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 1682 | #define I2C_C1_RSTA(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_RSTA_SHIFT)) & I2C_C1_RSTA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1683 | #define I2C_C1_TXAK_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 1684 | #define I2C_C1_TXAK_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 1685 | #define I2C_C1_TXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TXAK_SHIFT)) & I2C_C1_TXAK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1686 | #define I2C_C1_TX_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 1687 | #define I2C_C1_TX_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1688 | #define I2C_C1_TX(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_TX_SHIFT)) & I2C_C1_TX_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1689 | #define I2C_C1_MST_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 1690 | #define I2C_C1_MST_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 1691 | #define I2C_C1_MST(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_MST_SHIFT)) & I2C_C1_MST_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1692 | #define I2C_C1_IICIE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 1693 | #define I2C_C1_IICIE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1694 | #define I2C_C1_IICIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICIE_SHIFT)) & I2C_C1_IICIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1695 | #define I2C_C1_IICEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1696 | #define I2C_C1_IICEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1697 | #define I2C_C1_IICEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C1_IICEN_SHIFT)) & I2C_C1_IICEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1698 | |
AnnaBridge | 171:3a7713b1edbc | 1699 | /*! @name S - I2C Status register */ |
AnnaBridge | 171:3a7713b1edbc | 1700 | #define I2C_S_RXAK_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 1701 | #define I2C_S_RXAK_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1702 | #define I2C_S_RXAK(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RXAK_SHIFT)) & I2C_S_RXAK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1703 | #define I2C_S_IICIF_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 1704 | #define I2C_S_IICIF_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1705 | #define I2C_S_IICIF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IICIF_SHIFT)) & I2C_S_IICIF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1706 | #define I2C_S_SRW_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 1707 | #define I2C_S_SRW_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 1708 | #define I2C_S_SRW(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_SRW_SHIFT)) & I2C_S_SRW_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1709 | #define I2C_S_RAM_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 1710 | #define I2C_S_RAM_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 1711 | #define I2C_S_RAM(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_RAM_SHIFT)) & I2C_S_RAM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1712 | #define I2C_S_ARBL_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 1713 | #define I2C_S_ARBL_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1714 | #define I2C_S_ARBL(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_ARBL_SHIFT)) & I2C_S_ARBL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1715 | #define I2C_S_BUSY_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 1716 | #define I2C_S_BUSY_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 1717 | #define I2C_S_BUSY(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_BUSY_SHIFT)) & I2C_S_BUSY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1718 | #define I2C_S_IAAS_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 1719 | #define I2C_S_IAAS_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1720 | #define I2C_S_IAAS(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_IAAS_SHIFT)) & I2C_S_IAAS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1721 | #define I2C_S_TCF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1722 | #define I2C_S_TCF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1723 | #define I2C_S_TCF(x) (((uint8_t)(((uint8_t)(x)) << I2C_S_TCF_SHIFT)) & I2C_S_TCF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1724 | |
AnnaBridge | 171:3a7713b1edbc | 1725 | /*! @name D - I2C Data I/O register */ |
AnnaBridge | 171:3a7713b1edbc | 1726 | #define I2C_D_DATA_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1727 | #define I2C_D_DATA_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1728 | #define I2C_D_DATA(x) (((uint8_t)(((uint8_t)(x)) << I2C_D_DATA_SHIFT)) & I2C_D_DATA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1729 | |
AnnaBridge | 171:3a7713b1edbc | 1730 | /*! @name C2 - I2C Control Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 1731 | #define I2C_C2_AD_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 1732 | #define I2C_C2_AD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1733 | #define I2C_C2_AD(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_AD_SHIFT)) & I2C_C2_AD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1734 | #define I2C_C2_RMEN_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 1735 | #define I2C_C2_RMEN_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 1736 | #define I2C_C2_RMEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_RMEN_SHIFT)) & I2C_C2_RMEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1737 | #define I2C_C2_SBRC_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 1738 | #define I2C_C2_SBRC_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1739 | #define I2C_C2_SBRC(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_SBRC_SHIFT)) & I2C_C2_SBRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1740 | #define I2C_C2_HDRS_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 1741 | #define I2C_C2_HDRS_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 1742 | #define I2C_C2_HDRS(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_HDRS_SHIFT)) & I2C_C2_HDRS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1743 | #define I2C_C2_ADEXT_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 1744 | #define I2C_C2_ADEXT_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1745 | #define I2C_C2_ADEXT(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_ADEXT_SHIFT)) & I2C_C2_ADEXT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1746 | #define I2C_C2_GCAEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1747 | #define I2C_C2_GCAEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1748 | #define I2C_C2_GCAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_C2_GCAEN_SHIFT)) & I2C_C2_GCAEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1749 | |
AnnaBridge | 171:3a7713b1edbc | 1750 | /*! @name FLT - I2C Programmable Input Glitch Filter Register */ |
AnnaBridge | 171:3a7713b1edbc | 1751 | #define I2C_FLT_FLT_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 1752 | #define I2C_FLT_FLT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1753 | #define I2C_FLT_FLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_FLT_SHIFT)) & I2C_FLT_FLT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1754 | #define I2C_FLT_STARTF_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 1755 | #define I2C_FLT_STARTF_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1756 | #define I2C_FLT_STARTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STARTF_SHIFT)) & I2C_FLT_STARTF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1757 | #define I2C_FLT_SSIE_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 1758 | #define I2C_FLT_SSIE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 1759 | #define I2C_FLT_SSIE(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SSIE_SHIFT)) & I2C_FLT_SSIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1760 | #define I2C_FLT_STOPF_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 1761 | #define I2C_FLT_STOPF_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1762 | #define I2C_FLT_STOPF(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_STOPF_SHIFT)) & I2C_FLT_STOPF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1763 | #define I2C_FLT_SHEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1764 | #define I2C_FLT_SHEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1765 | #define I2C_FLT_SHEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_FLT_SHEN_SHIFT)) & I2C_FLT_SHEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1766 | |
AnnaBridge | 171:3a7713b1edbc | 1767 | /*! @name RA - I2C Range Address register */ |
AnnaBridge | 171:3a7713b1edbc | 1768 | #define I2C_RA_RAD_MASK (0xFEU) |
AnnaBridge | 171:3a7713b1edbc | 1769 | #define I2C_RA_RAD_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1770 | #define I2C_RA_RAD(x) (((uint8_t)(((uint8_t)(x)) << I2C_RA_RAD_SHIFT)) & I2C_RA_RAD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1771 | |
AnnaBridge | 171:3a7713b1edbc | 1772 | /*! @name SMB - I2C SMBus Control and Status register */ |
AnnaBridge | 171:3a7713b1edbc | 1773 | #define I2C_SMB_SHTF2IE_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 1774 | #define I2C_SMB_SHTF2IE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1775 | #define I2C_SMB_SHTF2IE(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2IE_SHIFT)) & I2C_SMB_SHTF2IE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1776 | #define I2C_SMB_SHTF2_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 1777 | #define I2C_SMB_SHTF2_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1778 | #define I2C_SMB_SHTF2(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF2_SHIFT)) & I2C_SMB_SHTF2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1779 | #define I2C_SMB_SHTF1_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 1780 | #define I2C_SMB_SHTF1_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 1781 | #define I2C_SMB_SHTF1(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SHTF1_SHIFT)) & I2C_SMB_SHTF1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1782 | #define I2C_SMB_SLTF_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 1783 | #define I2C_SMB_SLTF_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 1784 | #define I2C_SMB_SLTF(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SLTF_SHIFT)) & I2C_SMB_SLTF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1785 | #define I2C_SMB_TCKSEL_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 1786 | #define I2C_SMB_TCKSEL_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1787 | #define I2C_SMB_TCKSEL(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_TCKSEL_SHIFT)) & I2C_SMB_TCKSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1788 | #define I2C_SMB_SIICAEN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 1789 | #define I2C_SMB_SIICAEN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 1790 | #define I2C_SMB_SIICAEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_SIICAEN_SHIFT)) & I2C_SMB_SIICAEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1791 | #define I2C_SMB_ALERTEN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 1792 | #define I2C_SMB_ALERTEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 1793 | #define I2C_SMB_ALERTEN(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_ALERTEN_SHIFT)) & I2C_SMB_ALERTEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1794 | #define I2C_SMB_FACK_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 1795 | #define I2C_SMB_FACK_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 1796 | #define I2C_SMB_FACK(x) (((uint8_t)(((uint8_t)(x)) << I2C_SMB_FACK_SHIFT)) & I2C_SMB_FACK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1797 | |
AnnaBridge | 171:3a7713b1edbc | 1798 | /*! @name A2 - I2C Address Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 1799 | #define I2C_A2_SAD_MASK (0xFEU) |
AnnaBridge | 171:3a7713b1edbc | 1800 | #define I2C_A2_SAD_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1801 | #define I2C_A2_SAD(x) (((uint8_t)(((uint8_t)(x)) << I2C_A2_SAD_SHIFT)) & I2C_A2_SAD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1802 | |
AnnaBridge | 171:3a7713b1edbc | 1803 | /*! @name SLTH - I2C SCL Low Timeout Register High */ |
AnnaBridge | 171:3a7713b1edbc | 1804 | #define I2C_SLTH_SSLT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1805 | #define I2C_SLTH_SSLT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1806 | #define I2C_SLTH_SSLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_SLTH_SSLT_SHIFT)) & I2C_SLTH_SSLT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1807 | |
AnnaBridge | 171:3a7713b1edbc | 1808 | /*! @name SLTL - I2C SCL Low Timeout Register Low */ |
AnnaBridge | 171:3a7713b1edbc | 1809 | #define I2C_SLTL_SSLT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1810 | #define I2C_SLTL_SSLT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1811 | #define I2C_SLTL_SSLT(x) (((uint8_t)(((uint8_t)(x)) << I2C_SLTL_SSLT_SHIFT)) & I2C_SLTL_SSLT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1812 | |
AnnaBridge | 171:3a7713b1edbc | 1813 | /*! @name S2 - I2C Status register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 1814 | #define I2C_S2_EMPTY_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 1815 | #define I2C_S2_EMPTY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1816 | #define I2C_S2_EMPTY(x) (((uint8_t)(((uint8_t)(x)) << I2C_S2_EMPTY_SHIFT)) & I2C_S2_EMPTY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1817 | #define I2C_S2_ERROR_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 1818 | #define I2C_S2_ERROR_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1819 | #define I2C_S2_ERROR(x) (((uint8_t)(((uint8_t)(x)) << I2C_S2_ERROR_SHIFT)) & I2C_S2_ERROR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1820 | |
AnnaBridge | 171:3a7713b1edbc | 1821 | |
AnnaBridge | 171:3a7713b1edbc | 1822 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1823 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1824 | */ /* end of group I2C_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 1825 | |
AnnaBridge | 171:3a7713b1edbc | 1826 | |
AnnaBridge | 171:3a7713b1edbc | 1827 | /* I2C - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1828 | /** Peripheral I2C0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 1829 | #define I2C0_BASE (0x40066000u) |
AnnaBridge | 171:3a7713b1edbc | 1830 | /** Peripheral I2C0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1831 | #define I2C0 ((I2C_Type *)I2C0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1832 | /** Peripheral I2C1 base address */ |
AnnaBridge | 171:3a7713b1edbc | 1833 | #define I2C1_BASE (0x40067000u) |
AnnaBridge | 171:3a7713b1edbc | 1834 | /** Peripheral I2C1 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 1835 | #define I2C1 ((I2C_Type *)I2C1_BASE) |
AnnaBridge | 171:3a7713b1edbc | 1836 | /** Array initializer of I2C peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 1837 | #define I2C_BASE_ADDRS { I2C0_BASE, I2C1_BASE } |
AnnaBridge | 171:3a7713b1edbc | 1838 | /** Array initializer of I2C peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 1839 | #define I2C_BASE_PTRS { I2C0, I2C1 } |
AnnaBridge | 171:3a7713b1edbc | 1840 | /** Interrupt vectors for the I2C peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 1841 | #define I2C_IRQS { I2C0_IRQn, I2C1_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 1842 | |
AnnaBridge | 171:3a7713b1edbc | 1843 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1844 | * @} |
AnnaBridge | 171:3a7713b1edbc | 1845 | */ /* end of group I2C_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 1846 | |
AnnaBridge | 171:3a7713b1edbc | 1847 | |
AnnaBridge | 171:3a7713b1edbc | 1848 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1849 | -- I2S Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1850 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1851 | |
AnnaBridge | 171:3a7713b1edbc | 1852 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1853 | * @addtogroup I2S_Peripheral_Access_Layer I2S Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 1854 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1855 | */ |
AnnaBridge | 171:3a7713b1edbc | 1856 | |
AnnaBridge | 171:3a7713b1edbc | 1857 | /** I2S - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 1858 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 1859 | __IO uint32_t TCSR; /**< SAI Transmit Control Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 1860 | uint8_t RESERVED_0[4]; |
AnnaBridge | 171:3a7713b1edbc | 1861 | __IO uint32_t TCR2; /**< SAI Transmit Configuration 2 Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 1862 | __IO uint32_t TCR3; /**< SAI Transmit Configuration 3 Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 1863 | __IO uint32_t TCR4; /**< SAI Transmit Configuration 4 Register, offset: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 1864 | __IO uint32_t TCR5; /**< SAI Transmit Configuration 5 Register, offset: 0x14 */ |
AnnaBridge | 171:3a7713b1edbc | 1865 | uint8_t RESERVED_1[8]; |
AnnaBridge | 171:3a7713b1edbc | 1866 | __O uint32_t TDR[1]; /**< SAI Transmit Data Register, array offset: 0x20, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1867 | uint8_t RESERVED_2[60]; |
AnnaBridge | 171:3a7713b1edbc | 1868 | __IO uint32_t TMR; /**< SAI Transmit Mask Register, offset: 0x60 */ |
AnnaBridge | 171:3a7713b1edbc | 1869 | uint8_t RESERVED_3[28]; |
AnnaBridge | 171:3a7713b1edbc | 1870 | __IO uint32_t RCSR; /**< SAI Receive Control Register, offset: 0x80 */ |
AnnaBridge | 171:3a7713b1edbc | 1871 | uint8_t RESERVED_4[4]; |
AnnaBridge | 171:3a7713b1edbc | 1872 | __IO uint32_t RCR2; /**< SAI Receive Configuration 2 Register, offset: 0x88 */ |
AnnaBridge | 171:3a7713b1edbc | 1873 | __IO uint32_t RCR3; /**< SAI Receive Configuration 3 Register, offset: 0x8C */ |
AnnaBridge | 171:3a7713b1edbc | 1874 | __IO uint32_t RCR4; /**< SAI Receive Configuration 4 Register, offset: 0x90 */ |
AnnaBridge | 171:3a7713b1edbc | 1875 | __IO uint32_t RCR5; /**< SAI Receive Configuration 5 Register, offset: 0x94 */ |
AnnaBridge | 171:3a7713b1edbc | 1876 | uint8_t RESERVED_5[8]; |
AnnaBridge | 171:3a7713b1edbc | 1877 | __I uint32_t RDR[1]; /**< SAI Receive Data Register, array offset: 0xA0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 1878 | uint8_t RESERVED_6[60]; |
AnnaBridge | 171:3a7713b1edbc | 1879 | __IO uint32_t RMR; /**< SAI Receive Mask Register, offset: 0xE0 */ |
AnnaBridge | 171:3a7713b1edbc | 1880 | uint8_t RESERVED_7[28]; |
AnnaBridge | 171:3a7713b1edbc | 1881 | __IO uint32_t MCR; /**< SAI MCLK Control Register, offset: 0x100 */ |
AnnaBridge | 171:3a7713b1edbc | 1882 | } I2S_Type; |
AnnaBridge | 171:3a7713b1edbc | 1883 | |
AnnaBridge | 171:3a7713b1edbc | 1884 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 1885 | -- I2S Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1886 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 1887 | |
AnnaBridge | 171:3a7713b1edbc | 1888 | /*! |
AnnaBridge | 171:3a7713b1edbc | 1889 | * @addtogroup I2S_Register_Masks I2S Register Masks |
AnnaBridge | 171:3a7713b1edbc | 1890 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 1891 | */ |
AnnaBridge | 171:3a7713b1edbc | 1892 | |
AnnaBridge | 171:3a7713b1edbc | 1893 | /*! @name TCSR - SAI Transmit Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 1894 | #define I2S_TCSR_FWDE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 1895 | #define I2S_TCSR_FWDE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1896 | #define I2S_TCSR_FWDE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FWDE_SHIFT)) & I2S_TCSR_FWDE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1897 | #define I2S_TCSR_FWIE_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 1898 | #define I2S_TCSR_FWIE_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 1899 | #define I2S_TCSR_FWIE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FWIE_SHIFT)) & I2S_TCSR_FWIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1900 | #define I2S_TCSR_FEIE_MASK (0x400U) |
AnnaBridge | 171:3a7713b1edbc | 1901 | #define I2S_TCSR_FEIE_SHIFT (10U) |
AnnaBridge | 171:3a7713b1edbc | 1902 | #define I2S_TCSR_FEIE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FEIE_SHIFT)) & I2S_TCSR_FEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1903 | #define I2S_TCSR_SEIE_MASK (0x800U) |
AnnaBridge | 171:3a7713b1edbc | 1904 | #define I2S_TCSR_SEIE_SHIFT (11U) |
AnnaBridge | 171:3a7713b1edbc | 1905 | #define I2S_TCSR_SEIE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_SEIE_SHIFT)) & I2S_TCSR_SEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1906 | #define I2S_TCSR_WSIE_MASK (0x1000U) |
AnnaBridge | 171:3a7713b1edbc | 1907 | #define I2S_TCSR_WSIE_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 1908 | #define I2S_TCSR_WSIE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_WSIE_SHIFT)) & I2S_TCSR_WSIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1909 | #define I2S_TCSR_FWF_MASK (0x20000U) |
AnnaBridge | 171:3a7713b1edbc | 1910 | #define I2S_TCSR_FWF_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 1911 | #define I2S_TCSR_FWF(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FWF_SHIFT)) & I2S_TCSR_FWF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1912 | #define I2S_TCSR_FEF_MASK (0x40000U) |
AnnaBridge | 171:3a7713b1edbc | 1913 | #define I2S_TCSR_FEF_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 1914 | #define I2S_TCSR_FEF(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FEF_SHIFT)) & I2S_TCSR_FEF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1915 | #define I2S_TCSR_SEF_MASK (0x80000U) |
AnnaBridge | 171:3a7713b1edbc | 1916 | #define I2S_TCSR_SEF_SHIFT (19U) |
AnnaBridge | 171:3a7713b1edbc | 1917 | #define I2S_TCSR_SEF(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_SEF_SHIFT)) & I2S_TCSR_SEF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1918 | #define I2S_TCSR_WSF_MASK (0x100000U) |
AnnaBridge | 171:3a7713b1edbc | 1919 | #define I2S_TCSR_WSF_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 1920 | #define I2S_TCSR_WSF(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_WSF_SHIFT)) & I2S_TCSR_WSF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1921 | #define I2S_TCSR_SR_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 1922 | #define I2S_TCSR_SR_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 1923 | #define I2S_TCSR_SR(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_SR_SHIFT)) & I2S_TCSR_SR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1924 | #define I2S_TCSR_FR_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 1925 | #define I2S_TCSR_FR_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 1926 | #define I2S_TCSR_FR(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_FR_SHIFT)) & I2S_TCSR_FR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1927 | #define I2S_TCSR_BCE_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 1928 | #define I2S_TCSR_BCE_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 1929 | #define I2S_TCSR_BCE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_BCE_SHIFT)) & I2S_TCSR_BCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1930 | #define I2S_TCSR_DBGE_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 1931 | #define I2S_TCSR_DBGE_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 1932 | #define I2S_TCSR_DBGE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_DBGE_SHIFT)) & I2S_TCSR_DBGE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1933 | #define I2S_TCSR_STOPE_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 1934 | #define I2S_TCSR_STOPE_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 1935 | #define I2S_TCSR_STOPE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_STOPE_SHIFT)) & I2S_TCSR_STOPE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1936 | #define I2S_TCSR_TE_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 1937 | #define I2S_TCSR_TE_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 1938 | #define I2S_TCSR_TE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCSR_TE_SHIFT)) & I2S_TCSR_TE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1939 | |
AnnaBridge | 171:3a7713b1edbc | 1940 | /*! @name TCR2 - SAI Transmit Configuration 2 Register */ |
AnnaBridge | 171:3a7713b1edbc | 1941 | #define I2S_TCR2_DIV_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 1942 | #define I2S_TCR2_DIV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1943 | #define I2S_TCR2_DIV(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_DIV_SHIFT)) & I2S_TCR2_DIV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1944 | #define I2S_TCR2_BCD_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 1945 | #define I2S_TCR2_BCD_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 1946 | #define I2S_TCR2_BCD(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_BCD_SHIFT)) & I2S_TCR2_BCD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1947 | #define I2S_TCR2_BCP_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 1948 | #define I2S_TCR2_BCP_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 1949 | #define I2S_TCR2_BCP(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_BCP_SHIFT)) & I2S_TCR2_BCP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1950 | #define I2S_TCR2_MSEL_MASK (0xC000000U) |
AnnaBridge | 171:3a7713b1edbc | 1951 | #define I2S_TCR2_MSEL_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 1952 | #define I2S_TCR2_MSEL(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_MSEL_SHIFT)) & I2S_TCR2_MSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1953 | #define I2S_TCR2_BCI_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 1954 | #define I2S_TCR2_BCI_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 1955 | #define I2S_TCR2_BCI(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_BCI_SHIFT)) & I2S_TCR2_BCI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1956 | #define I2S_TCR2_BCS_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 1957 | #define I2S_TCR2_BCS_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 1958 | #define I2S_TCR2_BCS(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_BCS_SHIFT)) & I2S_TCR2_BCS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1959 | #define I2S_TCR2_SYNC_MASK (0xC0000000U) |
AnnaBridge | 171:3a7713b1edbc | 1960 | #define I2S_TCR2_SYNC_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 1961 | #define I2S_TCR2_SYNC(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR2_SYNC_SHIFT)) & I2S_TCR2_SYNC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1962 | |
AnnaBridge | 171:3a7713b1edbc | 1963 | /*! @name TCR3 - SAI Transmit Configuration 3 Register */ |
AnnaBridge | 171:3a7713b1edbc | 1964 | #define I2S_TCR3_WDFL_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 1965 | #define I2S_TCR3_WDFL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1966 | #define I2S_TCR3_WDFL(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR3_WDFL_SHIFT)) & I2S_TCR3_WDFL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1967 | #define I2S_TCR3_TCE_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 1968 | #define I2S_TCR3_TCE_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 1969 | #define I2S_TCR3_TCE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR3_TCE_SHIFT)) & I2S_TCR3_TCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1970 | |
AnnaBridge | 171:3a7713b1edbc | 1971 | /*! @name TCR4 - SAI Transmit Configuration 4 Register */ |
AnnaBridge | 171:3a7713b1edbc | 1972 | #define I2S_TCR4_FSD_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 1973 | #define I2S_TCR4_FSD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 1974 | #define I2S_TCR4_FSD(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FSD_SHIFT)) & I2S_TCR4_FSD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1975 | #define I2S_TCR4_FSP_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 1976 | #define I2S_TCR4_FSP_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 1977 | #define I2S_TCR4_FSP(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FSP_SHIFT)) & I2S_TCR4_FSP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1978 | #define I2S_TCR4_ONDEM_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 1979 | #define I2S_TCR4_ONDEM_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 1980 | #define I2S_TCR4_ONDEM(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_ONDEM_SHIFT)) & I2S_TCR4_ONDEM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1981 | #define I2S_TCR4_FSE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 1982 | #define I2S_TCR4_FSE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 1983 | #define I2S_TCR4_FSE(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FSE_SHIFT)) & I2S_TCR4_FSE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1984 | #define I2S_TCR4_MF_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 1985 | #define I2S_TCR4_MF_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 1986 | #define I2S_TCR4_MF(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_MF_SHIFT)) & I2S_TCR4_MF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1987 | #define I2S_TCR4_SYWD_MASK (0x1F00U) |
AnnaBridge | 171:3a7713b1edbc | 1988 | #define I2S_TCR4_SYWD_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 1989 | #define I2S_TCR4_SYWD(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_SYWD_SHIFT)) & I2S_TCR4_SYWD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1990 | #define I2S_TCR4_FRSZ_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 1991 | #define I2S_TCR4_FRSZ_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 1992 | #define I2S_TCR4_FRSZ(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FRSZ_SHIFT)) & I2S_TCR4_FRSZ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1993 | #define I2S_TCR4_FPACK_MASK (0x3000000U) |
AnnaBridge | 171:3a7713b1edbc | 1994 | #define I2S_TCR4_FPACK_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 1995 | #define I2S_TCR4_FPACK(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FPACK_SHIFT)) & I2S_TCR4_FPACK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1996 | #define I2S_TCR4_FCONT_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 1997 | #define I2S_TCR4_FCONT_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 1998 | #define I2S_TCR4_FCONT(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR4_FCONT_SHIFT)) & I2S_TCR4_FCONT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 1999 | |
AnnaBridge | 171:3a7713b1edbc | 2000 | /*! @name TCR5 - SAI Transmit Configuration 5 Register */ |
AnnaBridge | 171:3a7713b1edbc | 2001 | #define I2S_TCR5_FBT_MASK (0x1F00U) |
AnnaBridge | 171:3a7713b1edbc | 2002 | #define I2S_TCR5_FBT_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2003 | #define I2S_TCR5_FBT(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_FBT_SHIFT)) & I2S_TCR5_FBT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2004 | #define I2S_TCR5_W0W_MASK (0x1F0000U) |
AnnaBridge | 171:3a7713b1edbc | 2005 | #define I2S_TCR5_W0W_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2006 | #define I2S_TCR5_W0W(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_W0W_SHIFT)) & I2S_TCR5_W0W_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2007 | #define I2S_TCR5_WNW_MASK (0x1F000000U) |
AnnaBridge | 171:3a7713b1edbc | 2008 | #define I2S_TCR5_WNW_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2009 | #define I2S_TCR5_WNW(x) (((uint32_t)(((uint32_t)(x)) << I2S_TCR5_WNW_SHIFT)) & I2S_TCR5_WNW_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2010 | |
AnnaBridge | 171:3a7713b1edbc | 2011 | /*! @name TDR - SAI Transmit Data Register */ |
AnnaBridge | 171:3a7713b1edbc | 2012 | #define I2S_TDR_TDR_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 2013 | #define I2S_TDR_TDR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2014 | #define I2S_TDR_TDR(x) (((uint32_t)(((uint32_t)(x)) << I2S_TDR_TDR_SHIFT)) & I2S_TDR_TDR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2015 | |
AnnaBridge | 171:3a7713b1edbc | 2016 | /* The count of I2S_TDR */ |
AnnaBridge | 171:3a7713b1edbc | 2017 | #define I2S_TDR_COUNT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2018 | |
AnnaBridge | 171:3a7713b1edbc | 2019 | /*! @name TMR - SAI Transmit Mask Register */ |
AnnaBridge | 171:3a7713b1edbc | 2020 | #define I2S_TMR_TWM_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 2021 | #define I2S_TMR_TWM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2022 | #define I2S_TMR_TWM(x) (((uint32_t)(((uint32_t)(x)) << I2S_TMR_TWM_SHIFT)) & I2S_TMR_TWM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2023 | |
AnnaBridge | 171:3a7713b1edbc | 2024 | /*! @name RCSR - SAI Receive Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 2025 | #define I2S_RCSR_FWDE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2026 | #define I2S_RCSR_FWDE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2027 | #define I2S_RCSR_FWDE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FWDE_SHIFT)) & I2S_RCSR_FWDE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2028 | #define I2S_RCSR_FWIE_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 2029 | #define I2S_RCSR_FWIE_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 2030 | #define I2S_RCSR_FWIE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FWIE_SHIFT)) & I2S_RCSR_FWIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2031 | #define I2S_RCSR_FEIE_MASK (0x400U) |
AnnaBridge | 171:3a7713b1edbc | 2032 | #define I2S_RCSR_FEIE_SHIFT (10U) |
AnnaBridge | 171:3a7713b1edbc | 2033 | #define I2S_RCSR_FEIE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FEIE_SHIFT)) & I2S_RCSR_FEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2034 | #define I2S_RCSR_SEIE_MASK (0x800U) |
AnnaBridge | 171:3a7713b1edbc | 2035 | #define I2S_RCSR_SEIE_SHIFT (11U) |
AnnaBridge | 171:3a7713b1edbc | 2036 | #define I2S_RCSR_SEIE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_SEIE_SHIFT)) & I2S_RCSR_SEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2037 | #define I2S_RCSR_WSIE_MASK (0x1000U) |
AnnaBridge | 171:3a7713b1edbc | 2038 | #define I2S_RCSR_WSIE_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 2039 | #define I2S_RCSR_WSIE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_WSIE_SHIFT)) & I2S_RCSR_WSIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2040 | #define I2S_RCSR_FWF_MASK (0x20000U) |
AnnaBridge | 171:3a7713b1edbc | 2041 | #define I2S_RCSR_FWF_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 2042 | #define I2S_RCSR_FWF(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FWF_SHIFT)) & I2S_RCSR_FWF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2043 | #define I2S_RCSR_FEF_MASK (0x40000U) |
AnnaBridge | 171:3a7713b1edbc | 2044 | #define I2S_RCSR_FEF_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 2045 | #define I2S_RCSR_FEF(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FEF_SHIFT)) & I2S_RCSR_FEF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2046 | #define I2S_RCSR_SEF_MASK (0x80000U) |
AnnaBridge | 171:3a7713b1edbc | 2047 | #define I2S_RCSR_SEF_SHIFT (19U) |
AnnaBridge | 171:3a7713b1edbc | 2048 | #define I2S_RCSR_SEF(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_SEF_SHIFT)) & I2S_RCSR_SEF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2049 | #define I2S_RCSR_WSF_MASK (0x100000U) |
AnnaBridge | 171:3a7713b1edbc | 2050 | #define I2S_RCSR_WSF_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 2051 | #define I2S_RCSR_WSF(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_WSF_SHIFT)) & I2S_RCSR_WSF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2052 | #define I2S_RCSR_SR_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 2053 | #define I2S_RCSR_SR_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2054 | #define I2S_RCSR_SR(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_SR_SHIFT)) & I2S_RCSR_SR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2055 | #define I2S_RCSR_FR_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 2056 | #define I2S_RCSR_FR_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 2057 | #define I2S_RCSR_FR(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_FR_SHIFT)) & I2S_RCSR_FR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2058 | #define I2S_RCSR_BCE_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 2059 | #define I2S_RCSR_BCE_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 2060 | #define I2S_RCSR_BCE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_BCE_SHIFT)) & I2S_RCSR_BCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2061 | #define I2S_RCSR_DBGE_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 2062 | #define I2S_RCSR_DBGE_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 2063 | #define I2S_RCSR_DBGE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_DBGE_SHIFT)) & I2S_RCSR_DBGE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2064 | #define I2S_RCSR_STOPE_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 2065 | #define I2S_RCSR_STOPE_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 2066 | #define I2S_RCSR_STOPE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_STOPE_SHIFT)) & I2S_RCSR_STOPE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2067 | #define I2S_RCSR_RE_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 2068 | #define I2S_RCSR_RE_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 2069 | #define I2S_RCSR_RE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCSR_RE_SHIFT)) & I2S_RCSR_RE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2070 | |
AnnaBridge | 171:3a7713b1edbc | 2071 | /*! @name RCR2 - SAI Receive Configuration 2 Register */ |
AnnaBridge | 171:3a7713b1edbc | 2072 | #define I2S_RCR2_DIV_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2073 | #define I2S_RCR2_DIV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2074 | #define I2S_RCR2_DIV(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_DIV_SHIFT)) & I2S_RCR2_DIV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2075 | #define I2S_RCR2_BCD_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 2076 | #define I2S_RCR2_BCD_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2077 | #define I2S_RCR2_BCD(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_BCD_SHIFT)) & I2S_RCR2_BCD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2078 | #define I2S_RCR2_BCP_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 2079 | #define I2S_RCR2_BCP_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 2080 | #define I2S_RCR2_BCP(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_BCP_SHIFT)) & I2S_RCR2_BCP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2081 | #define I2S_RCR2_MSEL_MASK (0xC000000U) |
AnnaBridge | 171:3a7713b1edbc | 2082 | #define I2S_RCR2_MSEL_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 2083 | #define I2S_RCR2_MSEL(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_MSEL_SHIFT)) & I2S_RCR2_MSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2084 | #define I2S_RCR2_BCI_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 2085 | #define I2S_RCR2_BCI_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 2086 | #define I2S_RCR2_BCI(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_BCI_SHIFT)) & I2S_RCR2_BCI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2087 | #define I2S_RCR2_BCS_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 2088 | #define I2S_RCR2_BCS_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 2089 | #define I2S_RCR2_BCS(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_BCS_SHIFT)) & I2S_RCR2_BCS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2090 | #define I2S_RCR2_SYNC_MASK (0xC0000000U) |
AnnaBridge | 171:3a7713b1edbc | 2091 | #define I2S_RCR2_SYNC_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 2092 | #define I2S_RCR2_SYNC(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR2_SYNC_SHIFT)) & I2S_RCR2_SYNC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2093 | |
AnnaBridge | 171:3a7713b1edbc | 2094 | /*! @name RCR3 - SAI Receive Configuration 3 Register */ |
AnnaBridge | 171:3a7713b1edbc | 2095 | #define I2S_RCR3_WDFL_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2096 | #define I2S_RCR3_WDFL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2097 | #define I2S_RCR3_WDFL(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR3_WDFL_SHIFT)) & I2S_RCR3_WDFL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2098 | #define I2S_RCR3_RCE_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 2099 | #define I2S_RCR3_RCE_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2100 | #define I2S_RCR3_RCE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR3_RCE_SHIFT)) & I2S_RCR3_RCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2101 | |
AnnaBridge | 171:3a7713b1edbc | 2102 | /*! @name RCR4 - SAI Receive Configuration 4 Register */ |
AnnaBridge | 171:3a7713b1edbc | 2103 | #define I2S_RCR4_FSD_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2104 | #define I2S_RCR4_FSD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2105 | #define I2S_RCR4_FSD(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FSD_SHIFT)) & I2S_RCR4_FSD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2106 | #define I2S_RCR4_FSP_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2107 | #define I2S_RCR4_FSP_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2108 | #define I2S_RCR4_FSP(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FSP_SHIFT)) & I2S_RCR4_FSP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2109 | #define I2S_RCR4_ONDEM_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2110 | #define I2S_RCR4_ONDEM_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2111 | #define I2S_RCR4_ONDEM(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_ONDEM_SHIFT)) & I2S_RCR4_ONDEM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2112 | #define I2S_RCR4_FSE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 2113 | #define I2S_RCR4_FSE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 2114 | #define I2S_RCR4_FSE(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FSE_SHIFT)) & I2S_RCR4_FSE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2115 | #define I2S_RCR4_MF_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 2116 | #define I2S_RCR4_MF_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 2117 | #define I2S_RCR4_MF(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_MF_SHIFT)) & I2S_RCR4_MF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2118 | #define I2S_RCR4_SYWD_MASK (0x1F00U) |
AnnaBridge | 171:3a7713b1edbc | 2119 | #define I2S_RCR4_SYWD_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2120 | #define I2S_RCR4_SYWD(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_SYWD_SHIFT)) & I2S_RCR4_SYWD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2121 | #define I2S_RCR4_FRSZ_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 2122 | #define I2S_RCR4_FRSZ_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2123 | #define I2S_RCR4_FRSZ(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FRSZ_SHIFT)) & I2S_RCR4_FRSZ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2124 | #define I2S_RCR4_FPACK_MASK (0x3000000U) |
AnnaBridge | 171:3a7713b1edbc | 2125 | #define I2S_RCR4_FPACK_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2126 | #define I2S_RCR4_FPACK(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FPACK_SHIFT)) & I2S_RCR4_FPACK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2127 | #define I2S_RCR4_FCONT_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 2128 | #define I2S_RCR4_FCONT_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 2129 | #define I2S_RCR4_FCONT(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR4_FCONT_SHIFT)) & I2S_RCR4_FCONT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2130 | |
AnnaBridge | 171:3a7713b1edbc | 2131 | /*! @name RCR5 - SAI Receive Configuration 5 Register */ |
AnnaBridge | 171:3a7713b1edbc | 2132 | #define I2S_RCR5_FBT_MASK (0x1F00U) |
AnnaBridge | 171:3a7713b1edbc | 2133 | #define I2S_RCR5_FBT_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2134 | #define I2S_RCR5_FBT(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_FBT_SHIFT)) & I2S_RCR5_FBT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2135 | #define I2S_RCR5_W0W_MASK (0x1F0000U) |
AnnaBridge | 171:3a7713b1edbc | 2136 | #define I2S_RCR5_W0W_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2137 | #define I2S_RCR5_W0W(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_W0W_SHIFT)) & I2S_RCR5_W0W_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2138 | #define I2S_RCR5_WNW_MASK (0x1F000000U) |
AnnaBridge | 171:3a7713b1edbc | 2139 | #define I2S_RCR5_WNW_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2140 | #define I2S_RCR5_WNW(x) (((uint32_t)(((uint32_t)(x)) << I2S_RCR5_WNW_SHIFT)) & I2S_RCR5_WNW_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2141 | |
AnnaBridge | 171:3a7713b1edbc | 2142 | /*! @name RDR - SAI Receive Data Register */ |
AnnaBridge | 171:3a7713b1edbc | 2143 | #define I2S_RDR_RDR_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 2144 | #define I2S_RDR_RDR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2145 | #define I2S_RDR_RDR(x) (((uint32_t)(((uint32_t)(x)) << I2S_RDR_RDR_SHIFT)) & I2S_RDR_RDR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2146 | |
AnnaBridge | 171:3a7713b1edbc | 2147 | /* The count of I2S_RDR */ |
AnnaBridge | 171:3a7713b1edbc | 2148 | #define I2S_RDR_COUNT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2149 | |
AnnaBridge | 171:3a7713b1edbc | 2150 | /*! @name RMR - SAI Receive Mask Register */ |
AnnaBridge | 171:3a7713b1edbc | 2151 | #define I2S_RMR_RWM_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 2152 | #define I2S_RMR_RWM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2153 | #define I2S_RMR_RWM(x) (((uint32_t)(((uint32_t)(x)) << I2S_RMR_RWM_SHIFT)) & I2S_RMR_RWM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2154 | |
AnnaBridge | 171:3a7713b1edbc | 2155 | /*! @name MCR - SAI MCLK Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 2156 | #define I2S_MCR_MICS_MASK (0x3000000U) |
AnnaBridge | 171:3a7713b1edbc | 2157 | #define I2S_MCR_MICS_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2158 | #define I2S_MCR_MICS(x) (((uint32_t)(((uint32_t)(x)) << I2S_MCR_MICS_SHIFT)) & I2S_MCR_MICS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2159 | #define I2S_MCR_MOE_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 2160 | #define I2S_MCR_MOE_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 2161 | #define I2S_MCR_MOE(x) (((uint32_t)(((uint32_t)(x)) << I2S_MCR_MOE_SHIFT)) & I2S_MCR_MOE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2162 | #define I2S_MCR_DUF_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 2163 | #define I2S_MCR_DUF_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 2164 | #define I2S_MCR_DUF(x) (((uint32_t)(((uint32_t)(x)) << I2S_MCR_DUF_SHIFT)) & I2S_MCR_DUF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2165 | |
AnnaBridge | 171:3a7713b1edbc | 2166 | |
AnnaBridge | 171:3a7713b1edbc | 2167 | /*! |
AnnaBridge | 171:3a7713b1edbc | 2168 | * @} |
AnnaBridge | 171:3a7713b1edbc | 2169 | */ /* end of group I2S_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 2170 | |
AnnaBridge | 171:3a7713b1edbc | 2171 | |
AnnaBridge | 171:3a7713b1edbc | 2172 | /* I2S - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 2173 | /** Peripheral I2S0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 2174 | #define I2S0_BASE (0x4002F000u) |
AnnaBridge | 171:3a7713b1edbc | 2175 | /** Peripheral I2S0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 2176 | #define I2S0 ((I2S_Type *)I2S0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 2177 | /** Array initializer of I2S peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 2178 | #define I2S_BASE_ADDRS { I2S0_BASE } |
AnnaBridge | 171:3a7713b1edbc | 2179 | /** Array initializer of I2S peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 2180 | #define I2S_BASE_PTRS { I2S0 } |
AnnaBridge | 171:3a7713b1edbc | 2181 | /** Interrupt vectors for the I2S peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 2182 | #define I2S_RX_IRQS { I2S0_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 2183 | #define I2S_TX_IRQS { I2S0_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 2184 | |
AnnaBridge | 171:3a7713b1edbc | 2185 | /*! |
AnnaBridge | 171:3a7713b1edbc | 2186 | * @} |
AnnaBridge | 171:3a7713b1edbc | 2187 | */ /* end of group I2S_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 2188 | |
AnnaBridge | 171:3a7713b1edbc | 2189 | |
AnnaBridge | 171:3a7713b1edbc | 2190 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 2191 | -- LCD Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 2192 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 2193 | |
AnnaBridge | 171:3a7713b1edbc | 2194 | /*! |
AnnaBridge | 171:3a7713b1edbc | 2195 | * @addtogroup LCD_Peripheral_Access_Layer LCD Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 2196 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 2197 | */ |
AnnaBridge | 171:3a7713b1edbc | 2198 | |
AnnaBridge | 171:3a7713b1edbc | 2199 | /** LCD - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 2200 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 2201 | __IO uint32_t GCR; /**< LCD General Control Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 2202 | __IO uint32_t AR; /**< LCD Auxiliary Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 2203 | __IO uint32_t FDCR; /**< LCD Fault Detect Control Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 2204 | __IO uint32_t FDSR; /**< LCD Fault Detect Status Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 2205 | __IO uint32_t PEN[2]; /**< LCD Pin Enable register, array offset: 0x10, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 2206 | __IO uint32_t BPEN[2]; /**< LCD Back Plane Enable register, array offset: 0x18, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 2207 | union { /* offset: 0x20 */ |
AnnaBridge | 171:3a7713b1edbc | 2208 | __IO uint32_t WF[16]; /**< LCD Waveform register, array offset: 0x20, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 2209 | __IO uint8_t WF8B[64]; /**< LCD Waveform Register 0...LCD Waveform Register 63., array offset: 0x20, array step: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 2210 | }; |
AnnaBridge | 171:3a7713b1edbc | 2211 | } LCD_Type; |
AnnaBridge | 171:3a7713b1edbc | 2212 | |
AnnaBridge | 171:3a7713b1edbc | 2213 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 2214 | -- LCD Register Masks |
AnnaBridge | 171:3a7713b1edbc | 2215 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 2216 | |
AnnaBridge | 171:3a7713b1edbc | 2217 | /*! |
AnnaBridge | 171:3a7713b1edbc | 2218 | * @addtogroup LCD_Register_Masks LCD Register Masks |
AnnaBridge | 171:3a7713b1edbc | 2219 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 2220 | */ |
AnnaBridge | 171:3a7713b1edbc | 2221 | |
AnnaBridge | 171:3a7713b1edbc | 2222 | /*! @name GCR - LCD General Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 2223 | #define LCD_GCR_DUTY_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 2224 | #define LCD_GCR_DUTY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2225 | #define LCD_GCR_DUTY(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_DUTY_SHIFT)) & LCD_GCR_DUTY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2226 | #define LCD_GCR_LCLK_MASK (0x38U) |
AnnaBridge | 171:3a7713b1edbc | 2227 | #define LCD_GCR_LCLK_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 2228 | #define LCD_GCR_LCLK(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCLK_SHIFT)) & LCD_GCR_LCLK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2229 | #define LCD_GCR_SOURCE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 2230 | #define LCD_GCR_SOURCE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 2231 | #define LCD_GCR_SOURCE(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_SOURCE_SHIFT)) & LCD_GCR_SOURCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2232 | #define LCD_GCR_LCDEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 2233 | #define LCD_GCR_LCDEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 2234 | #define LCD_GCR_LCDEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCDEN_SHIFT)) & LCD_GCR_LCDEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2235 | #define LCD_GCR_LCDSTP_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 2236 | #define LCD_GCR_LCDSTP_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2237 | #define LCD_GCR_LCDSTP(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCDSTP_SHIFT)) & LCD_GCR_LCDSTP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2238 | #define LCD_GCR_LCDDOZE_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 2239 | #define LCD_GCR_LCDDOZE_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 2240 | #define LCD_GCR_LCDDOZE(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LCDDOZE_SHIFT)) & LCD_GCR_LCDDOZE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2241 | #define LCD_GCR_FFR_MASK (0x400U) |
AnnaBridge | 171:3a7713b1edbc | 2242 | #define LCD_GCR_FFR_SHIFT (10U) |
AnnaBridge | 171:3a7713b1edbc | 2243 | #define LCD_GCR_FFR(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_FFR_SHIFT)) & LCD_GCR_FFR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2244 | #define LCD_GCR_ALTSOURCE_MASK (0x800U) |
AnnaBridge | 171:3a7713b1edbc | 2245 | #define LCD_GCR_ALTSOURCE_SHIFT (11U) |
AnnaBridge | 171:3a7713b1edbc | 2246 | #define LCD_GCR_ALTSOURCE(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_ALTSOURCE_SHIFT)) & LCD_GCR_ALTSOURCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2247 | #define LCD_GCR_ALTDIV_MASK (0x3000U) |
AnnaBridge | 171:3a7713b1edbc | 2248 | #define LCD_GCR_ALTDIV_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 2249 | #define LCD_GCR_ALTDIV(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_ALTDIV_SHIFT)) & LCD_GCR_ALTDIV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2250 | #define LCD_GCR_FDCIEN_MASK (0x4000U) |
AnnaBridge | 171:3a7713b1edbc | 2251 | #define LCD_GCR_FDCIEN_SHIFT (14U) |
AnnaBridge | 171:3a7713b1edbc | 2252 | #define LCD_GCR_FDCIEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_FDCIEN_SHIFT)) & LCD_GCR_FDCIEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2253 | #define LCD_GCR_PADSAFE_MASK (0x8000U) |
AnnaBridge | 171:3a7713b1edbc | 2254 | #define LCD_GCR_PADSAFE_SHIFT (15U) |
AnnaBridge | 171:3a7713b1edbc | 2255 | #define LCD_GCR_PADSAFE(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_PADSAFE_SHIFT)) & LCD_GCR_PADSAFE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2256 | #define LCD_GCR_VSUPPLY_MASK (0x20000U) |
AnnaBridge | 171:3a7713b1edbc | 2257 | #define LCD_GCR_VSUPPLY_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 2258 | #define LCD_GCR_VSUPPLY(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_VSUPPLY_SHIFT)) & LCD_GCR_VSUPPLY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2259 | #define LCD_GCR_LADJ_MASK (0x300000U) |
AnnaBridge | 171:3a7713b1edbc | 2260 | #define LCD_GCR_LADJ_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 2261 | #define LCD_GCR_LADJ(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_LADJ_SHIFT)) & LCD_GCR_LADJ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2262 | #define LCD_GCR_CPSEL_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 2263 | #define LCD_GCR_CPSEL_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 2264 | #define LCD_GCR_CPSEL(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_CPSEL_SHIFT)) & LCD_GCR_CPSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2265 | #define LCD_GCR_RVTRIM_MASK (0xF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2266 | #define LCD_GCR_RVTRIM_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2267 | #define LCD_GCR_RVTRIM(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_RVTRIM_SHIFT)) & LCD_GCR_RVTRIM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2268 | #define LCD_GCR_RVEN_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 2269 | #define LCD_GCR_RVEN_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 2270 | #define LCD_GCR_RVEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_GCR_RVEN_SHIFT)) & LCD_GCR_RVEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2271 | |
AnnaBridge | 171:3a7713b1edbc | 2272 | /*! @name AR - LCD Auxiliary Register */ |
AnnaBridge | 171:3a7713b1edbc | 2273 | #define LCD_AR_BRATE_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 2274 | #define LCD_AR_BRATE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2275 | #define LCD_AR_BRATE(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_BRATE_SHIFT)) & LCD_AR_BRATE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2276 | #define LCD_AR_BMODE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 2277 | #define LCD_AR_BMODE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 2278 | #define LCD_AR_BMODE(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_BMODE_SHIFT)) & LCD_AR_BMODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2279 | #define LCD_AR_BLANK_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 2280 | #define LCD_AR_BLANK_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 2281 | #define LCD_AR_BLANK(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_BLANK_SHIFT)) & LCD_AR_BLANK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2282 | #define LCD_AR_ALT_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 2283 | #define LCD_AR_ALT_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 2284 | #define LCD_AR_ALT(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_ALT_SHIFT)) & LCD_AR_ALT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2285 | #define LCD_AR_BLINK_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 2286 | #define LCD_AR_BLINK_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 2287 | #define LCD_AR_BLINK(x) (((uint32_t)(((uint32_t)(x)) << LCD_AR_BLINK_SHIFT)) & LCD_AR_BLINK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2288 | |
AnnaBridge | 171:3a7713b1edbc | 2289 | /*! @name FDCR - LCD Fault Detect Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 2290 | #define LCD_FDCR_FDPINID_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 2291 | #define LCD_FDCR_FDPINID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2292 | #define LCD_FDCR_FDPINID(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDPINID_SHIFT)) & LCD_FDCR_FDPINID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2293 | #define LCD_FDCR_FDBPEN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 2294 | #define LCD_FDCR_FDBPEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 2295 | #define LCD_FDCR_FDBPEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDBPEN_SHIFT)) & LCD_FDCR_FDBPEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2296 | #define LCD_FDCR_FDEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 2297 | #define LCD_FDCR_FDEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 2298 | #define LCD_FDCR_FDEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDEN_SHIFT)) & LCD_FDCR_FDEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2299 | #define LCD_FDCR_FDSWW_MASK (0xE00U) |
AnnaBridge | 171:3a7713b1edbc | 2300 | #define LCD_FDCR_FDSWW_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 2301 | #define LCD_FDCR_FDSWW(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDSWW_SHIFT)) & LCD_FDCR_FDSWW_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2302 | #define LCD_FDCR_FDPRS_MASK (0x7000U) |
AnnaBridge | 171:3a7713b1edbc | 2303 | #define LCD_FDCR_FDPRS_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 2304 | #define LCD_FDCR_FDPRS(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDCR_FDPRS_SHIFT)) & LCD_FDCR_FDPRS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2305 | |
AnnaBridge | 171:3a7713b1edbc | 2306 | /*! @name FDSR - LCD Fault Detect Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 2307 | #define LCD_FDSR_FDCNT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2308 | #define LCD_FDSR_FDCNT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2309 | #define LCD_FDSR_FDCNT(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDSR_FDCNT_SHIFT)) & LCD_FDSR_FDCNT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2310 | #define LCD_FDSR_FDCF_MASK (0x8000U) |
AnnaBridge | 171:3a7713b1edbc | 2311 | #define LCD_FDSR_FDCF_SHIFT (15U) |
AnnaBridge | 171:3a7713b1edbc | 2312 | #define LCD_FDSR_FDCF(x) (((uint32_t)(((uint32_t)(x)) << LCD_FDSR_FDCF_SHIFT)) & LCD_FDSR_FDCF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2313 | |
AnnaBridge | 171:3a7713b1edbc | 2314 | /*! @name PEN - LCD Pin Enable register */ |
AnnaBridge | 171:3a7713b1edbc | 2315 | #define LCD_PEN_PEN_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 2316 | #define LCD_PEN_PEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2317 | #define LCD_PEN_PEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_PEN_PEN_SHIFT)) & LCD_PEN_PEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2318 | |
AnnaBridge | 171:3a7713b1edbc | 2319 | /* The count of LCD_PEN */ |
AnnaBridge | 171:3a7713b1edbc | 2320 | #define LCD_PEN_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2321 | |
AnnaBridge | 171:3a7713b1edbc | 2322 | /*! @name BPEN - LCD Back Plane Enable register */ |
AnnaBridge | 171:3a7713b1edbc | 2323 | #define LCD_BPEN_BPEN_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 2324 | #define LCD_BPEN_BPEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2325 | #define LCD_BPEN_BPEN(x) (((uint32_t)(((uint32_t)(x)) << LCD_BPEN_BPEN_SHIFT)) & LCD_BPEN_BPEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2326 | |
AnnaBridge | 171:3a7713b1edbc | 2327 | /* The count of LCD_BPEN */ |
AnnaBridge | 171:3a7713b1edbc | 2328 | #define LCD_BPEN_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2329 | |
AnnaBridge | 171:3a7713b1edbc | 2330 | /*! @name WF - LCD Waveform register */ |
AnnaBridge | 171:3a7713b1edbc | 2331 | #define LCD_WF_WF0_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2332 | #define LCD_WF_WF0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2333 | #define LCD_WF_WF0(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF0_SHIFT)) & LCD_WF_WF0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2334 | #define LCD_WF_WF60_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2335 | #define LCD_WF_WF60_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2336 | #define LCD_WF_WF60(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF60_SHIFT)) & LCD_WF_WF60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2337 | #define LCD_WF_WF56_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2338 | #define LCD_WF_WF56_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2339 | #define LCD_WF_WF56(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF56_SHIFT)) & LCD_WF_WF56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2340 | #define LCD_WF_WF52_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2341 | #define LCD_WF_WF52_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2342 | #define LCD_WF_WF52(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF52_SHIFT)) & LCD_WF_WF52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2343 | #define LCD_WF_WF4_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2344 | #define LCD_WF_WF4_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2345 | #define LCD_WF_WF4(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF4_SHIFT)) & LCD_WF_WF4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2346 | #define LCD_WF_WF48_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2347 | #define LCD_WF_WF48_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2348 | #define LCD_WF_WF48(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF48_SHIFT)) & LCD_WF_WF48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2349 | #define LCD_WF_WF44_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2350 | #define LCD_WF_WF44_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2351 | #define LCD_WF_WF44(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF44_SHIFT)) & LCD_WF_WF44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2352 | #define LCD_WF_WF40_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2353 | #define LCD_WF_WF40_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2354 | #define LCD_WF_WF40(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF40_SHIFT)) & LCD_WF_WF40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2355 | #define LCD_WF_WF8_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2356 | #define LCD_WF_WF8_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2357 | #define LCD_WF_WF8(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF8_SHIFT)) & LCD_WF_WF8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2358 | #define LCD_WF_WF36_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2359 | #define LCD_WF_WF36_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2360 | #define LCD_WF_WF36(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF36_SHIFT)) & LCD_WF_WF36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2361 | #define LCD_WF_WF32_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2362 | #define LCD_WF_WF32_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2363 | #define LCD_WF_WF32(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF32_SHIFT)) & LCD_WF_WF32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2364 | #define LCD_WF_WF28_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2365 | #define LCD_WF_WF28_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2366 | #define LCD_WF_WF28(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF28_SHIFT)) & LCD_WF_WF28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2367 | #define LCD_WF_WF12_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2368 | #define LCD_WF_WF12_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2369 | #define LCD_WF_WF12(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF12_SHIFT)) & LCD_WF_WF12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2370 | #define LCD_WF_WF24_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2371 | #define LCD_WF_WF24_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2372 | #define LCD_WF_WF24(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF24_SHIFT)) & LCD_WF_WF24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2373 | #define LCD_WF_WF20_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2374 | #define LCD_WF_WF20_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2375 | #define LCD_WF_WF20(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF20_SHIFT)) & LCD_WF_WF20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2376 | #define LCD_WF_WF16_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 2377 | #define LCD_WF_WF16_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2378 | #define LCD_WF_WF16(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF16_SHIFT)) & LCD_WF_WF16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2379 | #define LCD_WF_WF5_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2380 | #define LCD_WF_WF5_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2381 | #define LCD_WF_WF5(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF5_SHIFT)) & LCD_WF_WF5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2382 | #define LCD_WF_WF49_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2383 | #define LCD_WF_WF49_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2384 | #define LCD_WF_WF49(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF49_SHIFT)) & LCD_WF_WF49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2385 | #define LCD_WF_WF45_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2386 | #define LCD_WF_WF45_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2387 | #define LCD_WF_WF45(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF45_SHIFT)) & LCD_WF_WF45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2388 | #define LCD_WF_WF61_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2389 | #define LCD_WF_WF61_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2390 | #define LCD_WF_WF61(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF61_SHIFT)) & LCD_WF_WF61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2391 | #define LCD_WF_WF25_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2392 | #define LCD_WF_WF25_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2393 | #define LCD_WF_WF25(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF25_SHIFT)) & LCD_WF_WF25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2394 | #define LCD_WF_WF17_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2395 | #define LCD_WF_WF17_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2396 | #define LCD_WF_WF17(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF17_SHIFT)) & LCD_WF_WF17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2397 | #define LCD_WF_WF41_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2398 | #define LCD_WF_WF41_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2399 | #define LCD_WF_WF41(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF41_SHIFT)) & LCD_WF_WF41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2400 | #define LCD_WF_WF13_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2401 | #define LCD_WF_WF13_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2402 | #define LCD_WF_WF13(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF13_SHIFT)) & LCD_WF_WF13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2403 | #define LCD_WF_WF57_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2404 | #define LCD_WF_WF57_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2405 | #define LCD_WF_WF57(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF57_SHIFT)) & LCD_WF_WF57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2406 | #define LCD_WF_WF53_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2407 | #define LCD_WF_WF53_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2408 | #define LCD_WF_WF53(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF53_SHIFT)) & LCD_WF_WF53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2409 | #define LCD_WF_WF37_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2410 | #define LCD_WF_WF37_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2411 | #define LCD_WF_WF37(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF37_SHIFT)) & LCD_WF_WF37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2412 | #define LCD_WF_WF9_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2413 | #define LCD_WF_WF9_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2414 | #define LCD_WF_WF9(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF9_SHIFT)) & LCD_WF_WF9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2415 | #define LCD_WF_WF1_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2416 | #define LCD_WF_WF1_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2417 | #define LCD_WF_WF1(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF1_SHIFT)) & LCD_WF_WF1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2418 | #define LCD_WF_WF29_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2419 | #define LCD_WF_WF29_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2420 | #define LCD_WF_WF29(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF29_SHIFT)) & LCD_WF_WF29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2421 | #define LCD_WF_WF33_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2422 | #define LCD_WF_WF33_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2423 | #define LCD_WF_WF33(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF33_SHIFT)) & LCD_WF_WF33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2424 | #define LCD_WF_WF21_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 2425 | #define LCD_WF_WF21_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 2426 | #define LCD_WF_WF21(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF21_SHIFT)) & LCD_WF_WF21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2427 | #define LCD_WF_WF26_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2428 | #define LCD_WF_WF26_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2429 | #define LCD_WF_WF26(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF26_SHIFT)) & LCD_WF_WF26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2430 | #define LCD_WF_WF46_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2431 | #define LCD_WF_WF46_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2432 | #define LCD_WF_WF46(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF46_SHIFT)) & LCD_WF_WF46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2433 | #define LCD_WF_WF6_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2434 | #define LCD_WF_WF6_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2435 | #define LCD_WF_WF6(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF6_SHIFT)) & LCD_WF_WF6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2436 | #define LCD_WF_WF42_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2437 | #define LCD_WF_WF42_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2438 | #define LCD_WF_WF42(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF42_SHIFT)) & LCD_WF_WF42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2439 | #define LCD_WF_WF18_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2440 | #define LCD_WF_WF18_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2441 | #define LCD_WF_WF18(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF18_SHIFT)) & LCD_WF_WF18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2442 | #define LCD_WF_WF38_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2443 | #define LCD_WF_WF38_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2444 | #define LCD_WF_WF38(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF38_SHIFT)) & LCD_WF_WF38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2445 | #define LCD_WF_WF22_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2446 | #define LCD_WF_WF22_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2447 | #define LCD_WF_WF22(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF22_SHIFT)) & LCD_WF_WF22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2448 | #define LCD_WF_WF34_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2449 | #define LCD_WF_WF34_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2450 | #define LCD_WF_WF34(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF34_SHIFT)) & LCD_WF_WF34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2451 | #define LCD_WF_WF50_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2452 | #define LCD_WF_WF50_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2453 | #define LCD_WF_WF50(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF50_SHIFT)) & LCD_WF_WF50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2454 | #define LCD_WF_WF14_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2455 | #define LCD_WF_WF14_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2456 | #define LCD_WF_WF14(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF14_SHIFT)) & LCD_WF_WF14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2457 | #define LCD_WF_WF54_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2458 | #define LCD_WF_WF54_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2459 | #define LCD_WF_WF54(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF54_SHIFT)) & LCD_WF_WF54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2460 | #define LCD_WF_WF2_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2461 | #define LCD_WF_WF2_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2462 | #define LCD_WF_WF2(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF2_SHIFT)) & LCD_WF_WF2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2463 | #define LCD_WF_WF58_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2464 | #define LCD_WF_WF58_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2465 | #define LCD_WF_WF58(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF58_SHIFT)) & LCD_WF_WF58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2466 | #define LCD_WF_WF30_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2467 | #define LCD_WF_WF30_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2468 | #define LCD_WF_WF30(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF30_SHIFT)) & LCD_WF_WF30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2469 | #define LCD_WF_WF62_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2470 | #define LCD_WF_WF62_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2471 | #define LCD_WF_WF62(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF62_SHIFT)) & LCD_WF_WF62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2472 | #define LCD_WF_WF10_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 2473 | #define LCD_WF_WF10_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2474 | #define LCD_WF_WF10(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF10_SHIFT)) & LCD_WF_WF10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2475 | #define LCD_WF_WF63_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2476 | #define LCD_WF_WF63_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2477 | #define LCD_WF_WF63(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF63_SHIFT)) & LCD_WF_WF63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2478 | #define LCD_WF_WF59_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2479 | #define LCD_WF_WF59_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2480 | #define LCD_WF_WF59(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF59_SHIFT)) & LCD_WF_WF59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2481 | #define LCD_WF_WF55_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2482 | #define LCD_WF_WF55_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2483 | #define LCD_WF_WF55(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF55_SHIFT)) & LCD_WF_WF55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2484 | #define LCD_WF_WF3_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2485 | #define LCD_WF_WF3_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2486 | #define LCD_WF_WF3(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF3_SHIFT)) & LCD_WF_WF3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2487 | #define LCD_WF_WF51_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2488 | #define LCD_WF_WF51_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2489 | #define LCD_WF_WF51(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF51_SHIFT)) & LCD_WF_WF51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2490 | #define LCD_WF_WF47_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2491 | #define LCD_WF_WF47_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2492 | #define LCD_WF_WF47(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF47_SHIFT)) & LCD_WF_WF47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2493 | #define LCD_WF_WF43_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2494 | #define LCD_WF_WF43_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2495 | #define LCD_WF_WF43(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF43_SHIFT)) & LCD_WF_WF43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2496 | #define LCD_WF_WF7_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2497 | #define LCD_WF_WF7_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2498 | #define LCD_WF_WF7(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF7_SHIFT)) & LCD_WF_WF7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2499 | #define LCD_WF_WF39_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2500 | #define LCD_WF_WF39_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2501 | #define LCD_WF_WF39(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF39_SHIFT)) & LCD_WF_WF39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2502 | #define LCD_WF_WF35_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2503 | #define LCD_WF_WF35_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2504 | #define LCD_WF_WF35(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF35_SHIFT)) & LCD_WF_WF35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2505 | #define LCD_WF_WF31_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2506 | #define LCD_WF_WF31_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2507 | #define LCD_WF_WF31(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF31_SHIFT)) & LCD_WF_WF31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2508 | #define LCD_WF_WF11_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2509 | #define LCD_WF_WF11_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2510 | #define LCD_WF_WF11(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF11_SHIFT)) & LCD_WF_WF11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2511 | #define LCD_WF_WF27_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2512 | #define LCD_WF_WF27_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2513 | #define LCD_WF_WF27(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF27_SHIFT)) & LCD_WF_WF27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2514 | #define LCD_WF_WF23_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2515 | #define LCD_WF_WF23_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2516 | #define LCD_WF_WF23(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF23_SHIFT)) & LCD_WF_WF23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2517 | #define LCD_WF_WF19_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2518 | #define LCD_WF_WF19_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2519 | #define LCD_WF_WF19(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF19_SHIFT)) & LCD_WF_WF19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2520 | #define LCD_WF_WF15_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 2521 | #define LCD_WF_WF15_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 2522 | #define LCD_WF_WF15(x) (((uint32_t)(((uint32_t)(x)) << LCD_WF_WF15_SHIFT)) & LCD_WF_WF15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2523 | |
AnnaBridge | 171:3a7713b1edbc | 2524 | /* The count of LCD_WF */ |
AnnaBridge | 171:3a7713b1edbc | 2525 | #define LCD_WF_COUNT (16U) |
AnnaBridge | 171:3a7713b1edbc | 2526 | |
AnnaBridge | 171:3a7713b1edbc | 2527 | /*! @name WF8B - LCD Waveform Register 0...LCD Waveform Register 63. */ |
AnnaBridge | 171:3a7713b1edbc | 2528 | #define LCD_WF8B_BPALCD0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2529 | #define LCD_WF8B_BPALCD0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2530 | #define LCD_WF8B_BPALCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD0_SHIFT)) & LCD_WF8B_BPALCD0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2531 | #define LCD_WF8B_BPALCD63_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2532 | #define LCD_WF8B_BPALCD63_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2533 | #define LCD_WF8B_BPALCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD63_SHIFT)) & LCD_WF8B_BPALCD63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2534 | #define LCD_WF8B_BPALCD62_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2535 | #define LCD_WF8B_BPALCD62_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2536 | #define LCD_WF8B_BPALCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD62_SHIFT)) & LCD_WF8B_BPALCD62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2537 | #define LCD_WF8B_BPALCD61_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2538 | #define LCD_WF8B_BPALCD61_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2539 | #define LCD_WF8B_BPALCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD61_SHIFT)) & LCD_WF8B_BPALCD61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2540 | #define LCD_WF8B_BPALCD60_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2541 | #define LCD_WF8B_BPALCD60_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2542 | #define LCD_WF8B_BPALCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD60_SHIFT)) & LCD_WF8B_BPALCD60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2543 | #define LCD_WF8B_BPALCD59_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2544 | #define LCD_WF8B_BPALCD59_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2545 | #define LCD_WF8B_BPALCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD59_SHIFT)) & LCD_WF8B_BPALCD59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2546 | #define LCD_WF8B_BPALCD58_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2547 | #define LCD_WF8B_BPALCD58_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2548 | #define LCD_WF8B_BPALCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD58_SHIFT)) & LCD_WF8B_BPALCD58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2549 | #define LCD_WF8B_BPALCD57_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2550 | #define LCD_WF8B_BPALCD57_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2551 | #define LCD_WF8B_BPALCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD57_SHIFT)) & LCD_WF8B_BPALCD57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2552 | #define LCD_WF8B_BPALCD1_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2553 | #define LCD_WF8B_BPALCD1_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2554 | #define LCD_WF8B_BPALCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD1_SHIFT)) & LCD_WF8B_BPALCD1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2555 | #define LCD_WF8B_BPALCD56_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2556 | #define LCD_WF8B_BPALCD56_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2557 | #define LCD_WF8B_BPALCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD56_SHIFT)) & LCD_WF8B_BPALCD56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2558 | #define LCD_WF8B_BPALCD55_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2559 | #define LCD_WF8B_BPALCD55_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2560 | #define LCD_WF8B_BPALCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD55_SHIFT)) & LCD_WF8B_BPALCD55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2561 | #define LCD_WF8B_BPALCD54_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2562 | #define LCD_WF8B_BPALCD54_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2563 | #define LCD_WF8B_BPALCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD54_SHIFT)) & LCD_WF8B_BPALCD54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2564 | #define LCD_WF8B_BPALCD53_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2565 | #define LCD_WF8B_BPALCD53_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2566 | #define LCD_WF8B_BPALCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD53_SHIFT)) & LCD_WF8B_BPALCD53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2567 | #define LCD_WF8B_BPALCD52_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2568 | #define LCD_WF8B_BPALCD52_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2569 | #define LCD_WF8B_BPALCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD52_SHIFT)) & LCD_WF8B_BPALCD52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2570 | #define LCD_WF8B_BPALCD51_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2571 | #define LCD_WF8B_BPALCD51_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2572 | #define LCD_WF8B_BPALCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD51_SHIFT)) & LCD_WF8B_BPALCD51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2573 | #define LCD_WF8B_BPALCD50_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2574 | #define LCD_WF8B_BPALCD50_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2575 | #define LCD_WF8B_BPALCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD50_SHIFT)) & LCD_WF8B_BPALCD50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2576 | #define LCD_WF8B_BPALCD2_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2577 | #define LCD_WF8B_BPALCD2_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2578 | #define LCD_WF8B_BPALCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD2_SHIFT)) & LCD_WF8B_BPALCD2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2579 | #define LCD_WF8B_BPALCD49_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2580 | #define LCD_WF8B_BPALCD49_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2581 | #define LCD_WF8B_BPALCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD49_SHIFT)) & LCD_WF8B_BPALCD49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2582 | #define LCD_WF8B_BPALCD48_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2583 | #define LCD_WF8B_BPALCD48_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2584 | #define LCD_WF8B_BPALCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD48_SHIFT)) & LCD_WF8B_BPALCD48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2585 | #define LCD_WF8B_BPALCD47_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2586 | #define LCD_WF8B_BPALCD47_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2587 | #define LCD_WF8B_BPALCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD47_SHIFT)) & LCD_WF8B_BPALCD47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2588 | #define LCD_WF8B_BPALCD46_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2589 | #define LCD_WF8B_BPALCD46_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2590 | #define LCD_WF8B_BPALCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD46_SHIFT)) & LCD_WF8B_BPALCD46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2591 | #define LCD_WF8B_BPALCD45_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2592 | #define LCD_WF8B_BPALCD45_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2593 | #define LCD_WF8B_BPALCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD45_SHIFT)) & LCD_WF8B_BPALCD45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2594 | #define LCD_WF8B_BPALCD44_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2595 | #define LCD_WF8B_BPALCD44_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2596 | #define LCD_WF8B_BPALCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD44_SHIFT)) & LCD_WF8B_BPALCD44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2597 | #define LCD_WF8B_BPALCD43_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2598 | #define LCD_WF8B_BPALCD43_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2599 | #define LCD_WF8B_BPALCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD43_SHIFT)) & LCD_WF8B_BPALCD43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2600 | #define LCD_WF8B_BPALCD3_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2601 | #define LCD_WF8B_BPALCD3_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2602 | #define LCD_WF8B_BPALCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD3_SHIFT)) & LCD_WF8B_BPALCD3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2603 | #define LCD_WF8B_BPALCD42_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2604 | #define LCD_WF8B_BPALCD42_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2605 | #define LCD_WF8B_BPALCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD42_SHIFT)) & LCD_WF8B_BPALCD42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2606 | #define LCD_WF8B_BPALCD41_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2607 | #define LCD_WF8B_BPALCD41_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2608 | #define LCD_WF8B_BPALCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD41_SHIFT)) & LCD_WF8B_BPALCD41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2609 | #define LCD_WF8B_BPALCD40_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2610 | #define LCD_WF8B_BPALCD40_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2611 | #define LCD_WF8B_BPALCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD40_SHIFT)) & LCD_WF8B_BPALCD40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2612 | #define LCD_WF8B_BPALCD39_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2613 | #define LCD_WF8B_BPALCD39_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2614 | #define LCD_WF8B_BPALCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD39_SHIFT)) & LCD_WF8B_BPALCD39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2615 | #define LCD_WF8B_BPALCD38_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2616 | #define LCD_WF8B_BPALCD38_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2617 | #define LCD_WF8B_BPALCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD38_SHIFT)) & LCD_WF8B_BPALCD38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2618 | #define LCD_WF8B_BPALCD37_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2619 | #define LCD_WF8B_BPALCD37_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2620 | #define LCD_WF8B_BPALCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD37_SHIFT)) & LCD_WF8B_BPALCD37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2621 | #define LCD_WF8B_BPALCD36_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2622 | #define LCD_WF8B_BPALCD36_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2623 | #define LCD_WF8B_BPALCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD36_SHIFT)) & LCD_WF8B_BPALCD36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2624 | #define LCD_WF8B_BPALCD4_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2625 | #define LCD_WF8B_BPALCD4_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2626 | #define LCD_WF8B_BPALCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD4_SHIFT)) & LCD_WF8B_BPALCD4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2627 | #define LCD_WF8B_BPALCD35_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2628 | #define LCD_WF8B_BPALCD35_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2629 | #define LCD_WF8B_BPALCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD35_SHIFT)) & LCD_WF8B_BPALCD35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2630 | #define LCD_WF8B_BPALCD34_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2631 | #define LCD_WF8B_BPALCD34_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2632 | #define LCD_WF8B_BPALCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD34_SHIFT)) & LCD_WF8B_BPALCD34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2633 | #define LCD_WF8B_BPALCD33_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2634 | #define LCD_WF8B_BPALCD33_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2635 | #define LCD_WF8B_BPALCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD33_SHIFT)) & LCD_WF8B_BPALCD33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2636 | #define LCD_WF8B_BPALCD32_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2637 | #define LCD_WF8B_BPALCD32_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2638 | #define LCD_WF8B_BPALCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD32_SHIFT)) & LCD_WF8B_BPALCD32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2639 | #define LCD_WF8B_BPALCD31_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2640 | #define LCD_WF8B_BPALCD31_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2641 | #define LCD_WF8B_BPALCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD31_SHIFT)) & LCD_WF8B_BPALCD31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2642 | #define LCD_WF8B_BPALCD30_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2643 | #define LCD_WF8B_BPALCD30_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2644 | #define LCD_WF8B_BPALCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD30_SHIFT)) & LCD_WF8B_BPALCD30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2645 | #define LCD_WF8B_BPALCD29_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2646 | #define LCD_WF8B_BPALCD29_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2647 | #define LCD_WF8B_BPALCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD29_SHIFT)) & LCD_WF8B_BPALCD29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2648 | #define LCD_WF8B_BPALCD5_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2649 | #define LCD_WF8B_BPALCD5_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2650 | #define LCD_WF8B_BPALCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD5_SHIFT)) & LCD_WF8B_BPALCD5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2651 | #define LCD_WF8B_BPALCD28_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2652 | #define LCD_WF8B_BPALCD28_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2653 | #define LCD_WF8B_BPALCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD28_SHIFT)) & LCD_WF8B_BPALCD28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2654 | #define LCD_WF8B_BPALCD27_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2655 | #define LCD_WF8B_BPALCD27_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2656 | #define LCD_WF8B_BPALCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD27_SHIFT)) & LCD_WF8B_BPALCD27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2657 | #define LCD_WF8B_BPALCD26_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2658 | #define LCD_WF8B_BPALCD26_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2659 | #define LCD_WF8B_BPALCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD26_SHIFT)) & LCD_WF8B_BPALCD26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2660 | #define LCD_WF8B_BPALCD25_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2661 | #define LCD_WF8B_BPALCD25_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2662 | #define LCD_WF8B_BPALCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD25_SHIFT)) & LCD_WF8B_BPALCD25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2663 | #define LCD_WF8B_BPALCD24_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2664 | #define LCD_WF8B_BPALCD24_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2665 | #define LCD_WF8B_BPALCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD24_SHIFT)) & LCD_WF8B_BPALCD24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2666 | #define LCD_WF8B_BPALCD23_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2667 | #define LCD_WF8B_BPALCD23_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2668 | #define LCD_WF8B_BPALCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD23_SHIFT)) & LCD_WF8B_BPALCD23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2669 | #define LCD_WF8B_BPALCD22_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2670 | #define LCD_WF8B_BPALCD22_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2671 | #define LCD_WF8B_BPALCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD22_SHIFT)) & LCD_WF8B_BPALCD22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2672 | #define LCD_WF8B_BPALCD6_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2673 | #define LCD_WF8B_BPALCD6_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2674 | #define LCD_WF8B_BPALCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD6_SHIFT)) & LCD_WF8B_BPALCD6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2675 | #define LCD_WF8B_BPALCD21_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2676 | #define LCD_WF8B_BPALCD21_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2677 | #define LCD_WF8B_BPALCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD21_SHIFT)) & LCD_WF8B_BPALCD21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2678 | #define LCD_WF8B_BPALCD20_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2679 | #define LCD_WF8B_BPALCD20_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2680 | #define LCD_WF8B_BPALCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD20_SHIFT)) & LCD_WF8B_BPALCD20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2681 | #define LCD_WF8B_BPALCD19_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2682 | #define LCD_WF8B_BPALCD19_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2683 | #define LCD_WF8B_BPALCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD19_SHIFT)) & LCD_WF8B_BPALCD19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2684 | #define LCD_WF8B_BPALCD18_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2685 | #define LCD_WF8B_BPALCD18_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2686 | #define LCD_WF8B_BPALCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD18_SHIFT)) & LCD_WF8B_BPALCD18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2687 | #define LCD_WF8B_BPALCD17_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2688 | #define LCD_WF8B_BPALCD17_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2689 | #define LCD_WF8B_BPALCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD17_SHIFT)) & LCD_WF8B_BPALCD17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2690 | #define LCD_WF8B_BPALCD16_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2691 | #define LCD_WF8B_BPALCD16_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2692 | #define LCD_WF8B_BPALCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD16_SHIFT)) & LCD_WF8B_BPALCD16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2693 | #define LCD_WF8B_BPALCD15_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2694 | #define LCD_WF8B_BPALCD15_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2695 | #define LCD_WF8B_BPALCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD15_SHIFT)) & LCD_WF8B_BPALCD15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2696 | #define LCD_WF8B_BPALCD7_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2697 | #define LCD_WF8B_BPALCD7_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2698 | #define LCD_WF8B_BPALCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD7_SHIFT)) & LCD_WF8B_BPALCD7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2699 | #define LCD_WF8B_BPALCD14_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2700 | #define LCD_WF8B_BPALCD14_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2701 | #define LCD_WF8B_BPALCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD14_SHIFT)) & LCD_WF8B_BPALCD14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2702 | #define LCD_WF8B_BPALCD13_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2703 | #define LCD_WF8B_BPALCD13_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2704 | #define LCD_WF8B_BPALCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD13_SHIFT)) & LCD_WF8B_BPALCD13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2705 | #define LCD_WF8B_BPALCD12_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2706 | #define LCD_WF8B_BPALCD12_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2707 | #define LCD_WF8B_BPALCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD12_SHIFT)) & LCD_WF8B_BPALCD12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2708 | #define LCD_WF8B_BPALCD11_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2709 | #define LCD_WF8B_BPALCD11_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2710 | #define LCD_WF8B_BPALCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD11_SHIFT)) & LCD_WF8B_BPALCD11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2711 | #define LCD_WF8B_BPALCD10_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2712 | #define LCD_WF8B_BPALCD10_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2713 | #define LCD_WF8B_BPALCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD10_SHIFT)) & LCD_WF8B_BPALCD10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2714 | #define LCD_WF8B_BPALCD9_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2715 | #define LCD_WF8B_BPALCD9_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2716 | #define LCD_WF8B_BPALCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD9_SHIFT)) & LCD_WF8B_BPALCD9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2717 | #define LCD_WF8B_BPALCD8_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 2718 | #define LCD_WF8B_BPALCD8_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 2719 | #define LCD_WF8B_BPALCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPALCD8_SHIFT)) & LCD_WF8B_BPALCD8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2720 | #define LCD_WF8B_BPBLCD1_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2721 | #define LCD_WF8B_BPBLCD1_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2722 | #define LCD_WF8B_BPBLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD1_SHIFT)) & LCD_WF8B_BPBLCD1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2723 | #define LCD_WF8B_BPBLCD32_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2724 | #define LCD_WF8B_BPBLCD32_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2725 | #define LCD_WF8B_BPBLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD32_SHIFT)) & LCD_WF8B_BPBLCD32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2726 | #define LCD_WF8B_BPBLCD30_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2727 | #define LCD_WF8B_BPBLCD30_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2728 | #define LCD_WF8B_BPBLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD30_SHIFT)) & LCD_WF8B_BPBLCD30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2729 | #define LCD_WF8B_BPBLCD60_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2730 | #define LCD_WF8B_BPBLCD60_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2731 | #define LCD_WF8B_BPBLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD60_SHIFT)) & LCD_WF8B_BPBLCD60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2732 | #define LCD_WF8B_BPBLCD24_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2733 | #define LCD_WF8B_BPBLCD24_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2734 | #define LCD_WF8B_BPBLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD24_SHIFT)) & LCD_WF8B_BPBLCD24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2735 | #define LCD_WF8B_BPBLCD28_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2736 | #define LCD_WF8B_BPBLCD28_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2737 | #define LCD_WF8B_BPBLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD28_SHIFT)) & LCD_WF8B_BPBLCD28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2738 | #define LCD_WF8B_BPBLCD23_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2739 | #define LCD_WF8B_BPBLCD23_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2740 | #define LCD_WF8B_BPBLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD23_SHIFT)) & LCD_WF8B_BPBLCD23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2741 | #define LCD_WF8B_BPBLCD48_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2742 | #define LCD_WF8B_BPBLCD48_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2743 | #define LCD_WF8B_BPBLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD48_SHIFT)) & LCD_WF8B_BPBLCD48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2744 | #define LCD_WF8B_BPBLCD10_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2745 | #define LCD_WF8B_BPBLCD10_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2746 | #define LCD_WF8B_BPBLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD10_SHIFT)) & LCD_WF8B_BPBLCD10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2747 | #define LCD_WF8B_BPBLCD15_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2748 | #define LCD_WF8B_BPBLCD15_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2749 | #define LCD_WF8B_BPBLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD15_SHIFT)) & LCD_WF8B_BPBLCD15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2750 | #define LCD_WF8B_BPBLCD36_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2751 | #define LCD_WF8B_BPBLCD36_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2752 | #define LCD_WF8B_BPBLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD36_SHIFT)) & LCD_WF8B_BPBLCD36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2753 | #define LCD_WF8B_BPBLCD44_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2754 | #define LCD_WF8B_BPBLCD44_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2755 | #define LCD_WF8B_BPBLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD44_SHIFT)) & LCD_WF8B_BPBLCD44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2756 | #define LCD_WF8B_BPBLCD62_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2757 | #define LCD_WF8B_BPBLCD62_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2758 | #define LCD_WF8B_BPBLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD62_SHIFT)) & LCD_WF8B_BPBLCD62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2759 | #define LCD_WF8B_BPBLCD53_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2760 | #define LCD_WF8B_BPBLCD53_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2761 | #define LCD_WF8B_BPBLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD53_SHIFT)) & LCD_WF8B_BPBLCD53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2762 | #define LCD_WF8B_BPBLCD22_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2763 | #define LCD_WF8B_BPBLCD22_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2764 | #define LCD_WF8B_BPBLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD22_SHIFT)) & LCD_WF8B_BPBLCD22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2765 | #define LCD_WF8B_BPBLCD47_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2766 | #define LCD_WF8B_BPBLCD47_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2767 | #define LCD_WF8B_BPBLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD47_SHIFT)) & LCD_WF8B_BPBLCD47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2768 | #define LCD_WF8B_BPBLCD33_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2769 | #define LCD_WF8B_BPBLCD33_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2770 | #define LCD_WF8B_BPBLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD33_SHIFT)) & LCD_WF8B_BPBLCD33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2771 | #define LCD_WF8B_BPBLCD2_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2772 | #define LCD_WF8B_BPBLCD2_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2773 | #define LCD_WF8B_BPBLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD2_SHIFT)) & LCD_WF8B_BPBLCD2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2774 | #define LCD_WF8B_BPBLCD49_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2775 | #define LCD_WF8B_BPBLCD49_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2776 | #define LCD_WF8B_BPBLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD49_SHIFT)) & LCD_WF8B_BPBLCD49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2777 | #define LCD_WF8B_BPBLCD0_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2778 | #define LCD_WF8B_BPBLCD0_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2779 | #define LCD_WF8B_BPBLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD0_SHIFT)) & LCD_WF8B_BPBLCD0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2780 | #define LCD_WF8B_BPBLCD55_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2781 | #define LCD_WF8B_BPBLCD55_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2782 | #define LCD_WF8B_BPBLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD55_SHIFT)) & LCD_WF8B_BPBLCD55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2783 | #define LCD_WF8B_BPBLCD56_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2784 | #define LCD_WF8B_BPBLCD56_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2785 | #define LCD_WF8B_BPBLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD56_SHIFT)) & LCD_WF8B_BPBLCD56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2786 | #define LCD_WF8B_BPBLCD21_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2787 | #define LCD_WF8B_BPBLCD21_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2788 | #define LCD_WF8B_BPBLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD21_SHIFT)) & LCD_WF8B_BPBLCD21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2789 | #define LCD_WF8B_BPBLCD6_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2790 | #define LCD_WF8B_BPBLCD6_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2791 | #define LCD_WF8B_BPBLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD6_SHIFT)) & LCD_WF8B_BPBLCD6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2792 | #define LCD_WF8B_BPBLCD29_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2793 | #define LCD_WF8B_BPBLCD29_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2794 | #define LCD_WF8B_BPBLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD29_SHIFT)) & LCD_WF8B_BPBLCD29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2795 | #define LCD_WF8B_BPBLCD25_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2796 | #define LCD_WF8B_BPBLCD25_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2797 | #define LCD_WF8B_BPBLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD25_SHIFT)) & LCD_WF8B_BPBLCD25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2798 | #define LCD_WF8B_BPBLCD8_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2799 | #define LCD_WF8B_BPBLCD8_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2800 | #define LCD_WF8B_BPBLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD8_SHIFT)) & LCD_WF8B_BPBLCD8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2801 | #define LCD_WF8B_BPBLCD54_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2802 | #define LCD_WF8B_BPBLCD54_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2803 | #define LCD_WF8B_BPBLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD54_SHIFT)) & LCD_WF8B_BPBLCD54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2804 | #define LCD_WF8B_BPBLCD38_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2805 | #define LCD_WF8B_BPBLCD38_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2806 | #define LCD_WF8B_BPBLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD38_SHIFT)) & LCD_WF8B_BPBLCD38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2807 | #define LCD_WF8B_BPBLCD43_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2808 | #define LCD_WF8B_BPBLCD43_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2809 | #define LCD_WF8B_BPBLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD43_SHIFT)) & LCD_WF8B_BPBLCD43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2810 | #define LCD_WF8B_BPBLCD20_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2811 | #define LCD_WF8B_BPBLCD20_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2812 | #define LCD_WF8B_BPBLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD20_SHIFT)) & LCD_WF8B_BPBLCD20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2813 | #define LCD_WF8B_BPBLCD9_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2814 | #define LCD_WF8B_BPBLCD9_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2815 | #define LCD_WF8B_BPBLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD9_SHIFT)) & LCD_WF8B_BPBLCD9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2816 | #define LCD_WF8B_BPBLCD7_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2817 | #define LCD_WF8B_BPBLCD7_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2818 | #define LCD_WF8B_BPBLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD7_SHIFT)) & LCD_WF8B_BPBLCD7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2819 | #define LCD_WF8B_BPBLCD50_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2820 | #define LCD_WF8B_BPBLCD50_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2821 | #define LCD_WF8B_BPBLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD50_SHIFT)) & LCD_WF8B_BPBLCD50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2822 | #define LCD_WF8B_BPBLCD40_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2823 | #define LCD_WF8B_BPBLCD40_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2824 | #define LCD_WF8B_BPBLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD40_SHIFT)) & LCD_WF8B_BPBLCD40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2825 | #define LCD_WF8B_BPBLCD63_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2826 | #define LCD_WF8B_BPBLCD63_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2827 | #define LCD_WF8B_BPBLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD63_SHIFT)) & LCD_WF8B_BPBLCD63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2828 | #define LCD_WF8B_BPBLCD26_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2829 | #define LCD_WF8B_BPBLCD26_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2830 | #define LCD_WF8B_BPBLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD26_SHIFT)) & LCD_WF8B_BPBLCD26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2831 | #define LCD_WF8B_BPBLCD12_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2832 | #define LCD_WF8B_BPBLCD12_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2833 | #define LCD_WF8B_BPBLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD12_SHIFT)) & LCD_WF8B_BPBLCD12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2834 | #define LCD_WF8B_BPBLCD19_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2835 | #define LCD_WF8B_BPBLCD19_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2836 | #define LCD_WF8B_BPBLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD19_SHIFT)) & LCD_WF8B_BPBLCD19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2837 | #define LCD_WF8B_BPBLCD34_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2838 | #define LCD_WF8B_BPBLCD34_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2839 | #define LCD_WF8B_BPBLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD34_SHIFT)) & LCD_WF8B_BPBLCD34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2840 | #define LCD_WF8B_BPBLCD39_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2841 | #define LCD_WF8B_BPBLCD39_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2842 | #define LCD_WF8B_BPBLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD39_SHIFT)) & LCD_WF8B_BPBLCD39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2843 | #define LCD_WF8B_BPBLCD59_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2844 | #define LCD_WF8B_BPBLCD59_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2845 | #define LCD_WF8B_BPBLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD59_SHIFT)) & LCD_WF8B_BPBLCD59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2846 | #define LCD_WF8B_BPBLCD61_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2847 | #define LCD_WF8B_BPBLCD61_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2848 | #define LCD_WF8B_BPBLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD61_SHIFT)) & LCD_WF8B_BPBLCD61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2849 | #define LCD_WF8B_BPBLCD37_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2850 | #define LCD_WF8B_BPBLCD37_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2851 | #define LCD_WF8B_BPBLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD37_SHIFT)) & LCD_WF8B_BPBLCD37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2852 | #define LCD_WF8B_BPBLCD31_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2853 | #define LCD_WF8B_BPBLCD31_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2854 | #define LCD_WF8B_BPBLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD31_SHIFT)) & LCD_WF8B_BPBLCD31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2855 | #define LCD_WF8B_BPBLCD58_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2856 | #define LCD_WF8B_BPBLCD58_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2857 | #define LCD_WF8B_BPBLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD58_SHIFT)) & LCD_WF8B_BPBLCD58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2858 | #define LCD_WF8B_BPBLCD18_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2859 | #define LCD_WF8B_BPBLCD18_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2860 | #define LCD_WF8B_BPBLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD18_SHIFT)) & LCD_WF8B_BPBLCD18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2861 | #define LCD_WF8B_BPBLCD45_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2862 | #define LCD_WF8B_BPBLCD45_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2863 | #define LCD_WF8B_BPBLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD45_SHIFT)) & LCD_WF8B_BPBLCD45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2864 | #define LCD_WF8B_BPBLCD27_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2865 | #define LCD_WF8B_BPBLCD27_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2866 | #define LCD_WF8B_BPBLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD27_SHIFT)) & LCD_WF8B_BPBLCD27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2867 | #define LCD_WF8B_BPBLCD14_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2868 | #define LCD_WF8B_BPBLCD14_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2869 | #define LCD_WF8B_BPBLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD14_SHIFT)) & LCD_WF8B_BPBLCD14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2870 | #define LCD_WF8B_BPBLCD51_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2871 | #define LCD_WF8B_BPBLCD51_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2872 | #define LCD_WF8B_BPBLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD51_SHIFT)) & LCD_WF8B_BPBLCD51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2873 | #define LCD_WF8B_BPBLCD52_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2874 | #define LCD_WF8B_BPBLCD52_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2875 | #define LCD_WF8B_BPBLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD52_SHIFT)) & LCD_WF8B_BPBLCD52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2876 | #define LCD_WF8B_BPBLCD4_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2877 | #define LCD_WF8B_BPBLCD4_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2878 | #define LCD_WF8B_BPBLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD4_SHIFT)) & LCD_WF8B_BPBLCD4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2879 | #define LCD_WF8B_BPBLCD35_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2880 | #define LCD_WF8B_BPBLCD35_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2881 | #define LCD_WF8B_BPBLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD35_SHIFT)) & LCD_WF8B_BPBLCD35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2882 | #define LCD_WF8B_BPBLCD17_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2883 | #define LCD_WF8B_BPBLCD17_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2884 | #define LCD_WF8B_BPBLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD17_SHIFT)) & LCD_WF8B_BPBLCD17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2885 | #define LCD_WF8B_BPBLCD41_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2886 | #define LCD_WF8B_BPBLCD41_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2887 | #define LCD_WF8B_BPBLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD41_SHIFT)) & LCD_WF8B_BPBLCD41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2888 | #define LCD_WF8B_BPBLCD11_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2889 | #define LCD_WF8B_BPBLCD11_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2890 | #define LCD_WF8B_BPBLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD11_SHIFT)) & LCD_WF8B_BPBLCD11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2891 | #define LCD_WF8B_BPBLCD46_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2892 | #define LCD_WF8B_BPBLCD46_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2893 | #define LCD_WF8B_BPBLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD46_SHIFT)) & LCD_WF8B_BPBLCD46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2894 | #define LCD_WF8B_BPBLCD57_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2895 | #define LCD_WF8B_BPBLCD57_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2896 | #define LCD_WF8B_BPBLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD57_SHIFT)) & LCD_WF8B_BPBLCD57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2897 | #define LCD_WF8B_BPBLCD42_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2898 | #define LCD_WF8B_BPBLCD42_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2899 | #define LCD_WF8B_BPBLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD42_SHIFT)) & LCD_WF8B_BPBLCD42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2900 | #define LCD_WF8B_BPBLCD5_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2901 | #define LCD_WF8B_BPBLCD5_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2902 | #define LCD_WF8B_BPBLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD5_SHIFT)) & LCD_WF8B_BPBLCD5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2903 | #define LCD_WF8B_BPBLCD3_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2904 | #define LCD_WF8B_BPBLCD3_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2905 | #define LCD_WF8B_BPBLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD3_SHIFT)) & LCD_WF8B_BPBLCD3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2906 | #define LCD_WF8B_BPBLCD16_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2907 | #define LCD_WF8B_BPBLCD16_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2908 | #define LCD_WF8B_BPBLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD16_SHIFT)) & LCD_WF8B_BPBLCD16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2909 | #define LCD_WF8B_BPBLCD13_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 2910 | #define LCD_WF8B_BPBLCD13_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 2911 | #define LCD_WF8B_BPBLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPBLCD13_SHIFT)) & LCD_WF8B_BPBLCD13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2912 | #define LCD_WF8B_BPCLCD10_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2913 | #define LCD_WF8B_BPCLCD10_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2914 | #define LCD_WF8B_BPCLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD10_SHIFT)) & LCD_WF8B_BPCLCD10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2915 | #define LCD_WF8B_BPCLCD55_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2916 | #define LCD_WF8B_BPCLCD55_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2917 | #define LCD_WF8B_BPCLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD55_SHIFT)) & LCD_WF8B_BPCLCD55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2918 | #define LCD_WF8B_BPCLCD2_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2919 | #define LCD_WF8B_BPCLCD2_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2920 | #define LCD_WF8B_BPCLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD2_SHIFT)) & LCD_WF8B_BPCLCD2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2921 | #define LCD_WF8B_BPCLCD23_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2922 | #define LCD_WF8B_BPCLCD23_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2923 | #define LCD_WF8B_BPCLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD23_SHIFT)) & LCD_WF8B_BPCLCD23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2924 | #define LCD_WF8B_BPCLCD48_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2925 | #define LCD_WF8B_BPCLCD48_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2926 | #define LCD_WF8B_BPCLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD48_SHIFT)) & LCD_WF8B_BPCLCD48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2927 | #define LCD_WF8B_BPCLCD24_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2928 | #define LCD_WF8B_BPCLCD24_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2929 | #define LCD_WF8B_BPCLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD24_SHIFT)) & LCD_WF8B_BPCLCD24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2930 | #define LCD_WF8B_BPCLCD60_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2931 | #define LCD_WF8B_BPCLCD60_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2932 | #define LCD_WF8B_BPCLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD60_SHIFT)) & LCD_WF8B_BPCLCD60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2933 | #define LCD_WF8B_BPCLCD47_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2934 | #define LCD_WF8B_BPCLCD47_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2935 | #define LCD_WF8B_BPCLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD47_SHIFT)) & LCD_WF8B_BPCLCD47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2936 | #define LCD_WF8B_BPCLCD22_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2937 | #define LCD_WF8B_BPCLCD22_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2938 | #define LCD_WF8B_BPCLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD22_SHIFT)) & LCD_WF8B_BPCLCD22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2939 | #define LCD_WF8B_BPCLCD8_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2940 | #define LCD_WF8B_BPCLCD8_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2941 | #define LCD_WF8B_BPCLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD8_SHIFT)) & LCD_WF8B_BPCLCD8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2942 | #define LCD_WF8B_BPCLCD21_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2943 | #define LCD_WF8B_BPCLCD21_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2944 | #define LCD_WF8B_BPCLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD21_SHIFT)) & LCD_WF8B_BPCLCD21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2945 | #define LCD_WF8B_BPCLCD49_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2946 | #define LCD_WF8B_BPCLCD49_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2947 | #define LCD_WF8B_BPCLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD49_SHIFT)) & LCD_WF8B_BPCLCD49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2948 | #define LCD_WF8B_BPCLCD25_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2949 | #define LCD_WF8B_BPCLCD25_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2950 | #define LCD_WF8B_BPCLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD25_SHIFT)) & LCD_WF8B_BPCLCD25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2951 | #define LCD_WF8B_BPCLCD1_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2952 | #define LCD_WF8B_BPCLCD1_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2953 | #define LCD_WF8B_BPCLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD1_SHIFT)) & LCD_WF8B_BPCLCD1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2954 | #define LCD_WF8B_BPCLCD20_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2955 | #define LCD_WF8B_BPCLCD20_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2956 | #define LCD_WF8B_BPCLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD20_SHIFT)) & LCD_WF8B_BPCLCD20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2957 | #define LCD_WF8B_BPCLCD50_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2958 | #define LCD_WF8B_BPCLCD50_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2959 | #define LCD_WF8B_BPCLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD50_SHIFT)) & LCD_WF8B_BPCLCD50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2960 | #define LCD_WF8B_BPCLCD19_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2961 | #define LCD_WF8B_BPCLCD19_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2962 | #define LCD_WF8B_BPCLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD19_SHIFT)) & LCD_WF8B_BPCLCD19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2963 | #define LCD_WF8B_BPCLCD26_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2964 | #define LCD_WF8B_BPCLCD26_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2965 | #define LCD_WF8B_BPCLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD26_SHIFT)) & LCD_WF8B_BPCLCD26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2966 | #define LCD_WF8B_BPCLCD59_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2967 | #define LCD_WF8B_BPCLCD59_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2968 | #define LCD_WF8B_BPCLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD59_SHIFT)) & LCD_WF8B_BPCLCD59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2969 | #define LCD_WF8B_BPCLCD61_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2970 | #define LCD_WF8B_BPCLCD61_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2971 | #define LCD_WF8B_BPCLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD61_SHIFT)) & LCD_WF8B_BPCLCD61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2972 | #define LCD_WF8B_BPCLCD46_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2973 | #define LCD_WF8B_BPCLCD46_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2974 | #define LCD_WF8B_BPCLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD46_SHIFT)) & LCD_WF8B_BPCLCD46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2975 | #define LCD_WF8B_BPCLCD18_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2976 | #define LCD_WF8B_BPCLCD18_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2977 | #define LCD_WF8B_BPCLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD18_SHIFT)) & LCD_WF8B_BPCLCD18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2978 | #define LCD_WF8B_BPCLCD5_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2979 | #define LCD_WF8B_BPCLCD5_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2980 | #define LCD_WF8B_BPCLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD5_SHIFT)) & LCD_WF8B_BPCLCD5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2981 | #define LCD_WF8B_BPCLCD63_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2982 | #define LCD_WF8B_BPCLCD63_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2983 | #define LCD_WF8B_BPCLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD63_SHIFT)) & LCD_WF8B_BPCLCD63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2984 | #define LCD_WF8B_BPCLCD27_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2985 | #define LCD_WF8B_BPCLCD27_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2986 | #define LCD_WF8B_BPCLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD27_SHIFT)) & LCD_WF8B_BPCLCD27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2987 | #define LCD_WF8B_BPCLCD17_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2988 | #define LCD_WF8B_BPCLCD17_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2989 | #define LCD_WF8B_BPCLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD17_SHIFT)) & LCD_WF8B_BPCLCD17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2990 | #define LCD_WF8B_BPCLCD51_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2991 | #define LCD_WF8B_BPCLCD51_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2992 | #define LCD_WF8B_BPCLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD51_SHIFT)) & LCD_WF8B_BPCLCD51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2993 | #define LCD_WF8B_BPCLCD9_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2994 | #define LCD_WF8B_BPCLCD9_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2995 | #define LCD_WF8B_BPCLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD9_SHIFT)) & LCD_WF8B_BPCLCD9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2996 | #define LCD_WF8B_BPCLCD54_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 2997 | #define LCD_WF8B_BPCLCD54_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 2998 | #define LCD_WF8B_BPCLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD54_SHIFT)) & LCD_WF8B_BPCLCD54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 2999 | #define LCD_WF8B_BPCLCD15_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3000 | #define LCD_WF8B_BPCLCD15_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3001 | #define LCD_WF8B_BPCLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD15_SHIFT)) & LCD_WF8B_BPCLCD15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3002 | #define LCD_WF8B_BPCLCD16_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3003 | #define LCD_WF8B_BPCLCD16_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3004 | #define LCD_WF8B_BPCLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD16_SHIFT)) & LCD_WF8B_BPCLCD16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3005 | #define LCD_WF8B_BPCLCD14_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3006 | #define LCD_WF8B_BPCLCD14_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3007 | #define LCD_WF8B_BPCLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD14_SHIFT)) & LCD_WF8B_BPCLCD14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3008 | #define LCD_WF8B_BPCLCD32_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3009 | #define LCD_WF8B_BPCLCD32_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3010 | #define LCD_WF8B_BPCLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD32_SHIFT)) & LCD_WF8B_BPCLCD32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3011 | #define LCD_WF8B_BPCLCD28_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3012 | #define LCD_WF8B_BPCLCD28_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3013 | #define LCD_WF8B_BPCLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD28_SHIFT)) & LCD_WF8B_BPCLCD28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3014 | #define LCD_WF8B_BPCLCD53_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3015 | #define LCD_WF8B_BPCLCD53_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3016 | #define LCD_WF8B_BPCLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD53_SHIFT)) & LCD_WF8B_BPCLCD53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3017 | #define LCD_WF8B_BPCLCD33_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3018 | #define LCD_WF8B_BPCLCD33_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3019 | #define LCD_WF8B_BPCLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD33_SHIFT)) & LCD_WF8B_BPCLCD33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3020 | #define LCD_WF8B_BPCLCD0_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3021 | #define LCD_WF8B_BPCLCD0_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3022 | #define LCD_WF8B_BPCLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD0_SHIFT)) & LCD_WF8B_BPCLCD0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3023 | #define LCD_WF8B_BPCLCD43_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3024 | #define LCD_WF8B_BPCLCD43_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3025 | #define LCD_WF8B_BPCLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD43_SHIFT)) & LCD_WF8B_BPCLCD43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3026 | #define LCD_WF8B_BPCLCD7_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3027 | #define LCD_WF8B_BPCLCD7_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3028 | #define LCD_WF8B_BPCLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD7_SHIFT)) & LCD_WF8B_BPCLCD7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3029 | #define LCD_WF8B_BPCLCD4_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3030 | #define LCD_WF8B_BPCLCD4_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3031 | #define LCD_WF8B_BPCLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD4_SHIFT)) & LCD_WF8B_BPCLCD4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3032 | #define LCD_WF8B_BPCLCD34_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3033 | #define LCD_WF8B_BPCLCD34_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3034 | #define LCD_WF8B_BPCLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD34_SHIFT)) & LCD_WF8B_BPCLCD34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3035 | #define LCD_WF8B_BPCLCD29_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3036 | #define LCD_WF8B_BPCLCD29_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3037 | #define LCD_WF8B_BPCLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD29_SHIFT)) & LCD_WF8B_BPCLCD29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3038 | #define LCD_WF8B_BPCLCD45_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3039 | #define LCD_WF8B_BPCLCD45_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3040 | #define LCD_WF8B_BPCLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD45_SHIFT)) & LCD_WF8B_BPCLCD45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3041 | #define LCD_WF8B_BPCLCD57_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3042 | #define LCD_WF8B_BPCLCD57_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3043 | #define LCD_WF8B_BPCLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD57_SHIFT)) & LCD_WF8B_BPCLCD57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3044 | #define LCD_WF8B_BPCLCD42_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3045 | #define LCD_WF8B_BPCLCD42_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3046 | #define LCD_WF8B_BPCLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD42_SHIFT)) & LCD_WF8B_BPCLCD42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3047 | #define LCD_WF8B_BPCLCD35_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3048 | #define LCD_WF8B_BPCLCD35_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3049 | #define LCD_WF8B_BPCLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD35_SHIFT)) & LCD_WF8B_BPCLCD35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3050 | #define LCD_WF8B_BPCLCD13_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3051 | #define LCD_WF8B_BPCLCD13_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3052 | #define LCD_WF8B_BPCLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD13_SHIFT)) & LCD_WF8B_BPCLCD13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3053 | #define LCD_WF8B_BPCLCD36_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3054 | #define LCD_WF8B_BPCLCD36_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3055 | #define LCD_WF8B_BPCLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD36_SHIFT)) & LCD_WF8B_BPCLCD36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3056 | #define LCD_WF8B_BPCLCD30_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3057 | #define LCD_WF8B_BPCLCD30_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3058 | #define LCD_WF8B_BPCLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD30_SHIFT)) & LCD_WF8B_BPCLCD30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3059 | #define LCD_WF8B_BPCLCD52_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3060 | #define LCD_WF8B_BPCLCD52_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3061 | #define LCD_WF8B_BPCLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD52_SHIFT)) & LCD_WF8B_BPCLCD52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3062 | #define LCD_WF8B_BPCLCD58_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3063 | #define LCD_WF8B_BPCLCD58_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3064 | #define LCD_WF8B_BPCLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD58_SHIFT)) & LCD_WF8B_BPCLCD58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3065 | #define LCD_WF8B_BPCLCD41_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3066 | #define LCD_WF8B_BPCLCD41_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3067 | #define LCD_WF8B_BPCLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD41_SHIFT)) & LCD_WF8B_BPCLCD41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3068 | #define LCD_WF8B_BPCLCD37_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3069 | #define LCD_WF8B_BPCLCD37_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3070 | #define LCD_WF8B_BPCLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD37_SHIFT)) & LCD_WF8B_BPCLCD37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3071 | #define LCD_WF8B_BPCLCD3_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3072 | #define LCD_WF8B_BPCLCD3_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3073 | #define LCD_WF8B_BPCLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD3_SHIFT)) & LCD_WF8B_BPCLCD3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3074 | #define LCD_WF8B_BPCLCD12_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3075 | #define LCD_WF8B_BPCLCD12_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3076 | #define LCD_WF8B_BPCLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD12_SHIFT)) & LCD_WF8B_BPCLCD12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3077 | #define LCD_WF8B_BPCLCD11_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3078 | #define LCD_WF8B_BPCLCD11_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3079 | #define LCD_WF8B_BPCLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD11_SHIFT)) & LCD_WF8B_BPCLCD11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3080 | #define LCD_WF8B_BPCLCD38_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3081 | #define LCD_WF8B_BPCLCD38_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3082 | #define LCD_WF8B_BPCLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD38_SHIFT)) & LCD_WF8B_BPCLCD38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3083 | #define LCD_WF8B_BPCLCD44_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3084 | #define LCD_WF8B_BPCLCD44_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3085 | #define LCD_WF8B_BPCLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD44_SHIFT)) & LCD_WF8B_BPCLCD44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3086 | #define LCD_WF8B_BPCLCD31_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3087 | #define LCD_WF8B_BPCLCD31_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3088 | #define LCD_WF8B_BPCLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD31_SHIFT)) & LCD_WF8B_BPCLCD31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3089 | #define LCD_WF8B_BPCLCD40_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3090 | #define LCD_WF8B_BPCLCD40_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3091 | #define LCD_WF8B_BPCLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD40_SHIFT)) & LCD_WF8B_BPCLCD40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3092 | #define LCD_WF8B_BPCLCD62_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3093 | #define LCD_WF8B_BPCLCD62_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3094 | #define LCD_WF8B_BPCLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD62_SHIFT)) & LCD_WF8B_BPCLCD62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3095 | #define LCD_WF8B_BPCLCD56_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3096 | #define LCD_WF8B_BPCLCD56_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3097 | #define LCD_WF8B_BPCLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD56_SHIFT)) & LCD_WF8B_BPCLCD56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3098 | #define LCD_WF8B_BPCLCD39_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3099 | #define LCD_WF8B_BPCLCD39_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3100 | #define LCD_WF8B_BPCLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD39_SHIFT)) & LCD_WF8B_BPCLCD39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3101 | #define LCD_WF8B_BPCLCD6_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 3102 | #define LCD_WF8B_BPCLCD6_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 3103 | #define LCD_WF8B_BPCLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPCLCD6_SHIFT)) & LCD_WF8B_BPCLCD6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3104 | #define LCD_WF8B_BPDLCD47_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3105 | #define LCD_WF8B_BPDLCD47_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3106 | #define LCD_WF8B_BPDLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD47_SHIFT)) & LCD_WF8B_BPDLCD47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3107 | #define LCD_WF8B_BPDLCD23_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3108 | #define LCD_WF8B_BPDLCD23_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3109 | #define LCD_WF8B_BPDLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD23_SHIFT)) & LCD_WF8B_BPDLCD23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3110 | #define LCD_WF8B_BPDLCD48_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3111 | #define LCD_WF8B_BPDLCD48_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3112 | #define LCD_WF8B_BPDLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD48_SHIFT)) & LCD_WF8B_BPDLCD48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3113 | #define LCD_WF8B_BPDLCD24_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3114 | #define LCD_WF8B_BPDLCD24_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3115 | #define LCD_WF8B_BPDLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD24_SHIFT)) & LCD_WF8B_BPDLCD24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3116 | #define LCD_WF8B_BPDLCD15_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3117 | #define LCD_WF8B_BPDLCD15_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3118 | #define LCD_WF8B_BPDLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD15_SHIFT)) & LCD_WF8B_BPDLCD15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3119 | #define LCD_WF8B_BPDLCD22_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3120 | #define LCD_WF8B_BPDLCD22_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3121 | #define LCD_WF8B_BPDLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD22_SHIFT)) & LCD_WF8B_BPDLCD22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3122 | #define LCD_WF8B_BPDLCD60_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3123 | #define LCD_WF8B_BPDLCD60_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3124 | #define LCD_WF8B_BPDLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD60_SHIFT)) & LCD_WF8B_BPDLCD60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3125 | #define LCD_WF8B_BPDLCD10_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3126 | #define LCD_WF8B_BPDLCD10_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3127 | #define LCD_WF8B_BPDLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD10_SHIFT)) & LCD_WF8B_BPDLCD10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3128 | #define LCD_WF8B_BPDLCD21_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3129 | #define LCD_WF8B_BPDLCD21_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3130 | #define LCD_WF8B_BPDLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD21_SHIFT)) & LCD_WF8B_BPDLCD21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3131 | #define LCD_WF8B_BPDLCD49_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3132 | #define LCD_WF8B_BPDLCD49_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3133 | #define LCD_WF8B_BPDLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD49_SHIFT)) & LCD_WF8B_BPDLCD49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3134 | #define LCD_WF8B_BPDLCD1_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3135 | #define LCD_WF8B_BPDLCD1_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3136 | #define LCD_WF8B_BPDLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD1_SHIFT)) & LCD_WF8B_BPDLCD1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3137 | #define LCD_WF8B_BPDLCD25_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3138 | #define LCD_WF8B_BPDLCD25_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3139 | #define LCD_WF8B_BPDLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD25_SHIFT)) & LCD_WF8B_BPDLCD25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3140 | #define LCD_WF8B_BPDLCD20_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3141 | #define LCD_WF8B_BPDLCD20_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3142 | #define LCD_WF8B_BPDLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD20_SHIFT)) & LCD_WF8B_BPDLCD20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3143 | #define LCD_WF8B_BPDLCD2_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3144 | #define LCD_WF8B_BPDLCD2_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3145 | #define LCD_WF8B_BPDLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD2_SHIFT)) & LCD_WF8B_BPDLCD2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3146 | #define LCD_WF8B_BPDLCD55_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3147 | #define LCD_WF8B_BPDLCD55_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3148 | #define LCD_WF8B_BPDLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD55_SHIFT)) & LCD_WF8B_BPDLCD55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3149 | #define LCD_WF8B_BPDLCD59_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3150 | #define LCD_WF8B_BPDLCD59_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3151 | #define LCD_WF8B_BPDLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD59_SHIFT)) & LCD_WF8B_BPDLCD59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3152 | #define LCD_WF8B_BPDLCD5_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3153 | #define LCD_WF8B_BPDLCD5_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3154 | #define LCD_WF8B_BPDLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD5_SHIFT)) & LCD_WF8B_BPDLCD5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3155 | #define LCD_WF8B_BPDLCD19_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3156 | #define LCD_WF8B_BPDLCD19_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3157 | #define LCD_WF8B_BPDLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD19_SHIFT)) & LCD_WF8B_BPDLCD19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3158 | #define LCD_WF8B_BPDLCD6_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3159 | #define LCD_WF8B_BPDLCD6_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3160 | #define LCD_WF8B_BPDLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD6_SHIFT)) & LCD_WF8B_BPDLCD6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3161 | #define LCD_WF8B_BPDLCD26_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3162 | #define LCD_WF8B_BPDLCD26_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3163 | #define LCD_WF8B_BPDLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD26_SHIFT)) & LCD_WF8B_BPDLCD26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3164 | #define LCD_WF8B_BPDLCD0_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3165 | #define LCD_WF8B_BPDLCD0_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3166 | #define LCD_WF8B_BPDLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD0_SHIFT)) & LCD_WF8B_BPDLCD0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3167 | #define LCD_WF8B_BPDLCD50_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3168 | #define LCD_WF8B_BPDLCD50_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3169 | #define LCD_WF8B_BPDLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD50_SHIFT)) & LCD_WF8B_BPDLCD50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3170 | #define LCD_WF8B_BPDLCD46_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3171 | #define LCD_WF8B_BPDLCD46_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3172 | #define LCD_WF8B_BPDLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD46_SHIFT)) & LCD_WF8B_BPDLCD46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3173 | #define LCD_WF8B_BPDLCD18_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3174 | #define LCD_WF8B_BPDLCD18_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3175 | #define LCD_WF8B_BPDLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD18_SHIFT)) & LCD_WF8B_BPDLCD18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3176 | #define LCD_WF8B_BPDLCD61_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3177 | #define LCD_WF8B_BPDLCD61_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3178 | #define LCD_WF8B_BPDLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD61_SHIFT)) & LCD_WF8B_BPDLCD61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3179 | #define LCD_WF8B_BPDLCD9_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3180 | #define LCD_WF8B_BPDLCD9_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3181 | #define LCD_WF8B_BPDLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD9_SHIFT)) & LCD_WF8B_BPDLCD9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3182 | #define LCD_WF8B_BPDLCD17_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3183 | #define LCD_WF8B_BPDLCD17_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3184 | #define LCD_WF8B_BPDLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD17_SHIFT)) & LCD_WF8B_BPDLCD17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3185 | #define LCD_WF8B_BPDLCD27_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3186 | #define LCD_WF8B_BPDLCD27_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3187 | #define LCD_WF8B_BPDLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD27_SHIFT)) & LCD_WF8B_BPDLCD27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3188 | #define LCD_WF8B_BPDLCD53_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3189 | #define LCD_WF8B_BPDLCD53_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3190 | #define LCD_WF8B_BPDLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD53_SHIFT)) & LCD_WF8B_BPDLCD53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3191 | #define LCD_WF8B_BPDLCD51_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3192 | #define LCD_WF8B_BPDLCD51_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3193 | #define LCD_WF8B_BPDLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD51_SHIFT)) & LCD_WF8B_BPDLCD51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3194 | #define LCD_WF8B_BPDLCD54_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3195 | #define LCD_WF8B_BPDLCD54_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3196 | #define LCD_WF8B_BPDLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD54_SHIFT)) & LCD_WF8B_BPDLCD54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3197 | #define LCD_WF8B_BPDLCD13_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3198 | #define LCD_WF8B_BPDLCD13_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3199 | #define LCD_WF8B_BPDLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD13_SHIFT)) & LCD_WF8B_BPDLCD13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3200 | #define LCD_WF8B_BPDLCD16_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3201 | #define LCD_WF8B_BPDLCD16_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3202 | #define LCD_WF8B_BPDLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD16_SHIFT)) & LCD_WF8B_BPDLCD16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3203 | #define LCD_WF8B_BPDLCD32_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3204 | #define LCD_WF8B_BPDLCD32_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3205 | #define LCD_WF8B_BPDLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD32_SHIFT)) & LCD_WF8B_BPDLCD32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3206 | #define LCD_WF8B_BPDLCD14_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3207 | #define LCD_WF8B_BPDLCD14_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3208 | #define LCD_WF8B_BPDLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD14_SHIFT)) & LCD_WF8B_BPDLCD14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3209 | #define LCD_WF8B_BPDLCD28_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3210 | #define LCD_WF8B_BPDLCD28_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3211 | #define LCD_WF8B_BPDLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD28_SHIFT)) & LCD_WF8B_BPDLCD28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3212 | #define LCD_WF8B_BPDLCD43_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3213 | #define LCD_WF8B_BPDLCD43_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3214 | #define LCD_WF8B_BPDLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD43_SHIFT)) & LCD_WF8B_BPDLCD43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3215 | #define LCD_WF8B_BPDLCD4_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3216 | #define LCD_WF8B_BPDLCD4_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3217 | #define LCD_WF8B_BPDLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD4_SHIFT)) & LCD_WF8B_BPDLCD4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3218 | #define LCD_WF8B_BPDLCD45_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3219 | #define LCD_WF8B_BPDLCD45_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3220 | #define LCD_WF8B_BPDLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD45_SHIFT)) & LCD_WF8B_BPDLCD45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3221 | #define LCD_WF8B_BPDLCD8_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3222 | #define LCD_WF8B_BPDLCD8_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3223 | #define LCD_WF8B_BPDLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD8_SHIFT)) & LCD_WF8B_BPDLCD8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3224 | #define LCD_WF8B_BPDLCD62_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3225 | #define LCD_WF8B_BPDLCD62_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3226 | #define LCD_WF8B_BPDLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD62_SHIFT)) & LCD_WF8B_BPDLCD62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3227 | #define LCD_WF8B_BPDLCD33_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3228 | #define LCD_WF8B_BPDLCD33_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3229 | #define LCD_WF8B_BPDLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD33_SHIFT)) & LCD_WF8B_BPDLCD33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3230 | #define LCD_WF8B_BPDLCD34_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3231 | #define LCD_WF8B_BPDLCD34_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3232 | #define LCD_WF8B_BPDLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD34_SHIFT)) & LCD_WF8B_BPDLCD34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3233 | #define LCD_WF8B_BPDLCD29_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3234 | #define LCD_WF8B_BPDLCD29_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3235 | #define LCD_WF8B_BPDLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD29_SHIFT)) & LCD_WF8B_BPDLCD29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3236 | #define LCD_WF8B_BPDLCD58_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3237 | #define LCD_WF8B_BPDLCD58_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3238 | #define LCD_WF8B_BPDLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD58_SHIFT)) & LCD_WF8B_BPDLCD58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3239 | #define LCD_WF8B_BPDLCD57_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3240 | #define LCD_WF8B_BPDLCD57_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3241 | #define LCD_WF8B_BPDLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD57_SHIFT)) & LCD_WF8B_BPDLCD57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3242 | #define LCD_WF8B_BPDLCD42_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3243 | #define LCD_WF8B_BPDLCD42_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3244 | #define LCD_WF8B_BPDLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD42_SHIFT)) & LCD_WF8B_BPDLCD42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3245 | #define LCD_WF8B_BPDLCD35_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3246 | #define LCD_WF8B_BPDLCD35_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3247 | #define LCD_WF8B_BPDLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD35_SHIFT)) & LCD_WF8B_BPDLCD35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3248 | #define LCD_WF8B_BPDLCD52_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3249 | #define LCD_WF8B_BPDLCD52_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3250 | #define LCD_WF8B_BPDLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD52_SHIFT)) & LCD_WF8B_BPDLCD52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3251 | #define LCD_WF8B_BPDLCD7_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3252 | #define LCD_WF8B_BPDLCD7_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3253 | #define LCD_WF8B_BPDLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD7_SHIFT)) & LCD_WF8B_BPDLCD7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3254 | #define LCD_WF8B_BPDLCD36_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3255 | #define LCD_WF8B_BPDLCD36_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3256 | #define LCD_WF8B_BPDLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD36_SHIFT)) & LCD_WF8B_BPDLCD36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3257 | #define LCD_WF8B_BPDLCD30_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3258 | #define LCD_WF8B_BPDLCD30_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3259 | #define LCD_WF8B_BPDLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD30_SHIFT)) & LCD_WF8B_BPDLCD30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3260 | #define LCD_WF8B_BPDLCD41_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3261 | #define LCD_WF8B_BPDLCD41_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3262 | #define LCD_WF8B_BPDLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD41_SHIFT)) & LCD_WF8B_BPDLCD41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3263 | #define LCD_WF8B_BPDLCD37_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3264 | #define LCD_WF8B_BPDLCD37_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3265 | #define LCD_WF8B_BPDLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD37_SHIFT)) & LCD_WF8B_BPDLCD37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3266 | #define LCD_WF8B_BPDLCD44_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3267 | #define LCD_WF8B_BPDLCD44_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3268 | #define LCD_WF8B_BPDLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD44_SHIFT)) & LCD_WF8B_BPDLCD44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3269 | #define LCD_WF8B_BPDLCD63_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3270 | #define LCD_WF8B_BPDLCD63_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3271 | #define LCD_WF8B_BPDLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD63_SHIFT)) & LCD_WF8B_BPDLCD63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3272 | #define LCD_WF8B_BPDLCD38_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3273 | #define LCD_WF8B_BPDLCD38_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3274 | #define LCD_WF8B_BPDLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD38_SHIFT)) & LCD_WF8B_BPDLCD38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3275 | #define LCD_WF8B_BPDLCD56_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3276 | #define LCD_WF8B_BPDLCD56_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3277 | #define LCD_WF8B_BPDLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD56_SHIFT)) & LCD_WF8B_BPDLCD56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3278 | #define LCD_WF8B_BPDLCD40_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3279 | #define LCD_WF8B_BPDLCD40_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3280 | #define LCD_WF8B_BPDLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD40_SHIFT)) & LCD_WF8B_BPDLCD40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3281 | #define LCD_WF8B_BPDLCD31_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3282 | #define LCD_WF8B_BPDLCD31_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3283 | #define LCD_WF8B_BPDLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD31_SHIFT)) & LCD_WF8B_BPDLCD31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3284 | #define LCD_WF8B_BPDLCD12_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3285 | #define LCD_WF8B_BPDLCD12_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3286 | #define LCD_WF8B_BPDLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD12_SHIFT)) & LCD_WF8B_BPDLCD12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3287 | #define LCD_WF8B_BPDLCD39_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3288 | #define LCD_WF8B_BPDLCD39_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3289 | #define LCD_WF8B_BPDLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD39_SHIFT)) & LCD_WF8B_BPDLCD39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3290 | #define LCD_WF8B_BPDLCD3_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3291 | #define LCD_WF8B_BPDLCD3_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3292 | #define LCD_WF8B_BPDLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD3_SHIFT)) & LCD_WF8B_BPDLCD3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3293 | #define LCD_WF8B_BPDLCD11_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 3294 | #define LCD_WF8B_BPDLCD11_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 3295 | #define LCD_WF8B_BPDLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPDLCD11_SHIFT)) & LCD_WF8B_BPDLCD11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3296 | #define LCD_WF8B_BPELCD12_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3297 | #define LCD_WF8B_BPELCD12_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3298 | #define LCD_WF8B_BPELCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD12_SHIFT)) & LCD_WF8B_BPELCD12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3299 | #define LCD_WF8B_BPELCD39_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3300 | #define LCD_WF8B_BPELCD39_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3301 | #define LCD_WF8B_BPELCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD39_SHIFT)) & LCD_WF8B_BPELCD39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3302 | #define LCD_WF8B_BPELCD3_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3303 | #define LCD_WF8B_BPELCD3_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3304 | #define LCD_WF8B_BPELCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD3_SHIFT)) & LCD_WF8B_BPELCD3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3305 | #define LCD_WF8B_BPELCD38_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3306 | #define LCD_WF8B_BPELCD38_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3307 | #define LCD_WF8B_BPELCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD38_SHIFT)) & LCD_WF8B_BPELCD38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3308 | #define LCD_WF8B_BPELCD40_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3309 | #define LCD_WF8B_BPELCD40_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3310 | #define LCD_WF8B_BPELCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD40_SHIFT)) & LCD_WF8B_BPELCD40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3311 | #define LCD_WF8B_BPELCD37_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3312 | #define LCD_WF8B_BPELCD37_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3313 | #define LCD_WF8B_BPELCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD37_SHIFT)) & LCD_WF8B_BPELCD37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3314 | #define LCD_WF8B_BPELCD41_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3315 | #define LCD_WF8B_BPELCD41_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3316 | #define LCD_WF8B_BPELCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD41_SHIFT)) & LCD_WF8B_BPELCD41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3317 | #define LCD_WF8B_BPELCD36_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3318 | #define LCD_WF8B_BPELCD36_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3319 | #define LCD_WF8B_BPELCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD36_SHIFT)) & LCD_WF8B_BPELCD36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3320 | #define LCD_WF8B_BPELCD8_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3321 | #define LCD_WF8B_BPELCD8_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3322 | #define LCD_WF8B_BPELCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD8_SHIFT)) & LCD_WF8B_BPELCD8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3323 | #define LCD_WF8B_BPELCD35_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3324 | #define LCD_WF8B_BPELCD35_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3325 | #define LCD_WF8B_BPELCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD35_SHIFT)) & LCD_WF8B_BPELCD35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3326 | #define LCD_WF8B_BPELCD42_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3327 | #define LCD_WF8B_BPELCD42_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3328 | #define LCD_WF8B_BPELCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD42_SHIFT)) & LCD_WF8B_BPELCD42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3329 | #define LCD_WF8B_BPELCD34_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3330 | #define LCD_WF8B_BPELCD34_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3331 | #define LCD_WF8B_BPELCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD34_SHIFT)) & LCD_WF8B_BPELCD34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3332 | #define LCD_WF8B_BPELCD33_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3333 | #define LCD_WF8B_BPELCD33_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3334 | #define LCD_WF8B_BPELCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD33_SHIFT)) & LCD_WF8B_BPELCD33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3335 | #define LCD_WF8B_BPELCD11_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3336 | #define LCD_WF8B_BPELCD11_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3337 | #define LCD_WF8B_BPELCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD11_SHIFT)) & LCD_WF8B_BPELCD11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3338 | #define LCD_WF8B_BPELCD43_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3339 | #define LCD_WF8B_BPELCD43_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3340 | #define LCD_WF8B_BPELCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD43_SHIFT)) & LCD_WF8B_BPELCD43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3341 | #define LCD_WF8B_BPELCD32_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3342 | #define LCD_WF8B_BPELCD32_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3343 | #define LCD_WF8B_BPELCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD32_SHIFT)) & LCD_WF8B_BPELCD32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3344 | #define LCD_WF8B_BPELCD31_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3345 | #define LCD_WF8B_BPELCD31_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3346 | #define LCD_WF8B_BPELCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD31_SHIFT)) & LCD_WF8B_BPELCD31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3347 | #define LCD_WF8B_BPELCD44_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3348 | #define LCD_WF8B_BPELCD44_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3349 | #define LCD_WF8B_BPELCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD44_SHIFT)) & LCD_WF8B_BPELCD44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3350 | #define LCD_WF8B_BPELCD30_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3351 | #define LCD_WF8B_BPELCD30_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3352 | #define LCD_WF8B_BPELCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD30_SHIFT)) & LCD_WF8B_BPELCD30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3353 | #define LCD_WF8B_BPELCD29_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3354 | #define LCD_WF8B_BPELCD29_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3355 | #define LCD_WF8B_BPELCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD29_SHIFT)) & LCD_WF8B_BPELCD29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3356 | #define LCD_WF8B_BPELCD7_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3357 | #define LCD_WF8B_BPELCD7_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3358 | #define LCD_WF8B_BPELCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD7_SHIFT)) & LCD_WF8B_BPELCD7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3359 | #define LCD_WF8B_BPELCD45_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3360 | #define LCD_WF8B_BPELCD45_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3361 | #define LCD_WF8B_BPELCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD45_SHIFT)) & LCD_WF8B_BPELCD45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3362 | #define LCD_WF8B_BPELCD28_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3363 | #define LCD_WF8B_BPELCD28_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3364 | #define LCD_WF8B_BPELCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD28_SHIFT)) & LCD_WF8B_BPELCD28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3365 | #define LCD_WF8B_BPELCD2_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3366 | #define LCD_WF8B_BPELCD2_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3367 | #define LCD_WF8B_BPELCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD2_SHIFT)) & LCD_WF8B_BPELCD2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3368 | #define LCD_WF8B_BPELCD27_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3369 | #define LCD_WF8B_BPELCD27_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3370 | #define LCD_WF8B_BPELCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD27_SHIFT)) & LCD_WF8B_BPELCD27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3371 | #define LCD_WF8B_BPELCD46_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3372 | #define LCD_WF8B_BPELCD46_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3373 | #define LCD_WF8B_BPELCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD46_SHIFT)) & LCD_WF8B_BPELCD46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3374 | #define LCD_WF8B_BPELCD26_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3375 | #define LCD_WF8B_BPELCD26_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3376 | #define LCD_WF8B_BPELCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD26_SHIFT)) & LCD_WF8B_BPELCD26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3377 | #define LCD_WF8B_BPELCD10_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3378 | #define LCD_WF8B_BPELCD10_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3379 | #define LCD_WF8B_BPELCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD10_SHIFT)) & LCD_WF8B_BPELCD10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3380 | #define LCD_WF8B_BPELCD13_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3381 | #define LCD_WF8B_BPELCD13_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3382 | #define LCD_WF8B_BPELCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD13_SHIFT)) & LCD_WF8B_BPELCD13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3383 | #define LCD_WF8B_BPELCD25_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3384 | #define LCD_WF8B_BPELCD25_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3385 | #define LCD_WF8B_BPELCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD25_SHIFT)) & LCD_WF8B_BPELCD25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3386 | #define LCD_WF8B_BPELCD5_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3387 | #define LCD_WF8B_BPELCD5_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3388 | #define LCD_WF8B_BPELCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD5_SHIFT)) & LCD_WF8B_BPELCD5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3389 | #define LCD_WF8B_BPELCD24_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3390 | #define LCD_WF8B_BPELCD24_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3391 | #define LCD_WF8B_BPELCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD24_SHIFT)) & LCD_WF8B_BPELCD24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3392 | #define LCD_WF8B_BPELCD47_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3393 | #define LCD_WF8B_BPELCD47_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3394 | #define LCD_WF8B_BPELCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD47_SHIFT)) & LCD_WF8B_BPELCD47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3395 | #define LCD_WF8B_BPELCD23_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3396 | #define LCD_WF8B_BPELCD23_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3397 | #define LCD_WF8B_BPELCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD23_SHIFT)) & LCD_WF8B_BPELCD23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3398 | #define LCD_WF8B_BPELCD22_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3399 | #define LCD_WF8B_BPELCD22_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3400 | #define LCD_WF8B_BPELCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD22_SHIFT)) & LCD_WF8B_BPELCD22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3401 | #define LCD_WF8B_BPELCD48_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3402 | #define LCD_WF8B_BPELCD48_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3403 | #define LCD_WF8B_BPELCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD48_SHIFT)) & LCD_WF8B_BPELCD48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3404 | #define LCD_WF8B_BPELCD21_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3405 | #define LCD_WF8B_BPELCD21_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3406 | #define LCD_WF8B_BPELCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD21_SHIFT)) & LCD_WF8B_BPELCD21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3407 | #define LCD_WF8B_BPELCD49_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3408 | #define LCD_WF8B_BPELCD49_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3409 | #define LCD_WF8B_BPELCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD49_SHIFT)) & LCD_WF8B_BPELCD49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3410 | #define LCD_WF8B_BPELCD20_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3411 | #define LCD_WF8B_BPELCD20_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3412 | #define LCD_WF8B_BPELCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD20_SHIFT)) & LCD_WF8B_BPELCD20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3413 | #define LCD_WF8B_BPELCD19_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3414 | #define LCD_WF8B_BPELCD19_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3415 | #define LCD_WF8B_BPELCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD19_SHIFT)) & LCD_WF8B_BPELCD19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3416 | #define LCD_WF8B_BPELCD9_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3417 | #define LCD_WF8B_BPELCD9_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3418 | #define LCD_WF8B_BPELCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD9_SHIFT)) & LCD_WF8B_BPELCD9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3419 | #define LCD_WF8B_BPELCD50_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3420 | #define LCD_WF8B_BPELCD50_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3421 | #define LCD_WF8B_BPELCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD50_SHIFT)) & LCD_WF8B_BPELCD50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3422 | #define LCD_WF8B_BPELCD18_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3423 | #define LCD_WF8B_BPELCD18_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3424 | #define LCD_WF8B_BPELCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD18_SHIFT)) & LCD_WF8B_BPELCD18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3425 | #define LCD_WF8B_BPELCD6_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3426 | #define LCD_WF8B_BPELCD6_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3427 | #define LCD_WF8B_BPELCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD6_SHIFT)) & LCD_WF8B_BPELCD6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3428 | #define LCD_WF8B_BPELCD17_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3429 | #define LCD_WF8B_BPELCD17_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3430 | #define LCD_WF8B_BPELCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD17_SHIFT)) & LCD_WF8B_BPELCD17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3431 | #define LCD_WF8B_BPELCD51_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3432 | #define LCD_WF8B_BPELCD51_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3433 | #define LCD_WF8B_BPELCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD51_SHIFT)) & LCD_WF8B_BPELCD51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3434 | #define LCD_WF8B_BPELCD16_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3435 | #define LCD_WF8B_BPELCD16_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3436 | #define LCD_WF8B_BPELCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD16_SHIFT)) & LCD_WF8B_BPELCD16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3437 | #define LCD_WF8B_BPELCD56_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3438 | #define LCD_WF8B_BPELCD56_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3439 | #define LCD_WF8B_BPELCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD56_SHIFT)) & LCD_WF8B_BPELCD56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3440 | #define LCD_WF8B_BPELCD57_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3441 | #define LCD_WF8B_BPELCD57_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3442 | #define LCD_WF8B_BPELCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD57_SHIFT)) & LCD_WF8B_BPELCD57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3443 | #define LCD_WF8B_BPELCD52_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3444 | #define LCD_WF8B_BPELCD52_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3445 | #define LCD_WF8B_BPELCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD52_SHIFT)) & LCD_WF8B_BPELCD52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3446 | #define LCD_WF8B_BPELCD1_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3447 | #define LCD_WF8B_BPELCD1_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3448 | #define LCD_WF8B_BPELCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD1_SHIFT)) & LCD_WF8B_BPELCD1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3449 | #define LCD_WF8B_BPELCD58_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3450 | #define LCD_WF8B_BPELCD58_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3451 | #define LCD_WF8B_BPELCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD58_SHIFT)) & LCD_WF8B_BPELCD58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3452 | #define LCD_WF8B_BPELCD59_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3453 | #define LCD_WF8B_BPELCD59_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3454 | #define LCD_WF8B_BPELCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD59_SHIFT)) & LCD_WF8B_BPELCD59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3455 | #define LCD_WF8B_BPELCD53_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3456 | #define LCD_WF8B_BPELCD53_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3457 | #define LCD_WF8B_BPELCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD53_SHIFT)) & LCD_WF8B_BPELCD53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3458 | #define LCD_WF8B_BPELCD14_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3459 | #define LCD_WF8B_BPELCD14_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3460 | #define LCD_WF8B_BPELCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD14_SHIFT)) & LCD_WF8B_BPELCD14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3461 | #define LCD_WF8B_BPELCD0_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3462 | #define LCD_WF8B_BPELCD0_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3463 | #define LCD_WF8B_BPELCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD0_SHIFT)) & LCD_WF8B_BPELCD0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3464 | #define LCD_WF8B_BPELCD60_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3465 | #define LCD_WF8B_BPELCD60_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3466 | #define LCD_WF8B_BPELCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD60_SHIFT)) & LCD_WF8B_BPELCD60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3467 | #define LCD_WF8B_BPELCD15_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3468 | #define LCD_WF8B_BPELCD15_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3469 | #define LCD_WF8B_BPELCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD15_SHIFT)) & LCD_WF8B_BPELCD15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3470 | #define LCD_WF8B_BPELCD61_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3471 | #define LCD_WF8B_BPELCD61_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3472 | #define LCD_WF8B_BPELCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD61_SHIFT)) & LCD_WF8B_BPELCD61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3473 | #define LCD_WF8B_BPELCD54_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3474 | #define LCD_WF8B_BPELCD54_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3475 | #define LCD_WF8B_BPELCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD54_SHIFT)) & LCD_WF8B_BPELCD54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3476 | #define LCD_WF8B_BPELCD62_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3477 | #define LCD_WF8B_BPELCD62_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3478 | #define LCD_WF8B_BPELCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD62_SHIFT)) & LCD_WF8B_BPELCD62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3479 | #define LCD_WF8B_BPELCD63_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3480 | #define LCD_WF8B_BPELCD63_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3481 | #define LCD_WF8B_BPELCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD63_SHIFT)) & LCD_WF8B_BPELCD63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3482 | #define LCD_WF8B_BPELCD55_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3483 | #define LCD_WF8B_BPELCD55_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3484 | #define LCD_WF8B_BPELCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD55_SHIFT)) & LCD_WF8B_BPELCD55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3485 | #define LCD_WF8B_BPELCD4_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 3486 | #define LCD_WF8B_BPELCD4_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 3487 | #define LCD_WF8B_BPELCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPELCD4_SHIFT)) & LCD_WF8B_BPELCD4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3488 | #define LCD_WF8B_BPFLCD13_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3489 | #define LCD_WF8B_BPFLCD13_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3490 | #define LCD_WF8B_BPFLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD13_SHIFT)) & LCD_WF8B_BPFLCD13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3491 | #define LCD_WF8B_BPFLCD39_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3492 | #define LCD_WF8B_BPFLCD39_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3493 | #define LCD_WF8B_BPFLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD39_SHIFT)) & LCD_WF8B_BPFLCD39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3494 | #define LCD_WF8B_BPFLCD55_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3495 | #define LCD_WF8B_BPFLCD55_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3496 | #define LCD_WF8B_BPFLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD55_SHIFT)) & LCD_WF8B_BPFLCD55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3497 | #define LCD_WF8B_BPFLCD47_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3498 | #define LCD_WF8B_BPFLCD47_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3499 | #define LCD_WF8B_BPFLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD47_SHIFT)) & LCD_WF8B_BPFLCD47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3500 | #define LCD_WF8B_BPFLCD63_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3501 | #define LCD_WF8B_BPFLCD63_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3502 | #define LCD_WF8B_BPFLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD63_SHIFT)) & LCD_WF8B_BPFLCD63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3503 | #define LCD_WF8B_BPFLCD43_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3504 | #define LCD_WF8B_BPFLCD43_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3505 | #define LCD_WF8B_BPFLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD43_SHIFT)) & LCD_WF8B_BPFLCD43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3506 | #define LCD_WF8B_BPFLCD5_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3507 | #define LCD_WF8B_BPFLCD5_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3508 | #define LCD_WF8B_BPFLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD5_SHIFT)) & LCD_WF8B_BPFLCD5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3509 | #define LCD_WF8B_BPFLCD62_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3510 | #define LCD_WF8B_BPFLCD62_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3511 | #define LCD_WF8B_BPFLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD62_SHIFT)) & LCD_WF8B_BPFLCD62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3512 | #define LCD_WF8B_BPFLCD14_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3513 | #define LCD_WF8B_BPFLCD14_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3514 | #define LCD_WF8B_BPFLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD14_SHIFT)) & LCD_WF8B_BPFLCD14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3515 | #define LCD_WF8B_BPFLCD24_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3516 | #define LCD_WF8B_BPFLCD24_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3517 | #define LCD_WF8B_BPFLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD24_SHIFT)) & LCD_WF8B_BPFLCD24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3518 | #define LCD_WF8B_BPFLCD54_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3519 | #define LCD_WF8B_BPFLCD54_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3520 | #define LCD_WF8B_BPFLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD54_SHIFT)) & LCD_WF8B_BPFLCD54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3521 | #define LCD_WF8B_BPFLCD15_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3522 | #define LCD_WF8B_BPFLCD15_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3523 | #define LCD_WF8B_BPFLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD15_SHIFT)) & LCD_WF8B_BPFLCD15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3524 | #define LCD_WF8B_BPFLCD32_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3525 | #define LCD_WF8B_BPFLCD32_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3526 | #define LCD_WF8B_BPFLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD32_SHIFT)) & LCD_WF8B_BPFLCD32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3527 | #define LCD_WF8B_BPFLCD61_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3528 | #define LCD_WF8B_BPFLCD61_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3529 | #define LCD_WF8B_BPFLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD61_SHIFT)) & LCD_WF8B_BPFLCD61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3530 | #define LCD_WF8B_BPFLCD25_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3531 | #define LCD_WF8B_BPFLCD25_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3532 | #define LCD_WF8B_BPFLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD25_SHIFT)) & LCD_WF8B_BPFLCD25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3533 | #define LCD_WF8B_BPFLCD60_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3534 | #define LCD_WF8B_BPFLCD60_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3535 | #define LCD_WF8B_BPFLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD60_SHIFT)) & LCD_WF8B_BPFLCD60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3536 | #define LCD_WF8B_BPFLCD41_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3537 | #define LCD_WF8B_BPFLCD41_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3538 | #define LCD_WF8B_BPFLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD41_SHIFT)) & LCD_WF8B_BPFLCD41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3539 | #define LCD_WF8B_BPFLCD33_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3540 | #define LCD_WF8B_BPFLCD33_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3541 | #define LCD_WF8B_BPFLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD33_SHIFT)) & LCD_WF8B_BPFLCD33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3542 | #define LCD_WF8B_BPFLCD53_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3543 | #define LCD_WF8B_BPFLCD53_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3544 | #define LCD_WF8B_BPFLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD53_SHIFT)) & LCD_WF8B_BPFLCD53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3545 | #define LCD_WF8B_BPFLCD59_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3546 | #define LCD_WF8B_BPFLCD59_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3547 | #define LCD_WF8B_BPFLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD59_SHIFT)) & LCD_WF8B_BPFLCD59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3548 | #define LCD_WF8B_BPFLCD0_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3549 | #define LCD_WF8B_BPFLCD0_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3550 | #define LCD_WF8B_BPFLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD0_SHIFT)) & LCD_WF8B_BPFLCD0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3551 | #define LCD_WF8B_BPFLCD46_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3552 | #define LCD_WF8B_BPFLCD46_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3553 | #define LCD_WF8B_BPFLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD46_SHIFT)) & LCD_WF8B_BPFLCD46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3554 | #define LCD_WF8B_BPFLCD58_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3555 | #define LCD_WF8B_BPFLCD58_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3556 | #define LCD_WF8B_BPFLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD58_SHIFT)) & LCD_WF8B_BPFLCD58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3557 | #define LCD_WF8B_BPFLCD26_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3558 | #define LCD_WF8B_BPFLCD26_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3559 | #define LCD_WF8B_BPFLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD26_SHIFT)) & LCD_WF8B_BPFLCD26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3560 | #define LCD_WF8B_BPFLCD36_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3561 | #define LCD_WF8B_BPFLCD36_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3562 | #define LCD_WF8B_BPFLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD36_SHIFT)) & LCD_WF8B_BPFLCD36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3563 | #define LCD_WF8B_BPFLCD10_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3564 | #define LCD_WF8B_BPFLCD10_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3565 | #define LCD_WF8B_BPFLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD10_SHIFT)) & LCD_WF8B_BPFLCD10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3566 | #define LCD_WF8B_BPFLCD52_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3567 | #define LCD_WF8B_BPFLCD52_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3568 | #define LCD_WF8B_BPFLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD52_SHIFT)) & LCD_WF8B_BPFLCD52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3569 | #define LCD_WF8B_BPFLCD57_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3570 | #define LCD_WF8B_BPFLCD57_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3571 | #define LCD_WF8B_BPFLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD57_SHIFT)) & LCD_WF8B_BPFLCD57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3572 | #define LCD_WF8B_BPFLCD27_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3573 | #define LCD_WF8B_BPFLCD27_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3574 | #define LCD_WF8B_BPFLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD27_SHIFT)) & LCD_WF8B_BPFLCD27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3575 | #define LCD_WF8B_BPFLCD11_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3576 | #define LCD_WF8B_BPFLCD11_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3577 | #define LCD_WF8B_BPFLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD11_SHIFT)) & LCD_WF8B_BPFLCD11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3578 | #define LCD_WF8B_BPFLCD56_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3579 | #define LCD_WF8B_BPFLCD56_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3580 | #define LCD_WF8B_BPFLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD56_SHIFT)) & LCD_WF8B_BPFLCD56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3581 | #define LCD_WF8B_BPFLCD1_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3582 | #define LCD_WF8B_BPFLCD1_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3583 | #define LCD_WF8B_BPFLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD1_SHIFT)) & LCD_WF8B_BPFLCD1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3584 | #define LCD_WF8B_BPFLCD8_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3585 | #define LCD_WF8B_BPFLCD8_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3586 | #define LCD_WF8B_BPFLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD8_SHIFT)) & LCD_WF8B_BPFLCD8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3587 | #define LCD_WF8B_BPFLCD40_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3588 | #define LCD_WF8B_BPFLCD40_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3589 | #define LCD_WF8B_BPFLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD40_SHIFT)) & LCD_WF8B_BPFLCD40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3590 | #define LCD_WF8B_BPFLCD51_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3591 | #define LCD_WF8B_BPFLCD51_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3592 | #define LCD_WF8B_BPFLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD51_SHIFT)) & LCD_WF8B_BPFLCD51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3593 | #define LCD_WF8B_BPFLCD16_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3594 | #define LCD_WF8B_BPFLCD16_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3595 | #define LCD_WF8B_BPFLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD16_SHIFT)) & LCD_WF8B_BPFLCD16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3596 | #define LCD_WF8B_BPFLCD45_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3597 | #define LCD_WF8B_BPFLCD45_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3598 | #define LCD_WF8B_BPFLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD45_SHIFT)) & LCD_WF8B_BPFLCD45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3599 | #define LCD_WF8B_BPFLCD6_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3600 | #define LCD_WF8B_BPFLCD6_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3601 | #define LCD_WF8B_BPFLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD6_SHIFT)) & LCD_WF8B_BPFLCD6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3602 | #define LCD_WF8B_BPFLCD17_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3603 | #define LCD_WF8B_BPFLCD17_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3604 | #define LCD_WF8B_BPFLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD17_SHIFT)) & LCD_WF8B_BPFLCD17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3605 | #define LCD_WF8B_BPFLCD28_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3606 | #define LCD_WF8B_BPFLCD28_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3607 | #define LCD_WF8B_BPFLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD28_SHIFT)) & LCD_WF8B_BPFLCD28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3608 | #define LCD_WF8B_BPFLCD42_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3609 | #define LCD_WF8B_BPFLCD42_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3610 | #define LCD_WF8B_BPFLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD42_SHIFT)) & LCD_WF8B_BPFLCD42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3611 | #define LCD_WF8B_BPFLCD29_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3612 | #define LCD_WF8B_BPFLCD29_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3613 | #define LCD_WF8B_BPFLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD29_SHIFT)) & LCD_WF8B_BPFLCD29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3614 | #define LCD_WF8B_BPFLCD50_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3615 | #define LCD_WF8B_BPFLCD50_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3616 | #define LCD_WF8B_BPFLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD50_SHIFT)) & LCD_WF8B_BPFLCD50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3617 | #define LCD_WF8B_BPFLCD18_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3618 | #define LCD_WF8B_BPFLCD18_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3619 | #define LCD_WF8B_BPFLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD18_SHIFT)) & LCD_WF8B_BPFLCD18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3620 | #define LCD_WF8B_BPFLCD34_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3621 | #define LCD_WF8B_BPFLCD34_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3622 | #define LCD_WF8B_BPFLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD34_SHIFT)) & LCD_WF8B_BPFLCD34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3623 | #define LCD_WF8B_BPFLCD19_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3624 | #define LCD_WF8B_BPFLCD19_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3625 | #define LCD_WF8B_BPFLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD19_SHIFT)) & LCD_WF8B_BPFLCD19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3626 | #define LCD_WF8B_BPFLCD2_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3627 | #define LCD_WF8B_BPFLCD2_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3628 | #define LCD_WF8B_BPFLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD2_SHIFT)) & LCD_WF8B_BPFLCD2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3629 | #define LCD_WF8B_BPFLCD9_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3630 | #define LCD_WF8B_BPFLCD9_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3631 | #define LCD_WF8B_BPFLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD9_SHIFT)) & LCD_WF8B_BPFLCD9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3632 | #define LCD_WF8B_BPFLCD3_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3633 | #define LCD_WF8B_BPFLCD3_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3634 | #define LCD_WF8B_BPFLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD3_SHIFT)) & LCD_WF8B_BPFLCD3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3635 | #define LCD_WF8B_BPFLCD37_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3636 | #define LCD_WF8B_BPFLCD37_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3637 | #define LCD_WF8B_BPFLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD37_SHIFT)) & LCD_WF8B_BPFLCD37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3638 | #define LCD_WF8B_BPFLCD49_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3639 | #define LCD_WF8B_BPFLCD49_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3640 | #define LCD_WF8B_BPFLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD49_SHIFT)) & LCD_WF8B_BPFLCD49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3641 | #define LCD_WF8B_BPFLCD20_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3642 | #define LCD_WF8B_BPFLCD20_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3643 | #define LCD_WF8B_BPFLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD20_SHIFT)) & LCD_WF8B_BPFLCD20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3644 | #define LCD_WF8B_BPFLCD44_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3645 | #define LCD_WF8B_BPFLCD44_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3646 | #define LCD_WF8B_BPFLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD44_SHIFT)) & LCD_WF8B_BPFLCD44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3647 | #define LCD_WF8B_BPFLCD30_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3648 | #define LCD_WF8B_BPFLCD30_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3649 | #define LCD_WF8B_BPFLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD30_SHIFT)) & LCD_WF8B_BPFLCD30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3650 | #define LCD_WF8B_BPFLCD21_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3651 | #define LCD_WF8B_BPFLCD21_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3652 | #define LCD_WF8B_BPFLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD21_SHIFT)) & LCD_WF8B_BPFLCD21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3653 | #define LCD_WF8B_BPFLCD35_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3654 | #define LCD_WF8B_BPFLCD35_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3655 | #define LCD_WF8B_BPFLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD35_SHIFT)) & LCD_WF8B_BPFLCD35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3656 | #define LCD_WF8B_BPFLCD4_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3657 | #define LCD_WF8B_BPFLCD4_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3658 | #define LCD_WF8B_BPFLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD4_SHIFT)) & LCD_WF8B_BPFLCD4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3659 | #define LCD_WF8B_BPFLCD31_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3660 | #define LCD_WF8B_BPFLCD31_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3661 | #define LCD_WF8B_BPFLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD31_SHIFT)) & LCD_WF8B_BPFLCD31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3662 | #define LCD_WF8B_BPFLCD48_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3663 | #define LCD_WF8B_BPFLCD48_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3664 | #define LCD_WF8B_BPFLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD48_SHIFT)) & LCD_WF8B_BPFLCD48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3665 | #define LCD_WF8B_BPFLCD7_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3666 | #define LCD_WF8B_BPFLCD7_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3667 | #define LCD_WF8B_BPFLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD7_SHIFT)) & LCD_WF8B_BPFLCD7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3668 | #define LCD_WF8B_BPFLCD22_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3669 | #define LCD_WF8B_BPFLCD22_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3670 | #define LCD_WF8B_BPFLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD22_SHIFT)) & LCD_WF8B_BPFLCD22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3671 | #define LCD_WF8B_BPFLCD38_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3672 | #define LCD_WF8B_BPFLCD38_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3673 | #define LCD_WF8B_BPFLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD38_SHIFT)) & LCD_WF8B_BPFLCD38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3674 | #define LCD_WF8B_BPFLCD12_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3675 | #define LCD_WF8B_BPFLCD12_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3676 | #define LCD_WF8B_BPFLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD12_SHIFT)) & LCD_WF8B_BPFLCD12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3677 | #define LCD_WF8B_BPFLCD23_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 3678 | #define LCD_WF8B_BPFLCD23_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 3679 | #define LCD_WF8B_BPFLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPFLCD23_SHIFT)) & LCD_WF8B_BPFLCD23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3680 | #define LCD_WF8B_BPGLCD14_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3681 | #define LCD_WF8B_BPGLCD14_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3682 | #define LCD_WF8B_BPGLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD14_SHIFT)) & LCD_WF8B_BPGLCD14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3683 | #define LCD_WF8B_BPGLCD55_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3684 | #define LCD_WF8B_BPGLCD55_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3685 | #define LCD_WF8B_BPGLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD55_SHIFT)) & LCD_WF8B_BPGLCD55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3686 | #define LCD_WF8B_BPGLCD63_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3687 | #define LCD_WF8B_BPGLCD63_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3688 | #define LCD_WF8B_BPGLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD63_SHIFT)) & LCD_WF8B_BPGLCD63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3689 | #define LCD_WF8B_BPGLCD15_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3690 | #define LCD_WF8B_BPGLCD15_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3691 | #define LCD_WF8B_BPGLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD15_SHIFT)) & LCD_WF8B_BPGLCD15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3692 | #define LCD_WF8B_BPGLCD62_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3693 | #define LCD_WF8B_BPGLCD62_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3694 | #define LCD_WF8B_BPGLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD62_SHIFT)) & LCD_WF8B_BPGLCD62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3695 | #define LCD_WF8B_BPGLCD54_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3696 | #define LCD_WF8B_BPGLCD54_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3697 | #define LCD_WF8B_BPGLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD54_SHIFT)) & LCD_WF8B_BPGLCD54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3698 | #define LCD_WF8B_BPGLCD61_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3699 | #define LCD_WF8B_BPGLCD61_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3700 | #define LCD_WF8B_BPGLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD61_SHIFT)) & LCD_WF8B_BPGLCD61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3701 | #define LCD_WF8B_BPGLCD60_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3702 | #define LCD_WF8B_BPGLCD60_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3703 | #define LCD_WF8B_BPGLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD60_SHIFT)) & LCD_WF8B_BPGLCD60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3704 | #define LCD_WF8B_BPGLCD59_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3705 | #define LCD_WF8B_BPGLCD59_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3706 | #define LCD_WF8B_BPGLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD59_SHIFT)) & LCD_WF8B_BPGLCD59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3707 | #define LCD_WF8B_BPGLCD53_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3708 | #define LCD_WF8B_BPGLCD53_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3709 | #define LCD_WF8B_BPGLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD53_SHIFT)) & LCD_WF8B_BPGLCD53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3710 | #define LCD_WF8B_BPGLCD58_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3711 | #define LCD_WF8B_BPGLCD58_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3712 | #define LCD_WF8B_BPGLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD58_SHIFT)) & LCD_WF8B_BPGLCD58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3713 | #define LCD_WF8B_BPGLCD0_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3714 | #define LCD_WF8B_BPGLCD0_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3715 | #define LCD_WF8B_BPGLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD0_SHIFT)) & LCD_WF8B_BPGLCD0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3716 | #define LCD_WF8B_BPGLCD57_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3717 | #define LCD_WF8B_BPGLCD57_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3718 | #define LCD_WF8B_BPGLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD57_SHIFT)) & LCD_WF8B_BPGLCD57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3719 | #define LCD_WF8B_BPGLCD52_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3720 | #define LCD_WF8B_BPGLCD52_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3721 | #define LCD_WF8B_BPGLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD52_SHIFT)) & LCD_WF8B_BPGLCD52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3722 | #define LCD_WF8B_BPGLCD7_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3723 | #define LCD_WF8B_BPGLCD7_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3724 | #define LCD_WF8B_BPGLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD7_SHIFT)) & LCD_WF8B_BPGLCD7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3725 | #define LCD_WF8B_BPGLCD56_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3726 | #define LCD_WF8B_BPGLCD56_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3727 | #define LCD_WF8B_BPGLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD56_SHIFT)) & LCD_WF8B_BPGLCD56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3728 | #define LCD_WF8B_BPGLCD6_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3729 | #define LCD_WF8B_BPGLCD6_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3730 | #define LCD_WF8B_BPGLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD6_SHIFT)) & LCD_WF8B_BPGLCD6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3731 | #define LCD_WF8B_BPGLCD51_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3732 | #define LCD_WF8B_BPGLCD51_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3733 | #define LCD_WF8B_BPGLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD51_SHIFT)) & LCD_WF8B_BPGLCD51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3734 | #define LCD_WF8B_BPGLCD16_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3735 | #define LCD_WF8B_BPGLCD16_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3736 | #define LCD_WF8B_BPGLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD16_SHIFT)) & LCD_WF8B_BPGLCD16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3737 | #define LCD_WF8B_BPGLCD1_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3738 | #define LCD_WF8B_BPGLCD1_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3739 | #define LCD_WF8B_BPGLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD1_SHIFT)) & LCD_WF8B_BPGLCD1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3740 | #define LCD_WF8B_BPGLCD17_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3741 | #define LCD_WF8B_BPGLCD17_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3742 | #define LCD_WF8B_BPGLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD17_SHIFT)) & LCD_WF8B_BPGLCD17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3743 | #define LCD_WF8B_BPGLCD50_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3744 | #define LCD_WF8B_BPGLCD50_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3745 | #define LCD_WF8B_BPGLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD50_SHIFT)) & LCD_WF8B_BPGLCD50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3746 | #define LCD_WF8B_BPGLCD18_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3747 | #define LCD_WF8B_BPGLCD18_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3748 | #define LCD_WF8B_BPGLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD18_SHIFT)) & LCD_WF8B_BPGLCD18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3749 | #define LCD_WF8B_BPGLCD19_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3750 | #define LCD_WF8B_BPGLCD19_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3751 | #define LCD_WF8B_BPGLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD19_SHIFT)) & LCD_WF8B_BPGLCD19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3752 | #define LCD_WF8B_BPGLCD8_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3753 | #define LCD_WF8B_BPGLCD8_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3754 | #define LCD_WF8B_BPGLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD8_SHIFT)) & LCD_WF8B_BPGLCD8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3755 | #define LCD_WF8B_BPGLCD49_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3756 | #define LCD_WF8B_BPGLCD49_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3757 | #define LCD_WF8B_BPGLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD49_SHIFT)) & LCD_WF8B_BPGLCD49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3758 | #define LCD_WF8B_BPGLCD20_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3759 | #define LCD_WF8B_BPGLCD20_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3760 | #define LCD_WF8B_BPGLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD20_SHIFT)) & LCD_WF8B_BPGLCD20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3761 | #define LCD_WF8B_BPGLCD9_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3762 | #define LCD_WF8B_BPGLCD9_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3763 | #define LCD_WF8B_BPGLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD9_SHIFT)) & LCD_WF8B_BPGLCD9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3764 | #define LCD_WF8B_BPGLCD21_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3765 | #define LCD_WF8B_BPGLCD21_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3766 | #define LCD_WF8B_BPGLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD21_SHIFT)) & LCD_WF8B_BPGLCD21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3767 | #define LCD_WF8B_BPGLCD13_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3768 | #define LCD_WF8B_BPGLCD13_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3769 | #define LCD_WF8B_BPGLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD13_SHIFT)) & LCD_WF8B_BPGLCD13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3770 | #define LCD_WF8B_BPGLCD48_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3771 | #define LCD_WF8B_BPGLCD48_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3772 | #define LCD_WF8B_BPGLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD48_SHIFT)) & LCD_WF8B_BPGLCD48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3773 | #define LCD_WF8B_BPGLCD22_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3774 | #define LCD_WF8B_BPGLCD22_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3775 | #define LCD_WF8B_BPGLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD22_SHIFT)) & LCD_WF8B_BPGLCD22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3776 | #define LCD_WF8B_BPGLCD5_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3777 | #define LCD_WF8B_BPGLCD5_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3778 | #define LCD_WF8B_BPGLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD5_SHIFT)) & LCD_WF8B_BPGLCD5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3779 | #define LCD_WF8B_BPGLCD47_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3780 | #define LCD_WF8B_BPGLCD47_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3781 | #define LCD_WF8B_BPGLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD47_SHIFT)) & LCD_WF8B_BPGLCD47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3782 | #define LCD_WF8B_BPGLCD23_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3783 | #define LCD_WF8B_BPGLCD23_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3784 | #define LCD_WF8B_BPGLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD23_SHIFT)) & LCD_WF8B_BPGLCD23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3785 | #define LCD_WF8B_BPGLCD24_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3786 | #define LCD_WF8B_BPGLCD24_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3787 | #define LCD_WF8B_BPGLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD24_SHIFT)) & LCD_WF8B_BPGLCD24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3788 | #define LCD_WF8B_BPGLCD25_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3789 | #define LCD_WF8B_BPGLCD25_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3790 | #define LCD_WF8B_BPGLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD25_SHIFT)) & LCD_WF8B_BPGLCD25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3791 | #define LCD_WF8B_BPGLCD46_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3792 | #define LCD_WF8B_BPGLCD46_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3793 | #define LCD_WF8B_BPGLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD46_SHIFT)) & LCD_WF8B_BPGLCD46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3794 | #define LCD_WF8B_BPGLCD26_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3795 | #define LCD_WF8B_BPGLCD26_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3796 | #define LCD_WF8B_BPGLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD26_SHIFT)) & LCD_WF8B_BPGLCD26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3797 | #define LCD_WF8B_BPGLCD27_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3798 | #define LCD_WF8B_BPGLCD27_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3799 | #define LCD_WF8B_BPGLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD27_SHIFT)) & LCD_WF8B_BPGLCD27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3800 | #define LCD_WF8B_BPGLCD10_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3801 | #define LCD_WF8B_BPGLCD10_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3802 | #define LCD_WF8B_BPGLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD10_SHIFT)) & LCD_WF8B_BPGLCD10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3803 | #define LCD_WF8B_BPGLCD45_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3804 | #define LCD_WF8B_BPGLCD45_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3805 | #define LCD_WF8B_BPGLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD45_SHIFT)) & LCD_WF8B_BPGLCD45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3806 | #define LCD_WF8B_BPGLCD28_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3807 | #define LCD_WF8B_BPGLCD28_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3808 | #define LCD_WF8B_BPGLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD28_SHIFT)) & LCD_WF8B_BPGLCD28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3809 | #define LCD_WF8B_BPGLCD29_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3810 | #define LCD_WF8B_BPGLCD29_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3811 | #define LCD_WF8B_BPGLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD29_SHIFT)) & LCD_WF8B_BPGLCD29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3812 | #define LCD_WF8B_BPGLCD4_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3813 | #define LCD_WF8B_BPGLCD4_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3814 | #define LCD_WF8B_BPGLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD4_SHIFT)) & LCD_WF8B_BPGLCD4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3815 | #define LCD_WF8B_BPGLCD44_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3816 | #define LCD_WF8B_BPGLCD44_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3817 | #define LCD_WF8B_BPGLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD44_SHIFT)) & LCD_WF8B_BPGLCD44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3818 | #define LCD_WF8B_BPGLCD30_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3819 | #define LCD_WF8B_BPGLCD30_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3820 | #define LCD_WF8B_BPGLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD30_SHIFT)) & LCD_WF8B_BPGLCD30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3821 | #define LCD_WF8B_BPGLCD2_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3822 | #define LCD_WF8B_BPGLCD2_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3823 | #define LCD_WF8B_BPGLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD2_SHIFT)) & LCD_WF8B_BPGLCD2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3824 | #define LCD_WF8B_BPGLCD31_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3825 | #define LCD_WF8B_BPGLCD31_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3826 | #define LCD_WF8B_BPGLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD31_SHIFT)) & LCD_WF8B_BPGLCD31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3827 | #define LCD_WF8B_BPGLCD43_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3828 | #define LCD_WF8B_BPGLCD43_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3829 | #define LCD_WF8B_BPGLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD43_SHIFT)) & LCD_WF8B_BPGLCD43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3830 | #define LCD_WF8B_BPGLCD32_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3831 | #define LCD_WF8B_BPGLCD32_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3832 | #define LCD_WF8B_BPGLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD32_SHIFT)) & LCD_WF8B_BPGLCD32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3833 | #define LCD_WF8B_BPGLCD33_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3834 | #define LCD_WF8B_BPGLCD33_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3835 | #define LCD_WF8B_BPGLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD33_SHIFT)) & LCD_WF8B_BPGLCD33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3836 | #define LCD_WF8B_BPGLCD42_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3837 | #define LCD_WF8B_BPGLCD42_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3838 | #define LCD_WF8B_BPGLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD42_SHIFT)) & LCD_WF8B_BPGLCD42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3839 | #define LCD_WF8B_BPGLCD34_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3840 | #define LCD_WF8B_BPGLCD34_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3841 | #define LCD_WF8B_BPGLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD34_SHIFT)) & LCD_WF8B_BPGLCD34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3842 | #define LCD_WF8B_BPGLCD11_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3843 | #define LCD_WF8B_BPGLCD11_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3844 | #define LCD_WF8B_BPGLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD11_SHIFT)) & LCD_WF8B_BPGLCD11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3845 | #define LCD_WF8B_BPGLCD35_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3846 | #define LCD_WF8B_BPGLCD35_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3847 | #define LCD_WF8B_BPGLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD35_SHIFT)) & LCD_WF8B_BPGLCD35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3848 | #define LCD_WF8B_BPGLCD12_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3849 | #define LCD_WF8B_BPGLCD12_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3850 | #define LCD_WF8B_BPGLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD12_SHIFT)) & LCD_WF8B_BPGLCD12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3851 | #define LCD_WF8B_BPGLCD41_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3852 | #define LCD_WF8B_BPGLCD41_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3853 | #define LCD_WF8B_BPGLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD41_SHIFT)) & LCD_WF8B_BPGLCD41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3854 | #define LCD_WF8B_BPGLCD36_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3855 | #define LCD_WF8B_BPGLCD36_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3856 | #define LCD_WF8B_BPGLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD36_SHIFT)) & LCD_WF8B_BPGLCD36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3857 | #define LCD_WF8B_BPGLCD3_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3858 | #define LCD_WF8B_BPGLCD3_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3859 | #define LCD_WF8B_BPGLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD3_SHIFT)) & LCD_WF8B_BPGLCD3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3860 | #define LCD_WF8B_BPGLCD37_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3861 | #define LCD_WF8B_BPGLCD37_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3862 | #define LCD_WF8B_BPGLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD37_SHIFT)) & LCD_WF8B_BPGLCD37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3863 | #define LCD_WF8B_BPGLCD40_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3864 | #define LCD_WF8B_BPGLCD40_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3865 | #define LCD_WF8B_BPGLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD40_SHIFT)) & LCD_WF8B_BPGLCD40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3866 | #define LCD_WF8B_BPGLCD38_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3867 | #define LCD_WF8B_BPGLCD38_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3868 | #define LCD_WF8B_BPGLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD38_SHIFT)) & LCD_WF8B_BPGLCD38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3869 | #define LCD_WF8B_BPGLCD39_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 3870 | #define LCD_WF8B_BPGLCD39_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 3871 | #define LCD_WF8B_BPGLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPGLCD39_SHIFT)) & LCD_WF8B_BPGLCD39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3872 | #define LCD_WF8B_BPHLCD63_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3873 | #define LCD_WF8B_BPHLCD63_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3874 | #define LCD_WF8B_BPHLCD63(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD63_SHIFT)) & LCD_WF8B_BPHLCD63_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3875 | #define LCD_WF8B_BPHLCD62_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3876 | #define LCD_WF8B_BPHLCD62_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3877 | #define LCD_WF8B_BPHLCD62(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD62_SHIFT)) & LCD_WF8B_BPHLCD62_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3878 | #define LCD_WF8B_BPHLCD61_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3879 | #define LCD_WF8B_BPHLCD61_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3880 | #define LCD_WF8B_BPHLCD61(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD61_SHIFT)) & LCD_WF8B_BPHLCD61_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3881 | #define LCD_WF8B_BPHLCD60_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3882 | #define LCD_WF8B_BPHLCD60_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3883 | #define LCD_WF8B_BPHLCD60(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD60_SHIFT)) & LCD_WF8B_BPHLCD60_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3884 | #define LCD_WF8B_BPHLCD59_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3885 | #define LCD_WF8B_BPHLCD59_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3886 | #define LCD_WF8B_BPHLCD59(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD59_SHIFT)) & LCD_WF8B_BPHLCD59_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3887 | #define LCD_WF8B_BPHLCD58_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3888 | #define LCD_WF8B_BPHLCD58_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3889 | #define LCD_WF8B_BPHLCD58(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD58_SHIFT)) & LCD_WF8B_BPHLCD58_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3890 | #define LCD_WF8B_BPHLCD57_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3891 | #define LCD_WF8B_BPHLCD57_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3892 | #define LCD_WF8B_BPHLCD57(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD57_SHIFT)) & LCD_WF8B_BPHLCD57_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3893 | #define LCD_WF8B_BPHLCD0_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3894 | #define LCD_WF8B_BPHLCD0_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3895 | #define LCD_WF8B_BPHLCD0(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD0_SHIFT)) & LCD_WF8B_BPHLCD0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3896 | #define LCD_WF8B_BPHLCD56_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3897 | #define LCD_WF8B_BPHLCD56_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3898 | #define LCD_WF8B_BPHLCD56(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD56_SHIFT)) & LCD_WF8B_BPHLCD56_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3899 | #define LCD_WF8B_BPHLCD55_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3900 | #define LCD_WF8B_BPHLCD55_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3901 | #define LCD_WF8B_BPHLCD55(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD55_SHIFT)) & LCD_WF8B_BPHLCD55_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3902 | #define LCD_WF8B_BPHLCD54_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3903 | #define LCD_WF8B_BPHLCD54_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3904 | #define LCD_WF8B_BPHLCD54(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD54_SHIFT)) & LCD_WF8B_BPHLCD54_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3905 | #define LCD_WF8B_BPHLCD53_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3906 | #define LCD_WF8B_BPHLCD53_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3907 | #define LCD_WF8B_BPHLCD53(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD53_SHIFT)) & LCD_WF8B_BPHLCD53_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3908 | #define LCD_WF8B_BPHLCD52_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3909 | #define LCD_WF8B_BPHLCD52_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3910 | #define LCD_WF8B_BPHLCD52(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD52_SHIFT)) & LCD_WF8B_BPHLCD52_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3911 | #define LCD_WF8B_BPHLCD51_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3912 | #define LCD_WF8B_BPHLCD51_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3913 | #define LCD_WF8B_BPHLCD51(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD51_SHIFT)) & LCD_WF8B_BPHLCD51_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3914 | #define LCD_WF8B_BPHLCD50_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3915 | #define LCD_WF8B_BPHLCD50_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3916 | #define LCD_WF8B_BPHLCD50(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD50_SHIFT)) & LCD_WF8B_BPHLCD50_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3917 | #define LCD_WF8B_BPHLCD1_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3918 | #define LCD_WF8B_BPHLCD1_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3919 | #define LCD_WF8B_BPHLCD1(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD1_SHIFT)) & LCD_WF8B_BPHLCD1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3920 | #define LCD_WF8B_BPHLCD49_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3921 | #define LCD_WF8B_BPHLCD49_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3922 | #define LCD_WF8B_BPHLCD49(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD49_SHIFT)) & LCD_WF8B_BPHLCD49_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3923 | #define LCD_WF8B_BPHLCD48_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3924 | #define LCD_WF8B_BPHLCD48_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3925 | #define LCD_WF8B_BPHLCD48(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD48_SHIFT)) & LCD_WF8B_BPHLCD48_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3926 | #define LCD_WF8B_BPHLCD47_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3927 | #define LCD_WF8B_BPHLCD47_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3928 | #define LCD_WF8B_BPHLCD47(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD47_SHIFT)) & LCD_WF8B_BPHLCD47_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3929 | #define LCD_WF8B_BPHLCD46_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3930 | #define LCD_WF8B_BPHLCD46_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3931 | #define LCD_WF8B_BPHLCD46(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD46_SHIFT)) & LCD_WF8B_BPHLCD46_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3932 | #define LCD_WF8B_BPHLCD45_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3933 | #define LCD_WF8B_BPHLCD45_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3934 | #define LCD_WF8B_BPHLCD45(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD45_SHIFT)) & LCD_WF8B_BPHLCD45_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3935 | #define LCD_WF8B_BPHLCD44_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3936 | #define LCD_WF8B_BPHLCD44_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3937 | #define LCD_WF8B_BPHLCD44(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD44_SHIFT)) & LCD_WF8B_BPHLCD44_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3938 | #define LCD_WF8B_BPHLCD43_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3939 | #define LCD_WF8B_BPHLCD43_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3940 | #define LCD_WF8B_BPHLCD43(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD43_SHIFT)) & LCD_WF8B_BPHLCD43_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3941 | #define LCD_WF8B_BPHLCD2_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3942 | #define LCD_WF8B_BPHLCD2_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3943 | #define LCD_WF8B_BPHLCD2(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD2_SHIFT)) & LCD_WF8B_BPHLCD2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3944 | #define LCD_WF8B_BPHLCD42_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3945 | #define LCD_WF8B_BPHLCD42_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3946 | #define LCD_WF8B_BPHLCD42(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD42_SHIFT)) & LCD_WF8B_BPHLCD42_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3947 | #define LCD_WF8B_BPHLCD41_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3948 | #define LCD_WF8B_BPHLCD41_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3949 | #define LCD_WF8B_BPHLCD41(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD41_SHIFT)) & LCD_WF8B_BPHLCD41_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3950 | #define LCD_WF8B_BPHLCD40_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3951 | #define LCD_WF8B_BPHLCD40_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3952 | #define LCD_WF8B_BPHLCD40(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD40_SHIFT)) & LCD_WF8B_BPHLCD40_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3953 | #define LCD_WF8B_BPHLCD39_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3954 | #define LCD_WF8B_BPHLCD39_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3955 | #define LCD_WF8B_BPHLCD39(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD39_SHIFT)) & LCD_WF8B_BPHLCD39_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3956 | #define LCD_WF8B_BPHLCD38_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3957 | #define LCD_WF8B_BPHLCD38_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3958 | #define LCD_WF8B_BPHLCD38(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD38_SHIFT)) & LCD_WF8B_BPHLCD38_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3959 | #define LCD_WF8B_BPHLCD37_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3960 | #define LCD_WF8B_BPHLCD37_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3961 | #define LCD_WF8B_BPHLCD37(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD37_SHIFT)) & LCD_WF8B_BPHLCD37_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3962 | #define LCD_WF8B_BPHLCD36_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3963 | #define LCD_WF8B_BPHLCD36_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3964 | #define LCD_WF8B_BPHLCD36(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD36_SHIFT)) & LCD_WF8B_BPHLCD36_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3965 | #define LCD_WF8B_BPHLCD3_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3966 | #define LCD_WF8B_BPHLCD3_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3967 | #define LCD_WF8B_BPHLCD3(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD3_SHIFT)) & LCD_WF8B_BPHLCD3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3968 | #define LCD_WF8B_BPHLCD35_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3969 | #define LCD_WF8B_BPHLCD35_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3970 | #define LCD_WF8B_BPHLCD35(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD35_SHIFT)) & LCD_WF8B_BPHLCD35_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3971 | #define LCD_WF8B_BPHLCD34_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3972 | #define LCD_WF8B_BPHLCD34_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3973 | #define LCD_WF8B_BPHLCD34(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD34_SHIFT)) & LCD_WF8B_BPHLCD34_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3974 | #define LCD_WF8B_BPHLCD33_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3975 | #define LCD_WF8B_BPHLCD33_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3976 | #define LCD_WF8B_BPHLCD33(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD33_SHIFT)) & LCD_WF8B_BPHLCD33_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3977 | #define LCD_WF8B_BPHLCD32_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3978 | #define LCD_WF8B_BPHLCD32_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3979 | #define LCD_WF8B_BPHLCD32(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD32_SHIFT)) & LCD_WF8B_BPHLCD32_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3980 | #define LCD_WF8B_BPHLCD31_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3981 | #define LCD_WF8B_BPHLCD31_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3982 | #define LCD_WF8B_BPHLCD31(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD31_SHIFT)) & LCD_WF8B_BPHLCD31_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3983 | #define LCD_WF8B_BPHLCD30_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3984 | #define LCD_WF8B_BPHLCD30_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3985 | #define LCD_WF8B_BPHLCD30(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD30_SHIFT)) & LCD_WF8B_BPHLCD30_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3986 | #define LCD_WF8B_BPHLCD29_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3987 | #define LCD_WF8B_BPHLCD29_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3988 | #define LCD_WF8B_BPHLCD29(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD29_SHIFT)) & LCD_WF8B_BPHLCD29_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3989 | #define LCD_WF8B_BPHLCD4_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3990 | #define LCD_WF8B_BPHLCD4_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3991 | #define LCD_WF8B_BPHLCD4(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD4_SHIFT)) & LCD_WF8B_BPHLCD4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3992 | #define LCD_WF8B_BPHLCD28_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3993 | #define LCD_WF8B_BPHLCD28_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3994 | #define LCD_WF8B_BPHLCD28(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD28_SHIFT)) & LCD_WF8B_BPHLCD28_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3995 | #define LCD_WF8B_BPHLCD27_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3996 | #define LCD_WF8B_BPHLCD27_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 3997 | #define LCD_WF8B_BPHLCD27(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD27_SHIFT)) & LCD_WF8B_BPHLCD27_MASK) |
AnnaBridge | 171:3a7713b1edbc | 3998 | #define LCD_WF8B_BPHLCD26_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 3999 | #define LCD_WF8B_BPHLCD26_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4000 | #define LCD_WF8B_BPHLCD26(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD26_SHIFT)) & LCD_WF8B_BPHLCD26_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4001 | #define LCD_WF8B_BPHLCD25_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4002 | #define LCD_WF8B_BPHLCD25_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4003 | #define LCD_WF8B_BPHLCD25(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD25_SHIFT)) & LCD_WF8B_BPHLCD25_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4004 | #define LCD_WF8B_BPHLCD24_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4005 | #define LCD_WF8B_BPHLCD24_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4006 | #define LCD_WF8B_BPHLCD24(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD24_SHIFT)) & LCD_WF8B_BPHLCD24_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4007 | #define LCD_WF8B_BPHLCD23_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4008 | #define LCD_WF8B_BPHLCD23_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4009 | #define LCD_WF8B_BPHLCD23(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD23_SHIFT)) & LCD_WF8B_BPHLCD23_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4010 | #define LCD_WF8B_BPHLCD22_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4011 | #define LCD_WF8B_BPHLCD22_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4012 | #define LCD_WF8B_BPHLCD22(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD22_SHIFT)) & LCD_WF8B_BPHLCD22_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4013 | #define LCD_WF8B_BPHLCD5_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4014 | #define LCD_WF8B_BPHLCD5_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4015 | #define LCD_WF8B_BPHLCD5(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD5_SHIFT)) & LCD_WF8B_BPHLCD5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4016 | #define LCD_WF8B_BPHLCD21_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4017 | #define LCD_WF8B_BPHLCD21_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4018 | #define LCD_WF8B_BPHLCD21(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD21_SHIFT)) & LCD_WF8B_BPHLCD21_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4019 | #define LCD_WF8B_BPHLCD20_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4020 | #define LCD_WF8B_BPHLCD20_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4021 | #define LCD_WF8B_BPHLCD20(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD20_SHIFT)) & LCD_WF8B_BPHLCD20_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4022 | #define LCD_WF8B_BPHLCD19_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4023 | #define LCD_WF8B_BPHLCD19_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4024 | #define LCD_WF8B_BPHLCD19(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD19_SHIFT)) & LCD_WF8B_BPHLCD19_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4025 | #define LCD_WF8B_BPHLCD18_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4026 | #define LCD_WF8B_BPHLCD18_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4027 | #define LCD_WF8B_BPHLCD18(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD18_SHIFT)) & LCD_WF8B_BPHLCD18_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4028 | #define LCD_WF8B_BPHLCD17_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4029 | #define LCD_WF8B_BPHLCD17_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4030 | #define LCD_WF8B_BPHLCD17(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD17_SHIFT)) & LCD_WF8B_BPHLCD17_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4031 | #define LCD_WF8B_BPHLCD16_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4032 | #define LCD_WF8B_BPHLCD16_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4033 | #define LCD_WF8B_BPHLCD16(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD16_SHIFT)) & LCD_WF8B_BPHLCD16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4034 | #define LCD_WF8B_BPHLCD15_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4035 | #define LCD_WF8B_BPHLCD15_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4036 | #define LCD_WF8B_BPHLCD15(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD15_SHIFT)) & LCD_WF8B_BPHLCD15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4037 | #define LCD_WF8B_BPHLCD6_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4038 | #define LCD_WF8B_BPHLCD6_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4039 | #define LCD_WF8B_BPHLCD6(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD6_SHIFT)) & LCD_WF8B_BPHLCD6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4040 | #define LCD_WF8B_BPHLCD14_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4041 | #define LCD_WF8B_BPHLCD14_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4042 | #define LCD_WF8B_BPHLCD14(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD14_SHIFT)) & LCD_WF8B_BPHLCD14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4043 | #define LCD_WF8B_BPHLCD13_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4044 | #define LCD_WF8B_BPHLCD13_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4045 | #define LCD_WF8B_BPHLCD13(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD13_SHIFT)) & LCD_WF8B_BPHLCD13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4046 | #define LCD_WF8B_BPHLCD12_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4047 | #define LCD_WF8B_BPHLCD12_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4048 | #define LCD_WF8B_BPHLCD12(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD12_SHIFT)) & LCD_WF8B_BPHLCD12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4049 | #define LCD_WF8B_BPHLCD11_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4050 | #define LCD_WF8B_BPHLCD11_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4051 | #define LCD_WF8B_BPHLCD11(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD11_SHIFT)) & LCD_WF8B_BPHLCD11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4052 | #define LCD_WF8B_BPHLCD10_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4053 | #define LCD_WF8B_BPHLCD10_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4054 | #define LCD_WF8B_BPHLCD10(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD10_SHIFT)) & LCD_WF8B_BPHLCD10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4055 | #define LCD_WF8B_BPHLCD9_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4056 | #define LCD_WF8B_BPHLCD9_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4057 | #define LCD_WF8B_BPHLCD9(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD9_SHIFT)) & LCD_WF8B_BPHLCD9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4058 | #define LCD_WF8B_BPHLCD8_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4059 | #define LCD_WF8B_BPHLCD8_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4060 | #define LCD_WF8B_BPHLCD8(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD8_SHIFT)) & LCD_WF8B_BPHLCD8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4061 | #define LCD_WF8B_BPHLCD7_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4062 | #define LCD_WF8B_BPHLCD7_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4063 | #define LCD_WF8B_BPHLCD7(x) (((uint8_t)(((uint8_t)(x)) << LCD_WF8B_BPHLCD7_SHIFT)) & LCD_WF8B_BPHLCD7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4064 | |
AnnaBridge | 171:3a7713b1edbc | 4065 | /* The count of LCD_WF8B */ |
AnnaBridge | 171:3a7713b1edbc | 4066 | #define LCD_WF8B_COUNT (64U) |
AnnaBridge | 171:3a7713b1edbc | 4067 | |
AnnaBridge | 171:3a7713b1edbc | 4068 | |
AnnaBridge | 171:3a7713b1edbc | 4069 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4070 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4071 | */ /* end of group LCD_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 4072 | |
AnnaBridge | 171:3a7713b1edbc | 4073 | |
AnnaBridge | 171:3a7713b1edbc | 4074 | /* LCD - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4075 | /** Peripheral LCD base address */ |
AnnaBridge | 171:3a7713b1edbc | 4076 | #define LCD_BASE (0x40053000u) |
AnnaBridge | 171:3a7713b1edbc | 4077 | /** Peripheral LCD base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 4078 | #define LCD ((LCD_Type *)LCD_BASE) |
AnnaBridge | 171:3a7713b1edbc | 4079 | /** Array initializer of LCD peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4080 | #define LCD_BASE_ADDRS { LCD_BASE } |
AnnaBridge | 171:3a7713b1edbc | 4081 | /** Array initializer of LCD peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 4082 | #define LCD_BASE_PTRS { LCD } |
AnnaBridge | 171:3a7713b1edbc | 4083 | /** Interrupt vectors for the LCD peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 4084 | #define LCD_LCD_IRQS { LCD_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 4085 | |
AnnaBridge | 171:3a7713b1edbc | 4086 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4087 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4088 | */ /* end of group LCD_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 4089 | |
AnnaBridge | 171:3a7713b1edbc | 4090 | |
AnnaBridge | 171:3a7713b1edbc | 4091 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4092 | -- LLWU Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4093 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4094 | |
AnnaBridge | 171:3a7713b1edbc | 4095 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4096 | * @addtogroup LLWU_Peripheral_Access_Layer LLWU Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4097 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4098 | */ |
AnnaBridge | 171:3a7713b1edbc | 4099 | |
AnnaBridge | 171:3a7713b1edbc | 4100 | /** LLWU - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 4101 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 4102 | __IO uint8_t PE1; /**< LLWU Pin Enable 1 register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 4103 | __IO uint8_t PE2; /**< LLWU Pin Enable 2 register, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 4104 | __IO uint8_t PE3; /**< LLWU Pin Enable 3 register, offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 4105 | __IO uint8_t PE4; /**< LLWU Pin Enable 4 register, offset: 0x3 */ |
AnnaBridge | 171:3a7713b1edbc | 4106 | __IO uint8_t ME; /**< LLWU Module Enable register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 4107 | __IO uint8_t F1; /**< LLWU Flag 1 register, offset: 0x5 */ |
AnnaBridge | 171:3a7713b1edbc | 4108 | __IO uint8_t F2; /**< LLWU Flag 2 register, offset: 0x6 */ |
AnnaBridge | 171:3a7713b1edbc | 4109 | __I uint8_t F3; /**< LLWU Flag 3 register, offset: 0x7 */ |
AnnaBridge | 171:3a7713b1edbc | 4110 | __IO uint8_t FILT1; /**< LLWU Pin Filter 1 register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 4111 | __IO uint8_t FILT2; /**< LLWU Pin Filter 2 register, offset: 0x9 */ |
AnnaBridge | 171:3a7713b1edbc | 4112 | } LLWU_Type; |
AnnaBridge | 171:3a7713b1edbc | 4113 | |
AnnaBridge | 171:3a7713b1edbc | 4114 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4115 | -- LLWU Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4116 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4117 | |
AnnaBridge | 171:3a7713b1edbc | 4118 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4119 | * @addtogroup LLWU_Register_Masks LLWU Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4120 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4121 | */ |
AnnaBridge | 171:3a7713b1edbc | 4122 | |
AnnaBridge | 171:3a7713b1edbc | 4123 | /*! @name PE1 - LLWU Pin Enable 1 register */ |
AnnaBridge | 171:3a7713b1edbc | 4124 | #define LLWU_PE1_WUPE0_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 4125 | #define LLWU_PE1_WUPE0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4126 | #define LLWU_PE1_WUPE0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE0_SHIFT)) & LLWU_PE1_WUPE0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4127 | #define LLWU_PE1_WUPE1_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 4128 | #define LLWU_PE1_WUPE1_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4129 | #define LLWU_PE1_WUPE1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE1_SHIFT)) & LLWU_PE1_WUPE1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4130 | #define LLWU_PE1_WUPE2_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 4131 | #define LLWU_PE1_WUPE2_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4132 | #define LLWU_PE1_WUPE2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE2_SHIFT)) & LLWU_PE1_WUPE2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4133 | #define LLWU_PE1_WUPE3_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 4134 | #define LLWU_PE1_WUPE3_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4135 | #define LLWU_PE1_WUPE3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE1_WUPE3_SHIFT)) & LLWU_PE1_WUPE3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4136 | |
AnnaBridge | 171:3a7713b1edbc | 4137 | /*! @name PE2 - LLWU Pin Enable 2 register */ |
AnnaBridge | 171:3a7713b1edbc | 4138 | #define LLWU_PE2_WUPE4_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 4139 | #define LLWU_PE2_WUPE4_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4140 | #define LLWU_PE2_WUPE4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE4_SHIFT)) & LLWU_PE2_WUPE4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4141 | #define LLWU_PE2_WUPE5_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 4142 | #define LLWU_PE2_WUPE5_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4143 | #define LLWU_PE2_WUPE5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE5_SHIFT)) & LLWU_PE2_WUPE5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4144 | #define LLWU_PE2_WUPE6_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 4145 | #define LLWU_PE2_WUPE6_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4146 | #define LLWU_PE2_WUPE6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE6_SHIFT)) & LLWU_PE2_WUPE6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4147 | #define LLWU_PE2_WUPE7_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 4148 | #define LLWU_PE2_WUPE7_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4149 | #define LLWU_PE2_WUPE7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE2_WUPE7_SHIFT)) & LLWU_PE2_WUPE7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4150 | |
AnnaBridge | 171:3a7713b1edbc | 4151 | /*! @name PE3 - LLWU Pin Enable 3 register */ |
AnnaBridge | 171:3a7713b1edbc | 4152 | #define LLWU_PE3_WUPE8_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 4153 | #define LLWU_PE3_WUPE8_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4154 | #define LLWU_PE3_WUPE8(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE8_SHIFT)) & LLWU_PE3_WUPE8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4155 | #define LLWU_PE3_WUPE9_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 4156 | #define LLWU_PE3_WUPE9_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4157 | #define LLWU_PE3_WUPE9(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE9_SHIFT)) & LLWU_PE3_WUPE9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4158 | #define LLWU_PE3_WUPE10_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 4159 | #define LLWU_PE3_WUPE10_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4160 | #define LLWU_PE3_WUPE10(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE10_SHIFT)) & LLWU_PE3_WUPE10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4161 | #define LLWU_PE3_WUPE11_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 4162 | #define LLWU_PE3_WUPE11_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4163 | #define LLWU_PE3_WUPE11(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE3_WUPE11_SHIFT)) & LLWU_PE3_WUPE11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4164 | |
AnnaBridge | 171:3a7713b1edbc | 4165 | /*! @name PE4 - LLWU Pin Enable 4 register */ |
AnnaBridge | 171:3a7713b1edbc | 4166 | #define LLWU_PE4_WUPE12_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 4167 | #define LLWU_PE4_WUPE12_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4168 | #define LLWU_PE4_WUPE12(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE12_SHIFT)) & LLWU_PE4_WUPE12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4169 | #define LLWU_PE4_WUPE13_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 4170 | #define LLWU_PE4_WUPE13_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4171 | #define LLWU_PE4_WUPE13(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE13_SHIFT)) & LLWU_PE4_WUPE13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4172 | #define LLWU_PE4_WUPE14_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 4173 | #define LLWU_PE4_WUPE14_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4174 | #define LLWU_PE4_WUPE14(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE14_SHIFT)) & LLWU_PE4_WUPE14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4175 | #define LLWU_PE4_WUPE15_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 4176 | #define LLWU_PE4_WUPE15_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4177 | #define LLWU_PE4_WUPE15(x) (((uint8_t)(((uint8_t)(x)) << LLWU_PE4_WUPE15_SHIFT)) & LLWU_PE4_WUPE15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4178 | |
AnnaBridge | 171:3a7713b1edbc | 4179 | /*! @name ME - LLWU Module Enable register */ |
AnnaBridge | 171:3a7713b1edbc | 4180 | #define LLWU_ME_WUME0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4181 | #define LLWU_ME_WUME0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4182 | #define LLWU_ME_WUME0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME0_SHIFT)) & LLWU_ME_WUME0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4183 | #define LLWU_ME_WUME1_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4184 | #define LLWU_ME_WUME1_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4185 | #define LLWU_ME_WUME1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME1_SHIFT)) & LLWU_ME_WUME1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4186 | #define LLWU_ME_WUME2_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4187 | #define LLWU_ME_WUME2_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4188 | #define LLWU_ME_WUME2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME2_SHIFT)) & LLWU_ME_WUME2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4189 | #define LLWU_ME_WUME3_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 4190 | #define LLWU_ME_WUME3_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4191 | #define LLWU_ME_WUME3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME3_SHIFT)) & LLWU_ME_WUME3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4192 | #define LLWU_ME_WUME4_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 4193 | #define LLWU_ME_WUME4_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4194 | #define LLWU_ME_WUME4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME4_SHIFT)) & LLWU_ME_WUME4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4195 | #define LLWU_ME_WUME5_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 4196 | #define LLWU_ME_WUME5_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4197 | #define LLWU_ME_WUME5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME5_SHIFT)) & LLWU_ME_WUME5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4198 | #define LLWU_ME_WUME6_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 4199 | #define LLWU_ME_WUME6_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4200 | #define LLWU_ME_WUME6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME6_SHIFT)) & LLWU_ME_WUME6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4201 | #define LLWU_ME_WUME7_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4202 | #define LLWU_ME_WUME7_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4203 | #define LLWU_ME_WUME7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_ME_WUME7_SHIFT)) & LLWU_ME_WUME7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4204 | |
AnnaBridge | 171:3a7713b1edbc | 4205 | /*! @name F1 - LLWU Flag 1 register */ |
AnnaBridge | 171:3a7713b1edbc | 4206 | #define LLWU_F1_WUF0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4207 | #define LLWU_F1_WUF0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4208 | #define LLWU_F1_WUF0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF0_SHIFT)) & LLWU_F1_WUF0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4209 | #define LLWU_F1_WUF1_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4210 | #define LLWU_F1_WUF1_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4211 | #define LLWU_F1_WUF1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF1_SHIFT)) & LLWU_F1_WUF1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4212 | #define LLWU_F1_WUF2_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4213 | #define LLWU_F1_WUF2_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4214 | #define LLWU_F1_WUF2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF2_SHIFT)) & LLWU_F1_WUF2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4215 | #define LLWU_F1_WUF3_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 4216 | #define LLWU_F1_WUF3_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4217 | #define LLWU_F1_WUF3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF3_SHIFT)) & LLWU_F1_WUF3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4218 | #define LLWU_F1_WUF4_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 4219 | #define LLWU_F1_WUF4_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4220 | #define LLWU_F1_WUF4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF4_SHIFT)) & LLWU_F1_WUF4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4221 | #define LLWU_F1_WUF5_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 4222 | #define LLWU_F1_WUF5_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4223 | #define LLWU_F1_WUF5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF5_SHIFT)) & LLWU_F1_WUF5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4224 | #define LLWU_F1_WUF6_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 4225 | #define LLWU_F1_WUF6_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4226 | #define LLWU_F1_WUF6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF6_SHIFT)) & LLWU_F1_WUF6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4227 | #define LLWU_F1_WUF7_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4228 | #define LLWU_F1_WUF7_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4229 | #define LLWU_F1_WUF7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F1_WUF7_SHIFT)) & LLWU_F1_WUF7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4230 | |
AnnaBridge | 171:3a7713b1edbc | 4231 | /*! @name F2 - LLWU Flag 2 register */ |
AnnaBridge | 171:3a7713b1edbc | 4232 | #define LLWU_F2_WUF8_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4233 | #define LLWU_F2_WUF8_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4234 | #define LLWU_F2_WUF8(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF8_SHIFT)) & LLWU_F2_WUF8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4235 | #define LLWU_F2_WUF9_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4236 | #define LLWU_F2_WUF9_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4237 | #define LLWU_F2_WUF9(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF9_SHIFT)) & LLWU_F2_WUF9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4238 | #define LLWU_F2_WUF10_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4239 | #define LLWU_F2_WUF10_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4240 | #define LLWU_F2_WUF10(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF10_SHIFT)) & LLWU_F2_WUF10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4241 | #define LLWU_F2_WUF11_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 4242 | #define LLWU_F2_WUF11_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4243 | #define LLWU_F2_WUF11(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF11_SHIFT)) & LLWU_F2_WUF11_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4244 | #define LLWU_F2_WUF12_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 4245 | #define LLWU_F2_WUF12_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4246 | #define LLWU_F2_WUF12(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF12_SHIFT)) & LLWU_F2_WUF12_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4247 | #define LLWU_F2_WUF13_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 4248 | #define LLWU_F2_WUF13_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4249 | #define LLWU_F2_WUF13(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF13_SHIFT)) & LLWU_F2_WUF13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4250 | #define LLWU_F2_WUF14_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 4251 | #define LLWU_F2_WUF14_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4252 | #define LLWU_F2_WUF14(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF14_SHIFT)) & LLWU_F2_WUF14_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4253 | #define LLWU_F2_WUF15_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4254 | #define LLWU_F2_WUF15_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4255 | #define LLWU_F2_WUF15(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F2_WUF15_SHIFT)) & LLWU_F2_WUF15_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4256 | |
AnnaBridge | 171:3a7713b1edbc | 4257 | /*! @name F3 - LLWU Flag 3 register */ |
AnnaBridge | 171:3a7713b1edbc | 4258 | #define LLWU_F3_MWUF0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4259 | #define LLWU_F3_MWUF0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4260 | #define LLWU_F3_MWUF0(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF0_SHIFT)) & LLWU_F3_MWUF0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4261 | #define LLWU_F3_MWUF1_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4262 | #define LLWU_F3_MWUF1_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4263 | #define LLWU_F3_MWUF1(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF1_SHIFT)) & LLWU_F3_MWUF1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4264 | #define LLWU_F3_MWUF2_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4265 | #define LLWU_F3_MWUF2_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4266 | #define LLWU_F3_MWUF2(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF2_SHIFT)) & LLWU_F3_MWUF2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4267 | #define LLWU_F3_MWUF3_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 4268 | #define LLWU_F3_MWUF3_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4269 | #define LLWU_F3_MWUF3(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF3_SHIFT)) & LLWU_F3_MWUF3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4270 | #define LLWU_F3_MWUF4_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 4271 | #define LLWU_F3_MWUF4_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4272 | #define LLWU_F3_MWUF4(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF4_SHIFT)) & LLWU_F3_MWUF4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4273 | #define LLWU_F3_MWUF5_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 4274 | #define LLWU_F3_MWUF5_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4275 | #define LLWU_F3_MWUF5(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF5_SHIFT)) & LLWU_F3_MWUF5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4276 | #define LLWU_F3_MWUF6_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 4277 | #define LLWU_F3_MWUF6_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4278 | #define LLWU_F3_MWUF6(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF6_SHIFT)) & LLWU_F3_MWUF6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4279 | #define LLWU_F3_MWUF7_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4280 | #define LLWU_F3_MWUF7_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4281 | #define LLWU_F3_MWUF7(x) (((uint8_t)(((uint8_t)(x)) << LLWU_F3_MWUF7_SHIFT)) & LLWU_F3_MWUF7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4282 | |
AnnaBridge | 171:3a7713b1edbc | 4283 | /*! @name FILT1 - LLWU Pin Filter 1 register */ |
AnnaBridge | 171:3a7713b1edbc | 4284 | #define LLWU_FILT1_FILTSEL_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 4285 | #define LLWU_FILT1_FILTSEL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4286 | #define LLWU_FILT1_FILTSEL(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTSEL_SHIFT)) & LLWU_FILT1_FILTSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4287 | #define LLWU_FILT1_FILTE_MASK (0x60U) |
AnnaBridge | 171:3a7713b1edbc | 4288 | #define LLWU_FILT1_FILTE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4289 | #define LLWU_FILT1_FILTE(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTE_SHIFT)) & LLWU_FILT1_FILTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4290 | #define LLWU_FILT1_FILTF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4291 | #define LLWU_FILT1_FILTF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4292 | #define LLWU_FILT1_FILTF(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT1_FILTF_SHIFT)) & LLWU_FILT1_FILTF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4293 | |
AnnaBridge | 171:3a7713b1edbc | 4294 | /*! @name FILT2 - LLWU Pin Filter 2 register */ |
AnnaBridge | 171:3a7713b1edbc | 4295 | #define LLWU_FILT2_FILTSEL_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 4296 | #define LLWU_FILT2_FILTSEL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4297 | #define LLWU_FILT2_FILTSEL(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTSEL_SHIFT)) & LLWU_FILT2_FILTSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4298 | #define LLWU_FILT2_FILTE_MASK (0x60U) |
AnnaBridge | 171:3a7713b1edbc | 4299 | #define LLWU_FILT2_FILTE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4300 | #define LLWU_FILT2_FILTE(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTE_SHIFT)) & LLWU_FILT2_FILTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4301 | #define LLWU_FILT2_FILTF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4302 | #define LLWU_FILT2_FILTF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4303 | #define LLWU_FILT2_FILTF(x) (((uint8_t)(((uint8_t)(x)) << LLWU_FILT2_FILTF_SHIFT)) & LLWU_FILT2_FILTF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4304 | |
AnnaBridge | 171:3a7713b1edbc | 4305 | |
AnnaBridge | 171:3a7713b1edbc | 4306 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4307 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4308 | */ /* end of group LLWU_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 4309 | |
AnnaBridge | 171:3a7713b1edbc | 4310 | |
AnnaBridge | 171:3a7713b1edbc | 4311 | /* LLWU - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4312 | /** Peripheral LLWU base address */ |
AnnaBridge | 171:3a7713b1edbc | 4313 | #define LLWU_BASE (0x4007C000u) |
AnnaBridge | 171:3a7713b1edbc | 4314 | /** Peripheral LLWU base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 4315 | #define LLWU ((LLWU_Type *)LLWU_BASE) |
AnnaBridge | 171:3a7713b1edbc | 4316 | /** Array initializer of LLWU peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4317 | #define LLWU_BASE_ADDRS { LLWU_BASE } |
AnnaBridge | 171:3a7713b1edbc | 4318 | /** Array initializer of LLWU peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 4319 | #define LLWU_BASE_PTRS { LLWU } |
AnnaBridge | 171:3a7713b1edbc | 4320 | /** Interrupt vectors for the LLWU peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 4321 | #define LLWU_IRQS { LLWU_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 4322 | |
AnnaBridge | 171:3a7713b1edbc | 4323 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4324 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4325 | */ /* end of group LLWU_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 4326 | |
AnnaBridge | 171:3a7713b1edbc | 4327 | |
AnnaBridge | 171:3a7713b1edbc | 4328 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4329 | -- LPTMR Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4330 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4331 | |
AnnaBridge | 171:3a7713b1edbc | 4332 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4333 | * @addtogroup LPTMR_Peripheral_Access_Layer LPTMR Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4334 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4335 | */ |
AnnaBridge | 171:3a7713b1edbc | 4336 | |
AnnaBridge | 171:3a7713b1edbc | 4337 | /** LPTMR - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 4338 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 4339 | __IO uint32_t CSR; /**< Low Power Timer Control Status Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 4340 | __IO uint32_t PSR; /**< Low Power Timer Prescale Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 4341 | __IO uint32_t CMR; /**< Low Power Timer Compare Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 4342 | __IO uint32_t CNR; /**< Low Power Timer Counter Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 4343 | } LPTMR_Type; |
AnnaBridge | 171:3a7713b1edbc | 4344 | |
AnnaBridge | 171:3a7713b1edbc | 4345 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4346 | -- LPTMR Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4347 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4348 | |
AnnaBridge | 171:3a7713b1edbc | 4349 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4350 | * @addtogroup LPTMR_Register_Masks LPTMR Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4351 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4352 | */ |
AnnaBridge | 171:3a7713b1edbc | 4353 | |
AnnaBridge | 171:3a7713b1edbc | 4354 | /*! @name CSR - Low Power Timer Control Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 4355 | #define LPTMR_CSR_TEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4356 | #define LPTMR_CSR_TEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4357 | #define LPTMR_CSR_TEN(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TEN_SHIFT)) & LPTMR_CSR_TEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4358 | #define LPTMR_CSR_TMS_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4359 | #define LPTMR_CSR_TMS_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4360 | #define LPTMR_CSR_TMS(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TMS_SHIFT)) & LPTMR_CSR_TMS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4361 | #define LPTMR_CSR_TFC_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4362 | #define LPTMR_CSR_TFC_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4363 | #define LPTMR_CSR_TFC(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TFC_SHIFT)) & LPTMR_CSR_TFC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4364 | #define LPTMR_CSR_TPP_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 4365 | #define LPTMR_CSR_TPP_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4366 | #define LPTMR_CSR_TPP(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TPP_SHIFT)) & LPTMR_CSR_TPP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4367 | #define LPTMR_CSR_TPS_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 4368 | #define LPTMR_CSR_TPS_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4369 | #define LPTMR_CSR_TPS(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TPS_SHIFT)) & LPTMR_CSR_TPS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4370 | #define LPTMR_CSR_TIE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 4371 | #define LPTMR_CSR_TIE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4372 | #define LPTMR_CSR_TIE(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TIE_SHIFT)) & LPTMR_CSR_TIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4373 | #define LPTMR_CSR_TCF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4374 | #define LPTMR_CSR_TCF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4375 | #define LPTMR_CSR_TCF(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CSR_TCF_SHIFT)) & LPTMR_CSR_TCF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4376 | |
AnnaBridge | 171:3a7713b1edbc | 4377 | /*! @name PSR - Low Power Timer Prescale Register */ |
AnnaBridge | 171:3a7713b1edbc | 4378 | #define LPTMR_PSR_PCS_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 4379 | #define LPTMR_PSR_PCS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4380 | #define LPTMR_PSR_PCS(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_PSR_PCS_SHIFT)) & LPTMR_PSR_PCS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4381 | #define LPTMR_PSR_PBYP_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4382 | #define LPTMR_PSR_PBYP_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4383 | #define LPTMR_PSR_PBYP(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_PSR_PBYP_SHIFT)) & LPTMR_PSR_PBYP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4384 | #define LPTMR_PSR_PRESCALE_MASK (0x78U) |
AnnaBridge | 171:3a7713b1edbc | 4385 | #define LPTMR_PSR_PRESCALE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4386 | #define LPTMR_PSR_PRESCALE(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_PSR_PRESCALE_SHIFT)) & LPTMR_PSR_PRESCALE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4387 | |
AnnaBridge | 171:3a7713b1edbc | 4388 | /*! @name CMR - Low Power Timer Compare Register */ |
AnnaBridge | 171:3a7713b1edbc | 4389 | #define LPTMR_CMR_COMPARE_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 4390 | #define LPTMR_CMR_COMPARE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4391 | #define LPTMR_CMR_COMPARE(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CMR_COMPARE_SHIFT)) & LPTMR_CMR_COMPARE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4392 | |
AnnaBridge | 171:3a7713b1edbc | 4393 | /*! @name CNR - Low Power Timer Counter Register */ |
AnnaBridge | 171:3a7713b1edbc | 4394 | #define LPTMR_CNR_COUNTER_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 4395 | #define LPTMR_CNR_COUNTER_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4396 | #define LPTMR_CNR_COUNTER(x) (((uint32_t)(((uint32_t)(x)) << LPTMR_CNR_COUNTER_SHIFT)) & LPTMR_CNR_COUNTER_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4397 | |
AnnaBridge | 171:3a7713b1edbc | 4398 | |
AnnaBridge | 171:3a7713b1edbc | 4399 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4400 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4401 | */ /* end of group LPTMR_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 4402 | |
AnnaBridge | 171:3a7713b1edbc | 4403 | |
AnnaBridge | 171:3a7713b1edbc | 4404 | /* LPTMR - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4405 | /** Peripheral LPTMR0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 4406 | #define LPTMR0_BASE (0x40040000u) |
AnnaBridge | 171:3a7713b1edbc | 4407 | /** Peripheral LPTMR0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 4408 | #define LPTMR0 ((LPTMR_Type *)LPTMR0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 4409 | /** Array initializer of LPTMR peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4410 | #define LPTMR_BASE_ADDRS { LPTMR0_BASE } |
AnnaBridge | 171:3a7713b1edbc | 4411 | /** Array initializer of LPTMR peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 4412 | #define LPTMR_BASE_PTRS { LPTMR0 } |
AnnaBridge | 171:3a7713b1edbc | 4413 | /** Interrupt vectors for the LPTMR peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 4414 | #define LPTMR_IRQS { LPTMR0_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 4415 | |
AnnaBridge | 171:3a7713b1edbc | 4416 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4417 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4418 | */ /* end of group LPTMR_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 4419 | |
AnnaBridge | 171:3a7713b1edbc | 4420 | |
AnnaBridge | 171:3a7713b1edbc | 4421 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4422 | -- LPUART Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4423 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4424 | |
AnnaBridge | 171:3a7713b1edbc | 4425 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4426 | * @addtogroup LPUART_Peripheral_Access_Layer LPUART Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4427 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4428 | */ |
AnnaBridge | 171:3a7713b1edbc | 4429 | |
AnnaBridge | 171:3a7713b1edbc | 4430 | /** LPUART - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 4431 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 4432 | __IO uint32_t BAUD; /**< LPUART Baud Rate Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 4433 | __IO uint32_t STAT; /**< LPUART Status Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 4434 | __IO uint32_t CTRL; /**< LPUART Control Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 4435 | __IO uint32_t DATA; /**< LPUART Data Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 4436 | __IO uint32_t MATCH; /**< LPUART Match Address Register, offset: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 4437 | } LPUART_Type; |
AnnaBridge | 171:3a7713b1edbc | 4438 | |
AnnaBridge | 171:3a7713b1edbc | 4439 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4440 | -- LPUART Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4441 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4442 | |
AnnaBridge | 171:3a7713b1edbc | 4443 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4444 | * @addtogroup LPUART_Register_Masks LPUART Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4445 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4446 | */ |
AnnaBridge | 171:3a7713b1edbc | 4447 | |
AnnaBridge | 171:3a7713b1edbc | 4448 | /*! @name BAUD - LPUART Baud Rate Register */ |
AnnaBridge | 171:3a7713b1edbc | 4449 | #define LPUART_BAUD_SBR_MASK (0x1FFFU) |
AnnaBridge | 171:3a7713b1edbc | 4450 | #define LPUART_BAUD_SBR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4451 | #define LPUART_BAUD_SBR(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_SBR_SHIFT)) & LPUART_BAUD_SBR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4452 | #define LPUART_BAUD_SBNS_MASK (0x2000U) |
AnnaBridge | 171:3a7713b1edbc | 4453 | #define LPUART_BAUD_SBNS_SHIFT (13U) |
AnnaBridge | 171:3a7713b1edbc | 4454 | #define LPUART_BAUD_SBNS(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_SBNS_SHIFT)) & LPUART_BAUD_SBNS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4455 | #define LPUART_BAUD_RXEDGIE_MASK (0x4000U) |
AnnaBridge | 171:3a7713b1edbc | 4456 | #define LPUART_BAUD_RXEDGIE_SHIFT (14U) |
AnnaBridge | 171:3a7713b1edbc | 4457 | #define LPUART_BAUD_RXEDGIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_RXEDGIE_SHIFT)) & LPUART_BAUD_RXEDGIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4458 | #define LPUART_BAUD_LBKDIE_MASK (0x8000U) |
AnnaBridge | 171:3a7713b1edbc | 4459 | #define LPUART_BAUD_LBKDIE_SHIFT (15U) |
AnnaBridge | 171:3a7713b1edbc | 4460 | #define LPUART_BAUD_LBKDIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_LBKDIE_SHIFT)) & LPUART_BAUD_LBKDIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4461 | #define LPUART_BAUD_RESYNCDIS_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 4462 | #define LPUART_BAUD_RESYNCDIS_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 4463 | #define LPUART_BAUD_RESYNCDIS(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_RESYNCDIS_SHIFT)) & LPUART_BAUD_RESYNCDIS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4464 | #define LPUART_BAUD_BOTHEDGE_MASK (0x20000U) |
AnnaBridge | 171:3a7713b1edbc | 4465 | #define LPUART_BAUD_BOTHEDGE_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 4466 | #define LPUART_BAUD_BOTHEDGE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_BOTHEDGE_SHIFT)) & LPUART_BAUD_BOTHEDGE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4467 | #define LPUART_BAUD_MATCFG_MASK (0xC0000U) |
AnnaBridge | 171:3a7713b1edbc | 4468 | #define LPUART_BAUD_MATCFG_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 4469 | #define LPUART_BAUD_MATCFG(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_MATCFG_SHIFT)) & LPUART_BAUD_MATCFG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4470 | #define LPUART_BAUD_RDMAE_MASK (0x200000U) |
AnnaBridge | 171:3a7713b1edbc | 4471 | #define LPUART_BAUD_RDMAE_SHIFT (21U) |
AnnaBridge | 171:3a7713b1edbc | 4472 | #define LPUART_BAUD_RDMAE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_RDMAE_SHIFT)) & LPUART_BAUD_RDMAE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4473 | #define LPUART_BAUD_TDMAE_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 4474 | #define LPUART_BAUD_TDMAE_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 4475 | #define LPUART_BAUD_TDMAE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_TDMAE_SHIFT)) & LPUART_BAUD_TDMAE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4476 | #define LPUART_BAUD_OSR_MASK (0x1F000000U) |
AnnaBridge | 171:3a7713b1edbc | 4477 | #define LPUART_BAUD_OSR_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 4478 | #define LPUART_BAUD_OSR(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_OSR_SHIFT)) & LPUART_BAUD_OSR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4479 | #define LPUART_BAUD_M10_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 4480 | #define LPUART_BAUD_M10_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 4481 | #define LPUART_BAUD_M10(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_M10_SHIFT)) & LPUART_BAUD_M10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4482 | #define LPUART_BAUD_MAEN2_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 4483 | #define LPUART_BAUD_MAEN2_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 4484 | #define LPUART_BAUD_MAEN2(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_MAEN2_SHIFT)) & LPUART_BAUD_MAEN2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4485 | #define LPUART_BAUD_MAEN1_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 4486 | #define LPUART_BAUD_MAEN1_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 4487 | #define LPUART_BAUD_MAEN1(x) (((uint32_t)(((uint32_t)(x)) << LPUART_BAUD_MAEN1_SHIFT)) & LPUART_BAUD_MAEN1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4488 | |
AnnaBridge | 171:3a7713b1edbc | 4489 | /*! @name STAT - LPUART Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 4490 | #define LPUART_STAT_MA2F_MASK (0x4000U) |
AnnaBridge | 171:3a7713b1edbc | 4491 | #define LPUART_STAT_MA2F_SHIFT (14U) |
AnnaBridge | 171:3a7713b1edbc | 4492 | #define LPUART_STAT_MA2F(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_MA2F_SHIFT)) & LPUART_STAT_MA2F_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4493 | #define LPUART_STAT_MA1F_MASK (0x8000U) |
AnnaBridge | 171:3a7713b1edbc | 4494 | #define LPUART_STAT_MA1F_SHIFT (15U) |
AnnaBridge | 171:3a7713b1edbc | 4495 | #define LPUART_STAT_MA1F(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_MA1F_SHIFT)) & LPUART_STAT_MA1F_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4496 | #define LPUART_STAT_PF_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 4497 | #define LPUART_STAT_PF_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 4498 | #define LPUART_STAT_PF(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_PF_SHIFT)) & LPUART_STAT_PF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4499 | #define LPUART_STAT_FE_MASK (0x20000U) |
AnnaBridge | 171:3a7713b1edbc | 4500 | #define LPUART_STAT_FE_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 4501 | #define LPUART_STAT_FE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_FE_SHIFT)) & LPUART_STAT_FE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4502 | #define LPUART_STAT_NF_MASK (0x40000U) |
AnnaBridge | 171:3a7713b1edbc | 4503 | #define LPUART_STAT_NF_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 4504 | #define LPUART_STAT_NF(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_NF_SHIFT)) & LPUART_STAT_NF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4505 | #define LPUART_STAT_OR_MASK (0x80000U) |
AnnaBridge | 171:3a7713b1edbc | 4506 | #define LPUART_STAT_OR_SHIFT (19U) |
AnnaBridge | 171:3a7713b1edbc | 4507 | #define LPUART_STAT_OR(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_OR_SHIFT)) & LPUART_STAT_OR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4508 | #define LPUART_STAT_IDLE_MASK (0x100000U) |
AnnaBridge | 171:3a7713b1edbc | 4509 | #define LPUART_STAT_IDLE_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 4510 | #define LPUART_STAT_IDLE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_IDLE_SHIFT)) & LPUART_STAT_IDLE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4511 | #define LPUART_STAT_RDRF_MASK (0x200000U) |
AnnaBridge | 171:3a7713b1edbc | 4512 | #define LPUART_STAT_RDRF_SHIFT (21U) |
AnnaBridge | 171:3a7713b1edbc | 4513 | #define LPUART_STAT_RDRF(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_RDRF_SHIFT)) & LPUART_STAT_RDRF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4514 | #define LPUART_STAT_TC_MASK (0x400000U) |
AnnaBridge | 171:3a7713b1edbc | 4515 | #define LPUART_STAT_TC_SHIFT (22U) |
AnnaBridge | 171:3a7713b1edbc | 4516 | #define LPUART_STAT_TC(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_TC_SHIFT)) & LPUART_STAT_TC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4517 | #define LPUART_STAT_TDRE_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 4518 | #define LPUART_STAT_TDRE_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 4519 | #define LPUART_STAT_TDRE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_TDRE_SHIFT)) & LPUART_STAT_TDRE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4520 | #define LPUART_STAT_RAF_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 4521 | #define LPUART_STAT_RAF_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 4522 | #define LPUART_STAT_RAF(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_RAF_SHIFT)) & LPUART_STAT_RAF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4523 | #define LPUART_STAT_LBKDE_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 4524 | #define LPUART_STAT_LBKDE_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 4525 | #define LPUART_STAT_LBKDE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_LBKDE_SHIFT)) & LPUART_STAT_LBKDE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4526 | #define LPUART_STAT_BRK13_MASK (0x4000000U) |
AnnaBridge | 171:3a7713b1edbc | 4527 | #define LPUART_STAT_BRK13_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 4528 | #define LPUART_STAT_BRK13(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_BRK13_SHIFT)) & LPUART_STAT_BRK13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4529 | #define LPUART_STAT_RWUID_MASK (0x8000000U) |
AnnaBridge | 171:3a7713b1edbc | 4530 | #define LPUART_STAT_RWUID_SHIFT (27U) |
AnnaBridge | 171:3a7713b1edbc | 4531 | #define LPUART_STAT_RWUID(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_RWUID_SHIFT)) & LPUART_STAT_RWUID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4532 | #define LPUART_STAT_RXINV_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 4533 | #define LPUART_STAT_RXINV_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 4534 | #define LPUART_STAT_RXINV(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_RXINV_SHIFT)) & LPUART_STAT_RXINV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4535 | #define LPUART_STAT_MSBF_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 4536 | #define LPUART_STAT_MSBF_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 4537 | #define LPUART_STAT_MSBF(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_MSBF_SHIFT)) & LPUART_STAT_MSBF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4538 | #define LPUART_STAT_RXEDGIF_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 4539 | #define LPUART_STAT_RXEDGIF_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 4540 | #define LPUART_STAT_RXEDGIF(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_RXEDGIF_SHIFT)) & LPUART_STAT_RXEDGIF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4541 | #define LPUART_STAT_LBKDIF_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 4542 | #define LPUART_STAT_LBKDIF_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 4543 | #define LPUART_STAT_LBKDIF(x) (((uint32_t)(((uint32_t)(x)) << LPUART_STAT_LBKDIF_SHIFT)) & LPUART_STAT_LBKDIF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4544 | |
AnnaBridge | 171:3a7713b1edbc | 4545 | /*! @name CTRL - LPUART Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 4546 | #define LPUART_CTRL_PT_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4547 | #define LPUART_CTRL_PT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4548 | #define LPUART_CTRL_PT(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_PT_SHIFT)) & LPUART_CTRL_PT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4549 | #define LPUART_CTRL_PE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4550 | #define LPUART_CTRL_PE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4551 | #define LPUART_CTRL_PE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_PE_SHIFT)) & LPUART_CTRL_PE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4552 | #define LPUART_CTRL_ILT_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4553 | #define LPUART_CTRL_ILT_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4554 | #define LPUART_CTRL_ILT(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_ILT_SHIFT)) & LPUART_CTRL_ILT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4555 | #define LPUART_CTRL_WAKE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 4556 | #define LPUART_CTRL_WAKE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4557 | #define LPUART_CTRL_WAKE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_WAKE_SHIFT)) & LPUART_CTRL_WAKE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4558 | #define LPUART_CTRL_M_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 4559 | #define LPUART_CTRL_M_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4560 | #define LPUART_CTRL_M(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_M_SHIFT)) & LPUART_CTRL_M_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4561 | #define LPUART_CTRL_RSRC_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 4562 | #define LPUART_CTRL_RSRC_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4563 | #define LPUART_CTRL_RSRC(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_RSRC_SHIFT)) & LPUART_CTRL_RSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4564 | #define LPUART_CTRL_DOZEEN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 4565 | #define LPUART_CTRL_DOZEEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4566 | #define LPUART_CTRL_DOZEEN(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_DOZEEN_SHIFT)) & LPUART_CTRL_DOZEEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4567 | #define LPUART_CTRL_LOOPS_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4568 | #define LPUART_CTRL_LOOPS_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4569 | #define LPUART_CTRL_LOOPS(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_LOOPS_SHIFT)) & LPUART_CTRL_LOOPS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4570 | #define LPUART_CTRL_IDLECFG_MASK (0x700U) |
AnnaBridge | 171:3a7713b1edbc | 4571 | #define LPUART_CTRL_IDLECFG_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 4572 | #define LPUART_CTRL_IDLECFG(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_IDLECFG_SHIFT)) & LPUART_CTRL_IDLECFG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4573 | #define LPUART_CTRL_MA2IE_MASK (0x4000U) |
AnnaBridge | 171:3a7713b1edbc | 4574 | #define LPUART_CTRL_MA2IE_SHIFT (14U) |
AnnaBridge | 171:3a7713b1edbc | 4575 | #define LPUART_CTRL_MA2IE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_MA2IE_SHIFT)) & LPUART_CTRL_MA2IE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4576 | #define LPUART_CTRL_MA1IE_MASK (0x8000U) |
AnnaBridge | 171:3a7713b1edbc | 4577 | #define LPUART_CTRL_MA1IE_SHIFT (15U) |
AnnaBridge | 171:3a7713b1edbc | 4578 | #define LPUART_CTRL_MA1IE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_MA1IE_SHIFT)) & LPUART_CTRL_MA1IE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4579 | #define LPUART_CTRL_SBK_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 4580 | #define LPUART_CTRL_SBK_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 4581 | #define LPUART_CTRL_SBK(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_SBK_SHIFT)) & LPUART_CTRL_SBK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4582 | #define LPUART_CTRL_RWU_MASK (0x20000U) |
AnnaBridge | 171:3a7713b1edbc | 4583 | #define LPUART_CTRL_RWU_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 4584 | #define LPUART_CTRL_RWU(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_RWU_SHIFT)) & LPUART_CTRL_RWU_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4585 | #define LPUART_CTRL_RE_MASK (0x40000U) |
AnnaBridge | 171:3a7713b1edbc | 4586 | #define LPUART_CTRL_RE_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 4587 | #define LPUART_CTRL_RE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_RE_SHIFT)) & LPUART_CTRL_RE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4588 | #define LPUART_CTRL_TE_MASK (0x80000U) |
AnnaBridge | 171:3a7713b1edbc | 4589 | #define LPUART_CTRL_TE_SHIFT (19U) |
AnnaBridge | 171:3a7713b1edbc | 4590 | #define LPUART_CTRL_TE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_TE_SHIFT)) & LPUART_CTRL_TE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4591 | #define LPUART_CTRL_ILIE_MASK (0x100000U) |
AnnaBridge | 171:3a7713b1edbc | 4592 | #define LPUART_CTRL_ILIE_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 4593 | #define LPUART_CTRL_ILIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_ILIE_SHIFT)) & LPUART_CTRL_ILIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4594 | #define LPUART_CTRL_RIE_MASK (0x200000U) |
AnnaBridge | 171:3a7713b1edbc | 4595 | #define LPUART_CTRL_RIE_SHIFT (21U) |
AnnaBridge | 171:3a7713b1edbc | 4596 | #define LPUART_CTRL_RIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_RIE_SHIFT)) & LPUART_CTRL_RIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4597 | #define LPUART_CTRL_TCIE_MASK (0x400000U) |
AnnaBridge | 171:3a7713b1edbc | 4598 | #define LPUART_CTRL_TCIE_SHIFT (22U) |
AnnaBridge | 171:3a7713b1edbc | 4599 | #define LPUART_CTRL_TCIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_TCIE_SHIFT)) & LPUART_CTRL_TCIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4600 | #define LPUART_CTRL_TIE_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 4601 | #define LPUART_CTRL_TIE_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 4602 | #define LPUART_CTRL_TIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_TIE_SHIFT)) & LPUART_CTRL_TIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4603 | #define LPUART_CTRL_PEIE_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 4604 | #define LPUART_CTRL_PEIE_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 4605 | #define LPUART_CTRL_PEIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_PEIE_SHIFT)) & LPUART_CTRL_PEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4606 | #define LPUART_CTRL_FEIE_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 4607 | #define LPUART_CTRL_FEIE_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 4608 | #define LPUART_CTRL_FEIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_FEIE_SHIFT)) & LPUART_CTRL_FEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4609 | #define LPUART_CTRL_NEIE_MASK (0x4000000U) |
AnnaBridge | 171:3a7713b1edbc | 4610 | #define LPUART_CTRL_NEIE_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 4611 | #define LPUART_CTRL_NEIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_NEIE_SHIFT)) & LPUART_CTRL_NEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4612 | #define LPUART_CTRL_ORIE_MASK (0x8000000U) |
AnnaBridge | 171:3a7713b1edbc | 4613 | #define LPUART_CTRL_ORIE_SHIFT (27U) |
AnnaBridge | 171:3a7713b1edbc | 4614 | #define LPUART_CTRL_ORIE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_ORIE_SHIFT)) & LPUART_CTRL_ORIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4615 | #define LPUART_CTRL_TXINV_MASK (0x10000000U) |
AnnaBridge | 171:3a7713b1edbc | 4616 | #define LPUART_CTRL_TXINV_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 4617 | #define LPUART_CTRL_TXINV(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_TXINV_SHIFT)) & LPUART_CTRL_TXINV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4618 | #define LPUART_CTRL_TXDIR_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 4619 | #define LPUART_CTRL_TXDIR_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 4620 | #define LPUART_CTRL_TXDIR(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_TXDIR_SHIFT)) & LPUART_CTRL_TXDIR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4621 | #define LPUART_CTRL_R9T8_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 4622 | #define LPUART_CTRL_R9T8_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 4623 | #define LPUART_CTRL_R9T8(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_R9T8_SHIFT)) & LPUART_CTRL_R9T8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4624 | #define LPUART_CTRL_R8T9_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 4625 | #define LPUART_CTRL_R8T9_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 4626 | #define LPUART_CTRL_R8T9(x) (((uint32_t)(((uint32_t)(x)) << LPUART_CTRL_R8T9_SHIFT)) & LPUART_CTRL_R8T9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4627 | |
AnnaBridge | 171:3a7713b1edbc | 4628 | /*! @name DATA - LPUART Data Register */ |
AnnaBridge | 171:3a7713b1edbc | 4629 | #define LPUART_DATA_R0T0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4630 | #define LPUART_DATA_R0T0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4631 | #define LPUART_DATA_R0T0(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R0T0_SHIFT)) & LPUART_DATA_R0T0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4632 | #define LPUART_DATA_R1T1_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4633 | #define LPUART_DATA_R1T1_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4634 | #define LPUART_DATA_R1T1(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R1T1_SHIFT)) & LPUART_DATA_R1T1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4635 | #define LPUART_DATA_R2T2_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4636 | #define LPUART_DATA_R2T2_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4637 | #define LPUART_DATA_R2T2(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R2T2_SHIFT)) & LPUART_DATA_R2T2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4638 | #define LPUART_DATA_R3T3_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 4639 | #define LPUART_DATA_R3T3_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4640 | #define LPUART_DATA_R3T3(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R3T3_SHIFT)) & LPUART_DATA_R3T3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4641 | #define LPUART_DATA_R4T4_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 4642 | #define LPUART_DATA_R4T4_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4643 | #define LPUART_DATA_R4T4(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R4T4_SHIFT)) & LPUART_DATA_R4T4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4644 | #define LPUART_DATA_R5T5_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 4645 | #define LPUART_DATA_R5T5_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4646 | #define LPUART_DATA_R5T5(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R5T5_SHIFT)) & LPUART_DATA_R5T5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4647 | #define LPUART_DATA_R6T6_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 4648 | #define LPUART_DATA_R6T6_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4649 | #define LPUART_DATA_R6T6(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R6T6_SHIFT)) & LPUART_DATA_R6T6_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4650 | #define LPUART_DATA_R7T7_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4651 | #define LPUART_DATA_R7T7_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4652 | #define LPUART_DATA_R7T7(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R7T7_SHIFT)) & LPUART_DATA_R7T7_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4653 | #define LPUART_DATA_R8T8_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 4654 | #define LPUART_DATA_R8T8_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 4655 | #define LPUART_DATA_R8T8(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R8T8_SHIFT)) & LPUART_DATA_R8T8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4656 | #define LPUART_DATA_R9T9_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 4657 | #define LPUART_DATA_R9T9_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 4658 | #define LPUART_DATA_R9T9(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_R9T9_SHIFT)) & LPUART_DATA_R9T9_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4659 | #define LPUART_DATA_IDLINE_MASK (0x800U) |
AnnaBridge | 171:3a7713b1edbc | 4660 | #define LPUART_DATA_IDLINE_SHIFT (11U) |
AnnaBridge | 171:3a7713b1edbc | 4661 | #define LPUART_DATA_IDLINE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_IDLINE_SHIFT)) & LPUART_DATA_IDLINE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4662 | #define LPUART_DATA_RXEMPT_MASK (0x1000U) |
AnnaBridge | 171:3a7713b1edbc | 4663 | #define LPUART_DATA_RXEMPT_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 4664 | #define LPUART_DATA_RXEMPT(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_RXEMPT_SHIFT)) & LPUART_DATA_RXEMPT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4665 | #define LPUART_DATA_FRETSC_MASK (0x2000U) |
AnnaBridge | 171:3a7713b1edbc | 4666 | #define LPUART_DATA_FRETSC_SHIFT (13U) |
AnnaBridge | 171:3a7713b1edbc | 4667 | #define LPUART_DATA_FRETSC(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_FRETSC_SHIFT)) & LPUART_DATA_FRETSC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4668 | #define LPUART_DATA_PARITYE_MASK (0x4000U) |
AnnaBridge | 171:3a7713b1edbc | 4669 | #define LPUART_DATA_PARITYE_SHIFT (14U) |
AnnaBridge | 171:3a7713b1edbc | 4670 | #define LPUART_DATA_PARITYE(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_PARITYE_SHIFT)) & LPUART_DATA_PARITYE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4671 | #define LPUART_DATA_NOISY_MASK (0x8000U) |
AnnaBridge | 171:3a7713b1edbc | 4672 | #define LPUART_DATA_NOISY_SHIFT (15U) |
AnnaBridge | 171:3a7713b1edbc | 4673 | #define LPUART_DATA_NOISY(x) (((uint32_t)(((uint32_t)(x)) << LPUART_DATA_NOISY_SHIFT)) & LPUART_DATA_NOISY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4674 | |
AnnaBridge | 171:3a7713b1edbc | 4675 | /*! @name MATCH - LPUART Match Address Register */ |
AnnaBridge | 171:3a7713b1edbc | 4676 | #define LPUART_MATCH_MA1_MASK (0x3FFU) |
AnnaBridge | 171:3a7713b1edbc | 4677 | #define LPUART_MATCH_MA1_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4678 | #define LPUART_MATCH_MA1(x) (((uint32_t)(((uint32_t)(x)) << LPUART_MATCH_MA1_SHIFT)) & LPUART_MATCH_MA1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4679 | #define LPUART_MATCH_MA2_MASK (0x3FF0000U) |
AnnaBridge | 171:3a7713b1edbc | 4680 | #define LPUART_MATCH_MA2_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 4681 | #define LPUART_MATCH_MA2(x) (((uint32_t)(((uint32_t)(x)) << LPUART_MATCH_MA2_SHIFT)) & LPUART_MATCH_MA2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4682 | |
AnnaBridge | 171:3a7713b1edbc | 4683 | |
AnnaBridge | 171:3a7713b1edbc | 4684 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4685 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4686 | */ /* end of group LPUART_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 4687 | |
AnnaBridge | 171:3a7713b1edbc | 4688 | |
AnnaBridge | 171:3a7713b1edbc | 4689 | /* LPUART - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4690 | /** Peripheral LPUART0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 4691 | #define LPUART0_BASE (0x40054000u) |
AnnaBridge | 171:3a7713b1edbc | 4692 | /** Peripheral LPUART0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 4693 | #define LPUART0 ((LPUART_Type *)LPUART0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 4694 | /** Peripheral LPUART1 base address */ |
AnnaBridge | 171:3a7713b1edbc | 4695 | #define LPUART1_BASE (0x40055000u) |
AnnaBridge | 171:3a7713b1edbc | 4696 | /** Peripheral LPUART1 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 4697 | #define LPUART1 ((LPUART_Type *)LPUART1_BASE) |
AnnaBridge | 171:3a7713b1edbc | 4698 | /** Array initializer of LPUART peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4699 | #define LPUART_BASE_ADDRS { LPUART0_BASE, LPUART1_BASE } |
AnnaBridge | 171:3a7713b1edbc | 4700 | /** Array initializer of LPUART peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 4701 | #define LPUART_BASE_PTRS { LPUART0, LPUART1 } |
AnnaBridge | 171:3a7713b1edbc | 4702 | /** Interrupt vectors for the LPUART peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 4703 | #define LPUART_RX_TX_IRQS { LPUART0_IRQn, LPUART1_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 4704 | #define LPUART_ERR_IRQS { LPUART0_IRQn, LPUART1_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 4705 | |
AnnaBridge | 171:3a7713b1edbc | 4706 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4707 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4708 | */ /* end of group LPUART_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 4709 | |
AnnaBridge | 171:3a7713b1edbc | 4710 | |
AnnaBridge | 171:3a7713b1edbc | 4711 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4712 | -- MCG Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4713 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4714 | |
AnnaBridge | 171:3a7713b1edbc | 4715 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4716 | * @addtogroup MCG_Peripheral_Access_Layer MCG Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4717 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4718 | */ |
AnnaBridge | 171:3a7713b1edbc | 4719 | |
AnnaBridge | 171:3a7713b1edbc | 4720 | /** MCG - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 4721 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 4722 | __IO uint8_t C1; /**< MCG Control Register 1, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 4723 | __IO uint8_t C2; /**< MCG Control Register 2, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 4724 | uint8_t RESERVED_0[4]; |
AnnaBridge | 171:3a7713b1edbc | 4725 | __I uint8_t S; /**< MCG Status Register, offset: 0x6 */ |
AnnaBridge | 171:3a7713b1edbc | 4726 | uint8_t RESERVED_1[1]; |
AnnaBridge | 171:3a7713b1edbc | 4727 | __IO uint8_t SC; /**< MCG Status and Control Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 4728 | uint8_t RESERVED_2[11]; |
AnnaBridge | 171:3a7713b1edbc | 4729 | __I uint8_t HCTRIM; /**< MCG High-frequency IRC Coarse Trim Register, offset: 0x14 */ |
AnnaBridge | 171:3a7713b1edbc | 4730 | __I uint8_t HTTRIM; /**< MCG High-frequency IRC Tempco (Temperature Coefficient) Trim Register, offset: 0x15 */ |
AnnaBridge | 171:3a7713b1edbc | 4731 | __I uint8_t HFTRIM; /**< MCG High-frequency IRC Fine Trim Register, offset: 0x16 */ |
AnnaBridge | 171:3a7713b1edbc | 4732 | uint8_t RESERVED_3[1]; |
AnnaBridge | 171:3a7713b1edbc | 4733 | __IO uint8_t MC; /**< MCG Miscellaneous Control Register, offset: 0x18 */ |
AnnaBridge | 171:3a7713b1edbc | 4734 | __I uint8_t LTRIMRNG; /**< MCG Low-frequency IRC Trim Range Register, offset: 0x19 */ |
AnnaBridge | 171:3a7713b1edbc | 4735 | __I uint8_t LFTRIM; /**< MCG Low-frequency IRC8M Trim Register, offset: 0x1A */ |
AnnaBridge | 171:3a7713b1edbc | 4736 | __I uint8_t LSTRIM; /**< MCG Low-frequency IRC2M Trim Register, offset: 0x1B */ |
AnnaBridge | 171:3a7713b1edbc | 4737 | } MCG_Type; |
AnnaBridge | 171:3a7713b1edbc | 4738 | |
AnnaBridge | 171:3a7713b1edbc | 4739 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4740 | -- MCG Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4741 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4742 | |
AnnaBridge | 171:3a7713b1edbc | 4743 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4744 | * @addtogroup MCG_Register_Masks MCG Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4745 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4746 | */ |
AnnaBridge | 171:3a7713b1edbc | 4747 | |
AnnaBridge | 171:3a7713b1edbc | 4748 | /*! @name C1 - MCG Control Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 4749 | #define MCG_C1_IREFSTEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4750 | #define MCG_C1_IREFSTEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4751 | #define MCG_C1_IREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_IREFSTEN_SHIFT)) & MCG_C1_IREFSTEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4752 | #define MCG_C1_IRCLKEN_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4753 | #define MCG_C1_IRCLKEN_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4754 | #define MCG_C1_IRCLKEN(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_IRCLKEN_SHIFT)) & MCG_C1_IRCLKEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4755 | #define MCG_C1_CLKS_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 4756 | #define MCG_C1_CLKS_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 4757 | #define MCG_C1_CLKS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C1_CLKS_SHIFT)) & MCG_C1_CLKS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4758 | |
AnnaBridge | 171:3a7713b1edbc | 4759 | /*! @name C2 - MCG Control Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 4760 | #define MCG_C2_IRCS_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4761 | #define MCG_C2_IRCS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4762 | #define MCG_C2_IRCS(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_IRCS_SHIFT)) & MCG_C2_IRCS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4763 | #define MCG_C2_EREFS0_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4764 | #define MCG_C2_EREFS0_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4765 | #define MCG_C2_EREFS0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_EREFS0_SHIFT)) & MCG_C2_EREFS0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4766 | #define MCG_C2_HGO0_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 4767 | #define MCG_C2_HGO0_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4768 | #define MCG_C2_HGO0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_HGO0_SHIFT)) & MCG_C2_HGO0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4769 | #define MCG_C2_RANGE0_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 4770 | #define MCG_C2_RANGE0_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 4771 | #define MCG_C2_RANGE0(x) (((uint8_t)(((uint8_t)(x)) << MCG_C2_RANGE0_SHIFT)) & MCG_C2_RANGE0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4772 | |
AnnaBridge | 171:3a7713b1edbc | 4773 | /*! @name S - MCG Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 4774 | #define MCG_S_OSCINIT0_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4775 | #define MCG_S_OSCINIT0_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4776 | #define MCG_S_OSCINIT0(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_OSCINIT0_SHIFT)) & MCG_S_OSCINIT0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4777 | #define MCG_S_CLKST_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 4778 | #define MCG_S_CLKST_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4779 | #define MCG_S_CLKST(x) (((uint8_t)(((uint8_t)(x)) << MCG_S_CLKST_SHIFT)) & MCG_S_CLKST_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4780 | |
AnnaBridge | 171:3a7713b1edbc | 4781 | /*! @name SC - MCG Status and Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 4782 | #define MCG_SC_FCRDIV_MASK (0xEU) |
AnnaBridge | 171:3a7713b1edbc | 4783 | #define MCG_SC_FCRDIV_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4784 | #define MCG_SC_FCRDIV(x) (((uint8_t)(((uint8_t)(x)) << MCG_SC_FCRDIV_SHIFT)) & MCG_SC_FCRDIV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4785 | |
AnnaBridge | 171:3a7713b1edbc | 4786 | /*! @name HCTRIM - MCG High-frequency IRC Coarse Trim Register */ |
AnnaBridge | 171:3a7713b1edbc | 4787 | #define MCG_HCTRIM_COARSE_TRIM_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 4788 | #define MCG_HCTRIM_COARSE_TRIM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4789 | #define MCG_HCTRIM_COARSE_TRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_HCTRIM_COARSE_TRIM_SHIFT)) & MCG_HCTRIM_COARSE_TRIM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4790 | |
AnnaBridge | 171:3a7713b1edbc | 4791 | /*! @name HTTRIM - MCG High-frequency IRC Tempco (Temperature Coefficient) Trim Register */ |
AnnaBridge | 171:3a7713b1edbc | 4792 | #define MCG_HTTRIM_TEMPCO_TRIM_MASK (0x1FU) |
AnnaBridge | 171:3a7713b1edbc | 4793 | #define MCG_HTTRIM_TEMPCO_TRIM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4794 | #define MCG_HTTRIM_TEMPCO_TRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_HTTRIM_TEMPCO_TRIM_SHIFT)) & MCG_HTTRIM_TEMPCO_TRIM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4795 | |
AnnaBridge | 171:3a7713b1edbc | 4796 | /*! @name HFTRIM - MCG High-frequency IRC Fine Trim Register */ |
AnnaBridge | 171:3a7713b1edbc | 4797 | #define MCG_HFTRIM_FINE_TRIM_MASK (0x7FU) |
AnnaBridge | 171:3a7713b1edbc | 4798 | #define MCG_HFTRIM_FINE_TRIM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4799 | #define MCG_HFTRIM_FINE_TRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_HFTRIM_FINE_TRIM_SHIFT)) & MCG_HFTRIM_FINE_TRIM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4800 | |
AnnaBridge | 171:3a7713b1edbc | 4801 | /*! @name MC - MCG Miscellaneous Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 4802 | #define MCG_MC_LIRC_DIV2_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 4803 | #define MCG_MC_LIRC_DIV2_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4804 | #define MCG_MC_LIRC_DIV2(x) (((uint8_t)(((uint8_t)(x)) << MCG_MC_LIRC_DIV2_SHIFT)) & MCG_MC_LIRC_DIV2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4805 | #define MCG_MC_HIRCEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 4806 | #define MCG_MC_HIRCEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 4807 | #define MCG_MC_HIRCEN(x) (((uint8_t)(((uint8_t)(x)) << MCG_MC_HIRCEN_SHIFT)) & MCG_MC_HIRCEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4808 | |
AnnaBridge | 171:3a7713b1edbc | 4809 | /*! @name LTRIMRNG - MCG Low-frequency IRC Trim Range Register */ |
AnnaBridge | 171:3a7713b1edbc | 4810 | #define MCG_LTRIMRNG_STRIMRNG_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 4811 | #define MCG_LTRIMRNG_STRIMRNG_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4812 | #define MCG_LTRIMRNG_STRIMRNG(x) (((uint8_t)(((uint8_t)(x)) << MCG_LTRIMRNG_STRIMRNG_SHIFT)) & MCG_LTRIMRNG_STRIMRNG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4813 | #define MCG_LTRIMRNG_FTRIMRNG_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 4814 | #define MCG_LTRIMRNG_FTRIMRNG_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4815 | #define MCG_LTRIMRNG_FTRIMRNG(x) (((uint8_t)(((uint8_t)(x)) << MCG_LTRIMRNG_FTRIMRNG_SHIFT)) & MCG_LTRIMRNG_FTRIMRNG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4816 | |
AnnaBridge | 171:3a7713b1edbc | 4817 | /*! @name LFTRIM - MCG Low-frequency IRC8M Trim Register */ |
AnnaBridge | 171:3a7713b1edbc | 4818 | #define MCG_LFTRIM_LIRC_FTRIM_MASK (0x7FU) |
AnnaBridge | 171:3a7713b1edbc | 4819 | #define MCG_LFTRIM_LIRC_FTRIM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4820 | #define MCG_LFTRIM_LIRC_FTRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_LFTRIM_LIRC_FTRIM_SHIFT)) & MCG_LFTRIM_LIRC_FTRIM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4821 | |
AnnaBridge | 171:3a7713b1edbc | 4822 | /*! @name LSTRIM - MCG Low-frequency IRC2M Trim Register */ |
AnnaBridge | 171:3a7713b1edbc | 4823 | #define MCG_LSTRIM_LIRC_STRIM_MASK (0x7FU) |
AnnaBridge | 171:3a7713b1edbc | 4824 | #define MCG_LSTRIM_LIRC_STRIM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4825 | #define MCG_LSTRIM_LIRC_STRIM(x) (((uint8_t)(((uint8_t)(x)) << MCG_LSTRIM_LIRC_STRIM_SHIFT)) & MCG_LSTRIM_LIRC_STRIM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4826 | |
AnnaBridge | 171:3a7713b1edbc | 4827 | |
AnnaBridge | 171:3a7713b1edbc | 4828 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4829 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4830 | */ /* end of group MCG_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 4831 | |
AnnaBridge | 171:3a7713b1edbc | 4832 | |
AnnaBridge | 171:3a7713b1edbc | 4833 | /* MCG - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4834 | /** Peripheral MCG base address */ |
AnnaBridge | 171:3a7713b1edbc | 4835 | #define MCG_BASE (0x40064000u) |
AnnaBridge | 171:3a7713b1edbc | 4836 | /** Peripheral MCG base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 4837 | #define MCG ((MCG_Type *)MCG_BASE) |
AnnaBridge | 171:3a7713b1edbc | 4838 | /** Array initializer of MCG peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4839 | #define MCG_BASE_ADDRS { MCG_BASE } |
AnnaBridge | 171:3a7713b1edbc | 4840 | /** Array initializer of MCG peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 4841 | #define MCG_BASE_PTRS { MCG } |
AnnaBridge | 171:3a7713b1edbc | 4842 | |
AnnaBridge | 171:3a7713b1edbc | 4843 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4844 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4845 | */ /* end of group MCG_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 4846 | |
AnnaBridge | 171:3a7713b1edbc | 4847 | |
AnnaBridge | 171:3a7713b1edbc | 4848 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4849 | -- MCM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4850 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4851 | |
AnnaBridge | 171:3a7713b1edbc | 4852 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4853 | * @addtogroup MCM_Peripheral_Access_Layer MCM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4854 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4855 | */ |
AnnaBridge | 171:3a7713b1edbc | 4856 | |
AnnaBridge | 171:3a7713b1edbc | 4857 | /** MCM - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 4858 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 4859 | uint8_t RESERVED_0[8]; |
AnnaBridge | 171:3a7713b1edbc | 4860 | __I uint16_t PLASC; /**< Crossbar Switch (AXBS) Slave Configuration, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 4861 | __I uint16_t PLAMC; /**< Crossbar Switch (AXBS) Master Configuration, offset: 0xA */ |
AnnaBridge | 171:3a7713b1edbc | 4862 | __IO uint32_t PLACR; /**< Platform Control Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 4863 | uint8_t RESERVED_1[48]; |
AnnaBridge | 171:3a7713b1edbc | 4864 | __IO uint32_t CPO; /**< Compute Operation Control Register, offset: 0x40 */ |
AnnaBridge | 171:3a7713b1edbc | 4865 | } MCM_Type; |
AnnaBridge | 171:3a7713b1edbc | 4866 | |
AnnaBridge | 171:3a7713b1edbc | 4867 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4868 | -- MCM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4869 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4870 | |
AnnaBridge | 171:3a7713b1edbc | 4871 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4872 | * @addtogroup MCM_Register_Masks MCM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4873 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4874 | */ |
AnnaBridge | 171:3a7713b1edbc | 4875 | |
AnnaBridge | 171:3a7713b1edbc | 4876 | /*! @name PLASC - Crossbar Switch (AXBS) Slave Configuration */ |
AnnaBridge | 171:3a7713b1edbc | 4877 | #define MCM_PLASC_ASC_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 4878 | #define MCM_PLASC_ASC_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4879 | #define MCM_PLASC_ASC(x) (((uint16_t)(((uint16_t)(x)) << MCM_PLASC_ASC_SHIFT)) & MCM_PLASC_ASC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4880 | |
AnnaBridge | 171:3a7713b1edbc | 4881 | /*! @name PLAMC - Crossbar Switch (AXBS) Master Configuration */ |
AnnaBridge | 171:3a7713b1edbc | 4882 | #define MCM_PLAMC_AMC_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 4883 | #define MCM_PLAMC_AMC_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4884 | #define MCM_PLAMC_AMC(x) (((uint16_t)(((uint16_t)(x)) << MCM_PLAMC_AMC_SHIFT)) & MCM_PLAMC_AMC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4885 | |
AnnaBridge | 171:3a7713b1edbc | 4886 | /*! @name PLACR - Platform Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 4887 | #define MCM_PLACR_ARB_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 4888 | #define MCM_PLACR_ARB_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 4889 | #define MCM_PLACR_ARB(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_ARB_SHIFT)) & MCM_PLACR_ARB_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4890 | #define MCM_PLACR_CFCC_MASK (0x400U) |
AnnaBridge | 171:3a7713b1edbc | 4891 | #define MCM_PLACR_CFCC_SHIFT (10U) |
AnnaBridge | 171:3a7713b1edbc | 4892 | #define MCM_PLACR_CFCC(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_CFCC_SHIFT)) & MCM_PLACR_CFCC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4893 | #define MCM_PLACR_DFCDA_MASK (0x800U) |
AnnaBridge | 171:3a7713b1edbc | 4894 | #define MCM_PLACR_DFCDA_SHIFT (11U) |
AnnaBridge | 171:3a7713b1edbc | 4895 | #define MCM_PLACR_DFCDA(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_DFCDA_SHIFT)) & MCM_PLACR_DFCDA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4896 | #define MCM_PLACR_DFCIC_MASK (0x1000U) |
AnnaBridge | 171:3a7713b1edbc | 4897 | #define MCM_PLACR_DFCIC_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 4898 | #define MCM_PLACR_DFCIC(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_DFCIC_SHIFT)) & MCM_PLACR_DFCIC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4899 | #define MCM_PLACR_DFCC_MASK (0x2000U) |
AnnaBridge | 171:3a7713b1edbc | 4900 | #define MCM_PLACR_DFCC_SHIFT (13U) |
AnnaBridge | 171:3a7713b1edbc | 4901 | #define MCM_PLACR_DFCC(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_DFCC_SHIFT)) & MCM_PLACR_DFCC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4902 | #define MCM_PLACR_EFDS_MASK (0x4000U) |
AnnaBridge | 171:3a7713b1edbc | 4903 | #define MCM_PLACR_EFDS_SHIFT (14U) |
AnnaBridge | 171:3a7713b1edbc | 4904 | #define MCM_PLACR_EFDS(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_EFDS_SHIFT)) & MCM_PLACR_EFDS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4905 | #define MCM_PLACR_DFCS_MASK (0x8000U) |
AnnaBridge | 171:3a7713b1edbc | 4906 | #define MCM_PLACR_DFCS_SHIFT (15U) |
AnnaBridge | 171:3a7713b1edbc | 4907 | #define MCM_PLACR_DFCS(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_DFCS_SHIFT)) & MCM_PLACR_DFCS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4908 | #define MCM_PLACR_ESFC_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 4909 | #define MCM_PLACR_ESFC_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 4910 | #define MCM_PLACR_ESFC(x) (((uint32_t)(((uint32_t)(x)) << MCM_PLACR_ESFC_SHIFT)) & MCM_PLACR_ESFC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4911 | |
AnnaBridge | 171:3a7713b1edbc | 4912 | /*! @name CPO - Compute Operation Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 4913 | #define MCM_CPO_CPOREQ_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 4914 | #define MCM_CPO_CPOREQ_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4915 | #define MCM_CPO_CPOREQ(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOREQ_SHIFT)) & MCM_CPO_CPOREQ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4916 | #define MCM_CPO_CPOACK_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 4917 | #define MCM_CPO_CPOACK_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 4918 | #define MCM_CPO_CPOACK(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOACK_SHIFT)) & MCM_CPO_CPOACK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4919 | #define MCM_CPO_CPOWOI_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4920 | #define MCM_CPO_CPOWOI_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4921 | #define MCM_CPO_CPOWOI(x) (((uint32_t)(((uint32_t)(x)) << MCM_CPO_CPOWOI_SHIFT)) & MCM_CPO_CPOWOI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4922 | |
AnnaBridge | 171:3a7713b1edbc | 4923 | |
AnnaBridge | 171:3a7713b1edbc | 4924 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4925 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4926 | */ /* end of group MCM_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 4927 | |
AnnaBridge | 171:3a7713b1edbc | 4928 | |
AnnaBridge | 171:3a7713b1edbc | 4929 | /* MCM - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4930 | /** Peripheral MCM base address */ |
AnnaBridge | 171:3a7713b1edbc | 4931 | #define MCM_BASE (0xF0003000u) |
AnnaBridge | 171:3a7713b1edbc | 4932 | /** Peripheral MCM base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 4933 | #define MCM ((MCM_Type *)MCM_BASE) |
AnnaBridge | 171:3a7713b1edbc | 4934 | /** Array initializer of MCM peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 4935 | #define MCM_BASE_ADDRS { MCM_BASE } |
AnnaBridge | 171:3a7713b1edbc | 4936 | /** Array initializer of MCM peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 4937 | #define MCM_BASE_PTRS { MCM } |
AnnaBridge | 171:3a7713b1edbc | 4938 | |
AnnaBridge | 171:3a7713b1edbc | 4939 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4940 | * @} |
AnnaBridge | 171:3a7713b1edbc | 4941 | */ /* end of group MCM_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 4942 | |
AnnaBridge | 171:3a7713b1edbc | 4943 | |
AnnaBridge | 171:3a7713b1edbc | 4944 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4945 | -- MTB Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4946 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4947 | |
AnnaBridge | 171:3a7713b1edbc | 4948 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4949 | * @addtogroup MTB_Peripheral_Access_Layer MTB Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 4950 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4951 | */ |
AnnaBridge | 171:3a7713b1edbc | 4952 | |
AnnaBridge | 171:3a7713b1edbc | 4953 | /** MTB - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 4954 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 4955 | __IO uint32_t POSITION; /**< MTB Position Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 4956 | __IO uint32_t MASTER; /**< MTB Master Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 4957 | __IO uint32_t FLOW; /**< MTB Flow Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 4958 | __I uint32_t BASE; /**< MTB Base Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 4959 | uint8_t RESERVED_0[3824]; |
AnnaBridge | 171:3a7713b1edbc | 4960 | __I uint32_t MODECTRL; /**< Integration Mode Control Register, offset: 0xF00 */ |
AnnaBridge | 171:3a7713b1edbc | 4961 | uint8_t RESERVED_1[156]; |
AnnaBridge | 171:3a7713b1edbc | 4962 | __I uint32_t TAGSET; /**< Claim TAG Set Register, offset: 0xFA0 */ |
AnnaBridge | 171:3a7713b1edbc | 4963 | __I uint32_t TAGCLEAR; /**< Claim TAG Clear Register, offset: 0xFA4 */ |
AnnaBridge | 171:3a7713b1edbc | 4964 | uint8_t RESERVED_2[8]; |
AnnaBridge | 171:3a7713b1edbc | 4965 | __I uint32_t LOCKACCESS; /**< Lock Access Register, offset: 0xFB0 */ |
AnnaBridge | 171:3a7713b1edbc | 4966 | __I uint32_t LOCKSTAT; /**< Lock Status Register, offset: 0xFB4 */ |
AnnaBridge | 171:3a7713b1edbc | 4967 | __I uint32_t AUTHSTAT; /**< Authentication Status Register, offset: 0xFB8 */ |
AnnaBridge | 171:3a7713b1edbc | 4968 | __I uint32_t DEVICEARCH; /**< Device Architecture Register, offset: 0xFBC */ |
AnnaBridge | 171:3a7713b1edbc | 4969 | uint8_t RESERVED_3[8]; |
AnnaBridge | 171:3a7713b1edbc | 4970 | __I uint32_t DEVICECFG; /**< Device Configuration Register, offset: 0xFC8 */ |
AnnaBridge | 171:3a7713b1edbc | 4971 | __I uint32_t DEVICETYPID; /**< Device Type Identifier Register, offset: 0xFCC */ |
AnnaBridge | 171:3a7713b1edbc | 4972 | __I uint32_t PERIPHID[8]; /**< Peripheral ID Register, array offset: 0xFD0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 4973 | __I uint32_t COMPID[4]; /**< Component ID Register, array offset: 0xFF0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 4974 | } MTB_Type; |
AnnaBridge | 171:3a7713b1edbc | 4975 | |
AnnaBridge | 171:3a7713b1edbc | 4976 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 4977 | -- MTB Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4978 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 4979 | |
AnnaBridge | 171:3a7713b1edbc | 4980 | /*! |
AnnaBridge | 171:3a7713b1edbc | 4981 | * @addtogroup MTB_Register_Masks MTB Register Masks |
AnnaBridge | 171:3a7713b1edbc | 4982 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 4983 | */ |
AnnaBridge | 171:3a7713b1edbc | 4984 | |
AnnaBridge | 171:3a7713b1edbc | 4985 | /*! @name POSITION - MTB Position Register */ |
AnnaBridge | 171:3a7713b1edbc | 4986 | #define MTB_POSITION_WRAP_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 4987 | #define MTB_POSITION_WRAP_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 4988 | #define MTB_POSITION_WRAP(x) (((uint32_t)(((uint32_t)(x)) << MTB_POSITION_WRAP_SHIFT)) & MTB_POSITION_WRAP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4989 | #define MTB_POSITION_POINTER_MASK (0xFFFFFFF8U) |
AnnaBridge | 171:3a7713b1edbc | 4990 | #define MTB_POSITION_POINTER_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 4991 | #define MTB_POSITION_POINTER(x) (((uint32_t)(((uint32_t)(x)) << MTB_POSITION_POINTER_SHIFT)) & MTB_POSITION_POINTER_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4992 | |
AnnaBridge | 171:3a7713b1edbc | 4993 | /*! @name MASTER - MTB Master Register */ |
AnnaBridge | 171:3a7713b1edbc | 4994 | #define MTB_MASTER_MASK_MASK (0x1FU) |
AnnaBridge | 171:3a7713b1edbc | 4995 | #define MTB_MASTER_MASK_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 4996 | #define MTB_MASTER_MASK(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_MASK_SHIFT)) & MTB_MASTER_MASK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 4997 | #define MTB_MASTER_TSTARTEN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 4998 | #define MTB_MASTER_TSTARTEN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 4999 | #define MTB_MASTER_TSTARTEN(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_TSTARTEN_SHIFT)) & MTB_MASTER_TSTARTEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5000 | #define MTB_MASTER_TSTOPEN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 5001 | #define MTB_MASTER_TSTOPEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 5002 | #define MTB_MASTER_TSTOPEN(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_TSTOPEN_SHIFT)) & MTB_MASTER_TSTOPEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5003 | #define MTB_MASTER_SFRWPRIV_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 5004 | #define MTB_MASTER_SFRWPRIV_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 5005 | #define MTB_MASTER_SFRWPRIV(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_SFRWPRIV_SHIFT)) & MTB_MASTER_SFRWPRIV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5006 | #define MTB_MASTER_RAMPRIV_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 5007 | #define MTB_MASTER_RAMPRIV_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 5008 | #define MTB_MASTER_RAMPRIV(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_RAMPRIV_SHIFT)) & MTB_MASTER_RAMPRIV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5009 | #define MTB_MASTER_HALTREQ_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 5010 | #define MTB_MASTER_HALTREQ_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 5011 | #define MTB_MASTER_HALTREQ(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_HALTREQ_SHIFT)) & MTB_MASTER_HALTREQ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5012 | #define MTB_MASTER_EN_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 5013 | #define MTB_MASTER_EN_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 5014 | #define MTB_MASTER_EN(x) (((uint32_t)(((uint32_t)(x)) << MTB_MASTER_EN_SHIFT)) & MTB_MASTER_EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5015 | |
AnnaBridge | 171:3a7713b1edbc | 5016 | /*! @name FLOW - MTB Flow Register */ |
AnnaBridge | 171:3a7713b1edbc | 5017 | #define MTB_FLOW_AUTOSTOP_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5018 | #define MTB_FLOW_AUTOSTOP_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5019 | #define MTB_FLOW_AUTOSTOP(x) (((uint32_t)(((uint32_t)(x)) << MTB_FLOW_AUTOSTOP_SHIFT)) & MTB_FLOW_AUTOSTOP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5020 | #define MTB_FLOW_AUTOHALT_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5021 | #define MTB_FLOW_AUTOHALT_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5022 | #define MTB_FLOW_AUTOHALT(x) (((uint32_t)(((uint32_t)(x)) << MTB_FLOW_AUTOHALT_SHIFT)) & MTB_FLOW_AUTOHALT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5023 | #define MTB_FLOW_WATERMARK_MASK (0xFFFFFFF8U) |
AnnaBridge | 171:3a7713b1edbc | 5024 | #define MTB_FLOW_WATERMARK_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 5025 | #define MTB_FLOW_WATERMARK(x) (((uint32_t)(((uint32_t)(x)) << MTB_FLOW_WATERMARK_SHIFT)) & MTB_FLOW_WATERMARK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5026 | |
AnnaBridge | 171:3a7713b1edbc | 5027 | /*! @name BASE - MTB Base Register */ |
AnnaBridge | 171:3a7713b1edbc | 5028 | #define MTB_BASE_BASEADDR_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5029 | #define MTB_BASE_BASEADDR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5030 | #define MTB_BASE_BASEADDR(x) (((uint32_t)(((uint32_t)(x)) << MTB_BASE_BASEADDR_SHIFT)) & MTB_BASE_BASEADDR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5031 | |
AnnaBridge | 171:3a7713b1edbc | 5032 | /*! @name MODECTRL - Integration Mode Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 5033 | #define MTB_MODECTRL_MODECTRL_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5034 | #define MTB_MODECTRL_MODECTRL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5035 | #define MTB_MODECTRL_MODECTRL(x) (((uint32_t)(((uint32_t)(x)) << MTB_MODECTRL_MODECTRL_SHIFT)) & MTB_MODECTRL_MODECTRL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5036 | |
AnnaBridge | 171:3a7713b1edbc | 5037 | /*! @name TAGSET - Claim TAG Set Register */ |
AnnaBridge | 171:3a7713b1edbc | 5038 | #define MTB_TAGSET_TAGSET_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5039 | #define MTB_TAGSET_TAGSET_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5040 | #define MTB_TAGSET_TAGSET(x) (((uint32_t)(((uint32_t)(x)) << MTB_TAGSET_TAGSET_SHIFT)) & MTB_TAGSET_TAGSET_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5041 | |
AnnaBridge | 171:3a7713b1edbc | 5042 | /*! @name TAGCLEAR - Claim TAG Clear Register */ |
AnnaBridge | 171:3a7713b1edbc | 5043 | #define MTB_TAGCLEAR_TAGCLEAR_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5044 | #define MTB_TAGCLEAR_TAGCLEAR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5045 | #define MTB_TAGCLEAR_TAGCLEAR(x) (((uint32_t)(((uint32_t)(x)) << MTB_TAGCLEAR_TAGCLEAR_SHIFT)) & MTB_TAGCLEAR_TAGCLEAR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5046 | |
AnnaBridge | 171:3a7713b1edbc | 5047 | /*! @name LOCKACCESS - Lock Access Register */ |
AnnaBridge | 171:3a7713b1edbc | 5048 | #define MTB_LOCKACCESS_LOCKACCESS_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5049 | #define MTB_LOCKACCESS_LOCKACCESS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5050 | #define MTB_LOCKACCESS_LOCKACCESS(x) (((uint32_t)(((uint32_t)(x)) << MTB_LOCKACCESS_LOCKACCESS_SHIFT)) & MTB_LOCKACCESS_LOCKACCESS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5051 | |
AnnaBridge | 171:3a7713b1edbc | 5052 | /*! @name LOCKSTAT - Lock Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 5053 | #define MTB_LOCKSTAT_LOCKSTAT_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5054 | #define MTB_LOCKSTAT_LOCKSTAT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5055 | #define MTB_LOCKSTAT_LOCKSTAT(x) (((uint32_t)(((uint32_t)(x)) << MTB_LOCKSTAT_LOCKSTAT_SHIFT)) & MTB_LOCKSTAT_LOCKSTAT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5056 | |
AnnaBridge | 171:3a7713b1edbc | 5057 | /*! @name AUTHSTAT - Authentication Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 5058 | #define MTB_AUTHSTAT_BIT0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5059 | #define MTB_AUTHSTAT_BIT0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5060 | #define MTB_AUTHSTAT_BIT0(x) (((uint32_t)(((uint32_t)(x)) << MTB_AUTHSTAT_BIT0_SHIFT)) & MTB_AUTHSTAT_BIT0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5061 | #define MTB_AUTHSTAT_BIT1_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5062 | #define MTB_AUTHSTAT_BIT1_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5063 | #define MTB_AUTHSTAT_BIT1(x) (((uint32_t)(((uint32_t)(x)) << MTB_AUTHSTAT_BIT1_SHIFT)) & MTB_AUTHSTAT_BIT1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5064 | #define MTB_AUTHSTAT_BIT2_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5065 | #define MTB_AUTHSTAT_BIT2_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5066 | #define MTB_AUTHSTAT_BIT2(x) (((uint32_t)(((uint32_t)(x)) << MTB_AUTHSTAT_BIT2_SHIFT)) & MTB_AUTHSTAT_BIT2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5067 | #define MTB_AUTHSTAT_BIT3_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 5068 | #define MTB_AUTHSTAT_BIT3_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 5069 | #define MTB_AUTHSTAT_BIT3(x) (((uint32_t)(((uint32_t)(x)) << MTB_AUTHSTAT_BIT3_SHIFT)) & MTB_AUTHSTAT_BIT3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5070 | |
AnnaBridge | 171:3a7713b1edbc | 5071 | /*! @name DEVICEARCH - Device Architecture Register */ |
AnnaBridge | 171:3a7713b1edbc | 5072 | #define MTB_DEVICEARCH_DEVICEARCH_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5073 | #define MTB_DEVICEARCH_DEVICEARCH_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5074 | #define MTB_DEVICEARCH_DEVICEARCH(x) (((uint32_t)(((uint32_t)(x)) << MTB_DEVICEARCH_DEVICEARCH_SHIFT)) & MTB_DEVICEARCH_DEVICEARCH_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5075 | |
AnnaBridge | 171:3a7713b1edbc | 5076 | /*! @name DEVICECFG - Device Configuration Register */ |
AnnaBridge | 171:3a7713b1edbc | 5077 | #define MTB_DEVICECFG_DEVICECFG_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5078 | #define MTB_DEVICECFG_DEVICECFG_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5079 | #define MTB_DEVICECFG_DEVICECFG(x) (((uint32_t)(((uint32_t)(x)) << MTB_DEVICECFG_DEVICECFG_SHIFT)) & MTB_DEVICECFG_DEVICECFG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5080 | |
AnnaBridge | 171:3a7713b1edbc | 5081 | /*! @name DEVICETYPID - Device Type Identifier Register */ |
AnnaBridge | 171:3a7713b1edbc | 5082 | #define MTB_DEVICETYPID_DEVICETYPID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5083 | #define MTB_DEVICETYPID_DEVICETYPID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5084 | #define MTB_DEVICETYPID_DEVICETYPID(x) (((uint32_t)(((uint32_t)(x)) << MTB_DEVICETYPID_DEVICETYPID_SHIFT)) & MTB_DEVICETYPID_DEVICETYPID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5085 | |
AnnaBridge | 171:3a7713b1edbc | 5086 | /*! @name PERIPHID - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 5087 | #define MTB_PERIPHID_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5088 | #define MTB_PERIPHID_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5089 | #define MTB_PERIPHID_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTB_PERIPHID_PERIPHID_SHIFT)) & MTB_PERIPHID_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5090 | |
AnnaBridge | 171:3a7713b1edbc | 5091 | /* The count of MTB_PERIPHID */ |
AnnaBridge | 171:3a7713b1edbc | 5092 | #define MTB_PERIPHID_COUNT (8U) |
AnnaBridge | 171:3a7713b1edbc | 5093 | |
AnnaBridge | 171:3a7713b1edbc | 5094 | /*! @name COMPID - Component ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 5095 | #define MTB_COMPID_COMPID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5096 | #define MTB_COMPID_COMPID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5097 | #define MTB_COMPID_COMPID(x) (((uint32_t)(((uint32_t)(x)) << MTB_COMPID_COMPID_SHIFT)) & MTB_COMPID_COMPID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5098 | |
AnnaBridge | 171:3a7713b1edbc | 5099 | /* The count of MTB_COMPID */ |
AnnaBridge | 171:3a7713b1edbc | 5100 | #define MTB_COMPID_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 5101 | |
AnnaBridge | 171:3a7713b1edbc | 5102 | |
AnnaBridge | 171:3a7713b1edbc | 5103 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5104 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5105 | */ /* end of group MTB_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5106 | |
AnnaBridge | 171:3a7713b1edbc | 5107 | |
AnnaBridge | 171:3a7713b1edbc | 5108 | /* MTB - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5109 | /** Peripheral MTB base address */ |
AnnaBridge | 171:3a7713b1edbc | 5110 | #define MTB_BASE (0xF0000000u) |
AnnaBridge | 171:3a7713b1edbc | 5111 | /** Peripheral MTB base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5112 | #define MTB ((MTB_Type *)MTB_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5113 | /** Array initializer of MTB peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5114 | #define MTB_BASE_ADDRS { MTB_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5115 | /** Array initializer of MTB peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5116 | #define MTB_BASE_PTRS { MTB } |
AnnaBridge | 171:3a7713b1edbc | 5117 | |
AnnaBridge | 171:3a7713b1edbc | 5118 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5119 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5120 | */ /* end of group MTB_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5121 | |
AnnaBridge | 171:3a7713b1edbc | 5122 | |
AnnaBridge | 171:3a7713b1edbc | 5123 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5124 | -- MTBDWT Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5125 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5126 | |
AnnaBridge | 171:3a7713b1edbc | 5127 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5128 | * @addtogroup MTBDWT_Peripheral_Access_Layer MTBDWT Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5129 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5130 | */ |
AnnaBridge | 171:3a7713b1edbc | 5131 | |
AnnaBridge | 171:3a7713b1edbc | 5132 | /** MTBDWT - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 5133 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 5134 | __I uint32_t CTRL; /**< MTB DWT Control Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 5135 | uint8_t RESERVED_0[28]; |
AnnaBridge | 171:3a7713b1edbc | 5136 | struct { /* offset: 0x20, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5137 | __IO uint32_t COMP; /**< MTB_DWT Comparator Register, array offset: 0x20, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5138 | __IO uint32_t MASK; /**< MTB_DWT Comparator Mask Register, array offset: 0x24, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5139 | __IO uint32_t FCT; /**< MTB_DWT Comparator Function Register 0..MTB_DWT Comparator Function Register 1, array offset: 0x28, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5140 | uint8_t RESERVED_0[4]; |
AnnaBridge | 171:3a7713b1edbc | 5141 | } COMPARATOR[2]; |
AnnaBridge | 171:3a7713b1edbc | 5142 | uint8_t RESERVED_1[448]; |
AnnaBridge | 171:3a7713b1edbc | 5143 | __IO uint32_t TBCTRL; /**< MTB_DWT Trace Buffer Control Register, offset: 0x200 */ |
AnnaBridge | 171:3a7713b1edbc | 5144 | uint8_t RESERVED_2[3524]; |
AnnaBridge | 171:3a7713b1edbc | 5145 | __I uint32_t DEVICECFG; /**< Device Configuration Register, offset: 0xFC8 */ |
AnnaBridge | 171:3a7713b1edbc | 5146 | __I uint32_t DEVICETYPID; /**< Device Type Identifier Register, offset: 0xFCC */ |
AnnaBridge | 171:3a7713b1edbc | 5147 | __I uint32_t PERIPHID[8]; /**< Peripheral ID Register, array offset: 0xFD0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 5148 | __I uint32_t COMPID[4]; /**< Component ID Register, array offset: 0xFF0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 5149 | } MTBDWT_Type; |
AnnaBridge | 171:3a7713b1edbc | 5150 | |
AnnaBridge | 171:3a7713b1edbc | 5151 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5152 | -- MTBDWT Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5153 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5154 | |
AnnaBridge | 171:3a7713b1edbc | 5155 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5156 | * @addtogroup MTBDWT_Register_Masks MTBDWT Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5157 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5158 | */ |
AnnaBridge | 171:3a7713b1edbc | 5159 | |
AnnaBridge | 171:3a7713b1edbc | 5160 | /*! @name CTRL - MTB DWT Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 5161 | #define MTBDWT_CTRL_DWTCFGCTRL_MASK (0xFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5162 | #define MTBDWT_CTRL_DWTCFGCTRL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5163 | #define MTBDWT_CTRL_DWTCFGCTRL(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_CTRL_DWTCFGCTRL_SHIFT)) & MTBDWT_CTRL_DWTCFGCTRL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5164 | #define MTBDWT_CTRL_NUMCMP_MASK (0xF0000000U) |
AnnaBridge | 171:3a7713b1edbc | 5165 | #define MTBDWT_CTRL_NUMCMP_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 5166 | #define MTBDWT_CTRL_NUMCMP(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_CTRL_NUMCMP_SHIFT)) & MTBDWT_CTRL_NUMCMP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5167 | |
AnnaBridge | 171:3a7713b1edbc | 5168 | /*! @name COMP - MTB_DWT Comparator Register */ |
AnnaBridge | 171:3a7713b1edbc | 5169 | #define MTBDWT_COMP_COMP_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5170 | #define MTBDWT_COMP_COMP_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5171 | #define MTBDWT_COMP_COMP(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_COMP_COMP_SHIFT)) & MTBDWT_COMP_COMP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5172 | |
AnnaBridge | 171:3a7713b1edbc | 5173 | /* The count of MTBDWT_COMP */ |
AnnaBridge | 171:3a7713b1edbc | 5174 | #define MTBDWT_COMP_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5175 | |
AnnaBridge | 171:3a7713b1edbc | 5176 | /*! @name MASK - MTB_DWT Comparator Mask Register */ |
AnnaBridge | 171:3a7713b1edbc | 5177 | #define MTBDWT_MASK_MASK_MASK (0x1FU) |
AnnaBridge | 171:3a7713b1edbc | 5178 | #define MTBDWT_MASK_MASK_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5179 | #define MTBDWT_MASK_MASK(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_MASK_MASK_SHIFT)) & MTBDWT_MASK_MASK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5180 | |
AnnaBridge | 171:3a7713b1edbc | 5181 | /* The count of MTBDWT_MASK */ |
AnnaBridge | 171:3a7713b1edbc | 5182 | #define MTBDWT_MASK_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5183 | |
AnnaBridge | 171:3a7713b1edbc | 5184 | /*! @name FCT - MTB_DWT Comparator Function Register 0..MTB_DWT Comparator Function Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 5185 | #define MTBDWT_FCT_FUNCTION_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 5186 | #define MTBDWT_FCT_FUNCTION_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5187 | #define MTBDWT_FCT_FUNCTION(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_FUNCTION_SHIFT)) & MTBDWT_FCT_FUNCTION_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5188 | #define MTBDWT_FCT_DATAVMATCH_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 5189 | #define MTBDWT_FCT_DATAVMATCH_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 5190 | #define MTBDWT_FCT_DATAVMATCH(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_DATAVMATCH_SHIFT)) & MTBDWT_FCT_DATAVMATCH_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5191 | #define MTBDWT_FCT_DATAVSIZE_MASK (0xC00U) |
AnnaBridge | 171:3a7713b1edbc | 5192 | #define MTBDWT_FCT_DATAVSIZE_SHIFT (10U) |
AnnaBridge | 171:3a7713b1edbc | 5193 | #define MTBDWT_FCT_DATAVSIZE(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_DATAVSIZE_SHIFT)) & MTBDWT_FCT_DATAVSIZE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5194 | #define MTBDWT_FCT_DATAVADDR0_MASK (0xF000U) |
AnnaBridge | 171:3a7713b1edbc | 5195 | #define MTBDWT_FCT_DATAVADDR0_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 5196 | #define MTBDWT_FCT_DATAVADDR0(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_DATAVADDR0_SHIFT)) & MTBDWT_FCT_DATAVADDR0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5197 | #define MTBDWT_FCT_MATCHED_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 5198 | #define MTBDWT_FCT_MATCHED_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 5199 | #define MTBDWT_FCT_MATCHED(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_FCT_MATCHED_SHIFT)) & MTBDWT_FCT_MATCHED_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5200 | |
AnnaBridge | 171:3a7713b1edbc | 5201 | /* The count of MTBDWT_FCT */ |
AnnaBridge | 171:3a7713b1edbc | 5202 | #define MTBDWT_FCT_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5203 | |
AnnaBridge | 171:3a7713b1edbc | 5204 | /*! @name TBCTRL - MTB_DWT Trace Buffer Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 5205 | #define MTBDWT_TBCTRL_ACOMP0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5206 | #define MTBDWT_TBCTRL_ACOMP0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5207 | #define MTBDWT_TBCTRL_ACOMP0(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_TBCTRL_ACOMP0_SHIFT)) & MTBDWT_TBCTRL_ACOMP0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5208 | #define MTBDWT_TBCTRL_ACOMP1_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5209 | #define MTBDWT_TBCTRL_ACOMP1_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5210 | #define MTBDWT_TBCTRL_ACOMP1(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_TBCTRL_ACOMP1_SHIFT)) & MTBDWT_TBCTRL_ACOMP1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5211 | #define MTBDWT_TBCTRL_NUMCOMP_MASK (0xF0000000U) |
AnnaBridge | 171:3a7713b1edbc | 5212 | #define MTBDWT_TBCTRL_NUMCOMP_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 5213 | #define MTBDWT_TBCTRL_NUMCOMP(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_TBCTRL_NUMCOMP_SHIFT)) & MTBDWT_TBCTRL_NUMCOMP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5214 | |
AnnaBridge | 171:3a7713b1edbc | 5215 | /*! @name DEVICECFG - Device Configuration Register */ |
AnnaBridge | 171:3a7713b1edbc | 5216 | #define MTBDWT_DEVICECFG_DEVICECFG_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5217 | #define MTBDWT_DEVICECFG_DEVICECFG_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5218 | #define MTBDWT_DEVICECFG_DEVICECFG(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_DEVICECFG_DEVICECFG_SHIFT)) & MTBDWT_DEVICECFG_DEVICECFG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5219 | |
AnnaBridge | 171:3a7713b1edbc | 5220 | /*! @name DEVICETYPID - Device Type Identifier Register */ |
AnnaBridge | 171:3a7713b1edbc | 5221 | #define MTBDWT_DEVICETYPID_DEVICETYPID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5222 | #define MTBDWT_DEVICETYPID_DEVICETYPID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5223 | #define MTBDWT_DEVICETYPID_DEVICETYPID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_DEVICETYPID_DEVICETYPID_SHIFT)) & MTBDWT_DEVICETYPID_DEVICETYPID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5224 | |
AnnaBridge | 171:3a7713b1edbc | 5225 | /*! @name PERIPHID - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 5226 | #define MTBDWT_PERIPHID_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5227 | #define MTBDWT_PERIPHID_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5228 | #define MTBDWT_PERIPHID_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_PERIPHID_PERIPHID_SHIFT)) & MTBDWT_PERIPHID_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5229 | |
AnnaBridge | 171:3a7713b1edbc | 5230 | /* The count of MTBDWT_PERIPHID */ |
AnnaBridge | 171:3a7713b1edbc | 5231 | #define MTBDWT_PERIPHID_COUNT (8U) |
AnnaBridge | 171:3a7713b1edbc | 5232 | |
AnnaBridge | 171:3a7713b1edbc | 5233 | /*! @name COMPID - Component ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 5234 | #define MTBDWT_COMPID_COMPID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5235 | #define MTBDWT_COMPID_COMPID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5236 | #define MTBDWT_COMPID_COMPID(x) (((uint32_t)(((uint32_t)(x)) << MTBDWT_COMPID_COMPID_SHIFT)) & MTBDWT_COMPID_COMPID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5237 | |
AnnaBridge | 171:3a7713b1edbc | 5238 | /* The count of MTBDWT_COMPID */ |
AnnaBridge | 171:3a7713b1edbc | 5239 | #define MTBDWT_COMPID_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 5240 | |
AnnaBridge | 171:3a7713b1edbc | 5241 | |
AnnaBridge | 171:3a7713b1edbc | 5242 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5243 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5244 | */ /* end of group MTBDWT_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5245 | |
AnnaBridge | 171:3a7713b1edbc | 5246 | |
AnnaBridge | 171:3a7713b1edbc | 5247 | /* MTBDWT - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5248 | /** Peripheral MTBDWT base address */ |
AnnaBridge | 171:3a7713b1edbc | 5249 | #define MTBDWT_BASE (0xF0001000u) |
AnnaBridge | 171:3a7713b1edbc | 5250 | /** Peripheral MTBDWT base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5251 | #define MTBDWT ((MTBDWT_Type *)MTBDWT_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5252 | /** Array initializer of MTBDWT peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5253 | #define MTBDWT_BASE_ADDRS { MTBDWT_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5254 | /** Array initializer of MTBDWT peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5255 | #define MTBDWT_BASE_PTRS { MTBDWT } |
AnnaBridge | 171:3a7713b1edbc | 5256 | |
AnnaBridge | 171:3a7713b1edbc | 5257 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5258 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5259 | */ /* end of group MTBDWT_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5260 | |
AnnaBridge | 171:3a7713b1edbc | 5261 | |
AnnaBridge | 171:3a7713b1edbc | 5262 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5263 | -- NV Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5264 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5265 | |
AnnaBridge | 171:3a7713b1edbc | 5266 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5267 | * @addtogroup NV_Peripheral_Access_Layer NV Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5268 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5269 | */ |
AnnaBridge | 171:3a7713b1edbc | 5270 | |
AnnaBridge | 171:3a7713b1edbc | 5271 | /** NV - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 5272 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 5273 | __I uint8_t BACKKEY3; /**< Backdoor Comparison Key 3., offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 5274 | __I uint8_t BACKKEY2; /**< Backdoor Comparison Key 2., offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 5275 | __I uint8_t BACKKEY1; /**< Backdoor Comparison Key 1., offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 5276 | __I uint8_t BACKKEY0; /**< Backdoor Comparison Key 0., offset: 0x3 */ |
AnnaBridge | 171:3a7713b1edbc | 5277 | __I uint8_t BACKKEY7; /**< Backdoor Comparison Key 7., offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 5278 | __I uint8_t BACKKEY6; /**< Backdoor Comparison Key 6., offset: 0x5 */ |
AnnaBridge | 171:3a7713b1edbc | 5279 | __I uint8_t BACKKEY5; /**< Backdoor Comparison Key 5., offset: 0x6 */ |
AnnaBridge | 171:3a7713b1edbc | 5280 | __I uint8_t BACKKEY4; /**< Backdoor Comparison Key 4., offset: 0x7 */ |
AnnaBridge | 171:3a7713b1edbc | 5281 | __I uint8_t FPROT3; /**< Non-volatile P-Flash Protection 1 - Low Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 5282 | __I uint8_t FPROT2; /**< Non-volatile P-Flash Protection 1 - High Register, offset: 0x9 */ |
AnnaBridge | 171:3a7713b1edbc | 5283 | __I uint8_t FPROT1; /**< Non-volatile P-Flash Protection 0 - Low Register, offset: 0xA */ |
AnnaBridge | 171:3a7713b1edbc | 5284 | __I uint8_t FPROT0; /**< Non-volatile P-Flash Protection 0 - High Register, offset: 0xB */ |
AnnaBridge | 171:3a7713b1edbc | 5285 | __I uint8_t FSEC; /**< Non-volatile Flash Security Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 5286 | __I uint8_t FOPT; /**< Non-volatile Flash Option Register, offset: 0xD */ |
AnnaBridge | 171:3a7713b1edbc | 5287 | } NV_Type; |
AnnaBridge | 171:3a7713b1edbc | 5288 | |
AnnaBridge | 171:3a7713b1edbc | 5289 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5290 | -- NV Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5291 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5292 | |
AnnaBridge | 171:3a7713b1edbc | 5293 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5294 | * @addtogroup NV_Register_Masks NV Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5295 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5296 | */ |
AnnaBridge | 171:3a7713b1edbc | 5297 | |
AnnaBridge | 171:3a7713b1edbc | 5298 | /*! @name BACKKEY3 - Backdoor Comparison Key 3. */ |
AnnaBridge | 171:3a7713b1edbc | 5299 | #define NV_BACKKEY3_KEY_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5300 | #define NV_BACKKEY3_KEY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5301 | #define NV_BACKKEY3_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY3_KEY_SHIFT)) & NV_BACKKEY3_KEY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5302 | |
AnnaBridge | 171:3a7713b1edbc | 5303 | /*! @name BACKKEY2 - Backdoor Comparison Key 2. */ |
AnnaBridge | 171:3a7713b1edbc | 5304 | #define NV_BACKKEY2_KEY_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5305 | #define NV_BACKKEY2_KEY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5306 | #define NV_BACKKEY2_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY2_KEY_SHIFT)) & NV_BACKKEY2_KEY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5307 | |
AnnaBridge | 171:3a7713b1edbc | 5308 | /*! @name BACKKEY1 - Backdoor Comparison Key 1. */ |
AnnaBridge | 171:3a7713b1edbc | 5309 | #define NV_BACKKEY1_KEY_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5310 | #define NV_BACKKEY1_KEY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5311 | #define NV_BACKKEY1_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY1_KEY_SHIFT)) & NV_BACKKEY1_KEY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5312 | |
AnnaBridge | 171:3a7713b1edbc | 5313 | /*! @name BACKKEY0 - Backdoor Comparison Key 0. */ |
AnnaBridge | 171:3a7713b1edbc | 5314 | #define NV_BACKKEY0_KEY_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5315 | #define NV_BACKKEY0_KEY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5316 | #define NV_BACKKEY0_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY0_KEY_SHIFT)) & NV_BACKKEY0_KEY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5317 | |
AnnaBridge | 171:3a7713b1edbc | 5318 | /*! @name BACKKEY7 - Backdoor Comparison Key 7. */ |
AnnaBridge | 171:3a7713b1edbc | 5319 | #define NV_BACKKEY7_KEY_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5320 | #define NV_BACKKEY7_KEY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5321 | #define NV_BACKKEY7_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY7_KEY_SHIFT)) & NV_BACKKEY7_KEY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5322 | |
AnnaBridge | 171:3a7713b1edbc | 5323 | /*! @name BACKKEY6 - Backdoor Comparison Key 6. */ |
AnnaBridge | 171:3a7713b1edbc | 5324 | #define NV_BACKKEY6_KEY_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5325 | #define NV_BACKKEY6_KEY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5326 | #define NV_BACKKEY6_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY6_KEY_SHIFT)) & NV_BACKKEY6_KEY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5327 | |
AnnaBridge | 171:3a7713b1edbc | 5328 | /*! @name BACKKEY5 - Backdoor Comparison Key 5. */ |
AnnaBridge | 171:3a7713b1edbc | 5329 | #define NV_BACKKEY5_KEY_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5330 | #define NV_BACKKEY5_KEY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5331 | #define NV_BACKKEY5_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY5_KEY_SHIFT)) & NV_BACKKEY5_KEY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5332 | |
AnnaBridge | 171:3a7713b1edbc | 5333 | /*! @name BACKKEY4 - Backdoor Comparison Key 4. */ |
AnnaBridge | 171:3a7713b1edbc | 5334 | #define NV_BACKKEY4_KEY_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5335 | #define NV_BACKKEY4_KEY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5336 | #define NV_BACKKEY4_KEY(x) (((uint8_t)(((uint8_t)(x)) << NV_BACKKEY4_KEY_SHIFT)) & NV_BACKKEY4_KEY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5337 | |
AnnaBridge | 171:3a7713b1edbc | 5338 | /*! @name FPROT3 - Non-volatile P-Flash Protection 1 - Low Register */ |
AnnaBridge | 171:3a7713b1edbc | 5339 | #define NV_FPROT3_PROT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5340 | #define NV_FPROT3_PROT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5341 | #define NV_FPROT3_PROT(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT3_PROT_SHIFT)) & NV_FPROT3_PROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5342 | |
AnnaBridge | 171:3a7713b1edbc | 5343 | /*! @name FPROT2 - Non-volatile P-Flash Protection 1 - High Register */ |
AnnaBridge | 171:3a7713b1edbc | 5344 | #define NV_FPROT2_PROT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5345 | #define NV_FPROT2_PROT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5346 | #define NV_FPROT2_PROT(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT2_PROT_SHIFT)) & NV_FPROT2_PROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5347 | |
AnnaBridge | 171:3a7713b1edbc | 5348 | /*! @name FPROT1 - Non-volatile P-Flash Protection 0 - Low Register */ |
AnnaBridge | 171:3a7713b1edbc | 5349 | #define NV_FPROT1_PROT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5350 | #define NV_FPROT1_PROT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5351 | #define NV_FPROT1_PROT(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT1_PROT_SHIFT)) & NV_FPROT1_PROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5352 | |
AnnaBridge | 171:3a7713b1edbc | 5353 | /*! @name FPROT0 - Non-volatile P-Flash Protection 0 - High Register */ |
AnnaBridge | 171:3a7713b1edbc | 5354 | #define NV_FPROT0_PROT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5355 | #define NV_FPROT0_PROT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5356 | #define NV_FPROT0_PROT(x) (((uint8_t)(((uint8_t)(x)) << NV_FPROT0_PROT_SHIFT)) & NV_FPROT0_PROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5357 | |
AnnaBridge | 171:3a7713b1edbc | 5358 | /*! @name FSEC - Non-volatile Flash Security Register */ |
AnnaBridge | 171:3a7713b1edbc | 5359 | #define NV_FSEC_SEC_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 5360 | #define NV_FSEC_SEC_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5361 | #define NV_FSEC_SEC(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_SEC_SHIFT)) & NV_FSEC_SEC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5362 | #define NV_FSEC_FSLACC_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 5363 | #define NV_FSEC_FSLACC_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5364 | #define NV_FSEC_FSLACC(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_FSLACC_SHIFT)) & NV_FSEC_FSLACC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5365 | #define NV_FSEC_MEEN_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 5366 | #define NV_FSEC_MEEN_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 5367 | #define NV_FSEC_MEEN(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_MEEN_SHIFT)) & NV_FSEC_MEEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5368 | #define NV_FSEC_KEYEN_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 5369 | #define NV_FSEC_KEYEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 5370 | #define NV_FSEC_KEYEN(x) (((uint8_t)(((uint8_t)(x)) << NV_FSEC_KEYEN_SHIFT)) & NV_FSEC_KEYEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5371 | |
AnnaBridge | 171:3a7713b1edbc | 5372 | /*! @name FOPT - Non-volatile Flash Option Register */ |
AnnaBridge | 171:3a7713b1edbc | 5373 | #define NV_FOPT_LPBOOT0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5374 | #define NV_FOPT_LPBOOT0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5375 | #define NV_FOPT_LPBOOT0(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_LPBOOT0_SHIFT)) & NV_FOPT_LPBOOT0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5376 | #define NV_FOPT_BOOTPIN_OPT_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5377 | #define NV_FOPT_BOOTPIN_OPT_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5378 | #define NV_FOPT_BOOTPIN_OPT(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_BOOTPIN_OPT_SHIFT)) & NV_FOPT_BOOTPIN_OPT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5379 | #define NV_FOPT_NMI_DIS_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5380 | #define NV_FOPT_NMI_DIS_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5381 | #define NV_FOPT_NMI_DIS(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_NMI_DIS_SHIFT)) & NV_FOPT_NMI_DIS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5382 | #define NV_FOPT_RESET_PIN_CFG_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 5383 | #define NV_FOPT_RESET_PIN_CFG_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 5384 | #define NV_FOPT_RESET_PIN_CFG(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_RESET_PIN_CFG_SHIFT)) & NV_FOPT_RESET_PIN_CFG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5385 | #define NV_FOPT_LPBOOT1_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 5386 | #define NV_FOPT_LPBOOT1_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 5387 | #define NV_FOPT_LPBOOT1(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_LPBOOT1_SHIFT)) & NV_FOPT_LPBOOT1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5388 | #define NV_FOPT_FAST_INIT_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 5389 | #define NV_FOPT_FAST_INIT_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 5390 | #define NV_FOPT_FAST_INIT(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_FAST_INIT_SHIFT)) & NV_FOPT_FAST_INIT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5391 | #define NV_FOPT_BOOTSRC_SEL_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 5392 | #define NV_FOPT_BOOTSRC_SEL_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 5393 | #define NV_FOPT_BOOTSRC_SEL(x) (((uint8_t)(((uint8_t)(x)) << NV_FOPT_BOOTSRC_SEL_SHIFT)) & NV_FOPT_BOOTSRC_SEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5394 | |
AnnaBridge | 171:3a7713b1edbc | 5395 | |
AnnaBridge | 171:3a7713b1edbc | 5396 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5397 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5398 | */ /* end of group NV_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5399 | |
AnnaBridge | 171:3a7713b1edbc | 5400 | |
AnnaBridge | 171:3a7713b1edbc | 5401 | /* NV - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5402 | /** Peripheral FTFA_FlashConfig base address */ |
AnnaBridge | 171:3a7713b1edbc | 5403 | #define FTFA_FlashConfig_BASE (0x400u) |
AnnaBridge | 171:3a7713b1edbc | 5404 | /** Peripheral FTFA_FlashConfig base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5405 | #define FTFA_FlashConfig ((NV_Type *)FTFA_FlashConfig_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5406 | /** Array initializer of NV peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5407 | #define NV_BASE_ADDRS { FTFA_FlashConfig_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5408 | /** Array initializer of NV peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5409 | #define NV_BASE_PTRS { FTFA_FlashConfig } |
AnnaBridge | 171:3a7713b1edbc | 5410 | |
AnnaBridge | 171:3a7713b1edbc | 5411 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5412 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5413 | */ /* end of group NV_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5414 | |
AnnaBridge | 171:3a7713b1edbc | 5415 | |
AnnaBridge | 171:3a7713b1edbc | 5416 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5417 | -- OSC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5418 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5419 | |
AnnaBridge | 171:3a7713b1edbc | 5420 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5421 | * @addtogroup OSC_Peripheral_Access_Layer OSC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5422 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5423 | */ |
AnnaBridge | 171:3a7713b1edbc | 5424 | |
AnnaBridge | 171:3a7713b1edbc | 5425 | /** OSC - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 5426 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 5427 | __IO uint8_t CR; /**< OSC Control Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 5428 | } OSC_Type; |
AnnaBridge | 171:3a7713b1edbc | 5429 | |
AnnaBridge | 171:3a7713b1edbc | 5430 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5431 | -- OSC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5432 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5433 | |
AnnaBridge | 171:3a7713b1edbc | 5434 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5435 | * @addtogroup OSC_Register_Masks OSC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5436 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5437 | */ |
AnnaBridge | 171:3a7713b1edbc | 5438 | |
AnnaBridge | 171:3a7713b1edbc | 5439 | /*! @name CR - OSC Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 5440 | #define OSC_CR_SC16P_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5441 | #define OSC_CR_SC16P_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5442 | #define OSC_CR_SC16P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC16P_SHIFT)) & OSC_CR_SC16P_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5443 | #define OSC_CR_SC8P_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5444 | #define OSC_CR_SC8P_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5445 | #define OSC_CR_SC8P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC8P_SHIFT)) & OSC_CR_SC8P_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5446 | #define OSC_CR_SC4P_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5447 | #define OSC_CR_SC4P_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5448 | #define OSC_CR_SC4P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC4P_SHIFT)) & OSC_CR_SC4P_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5449 | #define OSC_CR_SC2P_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 5450 | #define OSC_CR_SC2P_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 5451 | #define OSC_CR_SC2P(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_SC2P_SHIFT)) & OSC_CR_SC2P_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5452 | #define OSC_CR_EREFSTEN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 5453 | #define OSC_CR_EREFSTEN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 5454 | #define OSC_CR_EREFSTEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_EREFSTEN_SHIFT)) & OSC_CR_EREFSTEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5455 | #define OSC_CR_ERCLKEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 5456 | #define OSC_CR_ERCLKEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 5457 | #define OSC_CR_ERCLKEN(x) (((uint8_t)(((uint8_t)(x)) << OSC_CR_ERCLKEN_SHIFT)) & OSC_CR_ERCLKEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5458 | |
AnnaBridge | 171:3a7713b1edbc | 5459 | |
AnnaBridge | 171:3a7713b1edbc | 5460 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5461 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5462 | */ /* end of group OSC_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5463 | |
AnnaBridge | 171:3a7713b1edbc | 5464 | |
AnnaBridge | 171:3a7713b1edbc | 5465 | /* OSC - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5466 | /** Peripheral OSC0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 5467 | #define OSC0_BASE (0x40065000u) |
AnnaBridge | 171:3a7713b1edbc | 5468 | /** Peripheral OSC0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5469 | #define OSC0 ((OSC_Type *)OSC0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5470 | /** Array initializer of OSC peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5471 | #define OSC_BASE_ADDRS { OSC0_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5472 | /** Array initializer of OSC peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5473 | #define OSC_BASE_PTRS { OSC0 } |
AnnaBridge | 171:3a7713b1edbc | 5474 | |
AnnaBridge | 171:3a7713b1edbc | 5475 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5476 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5477 | */ /* end of group OSC_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5478 | |
AnnaBridge | 171:3a7713b1edbc | 5479 | |
AnnaBridge | 171:3a7713b1edbc | 5480 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5481 | -- PIT Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5482 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5483 | |
AnnaBridge | 171:3a7713b1edbc | 5484 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5485 | * @addtogroup PIT_Peripheral_Access_Layer PIT Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5486 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5487 | */ |
AnnaBridge | 171:3a7713b1edbc | 5488 | |
AnnaBridge | 171:3a7713b1edbc | 5489 | /** PIT - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 5490 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 5491 | __IO uint32_t MCR; /**< PIT Module Control Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 5492 | uint8_t RESERVED_0[220]; |
AnnaBridge | 171:3a7713b1edbc | 5493 | __I uint32_t LTMR64H; /**< PIT Upper Lifetime Timer Register, offset: 0xE0 */ |
AnnaBridge | 171:3a7713b1edbc | 5494 | __I uint32_t LTMR64L; /**< PIT Lower Lifetime Timer Register, offset: 0xE4 */ |
AnnaBridge | 171:3a7713b1edbc | 5495 | uint8_t RESERVED_1[24]; |
AnnaBridge | 171:3a7713b1edbc | 5496 | struct { /* offset: 0x100, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5497 | __IO uint32_t LDVAL; /**< Timer Load Value Register, array offset: 0x100, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5498 | __I uint32_t CVAL; /**< Current Timer Value Register, array offset: 0x104, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5499 | __IO uint32_t TCTRL; /**< Timer Control Register, array offset: 0x108, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5500 | __IO uint32_t TFLG; /**< Timer Flag Register, array offset: 0x10C, array step: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 5501 | } CHANNEL[2]; |
AnnaBridge | 171:3a7713b1edbc | 5502 | } PIT_Type; |
AnnaBridge | 171:3a7713b1edbc | 5503 | |
AnnaBridge | 171:3a7713b1edbc | 5504 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5505 | -- PIT Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5506 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5507 | |
AnnaBridge | 171:3a7713b1edbc | 5508 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5509 | * @addtogroup PIT_Register_Masks PIT Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5510 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5511 | */ |
AnnaBridge | 171:3a7713b1edbc | 5512 | |
AnnaBridge | 171:3a7713b1edbc | 5513 | /*! @name MCR - PIT Module Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 5514 | #define PIT_MCR_FRZ_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5515 | #define PIT_MCR_FRZ_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5516 | #define PIT_MCR_FRZ(x) (((uint32_t)(((uint32_t)(x)) << PIT_MCR_FRZ_SHIFT)) & PIT_MCR_FRZ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5517 | #define PIT_MCR_MDIS_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5518 | #define PIT_MCR_MDIS_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5519 | #define PIT_MCR_MDIS(x) (((uint32_t)(((uint32_t)(x)) << PIT_MCR_MDIS_SHIFT)) & PIT_MCR_MDIS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5520 | |
AnnaBridge | 171:3a7713b1edbc | 5521 | /*! @name LTMR64H - PIT Upper Lifetime Timer Register */ |
AnnaBridge | 171:3a7713b1edbc | 5522 | #define PIT_LTMR64H_LTH_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5523 | #define PIT_LTMR64H_LTH_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5524 | #define PIT_LTMR64H_LTH(x) (((uint32_t)(((uint32_t)(x)) << PIT_LTMR64H_LTH_SHIFT)) & PIT_LTMR64H_LTH_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5525 | |
AnnaBridge | 171:3a7713b1edbc | 5526 | /*! @name LTMR64L - PIT Lower Lifetime Timer Register */ |
AnnaBridge | 171:3a7713b1edbc | 5527 | #define PIT_LTMR64L_LTL_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5528 | #define PIT_LTMR64L_LTL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5529 | #define PIT_LTMR64L_LTL(x) (((uint32_t)(((uint32_t)(x)) << PIT_LTMR64L_LTL_SHIFT)) & PIT_LTMR64L_LTL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5530 | |
AnnaBridge | 171:3a7713b1edbc | 5531 | /*! @name LDVAL - Timer Load Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 5532 | #define PIT_LDVAL_TSV_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5533 | #define PIT_LDVAL_TSV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5534 | #define PIT_LDVAL_TSV(x) (((uint32_t)(((uint32_t)(x)) << PIT_LDVAL_TSV_SHIFT)) & PIT_LDVAL_TSV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5535 | |
AnnaBridge | 171:3a7713b1edbc | 5536 | /* The count of PIT_LDVAL */ |
AnnaBridge | 171:3a7713b1edbc | 5537 | #define PIT_LDVAL_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5538 | |
AnnaBridge | 171:3a7713b1edbc | 5539 | /*! @name CVAL - Current Timer Value Register */ |
AnnaBridge | 171:3a7713b1edbc | 5540 | #define PIT_CVAL_TVL_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5541 | #define PIT_CVAL_TVL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5542 | #define PIT_CVAL_TVL(x) (((uint32_t)(((uint32_t)(x)) << PIT_CVAL_TVL_SHIFT)) & PIT_CVAL_TVL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5543 | |
AnnaBridge | 171:3a7713b1edbc | 5544 | /* The count of PIT_CVAL */ |
AnnaBridge | 171:3a7713b1edbc | 5545 | #define PIT_CVAL_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5546 | |
AnnaBridge | 171:3a7713b1edbc | 5547 | /*! @name TCTRL - Timer Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 5548 | #define PIT_TCTRL_TEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5549 | #define PIT_TCTRL_TEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5550 | #define PIT_TCTRL_TEN(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRL_TEN_SHIFT)) & PIT_TCTRL_TEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5551 | #define PIT_TCTRL_TIE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5552 | #define PIT_TCTRL_TIE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5553 | #define PIT_TCTRL_TIE(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRL_TIE_SHIFT)) & PIT_TCTRL_TIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5554 | #define PIT_TCTRL_CHN_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5555 | #define PIT_TCTRL_CHN_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5556 | #define PIT_TCTRL_CHN(x) (((uint32_t)(((uint32_t)(x)) << PIT_TCTRL_CHN_SHIFT)) & PIT_TCTRL_CHN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5557 | |
AnnaBridge | 171:3a7713b1edbc | 5558 | /* The count of PIT_TCTRL */ |
AnnaBridge | 171:3a7713b1edbc | 5559 | #define PIT_TCTRL_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5560 | |
AnnaBridge | 171:3a7713b1edbc | 5561 | /*! @name TFLG - Timer Flag Register */ |
AnnaBridge | 171:3a7713b1edbc | 5562 | #define PIT_TFLG_TIF_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5563 | #define PIT_TFLG_TIF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5564 | #define PIT_TFLG_TIF(x) (((uint32_t)(((uint32_t)(x)) << PIT_TFLG_TIF_SHIFT)) & PIT_TFLG_TIF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5565 | |
AnnaBridge | 171:3a7713b1edbc | 5566 | /* The count of PIT_TFLG */ |
AnnaBridge | 171:3a7713b1edbc | 5567 | #define PIT_TFLG_COUNT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5568 | |
AnnaBridge | 171:3a7713b1edbc | 5569 | |
AnnaBridge | 171:3a7713b1edbc | 5570 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5571 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5572 | */ /* end of group PIT_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5573 | |
AnnaBridge | 171:3a7713b1edbc | 5574 | |
AnnaBridge | 171:3a7713b1edbc | 5575 | /* PIT - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5576 | /** Peripheral PIT base address */ |
AnnaBridge | 171:3a7713b1edbc | 5577 | #define PIT_BASE (0x40037000u) |
AnnaBridge | 171:3a7713b1edbc | 5578 | /** Peripheral PIT base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5579 | #define PIT ((PIT_Type *)PIT_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5580 | /** Array initializer of PIT peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5581 | #define PIT_BASE_ADDRS { PIT_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5582 | /** Array initializer of PIT peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5583 | #define PIT_BASE_PTRS { PIT } |
AnnaBridge | 171:3a7713b1edbc | 5584 | /** Interrupt vectors for the PIT peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 5585 | #define PIT_IRQS { PIT_IRQn, PIT_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 5586 | |
AnnaBridge | 171:3a7713b1edbc | 5587 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5588 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5589 | */ /* end of group PIT_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5590 | |
AnnaBridge | 171:3a7713b1edbc | 5591 | |
AnnaBridge | 171:3a7713b1edbc | 5592 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5593 | -- PMC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5594 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5595 | |
AnnaBridge | 171:3a7713b1edbc | 5596 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5597 | * @addtogroup PMC_Peripheral_Access_Layer PMC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5598 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5599 | */ |
AnnaBridge | 171:3a7713b1edbc | 5600 | |
AnnaBridge | 171:3a7713b1edbc | 5601 | /** PMC - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 5602 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 5603 | __IO uint8_t LVDSC1; /**< Low Voltage Detect Status And Control 1 register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 5604 | __IO uint8_t LVDSC2; /**< Low Voltage Detect Status And Control 2 register, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 5605 | __IO uint8_t REGSC; /**< Regulator Status And Control register, offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 5606 | } PMC_Type; |
AnnaBridge | 171:3a7713b1edbc | 5607 | |
AnnaBridge | 171:3a7713b1edbc | 5608 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5609 | -- PMC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5610 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5611 | |
AnnaBridge | 171:3a7713b1edbc | 5612 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5613 | * @addtogroup PMC_Register_Masks PMC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5614 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5615 | */ |
AnnaBridge | 171:3a7713b1edbc | 5616 | |
AnnaBridge | 171:3a7713b1edbc | 5617 | /*! @name LVDSC1 - Low Voltage Detect Status And Control 1 register */ |
AnnaBridge | 171:3a7713b1edbc | 5618 | #define PMC_LVDSC1_LVDV_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 5619 | #define PMC_LVDSC1_LVDV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5620 | #define PMC_LVDSC1_LVDV(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDV_SHIFT)) & PMC_LVDSC1_LVDV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5621 | #define PMC_LVDSC1_LVDRE_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 5622 | #define PMC_LVDSC1_LVDRE_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 5623 | #define PMC_LVDSC1_LVDRE(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDRE_SHIFT)) & PMC_LVDSC1_LVDRE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5624 | #define PMC_LVDSC1_LVDIE_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 5625 | #define PMC_LVDSC1_LVDIE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 5626 | #define PMC_LVDSC1_LVDIE(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDIE_SHIFT)) & PMC_LVDSC1_LVDIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5627 | #define PMC_LVDSC1_LVDACK_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 5628 | #define PMC_LVDSC1_LVDACK_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 5629 | #define PMC_LVDSC1_LVDACK(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDACK_SHIFT)) & PMC_LVDSC1_LVDACK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5630 | #define PMC_LVDSC1_LVDF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 5631 | #define PMC_LVDSC1_LVDF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 5632 | #define PMC_LVDSC1_LVDF(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC1_LVDF_SHIFT)) & PMC_LVDSC1_LVDF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5633 | |
AnnaBridge | 171:3a7713b1edbc | 5634 | /*! @name LVDSC2 - Low Voltage Detect Status And Control 2 register */ |
AnnaBridge | 171:3a7713b1edbc | 5635 | #define PMC_LVDSC2_LVWV_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 5636 | #define PMC_LVDSC2_LVWV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5637 | #define PMC_LVDSC2_LVWV(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWV_SHIFT)) & PMC_LVDSC2_LVWV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5638 | #define PMC_LVDSC2_LVWIE_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 5639 | #define PMC_LVDSC2_LVWIE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 5640 | #define PMC_LVDSC2_LVWIE(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWIE_SHIFT)) & PMC_LVDSC2_LVWIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5641 | #define PMC_LVDSC2_LVWACK_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 5642 | #define PMC_LVDSC2_LVWACK_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 5643 | #define PMC_LVDSC2_LVWACK(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWACK_SHIFT)) & PMC_LVDSC2_LVWACK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5644 | #define PMC_LVDSC2_LVWF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 5645 | #define PMC_LVDSC2_LVWF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 5646 | #define PMC_LVDSC2_LVWF(x) (((uint8_t)(((uint8_t)(x)) << PMC_LVDSC2_LVWF_SHIFT)) & PMC_LVDSC2_LVWF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5647 | |
AnnaBridge | 171:3a7713b1edbc | 5648 | /*! @name REGSC - Regulator Status And Control register */ |
AnnaBridge | 171:3a7713b1edbc | 5649 | #define PMC_REGSC_BGBE_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5650 | #define PMC_REGSC_BGBE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5651 | #define PMC_REGSC_BGBE(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_BGBE_SHIFT)) & PMC_REGSC_BGBE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5652 | #define PMC_REGSC_REGONS_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5653 | #define PMC_REGSC_REGONS_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5654 | #define PMC_REGSC_REGONS(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_REGONS_SHIFT)) & PMC_REGSC_REGONS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5655 | #define PMC_REGSC_ACKISO_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 5656 | #define PMC_REGSC_ACKISO_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 5657 | #define PMC_REGSC_ACKISO(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_ACKISO_SHIFT)) & PMC_REGSC_ACKISO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5658 | #define PMC_REGSC_BGEN_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 5659 | #define PMC_REGSC_BGEN_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 5660 | #define PMC_REGSC_BGEN(x) (((uint8_t)(((uint8_t)(x)) << PMC_REGSC_BGEN_SHIFT)) & PMC_REGSC_BGEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5661 | |
AnnaBridge | 171:3a7713b1edbc | 5662 | |
AnnaBridge | 171:3a7713b1edbc | 5663 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5664 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5665 | */ /* end of group PMC_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5666 | |
AnnaBridge | 171:3a7713b1edbc | 5667 | |
AnnaBridge | 171:3a7713b1edbc | 5668 | /* PMC - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5669 | /** Peripheral PMC base address */ |
AnnaBridge | 171:3a7713b1edbc | 5670 | #define PMC_BASE (0x4007D000u) |
AnnaBridge | 171:3a7713b1edbc | 5671 | /** Peripheral PMC base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5672 | #define PMC ((PMC_Type *)PMC_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5673 | /** Array initializer of PMC peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5674 | #define PMC_BASE_ADDRS { PMC_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5675 | /** Array initializer of PMC peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5676 | #define PMC_BASE_PTRS { PMC } |
AnnaBridge | 171:3a7713b1edbc | 5677 | /** Interrupt vectors for the PMC peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 5678 | #define PMC_IRQS { PMC_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 5679 | |
AnnaBridge | 171:3a7713b1edbc | 5680 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5681 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5682 | */ /* end of group PMC_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5683 | |
AnnaBridge | 171:3a7713b1edbc | 5684 | |
AnnaBridge | 171:3a7713b1edbc | 5685 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5686 | -- PORT Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5687 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5688 | |
AnnaBridge | 171:3a7713b1edbc | 5689 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5690 | * @addtogroup PORT_Peripheral_Access_Layer PORT Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5691 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5692 | */ |
AnnaBridge | 171:3a7713b1edbc | 5693 | |
AnnaBridge | 171:3a7713b1edbc | 5694 | /** PORT - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 5695 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 5696 | __IO uint32_t PCR[32]; /**< Pin Control Register n, array offset: 0x0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 5697 | __O uint32_t GPCLR; /**< Global Pin Control Low Register, offset: 0x80 */ |
AnnaBridge | 171:3a7713b1edbc | 5698 | __O uint32_t GPCHR; /**< Global Pin Control High Register, offset: 0x84 */ |
AnnaBridge | 171:3a7713b1edbc | 5699 | uint8_t RESERVED_0[24]; |
AnnaBridge | 171:3a7713b1edbc | 5700 | __IO uint32_t ISFR; /**< Interrupt Status Flag Register, offset: 0xA0 */ |
AnnaBridge | 171:3a7713b1edbc | 5701 | } PORT_Type; |
AnnaBridge | 171:3a7713b1edbc | 5702 | |
AnnaBridge | 171:3a7713b1edbc | 5703 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5704 | -- PORT Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5705 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5706 | |
AnnaBridge | 171:3a7713b1edbc | 5707 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5708 | * @addtogroup PORT_Register_Masks PORT Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5709 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5710 | */ |
AnnaBridge | 171:3a7713b1edbc | 5711 | |
AnnaBridge | 171:3a7713b1edbc | 5712 | /*! @name PCR - Pin Control Register n */ |
AnnaBridge | 171:3a7713b1edbc | 5713 | #define PORT_PCR_PS_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5714 | #define PORT_PCR_PS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5715 | #define PORT_PCR_PS(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_PS_SHIFT)) & PORT_PCR_PS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5716 | #define PORT_PCR_PE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5717 | #define PORT_PCR_PE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5718 | #define PORT_PCR_PE(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_PE_SHIFT)) & PORT_PCR_PE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5719 | #define PORT_PCR_SRE_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5720 | #define PORT_PCR_SRE_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5721 | #define PORT_PCR_SRE(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_SRE_SHIFT)) & PORT_PCR_SRE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5722 | #define PORT_PCR_PFE_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 5723 | #define PORT_PCR_PFE_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 5724 | #define PORT_PCR_PFE(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_PFE_SHIFT)) & PORT_PCR_PFE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5725 | #define PORT_PCR_DSE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 5726 | #define PORT_PCR_DSE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 5727 | #define PORT_PCR_DSE(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_DSE_SHIFT)) & PORT_PCR_DSE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5728 | #define PORT_PCR_MUX_MASK (0x700U) |
AnnaBridge | 171:3a7713b1edbc | 5729 | #define PORT_PCR_MUX_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 5730 | #define PORT_PCR_MUX(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_MUX_SHIFT)) & PORT_PCR_MUX_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5731 | #define PORT_PCR_IRQC_MASK (0xF0000U) |
AnnaBridge | 171:3a7713b1edbc | 5732 | #define PORT_PCR_IRQC_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 5733 | #define PORT_PCR_IRQC(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_IRQC_SHIFT)) & PORT_PCR_IRQC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5734 | #define PORT_PCR_ISF_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 5735 | #define PORT_PCR_ISF_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 5736 | #define PORT_PCR_ISF(x) (((uint32_t)(((uint32_t)(x)) << PORT_PCR_ISF_SHIFT)) & PORT_PCR_ISF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5737 | |
AnnaBridge | 171:3a7713b1edbc | 5738 | /* The count of PORT_PCR */ |
AnnaBridge | 171:3a7713b1edbc | 5739 | #define PORT_PCR_COUNT (32U) |
AnnaBridge | 171:3a7713b1edbc | 5740 | |
AnnaBridge | 171:3a7713b1edbc | 5741 | /*! @name GPCLR - Global Pin Control Low Register */ |
AnnaBridge | 171:3a7713b1edbc | 5742 | #define PORT_GPCLR_GPWD_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5743 | #define PORT_GPCLR_GPWD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5744 | #define PORT_GPCLR_GPWD(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCLR_GPWD_SHIFT)) & PORT_GPCLR_GPWD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5745 | #define PORT_GPCLR_GPWE_MASK (0xFFFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 5746 | #define PORT_GPCLR_GPWE_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 5747 | #define PORT_GPCLR_GPWE(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCLR_GPWE_SHIFT)) & PORT_GPCLR_GPWE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5748 | |
AnnaBridge | 171:3a7713b1edbc | 5749 | /*! @name GPCHR - Global Pin Control High Register */ |
AnnaBridge | 171:3a7713b1edbc | 5750 | #define PORT_GPCHR_GPWD_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5751 | #define PORT_GPCHR_GPWD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5752 | #define PORT_GPCHR_GPWD(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCHR_GPWD_SHIFT)) & PORT_GPCHR_GPWD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5753 | #define PORT_GPCHR_GPWE_MASK (0xFFFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 5754 | #define PORT_GPCHR_GPWE_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 5755 | #define PORT_GPCHR_GPWE(x) (((uint32_t)(((uint32_t)(x)) << PORT_GPCHR_GPWE_SHIFT)) & PORT_GPCHR_GPWE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5756 | |
AnnaBridge | 171:3a7713b1edbc | 5757 | /*! @name ISFR - Interrupt Status Flag Register */ |
AnnaBridge | 171:3a7713b1edbc | 5758 | #define PORT_ISFR_ISF_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 5759 | #define PORT_ISFR_ISF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5760 | #define PORT_ISFR_ISF(x) (((uint32_t)(((uint32_t)(x)) << PORT_ISFR_ISF_SHIFT)) & PORT_ISFR_ISF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5761 | |
AnnaBridge | 171:3a7713b1edbc | 5762 | |
AnnaBridge | 171:3a7713b1edbc | 5763 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5764 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5765 | */ /* end of group PORT_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5766 | |
AnnaBridge | 171:3a7713b1edbc | 5767 | |
AnnaBridge | 171:3a7713b1edbc | 5768 | /* PORT - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5769 | /** Peripheral PORTA base address */ |
AnnaBridge | 171:3a7713b1edbc | 5770 | #define PORTA_BASE (0x40049000u) |
AnnaBridge | 171:3a7713b1edbc | 5771 | /** Peripheral PORTA base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5772 | #define PORTA ((PORT_Type *)PORTA_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5773 | /** Peripheral PORTB base address */ |
AnnaBridge | 171:3a7713b1edbc | 5774 | #define PORTB_BASE (0x4004A000u) |
AnnaBridge | 171:3a7713b1edbc | 5775 | /** Peripheral PORTB base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5776 | #define PORTB ((PORT_Type *)PORTB_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5777 | /** Peripheral PORTC base address */ |
AnnaBridge | 171:3a7713b1edbc | 5778 | #define PORTC_BASE (0x4004B000u) |
AnnaBridge | 171:3a7713b1edbc | 5779 | /** Peripheral PORTC base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5780 | #define PORTC ((PORT_Type *)PORTC_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5781 | /** Peripheral PORTD base address */ |
AnnaBridge | 171:3a7713b1edbc | 5782 | #define PORTD_BASE (0x4004C000u) |
AnnaBridge | 171:3a7713b1edbc | 5783 | /** Peripheral PORTD base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5784 | #define PORTD ((PORT_Type *)PORTD_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5785 | /** Peripheral PORTE base address */ |
AnnaBridge | 171:3a7713b1edbc | 5786 | #define PORTE_BASE (0x4004D000u) |
AnnaBridge | 171:3a7713b1edbc | 5787 | /** Peripheral PORTE base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5788 | #define PORTE ((PORT_Type *)PORTE_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5789 | /** Array initializer of PORT peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5790 | #define PORT_BASE_ADDRS { PORTA_BASE, PORTB_BASE, PORTC_BASE, PORTD_BASE, PORTE_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5791 | /** Array initializer of PORT peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5792 | #define PORT_BASE_PTRS { PORTA, PORTB, PORTC, PORTD, PORTE } |
AnnaBridge | 171:3a7713b1edbc | 5793 | /** Interrupt vectors for the PORT peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 5794 | #define PORT_IRQS { PORTA_IRQn, NotAvail_IRQn, PORTC_PORTD_IRQn, PORTC_PORTD_IRQn, NotAvail_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 5795 | |
AnnaBridge | 171:3a7713b1edbc | 5796 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5797 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5798 | */ /* end of group PORT_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5799 | |
AnnaBridge | 171:3a7713b1edbc | 5800 | |
AnnaBridge | 171:3a7713b1edbc | 5801 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5802 | -- RCM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5803 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5804 | |
AnnaBridge | 171:3a7713b1edbc | 5805 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5806 | * @addtogroup RCM_Peripheral_Access_Layer RCM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5807 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5808 | */ |
AnnaBridge | 171:3a7713b1edbc | 5809 | |
AnnaBridge | 171:3a7713b1edbc | 5810 | /** RCM - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 5811 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 5812 | __I uint8_t SRS0; /**< System Reset Status Register 0, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 5813 | __I uint8_t SRS1; /**< System Reset Status Register 1, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 5814 | uint8_t RESERVED_0[2]; |
AnnaBridge | 171:3a7713b1edbc | 5815 | __IO uint8_t RPFC; /**< Reset Pin Filter Control register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 5816 | __IO uint8_t RPFW; /**< Reset Pin Filter Width register, offset: 0x5 */ |
AnnaBridge | 171:3a7713b1edbc | 5817 | __IO uint8_t FM; /**< Force Mode Register, offset: 0x6 */ |
AnnaBridge | 171:3a7713b1edbc | 5818 | __IO uint8_t MR; /**< Mode Register, offset: 0x7 */ |
AnnaBridge | 171:3a7713b1edbc | 5819 | __IO uint8_t SSRS0; /**< Sticky System Reset Status Register 0, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 5820 | __IO uint8_t SSRS1; /**< Sticky System Reset Status Register 1, offset: 0x9 */ |
AnnaBridge | 171:3a7713b1edbc | 5821 | } RCM_Type; |
AnnaBridge | 171:3a7713b1edbc | 5822 | |
AnnaBridge | 171:3a7713b1edbc | 5823 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5824 | -- RCM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5825 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5826 | |
AnnaBridge | 171:3a7713b1edbc | 5827 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5828 | * @addtogroup RCM_Register_Masks RCM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5829 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5830 | */ |
AnnaBridge | 171:3a7713b1edbc | 5831 | |
AnnaBridge | 171:3a7713b1edbc | 5832 | /*! @name SRS0 - System Reset Status Register 0 */ |
AnnaBridge | 171:3a7713b1edbc | 5833 | #define RCM_SRS0_WAKEUP_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5834 | #define RCM_SRS0_WAKEUP_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5835 | #define RCM_SRS0_WAKEUP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_WAKEUP_SHIFT)) & RCM_SRS0_WAKEUP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5836 | #define RCM_SRS0_LVD_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5837 | #define RCM_SRS0_LVD_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5838 | #define RCM_SRS0_LVD(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_LVD_SHIFT)) & RCM_SRS0_LVD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5839 | #define RCM_SRS0_WDOG_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 5840 | #define RCM_SRS0_WDOG_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 5841 | #define RCM_SRS0_WDOG(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_WDOG_SHIFT)) & RCM_SRS0_WDOG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5842 | #define RCM_SRS0_PIN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 5843 | #define RCM_SRS0_PIN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 5844 | #define RCM_SRS0_PIN(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_PIN_SHIFT)) & RCM_SRS0_PIN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5845 | #define RCM_SRS0_POR_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 5846 | #define RCM_SRS0_POR_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 5847 | #define RCM_SRS0_POR(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS0_POR_SHIFT)) & RCM_SRS0_POR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5848 | |
AnnaBridge | 171:3a7713b1edbc | 5849 | /*! @name SRS1 - System Reset Status Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 5850 | #define RCM_SRS1_LOCKUP_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5851 | #define RCM_SRS1_LOCKUP_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5852 | #define RCM_SRS1_LOCKUP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_LOCKUP_SHIFT)) & RCM_SRS1_LOCKUP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5853 | #define RCM_SRS1_SW_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5854 | #define RCM_SRS1_SW_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5855 | #define RCM_SRS1_SW(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_SW_SHIFT)) & RCM_SRS1_SW_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5856 | #define RCM_SRS1_MDM_AP_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 5857 | #define RCM_SRS1_MDM_AP_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 5858 | #define RCM_SRS1_MDM_AP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_MDM_AP_SHIFT)) & RCM_SRS1_MDM_AP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5859 | #define RCM_SRS1_SACKERR_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 5860 | #define RCM_SRS1_SACKERR_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 5861 | #define RCM_SRS1_SACKERR(x) (((uint8_t)(((uint8_t)(x)) << RCM_SRS1_SACKERR_SHIFT)) & RCM_SRS1_SACKERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5862 | |
AnnaBridge | 171:3a7713b1edbc | 5863 | /*! @name RPFC - Reset Pin Filter Control register */ |
AnnaBridge | 171:3a7713b1edbc | 5864 | #define RCM_RPFC_RSTFLTSRW_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 5865 | #define RCM_RPFC_RSTFLTSRW_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5866 | #define RCM_RPFC_RSTFLTSRW(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFC_RSTFLTSRW_SHIFT)) & RCM_RPFC_RSTFLTSRW_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5867 | #define RCM_RPFC_RSTFLTSS_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5868 | #define RCM_RPFC_RSTFLTSS_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5869 | #define RCM_RPFC_RSTFLTSS(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFC_RSTFLTSS_SHIFT)) & RCM_RPFC_RSTFLTSS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5870 | |
AnnaBridge | 171:3a7713b1edbc | 5871 | /*! @name RPFW - Reset Pin Filter Width register */ |
AnnaBridge | 171:3a7713b1edbc | 5872 | #define RCM_RPFW_RSTFLTSEL_MASK (0x1FU) |
AnnaBridge | 171:3a7713b1edbc | 5873 | #define RCM_RPFW_RSTFLTSEL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5874 | #define RCM_RPFW_RSTFLTSEL(x) (((uint8_t)(((uint8_t)(x)) << RCM_RPFW_RSTFLTSEL_SHIFT)) & RCM_RPFW_RSTFLTSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5875 | |
AnnaBridge | 171:3a7713b1edbc | 5876 | /*! @name FM - Force Mode Register */ |
AnnaBridge | 171:3a7713b1edbc | 5877 | #define RCM_FM_FORCEROM_MASK (0x6U) |
AnnaBridge | 171:3a7713b1edbc | 5878 | #define RCM_FM_FORCEROM_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5879 | #define RCM_FM_FORCEROM(x) (((uint8_t)(((uint8_t)(x)) << RCM_FM_FORCEROM_SHIFT)) & RCM_FM_FORCEROM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5880 | |
AnnaBridge | 171:3a7713b1edbc | 5881 | /*! @name MR - Mode Register */ |
AnnaBridge | 171:3a7713b1edbc | 5882 | #define RCM_MR_BOOTROM_MASK (0x6U) |
AnnaBridge | 171:3a7713b1edbc | 5883 | #define RCM_MR_BOOTROM_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5884 | #define RCM_MR_BOOTROM(x) (((uint8_t)(((uint8_t)(x)) << RCM_MR_BOOTROM_SHIFT)) & RCM_MR_BOOTROM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5885 | |
AnnaBridge | 171:3a7713b1edbc | 5886 | /*! @name SSRS0 - Sticky System Reset Status Register 0 */ |
AnnaBridge | 171:3a7713b1edbc | 5887 | #define RCM_SSRS0_SWAKEUP_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 5888 | #define RCM_SSRS0_SWAKEUP_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5889 | #define RCM_SSRS0_SWAKEUP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SWAKEUP_SHIFT)) & RCM_SSRS0_SWAKEUP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5890 | #define RCM_SSRS0_SLVD_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5891 | #define RCM_SSRS0_SLVD_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5892 | #define RCM_SSRS0_SLVD(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SLVD_SHIFT)) & RCM_SSRS0_SLVD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5893 | #define RCM_SSRS0_SWDOG_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 5894 | #define RCM_SSRS0_SWDOG_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 5895 | #define RCM_SSRS0_SWDOG(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SWDOG_SHIFT)) & RCM_SSRS0_SWDOG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5896 | #define RCM_SSRS0_SPIN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 5897 | #define RCM_SSRS0_SPIN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 5898 | #define RCM_SSRS0_SPIN(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SPIN_SHIFT)) & RCM_SSRS0_SPIN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5899 | #define RCM_SSRS0_SPOR_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 5900 | #define RCM_SSRS0_SPOR_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 5901 | #define RCM_SSRS0_SPOR(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS0_SPOR_SHIFT)) & RCM_SSRS0_SPOR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5902 | |
AnnaBridge | 171:3a7713b1edbc | 5903 | /*! @name SSRS1 - Sticky System Reset Status Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 5904 | #define RCM_SSRS1_SLOCKUP_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 5905 | #define RCM_SSRS1_SLOCKUP_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 5906 | #define RCM_SSRS1_SLOCKUP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SLOCKUP_SHIFT)) & RCM_SSRS1_SLOCKUP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5907 | #define RCM_SSRS1_SSW_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 5908 | #define RCM_SSRS1_SSW_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 5909 | #define RCM_SSRS1_SSW(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SSW_SHIFT)) & RCM_SSRS1_SSW_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5910 | #define RCM_SSRS1_SMDM_AP_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 5911 | #define RCM_SSRS1_SMDM_AP_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 5912 | #define RCM_SSRS1_SMDM_AP(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SMDM_AP_SHIFT)) & RCM_SSRS1_SMDM_AP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5913 | #define RCM_SSRS1_SSACKERR_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 5914 | #define RCM_SSRS1_SSACKERR_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 5915 | #define RCM_SSRS1_SSACKERR(x) (((uint8_t)(((uint8_t)(x)) << RCM_SSRS1_SSACKERR_SHIFT)) & RCM_SSRS1_SSACKERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5916 | |
AnnaBridge | 171:3a7713b1edbc | 5917 | |
AnnaBridge | 171:3a7713b1edbc | 5918 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5919 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5920 | */ /* end of group RCM_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5921 | |
AnnaBridge | 171:3a7713b1edbc | 5922 | |
AnnaBridge | 171:3a7713b1edbc | 5923 | /* RCM - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5924 | /** Peripheral RCM base address */ |
AnnaBridge | 171:3a7713b1edbc | 5925 | #define RCM_BASE (0x4007F000u) |
AnnaBridge | 171:3a7713b1edbc | 5926 | /** Peripheral RCM base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5927 | #define RCM ((RCM_Type *)RCM_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5928 | /** Array initializer of RCM peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5929 | #define RCM_BASE_ADDRS { RCM_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5930 | /** Array initializer of RCM peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5931 | #define RCM_BASE_PTRS { RCM } |
AnnaBridge | 171:3a7713b1edbc | 5932 | |
AnnaBridge | 171:3a7713b1edbc | 5933 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5934 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5935 | */ /* end of group RCM_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5936 | |
AnnaBridge | 171:3a7713b1edbc | 5937 | |
AnnaBridge | 171:3a7713b1edbc | 5938 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5939 | -- RFSYS Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5940 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5941 | |
AnnaBridge | 171:3a7713b1edbc | 5942 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5943 | * @addtogroup RFSYS_Peripheral_Access_Layer RFSYS Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 5944 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5945 | */ |
AnnaBridge | 171:3a7713b1edbc | 5946 | |
AnnaBridge | 171:3a7713b1edbc | 5947 | /** RFSYS - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 5948 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 5949 | __IO uint32_t REG[8]; /**< Register file register, array offset: 0x0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 5950 | } RFSYS_Type; |
AnnaBridge | 171:3a7713b1edbc | 5951 | |
AnnaBridge | 171:3a7713b1edbc | 5952 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 5953 | -- RFSYS Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5954 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 5955 | |
AnnaBridge | 171:3a7713b1edbc | 5956 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5957 | * @addtogroup RFSYS_Register_Masks RFSYS Register Masks |
AnnaBridge | 171:3a7713b1edbc | 5958 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 5959 | */ |
AnnaBridge | 171:3a7713b1edbc | 5960 | |
AnnaBridge | 171:3a7713b1edbc | 5961 | /*! @name REG - Register file register */ |
AnnaBridge | 171:3a7713b1edbc | 5962 | #define RFSYS_REG_LL_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 5963 | #define RFSYS_REG_LL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 5964 | #define RFSYS_REG_LL(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_LL_SHIFT)) & RFSYS_REG_LL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5965 | #define RFSYS_REG_LH_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 5966 | #define RFSYS_REG_LH_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 5967 | #define RFSYS_REG_LH(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_LH_SHIFT)) & RFSYS_REG_LH_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5968 | #define RFSYS_REG_HL_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 5969 | #define RFSYS_REG_HL_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 5970 | #define RFSYS_REG_HL(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_HL_SHIFT)) & RFSYS_REG_HL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5971 | #define RFSYS_REG_HH_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 5972 | #define RFSYS_REG_HH_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 5973 | #define RFSYS_REG_HH(x) (((uint32_t)(((uint32_t)(x)) << RFSYS_REG_HH_SHIFT)) & RFSYS_REG_HH_MASK) |
AnnaBridge | 171:3a7713b1edbc | 5974 | |
AnnaBridge | 171:3a7713b1edbc | 5975 | /* The count of RFSYS_REG */ |
AnnaBridge | 171:3a7713b1edbc | 5976 | #define RFSYS_REG_COUNT (8U) |
AnnaBridge | 171:3a7713b1edbc | 5977 | |
AnnaBridge | 171:3a7713b1edbc | 5978 | |
AnnaBridge | 171:3a7713b1edbc | 5979 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5980 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5981 | */ /* end of group RFSYS_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 5982 | |
AnnaBridge | 171:3a7713b1edbc | 5983 | |
AnnaBridge | 171:3a7713b1edbc | 5984 | /* RFSYS - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5985 | /** Peripheral RFSYS base address */ |
AnnaBridge | 171:3a7713b1edbc | 5986 | #define RFSYS_BASE (0x40041000u) |
AnnaBridge | 171:3a7713b1edbc | 5987 | /** Peripheral RFSYS base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 5988 | #define RFSYS ((RFSYS_Type *)RFSYS_BASE) |
AnnaBridge | 171:3a7713b1edbc | 5989 | /** Array initializer of RFSYS peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 5990 | #define RFSYS_BASE_ADDRS { RFSYS_BASE } |
AnnaBridge | 171:3a7713b1edbc | 5991 | /** Array initializer of RFSYS peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 5992 | #define RFSYS_BASE_PTRS { RFSYS } |
AnnaBridge | 171:3a7713b1edbc | 5993 | |
AnnaBridge | 171:3a7713b1edbc | 5994 | /*! |
AnnaBridge | 171:3a7713b1edbc | 5995 | * @} |
AnnaBridge | 171:3a7713b1edbc | 5996 | */ /* end of group RFSYS_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 5997 | |
AnnaBridge | 171:3a7713b1edbc | 5998 | |
AnnaBridge | 171:3a7713b1edbc | 5999 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6000 | -- ROM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6001 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6002 | |
AnnaBridge | 171:3a7713b1edbc | 6003 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6004 | * @addtogroup ROM_Peripheral_Access_Layer ROM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6005 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6006 | */ |
AnnaBridge | 171:3a7713b1edbc | 6007 | |
AnnaBridge | 171:3a7713b1edbc | 6008 | /** ROM - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 6009 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 6010 | __I uint32_t ENTRY[3]; /**< Entry, array offset: 0x0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 6011 | __I uint32_t TABLEMARK; /**< End of Table Marker Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 6012 | uint8_t RESERVED_0[4028]; |
AnnaBridge | 171:3a7713b1edbc | 6013 | __I uint32_t SYSACCESS; /**< System Access Register, offset: 0xFCC */ |
AnnaBridge | 171:3a7713b1edbc | 6014 | __I uint32_t PERIPHID4; /**< Peripheral ID Register, offset: 0xFD0 */ |
AnnaBridge | 171:3a7713b1edbc | 6015 | __I uint32_t PERIPHID5; /**< Peripheral ID Register, offset: 0xFD4 */ |
AnnaBridge | 171:3a7713b1edbc | 6016 | __I uint32_t PERIPHID6; /**< Peripheral ID Register, offset: 0xFD8 */ |
AnnaBridge | 171:3a7713b1edbc | 6017 | __I uint32_t PERIPHID7; /**< Peripheral ID Register, offset: 0xFDC */ |
AnnaBridge | 171:3a7713b1edbc | 6018 | __I uint32_t PERIPHID0; /**< Peripheral ID Register, offset: 0xFE0 */ |
AnnaBridge | 171:3a7713b1edbc | 6019 | __I uint32_t PERIPHID1; /**< Peripheral ID Register, offset: 0xFE4 */ |
AnnaBridge | 171:3a7713b1edbc | 6020 | __I uint32_t PERIPHID2; /**< Peripheral ID Register, offset: 0xFE8 */ |
AnnaBridge | 171:3a7713b1edbc | 6021 | __I uint32_t PERIPHID3; /**< Peripheral ID Register, offset: 0xFEC */ |
AnnaBridge | 171:3a7713b1edbc | 6022 | __I uint32_t COMPID[4]; /**< Component ID Register, array offset: 0xFF0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 6023 | } ROM_Type; |
AnnaBridge | 171:3a7713b1edbc | 6024 | |
AnnaBridge | 171:3a7713b1edbc | 6025 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6026 | -- ROM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6027 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6028 | |
AnnaBridge | 171:3a7713b1edbc | 6029 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6030 | * @addtogroup ROM_Register_Masks ROM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6031 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6032 | */ |
AnnaBridge | 171:3a7713b1edbc | 6033 | |
AnnaBridge | 171:3a7713b1edbc | 6034 | /*! @name ENTRY - Entry */ |
AnnaBridge | 171:3a7713b1edbc | 6035 | #define ROM_ENTRY_ENTRY_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6036 | #define ROM_ENTRY_ENTRY_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6037 | #define ROM_ENTRY_ENTRY(x) (((uint32_t)(((uint32_t)(x)) << ROM_ENTRY_ENTRY_SHIFT)) & ROM_ENTRY_ENTRY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6038 | |
AnnaBridge | 171:3a7713b1edbc | 6039 | /* The count of ROM_ENTRY */ |
AnnaBridge | 171:3a7713b1edbc | 6040 | #define ROM_ENTRY_COUNT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6041 | |
AnnaBridge | 171:3a7713b1edbc | 6042 | /*! @name TABLEMARK - End of Table Marker Register */ |
AnnaBridge | 171:3a7713b1edbc | 6043 | #define ROM_TABLEMARK_MARK_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6044 | #define ROM_TABLEMARK_MARK_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6045 | #define ROM_TABLEMARK_MARK(x) (((uint32_t)(((uint32_t)(x)) << ROM_TABLEMARK_MARK_SHIFT)) & ROM_TABLEMARK_MARK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6046 | |
AnnaBridge | 171:3a7713b1edbc | 6047 | /*! @name SYSACCESS - System Access Register */ |
AnnaBridge | 171:3a7713b1edbc | 6048 | #define ROM_SYSACCESS_SYSACCESS_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6049 | #define ROM_SYSACCESS_SYSACCESS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6050 | #define ROM_SYSACCESS_SYSACCESS(x) (((uint32_t)(((uint32_t)(x)) << ROM_SYSACCESS_SYSACCESS_SHIFT)) & ROM_SYSACCESS_SYSACCESS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6051 | |
AnnaBridge | 171:3a7713b1edbc | 6052 | /*! @name PERIPHID4 - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6053 | #define ROM_PERIPHID4_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6054 | #define ROM_PERIPHID4_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6055 | #define ROM_PERIPHID4_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID4_PERIPHID_SHIFT)) & ROM_PERIPHID4_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6056 | |
AnnaBridge | 171:3a7713b1edbc | 6057 | /*! @name PERIPHID5 - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6058 | #define ROM_PERIPHID5_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6059 | #define ROM_PERIPHID5_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6060 | #define ROM_PERIPHID5_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID5_PERIPHID_SHIFT)) & ROM_PERIPHID5_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6061 | |
AnnaBridge | 171:3a7713b1edbc | 6062 | /*! @name PERIPHID6 - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6063 | #define ROM_PERIPHID6_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6064 | #define ROM_PERIPHID6_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6065 | #define ROM_PERIPHID6_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID6_PERIPHID_SHIFT)) & ROM_PERIPHID6_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6066 | |
AnnaBridge | 171:3a7713b1edbc | 6067 | /*! @name PERIPHID7 - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6068 | #define ROM_PERIPHID7_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6069 | #define ROM_PERIPHID7_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6070 | #define ROM_PERIPHID7_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID7_PERIPHID_SHIFT)) & ROM_PERIPHID7_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6071 | |
AnnaBridge | 171:3a7713b1edbc | 6072 | /*! @name PERIPHID0 - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6073 | #define ROM_PERIPHID0_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6074 | #define ROM_PERIPHID0_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6075 | #define ROM_PERIPHID0_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID0_PERIPHID_SHIFT)) & ROM_PERIPHID0_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6076 | |
AnnaBridge | 171:3a7713b1edbc | 6077 | /*! @name PERIPHID1 - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6078 | #define ROM_PERIPHID1_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6079 | #define ROM_PERIPHID1_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6080 | #define ROM_PERIPHID1_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID1_PERIPHID_SHIFT)) & ROM_PERIPHID1_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6081 | |
AnnaBridge | 171:3a7713b1edbc | 6082 | /*! @name PERIPHID2 - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6083 | #define ROM_PERIPHID2_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6084 | #define ROM_PERIPHID2_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6085 | #define ROM_PERIPHID2_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID2_PERIPHID_SHIFT)) & ROM_PERIPHID2_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6086 | |
AnnaBridge | 171:3a7713b1edbc | 6087 | /*! @name PERIPHID3 - Peripheral ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6088 | #define ROM_PERIPHID3_PERIPHID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6089 | #define ROM_PERIPHID3_PERIPHID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6090 | #define ROM_PERIPHID3_PERIPHID(x) (((uint32_t)(((uint32_t)(x)) << ROM_PERIPHID3_PERIPHID_SHIFT)) & ROM_PERIPHID3_PERIPHID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6091 | |
AnnaBridge | 171:3a7713b1edbc | 6092 | /*! @name COMPID - Component ID Register */ |
AnnaBridge | 171:3a7713b1edbc | 6093 | #define ROM_COMPID_COMPID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6094 | #define ROM_COMPID_COMPID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6095 | #define ROM_COMPID_COMPID(x) (((uint32_t)(((uint32_t)(x)) << ROM_COMPID_COMPID_SHIFT)) & ROM_COMPID_COMPID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6096 | |
AnnaBridge | 171:3a7713b1edbc | 6097 | /* The count of ROM_COMPID */ |
AnnaBridge | 171:3a7713b1edbc | 6098 | #define ROM_COMPID_COUNT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6099 | |
AnnaBridge | 171:3a7713b1edbc | 6100 | |
AnnaBridge | 171:3a7713b1edbc | 6101 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6102 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6103 | */ /* end of group ROM_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 6104 | |
AnnaBridge | 171:3a7713b1edbc | 6105 | |
AnnaBridge | 171:3a7713b1edbc | 6106 | /* ROM - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6107 | /** Peripheral ROM base address */ |
AnnaBridge | 171:3a7713b1edbc | 6108 | #define ROM_BASE (0xF0002000u) |
AnnaBridge | 171:3a7713b1edbc | 6109 | /** Peripheral ROM base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 6110 | #define ROM ((ROM_Type *)ROM_BASE) |
AnnaBridge | 171:3a7713b1edbc | 6111 | /** Array initializer of ROM peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6112 | #define ROM_BASE_ADDRS { ROM_BASE } |
AnnaBridge | 171:3a7713b1edbc | 6113 | /** Array initializer of ROM peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 6114 | #define ROM_BASE_PTRS { ROM } |
AnnaBridge | 171:3a7713b1edbc | 6115 | |
AnnaBridge | 171:3a7713b1edbc | 6116 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6117 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6118 | */ /* end of group ROM_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 6119 | |
AnnaBridge | 171:3a7713b1edbc | 6120 | |
AnnaBridge | 171:3a7713b1edbc | 6121 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6122 | -- RTC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6123 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6124 | |
AnnaBridge | 171:3a7713b1edbc | 6125 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6126 | * @addtogroup RTC_Peripheral_Access_Layer RTC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6127 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6128 | */ |
AnnaBridge | 171:3a7713b1edbc | 6129 | |
AnnaBridge | 171:3a7713b1edbc | 6130 | /** RTC - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 6131 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 6132 | __IO uint32_t TSR; /**< RTC Time Seconds Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 6133 | __IO uint32_t TPR; /**< RTC Time Prescaler Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 6134 | __IO uint32_t TAR; /**< RTC Time Alarm Register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 6135 | __IO uint32_t TCR; /**< RTC Time Compensation Register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 6136 | __IO uint32_t CR; /**< RTC Control Register, offset: 0x10 */ |
AnnaBridge | 171:3a7713b1edbc | 6137 | __IO uint32_t SR; /**< RTC Status Register, offset: 0x14 */ |
AnnaBridge | 171:3a7713b1edbc | 6138 | __IO uint32_t LR; /**< RTC Lock Register, offset: 0x18 */ |
AnnaBridge | 171:3a7713b1edbc | 6139 | __IO uint32_t IER; /**< RTC Interrupt Enable Register, offset: 0x1C */ |
AnnaBridge | 171:3a7713b1edbc | 6140 | } RTC_Type; |
AnnaBridge | 171:3a7713b1edbc | 6141 | |
AnnaBridge | 171:3a7713b1edbc | 6142 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6143 | -- RTC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6144 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6145 | |
AnnaBridge | 171:3a7713b1edbc | 6146 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6147 | * @addtogroup RTC_Register_Masks RTC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6148 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6149 | */ |
AnnaBridge | 171:3a7713b1edbc | 6150 | |
AnnaBridge | 171:3a7713b1edbc | 6151 | /*! @name TSR - RTC Time Seconds Register */ |
AnnaBridge | 171:3a7713b1edbc | 6152 | #define RTC_TSR_TSR_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6153 | #define RTC_TSR_TSR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6154 | #define RTC_TSR_TSR(x) (((uint32_t)(((uint32_t)(x)) << RTC_TSR_TSR_SHIFT)) & RTC_TSR_TSR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6155 | |
AnnaBridge | 171:3a7713b1edbc | 6156 | /*! @name TPR - RTC Time Prescaler Register */ |
AnnaBridge | 171:3a7713b1edbc | 6157 | #define RTC_TPR_TPR_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6158 | #define RTC_TPR_TPR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6159 | #define RTC_TPR_TPR(x) (((uint32_t)(((uint32_t)(x)) << RTC_TPR_TPR_SHIFT)) & RTC_TPR_TPR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6160 | |
AnnaBridge | 171:3a7713b1edbc | 6161 | /*! @name TAR - RTC Time Alarm Register */ |
AnnaBridge | 171:3a7713b1edbc | 6162 | #define RTC_TAR_TAR_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6163 | #define RTC_TAR_TAR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6164 | #define RTC_TAR_TAR(x) (((uint32_t)(((uint32_t)(x)) << RTC_TAR_TAR_SHIFT)) & RTC_TAR_TAR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6165 | |
AnnaBridge | 171:3a7713b1edbc | 6166 | /*! @name TCR - RTC Time Compensation Register */ |
AnnaBridge | 171:3a7713b1edbc | 6167 | #define RTC_TCR_TCR_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 6168 | #define RTC_TCR_TCR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6169 | #define RTC_TCR_TCR(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_TCR_SHIFT)) & RTC_TCR_TCR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6170 | #define RTC_TCR_CIR_MASK (0xFF00U) |
AnnaBridge | 171:3a7713b1edbc | 6171 | #define RTC_TCR_CIR_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 6172 | #define RTC_TCR_CIR(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_CIR_SHIFT)) & RTC_TCR_CIR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6173 | #define RTC_TCR_TCV_MASK (0xFF0000U) |
AnnaBridge | 171:3a7713b1edbc | 6174 | #define RTC_TCR_TCV_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 6175 | #define RTC_TCR_TCV(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_TCV_SHIFT)) & RTC_TCR_TCV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6176 | #define RTC_TCR_CIC_MASK (0xFF000000U) |
AnnaBridge | 171:3a7713b1edbc | 6177 | #define RTC_TCR_CIC_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 6178 | #define RTC_TCR_CIC(x) (((uint32_t)(((uint32_t)(x)) << RTC_TCR_CIC_SHIFT)) & RTC_TCR_CIC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6179 | |
AnnaBridge | 171:3a7713b1edbc | 6180 | /*! @name CR - RTC Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 6181 | #define RTC_CR_SWR_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6182 | #define RTC_CR_SWR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6183 | #define RTC_CR_SWR(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SWR_SHIFT)) & RTC_CR_SWR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6184 | #define RTC_CR_WPE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6185 | #define RTC_CR_WPE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6186 | #define RTC_CR_WPE(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_WPE_SHIFT)) & RTC_CR_WPE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6187 | #define RTC_CR_SUP_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6188 | #define RTC_CR_SUP_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6189 | #define RTC_CR_SUP(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SUP_SHIFT)) & RTC_CR_SUP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6190 | #define RTC_CR_UM_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6191 | #define RTC_CR_UM_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6192 | #define RTC_CR_UM(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_UM_SHIFT)) & RTC_CR_UM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6193 | #define RTC_CR_WPS_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6194 | #define RTC_CR_WPS_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6195 | #define RTC_CR_WPS(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_WPS_SHIFT)) & RTC_CR_WPS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6196 | #define RTC_CR_OSCE_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 6197 | #define RTC_CR_OSCE_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 6198 | #define RTC_CR_OSCE(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_OSCE_SHIFT)) & RTC_CR_OSCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6199 | #define RTC_CR_CLKO_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 6200 | #define RTC_CR_CLKO_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 6201 | #define RTC_CR_CLKO(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_CLKO_SHIFT)) & RTC_CR_CLKO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6202 | #define RTC_CR_SC16P_MASK (0x400U) |
AnnaBridge | 171:3a7713b1edbc | 6203 | #define RTC_CR_SC16P_SHIFT (10U) |
AnnaBridge | 171:3a7713b1edbc | 6204 | #define RTC_CR_SC16P(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SC16P_SHIFT)) & RTC_CR_SC16P_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6205 | #define RTC_CR_SC8P_MASK (0x800U) |
AnnaBridge | 171:3a7713b1edbc | 6206 | #define RTC_CR_SC8P_SHIFT (11U) |
AnnaBridge | 171:3a7713b1edbc | 6207 | #define RTC_CR_SC8P(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SC8P_SHIFT)) & RTC_CR_SC8P_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6208 | #define RTC_CR_SC4P_MASK (0x1000U) |
AnnaBridge | 171:3a7713b1edbc | 6209 | #define RTC_CR_SC4P_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 6210 | #define RTC_CR_SC4P(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SC4P_SHIFT)) & RTC_CR_SC4P_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6211 | #define RTC_CR_SC2P_MASK (0x2000U) |
AnnaBridge | 171:3a7713b1edbc | 6212 | #define RTC_CR_SC2P_SHIFT (13U) |
AnnaBridge | 171:3a7713b1edbc | 6213 | #define RTC_CR_SC2P(x) (((uint32_t)(((uint32_t)(x)) << RTC_CR_SC2P_SHIFT)) & RTC_CR_SC2P_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6214 | |
AnnaBridge | 171:3a7713b1edbc | 6215 | /*! @name SR - RTC Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 6216 | #define RTC_SR_TIF_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6217 | #define RTC_SR_TIF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6218 | #define RTC_SR_TIF(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_TIF_SHIFT)) & RTC_SR_TIF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6219 | #define RTC_SR_TOF_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6220 | #define RTC_SR_TOF_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6221 | #define RTC_SR_TOF(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_TOF_SHIFT)) & RTC_SR_TOF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6222 | #define RTC_SR_TAF_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6223 | #define RTC_SR_TAF_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6224 | #define RTC_SR_TAF(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_TAF_SHIFT)) & RTC_SR_TAF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6225 | #define RTC_SR_TCE_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6226 | #define RTC_SR_TCE_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6227 | #define RTC_SR_TCE(x) (((uint32_t)(((uint32_t)(x)) << RTC_SR_TCE_SHIFT)) & RTC_SR_TCE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6228 | |
AnnaBridge | 171:3a7713b1edbc | 6229 | /*! @name LR - RTC Lock Register */ |
AnnaBridge | 171:3a7713b1edbc | 6230 | #define RTC_LR_TCL_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6231 | #define RTC_LR_TCL_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6232 | #define RTC_LR_TCL(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_TCL_SHIFT)) & RTC_LR_TCL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6233 | #define RTC_LR_CRL_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6234 | #define RTC_LR_CRL_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6235 | #define RTC_LR_CRL(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_CRL_SHIFT)) & RTC_LR_CRL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6236 | #define RTC_LR_SRL_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6237 | #define RTC_LR_SRL_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6238 | #define RTC_LR_SRL(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_SRL_SHIFT)) & RTC_LR_SRL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6239 | #define RTC_LR_LRL_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 6240 | #define RTC_LR_LRL_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6241 | #define RTC_LR_LRL(x) (((uint32_t)(((uint32_t)(x)) << RTC_LR_LRL_SHIFT)) & RTC_LR_LRL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6242 | |
AnnaBridge | 171:3a7713b1edbc | 6243 | /*! @name IER - RTC Interrupt Enable Register */ |
AnnaBridge | 171:3a7713b1edbc | 6244 | #define RTC_IER_TIIE_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6245 | #define RTC_IER_TIIE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6246 | #define RTC_IER_TIIE(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_TIIE_SHIFT)) & RTC_IER_TIIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6247 | #define RTC_IER_TOIE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6248 | #define RTC_IER_TOIE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6249 | #define RTC_IER_TOIE(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_TOIE_SHIFT)) & RTC_IER_TOIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6250 | #define RTC_IER_TAIE_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6251 | #define RTC_IER_TAIE_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6252 | #define RTC_IER_TAIE(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_TAIE_SHIFT)) & RTC_IER_TAIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6253 | #define RTC_IER_TSIE_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6254 | #define RTC_IER_TSIE_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6255 | #define RTC_IER_TSIE(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_TSIE_SHIFT)) & RTC_IER_TSIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6256 | #define RTC_IER_WPON_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 6257 | #define RTC_IER_WPON_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 6258 | #define RTC_IER_WPON(x) (((uint32_t)(((uint32_t)(x)) << RTC_IER_WPON_SHIFT)) & RTC_IER_WPON_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6259 | |
AnnaBridge | 171:3a7713b1edbc | 6260 | |
AnnaBridge | 171:3a7713b1edbc | 6261 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6262 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6263 | */ /* end of group RTC_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 6264 | |
AnnaBridge | 171:3a7713b1edbc | 6265 | |
AnnaBridge | 171:3a7713b1edbc | 6266 | /* RTC - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6267 | /** Peripheral RTC base address */ |
AnnaBridge | 171:3a7713b1edbc | 6268 | #define RTC_BASE (0x4003D000u) |
AnnaBridge | 171:3a7713b1edbc | 6269 | /** Peripheral RTC base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 6270 | #define RTC ((RTC_Type *)RTC_BASE) |
AnnaBridge | 171:3a7713b1edbc | 6271 | /** Array initializer of RTC peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6272 | #define RTC_BASE_ADDRS { RTC_BASE } |
AnnaBridge | 171:3a7713b1edbc | 6273 | /** Array initializer of RTC peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 6274 | #define RTC_BASE_PTRS { RTC } |
AnnaBridge | 171:3a7713b1edbc | 6275 | /** Interrupt vectors for the RTC peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 6276 | #define RTC_IRQS { RTC_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 6277 | #define RTC_SECONDS_IRQS { RTC_Seconds_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 6278 | |
AnnaBridge | 171:3a7713b1edbc | 6279 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6280 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6281 | */ /* end of group RTC_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 6282 | |
AnnaBridge | 171:3a7713b1edbc | 6283 | |
AnnaBridge | 171:3a7713b1edbc | 6284 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6285 | -- SIM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6286 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6287 | |
AnnaBridge | 171:3a7713b1edbc | 6288 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6289 | * @addtogroup SIM_Peripheral_Access_Layer SIM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6290 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6291 | */ |
AnnaBridge | 171:3a7713b1edbc | 6292 | |
AnnaBridge | 171:3a7713b1edbc | 6293 | /** SIM - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 6294 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 6295 | __IO uint32_t SOPT1; /**< System Options Register 1, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 6296 | __IO uint32_t SOPT1CFG; /**< SOPT1 Configuration Register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 6297 | uint8_t RESERVED_0[4092]; |
AnnaBridge | 171:3a7713b1edbc | 6298 | __IO uint32_t SOPT2; /**< System Options Register 2, offset: 0x1004 */ |
AnnaBridge | 171:3a7713b1edbc | 6299 | uint8_t RESERVED_1[4]; |
AnnaBridge | 171:3a7713b1edbc | 6300 | __IO uint32_t SOPT4; /**< System Options Register 4, offset: 0x100C */ |
AnnaBridge | 171:3a7713b1edbc | 6301 | __IO uint32_t SOPT5; /**< System Options Register 5, offset: 0x1010 */ |
AnnaBridge | 171:3a7713b1edbc | 6302 | uint8_t RESERVED_2[4]; |
AnnaBridge | 171:3a7713b1edbc | 6303 | __IO uint32_t SOPT7; /**< System Options Register 7, offset: 0x1018 */ |
AnnaBridge | 171:3a7713b1edbc | 6304 | uint8_t RESERVED_3[8]; |
AnnaBridge | 171:3a7713b1edbc | 6305 | __I uint32_t SDID; /**< System Device Identification Register, offset: 0x1024 */ |
AnnaBridge | 171:3a7713b1edbc | 6306 | uint8_t RESERVED_4[12]; |
AnnaBridge | 171:3a7713b1edbc | 6307 | __IO uint32_t SCGC4; /**< System Clock Gating Control Register 4, offset: 0x1034 */ |
AnnaBridge | 171:3a7713b1edbc | 6308 | __IO uint32_t SCGC5; /**< System Clock Gating Control Register 5, offset: 0x1038 */ |
AnnaBridge | 171:3a7713b1edbc | 6309 | __IO uint32_t SCGC6; /**< System Clock Gating Control Register 6, offset: 0x103C */ |
AnnaBridge | 171:3a7713b1edbc | 6310 | __IO uint32_t SCGC7; /**< System Clock Gating Control Register 7, offset: 0x1040 */ |
AnnaBridge | 171:3a7713b1edbc | 6311 | __IO uint32_t CLKDIV1; /**< System Clock Divider Register 1, offset: 0x1044 */ |
AnnaBridge | 171:3a7713b1edbc | 6312 | uint8_t RESERVED_5[4]; |
AnnaBridge | 171:3a7713b1edbc | 6313 | __IO uint32_t FCFG1; /**< Flash Configuration Register 1, offset: 0x104C */ |
AnnaBridge | 171:3a7713b1edbc | 6314 | __I uint32_t FCFG2; /**< Flash Configuration Register 2, offset: 0x1050 */ |
AnnaBridge | 171:3a7713b1edbc | 6315 | uint8_t RESERVED_6[4]; |
AnnaBridge | 171:3a7713b1edbc | 6316 | __I uint32_t UIDMH; /**< Unique Identification Register Mid-High, offset: 0x1058 */ |
AnnaBridge | 171:3a7713b1edbc | 6317 | __I uint32_t UIDML; /**< Unique Identification Register Mid Low, offset: 0x105C */ |
AnnaBridge | 171:3a7713b1edbc | 6318 | __I uint32_t UIDL; /**< Unique Identification Register Low, offset: 0x1060 */ |
AnnaBridge | 171:3a7713b1edbc | 6319 | uint8_t RESERVED_7[156]; |
AnnaBridge | 171:3a7713b1edbc | 6320 | __IO uint32_t COPC; /**< COP Control Register, offset: 0x1100 */ |
AnnaBridge | 171:3a7713b1edbc | 6321 | __O uint32_t SRVCOP; /**< Service COP, offset: 0x1104 */ |
AnnaBridge | 171:3a7713b1edbc | 6322 | } SIM_Type; |
AnnaBridge | 171:3a7713b1edbc | 6323 | |
AnnaBridge | 171:3a7713b1edbc | 6324 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6325 | -- SIM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6326 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6327 | |
AnnaBridge | 171:3a7713b1edbc | 6328 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6329 | * @addtogroup SIM_Register_Masks SIM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6330 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6331 | */ |
AnnaBridge | 171:3a7713b1edbc | 6332 | |
AnnaBridge | 171:3a7713b1edbc | 6333 | /*! @name SOPT1 - System Options Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 6334 | #define SIM_SOPT1_OSC32KOUT_MASK (0x30000U) |
AnnaBridge | 171:3a7713b1edbc | 6335 | #define SIM_SOPT1_OSC32KOUT_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 6336 | #define SIM_SOPT1_OSC32KOUT(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_OSC32KOUT_SHIFT)) & SIM_SOPT1_OSC32KOUT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6337 | #define SIM_SOPT1_OSC32KSEL_MASK (0xC0000U) |
AnnaBridge | 171:3a7713b1edbc | 6338 | #define SIM_SOPT1_OSC32KSEL_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 6339 | #define SIM_SOPT1_OSC32KSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_OSC32KSEL_SHIFT)) & SIM_SOPT1_OSC32KSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6340 | #define SIM_SOPT1_USBVSTBY_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 6341 | #define SIM_SOPT1_USBVSTBY_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 6342 | #define SIM_SOPT1_USBVSTBY(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_USBVSTBY_SHIFT)) & SIM_SOPT1_USBVSTBY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6343 | #define SIM_SOPT1_USBSSTBY_MASK (0x40000000U) |
AnnaBridge | 171:3a7713b1edbc | 6344 | #define SIM_SOPT1_USBSSTBY_SHIFT (30U) |
AnnaBridge | 171:3a7713b1edbc | 6345 | #define SIM_SOPT1_USBSSTBY(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_USBSSTBY_SHIFT)) & SIM_SOPT1_USBSSTBY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6346 | #define SIM_SOPT1_USBREGEN_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 6347 | #define SIM_SOPT1_USBREGEN_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 6348 | #define SIM_SOPT1_USBREGEN(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1_USBREGEN_SHIFT)) & SIM_SOPT1_USBREGEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6349 | |
AnnaBridge | 171:3a7713b1edbc | 6350 | /*! @name SOPT1CFG - SOPT1 Configuration Register */ |
AnnaBridge | 171:3a7713b1edbc | 6351 | #define SIM_SOPT1CFG_URWE_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 6352 | #define SIM_SOPT1CFG_URWE_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 6353 | #define SIM_SOPT1CFG_URWE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1CFG_URWE_SHIFT)) & SIM_SOPT1CFG_URWE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6354 | #define SIM_SOPT1CFG_UVSWE_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 6355 | #define SIM_SOPT1CFG_UVSWE_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 6356 | #define SIM_SOPT1CFG_UVSWE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1CFG_UVSWE_SHIFT)) & SIM_SOPT1CFG_UVSWE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6357 | #define SIM_SOPT1CFG_USSWE_MASK (0x4000000U) |
AnnaBridge | 171:3a7713b1edbc | 6358 | #define SIM_SOPT1CFG_USSWE_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 6359 | #define SIM_SOPT1CFG_USSWE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT1CFG_USSWE_SHIFT)) & SIM_SOPT1CFG_USSWE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6360 | |
AnnaBridge | 171:3a7713b1edbc | 6361 | /*! @name SOPT2 - System Options Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 6362 | #define SIM_SOPT2_RTCCLKOUTSEL_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6363 | #define SIM_SOPT2_RTCCLKOUTSEL_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6364 | #define SIM_SOPT2_RTCCLKOUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_RTCCLKOUTSEL_SHIFT)) & SIM_SOPT2_RTCCLKOUTSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6365 | #define SIM_SOPT2_CLKOUTSEL_MASK (0xE0U) |
AnnaBridge | 171:3a7713b1edbc | 6366 | #define SIM_SOPT2_CLKOUTSEL_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6367 | #define SIM_SOPT2_CLKOUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_CLKOUTSEL_SHIFT)) & SIM_SOPT2_CLKOUTSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6368 | #define SIM_SOPT2_USBSRC_MASK (0x40000U) |
AnnaBridge | 171:3a7713b1edbc | 6369 | #define SIM_SOPT2_USBSRC_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 6370 | #define SIM_SOPT2_USBSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_USBSRC_SHIFT)) & SIM_SOPT2_USBSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6371 | #define SIM_SOPT2_FLEXIOSRC_MASK (0xC00000U) |
AnnaBridge | 171:3a7713b1edbc | 6372 | #define SIM_SOPT2_FLEXIOSRC_SHIFT (22U) |
AnnaBridge | 171:3a7713b1edbc | 6373 | #define SIM_SOPT2_FLEXIOSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_FLEXIOSRC_SHIFT)) & SIM_SOPT2_FLEXIOSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6374 | #define SIM_SOPT2_TPMSRC_MASK (0x3000000U) |
AnnaBridge | 171:3a7713b1edbc | 6375 | #define SIM_SOPT2_TPMSRC_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 6376 | #define SIM_SOPT2_TPMSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_TPMSRC_SHIFT)) & SIM_SOPT2_TPMSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6377 | #define SIM_SOPT2_LPUART0SRC_MASK (0xC000000U) |
AnnaBridge | 171:3a7713b1edbc | 6378 | #define SIM_SOPT2_LPUART0SRC_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 6379 | #define SIM_SOPT2_LPUART0SRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_LPUART0SRC_SHIFT)) & SIM_SOPT2_LPUART0SRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6380 | #define SIM_SOPT2_LPUART1SRC_MASK (0x30000000U) |
AnnaBridge | 171:3a7713b1edbc | 6381 | #define SIM_SOPT2_LPUART1SRC_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 6382 | #define SIM_SOPT2_LPUART1SRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT2_LPUART1SRC_SHIFT)) & SIM_SOPT2_LPUART1SRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6383 | |
AnnaBridge | 171:3a7713b1edbc | 6384 | /*! @name SOPT4 - System Options Register 4 */ |
AnnaBridge | 171:3a7713b1edbc | 6385 | #define SIM_SOPT4_TPM1CH0SRC_MASK (0xC0000U) |
AnnaBridge | 171:3a7713b1edbc | 6386 | #define SIM_SOPT4_TPM1CH0SRC_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 6387 | #define SIM_SOPT4_TPM1CH0SRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_TPM1CH0SRC_SHIFT)) & SIM_SOPT4_TPM1CH0SRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6388 | #define SIM_SOPT4_TPM2CH0SRC_MASK (0x100000U) |
AnnaBridge | 171:3a7713b1edbc | 6389 | #define SIM_SOPT4_TPM2CH0SRC_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 6390 | #define SIM_SOPT4_TPM2CH0SRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_TPM2CH0SRC_SHIFT)) & SIM_SOPT4_TPM2CH0SRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6391 | #define SIM_SOPT4_TPM0CLKSEL_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 6392 | #define SIM_SOPT4_TPM0CLKSEL_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 6393 | #define SIM_SOPT4_TPM0CLKSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_TPM0CLKSEL_SHIFT)) & SIM_SOPT4_TPM0CLKSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6394 | #define SIM_SOPT4_TPM1CLKSEL_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 6395 | #define SIM_SOPT4_TPM1CLKSEL_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 6396 | #define SIM_SOPT4_TPM1CLKSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_TPM1CLKSEL_SHIFT)) & SIM_SOPT4_TPM1CLKSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6397 | #define SIM_SOPT4_TPM2CLKSEL_MASK (0x4000000U) |
AnnaBridge | 171:3a7713b1edbc | 6398 | #define SIM_SOPT4_TPM2CLKSEL_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 6399 | #define SIM_SOPT4_TPM2CLKSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT4_TPM2CLKSEL_SHIFT)) & SIM_SOPT4_TPM2CLKSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6400 | |
AnnaBridge | 171:3a7713b1edbc | 6401 | /*! @name SOPT5 - System Options Register 5 */ |
AnnaBridge | 171:3a7713b1edbc | 6402 | #define SIM_SOPT5_LPUART0TXSRC_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 6403 | #define SIM_SOPT5_LPUART0TXSRC_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6404 | #define SIM_SOPT5_LPUART0TXSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_LPUART0TXSRC_SHIFT)) & SIM_SOPT5_LPUART0TXSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6405 | #define SIM_SOPT5_LPUART0RXSRC_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6406 | #define SIM_SOPT5_LPUART0RXSRC_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6407 | #define SIM_SOPT5_LPUART0RXSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_LPUART0RXSRC_SHIFT)) & SIM_SOPT5_LPUART0RXSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6408 | #define SIM_SOPT5_LPUART1TXSRC_MASK (0x30U) |
AnnaBridge | 171:3a7713b1edbc | 6409 | #define SIM_SOPT5_LPUART1TXSRC_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6410 | #define SIM_SOPT5_LPUART1TXSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_LPUART1TXSRC_SHIFT)) & SIM_SOPT5_LPUART1TXSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6411 | #define SIM_SOPT5_LPUART1RXSRC_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 6412 | #define SIM_SOPT5_LPUART1RXSRC_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6413 | #define SIM_SOPT5_LPUART1RXSRC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_LPUART1RXSRC_SHIFT)) & SIM_SOPT5_LPUART1RXSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6414 | #define SIM_SOPT5_LPUART0ODE_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 6415 | #define SIM_SOPT5_LPUART0ODE_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 6416 | #define SIM_SOPT5_LPUART0ODE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_LPUART0ODE_SHIFT)) & SIM_SOPT5_LPUART0ODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6417 | #define SIM_SOPT5_LPUART1ODE_MASK (0x20000U) |
AnnaBridge | 171:3a7713b1edbc | 6418 | #define SIM_SOPT5_LPUART1ODE_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 6419 | #define SIM_SOPT5_LPUART1ODE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_LPUART1ODE_SHIFT)) & SIM_SOPT5_LPUART1ODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6420 | #define SIM_SOPT5_UART2ODE_MASK (0x40000U) |
AnnaBridge | 171:3a7713b1edbc | 6421 | #define SIM_SOPT5_UART2ODE_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 6422 | #define SIM_SOPT5_UART2ODE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT5_UART2ODE_SHIFT)) & SIM_SOPT5_UART2ODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6423 | |
AnnaBridge | 171:3a7713b1edbc | 6424 | /*! @name SOPT7 - System Options Register 7 */ |
AnnaBridge | 171:3a7713b1edbc | 6425 | #define SIM_SOPT7_ADC0TRGSEL_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 6426 | #define SIM_SOPT7_ADC0TRGSEL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6427 | #define SIM_SOPT7_ADC0TRGSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC0TRGSEL_SHIFT)) & SIM_SOPT7_ADC0TRGSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6428 | #define SIM_SOPT7_ADC0PRETRGSEL_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6429 | #define SIM_SOPT7_ADC0PRETRGSEL_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6430 | #define SIM_SOPT7_ADC0PRETRGSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC0PRETRGSEL_SHIFT)) & SIM_SOPT7_ADC0PRETRGSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6431 | #define SIM_SOPT7_ADC0ALTTRGEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 6432 | #define SIM_SOPT7_ADC0ALTTRGEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 6433 | #define SIM_SOPT7_ADC0ALTTRGEN(x) (((uint32_t)(((uint32_t)(x)) << SIM_SOPT7_ADC0ALTTRGEN_SHIFT)) & SIM_SOPT7_ADC0ALTTRGEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6434 | |
AnnaBridge | 171:3a7713b1edbc | 6435 | /*! @name SDID - System Device Identification Register */ |
AnnaBridge | 171:3a7713b1edbc | 6436 | #define SIM_SDID_PINID_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 6437 | #define SIM_SDID_PINID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6438 | #define SIM_SDID_PINID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_PINID_SHIFT)) & SIM_SDID_PINID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6439 | #define SIM_SDID_REVID_MASK (0xF000U) |
AnnaBridge | 171:3a7713b1edbc | 6440 | #define SIM_SDID_REVID_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 6441 | #define SIM_SDID_REVID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_REVID_SHIFT)) & SIM_SDID_REVID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6442 | #define SIM_SDID_SRAMSIZE_MASK (0xF0000U) |
AnnaBridge | 171:3a7713b1edbc | 6443 | #define SIM_SDID_SRAMSIZE_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 6444 | #define SIM_SDID_SRAMSIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SRAMSIZE_SHIFT)) & SIM_SDID_SRAMSIZE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6445 | #define SIM_SDID_SERIESID_MASK (0xF00000U) |
AnnaBridge | 171:3a7713b1edbc | 6446 | #define SIM_SDID_SERIESID_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 6447 | #define SIM_SDID_SERIESID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SERIESID_SHIFT)) & SIM_SDID_SERIESID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6448 | #define SIM_SDID_SUBFAMID_MASK (0xF000000U) |
AnnaBridge | 171:3a7713b1edbc | 6449 | #define SIM_SDID_SUBFAMID_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 6450 | #define SIM_SDID_SUBFAMID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_SUBFAMID_SHIFT)) & SIM_SDID_SUBFAMID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6451 | #define SIM_SDID_FAMID_MASK (0xF0000000U) |
AnnaBridge | 171:3a7713b1edbc | 6452 | #define SIM_SDID_FAMID_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 6453 | #define SIM_SDID_FAMID(x) (((uint32_t)(((uint32_t)(x)) << SIM_SDID_FAMID_SHIFT)) & SIM_SDID_FAMID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6454 | |
AnnaBridge | 171:3a7713b1edbc | 6455 | /*! @name SCGC4 - System Clock Gating Control Register 4 */ |
AnnaBridge | 171:3a7713b1edbc | 6456 | #define SIM_SCGC4_I2C0_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 6457 | #define SIM_SCGC4_I2C0_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6458 | #define SIM_SCGC4_I2C0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_I2C0_SHIFT)) & SIM_SCGC4_I2C0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6459 | #define SIM_SCGC4_I2C1_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 6460 | #define SIM_SCGC4_I2C1_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 6461 | #define SIM_SCGC4_I2C1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_I2C1_SHIFT)) & SIM_SCGC4_I2C1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6462 | #define SIM_SCGC4_UART2_MASK (0x1000U) |
AnnaBridge | 171:3a7713b1edbc | 6463 | #define SIM_SCGC4_UART2_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 6464 | #define SIM_SCGC4_UART2(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_UART2_SHIFT)) & SIM_SCGC4_UART2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6465 | #define SIM_SCGC4_USBFS_MASK (0x40000U) |
AnnaBridge | 171:3a7713b1edbc | 6466 | #define SIM_SCGC4_USBFS_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 6467 | #define SIM_SCGC4_USBFS(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_USBFS_SHIFT)) & SIM_SCGC4_USBFS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6468 | #define SIM_SCGC4_CMP0_MASK (0x80000U) |
AnnaBridge | 171:3a7713b1edbc | 6469 | #define SIM_SCGC4_CMP0_SHIFT (19U) |
AnnaBridge | 171:3a7713b1edbc | 6470 | #define SIM_SCGC4_CMP0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_CMP0_SHIFT)) & SIM_SCGC4_CMP0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6471 | #define SIM_SCGC4_VREF_MASK (0x100000U) |
AnnaBridge | 171:3a7713b1edbc | 6472 | #define SIM_SCGC4_VREF_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 6473 | #define SIM_SCGC4_VREF(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_VREF_SHIFT)) & SIM_SCGC4_VREF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6474 | #define SIM_SCGC4_SPI0_MASK (0x400000U) |
AnnaBridge | 171:3a7713b1edbc | 6475 | #define SIM_SCGC4_SPI0_SHIFT (22U) |
AnnaBridge | 171:3a7713b1edbc | 6476 | #define SIM_SCGC4_SPI0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_SPI0_SHIFT)) & SIM_SCGC4_SPI0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6477 | #define SIM_SCGC4_SPI1_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 6478 | #define SIM_SCGC4_SPI1_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 6479 | #define SIM_SCGC4_SPI1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC4_SPI1_SHIFT)) & SIM_SCGC4_SPI1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6480 | |
AnnaBridge | 171:3a7713b1edbc | 6481 | /*! @name SCGC5 - System Clock Gating Control Register 5 */ |
AnnaBridge | 171:3a7713b1edbc | 6482 | #define SIM_SCGC5_LPTMR_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6483 | #define SIM_SCGC5_LPTMR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6484 | #define SIM_SCGC5_LPTMR(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_LPTMR_SHIFT)) & SIM_SCGC5_LPTMR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6485 | #define SIM_SCGC5_PORTA_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 6486 | #define SIM_SCGC5_PORTA_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 6487 | #define SIM_SCGC5_PORTA(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTA_SHIFT)) & SIM_SCGC5_PORTA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6488 | #define SIM_SCGC5_PORTB_MASK (0x400U) |
AnnaBridge | 171:3a7713b1edbc | 6489 | #define SIM_SCGC5_PORTB_SHIFT (10U) |
AnnaBridge | 171:3a7713b1edbc | 6490 | #define SIM_SCGC5_PORTB(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTB_SHIFT)) & SIM_SCGC5_PORTB_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6491 | #define SIM_SCGC5_PORTC_MASK (0x800U) |
AnnaBridge | 171:3a7713b1edbc | 6492 | #define SIM_SCGC5_PORTC_SHIFT (11U) |
AnnaBridge | 171:3a7713b1edbc | 6493 | #define SIM_SCGC5_PORTC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTC_SHIFT)) & SIM_SCGC5_PORTC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6494 | #define SIM_SCGC5_PORTD_MASK (0x1000U) |
AnnaBridge | 171:3a7713b1edbc | 6495 | #define SIM_SCGC5_PORTD_SHIFT (12U) |
AnnaBridge | 171:3a7713b1edbc | 6496 | #define SIM_SCGC5_PORTD(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTD_SHIFT)) & SIM_SCGC5_PORTD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6497 | #define SIM_SCGC5_PORTE_MASK (0x2000U) |
AnnaBridge | 171:3a7713b1edbc | 6498 | #define SIM_SCGC5_PORTE_SHIFT (13U) |
AnnaBridge | 171:3a7713b1edbc | 6499 | #define SIM_SCGC5_PORTE(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_PORTE_SHIFT)) & SIM_SCGC5_PORTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6500 | #define SIM_SCGC5_SLCD_MASK (0x80000U) |
AnnaBridge | 171:3a7713b1edbc | 6501 | #define SIM_SCGC5_SLCD_SHIFT (19U) |
AnnaBridge | 171:3a7713b1edbc | 6502 | #define SIM_SCGC5_SLCD(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_SLCD_SHIFT)) & SIM_SCGC5_SLCD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6503 | #define SIM_SCGC5_LPUART0_MASK (0x100000U) |
AnnaBridge | 171:3a7713b1edbc | 6504 | #define SIM_SCGC5_LPUART0_SHIFT (20U) |
AnnaBridge | 171:3a7713b1edbc | 6505 | #define SIM_SCGC5_LPUART0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_LPUART0_SHIFT)) & SIM_SCGC5_LPUART0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6506 | #define SIM_SCGC5_LPUART1_MASK (0x200000U) |
AnnaBridge | 171:3a7713b1edbc | 6507 | #define SIM_SCGC5_LPUART1_SHIFT (21U) |
AnnaBridge | 171:3a7713b1edbc | 6508 | #define SIM_SCGC5_LPUART1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_LPUART1_SHIFT)) & SIM_SCGC5_LPUART1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6509 | #define SIM_SCGC5_FLEXIO_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 6510 | #define SIM_SCGC5_FLEXIO_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 6511 | #define SIM_SCGC5_FLEXIO(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC5_FLEXIO_SHIFT)) & SIM_SCGC5_FLEXIO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6512 | |
AnnaBridge | 171:3a7713b1edbc | 6513 | /*! @name SCGC6 - System Clock Gating Control Register 6 */ |
AnnaBridge | 171:3a7713b1edbc | 6514 | #define SIM_SCGC6_FTF_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6515 | #define SIM_SCGC6_FTF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6516 | #define SIM_SCGC6_FTF(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_FTF_SHIFT)) & SIM_SCGC6_FTF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6517 | #define SIM_SCGC6_DMAMUX_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6518 | #define SIM_SCGC6_DMAMUX_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6519 | #define SIM_SCGC6_DMAMUX(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_DMAMUX_SHIFT)) & SIM_SCGC6_DMAMUX_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6520 | #define SIM_SCGC6_I2S_MASK (0x8000U) |
AnnaBridge | 171:3a7713b1edbc | 6521 | #define SIM_SCGC6_I2S_SHIFT (15U) |
AnnaBridge | 171:3a7713b1edbc | 6522 | #define SIM_SCGC6_I2S(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_I2S_SHIFT)) & SIM_SCGC6_I2S_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6523 | #define SIM_SCGC6_PIT_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 6524 | #define SIM_SCGC6_PIT_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 6525 | #define SIM_SCGC6_PIT(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_PIT_SHIFT)) & SIM_SCGC6_PIT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6526 | #define SIM_SCGC6_TPM0_MASK (0x1000000U) |
AnnaBridge | 171:3a7713b1edbc | 6527 | #define SIM_SCGC6_TPM0_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 6528 | #define SIM_SCGC6_TPM0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_TPM0_SHIFT)) & SIM_SCGC6_TPM0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6529 | #define SIM_SCGC6_TPM1_MASK (0x2000000U) |
AnnaBridge | 171:3a7713b1edbc | 6530 | #define SIM_SCGC6_TPM1_SHIFT (25U) |
AnnaBridge | 171:3a7713b1edbc | 6531 | #define SIM_SCGC6_TPM1(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_TPM1_SHIFT)) & SIM_SCGC6_TPM1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6532 | #define SIM_SCGC6_TPM2_MASK (0x4000000U) |
AnnaBridge | 171:3a7713b1edbc | 6533 | #define SIM_SCGC6_TPM2_SHIFT (26U) |
AnnaBridge | 171:3a7713b1edbc | 6534 | #define SIM_SCGC6_TPM2(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_TPM2_SHIFT)) & SIM_SCGC6_TPM2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6535 | #define SIM_SCGC6_ADC0_MASK (0x8000000U) |
AnnaBridge | 171:3a7713b1edbc | 6536 | #define SIM_SCGC6_ADC0_SHIFT (27U) |
AnnaBridge | 171:3a7713b1edbc | 6537 | #define SIM_SCGC6_ADC0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_ADC0_SHIFT)) & SIM_SCGC6_ADC0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6538 | #define SIM_SCGC6_RTC_MASK (0x20000000U) |
AnnaBridge | 171:3a7713b1edbc | 6539 | #define SIM_SCGC6_RTC_SHIFT (29U) |
AnnaBridge | 171:3a7713b1edbc | 6540 | #define SIM_SCGC6_RTC(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_RTC_SHIFT)) & SIM_SCGC6_RTC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6541 | #define SIM_SCGC6_DAC0_MASK (0x80000000U) |
AnnaBridge | 171:3a7713b1edbc | 6542 | #define SIM_SCGC6_DAC0_SHIFT (31U) |
AnnaBridge | 171:3a7713b1edbc | 6543 | #define SIM_SCGC6_DAC0(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC6_DAC0_SHIFT)) & SIM_SCGC6_DAC0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6544 | |
AnnaBridge | 171:3a7713b1edbc | 6545 | /*! @name SCGC7 - System Clock Gating Control Register 7 */ |
AnnaBridge | 171:3a7713b1edbc | 6546 | #define SIM_SCGC7_DMA_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 6547 | #define SIM_SCGC7_DMA_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 6548 | #define SIM_SCGC7_DMA(x) (((uint32_t)(((uint32_t)(x)) << SIM_SCGC7_DMA_SHIFT)) & SIM_SCGC7_DMA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6549 | |
AnnaBridge | 171:3a7713b1edbc | 6550 | /*! @name CLKDIV1 - System Clock Divider Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 6551 | #define SIM_CLKDIV1_OUTDIV4_MASK (0x70000U) |
AnnaBridge | 171:3a7713b1edbc | 6552 | #define SIM_CLKDIV1_OUTDIV4_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 6553 | #define SIM_CLKDIV1_OUTDIV4(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV4_SHIFT)) & SIM_CLKDIV1_OUTDIV4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6554 | #define SIM_CLKDIV1_OUTDIV1_MASK (0xF0000000U) |
AnnaBridge | 171:3a7713b1edbc | 6555 | #define SIM_CLKDIV1_OUTDIV1_SHIFT (28U) |
AnnaBridge | 171:3a7713b1edbc | 6556 | #define SIM_CLKDIV1_OUTDIV1(x) (((uint32_t)(((uint32_t)(x)) << SIM_CLKDIV1_OUTDIV1_SHIFT)) & SIM_CLKDIV1_OUTDIV1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6557 | |
AnnaBridge | 171:3a7713b1edbc | 6558 | /*! @name FCFG1 - Flash Configuration Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 6559 | #define SIM_FCFG1_FLASHDIS_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6560 | #define SIM_FCFG1_FLASHDIS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6561 | #define SIM_FCFG1_FLASHDIS(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_FLASHDIS_SHIFT)) & SIM_FCFG1_FLASHDIS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6562 | #define SIM_FCFG1_FLASHDOZE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6563 | #define SIM_FCFG1_FLASHDOZE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6564 | #define SIM_FCFG1_FLASHDOZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_FLASHDOZE_SHIFT)) & SIM_FCFG1_FLASHDOZE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6565 | #define SIM_FCFG1_PFSIZE_MASK (0xF000000U) |
AnnaBridge | 171:3a7713b1edbc | 6566 | #define SIM_FCFG1_PFSIZE_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 6567 | #define SIM_FCFG1_PFSIZE(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG1_PFSIZE_SHIFT)) & SIM_FCFG1_PFSIZE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6568 | |
AnnaBridge | 171:3a7713b1edbc | 6569 | /*! @name FCFG2 - Flash Configuration Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 6570 | #define SIM_FCFG2_MAXADDR1_MASK (0x7F0000U) |
AnnaBridge | 171:3a7713b1edbc | 6571 | #define SIM_FCFG2_MAXADDR1_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 6572 | #define SIM_FCFG2_MAXADDR1(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_MAXADDR1_SHIFT)) & SIM_FCFG2_MAXADDR1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6573 | #define SIM_FCFG2_MAXADDR0_MASK (0x7F000000U) |
AnnaBridge | 171:3a7713b1edbc | 6574 | #define SIM_FCFG2_MAXADDR0_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 6575 | #define SIM_FCFG2_MAXADDR0(x) (((uint32_t)(((uint32_t)(x)) << SIM_FCFG2_MAXADDR0_SHIFT)) & SIM_FCFG2_MAXADDR0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6576 | |
AnnaBridge | 171:3a7713b1edbc | 6577 | /*! @name UIDMH - Unique Identification Register Mid-High */ |
AnnaBridge | 171:3a7713b1edbc | 6578 | #define SIM_UIDMH_UID_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6579 | #define SIM_UIDMH_UID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6580 | #define SIM_UIDMH_UID(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDMH_UID_SHIFT)) & SIM_UIDMH_UID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6581 | |
AnnaBridge | 171:3a7713b1edbc | 6582 | /*! @name UIDML - Unique Identification Register Mid Low */ |
AnnaBridge | 171:3a7713b1edbc | 6583 | #define SIM_UIDML_UID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6584 | #define SIM_UIDML_UID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6585 | #define SIM_UIDML_UID(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDML_UID_SHIFT)) & SIM_UIDML_UID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6586 | |
AnnaBridge | 171:3a7713b1edbc | 6587 | /*! @name UIDL - Unique Identification Register Low */ |
AnnaBridge | 171:3a7713b1edbc | 6588 | #define SIM_UIDL_UID_MASK (0xFFFFFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6589 | #define SIM_UIDL_UID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6590 | #define SIM_UIDL_UID(x) (((uint32_t)(((uint32_t)(x)) << SIM_UIDL_UID_SHIFT)) & SIM_UIDL_UID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6591 | |
AnnaBridge | 171:3a7713b1edbc | 6592 | /*! @name COPC - COP Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 6593 | #define SIM_COPC_COPW_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6594 | #define SIM_COPC_COPW_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6595 | #define SIM_COPC_COPW(x) (((uint32_t)(((uint32_t)(x)) << SIM_COPC_COPW_SHIFT)) & SIM_COPC_COPW_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6596 | #define SIM_COPC_COPCLKS_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6597 | #define SIM_COPC_COPCLKS_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6598 | #define SIM_COPC_COPCLKS(x) (((uint32_t)(((uint32_t)(x)) << SIM_COPC_COPCLKS_SHIFT)) & SIM_COPC_COPCLKS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6599 | #define SIM_COPC_COPT_MASK (0xCU) |
AnnaBridge | 171:3a7713b1edbc | 6600 | #define SIM_COPC_COPT_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6601 | #define SIM_COPC_COPT(x) (((uint32_t)(((uint32_t)(x)) << SIM_COPC_COPT_SHIFT)) & SIM_COPC_COPT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6602 | #define SIM_COPC_COPSTPEN_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6603 | #define SIM_COPC_COPSTPEN_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6604 | #define SIM_COPC_COPSTPEN(x) (((uint32_t)(((uint32_t)(x)) << SIM_COPC_COPSTPEN_SHIFT)) & SIM_COPC_COPSTPEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6605 | #define SIM_COPC_COPDBGEN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6606 | #define SIM_COPC_COPDBGEN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6607 | #define SIM_COPC_COPDBGEN(x) (((uint32_t)(((uint32_t)(x)) << SIM_COPC_COPDBGEN_SHIFT)) & SIM_COPC_COPDBGEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6608 | #define SIM_COPC_COPCLKSEL_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 6609 | #define SIM_COPC_COPCLKSEL_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6610 | #define SIM_COPC_COPCLKSEL(x) (((uint32_t)(((uint32_t)(x)) << SIM_COPC_COPCLKSEL_SHIFT)) & SIM_COPC_COPCLKSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6611 | |
AnnaBridge | 171:3a7713b1edbc | 6612 | /*! @name SRVCOP - Service COP */ |
AnnaBridge | 171:3a7713b1edbc | 6613 | #define SIM_SRVCOP_SRVCOP_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 6614 | #define SIM_SRVCOP_SRVCOP_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6615 | #define SIM_SRVCOP_SRVCOP(x) (((uint32_t)(((uint32_t)(x)) << SIM_SRVCOP_SRVCOP_SHIFT)) & SIM_SRVCOP_SRVCOP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6616 | |
AnnaBridge | 171:3a7713b1edbc | 6617 | |
AnnaBridge | 171:3a7713b1edbc | 6618 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6619 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6620 | */ /* end of group SIM_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 6621 | |
AnnaBridge | 171:3a7713b1edbc | 6622 | |
AnnaBridge | 171:3a7713b1edbc | 6623 | /* SIM - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6624 | /** Peripheral SIM base address */ |
AnnaBridge | 171:3a7713b1edbc | 6625 | #define SIM_BASE (0x40047000u) |
AnnaBridge | 171:3a7713b1edbc | 6626 | /** Peripheral SIM base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 6627 | #define SIM ((SIM_Type *)SIM_BASE) |
AnnaBridge | 171:3a7713b1edbc | 6628 | /** Array initializer of SIM peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6629 | #define SIM_BASE_ADDRS { SIM_BASE } |
AnnaBridge | 171:3a7713b1edbc | 6630 | /** Array initializer of SIM peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 6631 | #define SIM_BASE_PTRS { SIM } |
AnnaBridge | 171:3a7713b1edbc | 6632 | |
AnnaBridge | 171:3a7713b1edbc | 6633 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6634 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6635 | */ /* end of group SIM_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 6636 | |
AnnaBridge | 171:3a7713b1edbc | 6637 | |
AnnaBridge | 171:3a7713b1edbc | 6638 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6639 | -- SMC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6640 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6641 | |
AnnaBridge | 171:3a7713b1edbc | 6642 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6643 | * @addtogroup SMC_Peripheral_Access_Layer SMC Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6644 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6645 | */ |
AnnaBridge | 171:3a7713b1edbc | 6646 | |
AnnaBridge | 171:3a7713b1edbc | 6647 | /** SMC - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 6648 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 6649 | __IO uint8_t PMPROT; /**< Power Mode Protection register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 6650 | __IO uint8_t PMCTRL; /**< Power Mode Control register, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 6651 | __IO uint8_t STOPCTRL; /**< Stop Control Register, offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 6652 | __I uint8_t PMSTAT; /**< Power Mode Status register, offset: 0x3 */ |
AnnaBridge | 171:3a7713b1edbc | 6653 | } SMC_Type; |
AnnaBridge | 171:3a7713b1edbc | 6654 | |
AnnaBridge | 171:3a7713b1edbc | 6655 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6656 | -- SMC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6657 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6658 | |
AnnaBridge | 171:3a7713b1edbc | 6659 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6660 | * @addtogroup SMC_Register_Masks SMC Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6661 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6662 | */ |
AnnaBridge | 171:3a7713b1edbc | 6663 | |
AnnaBridge | 171:3a7713b1edbc | 6664 | /*! @name PMPROT - Power Mode Protection register */ |
AnnaBridge | 171:3a7713b1edbc | 6665 | #define SMC_PMPROT_AVLLS_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6666 | #define SMC_PMPROT_AVLLS_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6667 | #define SMC_PMPROT_AVLLS(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_AVLLS_SHIFT)) & SMC_PMPROT_AVLLS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6668 | #define SMC_PMPROT_ALLS_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6669 | #define SMC_PMPROT_ALLS_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6670 | #define SMC_PMPROT_ALLS(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_ALLS_SHIFT)) & SMC_PMPROT_ALLS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6671 | #define SMC_PMPROT_AVLP_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6672 | #define SMC_PMPROT_AVLP_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6673 | #define SMC_PMPROT_AVLP(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMPROT_AVLP_SHIFT)) & SMC_PMPROT_AVLP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6674 | |
AnnaBridge | 171:3a7713b1edbc | 6675 | /*! @name PMCTRL - Power Mode Control register */ |
AnnaBridge | 171:3a7713b1edbc | 6676 | #define SMC_PMCTRL_STOPM_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 6677 | #define SMC_PMCTRL_STOPM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6678 | #define SMC_PMCTRL_STOPM(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_STOPM_SHIFT)) & SMC_PMCTRL_STOPM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6679 | #define SMC_PMCTRL_STOPA_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6680 | #define SMC_PMCTRL_STOPA_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6681 | #define SMC_PMCTRL_STOPA(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_STOPA_SHIFT)) & SMC_PMCTRL_STOPA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6682 | #define SMC_PMCTRL_RUNM_MASK (0x60U) |
AnnaBridge | 171:3a7713b1edbc | 6683 | #define SMC_PMCTRL_RUNM_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6684 | #define SMC_PMCTRL_RUNM(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMCTRL_RUNM_SHIFT)) & SMC_PMCTRL_RUNM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6685 | |
AnnaBridge | 171:3a7713b1edbc | 6686 | /*! @name STOPCTRL - Stop Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 6687 | #define SMC_STOPCTRL_VLLSM_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 6688 | #define SMC_STOPCTRL_VLLSM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6689 | #define SMC_STOPCTRL_VLLSM(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_VLLSM_SHIFT)) & SMC_STOPCTRL_VLLSM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6690 | #define SMC_STOPCTRL_PORPO_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6691 | #define SMC_STOPCTRL_PORPO_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6692 | #define SMC_STOPCTRL_PORPO(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_PORPO_SHIFT)) & SMC_STOPCTRL_PORPO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6693 | #define SMC_STOPCTRL_PSTOPO_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 6694 | #define SMC_STOPCTRL_PSTOPO_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6695 | #define SMC_STOPCTRL_PSTOPO(x) (((uint8_t)(((uint8_t)(x)) << SMC_STOPCTRL_PSTOPO_SHIFT)) & SMC_STOPCTRL_PSTOPO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6696 | |
AnnaBridge | 171:3a7713b1edbc | 6697 | /*! @name PMSTAT - Power Mode Status register */ |
AnnaBridge | 171:3a7713b1edbc | 6698 | #define SMC_PMSTAT_PMSTAT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 6699 | #define SMC_PMSTAT_PMSTAT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6700 | #define SMC_PMSTAT_PMSTAT(x) (((uint8_t)(((uint8_t)(x)) << SMC_PMSTAT_PMSTAT_SHIFT)) & SMC_PMSTAT_PMSTAT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6701 | |
AnnaBridge | 171:3a7713b1edbc | 6702 | |
AnnaBridge | 171:3a7713b1edbc | 6703 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6704 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6705 | */ /* end of group SMC_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 6706 | |
AnnaBridge | 171:3a7713b1edbc | 6707 | |
AnnaBridge | 171:3a7713b1edbc | 6708 | /* SMC - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6709 | /** Peripheral SMC base address */ |
AnnaBridge | 171:3a7713b1edbc | 6710 | #define SMC_BASE (0x4007E000u) |
AnnaBridge | 171:3a7713b1edbc | 6711 | /** Peripheral SMC base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 6712 | #define SMC ((SMC_Type *)SMC_BASE) |
AnnaBridge | 171:3a7713b1edbc | 6713 | /** Array initializer of SMC peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6714 | #define SMC_BASE_ADDRS { SMC_BASE } |
AnnaBridge | 171:3a7713b1edbc | 6715 | /** Array initializer of SMC peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 6716 | #define SMC_BASE_PTRS { SMC } |
AnnaBridge | 171:3a7713b1edbc | 6717 | |
AnnaBridge | 171:3a7713b1edbc | 6718 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6719 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6720 | */ /* end of group SMC_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 6721 | |
AnnaBridge | 171:3a7713b1edbc | 6722 | |
AnnaBridge | 171:3a7713b1edbc | 6723 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6724 | -- SPI Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6725 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6726 | |
AnnaBridge | 171:3a7713b1edbc | 6727 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6728 | * @addtogroup SPI_Peripheral_Access_Layer SPI Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6729 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6730 | */ |
AnnaBridge | 171:3a7713b1edbc | 6731 | |
AnnaBridge | 171:3a7713b1edbc | 6732 | /** SPI - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 6733 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 6734 | __IO uint8_t S; /**< SPI Status Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 6735 | __IO uint8_t BR; /**< SPI Baud Rate Register, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 6736 | __IO uint8_t C2; /**< SPI Control Register 2, offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 6737 | __IO uint8_t C1; /**< SPI Control Register 1, offset: 0x3 */ |
AnnaBridge | 171:3a7713b1edbc | 6738 | __IO uint8_t ML; /**< SPI Match Register low, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 6739 | __IO uint8_t MH; /**< SPI match register high, offset: 0x5 */ |
AnnaBridge | 171:3a7713b1edbc | 6740 | __IO uint8_t DL; /**< SPI Data Register low, offset: 0x6 */ |
AnnaBridge | 171:3a7713b1edbc | 6741 | __IO uint8_t DH; /**< SPI data register high, offset: 0x7 */ |
AnnaBridge | 171:3a7713b1edbc | 6742 | uint8_t RESERVED_0[2]; |
AnnaBridge | 171:3a7713b1edbc | 6743 | __IO uint8_t CI; /**< SPI clear interrupt register, offset: 0xA */ |
AnnaBridge | 171:3a7713b1edbc | 6744 | __IO uint8_t C3; /**< SPI control register 3, offset: 0xB */ |
AnnaBridge | 171:3a7713b1edbc | 6745 | } SPI_Type; |
AnnaBridge | 171:3a7713b1edbc | 6746 | |
AnnaBridge | 171:3a7713b1edbc | 6747 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6748 | -- SPI Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6749 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6750 | |
AnnaBridge | 171:3a7713b1edbc | 6751 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6752 | * @addtogroup SPI_Register_Masks SPI Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6753 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6754 | */ |
AnnaBridge | 171:3a7713b1edbc | 6755 | |
AnnaBridge | 171:3a7713b1edbc | 6756 | /*! @name S - SPI Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 6757 | #define SPI_S_RFIFOEF_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6758 | #define SPI_S_RFIFOEF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6759 | #define SPI_S_RFIFOEF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_RFIFOEF_SHIFT)) & SPI_S_RFIFOEF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6760 | #define SPI_S_TXFULLF_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6761 | #define SPI_S_TXFULLF_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6762 | #define SPI_S_TXFULLF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_TXFULLF_SHIFT)) & SPI_S_TXFULLF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6763 | #define SPI_S_TNEAREF_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6764 | #define SPI_S_TNEAREF_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6765 | #define SPI_S_TNEAREF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_TNEAREF_SHIFT)) & SPI_S_TNEAREF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6766 | #define SPI_S_RNFULLF_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6767 | #define SPI_S_RNFULLF_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6768 | #define SPI_S_RNFULLF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_RNFULLF_SHIFT)) & SPI_S_RNFULLF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6769 | #define SPI_S_MODF_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6770 | #define SPI_S_MODF_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6771 | #define SPI_S_MODF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_MODF_SHIFT)) & SPI_S_MODF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6772 | #define SPI_S_SPTEF_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6773 | #define SPI_S_SPTEF_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6774 | #define SPI_S_SPTEF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_SPTEF_SHIFT)) & SPI_S_SPTEF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6775 | #define SPI_S_SPMF_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 6776 | #define SPI_S_SPMF_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6777 | #define SPI_S_SPMF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_SPMF_SHIFT)) & SPI_S_SPMF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6778 | #define SPI_S_SPRF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 6779 | #define SPI_S_SPRF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 6780 | #define SPI_S_SPRF(x) (((uint8_t)(((uint8_t)(x)) << SPI_S_SPRF_SHIFT)) & SPI_S_SPRF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6781 | |
AnnaBridge | 171:3a7713b1edbc | 6782 | /*! @name BR - SPI Baud Rate Register */ |
AnnaBridge | 171:3a7713b1edbc | 6783 | #define SPI_BR_SPR_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 6784 | #define SPI_BR_SPR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6785 | #define SPI_BR_SPR(x) (((uint8_t)(((uint8_t)(x)) << SPI_BR_SPR_SHIFT)) & SPI_BR_SPR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6786 | #define SPI_BR_SPPR_MASK (0x70U) |
AnnaBridge | 171:3a7713b1edbc | 6787 | #define SPI_BR_SPPR_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6788 | #define SPI_BR_SPPR(x) (((uint8_t)(((uint8_t)(x)) << SPI_BR_SPPR_SHIFT)) & SPI_BR_SPPR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6789 | |
AnnaBridge | 171:3a7713b1edbc | 6790 | /*! @name C2 - SPI Control Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 6791 | #define SPI_C2_SPC0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6792 | #define SPI_C2_SPC0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6793 | #define SPI_C2_SPC0(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_SPC0_SHIFT)) & SPI_C2_SPC0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6794 | #define SPI_C2_SPISWAI_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6795 | #define SPI_C2_SPISWAI_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6796 | #define SPI_C2_SPISWAI(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_SPISWAI_SHIFT)) & SPI_C2_SPISWAI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6797 | #define SPI_C2_RXDMAE_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6798 | #define SPI_C2_RXDMAE_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6799 | #define SPI_C2_RXDMAE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_RXDMAE_SHIFT)) & SPI_C2_RXDMAE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6800 | #define SPI_C2_BIDIROE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6801 | #define SPI_C2_BIDIROE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6802 | #define SPI_C2_BIDIROE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_BIDIROE_SHIFT)) & SPI_C2_BIDIROE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6803 | #define SPI_C2_MODFEN_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6804 | #define SPI_C2_MODFEN_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6805 | #define SPI_C2_MODFEN(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_MODFEN_SHIFT)) & SPI_C2_MODFEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6806 | #define SPI_C2_TXDMAE_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6807 | #define SPI_C2_TXDMAE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6808 | #define SPI_C2_TXDMAE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_TXDMAE_SHIFT)) & SPI_C2_TXDMAE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6809 | #define SPI_C2_SPIMODE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 6810 | #define SPI_C2_SPIMODE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6811 | #define SPI_C2_SPIMODE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_SPIMODE_SHIFT)) & SPI_C2_SPIMODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6812 | #define SPI_C2_SPMIE_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 6813 | #define SPI_C2_SPMIE_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 6814 | #define SPI_C2_SPMIE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C2_SPMIE_SHIFT)) & SPI_C2_SPMIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6815 | |
AnnaBridge | 171:3a7713b1edbc | 6816 | /*! @name C1 - SPI Control Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 6817 | #define SPI_C1_LSBFE_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6818 | #define SPI_C1_LSBFE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6819 | #define SPI_C1_LSBFE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_LSBFE_SHIFT)) & SPI_C1_LSBFE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6820 | #define SPI_C1_SSOE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6821 | #define SPI_C1_SSOE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6822 | #define SPI_C1_SSOE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_SSOE_SHIFT)) & SPI_C1_SSOE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6823 | #define SPI_C1_CPHA_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6824 | #define SPI_C1_CPHA_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6825 | #define SPI_C1_CPHA(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_CPHA_SHIFT)) & SPI_C1_CPHA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6826 | #define SPI_C1_CPOL_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6827 | #define SPI_C1_CPOL_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6828 | #define SPI_C1_CPOL(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_CPOL_SHIFT)) & SPI_C1_CPOL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6829 | #define SPI_C1_MSTR_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6830 | #define SPI_C1_MSTR_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6831 | #define SPI_C1_MSTR(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_MSTR_SHIFT)) & SPI_C1_MSTR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6832 | #define SPI_C1_SPTIE_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6833 | #define SPI_C1_SPTIE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6834 | #define SPI_C1_SPTIE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_SPTIE_SHIFT)) & SPI_C1_SPTIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6835 | #define SPI_C1_SPE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 6836 | #define SPI_C1_SPE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6837 | #define SPI_C1_SPE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_SPE_SHIFT)) & SPI_C1_SPE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6838 | #define SPI_C1_SPIE_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 6839 | #define SPI_C1_SPIE_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 6840 | #define SPI_C1_SPIE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C1_SPIE_SHIFT)) & SPI_C1_SPIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6841 | |
AnnaBridge | 171:3a7713b1edbc | 6842 | /*! @name ML - SPI Match Register low */ |
AnnaBridge | 171:3a7713b1edbc | 6843 | #define SPI_ML_Bits_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 6844 | #define SPI_ML_Bits_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6845 | #define SPI_ML_Bits(x) (((uint8_t)(((uint8_t)(x)) << SPI_ML_Bits_SHIFT)) & SPI_ML_Bits_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6846 | |
AnnaBridge | 171:3a7713b1edbc | 6847 | /*! @name MH - SPI match register high */ |
AnnaBridge | 171:3a7713b1edbc | 6848 | #define SPI_MH_Bits_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 6849 | #define SPI_MH_Bits_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6850 | #define SPI_MH_Bits(x) (((uint8_t)(((uint8_t)(x)) << SPI_MH_Bits_SHIFT)) & SPI_MH_Bits_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6851 | |
AnnaBridge | 171:3a7713b1edbc | 6852 | /*! @name DL - SPI Data Register low */ |
AnnaBridge | 171:3a7713b1edbc | 6853 | #define SPI_DL_Bits_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 6854 | #define SPI_DL_Bits_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6855 | #define SPI_DL_Bits(x) (((uint8_t)(((uint8_t)(x)) << SPI_DL_Bits_SHIFT)) & SPI_DL_Bits_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6856 | |
AnnaBridge | 171:3a7713b1edbc | 6857 | /*! @name DH - SPI data register high */ |
AnnaBridge | 171:3a7713b1edbc | 6858 | #define SPI_DH_Bits_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 6859 | #define SPI_DH_Bits_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6860 | #define SPI_DH_Bits(x) (((uint8_t)(((uint8_t)(x)) << SPI_DH_Bits_SHIFT)) & SPI_DH_Bits_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6861 | |
AnnaBridge | 171:3a7713b1edbc | 6862 | /*! @name CI - SPI clear interrupt register */ |
AnnaBridge | 171:3a7713b1edbc | 6863 | #define SPI_CI_SPRFCI_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6864 | #define SPI_CI_SPRFCI_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6865 | #define SPI_CI_SPRFCI(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_SPRFCI_SHIFT)) & SPI_CI_SPRFCI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6866 | #define SPI_CI_SPTEFCI_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6867 | #define SPI_CI_SPTEFCI_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6868 | #define SPI_CI_SPTEFCI(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_SPTEFCI_SHIFT)) & SPI_CI_SPTEFCI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6869 | #define SPI_CI_RNFULLFCI_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6870 | #define SPI_CI_RNFULLFCI_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6871 | #define SPI_CI_RNFULLFCI(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_RNFULLFCI_SHIFT)) & SPI_CI_RNFULLFCI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6872 | #define SPI_CI_TNEAREFCI_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6873 | #define SPI_CI_TNEAREFCI_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6874 | #define SPI_CI_TNEAREFCI(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_TNEAREFCI_SHIFT)) & SPI_CI_TNEAREFCI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6875 | #define SPI_CI_RXFOF_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6876 | #define SPI_CI_RXFOF_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6877 | #define SPI_CI_RXFOF(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_RXFOF_SHIFT)) & SPI_CI_RXFOF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6878 | #define SPI_CI_TXFOF_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6879 | #define SPI_CI_TXFOF_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6880 | #define SPI_CI_TXFOF(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_TXFOF_SHIFT)) & SPI_CI_TXFOF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6881 | #define SPI_CI_RXFERR_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 6882 | #define SPI_CI_RXFERR_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6883 | #define SPI_CI_RXFERR(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_RXFERR_SHIFT)) & SPI_CI_RXFERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6884 | #define SPI_CI_TXFERR_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 6885 | #define SPI_CI_TXFERR_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 6886 | #define SPI_CI_TXFERR(x) (((uint8_t)(((uint8_t)(x)) << SPI_CI_TXFERR_SHIFT)) & SPI_CI_TXFERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6887 | |
AnnaBridge | 171:3a7713b1edbc | 6888 | /*! @name C3 - SPI control register 3 */ |
AnnaBridge | 171:3a7713b1edbc | 6889 | #define SPI_C3_FIFOMODE_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 6890 | #define SPI_C3_FIFOMODE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6891 | #define SPI_C3_FIFOMODE(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_FIFOMODE_SHIFT)) & SPI_C3_FIFOMODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6892 | #define SPI_C3_RNFULLIEN_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 6893 | #define SPI_C3_RNFULLIEN_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 6894 | #define SPI_C3_RNFULLIEN(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_RNFULLIEN_SHIFT)) & SPI_C3_RNFULLIEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6895 | #define SPI_C3_TNEARIEN_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 6896 | #define SPI_C3_TNEARIEN_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 6897 | #define SPI_C3_TNEARIEN(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_TNEARIEN_SHIFT)) & SPI_C3_TNEARIEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6898 | #define SPI_C3_INTCLR_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 6899 | #define SPI_C3_INTCLR_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6900 | #define SPI_C3_INTCLR(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_INTCLR_SHIFT)) & SPI_C3_INTCLR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6901 | #define SPI_C3_RNFULLF_MARK_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 6902 | #define SPI_C3_RNFULLF_MARK_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 6903 | #define SPI_C3_RNFULLF_MARK(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_RNFULLF_MARK_SHIFT)) & SPI_C3_RNFULLF_MARK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6904 | #define SPI_C3_TNEAREF_MARK_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6905 | #define SPI_C3_TNEAREF_MARK_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6906 | #define SPI_C3_TNEAREF_MARK(x) (((uint8_t)(((uint8_t)(x)) << SPI_C3_TNEAREF_MARK_SHIFT)) & SPI_C3_TNEAREF_MARK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6907 | |
AnnaBridge | 171:3a7713b1edbc | 6908 | |
AnnaBridge | 171:3a7713b1edbc | 6909 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6910 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6911 | */ /* end of group SPI_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 6912 | |
AnnaBridge | 171:3a7713b1edbc | 6913 | |
AnnaBridge | 171:3a7713b1edbc | 6914 | /* SPI - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6915 | /** Peripheral SPI0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 6916 | #define SPI0_BASE (0x40076000u) |
AnnaBridge | 171:3a7713b1edbc | 6917 | /** Peripheral SPI0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 6918 | #define SPI0 ((SPI_Type *)SPI0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 6919 | /** Peripheral SPI1 base address */ |
AnnaBridge | 171:3a7713b1edbc | 6920 | #define SPI1_BASE (0x40077000u) |
AnnaBridge | 171:3a7713b1edbc | 6921 | /** Peripheral SPI1 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 6922 | #define SPI1 ((SPI_Type *)SPI1_BASE) |
AnnaBridge | 171:3a7713b1edbc | 6923 | /** Array initializer of SPI peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 6924 | #define SPI_BASE_ADDRS { SPI0_BASE, SPI1_BASE } |
AnnaBridge | 171:3a7713b1edbc | 6925 | /** Array initializer of SPI peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 6926 | #define SPI_BASE_PTRS { SPI0, SPI1 } |
AnnaBridge | 171:3a7713b1edbc | 6927 | /** Interrupt vectors for the SPI peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 6928 | #define SPI_IRQS { SPI0_IRQn, SPI1_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 6929 | |
AnnaBridge | 171:3a7713b1edbc | 6930 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6931 | * @} |
AnnaBridge | 171:3a7713b1edbc | 6932 | */ /* end of group SPI_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 6933 | |
AnnaBridge | 171:3a7713b1edbc | 6934 | |
AnnaBridge | 171:3a7713b1edbc | 6935 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6936 | -- TPM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6937 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6938 | |
AnnaBridge | 171:3a7713b1edbc | 6939 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6940 | * @addtogroup TPM_Peripheral_Access_Layer TPM Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 6941 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6942 | */ |
AnnaBridge | 171:3a7713b1edbc | 6943 | |
AnnaBridge | 171:3a7713b1edbc | 6944 | /** TPM - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 6945 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 6946 | __IO uint32_t SC; /**< Status and Control, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 6947 | __IO uint32_t CNT; /**< Counter, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 6948 | __IO uint32_t MOD; /**< Modulo, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 6949 | struct { /* offset: 0xC, array step: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 6950 | __IO uint32_t CnSC; /**< Channel (n) Status and Control, array offset: 0xC, array step: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 6951 | __IO uint32_t CnV; /**< Channel (n) Value, array offset: 0x10, array step: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 6952 | } CONTROLS[6]; |
AnnaBridge | 171:3a7713b1edbc | 6953 | uint8_t RESERVED_0[20]; |
AnnaBridge | 171:3a7713b1edbc | 6954 | __IO uint32_t STATUS; /**< Capture and Compare Status, offset: 0x50 */ |
AnnaBridge | 171:3a7713b1edbc | 6955 | uint8_t RESERVED_1[28]; |
AnnaBridge | 171:3a7713b1edbc | 6956 | __IO uint32_t POL; /**< Channel Polarity, offset: 0x70 */ |
AnnaBridge | 171:3a7713b1edbc | 6957 | uint8_t RESERVED_2[16]; |
AnnaBridge | 171:3a7713b1edbc | 6958 | __IO uint32_t CONF; /**< Configuration, offset: 0x84 */ |
AnnaBridge | 171:3a7713b1edbc | 6959 | } TPM_Type; |
AnnaBridge | 171:3a7713b1edbc | 6960 | |
AnnaBridge | 171:3a7713b1edbc | 6961 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 6962 | -- TPM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6963 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 6964 | |
AnnaBridge | 171:3a7713b1edbc | 6965 | /*! |
AnnaBridge | 171:3a7713b1edbc | 6966 | * @addtogroup TPM_Register_Masks TPM Register Masks |
AnnaBridge | 171:3a7713b1edbc | 6967 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 6968 | */ |
AnnaBridge | 171:3a7713b1edbc | 6969 | |
AnnaBridge | 171:3a7713b1edbc | 6970 | /*! @name SC - Status and Control */ |
AnnaBridge | 171:3a7713b1edbc | 6971 | #define TPM_SC_PS_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 6972 | #define TPM_SC_PS_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6973 | #define TPM_SC_PS(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_PS_SHIFT)) & TPM_SC_PS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6974 | #define TPM_SC_CMOD_MASK (0x18U) |
AnnaBridge | 171:3a7713b1edbc | 6975 | #define TPM_SC_CMOD_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 6976 | #define TPM_SC_CMOD(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_CMOD_SHIFT)) & TPM_SC_CMOD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6977 | #define TPM_SC_CPWMS_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 6978 | #define TPM_SC_CPWMS_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 6979 | #define TPM_SC_CPWMS(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_CPWMS_SHIFT)) & TPM_SC_CPWMS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6980 | #define TPM_SC_TOIE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 6981 | #define TPM_SC_TOIE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 6982 | #define TPM_SC_TOIE(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_TOIE_SHIFT)) & TPM_SC_TOIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6983 | #define TPM_SC_TOF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 6984 | #define TPM_SC_TOF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 6985 | #define TPM_SC_TOF(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_TOF_SHIFT)) & TPM_SC_TOF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6986 | #define TPM_SC_DMA_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 6987 | #define TPM_SC_DMA_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 6988 | #define TPM_SC_DMA(x) (((uint32_t)(((uint32_t)(x)) << TPM_SC_DMA_SHIFT)) & TPM_SC_DMA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6989 | |
AnnaBridge | 171:3a7713b1edbc | 6990 | /*! @name CNT - Counter */ |
AnnaBridge | 171:3a7713b1edbc | 6991 | #define TPM_CNT_COUNT_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6992 | #define TPM_CNT_COUNT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6993 | #define TPM_CNT_COUNT(x) (((uint32_t)(((uint32_t)(x)) << TPM_CNT_COUNT_SHIFT)) & TPM_CNT_COUNT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6994 | |
AnnaBridge | 171:3a7713b1edbc | 6995 | /*! @name MOD - Modulo */ |
AnnaBridge | 171:3a7713b1edbc | 6996 | #define TPM_MOD_MOD_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 6997 | #define TPM_MOD_MOD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 6998 | #define TPM_MOD_MOD(x) (((uint32_t)(((uint32_t)(x)) << TPM_MOD_MOD_SHIFT)) & TPM_MOD_MOD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 6999 | |
AnnaBridge | 171:3a7713b1edbc | 7000 | /*! @name CnSC - Channel (n) Status and Control */ |
AnnaBridge | 171:3a7713b1edbc | 7001 | #define TPM_CnSC_DMA_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7002 | #define TPM_CnSC_DMA_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7003 | #define TPM_CnSC_DMA(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_DMA_SHIFT)) & TPM_CnSC_DMA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7004 | #define TPM_CnSC_ELSA_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7005 | #define TPM_CnSC_ELSA_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7006 | #define TPM_CnSC_ELSA(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_ELSA_SHIFT)) & TPM_CnSC_ELSA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7007 | #define TPM_CnSC_ELSB_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7008 | #define TPM_CnSC_ELSB_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7009 | #define TPM_CnSC_ELSB(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_ELSB_SHIFT)) & TPM_CnSC_ELSB_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7010 | #define TPM_CnSC_MSA_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7011 | #define TPM_CnSC_MSA_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7012 | #define TPM_CnSC_MSA(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_MSA_SHIFT)) & TPM_CnSC_MSA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7013 | #define TPM_CnSC_MSB_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7014 | #define TPM_CnSC_MSB_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7015 | #define TPM_CnSC_MSB(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_MSB_SHIFT)) & TPM_CnSC_MSB_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7016 | #define TPM_CnSC_CHIE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7017 | #define TPM_CnSC_CHIE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7018 | #define TPM_CnSC_CHIE(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_CHIE_SHIFT)) & TPM_CnSC_CHIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7019 | #define TPM_CnSC_CHF_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7020 | #define TPM_CnSC_CHF_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7021 | #define TPM_CnSC_CHF(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnSC_CHF_SHIFT)) & TPM_CnSC_CHF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7022 | |
AnnaBridge | 171:3a7713b1edbc | 7023 | /* The count of TPM_CnSC */ |
AnnaBridge | 171:3a7713b1edbc | 7024 | #define TPM_CnSC_COUNT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7025 | |
AnnaBridge | 171:3a7713b1edbc | 7026 | /*! @name CnV - Channel (n) Value */ |
AnnaBridge | 171:3a7713b1edbc | 7027 | #define TPM_CnV_VAL_MASK (0xFFFFU) |
AnnaBridge | 171:3a7713b1edbc | 7028 | #define TPM_CnV_VAL_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7029 | #define TPM_CnV_VAL(x) (((uint32_t)(((uint32_t)(x)) << TPM_CnV_VAL_SHIFT)) & TPM_CnV_VAL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7030 | |
AnnaBridge | 171:3a7713b1edbc | 7031 | /* The count of TPM_CnV */ |
AnnaBridge | 171:3a7713b1edbc | 7032 | #define TPM_CnV_COUNT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7033 | |
AnnaBridge | 171:3a7713b1edbc | 7034 | /*! @name STATUS - Capture and Compare Status */ |
AnnaBridge | 171:3a7713b1edbc | 7035 | #define TPM_STATUS_CH0F_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7036 | #define TPM_STATUS_CH0F_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7037 | #define TPM_STATUS_CH0F(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_CH0F_SHIFT)) & TPM_STATUS_CH0F_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7038 | #define TPM_STATUS_CH1F_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7039 | #define TPM_STATUS_CH1F_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7040 | #define TPM_STATUS_CH1F(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_CH1F_SHIFT)) & TPM_STATUS_CH1F_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7041 | #define TPM_STATUS_CH2F_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7042 | #define TPM_STATUS_CH2F_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7043 | #define TPM_STATUS_CH2F(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_CH2F_SHIFT)) & TPM_STATUS_CH2F_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7044 | #define TPM_STATUS_CH3F_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7045 | #define TPM_STATUS_CH3F_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7046 | #define TPM_STATUS_CH3F(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_CH3F_SHIFT)) & TPM_STATUS_CH3F_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7047 | #define TPM_STATUS_CH4F_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7048 | #define TPM_STATUS_CH4F_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7049 | #define TPM_STATUS_CH4F(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_CH4F_SHIFT)) & TPM_STATUS_CH4F_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7050 | #define TPM_STATUS_CH5F_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7051 | #define TPM_STATUS_CH5F_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7052 | #define TPM_STATUS_CH5F(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_CH5F_SHIFT)) & TPM_STATUS_CH5F_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7053 | #define TPM_STATUS_TOF_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 7054 | #define TPM_STATUS_TOF_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 7055 | #define TPM_STATUS_TOF(x) (((uint32_t)(((uint32_t)(x)) << TPM_STATUS_TOF_SHIFT)) & TPM_STATUS_TOF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7056 | |
AnnaBridge | 171:3a7713b1edbc | 7057 | /*! @name POL - Channel Polarity */ |
AnnaBridge | 171:3a7713b1edbc | 7058 | #define TPM_POL_POL0_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7059 | #define TPM_POL_POL0_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7060 | #define TPM_POL_POL0(x) (((uint32_t)(((uint32_t)(x)) << TPM_POL_POL0_SHIFT)) & TPM_POL_POL0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7061 | #define TPM_POL_POL1_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7062 | #define TPM_POL_POL1_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7063 | #define TPM_POL_POL1(x) (((uint32_t)(((uint32_t)(x)) << TPM_POL_POL1_SHIFT)) & TPM_POL_POL1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7064 | #define TPM_POL_POL2_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7065 | #define TPM_POL_POL2_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7066 | #define TPM_POL_POL2(x) (((uint32_t)(((uint32_t)(x)) << TPM_POL_POL2_SHIFT)) & TPM_POL_POL2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7067 | #define TPM_POL_POL3_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7068 | #define TPM_POL_POL3_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7069 | #define TPM_POL_POL3(x) (((uint32_t)(((uint32_t)(x)) << TPM_POL_POL3_SHIFT)) & TPM_POL_POL3_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7070 | #define TPM_POL_POL4_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7071 | #define TPM_POL_POL4_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7072 | #define TPM_POL_POL4(x) (((uint32_t)(((uint32_t)(x)) << TPM_POL_POL4_SHIFT)) & TPM_POL_POL4_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7073 | #define TPM_POL_POL5_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7074 | #define TPM_POL_POL5_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7075 | #define TPM_POL_POL5(x) (((uint32_t)(((uint32_t)(x)) << TPM_POL_POL5_SHIFT)) & TPM_POL_POL5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7076 | |
AnnaBridge | 171:3a7713b1edbc | 7077 | /*! @name CONF - Configuration */ |
AnnaBridge | 171:3a7713b1edbc | 7078 | #define TPM_CONF_DOZEEN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7079 | #define TPM_CONF_DOZEEN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7080 | #define TPM_CONF_DOZEEN(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_DOZEEN_SHIFT)) & TPM_CONF_DOZEEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7081 | #define TPM_CONF_DBGMODE_MASK (0xC0U) |
AnnaBridge | 171:3a7713b1edbc | 7082 | #define TPM_CONF_DBGMODE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7083 | #define TPM_CONF_DBGMODE(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_DBGMODE_SHIFT)) & TPM_CONF_DBGMODE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7084 | #define TPM_CONF_GTBSYNC_MASK (0x100U) |
AnnaBridge | 171:3a7713b1edbc | 7085 | #define TPM_CONF_GTBSYNC_SHIFT (8U) |
AnnaBridge | 171:3a7713b1edbc | 7086 | #define TPM_CONF_GTBSYNC(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_GTBSYNC_SHIFT)) & TPM_CONF_GTBSYNC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7087 | #define TPM_CONF_GTBEEN_MASK (0x200U) |
AnnaBridge | 171:3a7713b1edbc | 7088 | #define TPM_CONF_GTBEEN_SHIFT (9U) |
AnnaBridge | 171:3a7713b1edbc | 7089 | #define TPM_CONF_GTBEEN(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_GTBEEN_SHIFT)) & TPM_CONF_GTBEEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7090 | #define TPM_CONF_CSOT_MASK (0x10000U) |
AnnaBridge | 171:3a7713b1edbc | 7091 | #define TPM_CONF_CSOT_SHIFT (16U) |
AnnaBridge | 171:3a7713b1edbc | 7092 | #define TPM_CONF_CSOT(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_CSOT_SHIFT)) & TPM_CONF_CSOT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7093 | #define TPM_CONF_CSOO_MASK (0x20000U) |
AnnaBridge | 171:3a7713b1edbc | 7094 | #define TPM_CONF_CSOO_SHIFT (17U) |
AnnaBridge | 171:3a7713b1edbc | 7095 | #define TPM_CONF_CSOO(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_CSOO_SHIFT)) & TPM_CONF_CSOO_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7096 | #define TPM_CONF_CROT_MASK (0x40000U) |
AnnaBridge | 171:3a7713b1edbc | 7097 | #define TPM_CONF_CROT_SHIFT (18U) |
AnnaBridge | 171:3a7713b1edbc | 7098 | #define TPM_CONF_CROT(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_CROT_SHIFT)) & TPM_CONF_CROT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7099 | #define TPM_CONF_CPOT_MASK (0x80000U) |
AnnaBridge | 171:3a7713b1edbc | 7100 | #define TPM_CONF_CPOT_SHIFT (19U) |
AnnaBridge | 171:3a7713b1edbc | 7101 | #define TPM_CONF_CPOT(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_CPOT_SHIFT)) & TPM_CONF_CPOT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7102 | #define TPM_CONF_TRGPOL_MASK (0x400000U) |
AnnaBridge | 171:3a7713b1edbc | 7103 | #define TPM_CONF_TRGPOL_SHIFT (22U) |
AnnaBridge | 171:3a7713b1edbc | 7104 | #define TPM_CONF_TRGPOL(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_TRGPOL_SHIFT)) & TPM_CONF_TRGPOL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7105 | #define TPM_CONF_TRGSRC_MASK (0x800000U) |
AnnaBridge | 171:3a7713b1edbc | 7106 | #define TPM_CONF_TRGSRC_SHIFT (23U) |
AnnaBridge | 171:3a7713b1edbc | 7107 | #define TPM_CONF_TRGSRC(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_TRGSRC_SHIFT)) & TPM_CONF_TRGSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7108 | #define TPM_CONF_TRGSEL_MASK (0xF000000U) |
AnnaBridge | 171:3a7713b1edbc | 7109 | #define TPM_CONF_TRGSEL_SHIFT (24U) |
AnnaBridge | 171:3a7713b1edbc | 7110 | #define TPM_CONF_TRGSEL(x) (((uint32_t)(((uint32_t)(x)) << TPM_CONF_TRGSEL_SHIFT)) & TPM_CONF_TRGSEL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7111 | |
AnnaBridge | 171:3a7713b1edbc | 7112 | |
AnnaBridge | 171:3a7713b1edbc | 7113 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7114 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7115 | */ /* end of group TPM_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 7116 | |
AnnaBridge | 171:3a7713b1edbc | 7117 | |
AnnaBridge | 171:3a7713b1edbc | 7118 | /* TPM - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 7119 | /** Peripheral TPM0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 7120 | #define TPM0_BASE (0x40038000u) |
AnnaBridge | 171:3a7713b1edbc | 7121 | /** Peripheral TPM0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 7122 | #define TPM0 ((TPM_Type *)TPM0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 7123 | /** Peripheral TPM1 base address */ |
AnnaBridge | 171:3a7713b1edbc | 7124 | #define TPM1_BASE (0x40039000u) |
AnnaBridge | 171:3a7713b1edbc | 7125 | /** Peripheral TPM1 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 7126 | #define TPM1 ((TPM_Type *)TPM1_BASE) |
AnnaBridge | 171:3a7713b1edbc | 7127 | /** Peripheral TPM2 base address */ |
AnnaBridge | 171:3a7713b1edbc | 7128 | #define TPM2_BASE (0x4003A000u) |
AnnaBridge | 171:3a7713b1edbc | 7129 | /** Peripheral TPM2 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 7130 | #define TPM2 ((TPM_Type *)TPM2_BASE) |
AnnaBridge | 171:3a7713b1edbc | 7131 | /** Array initializer of TPM peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 7132 | #define TPM_BASE_ADDRS { TPM0_BASE, TPM1_BASE, TPM2_BASE } |
AnnaBridge | 171:3a7713b1edbc | 7133 | /** Array initializer of TPM peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 7134 | #define TPM_BASE_PTRS { TPM0, TPM1, TPM2 } |
AnnaBridge | 171:3a7713b1edbc | 7135 | /** Interrupt vectors for the TPM peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 7136 | #define TPM_IRQS { TPM0_IRQn, TPM1_IRQn, TPM2_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 7137 | |
AnnaBridge | 171:3a7713b1edbc | 7138 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7139 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7140 | */ /* end of group TPM_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 7141 | |
AnnaBridge | 171:3a7713b1edbc | 7142 | |
AnnaBridge | 171:3a7713b1edbc | 7143 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 7144 | -- UART Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 7145 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 7146 | |
AnnaBridge | 171:3a7713b1edbc | 7147 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7148 | * @addtogroup UART_Peripheral_Access_Layer UART Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 7149 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 7150 | */ |
AnnaBridge | 171:3a7713b1edbc | 7151 | |
AnnaBridge | 171:3a7713b1edbc | 7152 | /** UART - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 7153 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 7154 | __IO uint8_t BDH; /**< UART Baud Rate Registers: High, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 7155 | __IO uint8_t BDL; /**< UART Baud Rate Registers: Low, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 7156 | __IO uint8_t C1; /**< UART Control Register 1, offset: 0x2 */ |
AnnaBridge | 171:3a7713b1edbc | 7157 | __IO uint8_t C2; /**< UART Control Register 2, offset: 0x3 */ |
AnnaBridge | 171:3a7713b1edbc | 7158 | __I uint8_t S1; /**< UART Status Register 1, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 7159 | __IO uint8_t S2; /**< UART Status Register 2, offset: 0x5 */ |
AnnaBridge | 171:3a7713b1edbc | 7160 | __IO uint8_t C3; /**< UART Control Register 3, offset: 0x6 */ |
AnnaBridge | 171:3a7713b1edbc | 7161 | __IO uint8_t D; /**< UART Data Register, offset: 0x7 */ |
AnnaBridge | 171:3a7713b1edbc | 7162 | __IO uint8_t MA1; /**< UART Match Address Registers 1, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 7163 | __IO uint8_t MA2; /**< UART Match Address Registers 2, offset: 0x9 */ |
AnnaBridge | 171:3a7713b1edbc | 7164 | __IO uint8_t C4; /**< UART Control Register 4, offset: 0xA */ |
AnnaBridge | 171:3a7713b1edbc | 7165 | __IO uint8_t C5; /**< UART Control Register 5, offset: 0xB */ |
AnnaBridge | 171:3a7713b1edbc | 7166 | uint8_t RESERVED_0[12]; |
AnnaBridge | 171:3a7713b1edbc | 7167 | __IO uint8_t C7816; /**< UART 7816 Control Register, offset: 0x18 */ |
AnnaBridge | 171:3a7713b1edbc | 7168 | __IO uint8_t IE7816; /**< UART 7816 Interrupt Enable Register, offset: 0x19 */ |
AnnaBridge | 171:3a7713b1edbc | 7169 | __IO uint8_t IS7816; /**< UART 7816 Interrupt Status Register, offset: 0x1A */ |
AnnaBridge | 171:3a7713b1edbc | 7170 | __IO uint8_t WP7816; /**< UART 7816 Wait Parameter Register, offset: 0x1B */ |
AnnaBridge | 171:3a7713b1edbc | 7171 | __IO uint8_t WN7816; /**< UART 7816 Wait N Register, offset: 0x1C */ |
AnnaBridge | 171:3a7713b1edbc | 7172 | __IO uint8_t WF7816; /**< UART 7816 Wait FD Register, offset: 0x1D */ |
AnnaBridge | 171:3a7713b1edbc | 7173 | __IO uint8_t ET7816; /**< UART 7816 Error Threshold Register, offset: 0x1E */ |
AnnaBridge | 171:3a7713b1edbc | 7174 | __IO uint8_t TL7816; /**< UART 7816 Transmit Length Register, offset: 0x1F */ |
AnnaBridge | 171:3a7713b1edbc | 7175 | uint8_t RESERVED_1[26]; |
AnnaBridge | 171:3a7713b1edbc | 7176 | __IO uint8_t AP7816A_T0; /**< UART 7816 ATR Duration Timer Register A, offset: 0x3A */ |
AnnaBridge | 171:3a7713b1edbc | 7177 | __IO uint8_t AP7816B_T0; /**< UART 7816 ATR Duration Timer Register B, offset: 0x3B */ |
AnnaBridge | 171:3a7713b1edbc | 7178 | union { /* offset: 0x3C */ |
AnnaBridge | 171:3a7713b1edbc | 7179 | struct { /* offset: 0x3C */ |
AnnaBridge | 171:3a7713b1edbc | 7180 | __IO uint8_t WP7816A_T0; /**< UART 7816 Wait Parameter Register A, offset: 0x3C */ |
AnnaBridge | 171:3a7713b1edbc | 7181 | __IO uint8_t WP7816B_T0; /**< UART 7816 Wait Parameter Register B, offset: 0x3D */ |
AnnaBridge | 171:3a7713b1edbc | 7182 | } TYPE0; |
AnnaBridge | 171:3a7713b1edbc | 7183 | struct { /* offset: 0x3C */ |
AnnaBridge | 171:3a7713b1edbc | 7184 | __IO uint8_t WP7816A_T1; /**< UART 7816 Wait Parameter Register A, offset: 0x3C */ |
AnnaBridge | 171:3a7713b1edbc | 7185 | __IO uint8_t WP7816B_T1; /**< UART 7816 Wait Parameter Register B, offset: 0x3D */ |
AnnaBridge | 171:3a7713b1edbc | 7186 | } TYPE1; |
AnnaBridge | 171:3a7713b1edbc | 7187 | }; |
AnnaBridge | 171:3a7713b1edbc | 7188 | __IO uint8_t WGP7816_T1; /**< UART 7816 Wait and Guard Parameter Register, offset: 0x3E */ |
AnnaBridge | 171:3a7713b1edbc | 7189 | __IO uint8_t WP7816C_T1; /**< UART 7816 Wait Parameter Register C, offset: 0x3F */ |
AnnaBridge | 171:3a7713b1edbc | 7190 | } UART_Type; |
AnnaBridge | 171:3a7713b1edbc | 7191 | |
AnnaBridge | 171:3a7713b1edbc | 7192 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 7193 | -- UART Register Masks |
AnnaBridge | 171:3a7713b1edbc | 7194 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 7195 | |
AnnaBridge | 171:3a7713b1edbc | 7196 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7197 | * @addtogroup UART_Register_Masks UART Register Masks |
AnnaBridge | 171:3a7713b1edbc | 7198 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 7199 | */ |
AnnaBridge | 171:3a7713b1edbc | 7200 | |
AnnaBridge | 171:3a7713b1edbc | 7201 | /*! @name BDH - UART Baud Rate Registers: High */ |
AnnaBridge | 171:3a7713b1edbc | 7202 | #define UART_BDH_SBR_MASK (0x1FU) |
AnnaBridge | 171:3a7713b1edbc | 7203 | #define UART_BDH_SBR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7204 | #define UART_BDH_SBR(x) (((uint8_t)(((uint8_t)(x)) << UART_BDH_SBR_SHIFT)) & UART_BDH_SBR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7205 | #define UART_BDH_RXEDGIE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7206 | #define UART_BDH_RXEDGIE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7207 | #define UART_BDH_RXEDGIE(x) (((uint8_t)(((uint8_t)(x)) << UART_BDH_RXEDGIE_SHIFT)) & UART_BDH_RXEDGIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7208 | |
AnnaBridge | 171:3a7713b1edbc | 7209 | /*! @name BDL - UART Baud Rate Registers: Low */ |
AnnaBridge | 171:3a7713b1edbc | 7210 | #define UART_BDL_SBR_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7211 | #define UART_BDL_SBR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7212 | #define UART_BDL_SBR(x) (((uint8_t)(((uint8_t)(x)) << UART_BDL_SBR_SHIFT)) & UART_BDL_SBR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7213 | |
AnnaBridge | 171:3a7713b1edbc | 7214 | /*! @name C1 - UART Control Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 7215 | #define UART_C1_PT_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7216 | #define UART_C1_PT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7217 | #define UART_C1_PT(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_PT_SHIFT)) & UART_C1_PT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7218 | #define UART_C1_PE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7219 | #define UART_C1_PE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7220 | #define UART_C1_PE(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_PE_SHIFT)) & UART_C1_PE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7221 | #define UART_C1_ILT_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7222 | #define UART_C1_ILT_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7223 | #define UART_C1_ILT(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_ILT_SHIFT)) & UART_C1_ILT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7224 | #define UART_C1_WAKE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7225 | #define UART_C1_WAKE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7226 | #define UART_C1_WAKE(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_WAKE_SHIFT)) & UART_C1_WAKE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7227 | #define UART_C1_M_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7228 | #define UART_C1_M_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7229 | #define UART_C1_M(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_M_SHIFT)) & UART_C1_M_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7230 | #define UART_C1_RSRC_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7231 | #define UART_C1_RSRC_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7232 | #define UART_C1_RSRC(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_RSRC_SHIFT)) & UART_C1_RSRC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7233 | #define UART_C1_LOOPS_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7234 | #define UART_C1_LOOPS_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7235 | #define UART_C1_LOOPS(x) (((uint8_t)(((uint8_t)(x)) << UART_C1_LOOPS_SHIFT)) & UART_C1_LOOPS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7236 | |
AnnaBridge | 171:3a7713b1edbc | 7237 | /*! @name C2 - UART Control Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 7238 | #define UART_C2_SBK_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7239 | #define UART_C2_SBK_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7240 | #define UART_C2_SBK(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_SBK_SHIFT)) & UART_C2_SBK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7241 | #define UART_C2_RWU_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7242 | #define UART_C2_RWU_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7243 | #define UART_C2_RWU(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_RWU_SHIFT)) & UART_C2_RWU_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7244 | #define UART_C2_RE_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7245 | #define UART_C2_RE_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7246 | #define UART_C2_RE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_RE_SHIFT)) & UART_C2_RE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7247 | #define UART_C2_TE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7248 | #define UART_C2_TE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7249 | #define UART_C2_TE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_TE_SHIFT)) & UART_C2_TE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7250 | #define UART_C2_ILIE_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7251 | #define UART_C2_ILIE_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7252 | #define UART_C2_ILIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_ILIE_SHIFT)) & UART_C2_ILIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7253 | #define UART_C2_RIE_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7254 | #define UART_C2_RIE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7255 | #define UART_C2_RIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_RIE_SHIFT)) & UART_C2_RIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7256 | #define UART_C2_TCIE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7257 | #define UART_C2_TCIE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7258 | #define UART_C2_TCIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_TCIE_SHIFT)) & UART_C2_TCIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7259 | #define UART_C2_TIE_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7260 | #define UART_C2_TIE_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7261 | #define UART_C2_TIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C2_TIE_SHIFT)) & UART_C2_TIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7262 | |
AnnaBridge | 171:3a7713b1edbc | 7263 | /*! @name S1 - UART Status Register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 7264 | #define UART_S1_PF_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7265 | #define UART_S1_PF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7266 | #define UART_S1_PF(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_PF_SHIFT)) & UART_S1_PF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7267 | #define UART_S1_FE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7268 | #define UART_S1_FE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7269 | #define UART_S1_FE(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_FE_SHIFT)) & UART_S1_FE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7270 | #define UART_S1_NF_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7271 | #define UART_S1_NF_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7272 | #define UART_S1_NF(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_NF_SHIFT)) & UART_S1_NF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7273 | #define UART_S1_OR_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7274 | #define UART_S1_OR_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7275 | #define UART_S1_OR(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_OR_SHIFT)) & UART_S1_OR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7276 | #define UART_S1_IDLE_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7277 | #define UART_S1_IDLE_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7278 | #define UART_S1_IDLE(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_IDLE_SHIFT)) & UART_S1_IDLE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7279 | #define UART_S1_RDRF_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7280 | #define UART_S1_RDRF_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7281 | #define UART_S1_RDRF(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_RDRF_SHIFT)) & UART_S1_RDRF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7282 | #define UART_S1_TC_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7283 | #define UART_S1_TC_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7284 | #define UART_S1_TC(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_TC_SHIFT)) & UART_S1_TC_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7285 | #define UART_S1_TDRE_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7286 | #define UART_S1_TDRE_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7287 | #define UART_S1_TDRE(x) (((uint8_t)(((uint8_t)(x)) << UART_S1_TDRE_SHIFT)) & UART_S1_TDRE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7288 | |
AnnaBridge | 171:3a7713b1edbc | 7289 | /*! @name S2 - UART Status Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 7290 | #define UART_S2_RAF_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7291 | #define UART_S2_RAF_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7292 | #define UART_S2_RAF(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_RAF_SHIFT)) & UART_S2_RAF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7293 | #define UART_S2_BRK13_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7294 | #define UART_S2_BRK13_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7295 | #define UART_S2_BRK13(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_BRK13_SHIFT)) & UART_S2_BRK13_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7296 | #define UART_S2_RWUID_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7297 | #define UART_S2_RWUID_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7298 | #define UART_S2_RWUID(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_RWUID_SHIFT)) & UART_S2_RWUID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7299 | #define UART_S2_RXINV_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7300 | #define UART_S2_RXINV_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7301 | #define UART_S2_RXINV(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_RXINV_SHIFT)) & UART_S2_RXINV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7302 | #define UART_S2_MSBF_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7303 | #define UART_S2_MSBF_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7304 | #define UART_S2_MSBF(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_MSBF_SHIFT)) & UART_S2_MSBF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7305 | #define UART_S2_RXEDGIF_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7306 | #define UART_S2_RXEDGIF_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7307 | #define UART_S2_RXEDGIF(x) (((uint8_t)(((uint8_t)(x)) << UART_S2_RXEDGIF_SHIFT)) & UART_S2_RXEDGIF_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7308 | |
AnnaBridge | 171:3a7713b1edbc | 7309 | /*! @name C3 - UART Control Register 3 */ |
AnnaBridge | 171:3a7713b1edbc | 7310 | #define UART_C3_PEIE_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7311 | #define UART_C3_PEIE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7312 | #define UART_C3_PEIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_PEIE_SHIFT)) & UART_C3_PEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7313 | #define UART_C3_FEIE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7314 | #define UART_C3_FEIE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7315 | #define UART_C3_FEIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_FEIE_SHIFT)) & UART_C3_FEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7316 | #define UART_C3_NEIE_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7317 | #define UART_C3_NEIE_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7318 | #define UART_C3_NEIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_NEIE_SHIFT)) & UART_C3_NEIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7319 | #define UART_C3_ORIE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7320 | #define UART_C3_ORIE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7321 | #define UART_C3_ORIE(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_ORIE_SHIFT)) & UART_C3_ORIE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7322 | #define UART_C3_TXINV_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7323 | #define UART_C3_TXINV_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7324 | #define UART_C3_TXINV(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_TXINV_SHIFT)) & UART_C3_TXINV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7325 | #define UART_C3_TXDIR_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7326 | #define UART_C3_TXDIR_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7327 | #define UART_C3_TXDIR(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_TXDIR_SHIFT)) & UART_C3_TXDIR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7328 | #define UART_C3_T8_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7329 | #define UART_C3_T8_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7330 | #define UART_C3_T8(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_T8_SHIFT)) & UART_C3_T8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7331 | #define UART_C3_R8_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7332 | #define UART_C3_R8_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7333 | #define UART_C3_R8(x) (((uint8_t)(((uint8_t)(x)) << UART_C3_R8_SHIFT)) & UART_C3_R8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7334 | |
AnnaBridge | 171:3a7713b1edbc | 7335 | /*! @name D - UART Data Register */ |
AnnaBridge | 171:3a7713b1edbc | 7336 | #define UART_D_RT_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7337 | #define UART_D_RT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7338 | #define UART_D_RT(x) (((uint8_t)(((uint8_t)(x)) << UART_D_RT_SHIFT)) & UART_D_RT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7339 | |
AnnaBridge | 171:3a7713b1edbc | 7340 | /*! @name MA1 - UART Match Address Registers 1 */ |
AnnaBridge | 171:3a7713b1edbc | 7341 | #define UART_MA1_MA_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7342 | #define UART_MA1_MA_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7343 | #define UART_MA1_MA(x) (((uint8_t)(((uint8_t)(x)) << UART_MA1_MA_SHIFT)) & UART_MA1_MA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7344 | |
AnnaBridge | 171:3a7713b1edbc | 7345 | /*! @name MA2 - UART Match Address Registers 2 */ |
AnnaBridge | 171:3a7713b1edbc | 7346 | #define UART_MA2_MA_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7347 | #define UART_MA2_MA_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7348 | #define UART_MA2_MA(x) (((uint8_t)(((uint8_t)(x)) << UART_MA2_MA_SHIFT)) & UART_MA2_MA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7349 | |
AnnaBridge | 171:3a7713b1edbc | 7350 | /*! @name C4 - UART Control Register 4 */ |
AnnaBridge | 171:3a7713b1edbc | 7351 | #define UART_C4_BRFA_MASK (0x1FU) |
AnnaBridge | 171:3a7713b1edbc | 7352 | #define UART_C4_BRFA_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7353 | #define UART_C4_BRFA(x) (((uint8_t)(((uint8_t)(x)) << UART_C4_BRFA_SHIFT)) & UART_C4_BRFA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7354 | #define UART_C4_M10_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7355 | #define UART_C4_M10_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7356 | #define UART_C4_M10(x) (((uint8_t)(((uint8_t)(x)) << UART_C4_M10_SHIFT)) & UART_C4_M10_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7357 | #define UART_C4_MAEN2_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7358 | #define UART_C4_MAEN2_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7359 | #define UART_C4_MAEN2(x) (((uint8_t)(((uint8_t)(x)) << UART_C4_MAEN2_SHIFT)) & UART_C4_MAEN2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7360 | #define UART_C4_MAEN1_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7361 | #define UART_C4_MAEN1_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7362 | #define UART_C4_MAEN1(x) (((uint8_t)(((uint8_t)(x)) << UART_C4_MAEN1_SHIFT)) & UART_C4_MAEN1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7363 | |
AnnaBridge | 171:3a7713b1edbc | 7364 | /*! @name C5 - UART Control Register 5 */ |
AnnaBridge | 171:3a7713b1edbc | 7365 | #define UART_C5_RDMAS_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7366 | #define UART_C5_RDMAS_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7367 | #define UART_C5_RDMAS(x) (((uint8_t)(((uint8_t)(x)) << UART_C5_RDMAS_SHIFT)) & UART_C5_RDMAS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7368 | #define UART_C5_TDMAS_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7369 | #define UART_C5_TDMAS_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7370 | #define UART_C5_TDMAS(x) (((uint8_t)(((uint8_t)(x)) << UART_C5_TDMAS_SHIFT)) & UART_C5_TDMAS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7371 | |
AnnaBridge | 171:3a7713b1edbc | 7372 | /*! @name C7816 - UART 7816 Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 7373 | #define UART_C7816_ISO_7816E_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7374 | #define UART_C7816_ISO_7816E_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7375 | #define UART_C7816_ISO_7816E(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_ISO_7816E_SHIFT)) & UART_C7816_ISO_7816E_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7376 | #define UART_C7816_TTYPE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7377 | #define UART_C7816_TTYPE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7378 | #define UART_C7816_TTYPE(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_TTYPE_SHIFT)) & UART_C7816_TTYPE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7379 | #define UART_C7816_INIT_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7380 | #define UART_C7816_INIT_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7381 | #define UART_C7816_INIT(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_INIT_SHIFT)) & UART_C7816_INIT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7382 | #define UART_C7816_ANACK_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7383 | #define UART_C7816_ANACK_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7384 | #define UART_C7816_ANACK(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_ANACK_SHIFT)) & UART_C7816_ANACK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7385 | #define UART_C7816_ONACK_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7386 | #define UART_C7816_ONACK_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7387 | #define UART_C7816_ONACK(x) (((uint8_t)(((uint8_t)(x)) << UART_C7816_ONACK_SHIFT)) & UART_C7816_ONACK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7388 | |
AnnaBridge | 171:3a7713b1edbc | 7389 | /*! @name IE7816 - UART 7816 Interrupt Enable Register */ |
AnnaBridge | 171:3a7713b1edbc | 7390 | #define UART_IE7816_RXTE_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7391 | #define UART_IE7816_RXTE_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7392 | #define UART_IE7816_RXTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_RXTE_SHIFT)) & UART_IE7816_RXTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7393 | #define UART_IE7816_TXTE_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7394 | #define UART_IE7816_TXTE_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7395 | #define UART_IE7816_TXTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_TXTE_SHIFT)) & UART_IE7816_TXTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7396 | #define UART_IE7816_GTVE_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7397 | #define UART_IE7816_GTVE_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7398 | #define UART_IE7816_GTVE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_GTVE_SHIFT)) & UART_IE7816_GTVE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7399 | #define UART_IE7816_ADTE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7400 | #define UART_IE7816_ADTE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7401 | #define UART_IE7816_ADTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_ADTE_SHIFT)) & UART_IE7816_ADTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7402 | #define UART_IE7816_INITDE_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7403 | #define UART_IE7816_INITDE_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7404 | #define UART_IE7816_INITDE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_INITDE_SHIFT)) & UART_IE7816_INITDE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7405 | #define UART_IE7816_BWTE_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7406 | #define UART_IE7816_BWTE_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7407 | #define UART_IE7816_BWTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_BWTE_SHIFT)) & UART_IE7816_BWTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7408 | #define UART_IE7816_CWTE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7409 | #define UART_IE7816_CWTE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7410 | #define UART_IE7816_CWTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_CWTE_SHIFT)) & UART_IE7816_CWTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7411 | #define UART_IE7816_WTE_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7412 | #define UART_IE7816_WTE_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7413 | #define UART_IE7816_WTE(x) (((uint8_t)(((uint8_t)(x)) << UART_IE7816_WTE_SHIFT)) & UART_IE7816_WTE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7414 | |
AnnaBridge | 171:3a7713b1edbc | 7415 | /*! @name IS7816 - UART 7816 Interrupt Status Register */ |
AnnaBridge | 171:3a7713b1edbc | 7416 | #define UART_IS7816_RXT_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7417 | #define UART_IS7816_RXT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7418 | #define UART_IS7816_RXT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_RXT_SHIFT)) & UART_IS7816_RXT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7419 | #define UART_IS7816_TXT_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7420 | #define UART_IS7816_TXT_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7421 | #define UART_IS7816_TXT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_TXT_SHIFT)) & UART_IS7816_TXT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7422 | #define UART_IS7816_GTV_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7423 | #define UART_IS7816_GTV_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7424 | #define UART_IS7816_GTV(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_GTV_SHIFT)) & UART_IS7816_GTV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7425 | #define UART_IS7816_ADT_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7426 | #define UART_IS7816_ADT_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7427 | #define UART_IS7816_ADT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_ADT_SHIFT)) & UART_IS7816_ADT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7428 | #define UART_IS7816_INITD_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7429 | #define UART_IS7816_INITD_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7430 | #define UART_IS7816_INITD(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_INITD_SHIFT)) & UART_IS7816_INITD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7431 | #define UART_IS7816_BWT_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7432 | #define UART_IS7816_BWT_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7433 | #define UART_IS7816_BWT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_BWT_SHIFT)) & UART_IS7816_BWT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7434 | #define UART_IS7816_CWT_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7435 | #define UART_IS7816_CWT_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7436 | #define UART_IS7816_CWT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_CWT_SHIFT)) & UART_IS7816_CWT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7437 | #define UART_IS7816_WT_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7438 | #define UART_IS7816_WT_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7439 | #define UART_IS7816_WT(x) (((uint8_t)(((uint8_t)(x)) << UART_IS7816_WT_SHIFT)) & UART_IS7816_WT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7440 | |
AnnaBridge | 171:3a7713b1edbc | 7441 | /*! @name WP7816 - UART 7816 Wait Parameter Register */ |
AnnaBridge | 171:3a7713b1edbc | 7442 | #define UART_WP7816_WTX_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7443 | #define UART_WP7816_WTX_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7444 | #define UART_WP7816_WTX(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816_WTX_SHIFT)) & UART_WP7816_WTX_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7445 | |
AnnaBridge | 171:3a7713b1edbc | 7446 | /*! @name WN7816 - UART 7816 Wait N Register */ |
AnnaBridge | 171:3a7713b1edbc | 7447 | #define UART_WN7816_GTN_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7448 | #define UART_WN7816_GTN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7449 | #define UART_WN7816_GTN(x) (((uint8_t)(((uint8_t)(x)) << UART_WN7816_GTN_SHIFT)) & UART_WN7816_GTN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7450 | |
AnnaBridge | 171:3a7713b1edbc | 7451 | /*! @name WF7816 - UART 7816 Wait FD Register */ |
AnnaBridge | 171:3a7713b1edbc | 7452 | #define UART_WF7816_GTFD_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7453 | #define UART_WF7816_GTFD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7454 | #define UART_WF7816_GTFD(x) (((uint8_t)(((uint8_t)(x)) << UART_WF7816_GTFD_SHIFT)) & UART_WF7816_GTFD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7455 | |
AnnaBridge | 171:3a7713b1edbc | 7456 | /*! @name ET7816 - UART 7816 Error Threshold Register */ |
AnnaBridge | 171:3a7713b1edbc | 7457 | #define UART_ET7816_RXTHRESHOLD_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 7458 | #define UART_ET7816_RXTHRESHOLD_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7459 | #define UART_ET7816_RXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x)) << UART_ET7816_RXTHRESHOLD_SHIFT)) & UART_ET7816_RXTHRESHOLD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7460 | #define UART_ET7816_TXTHRESHOLD_MASK (0xF0U) |
AnnaBridge | 171:3a7713b1edbc | 7461 | #define UART_ET7816_TXTHRESHOLD_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7462 | #define UART_ET7816_TXTHRESHOLD(x) (((uint8_t)(((uint8_t)(x)) << UART_ET7816_TXTHRESHOLD_SHIFT)) & UART_ET7816_TXTHRESHOLD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7463 | |
AnnaBridge | 171:3a7713b1edbc | 7464 | /*! @name TL7816 - UART 7816 Transmit Length Register */ |
AnnaBridge | 171:3a7713b1edbc | 7465 | #define UART_TL7816_TLEN_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7466 | #define UART_TL7816_TLEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7467 | #define UART_TL7816_TLEN(x) (((uint8_t)(((uint8_t)(x)) << UART_TL7816_TLEN_SHIFT)) & UART_TL7816_TLEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7468 | |
AnnaBridge | 171:3a7713b1edbc | 7469 | /*! @name AP7816A_T0 - UART 7816 ATR Duration Timer Register A */ |
AnnaBridge | 171:3a7713b1edbc | 7470 | #define UART_AP7816A_T0_ADTI_H_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7471 | #define UART_AP7816A_T0_ADTI_H_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7472 | #define UART_AP7816A_T0_ADTI_H(x) (((uint8_t)(((uint8_t)(x)) << UART_AP7816A_T0_ADTI_H_SHIFT)) & UART_AP7816A_T0_ADTI_H_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7473 | |
AnnaBridge | 171:3a7713b1edbc | 7474 | /*! @name AP7816B_T0 - UART 7816 ATR Duration Timer Register B */ |
AnnaBridge | 171:3a7713b1edbc | 7475 | #define UART_AP7816B_T0_ADTI_L_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7476 | #define UART_AP7816B_T0_ADTI_L_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7477 | #define UART_AP7816B_T0_ADTI_L(x) (((uint8_t)(((uint8_t)(x)) << UART_AP7816B_T0_ADTI_L_SHIFT)) & UART_AP7816B_T0_ADTI_L_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7478 | |
AnnaBridge | 171:3a7713b1edbc | 7479 | /*! @name WP7816A_T0 - UART 7816 Wait Parameter Register A */ |
AnnaBridge | 171:3a7713b1edbc | 7480 | #define UART_WP7816A_T0_WI_H_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7481 | #define UART_WP7816A_T0_WI_H_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7482 | #define UART_WP7816A_T0_WI_H(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816A_T0_WI_H_SHIFT)) & UART_WP7816A_T0_WI_H_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7483 | |
AnnaBridge | 171:3a7713b1edbc | 7484 | /*! @name WP7816B_T0 - UART 7816 Wait Parameter Register B */ |
AnnaBridge | 171:3a7713b1edbc | 7485 | #define UART_WP7816B_T0_WI_L_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7486 | #define UART_WP7816B_T0_WI_L_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7487 | #define UART_WP7816B_T0_WI_L(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816B_T0_WI_L_SHIFT)) & UART_WP7816B_T0_WI_L_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7488 | |
AnnaBridge | 171:3a7713b1edbc | 7489 | /*! @name WP7816A_T1 - UART 7816 Wait Parameter Register A */ |
AnnaBridge | 171:3a7713b1edbc | 7490 | #define UART_WP7816A_T1_BWI_H_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7491 | #define UART_WP7816A_T1_BWI_H_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7492 | #define UART_WP7816A_T1_BWI_H(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816A_T1_BWI_H_SHIFT)) & UART_WP7816A_T1_BWI_H_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7493 | |
AnnaBridge | 171:3a7713b1edbc | 7494 | /*! @name WP7816B_T1 - UART 7816 Wait Parameter Register B */ |
AnnaBridge | 171:3a7713b1edbc | 7495 | #define UART_WP7816B_T1_BWI_L_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7496 | #define UART_WP7816B_T1_BWI_L_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7497 | #define UART_WP7816B_T1_BWI_L(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816B_T1_BWI_L_SHIFT)) & UART_WP7816B_T1_BWI_L_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7498 | |
AnnaBridge | 171:3a7713b1edbc | 7499 | /*! @name WGP7816_T1 - UART 7816 Wait and Guard Parameter Register */ |
AnnaBridge | 171:3a7713b1edbc | 7500 | #define UART_WGP7816_T1_BGI_MASK (0xFU) |
AnnaBridge | 171:3a7713b1edbc | 7501 | #define UART_WGP7816_T1_BGI_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7502 | #define UART_WGP7816_T1_BGI(x) (((uint8_t)(((uint8_t)(x)) << UART_WGP7816_T1_BGI_SHIFT)) & UART_WGP7816_T1_BGI_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7503 | #define UART_WGP7816_T1_CWI1_MASK (0xF0U) |
AnnaBridge | 171:3a7713b1edbc | 7504 | #define UART_WGP7816_T1_CWI1_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7505 | #define UART_WGP7816_T1_CWI1(x) (((uint8_t)(((uint8_t)(x)) << UART_WGP7816_T1_CWI1_SHIFT)) & UART_WGP7816_T1_CWI1_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7506 | |
AnnaBridge | 171:3a7713b1edbc | 7507 | /*! @name WP7816C_T1 - UART 7816 Wait Parameter Register C */ |
AnnaBridge | 171:3a7713b1edbc | 7508 | #define UART_WP7816C_T1_CWI2_MASK (0x1FU) |
AnnaBridge | 171:3a7713b1edbc | 7509 | #define UART_WP7816C_T1_CWI2_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7510 | #define UART_WP7816C_T1_CWI2(x) (((uint8_t)(((uint8_t)(x)) << UART_WP7816C_T1_CWI2_SHIFT)) & UART_WP7816C_T1_CWI2_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7511 | |
AnnaBridge | 171:3a7713b1edbc | 7512 | |
AnnaBridge | 171:3a7713b1edbc | 7513 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7514 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7515 | */ /* end of group UART_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 7516 | |
AnnaBridge | 171:3a7713b1edbc | 7517 | |
AnnaBridge | 171:3a7713b1edbc | 7518 | /* UART - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 7519 | /** Peripheral UART2 base address */ |
AnnaBridge | 171:3a7713b1edbc | 7520 | #define UART2_BASE (0x4006C000u) |
AnnaBridge | 171:3a7713b1edbc | 7521 | /** Peripheral UART2 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 7522 | #define UART2 ((UART_Type *)UART2_BASE) |
AnnaBridge | 171:3a7713b1edbc | 7523 | /** Array initializer of UART peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 7524 | #define UART_BASE_ADDRS { 0u, 0u, UART2_BASE } |
AnnaBridge | 171:3a7713b1edbc | 7525 | /** Array initializer of UART peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 7526 | #define UART_BASE_PTRS { (UART_Type *)0u, (UART_Type *)0u, UART2 } |
AnnaBridge | 171:3a7713b1edbc | 7527 | /** Interrupt vectors for the UART peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 7528 | #define UART_RX_TX_IRQS { NotAvail_IRQn, NotAvail_IRQn, UART2_FLEXIO_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 7529 | #define UART_ERR_IRQS { NotAvail_IRQn, NotAvail_IRQn, UART2_FLEXIO_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 7530 | |
AnnaBridge | 171:3a7713b1edbc | 7531 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7532 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7533 | */ /* end of group UART_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 7534 | |
AnnaBridge | 171:3a7713b1edbc | 7535 | |
AnnaBridge | 171:3a7713b1edbc | 7536 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 7537 | -- USB Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 7538 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 7539 | |
AnnaBridge | 171:3a7713b1edbc | 7540 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7541 | * @addtogroup USB_Peripheral_Access_Layer USB Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 7542 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 7543 | */ |
AnnaBridge | 171:3a7713b1edbc | 7544 | |
AnnaBridge | 171:3a7713b1edbc | 7545 | /** USB - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 7546 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 7547 | __I uint8_t PERID; /**< Peripheral ID register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 7548 | uint8_t RESERVED_0[3]; |
AnnaBridge | 171:3a7713b1edbc | 7549 | __I uint8_t IDCOMP; /**< Peripheral ID Complement register, offset: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 7550 | uint8_t RESERVED_1[3]; |
AnnaBridge | 171:3a7713b1edbc | 7551 | __I uint8_t REV; /**< Peripheral Revision register, offset: 0x8 */ |
AnnaBridge | 171:3a7713b1edbc | 7552 | uint8_t RESERVED_2[3]; |
AnnaBridge | 171:3a7713b1edbc | 7553 | __I uint8_t ADDINFO; /**< Peripheral Additional Info register, offset: 0xC */ |
AnnaBridge | 171:3a7713b1edbc | 7554 | uint8_t RESERVED_3[15]; |
AnnaBridge | 171:3a7713b1edbc | 7555 | __IO uint8_t OTGCTL; /**< OTG Control register, offset: 0x1C */ |
AnnaBridge | 171:3a7713b1edbc | 7556 | uint8_t RESERVED_4[99]; |
AnnaBridge | 171:3a7713b1edbc | 7557 | __IO uint8_t ISTAT; /**< Interrupt Status register, offset: 0x80 */ |
AnnaBridge | 171:3a7713b1edbc | 7558 | uint8_t RESERVED_5[3]; |
AnnaBridge | 171:3a7713b1edbc | 7559 | __IO uint8_t INTEN; /**< Interrupt Enable register, offset: 0x84 */ |
AnnaBridge | 171:3a7713b1edbc | 7560 | uint8_t RESERVED_6[3]; |
AnnaBridge | 171:3a7713b1edbc | 7561 | __IO uint8_t ERRSTAT; /**< Error Interrupt Status register, offset: 0x88 */ |
AnnaBridge | 171:3a7713b1edbc | 7562 | uint8_t RESERVED_7[3]; |
AnnaBridge | 171:3a7713b1edbc | 7563 | __IO uint8_t ERREN; /**< Error Interrupt Enable register, offset: 0x8C */ |
AnnaBridge | 171:3a7713b1edbc | 7564 | uint8_t RESERVED_8[3]; |
AnnaBridge | 171:3a7713b1edbc | 7565 | __I uint8_t STAT; /**< Status register, offset: 0x90 */ |
AnnaBridge | 171:3a7713b1edbc | 7566 | uint8_t RESERVED_9[3]; |
AnnaBridge | 171:3a7713b1edbc | 7567 | __IO uint8_t CTL; /**< Control register, offset: 0x94 */ |
AnnaBridge | 171:3a7713b1edbc | 7568 | uint8_t RESERVED_10[3]; |
AnnaBridge | 171:3a7713b1edbc | 7569 | __IO uint8_t ADDR; /**< Address register, offset: 0x98 */ |
AnnaBridge | 171:3a7713b1edbc | 7570 | uint8_t RESERVED_11[3]; |
AnnaBridge | 171:3a7713b1edbc | 7571 | __IO uint8_t BDTPAGE1; /**< BDT Page register 1, offset: 0x9C */ |
AnnaBridge | 171:3a7713b1edbc | 7572 | uint8_t RESERVED_12[3]; |
AnnaBridge | 171:3a7713b1edbc | 7573 | __IO uint8_t FRMNUML; /**< Frame Number register Low, offset: 0xA0 */ |
AnnaBridge | 171:3a7713b1edbc | 7574 | uint8_t RESERVED_13[3]; |
AnnaBridge | 171:3a7713b1edbc | 7575 | __IO uint8_t FRMNUMH; /**< Frame Number register High, offset: 0xA4 */ |
AnnaBridge | 171:3a7713b1edbc | 7576 | uint8_t RESERVED_14[11]; |
AnnaBridge | 171:3a7713b1edbc | 7577 | __IO uint8_t BDTPAGE2; /**< BDT Page Register 2, offset: 0xB0 */ |
AnnaBridge | 171:3a7713b1edbc | 7578 | uint8_t RESERVED_15[3]; |
AnnaBridge | 171:3a7713b1edbc | 7579 | __IO uint8_t BDTPAGE3; /**< BDT Page Register 3, offset: 0xB4 */ |
AnnaBridge | 171:3a7713b1edbc | 7580 | uint8_t RESERVED_16[11]; |
AnnaBridge | 171:3a7713b1edbc | 7581 | struct { /* offset: 0xC0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 7582 | __IO uint8_t ENDPT; /**< Endpoint Control register, array offset: 0xC0, array step: 0x4 */ |
AnnaBridge | 171:3a7713b1edbc | 7583 | uint8_t RESERVED_0[3]; |
AnnaBridge | 171:3a7713b1edbc | 7584 | } ENDPOINT[16]; |
AnnaBridge | 171:3a7713b1edbc | 7585 | __IO uint8_t USBCTRL; /**< USB Control register, offset: 0x100 */ |
AnnaBridge | 171:3a7713b1edbc | 7586 | uint8_t RESERVED_17[3]; |
AnnaBridge | 171:3a7713b1edbc | 7587 | __I uint8_t OBSERVE; /**< USB OTG Observe register, offset: 0x104 */ |
AnnaBridge | 171:3a7713b1edbc | 7588 | uint8_t RESERVED_18[3]; |
AnnaBridge | 171:3a7713b1edbc | 7589 | __IO uint8_t CONTROL; /**< USB OTG Control register, offset: 0x108 */ |
AnnaBridge | 171:3a7713b1edbc | 7590 | uint8_t RESERVED_19[3]; |
AnnaBridge | 171:3a7713b1edbc | 7591 | __IO uint8_t USBTRC0; /**< USB Transceiver Control register 0, offset: 0x10C */ |
AnnaBridge | 171:3a7713b1edbc | 7592 | uint8_t RESERVED_20[7]; |
AnnaBridge | 171:3a7713b1edbc | 7593 | __IO uint8_t USBFRMADJUST; /**< Frame Adjust Register, offset: 0x114 */ |
AnnaBridge | 171:3a7713b1edbc | 7594 | uint8_t RESERVED_21[43]; |
AnnaBridge | 171:3a7713b1edbc | 7595 | __IO uint8_t CLK_RECOVER_CTRL; /**< USB Clock recovery control, offset: 0x140 */ |
AnnaBridge | 171:3a7713b1edbc | 7596 | uint8_t RESERVED_22[3]; |
AnnaBridge | 171:3a7713b1edbc | 7597 | __IO uint8_t CLK_RECOVER_IRC_EN; /**< IRC48M oscillator enable register, offset: 0x144 */ |
AnnaBridge | 171:3a7713b1edbc | 7598 | uint8_t RESERVED_23[15]; |
AnnaBridge | 171:3a7713b1edbc | 7599 | __IO uint8_t CLK_RECOVER_INT_EN; /**< Clock recovery combined interrupt enable, offset: 0x154 */ |
AnnaBridge | 171:3a7713b1edbc | 7600 | uint8_t RESERVED_24[7]; |
AnnaBridge | 171:3a7713b1edbc | 7601 | __IO uint8_t CLK_RECOVER_INT_STATUS; /**< Clock recovery separated interrupt status, offset: 0x15C */ |
AnnaBridge | 171:3a7713b1edbc | 7602 | } USB_Type; |
AnnaBridge | 171:3a7713b1edbc | 7603 | |
AnnaBridge | 171:3a7713b1edbc | 7604 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 7605 | -- USB Register Masks |
AnnaBridge | 171:3a7713b1edbc | 7606 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 7607 | |
AnnaBridge | 171:3a7713b1edbc | 7608 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7609 | * @addtogroup USB_Register_Masks USB Register Masks |
AnnaBridge | 171:3a7713b1edbc | 7610 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 7611 | */ |
AnnaBridge | 171:3a7713b1edbc | 7612 | |
AnnaBridge | 171:3a7713b1edbc | 7613 | /*! @name PERID - Peripheral ID register */ |
AnnaBridge | 171:3a7713b1edbc | 7614 | #define USB_PERID_ID_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 7615 | #define USB_PERID_ID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7616 | #define USB_PERID_ID(x) (((uint8_t)(((uint8_t)(x)) << USB_PERID_ID_SHIFT)) & USB_PERID_ID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7617 | |
AnnaBridge | 171:3a7713b1edbc | 7618 | /*! @name IDCOMP - Peripheral ID Complement register */ |
AnnaBridge | 171:3a7713b1edbc | 7619 | #define USB_IDCOMP_NID_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 7620 | #define USB_IDCOMP_NID_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7621 | #define USB_IDCOMP_NID(x) (((uint8_t)(((uint8_t)(x)) << USB_IDCOMP_NID_SHIFT)) & USB_IDCOMP_NID_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7622 | |
AnnaBridge | 171:3a7713b1edbc | 7623 | /*! @name REV - Peripheral Revision register */ |
AnnaBridge | 171:3a7713b1edbc | 7624 | #define USB_REV_REV_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7625 | #define USB_REV_REV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7626 | #define USB_REV_REV(x) (((uint8_t)(((uint8_t)(x)) << USB_REV_REV_SHIFT)) & USB_REV_REV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7627 | |
AnnaBridge | 171:3a7713b1edbc | 7628 | /*! @name ADDINFO - Peripheral Additional Info register */ |
AnnaBridge | 171:3a7713b1edbc | 7629 | #define USB_ADDINFO_IEHOST_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7630 | #define USB_ADDINFO_IEHOST_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7631 | #define USB_ADDINFO_IEHOST(x) (((uint8_t)(((uint8_t)(x)) << USB_ADDINFO_IEHOST_SHIFT)) & USB_ADDINFO_IEHOST_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7632 | |
AnnaBridge | 171:3a7713b1edbc | 7633 | /*! @name OTGCTL - OTG Control register */ |
AnnaBridge | 171:3a7713b1edbc | 7634 | #define USB_OTGCTL_DPHIGH_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7635 | #define USB_OTGCTL_DPHIGH_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7636 | #define USB_OTGCTL_DPHIGH(x) (((uint8_t)(((uint8_t)(x)) << USB_OTGCTL_DPHIGH_SHIFT)) & USB_OTGCTL_DPHIGH_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7637 | |
AnnaBridge | 171:3a7713b1edbc | 7638 | /*! @name ISTAT - Interrupt Status register */ |
AnnaBridge | 171:3a7713b1edbc | 7639 | #define USB_ISTAT_USBRST_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7640 | #define USB_ISTAT_USBRST_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7641 | #define USB_ISTAT_USBRST(x) (((uint8_t)(((uint8_t)(x)) << USB_ISTAT_USBRST_SHIFT)) & USB_ISTAT_USBRST_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7642 | #define USB_ISTAT_ERROR_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7643 | #define USB_ISTAT_ERROR_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7644 | #define USB_ISTAT_ERROR(x) (((uint8_t)(((uint8_t)(x)) << USB_ISTAT_ERROR_SHIFT)) & USB_ISTAT_ERROR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7645 | #define USB_ISTAT_SOFTOK_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7646 | #define USB_ISTAT_SOFTOK_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7647 | #define USB_ISTAT_SOFTOK(x) (((uint8_t)(((uint8_t)(x)) << USB_ISTAT_SOFTOK_SHIFT)) & USB_ISTAT_SOFTOK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7648 | #define USB_ISTAT_TOKDNE_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7649 | #define USB_ISTAT_TOKDNE_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7650 | #define USB_ISTAT_TOKDNE(x) (((uint8_t)(((uint8_t)(x)) << USB_ISTAT_TOKDNE_SHIFT)) & USB_ISTAT_TOKDNE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7651 | #define USB_ISTAT_SLEEP_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7652 | #define USB_ISTAT_SLEEP_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7653 | #define USB_ISTAT_SLEEP(x) (((uint8_t)(((uint8_t)(x)) << USB_ISTAT_SLEEP_SHIFT)) & USB_ISTAT_SLEEP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7654 | #define USB_ISTAT_RESUME_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7655 | #define USB_ISTAT_RESUME_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7656 | #define USB_ISTAT_RESUME(x) (((uint8_t)(((uint8_t)(x)) << USB_ISTAT_RESUME_SHIFT)) & USB_ISTAT_RESUME_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7657 | #define USB_ISTAT_STALL_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7658 | #define USB_ISTAT_STALL_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7659 | #define USB_ISTAT_STALL(x) (((uint8_t)(((uint8_t)(x)) << USB_ISTAT_STALL_SHIFT)) & USB_ISTAT_STALL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7660 | |
AnnaBridge | 171:3a7713b1edbc | 7661 | /*! @name INTEN - Interrupt Enable register */ |
AnnaBridge | 171:3a7713b1edbc | 7662 | #define USB_INTEN_USBRSTEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7663 | #define USB_INTEN_USBRSTEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7664 | #define USB_INTEN_USBRSTEN(x) (((uint8_t)(((uint8_t)(x)) << USB_INTEN_USBRSTEN_SHIFT)) & USB_INTEN_USBRSTEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7665 | #define USB_INTEN_ERROREN_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7666 | #define USB_INTEN_ERROREN_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7667 | #define USB_INTEN_ERROREN(x) (((uint8_t)(((uint8_t)(x)) << USB_INTEN_ERROREN_SHIFT)) & USB_INTEN_ERROREN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7668 | #define USB_INTEN_SOFTOKEN_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7669 | #define USB_INTEN_SOFTOKEN_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7670 | #define USB_INTEN_SOFTOKEN(x) (((uint8_t)(((uint8_t)(x)) << USB_INTEN_SOFTOKEN_SHIFT)) & USB_INTEN_SOFTOKEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7671 | #define USB_INTEN_TOKDNEEN_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7672 | #define USB_INTEN_TOKDNEEN_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7673 | #define USB_INTEN_TOKDNEEN(x) (((uint8_t)(((uint8_t)(x)) << USB_INTEN_TOKDNEEN_SHIFT)) & USB_INTEN_TOKDNEEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7674 | #define USB_INTEN_SLEEPEN_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7675 | #define USB_INTEN_SLEEPEN_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7676 | #define USB_INTEN_SLEEPEN(x) (((uint8_t)(((uint8_t)(x)) << USB_INTEN_SLEEPEN_SHIFT)) & USB_INTEN_SLEEPEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7677 | #define USB_INTEN_RESUMEEN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7678 | #define USB_INTEN_RESUMEEN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7679 | #define USB_INTEN_RESUMEEN(x) (((uint8_t)(((uint8_t)(x)) << USB_INTEN_RESUMEEN_SHIFT)) & USB_INTEN_RESUMEEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7680 | #define USB_INTEN_STALLEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7681 | #define USB_INTEN_STALLEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7682 | #define USB_INTEN_STALLEN(x) (((uint8_t)(((uint8_t)(x)) << USB_INTEN_STALLEN_SHIFT)) & USB_INTEN_STALLEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7683 | |
AnnaBridge | 171:3a7713b1edbc | 7684 | /*! @name ERRSTAT - Error Interrupt Status register */ |
AnnaBridge | 171:3a7713b1edbc | 7685 | #define USB_ERRSTAT_PIDERR_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7686 | #define USB_ERRSTAT_PIDERR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7687 | #define USB_ERRSTAT_PIDERR(x) (((uint8_t)(((uint8_t)(x)) << USB_ERRSTAT_PIDERR_SHIFT)) & USB_ERRSTAT_PIDERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7688 | #define USB_ERRSTAT_CRC5_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7689 | #define USB_ERRSTAT_CRC5_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7690 | #define USB_ERRSTAT_CRC5(x) (((uint8_t)(((uint8_t)(x)) << USB_ERRSTAT_CRC5_SHIFT)) & USB_ERRSTAT_CRC5_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7691 | #define USB_ERRSTAT_CRC16_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7692 | #define USB_ERRSTAT_CRC16_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7693 | #define USB_ERRSTAT_CRC16(x) (((uint8_t)(((uint8_t)(x)) << USB_ERRSTAT_CRC16_SHIFT)) & USB_ERRSTAT_CRC16_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7694 | #define USB_ERRSTAT_DFN8_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7695 | #define USB_ERRSTAT_DFN8_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7696 | #define USB_ERRSTAT_DFN8(x) (((uint8_t)(((uint8_t)(x)) << USB_ERRSTAT_DFN8_SHIFT)) & USB_ERRSTAT_DFN8_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7697 | #define USB_ERRSTAT_BTOERR_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7698 | #define USB_ERRSTAT_BTOERR_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7699 | #define USB_ERRSTAT_BTOERR(x) (((uint8_t)(((uint8_t)(x)) << USB_ERRSTAT_BTOERR_SHIFT)) & USB_ERRSTAT_BTOERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7700 | #define USB_ERRSTAT_DMAERR_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7701 | #define USB_ERRSTAT_DMAERR_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7702 | #define USB_ERRSTAT_DMAERR(x) (((uint8_t)(((uint8_t)(x)) << USB_ERRSTAT_DMAERR_SHIFT)) & USB_ERRSTAT_DMAERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7703 | #define USB_ERRSTAT_BTSERR_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7704 | #define USB_ERRSTAT_BTSERR_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7705 | #define USB_ERRSTAT_BTSERR(x) (((uint8_t)(((uint8_t)(x)) << USB_ERRSTAT_BTSERR_SHIFT)) & USB_ERRSTAT_BTSERR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7706 | |
AnnaBridge | 171:3a7713b1edbc | 7707 | /*! @name ERREN - Error Interrupt Enable register */ |
AnnaBridge | 171:3a7713b1edbc | 7708 | #define USB_ERREN_PIDERREN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7709 | #define USB_ERREN_PIDERREN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7710 | #define USB_ERREN_PIDERREN(x) (((uint8_t)(((uint8_t)(x)) << USB_ERREN_PIDERREN_SHIFT)) & USB_ERREN_PIDERREN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7711 | #define USB_ERREN_CRC5EOFEN_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7712 | #define USB_ERREN_CRC5EOFEN_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7713 | #define USB_ERREN_CRC5EOFEN(x) (((uint8_t)(((uint8_t)(x)) << USB_ERREN_CRC5EOFEN_SHIFT)) & USB_ERREN_CRC5EOFEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7714 | #define USB_ERREN_CRC16EN_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7715 | #define USB_ERREN_CRC16EN_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7716 | #define USB_ERREN_CRC16EN(x) (((uint8_t)(((uint8_t)(x)) << USB_ERREN_CRC16EN_SHIFT)) & USB_ERREN_CRC16EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7717 | #define USB_ERREN_DFN8EN_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7718 | #define USB_ERREN_DFN8EN_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7719 | #define USB_ERREN_DFN8EN(x) (((uint8_t)(((uint8_t)(x)) << USB_ERREN_DFN8EN_SHIFT)) & USB_ERREN_DFN8EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7720 | #define USB_ERREN_BTOERREN_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7721 | #define USB_ERREN_BTOERREN_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7722 | #define USB_ERREN_BTOERREN(x) (((uint8_t)(((uint8_t)(x)) << USB_ERREN_BTOERREN_SHIFT)) & USB_ERREN_BTOERREN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7723 | #define USB_ERREN_DMAERREN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7724 | #define USB_ERREN_DMAERREN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7725 | #define USB_ERREN_DMAERREN(x) (((uint8_t)(((uint8_t)(x)) << USB_ERREN_DMAERREN_SHIFT)) & USB_ERREN_DMAERREN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7726 | #define USB_ERREN_BTSERREN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7727 | #define USB_ERREN_BTSERREN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7728 | #define USB_ERREN_BTSERREN(x) (((uint8_t)(((uint8_t)(x)) << USB_ERREN_BTSERREN_SHIFT)) & USB_ERREN_BTSERREN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7729 | |
AnnaBridge | 171:3a7713b1edbc | 7730 | /*! @name STAT - Status register */ |
AnnaBridge | 171:3a7713b1edbc | 7731 | #define USB_STAT_ODD_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7732 | #define USB_STAT_ODD_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7733 | #define USB_STAT_ODD(x) (((uint8_t)(((uint8_t)(x)) << USB_STAT_ODD_SHIFT)) & USB_STAT_ODD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7734 | #define USB_STAT_TX_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7735 | #define USB_STAT_TX_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7736 | #define USB_STAT_TX(x) (((uint8_t)(((uint8_t)(x)) << USB_STAT_TX_SHIFT)) & USB_STAT_TX_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7737 | #define USB_STAT_ENDP_MASK (0xF0U) |
AnnaBridge | 171:3a7713b1edbc | 7738 | #define USB_STAT_ENDP_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7739 | #define USB_STAT_ENDP(x) (((uint8_t)(((uint8_t)(x)) << USB_STAT_ENDP_SHIFT)) & USB_STAT_ENDP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7740 | |
AnnaBridge | 171:3a7713b1edbc | 7741 | /*! @name CTL - Control register */ |
AnnaBridge | 171:3a7713b1edbc | 7742 | #define USB_CTL_USBENSOFEN_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7743 | #define USB_CTL_USBENSOFEN_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7744 | #define USB_CTL_USBENSOFEN(x) (((uint8_t)(((uint8_t)(x)) << USB_CTL_USBENSOFEN_SHIFT)) & USB_CTL_USBENSOFEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7745 | #define USB_CTL_ODDRST_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7746 | #define USB_CTL_ODDRST_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7747 | #define USB_CTL_ODDRST(x) (((uint8_t)(((uint8_t)(x)) << USB_CTL_ODDRST_SHIFT)) & USB_CTL_ODDRST_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7748 | #define USB_CTL_TXSUSPENDTOKENBUSY_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7749 | #define USB_CTL_TXSUSPENDTOKENBUSY_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7750 | #define USB_CTL_TXSUSPENDTOKENBUSY(x) (((uint8_t)(((uint8_t)(x)) << USB_CTL_TXSUSPENDTOKENBUSY_SHIFT)) & USB_CTL_TXSUSPENDTOKENBUSY_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7751 | #define USB_CTL_SE0_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7752 | #define USB_CTL_SE0_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7753 | #define USB_CTL_SE0(x) (((uint8_t)(((uint8_t)(x)) << USB_CTL_SE0_SHIFT)) & USB_CTL_SE0_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7754 | #define USB_CTL_JSTATE_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7755 | #define USB_CTL_JSTATE_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7756 | #define USB_CTL_JSTATE(x) (((uint8_t)(((uint8_t)(x)) << USB_CTL_JSTATE_SHIFT)) & USB_CTL_JSTATE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7757 | |
AnnaBridge | 171:3a7713b1edbc | 7758 | /*! @name ADDR - Address register */ |
AnnaBridge | 171:3a7713b1edbc | 7759 | #define USB_ADDR_ADDR_MASK (0x7FU) |
AnnaBridge | 171:3a7713b1edbc | 7760 | #define USB_ADDR_ADDR_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7761 | #define USB_ADDR_ADDR(x) (((uint8_t)(((uint8_t)(x)) << USB_ADDR_ADDR_SHIFT)) & USB_ADDR_ADDR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7762 | |
AnnaBridge | 171:3a7713b1edbc | 7763 | /*! @name BDTPAGE1 - BDT Page register 1 */ |
AnnaBridge | 171:3a7713b1edbc | 7764 | #define USB_BDTPAGE1_BDTBA_MASK (0xFEU) |
AnnaBridge | 171:3a7713b1edbc | 7765 | #define USB_BDTPAGE1_BDTBA_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7766 | #define USB_BDTPAGE1_BDTBA(x) (((uint8_t)(((uint8_t)(x)) << USB_BDTPAGE1_BDTBA_SHIFT)) & USB_BDTPAGE1_BDTBA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7767 | |
AnnaBridge | 171:3a7713b1edbc | 7768 | /*! @name FRMNUML - Frame Number register Low */ |
AnnaBridge | 171:3a7713b1edbc | 7769 | #define USB_FRMNUML_FRM_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7770 | #define USB_FRMNUML_FRM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7771 | #define USB_FRMNUML_FRM(x) (((uint8_t)(((uint8_t)(x)) << USB_FRMNUML_FRM_SHIFT)) & USB_FRMNUML_FRM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7772 | |
AnnaBridge | 171:3a7713b1edbc | 7773 | /*! @name FRMNUMH - Frame Number register High */ |
AnnaBridge | 171:3a7713b1edbc | 7774 | #define USB_FRMNUMH_FRM_MASK (0x7U) |
AnnaBridge | 171:3a7713b1edbc | 7775 | #define USB_FRMNUMH_FRM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7776 | #define USB_FRMNUMH_FRM(x) (((uint8_t)(((uint8_t)(x)) << USB_FRMNUMH_FRM_SHIFT)) & USB_FRMNUMH_FRM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7777 | |
AnnaBridge | 171:3a7713b1edbc | 7778 | /*! @name BDTPAGE2 - BDT Page Register 2 */ |
AnnaBridge | 171:3a7713b1edbc | 7779 | #define USB_BDTPAGE2_BDTBA_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7780 | #define USB_BDTPAGE2_BDTBA_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7781 | #define USB_BDTPAGE2_BDTBA(x) (((uint8_t)(((uint8_t)(x)) << USB_BDTPAGE2_BDTBA_SHIFT)) & USB_BDTPAGE2_BDTBA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7782 | |
AnnaBridge | 171:3a7713b1edbc | 7783 | /*! @name BDTPAGE3 - BDT Page Register 3 */ |
AnnaBridge | 171:3a7713b1edbc | 7784 | #define USB_BDTPAGE3_BDTBA_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7785 | #define USB_BDTPAGE3_BDTBA_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7786 | #define USB_BDTPAGE3_BDTBA(x) (((uint8_t)(((uint8_t)(x)) << USB_BDTPAGE3_BDTBA_SHIFT)) & USB_BDTPAGE3_BDTBA_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7787 | |
AnnaBridge | 171:3a7713b1edbc | 7788 | /*! @name ENDPT - Endpoint Control register */ |
AnnaBridge | 171:3a7713b1edbc | 7789 | #define USB_ENDPT_EPHSHK_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7790 | #define USB_ENDPT_EPHSHK_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7791 | #define USB_ENDPT_EPHSHK(x) (((uint8_t)(((uint8_t)(x)) << USB_ENDPT_EPHSHK_SHIFT)) & USB_ENDPT_EPHSHK_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7792 | #define USB_ENDPT_EPSTALL_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7793 | #define USB_ENDPT_EPSTALL_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7794 | #define USB_ENDPT_EPSTALL(x) (((uint8_t)(((uint8_t)(x)) << USB_ENDPT_EPSTALL_SHIFT)) & USB_ENDPT_EPSTALL_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7795 | #define USB_ENDPT_EPTXEN_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7796 | #define USB_ENDPT_EPTXEN_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7797 | #define USB_ENDPT_EPTXEN(x) (((uint8_t)(((uint8_t)(x)) << USB_ENDPT_EPTXEN_SHIFT)) & USB_ENDPT_EPTXEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7798 | #define USB_ENDPT_EPRXEN_MASK (0x8U) |
AnnaBridge | 171:3a7713b1edbc | 7799 | #define USB_ENDPT_EPRXEN_SHIFT (3U) |
AnnaBridge | 171:3a7713b1edbc | 7800 | #define USB_ENDPT_EPRXEN(x) (((uint8_t)(((uint8_t)(x)) << USB_ENDPT_EPRXEN_SHIFT)) & USB_ENDPT_EPRXEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7801 | #define USB_ENDPT_EPCTLDIS_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7802 | #define USB_ENDPT_EPCTLDIS_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7803 | #define USB_ENDPT_EPCTLDIS(x) (((uint8_t)(((uint8_t)(x)) << USB_ENDPT_EPCTLDIS_SHIFT)) & USB_ENDPT_EPCTLDIS_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7804 | |
AnnaBridge | 171:3a7713b1edbc | 7805 | /* The count of USB_ENDPT */ |
AnnaBridge | 171:3a7713b1edbc | 7806 | #define USB_ENDPT_COUNT (16U) |
AnnaBridge | 171:3a7713b1edbc | 7807 | |
AnnaBridge | 171:3a7713b1edbc | 7808 | /*! @name USBCTRL - USB Control register */ |
AnnaBridge | 171:3a7713b1edbc | 7809 | #define USB_USBCTRL_PDE_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7810 | #define USB_USBCTRL_PDE_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7811 | #define USB_USBCTRL_PDE(x) (((uint8_t)(((uint8_t)(x)) << USB_USBCTRL_PDE_SHIFT)) & USB_USBCTRL_PDE_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7812 | #define USB_USBCTRL_SUSP_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7813 | #define USB_USBCTRL_SUSP_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7814 | #define USB_USBCTRL_SUSP(x) (((uint8_t)(((uint8_t)(x)) << USB_USBCTRL_SUSP_SHIFT)) & USB_USBCTRL_SUSP_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7815 | |
AnnaBridge | 171:3a7713b1edbc | 7816 | /*! @name OBSERVE - USB OTG Observe register */ |
AnnaBridge | 171:3a7713b1edbc | 7817 | #define USB_OBSERVE_DMPD_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7818 | #define USB_OBSERVE_DMPD_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7819 | #define USB_OBSERVE_DMPD(x) (((uint8_t)(((uint8_t)(x)) << USB_OBSERVE_DMPD_SHIFT)) & USB_OBSERVE_DMPD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7820 | #define USB_OBSERVE_DPPD_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7821 | #define USB_OBSERVE_DPPD_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7822 | #define USB_OBSERVE_DPPD(x) (((uint8_t)(((uint8_t)(x)) << USB_OBSERVE_DPPD_SHIFT)) & USB_OBSERVE_DPPD_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7823 | #define USB_OBSERVE_DPPU_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7824 | #define USB_OBSERVE_DPPU_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7825 | #define USB_OBSERVE_DPPU(x) (((uint8_t)(((uint8_t)(x)) << USB_OBSERVE_DPPU_SHIFT)) & USB_OBSERVE_DPPU_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7826 | |
AnnaBridge | 171:3a7713b1edbc | 7827 | /*! @name CONTROL - USB OTG Control register */ |
AnnaBridge | 171:3a7713b1edbc | 7828 | #define USB_CONTROL_DPPULLUPNONOTG_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7829 | #define USB_CONTROL_DPPULLUPNONOTG_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7830 | #define USB_CONTROL_DPPULLUPNONOTG(x) (((uint8_t)(((uint8_t)(x)) << USB_CONTROL_DPPULLUPNONOTG_SHIFT)) & USB_CONTROL_DPPULLUPNONOTG_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7831 | |
AnnaBridge | 171:3a7713b1edbc | 7832 | /*! @name USBTRC0 - USB Transceiver Control register 0 */ |
AnnaBridge | 171:3a7713b1edbc | 7833 | #define USB_USBTRC0_USB_RESUME_INT_MASK (0x1U) |
AnnaBridge | 171:3a7713b1edbc | 7834 | #define USB_USBTRC0_USB_RESUME_INT_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7835 | #define USB_USBTRC0_USB_RESUME_INT(x) (((uint8_t)(((uint8_t)(x)) << USB_USBTRC0_USB_RESUME_INT_SHIFT)) & USB_USBTRC0_USB_RESUME_INT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7836 | #define USB_USBTRC0_SYNC_DET_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7837 | #define USB_USBTRC0_SYNC_DET_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7838 | #define USB_USBTRC0_SYNC_DET(x) (((uint8_t)(((uint8_t)(x)) << USB_USBTRC0_SYNC_DET_SHIFT)) & USB_USBTRC0_SYNC_DET_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7839 | #define USB_USBTRC0_USB_CLK_RECOVERY_INT_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7840 | #define USB_USBTRC0_USB_CLK_RECOVERY_INT_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7841 | #define USB_USBTRC0_USB_CLK_RECOVERY_INT(x) (((uint8_t)(((uint8_t)(x)) << USB_USBTRC0_USB_CLK_RECOVERY_INT_SHIFT)) & USB_USBTRC0_USB_CLK_RECOVERY_INT_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7842 | #define USB_USBTRC0_USBRESMEN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7843 | #define USB_USBTRC0_USBRESMEN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7844 | #define USB_USBTRC0_USBRESMEN(x) (((uint8_t)(((uint8_t)(x)) << USB_USBTRC0_USBRESMEN_SHIFT)) & USB_USBTRC0_USBRESMEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7845 | #define USB_USBTRC0_USBRESET_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7846 | #define USB_USBTRC0_USBRESET_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7847 | #define USB_USBTRC0_USBRESET(x) (((uint8_t)(((uint8_t)(x)) << USB_USBTRC0_USBRESET_SHIFT)) & USB_USBTRC0_USBRESET_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7848 | |
AnnaBridge | 171:3a7713b1edbc | 7849 | /*! @name USBFRMADJUST - Frame Adjust Register */ |
AnnaBridge | 171:3a7713b1edbc | 7850 | #define USB_USBFRMADJUST_ADJ_MASK (0xFFU) |
AnnaBridge | 171:3a7713b1edbc | 7851 | #define USB_USBFRMADJUST_ADJ_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7852 | #define USB_USBFRMADJUST_ADJ(x) (((uint8_t)(((uint8_t)(x)) << USB_USBFRMADJUST_ADJ_SHIFT)) & USB_USBFRMADJUST_ADJ_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7853 | |
AnnaBridge | 171:3a7713b1edbc | 7854 | /*! @name CLK_RECOVER_CTRL - USB Clock recovery control */ |
AnnaBridge | 171:3a7713b1edbc | 7855 | #define USB_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7856 | #define USB_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7857 | #define USB_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN(x) (((uint8_t)(((uint8_t)(x)) << USB_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_SHIFT)) & USB_CLK_RECOVER_CTRL_RESTART_IFRTRIM_EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7858 | #define USB_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7859 | #define USB_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7860 | #define USB_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN(x) (((uint8_t)(((uint8_t)(x)) << USB_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_SHIFT)) & USB_CLK_RECOVER_CTRL_RESET_RESUME_ROUGH_EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7861 | #define USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7862 | #define USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7863 | #define USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN(x) (((uint8_t)(((uint8_t)(x)) << USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_SHIFT)) & USB_CLK_RECOVER_CTRL_CLOCK_RECOVER_EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7864 | |
AnnaBridge | 171:3a7713b1edbc | 7865 | /*! @name CLK_RECOVER_IRC_EN - IRC48M oscillator enable register */ |
AnnaBridge | 171:3a7713b1edbc | 7866 | #define USB_CLK_RECOVER_IRC_EN_IRC_EN_MASK (0x2U) |
AnnaBridge | 171:3a7713b1edbc | 7867 | #define USB_CLK_RECOVER_IRC_EN_IRC_EN_SHIFT (1U) |
AnnaBridge | 171:3a7713b1edbc | 7868 | #define USB_CLK_RECOVER_IRC_EN_IRC_EN(x) (((uint8_t)(((uint8_t)(x)) << USB_CLK_RECOVER_IRC_EN_IRC_EN_SHIFT)) & USB_CLK_RECOVER_IRC_EN_IRC_EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7869 | |
AnnaBridge | 171:3a7713b1edbc | 7870 | /*! @name CLK_RECOVER_INT_EN - Clock recovery combined interrupt enable */ |
AnnaBridge | 171:3a7713b1edbc | 7871 | #define USB_CLK_RECOVER_INT_EN_OVF_ERROR_EN_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7872 | #define USB_CLK_RECOVER_INT_EN_OVF_ERROR_EN_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7873 | #define USB_CLK_RECOVER_INT_EN_OVF_ERROR_EN(x) (((uint8_t)(((uint8_t)(x)) << USB_CLK_RECOVER_INT_EN_OVF_ERROR_EN_SHIFT)) & USB_CLK_RECOVER_INT_EN_OVF_ERROR_EN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7874 | |
AnnaBridge | 171:3a7713b1edbc | 7875 | /*! @name CLK_RECOVER_INT_STATUS - Clock recovery separated interrupt status */ |
AnnaBridge | 171:3a7713b1edbc | 7876 | #define USB_CLK_RECOVER_INT_STATUS_OVF_ERROR_MASK (0x10U) |
AnnaBridge | 171:3a7713b1edbc | 7877 | #define USB_CLK_RECOVER_INT_STATUS_OVF_ERROR_SHIFT (4U) |
AnnaBridge | 171:3a7713b1edbc | 7878 | #define USB_CLK_RECOVER_INT_STATUS_OVF_ERROR(x) (((uint8_t)(((uint8_t)(x)) << USB_CLK_RECOVER_INT_STATUS_OVF_ERROR_SHIFT)) & USB_CLK_RECOVER_INT_STATUS_OVF_ERROR_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7879 | |
AnnaBridge | 171:3a7713b1edbc | 7880 | |
AnnaBridge | 171:3a7713b1edbc | 7881 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7882 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7883 | */ /* end of group USB_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 7884 | |
AnnaBridge | 171:3a7713b1edbc | 7885 | |
AnnaBridge | 171:3a7713b1edbc | 7886 | /* USB - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 7887 | /** Peripheral USB0 base address */ |
AnnaBridge | 171:3a7713b1edbc | 7888 | #define USB0_BASE (0x40072000u) |
AnnaBridge | 171:3a7713b1edbc | 7889 | /** Peripheral USB0 base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 7890 | #define USB0 ((USB_Type *)USB0_BASE) |
AnnaBridge | 171:3a7713b1edbc | 7891 | /** Array initializer of USB peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 7892 | #define USB_BASE_ADDRS { USB0_BASE } |
AnnaBridge | 171:3a7713b1edbc | 7893 | /** Array initializer of USB peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 7894 | #define USB_BASE_PTRS { USB0 } |
AnnaBridge | 171:3a7713b1edbc | 7895 | /** Interrupt vectors for the USB peripheral type */ |
AnnaBridge | 171:3a7713b1edbc | 7896 | #define USB_IRQS { USB0_IRQn } |
AnnaBridge | 171:3a7713b1edbc | 7897 | |
AnnaBridge | 171:3a7713b1edbc | 7898 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7899 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7900 | */ /* end of group USB_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 7901 | |
AnnaBridge | 171:3a7713b1edbc | 7902 | |
AnnaBridge | 171:3a7713b1edbc | 7903 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 7904 | -- VREF Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 7905 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 7906 | |
AnnaBridge | 171:3a7713b1edbc | 7907 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7908 | * @addtogroup VREF_Peripheral_Access_Layer VREF Peripheral Access Layer |
AnnaBridge | 171:3a7713b1edbc | 7909 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 7910 | */ |
AnnaBridge | 171:3a7713b1edbc | 7911 | |
AnnaBridge | 171:3a7713b1edbc | 7912 | /** VREF - Register Layout Typedef */ |
AnnaBridge | 171:3a7713b1edbc | 7913 | typedef struct { |
AnnaBridge | 171:3a7713b1edbc | 7914 | __IO uint8_t TRM; /**< VREF Trim Register, offset: 0x0 */ |
AnnaBridge | 171:3a7713b1edbc | 7915 | __IO uint8_t SC; /**< VREF Status and Control Register, offset: 0x1 */ |
AnnaBridge | 171:3a7713b1edbc | 7916 | } VREF_Type; |
AnnaBridge | 171:3a7713b1edbc | 7917 | |
AnnaBridge | 171:3a7713b1edbc | 7918 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 7919 | -- VREF Register Masks |
AnnaBridge | 171:3a7713b1edbc | 7920 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 7921 | |
AnnaBridge | 171:3a7713b1edbc | 7922 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7923 | * @addtogroup VREF_Register_Masks VREF Register Masks |
AnnaBridge | 171:3a7713b1edbc | 7924 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 7925 | */ |
AnnaBridge | 171:3a7713b1edbc | 7926 | |
AnnaBridge | 171:3a7713b1edbc | 7927 | /*! @name TRM - VREF Trim Register */ |
AnnaBridge | 171:3a7713b1edbc | 7928 | #define VREF_TRM_TRIM_MASK (0x3FU) |
AnnaBridge | 171:3a7713b1edbc | 7929 | #define VREF_TRM_TRIM_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7930 | #define VREF_TRM_TRIM(x) (((uint8_t)(((uint8_t)(x)) << VREF_TRM_TRIM_SHIFT)) & VREF_TRM_TRIM_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7931 | #define VREF_TRM_CHOPEN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7932 | #define VREF_TRM_CHOPEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7933 | #define VREF_TRM_CHOPEN(x) (((uint8_t)(((uint8_t)(x)) << VREF_TRM_CHOPEN_SHIFT)) & VREF_TRM_CHOPEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7934 | |
AnnaBridge | 171:3a7713b1edbc | 7935 | /*! @name SC - VREF Status and Control Register */ |
AnnaBridge | 171:3a7713b1edbc | 7936 | #define VREF_SC_MODE_LV_MASK (0x3U) |
AnnaBridge | 171:3a7713b1edbc | 7937 | #define VREF_SC_MODE_LV_SHIFT (0U) |
AnnaBridge | 171:3a7713b1edbc | 7938 | #define VREF_SC_MODE_LV(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_MODE_LV_SHIFT)) & VREF_SC_MODE_LV_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7939 | #define VREF_SC_VREFST_MASK (0x4U) |
AnnaBridge | 171:3a7713b1edbc | 7940 | #define VREF_SC_VREFST_SHIFT (2U) |
AnnaBridge | 171:3a7713b1edbc | 7941 | #define VREF_SC_VREFST(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_VREFST_SHIFT)) & VREF_SC_VREFST_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7942 | #define VREF_SC_ICOMPEN_MASK (0x20U) |
AnnaBridge | 171:3a7713b1edbc | 7943 | #define VREF_SC_ICOMPEN_SHIFT (5U) |
AnnaBridge | 171:3a7713b1edbc | 7944 | #define VREF_SC_ICOMPEN(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_ICOMPEN_SHIFT)) & VREF_SC_ICOMPEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7945 | #define VREF_SC_REGEN_MASK (0x40U) |
AnnaBridge | 171:3a7713b1edbc | 7946 | #define VREF_SC_REGEN_SHIFT (6U) |
AnnaBridge | 171:3a7713b1edbc | 7947 | #define VREF_SC_REGEN(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_REGEN_SHIFT)) & VREF_SC_REGEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7948 | #define VREF_SC_VREFEN_MASK (0x80U) |
AnnaBridge | 171:3a7713b1edbc | 7949 | #define VREF_SC_VREFEN_SHIFT (7U) |
AnnaBridge | 171:3a7713b1edbc | 7950 | #define VREF_SC_VREFEN(x) (((uint8_t)(((uint8_t)(x)) << VREF_SC_VREFEN_SHIFT)) & VREF_SC_VREFEN_MASK) |
AnnaBridge | 171:3a7713b1edbc | 7951 | |
AnnaBridge | 171:3a7713b1edbc | 7952 | |
AnnaBridge | 171:3a7713b1edbc | 7953 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7954 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7955 | */ /* end of group VREF_Register_Masks */ |
AnnaBridge | 171:3a7713b1edbc | 7956 | |
AnnaBridge | 171:3a7713b1edbc | 7957 | |
AnnaBridge | 171:3a7713b1edbc | 7958 | /* VREF - Peripheral instance base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 7959 | /** Peripheral VREF base address */ |
AnnaBridge | 171:3a7713b1edbc | 7960 | #define VREF_BASE (0x40074000u) |
AnnaBridge | 171:3a7713b1edbc | 7961 | /** Peripheral VREF base pointer */ |
AnnaBridge | 171:3a7713b1edbc | 7962 | #define VREF ((VREF_Type *)VREF_BASE) |
AnnaBridge | 171:3a7713b1edbc | 7963 | /** Array initializer of VREF peripheral base addresses */ |
AnnaBridge | 171:3a7713b1edbc | 7964 | #define VREF_BASE_ADDRS { VREF_BASE } |
AnnaBridge | 171:3a7713b1edbc | 7965 | /** Array initializer of VREF peripheral base pointers */ |
AnnaBridge | 171:3a7713b1edbc | 7966 | #define VREF_BASE_PTRS { VREF } |
AnnaBridge | 171:3a7713b1edbc | 7967 | |
AnnaBridge | 171:3a7713b1edbc | 7968 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7969 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7970 | */ /* end of group VREF_Peripheral_Access_Layer */ |
AnnaBridge | 171:3a7713b1edbc | 7971 | |
AnnaBridge | 171:3a7713b1edbc | 7972 | |
AnnaBridge | 171:3a7713b1edbc | 7973 | /* |
AnnaBridge | 171:3a7713b1edbc | 7974 | ** End of section using anonymous unions |
AnnaBridge | 171:3a7713b1edbc | 7975 | */ |
AnnaBridge | 171:3a7713b1edbc | 7976 | |
AnnaBridge | 171:3a7713b1edbc | 7977 | #if defined(__ARMCC_VERSION) |
AnnaBridge | 171:3a7713b1edbc | 7978 | #pragma pop |
AnnaBridge | 171:3a7713b1edbc | 7979 | #elif defined(__CWCC__) |
AnnaBridge | 171:3a7713b1edbc | 7980 | #pragma pop |
AnnaBridge | 171:3a7713b1edbc | 7981 | #elif defined(__GNUC__) |
AnnaBridge | 171:3a7713b1edbc | 7982 | /* leave anonymous unions enabled */ |
AnnaBridge | 171:3a7713b1edbc | 7983 | #elif defined(__IAR_SYSTEMS_ICC__) |
AnnaBridge | 171:3a7713b1edbc | 7984 | #pragma language=default |
AnnaBridge | 171:3a7713b1edbc | 7985 | #else |
AnnaBridge | 171:3a7713b1edbc | 7986 | #error Not supported compiler type |
AnnaBridge | 171:3a7713b1edbc | 7987 | #endif |
AnnaBridge | 171:3a7713b1edbc | 7988 | |
AnnaBridge | 171:3a7713b1edbc | 7989 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7990 | * @} |
AnnaBridge | 171:3a7713b1edbc | 7991 | */ /* end of group Peripheral_access_layer */ |
AnnaBridge | 171:3a7713b1edbc | 7992 | |
AnnaBridge | 171:3a7713b1edbc | 7993 | |
AnnaBridge | 171:3a7713b1edbc | 7994 | /* ---------------------------------------------------------------------------- |
AnnaBridge | 171:3a7713b1edbc | 7995 | -- SDK Compatibility |
AnnaBridge | 171:3a7713b1edbc | 7996 | ---------------------------------------------------------------------------- */ |
AnnaBridge | 171:3a7713b1edbc | 7997 | |
AnnaBridge | 171:3a7713b1edbc | 7998 | /*! |
AnnaBridge | 171:3a7713b1edbc | 7999 | * @addtogroup SDK_Compatibility_Symbols SDK Compatibility |
AnnaBridge | 171:3a7713b1edbc | 8000 | * @{ |
AnnaBridge | 171:3a7713b1edbc | 8001 | */ |
AnnaBridge | 171:3a7713b1edbc | 8002 | |
AnnaBridge | 171:3a7713b1edbc | 8003 | #define I2C_S1_RXAK_MASK I2C_S_RXAK_MASK |
AnnaBridge | 171:3a7713b1edbc | 8004 | #define I2C_S1_RXAK_SHIFT I2C_S_RXAK_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8005 | #define I2C_S1_IICIF_MASK I2C_S_IICIF_MASK |
AnnaBridge | 171:3a7713b1edbc | 8006 | #define I2C_S1_IICIF_SHIFT I2C_S_IICIF_SHIFTFT |
AnnaBridge | 171:3a7713b1edbc | 8007 | #define I2C_S1_SRW_MASK I2C_S_SRW_MASK |
AnnaBridge | 171:3a7713b1edbc | 8008 | #define I2C_S1_SRW_SHIFT I2C_S_SRW_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8009 | #define I2C_S1_RAM_MASK I2C_S_RAM_MASK |
AnnaBridge | 171:3a7713b1edbc | 8010 | #define I2C_S1_RAM_SHIFT I2C_S_RAM_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8011 | #define I2C_S1_ARBL_MASK I2C_S_ARBL_MASK |
AnnaBridge | 171:3a7713b1edbc | 8012 | #define I2C_S1_ARBL_SHIFT I2C_S_ARBL_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8013 | #define I2C_S1_BUSY_MASK I2C_S_BUSY_MASK |
AnnaBridge | 171:3a7713b1edbc | 8014 | #define I2C_S1_BUSY_SHIFT I2C_S_BUSY_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8015 | #define I2C_S1_IAAS_MASK I2C_S_IAAS_MASK |
AnnaBridge | 171:3a7713b1edbc | 8016 | #define I2C_S1_IAAS_SHIFT I2C_S_IAAS_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8017 | #define I2C_S1_TCF_MASK I2C_S_TCF_MASK |
AnnaBridge | 171:3a7713b1edbc | 8018 | #define I2C_S1_TCF_SHIFT I2C_S_TCF_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8019 | #define I2C_S1_REG(base) I2C_S_REG(base) |
AnnaBridge | 171:3a7713b1edbc | 8020 | #define I2C0_S1 I2C0_S |
AnnaBridge | 171:3a7713b1edbc | 8021 | #define I2C1_S1 I2C1_S |
AnnaBridge | 171:3a7713b1edbc | 8022 | #define PTA_BASE GPIOA_BASE |
AnnaBridge | 171:3a7713b1edbc | 8023 | #define PTB_BASE GPIOB_BASE |
AnnaBridge | 171:3a7713b1edbc | 8024 | #define PTC_BASE GPIOC_BASE |
AnnaBridge | 171:3a7713b1edbc | 8025 | #define PTD_BASE GPIOD_BASE |
AnnaBridge | 171:3a7713b1edbc | 8026 | #define PTE_BASE GPIOE_BASE |
AnnaBridge | 171:3a7713b1edbc | 8027 | #define PTA GPIOA |
AnnaBridge | 171:3a7713b1edbc | 8028 | #define PTB GPIOB |
AnnaBridge | 171:3a7713b1edbc | 8029 | #define PTC GPIOC |
AnnaBridge | 171:3a7713b1edbc | 8030 | #define PTD GPIOD |
AnnaBridge | 171:3a7713b1edbc | 8031 | #define PTE GPIOE |
AnnaBridge | 171:3a7713b1edbc | 8032 | #define UART0_FLEXIO_IRQn UART2_FLEXIO_IRQn |
AnnaBridge | 171:3a7713b1edbc | 8033 | #define UART0_FLEXIO_IRQHandler UART2_FLEXIO_IRQHandler |
AnnaBridge | 171:3a7713b1edbc | 8034 | #define SIM_SOPT5_UART0ODE_MASK SIM_SOPT5_UART2ODE_MASK |
AnnaBridge | 171:3a7713b1edbc | 8035 | #define SIM_SOPT5_UART0ODE_SHIFT SIM_SOPT5_UART2ODE_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8036 | #define SIM_SCGC4_UART0_MASK SIM_SCGC4_UART2_MASK |
AnnaBridge | 171:3a7713b1edbc | 8037 | #define SIM_SCGC4_UART0_SHIFT SIM_SCGC4_UART2_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8038 | #define UART0_BASE UART2_BASE |
AnnaBridge | 171:3a7713b1edbc | 8039 | #define UART0_BDH UART2_BDH |
AnnaBridge | 171:3a7713b1edbc | 8040 | #define UART0_BDL UART2_BDL |
AnnaBridge | 171:3a7713b1edbc | 8041 | #define UART0_C1 UART2_C1 |
AnnaBridge | 171:3a7713b1edbc | 8042 | #define UART0_C2 UART2_C2 |
AnnaBridge | 171:3a7713b1edbc | 8043 | #define UART0_S1 UART2_S1 |
AnnaBridge | 171:3a7713b1edbc | 8044 | #define UART0_S2 UART2_S2 |
AnnaBridge | 171:3a7713b1edbc | 8045 | #define UART0_C3 UART2_C3 |
AnnaBridge | 171:3a7713b1edbc | 8046 | #define UART0_D UART2_D |
AnnaBridge | 171:3a7713b1edbc | 8047 | #define UART0_MA1 UART2_MA1 |
AnnaBridge | 171:3a7713b1edbc | 8048 | #define UART0_MA2 UART2_MA2 |
AnnaBridge | 171:3a7713b1edbc | 8049 | #define UART0_C4 UART2_C4 |
AnnaBridge | 171:3a7713b1edbc | 8050 | #define UART0_C5 UART2_C5 |
AnnaBridge | 171:3a7713b1edbc | 8051 | #define UART0_ED UART2_ED |
AnnaBridge | 171:3a7713b1edbc | 8052 | #define UART0_MODEM UART2_MODEM |
AnnaBridge | 171:3a7713b1edbc | 8053 | #define UART0_IR UART2_IR |
AnnaBridge | 171:3a7713b1edbc | 8054 | #define UART0_PFIFO UART2_PFIFO |
AnnaBridge | 171:3a7713b1edbc | 8055 | #define UART0_CFIFO UART2_CFIFO |
AnnaBridge | 171:3a7713b1edbc | 8056 | #define UART0_SFIFO UART2_SFIFO |
AnnaBridge | 171:3a7713b1edbc | 8057 | #define UART0_TWFIFO UART2_TWFIFO |
AnnaBridge | 171:3a7713b1edbc | 8058 | #define UART0_TCFIFO UART2_TCFIFO |
AnnaBridge | 171:3a7713b1edbc | 8059 | #define UART0_RWFIFO UART2_RWFIFO |
AnnaBridge | 171:3a7713b1edbc | 8060 | #define UART0_RCFIFO UART2_RCFIFO |
AnnaBridge | 171:3a7713b1edbc | 8061 | #define UART0_C7816 UART2_C7816 |
AnnaBridge | 171:3a7713b1edbc | 8062 | #define UART0_IE7816 UART2_IE7816 |
AnnaBridge | 171:3a7713b1edbc | 8063 | #define UART0_IS7816 UART2_IS7816 |
AnnaBridge | 171:3a7713b1edbc | 8064 | #define UART0_WP7816 UART2_WP7816 |
AnnaBridge | 171:3a7713b1edbc | 8065 | #define UART0_WN7816 UART2_WN7816 |
AnnaBridge | 171:3a7713b1edbc | 8066 | #define UART0_WF7816 UART2_WF7816 |
AnnaBridge | 171:3a7713b1edbc | 8067 | #define UART0_ET7816 UART2_ET7816 |
AnnaBridge | 171:3a7713b1edbc | 8068 | #define UART0_TL7816 UART2_TL7816 |
AnnaBridge | 171:3a7713b1edbc | 8069 | #define UART0_AP7816A_T0 UART2_AP7816A_T0 |
AnnaBridge | 171:3a7713b1edbc | 8070 | #define UART0_AP7816B_T0 UART2_AP7816B_T0 |
AnnaBridge | 171:3a7713b1edbc | 8071 | #define UART0_WP7816A_T0 UART2_WP7816A_T0 |
AnnaBridge | 171:3a7713b1edbc | 8072 | #define UART0_WP7816A_T1 UART2_WP7816A_T1 |
AnnaBridge | 171:3a7713b1edbc | 8073 | #define UART0_WP7816B_T0 UART2_WP7816B_T0 |
AnnaBridge | 171:3a7713b1edbc | 8074 | #define UART0_WP7816B_T1 UART2_WP7816B_T1 |
AnnaBridge | 171:3a7713b1edbc | 8075 | #define UART0_WGP7816_T1 UART2_WGP7816_T1 |
AnnaBridge | 171:3a7713b1edbc | 8076 | #define UART0_WP7816C_T1 UART2_WP7816C_T1 |
AnnaBridge | 171:3a7713b1edbc | 8077 | #define I2S0_MDR This_symb_has_been_deprecated |
AnnaBridge | 171:3a7713b1edbc | 8078 | #define I2S_MDR_DIVIDE_MASK This_symb_has_been_deprecated |
AnnaBridge | 171:3a7713b1edbc | 8079 | #define I2S_MDR_DIVIDE_SHIFT This_symb_has_been_deprecated |
AnnaBridge | 171:3a7713b1edbc | 8080 | #define I2S_MDR_DIVIDE(x) This_symb_has_been_deprecated |
AnnaBridge | 171:3a7713b1edbc | 8081 | #define I2S_MDR_FRACT_MASK This_symb_has_been_deprecated |
AnnaBridge | 171:3a7713b1edbc | 8082 | #define I2S_MDR_FRACT_SHIFT This_symb_has_been_deprecated |
AnnaBridge | 171:3a7713b1edbc | 8083 | #define I2S_MDR_FRACT(x) This_symb_has_been_deprecated |
AnnaBridge | 171:3a7713b1edbc | 8084 | #define I2S_MDR_REG(base) This_symb_has_been_deprecated |
AnnaBridge | 171:3a7713b1edbc | 8085 | #define CTL0 OTGCTL |
AnnaBridge | 171:3a7713b1edbc | 8086 | #define USB0_CTL0 USB0_OTGCTL |
AnnaBridge | 171:3a7713b1edbc | 8087 | #define USB_CTL0_REG(base) USB_OTGCTL_REG(base) |
AnnaBridge | 171:3a7713b1edbc | 8088 | #define USB_CTL0_DPHIGH_MASK USB_OTGCTL_DPHIGH_MASK |
AnnaBridge | 171:3a7713b1edbc | 8089 | #define USB_CTL0_DPHIGH_SHIFT USB_OTGCTL_DPHIGH_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8090 | #define CTL1 CTL |
AnnaBridge | 171:3a7713b1edbc | 8091 | #define USB0_CTL1 USB0_CTL |
AnnaBridge | 171:3a7713b1edbc | 8092 | #define USB_CTL1_REG(base) USB_CTL_REG(base) |
AnnaBridge | 171:3a7713b1edbc | 8093 | #define USB_CTL1_USBEN_MASK USB_CTL_USBEN_MASK |
AnnaBridge | 171:3a7713b1edbc | 8094 | #define USB_CTL1_USBEN_SHIFT USB_CTL_USBEN_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8095 | #define USB_CTL1_ODDRST_MASK USB_CTL_ODDRST_MASK |
AnnaBridge | 171:3a7713b1edbc | 8096 | #define USB_CTL1_ODDRST_SHIFT USB_CTL_ODDRST_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8097 | #define USB_CTL1_TXSUSPENDTOKENBUSY_MASK USB_CTL_TXSUSPENDTOKENBUSY_MASK |
AnnaBridge | 171:3a7713b1edbc | 8098 | #define USB_CTL1_TXSUSPENDTOKENBUSY_SHIFT USB_CTL_TXSUSPENDTOKENBUSY_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8099 | #define USB_CTL1_SE0_MASK USB_CTL_SE0_MASK |
AnnaBridge | 171:3a7713b1edbc | 8100 | #define USB_CTL1_SE0_SHIFT USB_CTL_SE0_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8101 | #define USB_CTL1_JSTATE_MASK USB_CTL_JSTATE_MASK |
AnnaBridge | 171:3a7713b1edbc | 8102 | #define USB_CTL1_JSTATE_SHIFT USB_CTL_JSTATE_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8103 | #define USB_CTL_USBEN_MASK USB_CTL_USBENSOFEN_MASK |
AnnaBridge | 171:3a7713b1edbc | 8104 | #define USB_CTL_USBEN_SHIFT USB_CTL_USBENSOFEN_SHIFT |
AnnaBridge | 171:3a7713b1edbc | 8105 | |
AnnaBridge | 171:3a7713b1edbc | 8106 | /*! |
AnnaBridge | 171:3a7713b1edbc | 8107 | * @} |
AnnaBridge | 171:3a7713b1edbc | 8108 | */ /* end of group SDK_Compatibility_Symbols */ |
AnnaBridge | 171:3a7713b1edbc | 8109 | |
AnnaBridge | 171:3a7713b1edbc | 8110 | |
AnnaBridge | 171:3a7713b1edbc | 8111 | #endif /* _MKL43Z4_H_ */ |
AnnaBridge | 171:3a7713b1edbc | 8112 |