/*\r
** ###################################################################\r
** Processors: LPC55S69JBD100_cm33_core0\r
-** LPC55S69JET98_cm33_core0\r
+** LPC55S69JBD64_cm33_core0\r
+** LPC55S69JEV98_cm33_core0\r
**\r
** Compilers: GNU C Compiler\r
** IAR ANSI C/C++ Compiler for ARM\r
** Keil ARM C/C++ Compiler\r
** MCUXpresso Compiler\r
**\r
-** Reference manual: LPC55xx/LPC55Sxx User manual Rev.0.4 25 Sep 2018\r
-** Version: rev. 1.0, 2018-08-22\r
-** Build: b190122\r
+** Reference manual: LPC55S6x/LPC55S2x/LPC552x User manual(UM11126) Rev.1.3 16 May 2019\r
+** Version: rev. 1.1, 2019-05-16\r
+** Build: b191017\r
**\r
** Abstract:\r
** CMSIS Peripheral Access Layer for LPC55S69_cm33_core0\r
** Revisions:\r
** - rev. 1.0 (2018-08-22)\r
** Initial version based on v0.2UM\r
+** - rev. 1.1 (2019-05-16)\r
+** Initial A1 version based on v1.3UM\r
**\r
** ###################################################################\r
*/\r
\r
/*!\r
* @file LPC55S69_cm33_core0.h\r
- * @version 1.0\r
- * @date 2018-08-22\r
+ * @version 1.1\r
+ * @date 2019-05-16\r
* @brief CMSIS Peripheral Access Layer for LPC55S69_cm33_core0\r
*\r
* CMSIS Peripheral Access Layer for LPC55S69_cm33_core0\r
*/\r
\r
#ifndef _LPC55S69_CM33_CORE0_H_\r
-#define _LPC55S69_CM33_CORE0_H_ /**< Symbol preventing repeated inclusion */\r
+#define _LPC55S69_CM33_CORE0_H_ /**< Symbol preventing repeated inclusion */\r
\r
/** Memory map major version (memory maps with equal major version number are\r
* compatible) */\r
#define MCU_MEM_MAP_VERSION 0x0100U\r
/** Memory map minor version */\r
-#define MCU_MEM_MAP_VERSION_MINOR 0x0000U\r
-\r
+#define MCU_MEM_MAP_VERSION_MINOR 0x0001U\r
\r
/* ----------------------------------------------------------------------------\r
-- Interrupt vector numbers\r
*/\r
\r
/** Interrupt Number Definitions */\r
-#define NUMBER_OF_INT_VECTORS 76 /**< Number of interrupts in the Vector table */\r
-\r
-typedef enum IRQn {\r
- /* Auxiliary constants */\r
- NotAvail_IRQn = -128, /**< Not available device specific interrupt */\r
-\r
- /* Core interrupts */\r
- NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */\r
- HardFault_IRQn = -13, /**< Cortex-M33 SV Hard Fault Interrupt */\r
- MemoryManagement_IRQn = -12, /**< Cortex-M33 Memory Management Interrupt */\r
- BusFault_IRQn = -11, /**< Cortex-M33 Bus Fault Interrupt */\r
- UsageFault_IRQn = -10, /**< Cortex-M33 Usage Fault Interrupt */\r
- SecureFault_IRQn = -9, /**< Cortex-M33 Secure Fault Interrupt */\r
- SVCall_IRQn = -5, /**< Cortex-M33 SV Call Interrupt */\r
- DebugMonitor_IRQn = -4, /**< Cortex-M33 Debug Monitor Interrupt */\r
- PendSV_IRQn = -2, /**< Cortex-M33 Pend SV Interrupt */\r
- SysTick_IRQn = -1, /**< Cortex-M33 System Tick Interrupt */\r
-\r
- /* Device specific interrupts */\r
- WDT_BOD_IRQn = 0, /**< Windowed watchdog timer, Brownout detect, Flash interrupt */\r
- DMA0_IRQn = 1, /**< DMA0 controller */\r
- GINT0_IRQn = 2, /**< GPIO group 0 */\r
- GINT1_IRQn = 3, /**< GPIO group 1 */\r
- PIN_INT0_IRQn = 4, /**< Pin interrupt 0 or pattern match engine slice 0 */\r
- PIN_INT1_IRQn = 5, /**< Pin interrupt 1or pattern match engine slice 1 */\r
- PIN_INT2_IRQn = 6, /**< Pin interrupt 2 or pattern match engine slice 2 */\r
- PIN_INT3_IRQn = 7, /**< Pin interrupt 3 or pattern match engine slice 3 */\r
- UTICK0_IRQn = 8, /**< Micro-tick Timer */\r
- MRT0_IRQn = 9, /**< Multi-rate timer */\r
- CTIMER0_IRQn = 10, /**< Standard counter/timer CTIMER0 */\r
- CTIMER1_IRQn = 11, /**< Standard counter/timer CTIMER1 */\r
- SCT0_IRQn = 12, /**< SCTimer/PWM */\r
- CTIMER3_IRQn = 13, /**< Standard counter/timer CTIMER3 */\r
- FLEXCOMM0_IRQn = 14, /**< Flexcomm Interface 0 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
- FLEXCOMM1_IRQn = 15, /**< Flexcomm Interface 1 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
- FLEXCOMM2_IRQn = 16, /**< Flexcomm Interface 2 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
- FLEXCOMM3_IRQn = 17, /**< Flexcomm Interface 3 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
- FLEXCOMM4_IRQn = 18, /**< Flexcomm Interface 4 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
- FLEXCOMM5_IRQn = 19, /**< Flexcomm Interface 5 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
- FLEXCOMM6_IRQn = 20, /**< Flexcomm Interface 6 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
- FLEXCOMM7_IRQn = 21, /**< Flexcomm Interface 7 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
- ADC0_IRQn = 22, /**< ADC0 */\r
- Reserved39_IRQn = 23, /**< Reserved interrupt */\r
- ACMP_IRQn = 24, /**< ACMP interrupts */\r
- Reserved41_IRQn = 25, /**< Reserved interrupt */\r
- Reserved42_IRQn = 26, /**< Reserved interrupt */\r
- USB0_NEEDCLK_IRQn = 27, /**< USB Activity Wake-up Interrupt */\r
- USB0_IRQn = 28, /**< USB device */\r
- RTC_IRQn = 29, /**< RTC alarm and wake-up interrupts */\r
- Reserved46_IRQn = 30, /**< Reserved interrupt */\r
- MAILBOX_IRQn = 31, /**< WAKEUP,Mailbox interrupt (present on selected devices) */\r
- PIN_INT4_IRQn = 32, /**< Pin interrupt 4 or pattern match engine slice 4 int */\r
- PIN_INT5_IRQn = 33, /**< Pin interrupt 5 or pattern match engine slice 5 int */\r
- PIN_INT6_IRQn = 34, /**< Pin interrupt 6 or pattern match engine slice 6 int */\r
- PIN_INT7_IRQn = 35, /**< Pin interrupt 7 or pattern match engine slice 7 int */\r
- CTIMER2_IRQn = 36, /**< Standard counter/timer CTIMER2 */\r
- CTIMER4_IRQn = 37, /**< Standard counter/timer CTIMER4 */\r
- OS_EVENT_IRQn = 38, /**< OSEVTIMER0 and OSEVTIMER0_WAKEUP interrupts */\r
- Reserved55_IRQn = 39, /**< Reserved interrupt */\r
- Reserved56_IRQn = 40, /**< Reserved interrupt */\r
- Reserved57_IRQn = 41, /**< Reserved interrupt */\r
- SDIO_IRQn = 42, /**< SD/MMC */\r
- Reserved59_IRQn = 43, /**< Reserved interrupt */\r
- Reserved60_IRQn = 44, /**< Reserved interrupt */\r
- Reserved61_IRQn = 45, /**< Reserved interrupt */\r
- USB1_UTMI_IRQn = 46, /**< USB1_UTMI */\r
- USB1_IRQn = 47, /**< USB1 interrupt */\r
- USB1_NEEDCLK_IRQn = 48, /**< USB1 activity */\r
- SEC_HYPERVISOR_CALL_IRQn = 49, /**< SEC_HYPERVISOR_CALL interrupt */\r
- SEC_GPIO_INT0_IRQ0_IRQn = 50, /**< SEC_GPIO_INT0_IRQ0 interrupt */\r
- SEC_GPIO_INT0_IRQ1_IRQn = 51, /**< SEC_GPIO_INT0_IRQ1 interrupt */\r
- PLU_IRQn = 52, /**< PLU interrupt */\r
- SEC_VIO_IRQn = 53, /**< SEC_VIO interrupt */\r
- HASHCRYPT_IRQn = 54, /**< HASHCRYPT interrupt */\r
- CASER_IRQn = 55, /**< CASPER interrupt */\r
- PUF_IRQn = 56, /**< PUF interrupt */\r
- PQ_IRQn = 57, /**< PQ interrupt */\r
- DMA1_IRQn = 58, /**< DMA1 interrupt */\r
- LSPI_HS_IRQn = 59 /**< Flexcomm Interface 8 (SPI, , FLEXCOMM) */\r
+#define NUMBER_OF_INT_VECTORS 76 /**< Number of interrupts in the Vector table */\r
+\r
+typedef enum IRQn\r
+{\r
+ /* Auxiliary constants */\r
+ NotAvail_IRQn = -128, /**< Not available device specific interrupt */\r
+\r
+ /* Core interrupts */\r
+ NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */\r
+ HardFault_IRQn = -13, /**< Cortex-M33 SV Hard Fault Interrupt */\r
+ MemoryManagement_IRQn = -12, /**< Cortex-M33 Memory Management Interrupt */\r
+ BusFault_IRQn = -11, /**< Cortex-M33 Bus Fault Interrupt */\r
+ UsageFault_IRQn = -10, /**< Cortex-M33 Usage Fault Interrupt */\r
+ SecureFault_IRQn = -9, /**< Cortex-M33 Secure Fault Interrupt */\r
+ SVCall_IRQn = -5, /**< Cortex-M33 SV Call Interrupt */\r
+ DebugMonitor_IRQn = -4, /**< Cortex-M33 Debug Monitor Interrupt */\r
+ PendSV_IRQn = -2, /**< Cortex-M33 Pend SV Interrupt */\r
+ SysTick_IRQn = -1, /**< Cortex-M33 System Tick Interrupt */\r
+\r
+ /* Device specific interrupts */\r
+ WDT_BOD_IRQn = 0, /**< Windowed watchdog timer, Brownout detect, Flash interrupt */\r
+ DMA0_IRQn = 1, /**< DMA0 controller */\r
+ GINT0_IRQn = 2, /**< GPIO group 0 */\r
+ GINT1_IRQn = 3, /**< GPIO group 1 */\r
+ PIN_INT0_IRQn = 4, /**< Pin interrupt 0 or pattern match engine slice 0 */\r
+ PIN_INT1_IRQn = 5, /**< Pin interrupt 1or pattern match engine slice 1 */\r
+ PIN_INT2_IRQn = 6, /**< Pin interrupt 2 or pattern match engine slice 2 */\r
+ PIN_INT3_IRQn = 7, /**< Pin interrupt 3 or pattern match engine slice 3 */\r
+ UTICK0_IRQn = 8, /**< Micro-tick Timer */\r
+ MRT0_IRQn = 9, /**< Multi-rate timer */\r
+ CTIMER0_IRQn = 10, /**< Standard counter/timer CTIMER0 */\r
+ CTIMER1_IRQn = 11, /**< Standard counter/timer CTIMER1 */\r
+ SCT0_IRQn = 12, /**< SCTimer/PWM */\r
+ CTIMER3_IRQn = 13, /**< Standard counter/timer CTIMER3 */\r
+ FLEXCOMM0_IRQn = 14, /**< Flexcomm Interface 0 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
+ FLEXCOMM1_IRQn = 15, /**< Flexcomm Interface 1 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
+ FLEXCOMM2_IRQn = 16, /**< Flexcomm Interface 2 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
+ FLEXCOMM3_IRQn = 17, /**< Flexcomm Interface 3 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
+ FLEXCOMM4_IRQn = 18, /**< Flexcomm Interface 4 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
+ FLEXCOMM5_IRQn = 19, /**< Flexcomm Interface 5 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
+ FLEXCOMM6_IRQn = 20, /**< Flexcomm Interface 6 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
+ FLEXCOMM7_IRQn = 21, /**< Flexcomm Interface 7 (USART, SPI, I2C, I2S, FLEXCOMM) */\r
+ ADC0_IRQn = 22, /**< ADC0 */\r
+ Reserved39_IRQn = 23, /**< Reserved interrupt */\r
+ ACMP_IRQn = 24, /**< ACMP interrupts */\r
+ Reserved41_IRQn = 25, /**< Reserved interrupt */\r
+ Reserved42_IRQn = 26, /**< Reserved interrupt */\r
+ USB0_NEEDCLK_IRQn = 27, /**< USB Activity Wake-up Interrupt */\r
+ USB0_IRQn = 28, /**< USB device */\r
+ RTC_IRQn = 29, /**< RTC alarm and wake-up interrupts */\r
+ Reserved46_IRQn = 30, /**< Reserved interrupt */\r
+ MAILBOX_IRQn = 31, /**< WAKEUP,Mailbox interrupt (present on selected devices) */\r
+ PIN_INT4_IRQn = 32, /**< Pin interrupt 4 or pattern match engine slice 4 int */\r
+ PIN_INT5_IRQn = 33, /**< Pin interrupt 5 or pattern match engine slice 5 int */\r
+ PIN_INT6_IRQn = 34, /**< Pin interrupt 6 or pattern match engine slice 6 int */\r
+ PIN_INT7_IRQn = 35, /**< Pin interrupt 7 or pattern match engine slice 7 int */\r
+ CTIMER2_IRQn = 36, /**< Standard counter/timer CTIMER2 */\r
+ CTIMER4_IRQn = 37, /**< Standard counter/timer CTIMER4 */\r
+ OS_EVENT_IRQn = 38, /**< OSEVTIMER0 and OSEVTIMER0_WAKEUP interrupts */\r
+ Reserved55_IRQn = 39, /**< Reserved interrupt */\r
+ Reserved56_IRQn = 40, /**< Reserved interrupt */\r
+ Reserved57_IRQn = 41, /**< Reserved interrupt */\r
+ SDIO_IRQn = 42, /**< SD/MMC */\r
+ Reserved59_IRQn = 43, /**< Reserved interrupt */\r
+ Reserved60_IRQn = 44, /**< Reserved interrupt */\r
+ Reserved61_IRQn = 45, /**< Reserved interrupt */\r
+ USB1_PHY_IRQn = 46, /**< USB1_PHY */\r
+ USB1_IRQn = 47, /**< USB1 interrupt */\r
+ USB1_NEEDCLK_IRQn = 48, /**< USB1 activity */\r
+ SEC_HYPERVISOR_CALL_IRQn = 49, /**< SEC_HYPERVISOR_CALL interrupt */\r
+ SEC_GPIO_INT0_IRQ0_IRQn = 50, /**< SEC_GPIO_INT0_IRQ0 interrupt */\r
+ SEC_GPIO_INT0_IRQ1_IRQn = 51, /**< SEC_GPIO_INT0_IRQ1 interrupt */\r
+ PLU_IRQn = 52, /**< PLU interrupt */\r
+ SEC_VIO_IRQn = 53, /**< SEC_VIO interrupt */\r
+ HASHCRYPT_IRQn = 54, /**< HASHCRYPT interrupt */\r
+ CASER_IRQn = 55, /**< CASPER interrupt */\r
+ PUF_IRQn = 56, /**< PUF interrupt */\r
+ PQ_IRQn = 57, /**< PQ interrupt */\r
+ DMA1_IRQn = 58, /**< DMA1 interrupt */\r
+ FLEXCOMM8_IRQn = 59 /**< Flexcomm Interface 8 (SPI, , FLEXCOMM) */\r
} IRQn_Type;\r
\r
/*!\r
* @}\r
*/ /* end of group Interrupt_vector_numbers */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- Cortex M33 Core Configuration\r
---------------------------------------------------------------------------- */\r
* @{\r
*/\r
\r
-#define __MPU_PRESENT 1 /**< Defines if an MPU is present or not */\r
-#define __NVIC_PRIO_BITS 3 /**< Number of priority bits implemented in the NVIC */\r
-#define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */\r
-#define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */\r
-#define __DSP_PRESENT 1 /**< Defines if Armv8-M Mainline core supports DSP instructions */\r
-#define __SAUREGION_PRESENT 1 /**< Defines if an SAU is present or not */\r
+#define __MPU_PRESENT 1 /**< Defines if an MPU is present or not */\r
+#define __NVIC_PRIO_BITS 3 /**< Number of priority bits implemented in the NVIC */\r
+#define __Vendor_SysTickConfig 0 /**< Vendor specific implementation of SysTickConfig is defined */\r
+#define __FPU_PRESENT 1 /**< Defines if an FPU is present or not */\r
+#define __DSP_PRESENT 1 /**< Defines if Armv8-M Mainline core supports DSP instructions */\r
+#define __SAUREGION_PRESENT 1 /**< Defines if an SAU is present or not */\r
\r
-#include "core_cm33.h" /* Core Peripheral Access Layer */\r
+#include "core_cm33.h" /* Core Peripheral Access Layer */\r
#include "system_LPC55S69_cm33_core0.h" /* Device specific configuration file */\r
\r
/*!\r
* @}\r
*/ /* end of group Cortex_Core_Configuration */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- Mapping Information\r
---------------------------------------------------------------------------- */\r
*/\r
typedef enum _dma_request_source\r
{\r
- kDma0RequestHashCrypt = 0U, /**< HashCrypt */\r
- kDma1RequestHashCryptInput = 0U, /**< HashCrypt Input */\r
- kDma0RequestNoDMARequest1 = 1U, /**< No DMA request 1 */\r
- kDma1RequestNoDMARequest1 = 1U, /**< No DMA request 1 */\r
- kDma0RequestFlexcomm8Rx = 2U, /**< Flexcomm Interface 8 RX */\r
- kDma1RequestFlexcomm8Rx = 2U, /**< Flexcomm Interface 8 RX */\r
- kDma0RequestFlexcomm8Tx = 3U, /**< Flexcomm Interface 8 TX */\r
- kDma1RequestFlexcomm8Tx = 3U, /**< Flexcomm Interface 8 TX */\r
- kDma0RequestFlexcomm0Rx = 4U, /**< Flexcomm Interface 0 RX/I2C Slave */\r
- kDma1RequestFlexcomm0Rx = 4U, /**< Flexcomm Interface 0 RX/I2C Slave */\r
- kDma0RequestFlexcomm0Tx = 5U, /**< Flexcomm Interface 0 TX/I2C Master */\r
- kDma1RequestFlexcomm0Tx = 5U, /**< Flexcomm Interface 0 TX/I2C Master */\r
- kDma0RequestFlexcomm1Rx = 6U, /**< Flexcomm Interface 1 RX/I2C Slave */\r
- kDma1RequestFlexcomm1Rx = 6U, /**< Flexcomm Interface 1 RX/I2C Slave */\r
- kDma0RequestFlexcomm1Tx = 7U, /**< Flexcomm Interface 1 TX/I2C Master */\r
- kDma1RequestFlexcomm1Tx = 7U, /**< Flexcomm Interface 1 TX/I2C Master */\r
- kDma0RequestFlexcomm2Rx = 8U, /**< Flexcomm Interface 2 RX/I2C Slave */\r
- kDma1RequestFlexcomm2Rx = 8U, /**< Flexcomm Interface 2 RX/I2C Slave */\r
- kDma0RequestFlexcomm2Tx = 9U, /**< Flexcomm Interface 2 TX/I2C Master */\r
- kDma1RequestFlexcomm2Tx = 9U, /**< Flexcomm Interface 2 TX/I2C Master */\r
- kDma0RequestFlexcomm3Rx = 10U, /**< Flexcomm Interface 3 RX/I2C Slave */\r
- kDma0RequestFlexcomm3Tx = 11U, /**< Flexcomm Interface 3 TX/I2C Master */\r
- kDma0RequestFlexcomm4Rx = 12U, /**< Flexcomm Interface 4 RX/I2C Slave */\r
- kDma0RequestFlexcomm4Tx = 13U, /**< Flexcomm Interface 4 TX/I2C Master */\r
- kDma0RequestFlexcomm5Rx = 14U, /**< Flexcomm Interface 5 RX/I2C Slave */\r
- kDma0RequestFlexcomm5Tx = 15U, /**< Flexcomm Interface 5 TX/I2C Master */\r
- kDma0RequestFlexcomm6Rx = 16U, /**< Flexcomm Interface 6 RX/I2C Slave */\r
- kDma0RequestFlexcomm6Tx = 17U, /**< Flexcomm Interface 6 TX/I2C Master */\r
- kDma0RequestFlexcomm7Rx = 18U, /**< Flexcomm Interface 7 RX/I2C Slave */\r
- kDma0RequestFlexcomm7Tx = 19U, /**< Flexcomm Interface 7 TX/I2C Master */\r
- kDma0RequestNoDMARequest20 = 20U, /**< No DMA request 20 */\r
- kDma0RequestADC0FIFO0 = 21U, /**< ADC0 FIFO 0 */\r
- kDma0RequestADC0FIFO1 = 22U, /**< ADC0 FIFO 1 */\r
+ kDma0RequestHashCrypt = 0U, /**< HashCrypt */\r
+ kDma1RequestHashCrypt = 0U, /**< HashCrypt */\r
+ kDma0RequestNoDMARequest1 = 1U, /**< No DMA request 1 */\r
+ kDma1RequestNoDMARequest1 = 1U, /**< No DMA request 1 */\r
+ kDma0RequestFlexcomm8Rx = 2U, /**< Flexcomm Interface 8 RX */\r
+ kDma1RequestFlexcomm8Rx = 2U, /**< Flexcomm Interface 8 RX */\r
+ kDma0RequestFlexcomm8Tx = 3U, /**< Flexcomm Interface 8 TX */\r
+ kDma1RequestFlexcomm8Tx = 3U, /**< Flexcomm Interface 8 TX */\r
+ kDma0RequestFlexcomm0Rx = 4U, /**< Flexcomm Interface 0 RX/I2C Slave */\r
+ kDma1RequestFlexcomm0Rx = 4U, /**< Flexcomm Interface 0 RX/I2C Slave */\r
+ kDma0RequestFlexcomm0Tx = 5U, /**< Flexcomm Interface 0 TX/I2C Master */\r
+ kDma1RequestFlexcomm0Tx = 5U, /**< Flexcomm Interface 0 TX/I2C Master */\r
+ kDma0RequestFlexcomm1Rx = 6U, /**< Flexcomm Interface 1 RX/I2C Slave */\r
+ kDma1RequestFlexcomm1Rx = 6U, /**< Flexcomm Interface 1 RX/I2C Slave */\r
+ kDma0RequestFlexcomm1Tx = 7U, /**< Flexcomm Interface 1 TX/I2C Master */\r
+ kDma1RequestFlexcomm1Tx = 7U, /**< Flexcomm Interface 1 TX/I2C Master */\r
+ kDma0RequestFlexcomm3Rx = 8U, /**< Flexcomm Interface 3 RX/I2C Slave */\r
+ kDma1RequestFlexcomm3Rx = 8U, /**< Flexcomm Interface 3 RX/I2C Slave */\r
+ kDma0RequestFlexcomm3Tx = 9U, /**< Flexcomm Interface 3 TX/I2C Master */\r
+ kDma1RequestFlexcomm3Tx = 9U, /**< Flexcomm Interface 3 TX/I2C Master */\r
+ kDma0RequestFlexcomm2Rx = 10U, /**< Flexcomm Interface 2 RX/I2C Slave */\r
+ kDma0RequestFlexcomm2Tx = 11U, /**< Flexcomm Interface 2 TX/I2C Master */\r
+ kDma0RequestFlexcomm4Rx = 12U, /**< Flexcomm Interface 4 RX/I2C Slave */\r
+ kDma0RequestFlexcomm4Tx = 13U, /**< Flexcomm Interface 4 TX/I2C Master */\r
+ kDma0RequestFlexcomm5Rx = 14U, /**< Flexcomm Interface 5 RX/I2C Slave */\r
+ kDma0RequestFlexcomm5Tx = 15U, /**< Flexcomm Interface 5 TX/I2C Master */\r
+ kDma0RequestFlexcomm6Rx = 16U, /**< Flexcomm Interface 6 RX/I2C Slave */\r
+ kDma0RequestFlexcomm6Tx = 17U, /**< Flexcomm Interface 6 TX/I2C Master */\r
+ kDma0RequestFlexcomm7Rx = 18U, /**< Flexcomm Interface 7 RX/I2C Slave */\r
+ kDma0RequestFlexcomm7Tx = 19U, /**< Flexcomm Interface 7 TX/I2C Master */\r
+ kDma0RequestNoDMARequest20 = 20U, /**< No DMA request 20 */\r
+ kDma0RequestADC0FIFO0 = 21U, /**< ADC0 FIFO 0 */\r
+ kDma0RequestADC0FIFO1 = 22U, /**< ADC0 FIFO 1 */\r
} dma_request_source_t;\r
\r
/* @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group Mapping_Information */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- Device Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
* @{\r
*/\r
\r
-\r
/*\r
** Start of section using anonymous unions\r
*/\r
\r
#if defined(__ARMCC_VERSION)\r
- #if (__ARMCC_VERSION >= 6010050)\r
- #pragma clang diagnostic push\r
- #else\r
- #pragma push\r
- #pragma anon_unions\r
- #endif\r
+#if (__ARMCC_VERSION >= 6010050)\r
+#pragma clang diagnostic push\r
+#else\r
+#pragma push\r
+#pragma anon_unions\r
+#endif\r
#elif defined(__GNUC__)\r
- /* anonymous unions are enabled by default */\r
+/* anonymous unions are enabled by default */\r
#elif defined(__IAR_SYSTEMS_ICC__)\r
- #pragma language=extended\r
+#pragma language = extended\r
#else\r
- #error Not supported compiler type\r
+#error Not supported compiler type\r
#endif\r
\r
/* ----------------------------------------------------------------------------\r
*/\r
\r
/** ADC - Register Layout Typedef */\r
-typedef struct {\r
- __I uint32_t VERID; /**< Version ID Register, offset: 0x0 */\r
- __I uint32_t PARAM; /**< Parameter Register, offset: 0x4 */\r
- uint8_t RESERVED_0[8];\r
- __IO uint32_t CTRL; /**< ADC Control Register, offset: 0x10 */\r
- __IO uint32_t STAT; /**< ADC Status Register, offset: 0x14 */\r
- __IO uint32_t IE; /**< Interrupt Enable Register, offset: 0x18 */\r
- __IO uint32_t DE; /**< DMA Enable Register, offset: 0x1C */\r
- __IO uint32_t CFG; /**< ADC Configuration Register, offset: 0x20 */\r
- __IO uint32_t PAUSE; /**< ADC Pause Register, offset: 0x24 */\r
- uint8_t RESERVED_1[12];\r
- __IO uint32_t SWTRIG; /**< Software Trigger Register, offset: 0x34 */\r
- __IO uint32_t TSTAT; /**< Trigger Status Register, offset: 0x38 */\r
- uint8_t RESERVED_2[4];\r
- __IO uint32_t OFSTRIM; /**< ADC Offset Trim Register, offset: 0x40 */\r
- uint8_t RESERVED_3[92];\r
- __IO uint32_t TCTRL[16]; /**< Trigger Control Register, array offset: 0xA0, array step: 0x4 */\r
- __IO uint32_t FCTRL[2]; /**< FIFO Control Register, array offset: 0xE0, array step: 0x4 */\r
- uint8_t RESERVED_4[8];\r
- __I uint32_t GCC[2]; /**< Gain Calibration Control, array offset: 0xF0, array step: 0x4 */\r
- __IO uint32_t GCR[2]; /**< Gain Calculation Result, array offset: 0xF8, array step: 0x4 */\r
- struct { /* offset: 0x100, array step: 0x8 */\r
- __IO uint32_t CMDL; /**< ADC Command Low Buffer Register, array offset: 0x100, array step: 0x8 */\r
- __IO uint32_t CMDH; /**< ADC Command High Buffer Register, array offset: 0x104, array step: 0x8 */\r
- } CMD[15];\r
- uint8_t RESERVED_5[136];\r
- __IO uint32_t CV[4]; /**< Compare Value Register, array offset: 0x200, array step: 0x4 */\r
- uint8_t RESERVED_6[240];\r
- __I uint32_t RESFIFO[2]; /**< ADC Data Result FIFO Register, array offset: 0x300, array step: 0x4 */\r
- uint8_t RESERVED_7[248];\r
- __IO uint32_t CAL_GAR[33]; /**< Calibration General A-Side Registers, array offset: 0x400, array step: 0x4 */\r
- uint8_t RESERVED_8[124];\r
- __IO uint32_t CAL_GBR[33]; /**< Calibration General B-Side Registers, array offset: 0x500, array step: 0x4 */\r
- uint8_t RESERVED_9[2680];\r
- __IO uint32_t TST; /**< ADC Test Register, offset: 0xFFC */\r
+typedef struct\r
+{\r
+ __I uint32_t VERID; /**< Version ID Register, offset: 0x0 */\r
+ __I uint32_t PARAM; /**< Parameter Register, offset: 0x4 */\r
+ uint8_t RESERVED_0[8];\r
+ __IO uint32_t CTRL; /**< ADC Control Register, offset: 0x10 */\r
+ __IO uint32_t STAT; /**< ADC Status Register, offset: 0x14 */\r
+ __IO uint32_t IE; /**< Interrupt Enable Register, offset: 0x18 */\r
+ __IO uint32_t DE; /**< DMA Enable Register, offset: 0x1C */\r
+ __IO uint32_t CFG; /**< ADC Configuration Register, offset: 0x20 */\r
+ __IO uint32_t PAUSE; /**< ADC Pause Register, offset: 0x24 */\r
+ uint8_t RESERVED_1[12];\r
+ __O uint32_t SWTRIG; /**< Software Trigger Register, offset: 0x34 */\r
+ __IO uint32_t TSTAT; /**< Trigger Status Register, offset: 0x38 */\r
+ uint8_t RESERVED_2[4];\r
+ __IO uint32_t OFSTRIM; /**< ADC Offset Trim Register, offset: 0x40 */\r
+ uint8_t RESERVED_3[92];\r
+ __IO uint32_t TCTRL[16]; /**< Trigger Control Register, array offset: 0xA0, array step: 0x4 */\r
+ __IO uint32_t FCTRL[2]; /**< FIFO Control Register, array offset: 0xE0, array step: 0x4 */\r
+ uint8_t RESERVED_4[8];\r
+ __I uint32_t GCC[2]; /**< Gain Calibration Control, array offset: 0xF0, array step: 0x4 */\r
+ __IO uint32_t GCR[2]; /**< Gain Calculation Result, array offset: 0xF8, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x100, array step: 0x8 */\r
+ __IO uint32_t CMDL; /**< ADC Command Low Buffer Register, array offset: 0x100, array step: 0x8 */\r
+ __IO uint32_t CMDH; /**< ADC Command High Buffer Register, array offset: 0x104, array step: 0x8 */\r
+ } CMD[15];\r
+ uint8_t RESERVED_5[136];\r
+ __IO uint32_t CV[4]; /**< Compare Value Register, array offset: 0x200, array step: 0x4 */\r
+ uint8_t RESERVED_6[240];\r
+ __I uint32_t RESFIFO[2]; /**< ADC Data Result FIFO Register, array offset: 0x300, array step: 0x4 */\r
+ uint8_t RESERVED_7[248];\r
+ __IO uint32_t CAL_GAR[33]; /**< Calibration General A-Side Registers, array offset: 0x400, array step: 0x4 */\r
+ uint8_t RESERVED_8[124];\r
+ __IO uint32_t CAL_GBR[33]; /**< Calibration General B-Side Registers, array offset: 0x500, array step: 0x4 */\r
+ uint8_t RESERVED_9[2680];\r
+ __IO uint32_t TST; /**< ADC Test Register, offset: 0xFFC */\r
} ADC_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name VERID - Version ID Register */\r
/*! @{ */\r
-#define ADC_VERID_RES_MASK (0x1U)\r
-#define ADC_VERID_RES_SHIFT (0U)\r
+#define ADC_VERID_RES_MASK (0x1U)\r
+#define ADC_VERID_RES_SHIFT (0U)\r
/*! RES - Resolution\r
* 0b0..Up to 13-bit differential/12-bit single ended resolution supported.\r
* 0b1..Up to 16-bit differential/16-bit single ended resolution supported.\r
*/\r
-#define ADC_VERID_RES(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_RES_SHIFT)) & ADC_VERID_RES_MASK)\r
-#define ADC_VERID_DIFFEN_MASK (0x2U)\r
-#define ADC_VERID_DIFFEN_SHIFT (1U)\r
+#define ADC_VERID_RES(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_RES_SHIFT)) & ADC_VERID_RES_MASK)\r
+#define ADC_VERID_DIFFEN_MASK (0x2U)\r
+#define ADC_VERID_DIFFEN_SHIFT (1U)\r
/*! DIFFEN - Differential Supported\r
* 0b0..Differential operation not supported.\r
* 0b1..Differential operation supported. CMDLa[CTYPE] controls fields implemented.\r
*/\r
-#define ADC_VERID_DIFFEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_DIFFEN_SHIFT)) & ADC_VERID_DIFFEN_MASK)\r
-#define ADC_VERID_MVI_MASK (0x8U)\r
-#define ADC_VERID_MVI_SHIFT (3U)\r
+#define ADC_VERID_DIFFEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_DIFFEN_SHIFT)) & ADC_VERID_DIFFEN_MASK)\r
+#define ADC_VERID_MVI_MASK (0x8U)\r
+#define ADC_VERID_MVI_SHIFT (3U)\r
/*! MVI - Multi Vref Implemented\r
* 0b0..Single voltage reference high (VREFH) input supported.\r
* 0b1..Multiple voltage reference high (VREFH) inputs supported.\r
*/\r
-#define ADC_VERID_MVI(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_MVI_SHIFT)) & ADC_VERID_MVI_MASK)\r
-#define ADC_VERID_CSW_MASK (0x70U)\r
-#define ADC_VERID_CSW_SHIFT (4U)\r
+#define ADC_VERID_MVI(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_MVI_SHIFT)) & ADC_VERID_MVI_MASK)\r
+#define ADC_VERID_CSW_MASK (0x70U)\r
+#define ADC_VERID_CSW_SHIFT (4U)\r
/*! CSW - Channel Scale Width\r
* 0b000..Channel scaling not supported.\r
* 0b001..Channel scaling supported. 1-bit CSCALE control field.\r
* 0b110..Channel scaling supported. 6-bit CSCALE control field.\r
*/\r
-#define ADC_VERID_CSW(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_CSW_SHIFT)) & ADC_VERID_CSW_MASK)\r
-#define ADC_VERID_VR1RNGI_MASK (0x100U)\r
-#define ADC_VERID_VR1RNGI_SHIFT (8U)\r
+#define ADC_VERID_CSW(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_CSW_SHIFT)) & ADC_VERID_CSW_MASK)\r
+#define ADC_VERID_VR1RNGI_MASK (0x100U)\r
+#define ADC_VERID_VR1RNGI_SHIFT (8U)\r
/*! VR1RNGI - Voltage Reference 1 Range Control Bit Implemented\r
* 0b0..Range control not required. CFG[VREF1RNG] is not implemented.\r
* 0b1..Range control required. CFG[VREF1RNG] is implemented.\r
*/\r
-#define ADC_VERID_VR1RNGI(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_VR1RNGI_SHIFT)) & ADC_VERID_VR1RNGI_MASK)\r
-#define ADC_VERID_IADCKI_MASK (0x200U)\r
-#define ADC_VERID_IADCKI_SHIFT (9U)\r
+#define ADC_VERID_VR1RNGI(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_VR1RNGI_SHIFT)) & ADC_VERID_VR1RNGI_MASK)\r
+#define ADC_VERID_IADCKI_MASK (0x200U)\r
+#define ADC_VERID_IADCKI_SHIFT (9U)\r
/*! IADCKI - Internal ADC Clock implemented\r
* 0b0..Internal clock source not implemented.\r
* 0b1..Internal clock source (and CFG[ADCKEN]) implemented.\r
*/\r
-#define ADC_VERID_IADCKI(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_IADCKI_SHIFT)) & ADC_VERID_IADCKI_MASK)\r
-#define ADC_VERID_CALOFSI_MASK (0x400U)\r
-#define ADC_VERID_CALOFSI_SHIFT (10U)\r
+#define ADC_VERID_IADCKI(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_IADCKI_SHIFT)) & ADC_VERID_IADCKI_MASK)\r
+#define ADC_VERID_CALOFSI_MASK (0x400U)\r
+#define ADC_VERID_CALOFSI_SHIFT (10U)\r
/*! CALOFSI - Calibration Function Implemented\r
* 0b0..Calibration Not Implemented.\r
* 0b1..Calibration Implemented.\r
*/\r
-#define ADC_VERID_CALOFSI(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_CALOFSI_SHIFT)) & ADC_VERID_CALOFSI_MASK)\r
-#define ADC_VERID_NUM_SEC_MASK (0x800U)\r
-#define ADC_VERID_NUM_SEC_SHIFT (11U)\r
+#define ADC_VERID_CALOFSI(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_CALOFSI_SHIFT)) & ADC_VERID_CALOFSI_MASK)\r
+#define ADC_VERID_NUM_SEC_MASK (0x800U)\r
+#define ADC_VERID_NUM_SEC_SHIFT (11U)\r
/*! NUM_SEC - Number of Single Ended Outputs Supported\r
* 0b0..This design supports one single ended conversion at a time.\r
* 0b1..This design supports two simultanious single ended conversions.\r
*/\r
-#define ADC_VERID_NUM_SEC(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_NUM_SEC_SHIFT)) & ADC_VERID_NUM_SEC_MASK)\r
-#define ADC_VERID_NUM_FIFO_MASK (0x7000U)\r
-#define ADC_VERID_NUM_FIFO_SHIFT (12U)\r
+#define ADC_VERID_NUM_SEC(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_NUM_SEC_SHIFT)) & ADC_VERID_NUM_SEC_MASK)\r
+#define ADC_VERID_NUM_FIFO_MASK (0x7000U)\r
+#define ADC_VERID_NUM_FIFO_SHIFT (12U)\r
/*! NUM_FIFO - Number of FIFOs\r
* 0b000..N/A\r
* 0b001..This design supports one result FIFO.\r
* 0b011..This design supports three result FIFOs.\r
* 0b100..This design supports four result FIFOs.\r
*/\r
-#define ADC_VERID_NUM_FIFO(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_NUM_FIFO_SHIFT)) & ADC_VERID_NUM_FIFO_MASK)\r
-#define ADC_VERID_MINOR_MASK (0xFF0000U)\r
-#define ADC_VERID_MINOR_SHIFT (16U)\r
-#define ADC_VERID_MINOR(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_MINOR_SHIFT)) & ADC_VERID_MINOR_MASK)\r
-#define ADC_VERID_MAJOR_MASK (0xFF000000U)\r
-#define ADC_VERID_MAJOR_SHIFT (24U)\r
-#define ADC_VERID_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_MAJOR_SHIFT)) & ADC_VERID_MAJOR_MASK)\r
+#define ADC_VERID_NUM_FIFO(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_NUM_FIFO_SHIFT)) & ADC_VERID_NUM_FIFO_MASK)\r
+#define ADC_VERID_MINOR_MASK (0xFF0000U)\r
+#define ADC_VERID_MINOR_SHIFT (16U)\r
+/*! MINOR - Minor Version Number\r
+ */\r
+#define ADC_VERID_MINOR(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_MINOR_SHIFT)) & ADC_VERID_MINOR_MASK)\r
+#define ADC_VERID_MAJOR_MASK (0xFF000000U)\r
+#define ADC_VERID_MAJOR_SHIFT (24U)\r
+/*! MAJOR - Major Version Number\r
+ */\r
+#define ADC_VERID_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << ADC_VERID_MAJOR_SHIFT)) & ADC_VERID_MAJOR_MASK)\r
/*! @} */\r
\r
/*! @name PARAM - Parameter Register */\r
/*! @{ */\r
-#define ADC_PARAM_TRIG_NUM_MASK (0xFFU)\r
-#define ADC_PARAM_TRIG_NUM_SHIFT (0U)\r
-#define ADC_PARAM_TRIG_NUM(x) (((uint32_t)(((uint32_t)(x)) << ADC_PARAM_TRIG_NUM_SHIFT)) & ADC_PARAM_TRIG_NUM_MASK)\r
-#define ADC_PARAM_FIFOSIZE_MASK (0xFF00U)\r
-#define ADC_PARAM_FIFOSIZE_SHIFT (8U)\r
+#define ADC_PARAM_TRIG_NUM_MASK (0xFFU)\r
+#define ADC_PARAM_TRIG_NUM_SHIFT (0U)\r
+/*! TRIG_NUM - Trigger Number\r
+ */\r
+#define ADC_PARAM_TRIG_NUM(x) (((uint32_t)(((uint32_t)(x)) << ADC_PARAM_TRIG_NUM_SHIFT)) & ADC_PARAM_TRIG_NUM_MASK)\r
+#define ADC_PARAM_FIFOSIZE_MASK (0xFF00U)\r
+#define ADC_PARAM_FIFOSIZE_SHIFT (8U)\r
/*! FIFOSIZE - Result FIFO Depth\r
* 0b00000001..Result FIFO depth = 1 dataword.\r
* 0b00000100..Result FIFO depth = 4 datawords.\r
* 0b00100000..Result FIFO depth = 32 datawords.\r
* 0b01000000..Result FIFO depth = 64 datawords.\r
*/\r
-#define ADC_PARAM_FIFOSIZE(x) (((uint32_t)(((uint32_t)(x)) << ADC_PARAM_FIFOSIZE_SHIFT)) & ADC_PARAM_FIFOSIZE_MASK)\r
-#define ADC_PARAM_CV_NUM_MASK (0xFF0000U)\r
-#define ADC_PARAM_CV_NUM_SHIFT (16U)\r
-#define ADC_PARAM_CV_NUM(x) (((uint32_t)(((uint32_t)(x)) << ADC_PARAM_CV_NUM_SHIFT)) & ADC_PARAM_CV_NUM_MASK)\r
-#define ADC_PARAM_CMD_NUM_MASK (0xFF000000U)\r
-#define ADC_PARAM_CMD_NUM_SHIFT (24U)\r
-#define ADC_PARAM_CMD_NUM(x) (((uint32_t)(((uint32_t)(x)) << ADC_PARAM_CMD_NUM_SHIFT)) & ADC_PARAM_CMD_NUM_MASK)\r
+#define ADC_PARAM_FIFOSIZE(x) (((uint32_t)(((uint32_t)(x)) << ADC_PARAM_FIFOSIZE_SHIFT)) & ADC_PARAM_FIFOSIZE_MASK)\r
+#define ADC_PARAM_CV_NUM_MASK (0xFF0000U)\r
+#define ADC_PARAM_CV_NUM_SHIFT (16U)\r
+/*! CV_NUM - Compare Value Number\r
+ */\r
+#define ADC_PARAM_CV_NUM(x) (((uint32_t)(((uint32_t)(x)) << ADC_PARAM_CV_NUM_SHIFT)) & ADC_PARAM_CV_NUM_MASK)\r
+#define ADC_PARAM_CMD_NUM_MASK (0xFF000000U)\r
+#define ADC_PARAM_CMD_NUM_SHIFT (24U)\r
+/*! CMD_NUM - Command Buffer Number\r
+ */\r
+#define ADC_PARAM_CMD_NUM(x) (((uint32_t)(((uint32_t)(x)) << ADC_PARAM_CMD_NUM_SHIFT)) & ADC_PARAM_CMD_NUM_MASK)\r
/*! @} */\r
\r
/*! @name CTRL - ADC Control Register */\r
/*! @{ */\r
-#define ADC_CTRL_ADCEN_MASK (0x1U)\r
-#define ADC_CTRL_ADCEN_SHIFT (0U)\r
+#define ADC_CTRL_ADCEN_MASK (0x1U)\r
+#define ADC_CTRL_ADCEN_SHIFT (0U)\r
/*! ADCEN - ADC Enable\r
* 0b0..ADC is disabled.\r
* 0b1..ADC is enabled.\r
*/\r
-#define ADC_CTRL_ADCEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_ADCEN_SHIFT)) & ADC_CTRL_ADCEN_MASK)\r
-#define ADC_CTRL_RST_MASK (0x2U)\r
-#define ADC_CTRL_RST_SHIFT (1U)\r
+#define ADC_CTRL_ADCEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_ADCEN_SHIFT)) & ADC_CTRL_ADCEN_MASK)\r
+#define ADC_CTRL_RST_MASK (0x2U)\r
+#define ADC_CTRL_RST_SHIFT (1U)\r
/*! RST - Software Reset\r
* 0b0..ADC logic is not reset.\r
* 0b1..ADC logic is reset.\r
*/\r
-#define ADC_CTRL_RST(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_RST_SHIFT)) & ADC_CTRL_RST_MASK)\r
-#define ADC_CTRL_DOZEN_MASK (0x4U)\r
-#define ADC_CTRL_DOZEN_SHIFT (2U)\r
+#define ADC_CTRL_RST(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_RST_SHIFT)) & ADC_CTRL_RST_MASK)\r
+#define ADC_CTRL_DOZEN_MASK (0x4U)\r
+#define ADC_CTRL_DOZEN_SHIFT (2U)\r
/*! DOZEN - Doze Enable\r
* 0b0..ADC is enabled in Doze mode.\r
* 0b1..ADC is disabled in Doze mode.\r
*/\r
-#define ADC_CTRL_DOZEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_DOZEN_SHIFT)) & ADC_CTRL_DOZEN_MASK)\r
-#define ADC_CTRL_CAL_REQ_MASK (0x8U)\r
-#define ADC_CTRL_CAL_REQ_SHIFT (3U)\r
+#define ADC_CTRL_DOZEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_DOZEN_SHIFT)) & ADC_CTRL_DOZEN_MASK)\r
+#define ADC_CTRL_CAL_REQ_MASK (0x8U)\r
+#define ADC_CTRL_CAL_REQ_SHIFT (3U)\r
/*! CAL_REQ - Auto-Calibration Request\r
* 0b0..No request for auto-calibration has been made.\r
* 0b1..A request for auto-calibration has been made\r
*/\r
-#define ADC_CTRL_CAL_REQ(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_CAL_REQ_SHIFT)) & ADC_CTRL_CAL_REQ_MASK)\r
-#define ADC_CTRL_CALOFS_MASK (0x10U)\r
-#define ADC_CTRL_CALOFS_SHIFT (4U)\r
+#define ADC_CTRL_CAL_REQ(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_CAL_REQ_SHIFT)) & ADC_CTRL_CAL_REQ_MASK)\r
+#define ADC_CTRL_CALOFS_MASK (0x10U)\r
+#define ADC_CTRL_CALOFS_SHIFT (4U)\r
/*! CALOFS - Configure for offset calibration function\r
* 0b0..Calibration function disabled\r
* 0b1..Request for offset calibration function\r
*/\r
-#define ADC_CTRL_CALOFS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_CALOFS_SHIFT)) & ADC_CTRL_CALOFS_MASK)\r
-#define ADC_CTRL_RSTFIFO0_MASK (0x100U)\r
-#define ADC_CTRL_RSTFIFO0_SHIFT (8U)\r
+#define ADC_CTRL_CALOFS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_CALOFS_SHIFT)) & ADC_CTRL_CALOFS_MASK)\r
+#define ADC_CTRL_RSTFIFO0_MASK (0x100U)\r
+#define ADC_CTRL_RSTFIFO0_SHIFT (8U)\r
/*! RSTFIFO0 - Reset FIFO 0\r
* 0b0..No effect.\r
* 0b1..FIFO 0 is reset.\r
*/\r
-#define ADC_CTRL_RSTFIFO0(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_RSTFIFO0_SHIFT)) & ADC_CTRL_RSTFIFO0_MASK)\r
-#define ADC_CTRL_RSTFIFO1_MASK (0x200U)\r
-#define ADC_CTRL_RSTFIFO1_SHIFT (9U)\r
+#define ADC_CTRL_RSTFIFO0(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_RSTFIFO0_SHIFT)) & ADC_CTRL_RSTFIFO0_MASK)\r
+#define ADC_CTRL_RSTFIFO1_MASK (0x200U)\r
+#define ADC_CTRL_RSTFIFO1_SHIFT (9U)\r
/*! RSTFIFO1 - Reset FIFO 1\r
* 0b0..No effect.\r
* 0b1..FIFO 1 is reset.\r
*/\r
-#define ADC_CTRL_RSTFIFO1(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_RSTFIFO1_SHIFT)) & ADC_CTRL_RSTFIFO1_MASK)\r
-#define ADC_CTRL_CAL_AVGS_MASK (0x70000U)\r
-#define ADC_CTRL_CAL_AVGS_SHIFT (16U)\r
+#define ADC_CTRL_RSTFIFO1(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_RSTFIFO1_SHIFT)) & ADC_CTRL_RSTFIFO1_MASK)\r
+#define ADC_CTRL_CAL_AVGS_MASK (0x70000U)\r
+#define ADC_CTRL_CAL_AVGS_SHIFT (16U)\r
/*! CAL_AVGS - Auto-Calibration Averages\r
* 0b000..Single conversion.\r
* 0b001..2 conversions averaged.\r
* 0b110..64 conversions averaged.\r
* 0b111..128 conversions averaged.\r
*/\r
-#define ADC_CTRL_CAL_AVGS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_CAL_AVGS_SHIFT)) & ADC_CTRL_CAL_AVGS_MASK)\r
+#define ADC_CTRL_CAL_AVGS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CTRL_CAL_AVGS_SHIFT)) & ADC_CTRL_CAL_AVGS_MASK)\r
/*! @} */\r
\r
/*! @name STAT - ADC Status Register */\r
/*! @{ */\r
-#define ADC_STAT_RDY0_MASK (0x1U)\r
-#define ADC_STAT_RDY0_SHIFT (0U)\r
+#define ADC_STAT_RDY0_MASK (0x1U)\r
+#define ADC_STAT_RDY0_SHIFT (0U)\r
/*! RDY0 - Result FIFO 0 Ready Flag\r
* 0b0..Result FIFO 0 data level not above watermark level.\r
* 0b1..Result FIFO 0 holding data above watermark level.\r
*/\r
-#define ADC_STAT_RDY0(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_RDY0_SHIFT)) & ADC_STAT_RDY0_MASK)\r
-#define ADC_STAT_FOF0_MASK (0x2U)\r
-#define ADC_STAT_FOF0_SHIFT (1U)\r
+#define ADC_STAT_RDY0(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_RDY0_SHIFT)) & ADC_STAT_RDY0_MASK)\r
+#define ADC_STAT_FOF0_MASK (0x2U)\r
+#define ADC_STAT_FOF0_SHIFT (1U)\r
/*! FOF0 - Result FIFO 0 Overflow Flag\r
* 0b0..No result FIFO 0 overflow has occurred since the last time the flag was cleared.\r
* 0b1..At least one result FIFO 0 overflow has occurred since the last time the flag was cleared.\r
*/\r
-#define ADC_STAT_FOF0(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_FOF0_SHIFT)) & ADC_STAT_FOF0_MASK)\r
-#define ADC_STAT_RDY1_MASK (0x4U)\r
-#define ADC_STAT_RDY1_SHIFT (2U)\r
+#define ADC_STAT_FOF0(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_FOF0_SHIFT)) & ADC_STAT_FOF0_MASK)\r
+#define ADC_STAT_RDY1_MASK (0x4U)\r
+#define ADC_STAT_RDY1_SHIFT (2U)\r
/*! RDY1 - Result FIFO1 Ready Flag\r
* 0b0..Result FIFO1 data level not above watermark level.\r
* 0b1..Result FIFO1 holding data above watermark level.\r
*/\r
-#define ADC_STAT_RDY1(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_RDY1_SHIFT)) & ADC_STAT_RDY1_MASK)\r
-#define ADC_STAT_FOF1_MASK (0x8U)\r
-#define ADC_STAT_FOF1_SHIFT (3U)\r
+#define ADC_STAT_RDY1(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_RDY1_SHIFT)) & ADC_STAT_RDY1_MASK)\r
+#define ADC_STAT_FOF1_MASK (0x8U)\r
+#define ADC_STAT_FOF1_SHIFT (3U)\r
/*! FOF1 - Result FIFO1 Overflow Flag\r
* 0b0..No result FIFO1 overflow has occurred since the last time the flag was cleared.\r
* 0b1..At least one result FIFO1 overflow has occurred since the last time the flag was cleared.\r
*/\r
-#define ADC_STAT_FOF1(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_FOF1_SHIFT)) & ADC_STAT_FOF1_MASK)\r
-#define ADC_STAT_TEXC_INT_MASK (0x100U)\r
-#define ADC_STAT_TEXC_INT_SHIFT (8U)\r
+#define ADC_STAT_FOF1(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_FOF1_SHIFT)) & ADC_STAT_FOF1_MASK)\r
+#define ADC_STAT_TEXC_INT_MASK (0x100U)\r
+#define ADC_STAT_TEXC_INT_SHIFT (8U)\r
/*! TEXC_INT - Interrupt Flag For High Priority Trigger Exception\r
* 0b0..No trigger exceptions have occurred.\r
* 0b1..A trigger exception has occurred and is pending acknowledgement.\r
*/\r
-#define ADC_STAT_TEXC_INT(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_TEXC_INT_SHIFT)) & ADC_STAT_TEXC_INT_MASK)\r
-#define ADC_STAT_TCOMP_INT_MASK (0x200U)\r
-#define ADC_STAT_TCOMP_INT_SHIFT (9U)\r
+#define ADC_STAT_TEXC_INT(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_TEXC_INT_SHIFT)) & ADC_STAT_TEXC_INT_MASK)\r
+#define ADC_STAT_TCOMP_INT_MASK (0x200U)\r
+#define ADC_STAT_TCOMP_INT_SHIFT (9U)\r
/*! TCOMP_INT - Interrupt Flag For Trigger Completion\r
* 0b0..Either IE[TCOMP_IE] is set to 0, or no trigger sequences have run to completion.\r
* 0b1..Trigger sequence has been completed and all data is stored in the associated FIFO.\r
*/\r
-#define ADC_STAT_TCOMP_INT(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_TCOMP_INT_SHIFT)) & ADC_STAT_TCOMP_INT_MASK)\r
-#define ADC_STAT_CAL_RDY_MASK (0x400U)\r
-#define ADC_STAT_CAL_RDY_SHIFT (10U)\r
+#define ADC_STAT_TCOMP_INT(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_TCOMP_INT_SHIFT)) & ADC_STAT_TCOMP_INT_MASK)\r
+#define ADC_STAT_CAL_RDY_MASK (0x400U)\r
+#define ADC_STAT_CAL_RDY_SHIFT (10U)\r
/*! CAL_RDY - Calibration Ready\r
* 0b0..Calibration is incomplete or hasn't been ran.\r
* 0b1..The ADC is calibrated.\r
*/\r
-#define ADC_STAT_CAL_RDY(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_CAL_RDY_SHIFT)) & ADC_STAT_CAL_RDY_MASK)\r
-#define ADC_STAT_ADC_ACTIVE_MASK (0x800U)\r
-#define ADC_STAT_ADC_ACTIVE_SHIFT (11U)\r
+#define ADC_STAT_CAL_RDY(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_CAL_RDY_SHIFT)) & ADC_STAT_CAL_RDY_MASK)\r
+#define ADC_STAT_ADC_ACTIVE_MASK (0x800U)\r
+#define ADC_STAT_ADC_ACTIVE_SHIFT (11U)\r
/*! ADC_ACTIVE - ADC Active\r
* 0b0..The ADC is IDLE. There are no pending triggers to service and no active commands are being processed.\r
* 0b1..The ADC is processing a conversion, running through the power up delay, or servicing a trigger.\r
*/\r
-#define ADC_STAT_ADC_ACTIVE(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_ADC_ACTIVE_SHIFT)) & ADC_STAT_ADC_ACTIVE_MASK)\r
-#define ADC_STAT_TRGACT_MASK (0xF0000U)\r
-#define ADC_STAT_TRGACT_SHIFT (16U)\r
+#define ADC_STAT_ADC_ACTIVE(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_ADC_ACTIVE_SHIFT)) & ADC_STAT_ADC_ACTIVE_MASK)\r
+#define ADC_STAT_TRGACT_MASK (0xF0000U)\r
+#define ADC_STAT_TRGACT_SHIFT (16U)\r
/*! TRGACT - Trigger Active\r
* 0b0000..Command (sequence) associated with Trigger 0 currently being executed.\r
* 0b0001..Command (sequence) associated with Trigger 1 currently being executed.\r
* 0b0010..Command (sequence) associated with Trigger 2 currently being executed.\r
* 0b0011-0b1111..Command (sequence) from the associated Trigger number is currently being executed.\r
*/\r
-#define ADC_STAT_TRGACT(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_TRGACT_SHIFT)) & ADC_STAT_TRGACT_MASK)\r
-#define ADC_STAT_CMDACT_MASK (0xF000000U)\r
-#define ADC_STAT_CMDACT_SHIFT (24U)\r
+#define ADC_STAT_TRGACT(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_TRGACT_SHIFT)) & ADC_STAT_TRGACT_MASK)\r
+#define ADC_STAT_CMDACT_MASK (0xF000000U)\r
+#define ADC_STAT_CMDACT_SHIFT (24U)\r
/*! CMDACT - Command Active\r
* 0b0000..No command is currently in progress.\r
* 0b0001..Command 1 currently being executed.\r
* 0b0010..Command 2 currently being executed.\r
* 0b0011-0b1111..Associated command number is currently being executed.\r
*/\r
-#define ADC_STAT_CMDACT(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_CMDACT_SHIFT)) & ADC_STAT_CMDACT_MASK)\r
+#define ADC_STAT_CMDACT(x) (((uint32_t)(((uint32_t)(x)) << ADC_STAT_CMDACT_SHIFT)) & ADC_STAT_CMDACT_MASK)\r
/*! @} */\r
\r
/*! @name IE - Interrupt Enable Register */\r
/*! @{ */\r
-#define ADC_IE_FWMIE0_MASK (0x1U)\r
-#define ADC_IE_FWMIE0_SHIFT (0U)\r
+#define ADC_IE_FWMIE0_MASK (0x1U)\r
+#define ADC_IE_FWMIE0_SHIFT (0U)\r
/*! FWMIE0 - FIFO 0 Watermark Interrupt Enable\r
* 0b0..FIFO 0 watermark interrupts are not enabled.\r
* 0b1..FIFO 0 watermark interrupts are enabled.\r
*/\r
-#define ADC_IE_FWMIE0(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_FWMIE0_SHIFT)) & ADC_IE_FWMIE0_MASK)\r
-#define ADC_IE_FOFIE0_MASK (0x2U)\r
-#define ADC_IE_FOFIE0_SHIFT (1U)\r
+#define ADC_IE_FWMIE0(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_FWMIE0_SHIFT)) & ADC_IE_FWMIE0_MASK)\r
+#define ADC_IE_FOFIE0_MASK (0x2U)\r
+#define ADC_IE_FOFIE0_SHIFT (1U)\r
/*! FOFIE0 - Result FIFO 0 Overflow Interrupt Enable\r
* 0b0..FIFO 0 overflow interrupts are not enabled.\r
* 0b1..FIFO 0 overflow interrupts are enabled.\r
*/\r
-#define ADC_IE_FOFIE0(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_FOFIE0_SHIFT)) & ADC_IE_FOFIE0_MASK)\r
-#define ADC_IE_FWMIE1_MASK (0x4U)\r
-#define ADC_IE_FWMIE1_SHIFT (2U)\r
+#define ADC_IE_FOFIE0(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_FOFIE0_SHIFT)) & ADC_IE_FOFIE0_MASK)\r
+#define ADC_IE_FWMIE1_MASK (0x4U)\r
+#define ADC_IE_FWMIE1_SHIFT (2U)\r
/*! FWMIE1 - FIFO1 Watermark Interrupt Enable\r
* 0b0..FIFO1 watermark interrupts are not enabled.\r
* 0b1..FIFO1 watermark interrupts are enabled.\r
*/\r
-#define ADC_IE_FWMIE1(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_FWMIE1_SHIFT)) & ADC_IE_FWMIE1_MASK)\r
-#define ADC_IE_FOFIE1_MASK (0x8U)\r
-#define ADC_IE_FOFIE1_SHIFT (3U)\r
+#define ADC_IE_FWMIE1(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_FWMIE1_SHIFT)) & ADC_IE_FWMIE1_MASK)\r
+#define ADC_IE_FOFIE1_MASK (0x8U)\r
+#define ADC_IE_FOFIE1_SHIFT (3U)\r
/*! FOFIE1 - Result FIFO1 Overflow Interrupt Enable\r
* 0b0..No result FIFO1 overflow has occurred since the last time the flag was cleared.\r
* 0b1..At least one result FIFO1 overflow has occurred since the last time the flag was cleared.\r
*/\r
-#define ADC_IE_FOFIE1(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_FOFIE1_SHIFT)) & ADC_IE_FOFIE1_MASK)\r
-#define ADC_IE_TEXC_IE_MASK (0x100U)\r
-#define ADC_IE_TEXC_IE_SHIFT (8U)\r
+#define ADC_IE_FOFIE1(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_FOFIE1_SHIFT)) & ADC_IE_FOFIE1_MASK)\r
+#define ADC_IE_TEXC_IE_MASK (0x100U)\r
+#define ADC_IE_TEXC_IE_SHIFT (8U)\r
/*! TEXC_IE - Trigger Exception Interrupt Enable\r
* 0b0..Trigger exception interrupts are disabled.\r
* 0b1..Trigger exception interrupts are enabled.\r
*/\r
-#define ADC_IE_TEXC_IE(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_TEXC_IE_SHIFT)) & ADC_IE_TEXC_IE_MASK)\r
-#define ADC_IE_TCOMP_IE_MASK (0xFFFF0000U)\r
-#define ADC_IE_TCOMP_IE_SHIFT (16U)\r
+#define ADC_IE_TEXC_IE(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_TEXC_IE_SHIFT)) & ADC_IE_TEXC_IE_MASK)\r
+#define ADC_IE_TCOMP_IE_MASK (0xFFFF0000U)\r
+#define ADC_IE_TCOMP_IE_SHIFT (16U)\r
/*! TCOMP_IE - Trigger Completion Interrupt Enable\r
* 0b0000000000000000..Trigger completion interrupts are disabled.\r
* 0b0000000000000001..Trigger completion interrupts are enabled for trigger source 0 only.\r
* 0b0000000000000011-0b1111111111111110..Associated trigger completion interrupts are enabled.\r
* 0b1111111111111111..Trigger completion interrupts are enabled for every trigger source.\r
*/\r
-#define ADC_IE_TCOMP_IE(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_TCOMP_IE_SHIFT)) & ADC_IE_TCOMP_IE_MASK)\r
+#define ADC_IE_TCOMP_IE(x) (((uint32_t)(((uint32_t)(x)) << ADC_IE_TCOMP_IE_SHIFT)) & ADC_IE_TCOMP_IE_MASK)\r
/*! @} */\r
\r
/*! @name DE - DMA Enable Register */\r
/*! @{ */\r
-#define ADC_DE_FWMDE0_MASK (0x1U)\r
-#define ADC_DE_FWMDE0_SHIFT (0U)\r
+#define ADC_DE_FWMDE0_MASK (0x1U)\r
+#define ADC_DE_FWMDE0_SHIFT (0U)\r
/*! FWMDE0 - FIFO 0 Watermark DMA Enable\r
* 0b0..DMA request disabled.\r
* 0b1..DMA request enabled.\r
*/\r
-#define ADC_DE_FWMDE0(x) (((uint32_t)(((uint32_t)(x)) << ADC_DE_FWMDE0_SHIFT)) & ADC_DE_FWMDE0_MASK)\r
-#define ADC_DE_FWMDE1_MASK (0x2U)\r
-#define ADC_DE_FWMDE1_SHIFT (1U)\r
+#define ADC_DE_FWMDE0(x) (((uint32_t)(((uint32_t)(x)) << ADC_DE_FWMDE0_SHIFT)) & ADC_DE_FWMDE0_MASK)\r
+#define ADC_DE_FWMDE1_MASK (0x2U)\r
+#define ADC_DE_FWMDE1_SHIFT (1U)\r
/*! FWMDE1 - FIFO1 Watermark DMA Enable\r
* 0b0..DMA request disabled.\r
* 0b1..DMA request enabled.\r
*/\r
-#define ADC_DE_FWMDE1(x) (((uint32_t)(((uint32_t)(x)) << ADC_DE_FWMDE1_SHIFT)) & ADC_DE_FWMDE1_MASK)\r
+#define ADC_DE_FWMDE1(x) (((uint32_t)(((uint32_t)(x)) << ADC_DE_FWMDE1_SHIFT)) & ADC_DE_FWMDE1_MASK)\r
/*! @} */\r
\r
/*! @name CFG - ADC Configuration Register */\r
/*! @{ */\r
-#define ADC_CFG_TPRICTRL_MASK (0x3U)\r
-#define ADC_CFG_TPRICTRL_SHIFT (0U)\r
+#define ADC_CFG_TPRICTRL_MASK (0x3U)\r
+#define ADC_CFG_TPRICTRL_SHIFT (0U)\r
/*! TPRICTRL - ADC trigger priority control\r
- * 0b00..If a higher priority trigger is detected during command processing, the current conversion is aborted and the new command specified by the trigger is started.\r
- * 0b01..If a higher priority trigger is received during command processing, the current command is stopped after after completing the current conversion. If averaging is enabled, the averaging loop will be completed. However, CMDHa[LOOP] will be ignored and the higher priority trigger will be serviced.\r
- * 0b10..If a higher priority trigger is received during command processing, the current command will be completed (averaging, looping, compare) before servicing the higher priority trigger.\r
+ * 0b00..If a higher priority trigger is detected during command processing, the current conversion is aborted\r
+ * and the new command specified by the trigger is started.\r
+ * 0b01..If a higher priority trigger is received during command processing, the current command is stopped after\r
+ * after completing the current conversion. If averaging is enabled, the averaging loop will be completed.\r
+ * However, CMDHa[LOOP] will be ignored and the higher priority trigger will be serviced.\r
+ * 0b10..If a higher priority trigger is received during command processing, the current command will be\r
+ * completed (averaging, looping, compare) before servicing the higher priority trigger.\r
* 0b11..RESERVED\r
*/\r
-#define ADC_CFG_TPRICTRL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_TPRICTRL_SHIFT)) & ADC_CFG_TPRICTRL_MASK)\r
-#define ADC_CFG_PWRSEL_MASK (0x30U)\r
-#define ADC_CFG_PWRSEL_SHIFT (4U)\r
+#define ADC_CFG_TPRICTRL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_TPRICTRL_SHIFT)) & ADC_CFG_TPRICTRL_MASK)\r
+#define ADC_CFG_PWRSEL_MASK (0x30U)\r
+#define ADC_CFG_PWRSEL_SHIFT (4U)\r
/*! PWRSEL - Power Configuration Select\r
* 0b00..Lowest power setting.\r
* 0b01..Higher power setting than 0b0.\r
* 0b10..Higher power setting than 0b1.\r
* 0b11..Highest power setting.\r
*/\r
-#define ADC_CFG_PWRSEL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_PWRSEL_SHIFT)) & ADC_CFG_PWRSEL_MASK)\r
-#define ADC_CFG_REFSEL_MASK (0xC0U)\r
-#define ADC_CFG_REFSEL_SHIFT (6U)\r
+#define ADC_CFG_PWRSEL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_PWRSEL_SHIFT)) & ADC_CFG_PWRSEL_MASK)\r
+#define ADC_CFG_REFSEL_MASK (0xC0U)\r
+#define ADC_CFG_REFSEL_SHIFT (6U)\r
/*! REFSEL - Voltage Reference Selection\r
* 0b00..(Default) Option 1 setting.\r
* 0b01..Option 2 setting.\r
* 0b10..Option 3 setting.\r
* 0b11..Reserved\r
*/\r
-#define ADC_CFG_REFSEL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_REFSEL_SHIFT)) & ADC_CFG_REFSEL_MASK)\r
-#define ADC_CFG_TRES_MASK (0x100U)\r
-#define ADC_CFG_TRES_SHIFT (8U)\r
+#define ADC_CFG_REFSEL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_REFSEL_SHIFT)) & ADC_CFG_REFSEL_MASK)\r
+#define ADC_CFG_TRES_MASK (0x100U)\r
+#define ADC_CFG_TRES_SHIFT (8U)\r
/*! TRES - Trigger Resume Enable\r
- * 0b0..Trigger sequences interrupted by a high priority trigger exception will not be automatically resumed or restarted.\r
- * 0b1..Trigger sequences interrupted by a high priority trigger exception will be automatically resumed or restarted.\r
+ * 0b0..Trigger sequences interrupted by a high priority trigger exception will not be automatically resumed or\r
+ * restarted. 0b1..Trigger sequences interrupted by a high priority trigger exception will be automatically resumed or\r
+ * restarted.\r
*/\r
-#define ADC_CFG_TRES(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_TRES_SHIFT)) & ADC_CFG_TRES_MASK)\r
-#define ADC_CFG_TCMDRES_MASK (0x200U)\r
-#define ADC_CFG_TCMDRES_SHIFT (9U)\r
+#define ADC_CFG_TRES(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_TRES_SHIFT)) & ADC_CFG_TRES_MASK)\r
+#define ADC_CFG_TCMDRES_MASK (0x200U)\r
+#define ADC_CFG_TCMDRES_SHIFT (9U)\r
/*! TCMDRES - Trigger Command Resume\r
* 0b0..Trigger sequences interrupted by a high priority trigger exception will be automatically restarted.\r
- * 0b1..Trigger sequences interrupted by a high priority trigger exception will be resumed from the command executing before the exception.\r
+ * 0b1..Trigger sequences interrupted by a high priority trigger exception will be resumed from the command executing\r
+ * before the exception.\r
*/\r
-#define ADC_CFG_TCMDRES(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_TCMDRES_SHIFT)) & ADC_CFG_TCMDRES_MASK)\r
-#define ADC_CFG_HPT_EXDI_MASK (0x400U)\r
-#define ADC_CFG_HPT_EXDI_SHIFT (10U)\r
+#define ADC_CFG_TCMDRES(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_TCMDRES_SHIFT)) & ADC_CFG_TCMDRES_MASK)\r
+#define ADC_CFG_HPT_EXDI_MASK (0x400U)\r
+#define ADC_CFG_HPT_EXDI_SHIFT (10U)\r
/*! HPT_EXDI - High Priority Trigger Exception Disable\r
* 0b0..High priority trigger exceptions are enabled.\r
* 0b1..High priority trigger exceptions are disabled.\r
*/\r
-#define ADC_CFG_HPT_EXDI(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_HPT_EXDI_SHIFT)) & ADC_CFG_HPT_EXDI_MASK)\r
-#define ADC_CFG_PUDLY_MASK (0xFF0000U)\r
-#define ADC_CFG_PUDLY_SHIFT (16U)\r
-#define ADC_CFG_PUDLY(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_PUDLY_SHIFT)) & ADC_CFG_PUDLY_MASK)\r
-#define ADC_CFG_PWREN_MASK (0x10000000U)\r
-#define ADC_CFG_PWREN_SHIFT (28U)\r
+#define ADC_CFG_HPT_EXDI(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_HPT_EXDI_SHIFT)) & ADC_CFG_HPT_EXDI_MASK)\r
+#define ADC_CFG_PUDLY_MASK (0xFF0000U)\r
+#define ADC_CFG_PUDLY_SHIFT (16U)\r
+/*! PUDLY - Power Up Delay\r
+ */\r
+#define ADC_CFG_PUDLY(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_PUDLY_SHIFT)) & ADC_CFG_PUDLY_MASK)\r
+#define ADC_CFG_PWREN_MASK (0x10000000U)\r
+#define ADC_CFG_PWREN_SHIFT (28U)\r
/*! PWREN - ADC Analog Pre-Enable\r
- * 0b0..ADC analog circuits are only enabled while conversions are active. Performance is affected due to analog startup delays.\r
- * 0b1..ADC analog circuits are pre-enabled and ready to execute conversions without startup delays (at the cost of higher DC current consumption). A single power up delay (CFG[PUDLY]) is executed immediately once PWREN is set, and any detected trigger does not begin ADC operation until the power up delay time has passed. After this initial delay expires the analog will remain pre-enabled, and no additional delays will be executed.\r
+ * 0b0..ADC analog circuits are only enabled while conversions are active. Performance is affected due to analog\r
+ * startup delays. 0b1..ADC analog circuits are pre-enabled and ready to execute conversions without startup delays (at\r
+ * the cost of higher DC current consumption). A single power up delay (CFG[PUDLY]) is executed immediately once PWREN\r
+ * is set, and any detected trigger does not begin ADC operation until the power up delay time has passed.\r
+ * After this initial delay expires the analog will remain pre-enabled, and no additional delays will be\r
+ * executed.\r
*/\r
-#define ADC_CFG_PWREN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_PWREN_SHIFT)) & ADC_CFG_PWREN_MASK)\r
+#define ADC_CFG_PWREN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CFG_PWREN_SHIFT)) & ADC_CFG_PWREN_MASK)\r
/*! @} */\r
\r
/*! @name PAUSE - ADC Pause Register */\r
/*! @{ */\r
-#define ADC_PAUSE_PAUSEDLY_MASK (0x1FFU)\r
-#define ADC_PAUSE_PAUSEDLY_SHIFT (0U)\r
-#define ADC_PAUSE_PAUSEDLY(x) (((uint32_t)(((uint32_t)(x)) << ADC_PAUSE_PAUSEDLY_SHIFT)) & ADC_PAUSE_PAUSEDLY_MASK)\r
-#define ADC_PAUSE_PAUSEEN_MASK (0x80000000U)\r
-#define ADC_PAUSE_PAUSEEN_SHIFT (31U)\r
+#define ADC_PAUSE_PAUSEDLY_MASK (0x1FFU)\r
+#define ADC_PAUSE_PAUSEDLY_SHIFT (0U)\r
+/*! PAUSEDLY - Pause Delay\r
+ */\r
+#define ADC_PAUSE_PAUSEDLY(x) (((uint32_t)(((uint32_t)(x)) << ADC_PAUSE_PAUSEDLY_SHIFT)) & ADC_PAUSE_PAUSEDLY_MASK)\r
+#define ADC_PAUSE_PAUSEEN_MASK (0x80000000U)\r
+#define ADC_PAUSE_PAUSEEN_SHIFT (31U)\r
/*! PAUSEEN - PAUSE Option Enable\r
* 0b0..Pause operation disabled\r
* 0b1..Pause operation enabled\r
*/\r
-#define ADC_PAUSE_PAUSEEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_PAUSE_PAUSEEN_SHIFT)) & ADC_PAUSE_PAUSEEN_MASK)\r
+#define ADC_PAUSE_PAUSEEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_PAUSE_PAUSEEN_SHIFT)) & ADC_PAUSE_PAUSEEN_MASK)\r
/*! @} */\r
\r
/*! @name SWTRIG - Software Trigger Register */\r
/*! @{ */\r
-#define ADC_SWTRIG_SWT0_MASK (0x1U)\r
-#define ADC_SWTRIG_SWT0_SHIFT (0U)\r
+#define ADC_SWTRIG_SWT0_MASK (0x1U)\r
+#define ADC_SWTRIG_SWT0_SHIFT (0U)\r
/*! SWT0 - Software trigger 0 event\r
* 0b0..No trigger 0 event generated.\r
* 0b1..Trigger 0 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT0(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT0_SHIFT)) & ADC_SWTRIG_SWT0_MASK)\r
-#define ADC_SWTRIG_SWT1_MASK (0x2U)\r
-#define ADC_SWTRIG_SWT1_SHIFT (1U)\r
+#define ADC_SWTRIG_SWT0(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT0_SHIFT)) & ADC_SWTRIG_SWT0_MASK)\r
+#define ADC_SWTRIG_SWT1_MASK (0x2U)\r
+#define ADC_SWTRIG_SWT1_SHIFT (1U)\r
/*! SWT1 - Software trigger 1 event\r
* 0b0..No trigger 1 event generated.\r
* 0b1..Trigger 1 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT1(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT1_SHIFT)) & ADC_SWTRIG_SWT1_MASK)\r
-#define ADC_SWTRIG_SWT2_MASK (0x4U)\r
-#define ADC_SWTRIG_SWT2_SHIFT (2U)\r
+#define ADC_SWTRIG_SWT1(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT1_SHIFT)) & ADC_SWTRIG_SWT1_MASK)\r
+#define ADC_SWTRIG_SWT2_MASK (0x4U)\r
+#define ADC_SWTRIG_SWT2_SHIFT (2U)\r
/*! SWT2 - Software trigger 2 event\r
* 0b0..No trigger 2 event generated.\r
* 0b1..Trigger 2 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT2(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT2_SHIFT)) & ADC_SWTRIG_SWT2_MASK)\r
-#define ADC_SWTRIG_SWT3_MASK (0x8U)\r
-#define ADC_SWTRIG_SWT3_SHIFT (3U)\r
+#define ADC_SWTRIG_SWT2(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT2_SHIFT)) & ADC_SWTRIG_SWT2_MASK)\r
+#define ADC_SWTRIG_SWT3_MASK (0x8U)\r
+#define ADC_SWTRIG_SWT3_SHIFT (3U)\r
/*! SWT3 - Software trigger 3 event\r
* 0b0..No trigger 3 event generated.\r
* 0b1..Trigger 3 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT3(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT3_SHIFT)) & ADC_SWTRIG_SWT3_MASK)\r
-#define ADC_SWTRIG_SWT4_MASK (0x10U)\r
-#define ADC_SWTRIG_SWT4_SHIFT (4U)\r
+#define ADC_SWTRIG_SWT3(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT3_SHIFT)) & ADC_SWTRIG_SWT3_MASK)\r
+#define ADC_SWTRIG_SWT4_MASK (0x10U)\r
+#define ADC_SWTRIG_SWT4_SHIFT (4U)\r
/*! SWT4 - Software trigger 4 event\r
* 0b0..No trigger 4 event generated.\r
* 0b1..Trigger 4 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT4(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT4_SHIFT)) & ADC_SWTRIG_SWT4_MASK)\r
-#define ADC_SWTRIG_SWT5_MASK (0x20U)\r
-#define ADC_SWTRIG_SWT5_SHIFT (5U)\r
+#define ADC_SWTRIG_SWT4(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT4_SHIFT)) & ADC_SWTRIG_SWT4_MASK)\r
+#define ADC_SWTRIG_SWT5_MASK (0x20U)\r
+#define ADC_SWTRIG_SWT5_SHIFT (5U)\r
/*! SWT5 - Software trigger 5 event\r
* 0b0..No trigger 5 event generated.\r
* 0b1..Trigger 5 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT5(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT5_SHIFT)) & ADC_SWTRIG_SWT5_MASK)\r
-#define ADC_SWTRIG_SWT6_MASK (0x40U)\r
-#define ADC_SWTRIG_SWT6_SHIFT (6U)\r
+#define ADC_SWTRIG_SWT5(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT5_SHIFT)) & ADC_SWTRIG_SWT5_MASK)\r
+#define ADC_SWTRIG_SWT6_MASK (0x40U)\r
+#define ADC_SWTRIG_SWT6_SHIFT (6U)\r
/*! SWT6 - Software trigger 6 event\r
* 0b0..No trigger 6 event generated.\r
* 0b1..Trigger 6 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT6(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT6_SHIFT)) & ADC_SWTRIG_SWT6_MASK)\r
-#define ADC_SWTRIG_SWT7_MASK (0x80U)\r
-#define ADC_SWTRIG_SWT7_SHIFT (7U)\r
+#define ADC_SWTRIG_SWT6(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT6_SHIFT)) & ADC_SWTRIG_SWT6_MASK)\r
+#define ADC_SWTRIG_SWT7_MASK (0x80U)\r
+#define ADC_SWTRIG_SWT7_SHIFT (7U)\r
/*! SWT7 - Software trigger 7 event\r
* 0b0..No trigger 7 event generated.\r
* 0b1..Trigger 7 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT7(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT7_SHIFT)) & ADC_SWTRIG_SWT7_MASK)\r
-#define ADC_SWTRIG_SWT8_MASK (0x100U)\r
-#define ADC_SWTRIG_SWT8_SHIFT (8U)\r
+#define ADC_SWTRIG_SWT7(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT7_SHIFT)) & ADC_SWTRIG_SWT7_MASK)\r
+#define ADC_SWTRIG_SWT8_MASK (0x100U)\r
+#define ADC_SWTRIG_SWT8_SHIFT (8U)\r
/*! SWT8 - Software trigger 8 event\r
* 0b0..No trigger 8 event generated.\r
* 0b1..Trigger 8 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT8(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT8_SHIFT)) & ADC_SWTRIG_SWT8_MASK)\r
-#define ADC_SWTRIG_SWT9_MASK (0x200U)\r
-#define ADC_SWTRIG_SWT9_SHIFT (9U)\r
+#define ADC_SWTRIG_SWT8(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT8_SHIFT)) & ADC_SWTRIG_SWT8_MASK)\r
+#define ADC_SWTRIG_SWT9_MASK (0x200U)\r
+#define ADC_SWTRIG_SWT9_SHIFT (9U)\r
/*! SWT9 - Software trigger 9 event\r
* 0b0..No trigger 9 event generated.\r
* 0b1..Trigger 9 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT9(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT9_SHIFT)) & ADC_SWTRIG_SWT9_MASK)\r
-#define ADC_SWTRIG_SWT10_MASK (0x400U)\r
-#define ADC_SWTRIG_SWT10_SHIFT (10U)\r
+#define ADC_SWTRIG_SWT9(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT9_SHIFT)) & ADC_SWTRIG_SWT9_MASK)\r
+#define ADC_SWTRIG_SWT10_MASK (0x400U)\r
+#define ADC_SWTRIG_SWT10_SHIFT (10U)\r
/*! SWT10 - Software trigger 10 event\r
* 0b0..No trigger 10 event generated.\r
* 0b1..Trigger 10 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT10(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT10_SHIFT)) & ADC_SWTRIG_SWT10_MASK)\r
-#define ADC_SWTRIG_SWT11_MASK (0x800U)\r
-#define ADC_SWTRIG_SWT11_SHIFT (11U)\r
+#define ADC_SWTRIG_SWT10(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT10_SHIFT)) & ADC_SWTRIG_SWT10_MASK)\r
+#define ADC_SWTRIG_SWT11_MASK (0x800U)\r
+#define ADC_SWTRIG_SWT11_SHIFT (11U)\r
/*! SWT11 - Software trigger 11 event\r
* 0b0..No trigger 11 event generated.\r
* 0b1..Trigger 11 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT11(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT11_SHIFT)) & ADC_SWTRIG_SWT11_MASK)\r
-#define ADC_SWTRIG_SWT12_MASK (0x1000U)\r
-#define ADC_SWTRIG_SWT12_SHIFT (12U)\r
+#define ADC_SWTRIG_SWT11(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT11_SHIFT)) & ADC_SWTRIG_SWT11_MASK)\r
+#define ADC_SWTRIG_SWT12_MASK (0x1000U)\r
+#define ADC_SWTRIG_SWT12_SHIFT (12U)\r
/*! SWT12 - Software trigger 12 event\r
* 0b0..No trigger 12 event generated.\r
* 0b1..Trigger 12 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT12(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT12_SHIFT)) & ADC_SWTRIG_SWT12_MASK)\r
-#define ADC_SWTRIG_SWT13_MASK (0x2000U)\r
-#define ADC_SWTRIG_SWT13_SHIFT (13U)\r
+#define ADC_SWTRIG_SWT12(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT12_SHIFT)) & ADC_SWTRIG_SWT12_MASK)\r
+#define ADC_SWTRIG_SWT13_MASK (0x2000U)\r
+#define ADC_SWTRIG_SWT13_SHIFT (13U)\r
/*! SWT13 - Software trigger 13 event\r
* 0b0..No trigger 13 event generated.\r
* 0b1..Trigger 13 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT13(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT13_SHIFT)) & ADC_SWTRIG_SWT13_MASK)\r
-#define ADC_SWTRIG_SWT14_MASK (0x4000U)\r
-#define ADC_SWTRIG_SWT14_SHIFT (14U)\r
+#define ADC_SWTRIG_SWT13(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT13_SHIFT)) & ADC_SWTRIG_SWT13_MASK)\r
+#define ADC_SWTRIG_SWT14_MASK (0x4000U)\r
+#define ADC_SWTRIG_SWT14_SHIFT (14U)\r
/*! SWT14 - Software trigger 14 event\r
* 0b0..No trigger 14 event generated.\r
* 0b1..Trigger 14 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT14(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT14_SHIFT)) & ADC_SWTRIG_SWT14_MASK)\r
-#define ADC_SWTRIG_SWT15_MASK (0x8000U)\r
-#define ADC_SWTRIG_SWT15_SHIFT (15U)\r
+#define ADC_SWTRIG_SWT14(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT14_SHIFT)) & ADC_SWTRIG_SWT14_MASK)\r
+#define ADC_SWTRIG_SWT15_MASK (0x8000U)\r
+#define ADC_SWTRIG_SWT15_SHIFT (15U)\r
/*! SWT15 - Software trigger 15 event\r
* 0b0..No trigger 15 event generated.\r
* 0b1..Trigger 15 event generated.\r
*/\r
-#define ADC_SWTRIG_SWT15(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT15_SHIFT)) & ADC_SWTRIG_SWT15_MASK)\r
+#define ADC_SWTRIG_SWT15(x) (((uint32_t)(((uint32_t)(x)) << ADC_SWTRIG_SWT15_SHIFT)) & ADC_SWTRIG_SWT15_MASK)\r
/*! @} */\r
\r
/*! @name TSTAT - Trigger Status Register */\r
/*! @{ */\r
-#define ADC_TSTAT_TEXC_NUM_MASK (0xFFFFU)\r
-#define ADC_TSTAT_TEXC_NUM_SHIFT (0U)\r
+#define ADC_TSTAT_TEXC_NUM_MASK (0xFFFFU)\r
+#define ADC_TSTAT_TEXC_NUM_SHIFT (0U)\r
/*! TEXC_NUM - Trigger Exception Number\r
* 0b0000000000000000..No triggers have been interrupted by a high priority exception. Or CFG[TRES] = 1.\r
* 0b0000000000000001..Trigger 0 has been interrupted by a high priority exception.\r
* 0b0000000000000011-0b1111111111111110..Associated trigger sequence has interrupted by a high priority exception.\r
* 0b1111111111111111..Every trigger sequence has been interrupted by a high priority exception.\r
*/\r
-#define ADC_TSTAT_TEXC_NUM(x) (((uint32_t)(((uint32_t)(x)) << ADC_TSTAT_TEXC_NUM_SHIFT)) & ADC_TSTAT_TEXC_NUM_MASK)\r
-#define ADC_TSTAT_TCOMP_FLAG_MASK (0xFFFF0000U)\r
-#define ADC_TSTAT_TCOMP_FLAG_SHIFT (16U)\r
+#define ADC_TSTAT_TEXC_NUM(x) (((uint32_t)(((uint32_t)(x)) << ADC_TSTAT_TEXC_NUM_SHIFT)) & ADC_TSTAT_TEXC_NUM_MASK)\r
+#define ADC_TSTAT_TCOMP_FLAG_MASK (0xFFFF0000U)\r
+#define ADC_TSTAT_TCOMP_FLAG_SHIFT (16U)\r
/*! TCOMP_FLAG - Trigger Completion Flag\r
* 0b0000000000000000..No triggers have been completed. Trigger completion interrupts are disabled.\r
* 0b0000000000000001..Trigger 0 has been completed and triger 0 has enabled completion interrupts.\r
* 0b0000000000000010..Trigger 1 has been completed and triger 1 has enabled completion interrupts.\r
- * 0b0000000000000011-0b1111111111111110..Associated trigger sequence has completed and has enabled completion interrupts.\r
- * 0b1111111111111111..Every trigger sequence has been completed and every trigger has enabled completion interrupts.\r
+ * 0b0000000000000011-0b1111111111111110..Associated trigger sequence has completed and has enabled completion\r
+ * interrupts. 0b1111111111111111..Every trigger sequence has been completed and every trigger has enabled completion\r
+ * interrupts.\r
*/\r
-#define ADC_TSTAT_TCOMP_FLAG(x) (((uint32_t)(((uint32_t)(x)) << ADC_TSTAT_TCOMP_FLAG_SHIFT)) & ADC_TSTAT_TCOMP_FLAG_MASK)\r
+#define ADC_TSTAT_TCOMP_FLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ADC_TSTAT_TCOMP_FLAG_SHIFT)) & ADC_TSTAT_TCOMP_FLAG_MASK)\r
/*! @} */\r
\r
/*! @name OFSTRIM - ADC Offset Trim Register */\r
/*! @{ */\r
-#define ADC_OFSTRIM_OFSTRIM_A_MASK (0x1FU)\r
-#define ADC_OFSTRIM_OFSTRIM_A_SHIFT (0U)\r
-#define ADC_OFSTRIM_OFSTRIM_A(x) (((uint32_t)(((uint32_t)(x)) << ADC_OFSTRIM_OFSTRIM_A_SHIFT)) & ADC_OFSTRIM_OFSTRIM_A_MASK)\r
-#define ADC_OFSTRIM_OFSTRIM_B_MASK (0x1F0000U)\r
-#define ADC_OFSTRIM_OFSTRIM_B_SHIFT (16U)\r
-#define ADC_OFSTRIM_OFSTRIM_B(x) (((uint32_t)(((uint32_t)(x)) << ADC_OFSTRIM_OFSTRIM_B_SHIFT)) & ADC_OFSTRIM_OFSTRIM_B_MASK)\r
+#define ADC_OFSTRIM_OFSTRIM_A_MASK (0x1FU)\r
+#define ADC_OFSTRIM_OFSTRIM_A_SHIFT (0U)\r
+/*! OFSTRIM_A - Trim for offset\r
+ */\r
+#define ADC_OFSTRIM_OFSTRIM_A(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ADC_OFSTRIM_OFSTRIM_A_SHIFT)) & ADC_OFSTRIM_OFSTRIM_A_MASK)\r
+#define ADC_OFSTRIM_OFSTRIM_B_MASK (0x1F0000U)\r
+#define ADC_OFSTRIM_OFSTRIM_B_SHIFT (16U)\r
+/*! OFSTRIM_B - Trim for offset\r
+ */\r
+#define ADC_OFSTRIM_OFSTRIM_B(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ADC_OFSTRIM_OFSTRIM_B_SHIFT)) & ADC_OFSTRIM_OFSTRIM_B_MASK)\r
/*! @} */\r
\r
/*! @name TCTRL - Trigger Control Register */\r
/*! @{ */\r
-#define ADC_TCTRL_HTEN_MASK (0x1U)\r
-#define ADC_TCTRL_HTEN_SHIFT (0U)\r
+#define ADC_TCTRL_HTEN_MASK (0x1U)\r
+#define ADC_TCTRL_HTEN_SHIFT (0U)\r
/*! HTEN - Trigger enable\r
* 0b0..Hardware trigger source disabled\r
* 0b1..Hardware trigger source enabled\r
*/\r
-#define ADC_TCTRL_HTEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_HTEN_SHIFT)) & ADC_TCTRL_HTEN_MASK)\r
-#define ADC_TCTRL_FIFO_SEL_A_MASK (0x2U)\r
-#define ADC_TCTRL_FIFO_SEL_A_SHIFT (1U)\r
+#define ADC_TCTRL_HTEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_HTEN_SHIFT)) & ADC_TCTRL_HTEN_MASK)\r
+#define ADC_TCTRL_FIFO_SEL_A_MASK (0x2U)\r
+#define ADC_TCTRL_FIFO_SEL_A_SHIFT (1U)\r
/*! FIFO_SEL_A - SAR Result Destination For Channel A\r
* 0b0..Result written to FIFO 0\r
* 0b1..Result written to FIFO 1\r
*/\r
-#define ADC_TCTRL_FIFO_SEL_A(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_FIFO_SEL_A_SHIFT)) & ADC_TCTRL_FIFO_SEL_A_MASK)\r
-#define ADC_TCTRL_FIFO_SEL_B_MASK (0x4U)\r
-#define ADC_TCTRL_FIFO_SEL_B_SHIFT (2U)\r
+#define ADC_TCTRL_FIFO_SEL_A(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_FIFO_SEL_A_SHIFT)) & ADC_TCTRL_FIFO_SEL_A_MASK)\r
+#define ADC_TCTRL_FIFO_SEL_B_MASK (0x4U)\r
+#define ADC_TCTRL_FIFO_SEL_B_SHIFT (2U)\r
/*! FIFO_SEL_B - SAR Result Destination For Channel B\r
* 0b0..Result written to FIFO 0\r
* 0b1..Result written to FIFO 1\r
*/\r
-#define ADC_TCTRL_FIFO_SEL_B(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_FIFO_SEL_B_SHIFT)) & ADC_TCTRL_FIFO_SEL_B_MASK)\r
-#define ADC_TCTRL_TPRI_MASK (0xF00U)\r
-#define ADC_TCTRL_TPRI_SHIFT (8U)\r
+#define ADC_TCTRL_FIFO_SEL_B(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_FIFO_SEL_B_SHIFT)) & ADC_TCTRL_FIFO_SEL_B_MASK)\r
+#define ADC_TCTRL_TPRI_MASK (0xF00U)\r
+#define ADC_TCTRL_TPRI_SHIFT (8U)\r
/*! TPRI - Trigger priority setting\r
* 0b0000..Set to highest priority, Level 1\r
* 0b0001-0b1110..Set to corresponding priority level\r
* 0b1111..Set to lowest priority, Level 16\r
*/\r
-#define ADC_TCTRL_TPRI(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_TPRI_SHIFT)) & ADC_TCTRL_TPRI_MASK)\r
-#define ADC_TCTRL_RSYNC_MASK (0x8000U)\r
-#define ADC_TCTRL_RSYNC_SHIFT (15U)\r
-#define ADC_TCTRL_RSYNC(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_RSYNC_SHIFT)) & ADC_TCTRL_RSYNC_MASK)\r
-#define ADC_TCTRL_TDLY_MASK (0xF0000U)\r
-#define ADC_TCTRL_TDLY_SHIFT (16U)\r
-#define ADC_TCTRL_TDLY(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_TDLY_SHIFT)) & ADC_TCTRL_TDLY_MASK)\r
-#define ADC_TCTRL_TCMD_MASK (0xF000000U)\r
-#define ADC_TCTRL_TCMD_SHIFT (24U)\r
+#define ADC_TCTRL_TPRI(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_TPRI_SHIFT)) & ADC_TCTRL_TPRI_MASK)\r
+#define ADC_TCTRL_RSYNC_MASK (0x8000U)\r
+#define ADC_TCTRL_RSYNC_SHIFT (15U)\r
+/*! RSYNC - Trigger Resync\r
+ */\r
+#define ADC_TCTRL_RSYNC(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_RSYNC_SHIFT)) & ADC_TCTRL_RSYNC_MASK)\r
+#define ADC_TCTRL_TDLY_MASK (0xF0000U)\r
+#define ADC_TCTRL_TDLY_SHIFT (16U)\r
+/*! TDLY - Trigger delay select\r
+ */\r
+#define ADC_TCTRL_TDLY(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_TDLY_SHIFT)) & ADC_TCTRL_TDLY_MASK)\r
+#define ADC_TCTRL_TCMD_MASK (0xF000000U)\r
+#define ADC_TCTRL_TCMD_SHIFT (24U)\r
/*! TCMD - Trigger command select\r
* 0b0000..Not a valid selection from the command buffer. Trigger event is ignored.\r
* 0b0001..CMD1 is executed\r
* 0b0010-0b1110..Corresponding CMD is executed\r
* 0b1111..CMD15 is executed\r
*/\r
-#define ADC_TCTRL_TCMD(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_TCMD_SHIFT)) & ADC_TCTRL_TCMD_MASK)\r
+#define ADC_TCTRL_TCMD(x) (((uint32_t)(((uint32_t)(x)) << ADC_TCTRL_TCMD_SHIFT)) & ADC_TCTRL_TCMD_MASK)\r
/*! @} */\r
\r
/* The count of ADC_TCTRL */\r
-#define ADC_TCTRL_COUNT (16U)\r
+#define ADC_TCTRL_COUNT (16U)\r
\r
/*! @name FCTRL - FIFO Control Register */\r
/*! @{ */\r
-#define ADC_FCTRL_FCOUNT_MASK (0x1FU)\r
-#define ADC_FCTRL_FCOUNT_SHIFT (0U)\r
-#define ADC_FCTRL_FCOUNT(x) (((uint32_t)(((uint32_t)(x)) << ADC_FCTRL_FCOUNT_SHIFT)) & ADC_FCTRL_FCOUNT_MASK)\r
-#define ADC_FCTRL_FWMARK_MASK (0xF0000U)\r
-#define ADC_FCTRL_FWMARK_SHIFT (16U)\r
-#define ADC_FCTRL_FWMARK(x) (((uint32_t)(((uint32_t)(x)) << ADC_FCTRL_FWMARK_SHIFT)) & ADC_FCTRL_FWMARK_MASK)\r
+#define ADC_FCTRL_FCOUNT_MASK (0x1FU)\r
+#define ADC_FCTRL_FCOUNT_SHIFT (0U)\r
+/*! FCOUNT - Result FIFO counter\r
+ */\r
+#define ADC_FCTRL_FCOUNT(x) (((uint32_t)(((uint32_t)(x)) << ADC_FCTRL_FCOUNT_SHIFT)) & ADC_FCTRL_FCOUNT_MASK)\r
+#define ADC_FCTRL_FWMARK_MASK (0xF0000U)\r
+#define ADC_FCTRL_FWMARK_SHIFT (16U)\r
+/*! FWMARK - Watermark level selection\r
+ */\r
+#define ADC_FCTRL_FWMARK(x) (((uint32_t)(((uint32_t)(x)) << ADC_FCTRL_FWMARK_SHIFT)) & ADC_FCTRL_FWMARK_MASK)\r
/*! @} */\r
\r
/* The count of ADC_FCTRL */\r
-#define ADC_FCTRL_COUNT (2U)\r
+#define ADC_FCTRL_COUNT (2U)\r
\r
/*! @name GCC - Gain Calibration Control */\r
/*! @{ */\r
-#define ADC_GCC_GAIN_CAL_MASK (0xFFFFU)\r
-#define ADC_GCC_GAIN_CAL_SHIFT (0U)\r
-#define ADC_GCC_GAIN_CAL(x) (((uint32_t)(((uint32_t)(x)) << ADC_GCC_GAIN_CAL_SHIFT)) & ADC_GCC_GAIN_CAL_MASK)\r
-#define ADC_GCC_RDY_MASK (0x1000000U)\r
-#define ADC_GCC_RDY_SHIFT (24U)\r
+#define ADC_GCC_GAIN_CAL_MASK (0xFFFFU)\r
+#define ADC_GCC_GAIN_CAL_SHIFT (0U)\r
+/*! GAIN_CAL - Gain Calibration Value\r
+ */\r
+#define ADC_GCC_GAIN_CAL(x) (((uint32_t)(((uint32_t)(x)) << ADC_GCC_GAIN_CAL_SHIFT)) & ADC_GCC_GAIN_CAL_MASK)\r
+#define ADC_GCC_RDY_MASK (0x1000000U)\r
+#define ADC_GCC_RDY_SHIFT (24U)\r
/*! RDY - Gain Calibration Value Valid\r
* 0b0..The gain calibration value is invalid. Run the auto-calibration routine for this value to be written.\r
* 0b1..The gain calibration value is valid. It should be used to update the GCRa[GCALR] register field.\r
*/\r
-#define ADC_GCC_RDY(x) (((uint32_t)(((uint32_t)(x)) << ADC_GCC_RDY_SHIFT)) & ADC_GCC_RDY_MASK)\r
+#define ADC_GCC_RDY(x) (((uint32_t)(((uint32_t)(x)) << ADC_GCC_RDY_SHIFT)) & ADC_GCC_RDY_MASK)\r
/*! @} */\r
\r
/* The count of ADC_GCC */\r
-#define ADC_GCC_COUNT (2U)\r
+#define ADC_GCC_COUNT (2U)\r
\r
/*! @name GCR - Gain Calculation Result */\r
/*! @{ */\r
-#define ADC_GCR_GCALR_MASK (0xFFFFU)\r
-#define ADC_GCR_GCALR_SHIFT (0U)\r
-#define ADC_GCR_GCALR(x) (((uint32_t)(((uint32_t)(x)) << ADC_GCR_GCALR_SHIFT)) & ADC_GCR_GCALR_MASK)\r
-#define ADC_GCR_RDY_MASK (0x1000000U)\r
-#define ADC_GCR_RDY_SHIFT (24U)\r
+#define ADC_GCR_GCALR_MASK (0xFFFFU)\r
+#define ADC_GCR_GCALR_SHIFT (0U)\r
+/*! GCALR - Gain Calculation Result\r
+ */\r
+#define ADC_GCR_GCALR(x) (((uint32_t)(((uint32_t)(x)) << ADC_GCR_GCALR_SHIFT)) & ADC_GCR_GCALR_MASK)\r
+#define ADC_GCR_RDY_MASK (0x1000000U)\r
+#define ADC_GCR_RDY_SHIFT (24U)\r
/*! RDY - Gain Calculation Ready\r
* 0b0..The gain offset calculation value is invalid.\r
* 0b1..The gain calibration value is valid.\r
*/\r
-#define ADC_GCR_RDY(x) (((uint32_t)(((uint32_t)(x)) << ADC_GCR_RDY_SHIFT)) & ADC_GCR_RDY_MASK)\r
+#define ADC_GCR_RDY(x) (((uint32_t)(((uint32_t)(x)) << ADC_GCR_RDY_SHIFT)) & ADC_GCR_RDY_MASK)\r
/*! @} */\r
\r
/* The count of ADC_GCR */\r
-#define ADC_GCR_COUNT (2U)\r
+#define ADC_GCR_COUNT (2U)\r
\r
/*! @name CMDL - ADC Command Low Buffer Register */\r
/*! @{ */\r
-#define ADC_CMDL_ADCH_MASK (0x1FU)\r
-#define ADC_CMDL_ADCH_SHIFT (0U)\r
+#define ADC_CMDL_ADCH_MASK (0x1FU)\r
+#define ADC_CMDL_ADCH_SHIFT (0U)\r
/*! ADCH - Input channel select\r
* 0b00000..Select CH0A or CH0B or CH0A/CH0B pair.\r
* 0b00001..Select CH1A or CH1B or CH1A/CH1B pair.\r
* 0b11110..Select CH30A or CH30B or CH30A/CH30B pair.\r
* 0b11111..Select CH31A or CH31B or CH31A/CH31B pair.\r
*/\r
-#define ADC_CMDL_ADCH(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDL_ADCH_SHIFT)) & ADC_CMDL_ADCH_MASK)\r
-#define ADC_CMDL_CTYPE_MASK (0x60U)\r
-#define ADC_CMDL_CTYPE_SHIFT (5U)\r
+#define ADC_CMDL_ADCH(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDL_ADCH_SHIFT)) & ADC_CMDL_ADCH_MASK)\r
+#define ADC_CMDL_CTYPE_MASK (0x60U)\r
+#define ADC_CMDL_CTYPE_SHIFT (5U)\r
/*! CTYPE - Conversion Type\r
* 0b00..Single-Ended Mode. Only A side channel is converted.\r
* 0b01..Single-Ended Mode. Only B side channel is converted.\r
* 0b10..Differential Mode. A-B.\r
* 0b11..Dual-Single-Ended Mode. Both A side and B side channels are converted independently.\r
*/\r
-#define ADC_CMDL_CTYPE(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDL_CTYPE_SHIFT)) & ADC_CMDL_CTYPE_MASK)\r
-#define ADC_CMDL_MODE_MASK (0x80U)\r
-#define ADC_CMDL_MODE_SHIFT (7U)\r
+#define ADC_CMDL_CTYPE(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDL_CTYPE_SHIFT)) & ADC_CMDL_CTYPE_MASK)\r
+#define ADC_CMDL_MODE_MASK (0x80U)\r
+#define ADC_CMDL_MODE_SHIFT (7U)\r
/*! MODE - Select resolution of conversions\r
* 0b0..Standard resolution. Single-ended 12-bit conversion; Differential 13-bit conversion with 2's complement output.\r
* 0b1..High resolution. Single-ended 16-bit conversion; Differential 16-bit conversion with 2's complement output.\r
*/\r
-#define ADC_CMDL_MODE(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDL_MODE_SHIFT)) & ADC_CMDL_MODE_MASK)\r
+#define ADC_CMDL_MODE(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDL_MODE_SHIFT)) & ADC_CMDL_MODE_MASK)\r
/*! @} */\r
\r
/* The count of ADC_CMDL */\r
-#define ADC_CMDL_COUNT (15U)\r
+#define ADC_CMDL_COUNT (15U)\r
\r
/*! @name CMDH - ADC Command High Buffer Register */\r
/*! @{ */\r
-#define ADC_CMDH_CMPEN_MASK (0x3U)\r
-#define ADC_CMDH_CMPEN_SHIFT (0U)\r
+#define ADC_CMDH_CMPEN_MASK (0x3U)\r
+#define ADC_CMDH_CMPEN_SHIFT (0U)\r
/*! CMPEN - Compare Function Enable\r
* 0b00..Compare disabled.\r
* 0b01..Reserved\r
* 0b10..Compare enabled. Store on true.\r
* 0b11..Compare enabled. Repeat channel acquisition (sample/convert/compare) until true.\r
*/\r
-#define ADC_CMDH_CMPEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_CMPEN_SHIFT)) & ADC_CMDH_CMPEN_MASK)\r
-#define ADC_CMDH_WAIT_TRIG_MASK (0x4U)\r
-#define ADC_CMDH_WAIT_TRIG_SHIFT (2U)\r
+#define ADC_CMDH_CMPEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_CMPEN_SHIFT)) & ADC_CMDH_CMPEN_MASK)\r
+#define ADC_CMDH_WAIT_TRIG_MASK (0x4U)\r
+#define ADC_CMDH_WAIT_TRIG_SHIFT (2U)\r
/*! WAIT_TRIG - Wait for trigger assertion before execution.\r
* 0b0..This command will be automatically executed.\r
* 0b1..The active trigger must be asserted again before executing this command.\r
*/\r
-#define ADC_CMDH_WAIT_TRIG(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_WAIT_TRIG_SHIFT)) & ADC_CMDH_WAIT_TRIG_MASK)\r
-#define ADC_CMDH_LWI_MASK (0x80U)\r
-#define ADC_CMDH_LWI_SHIFT (7U)\r
+#define ADC_CMDH_WAIT_TRIG(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_WAIT_TRIG_SHIFT)) & ADC_CMDH_WAIT_TRIG_MASK)\r
+#define ADC_CMDH_LWI_MASK (0x80U)\r
+#define ADC_CMDH_LWI_SHIFT (7U)\r
/*! LWI - Loop with Increment\r
* 0b0..Auto channel increment disabled\r
* 0b1..Auto channel increment enabled\r
*/\r
-#define ADC_CMDH_LWI(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_LWI_SHIFT)) & ADC_CMDH_LWI_MASK)\r
-#define ADC_CMDH_STS_MASK (0x700U)\r
-#define ADC_CMDH_STS_SHIFT (8U)\r
+#define ADC_CMDH_LWI(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_LWI_SHIFT)) & ADC_CMDH_LWI_MASK)\r
+#define ADC_CMDH_STS_MASK (0x700U)\r
+#define ADC_CMDH_STS_SHIFT (8U)\r
/*! STS - Sample Time Select\r
* 0b000..Minimum sample time of 3 ADCK cycles.\r
* 0b001..3 + 21 ADCK cycles; 5 ADCK cycles total sample time.\r
* 0b110..3 + 26 ADCK cycles; 67 ADCK cycles total sample time.\r
* 0b111..3 + 27 ADCK cycles; 131 ADCK cycles total sample time.\r
*/\r
-#define ADC_CMDH_STS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_STS_SHIFT)) & ADC_CMDH_STS_MASK)\r
-#define ADC_CMDH_AVGS_MASK (0x7000U)\r
-#define ADC_CMDH_AVGS_SHIFT (12U)\r
+#define ADC_CMDH_STS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_STS_SHIFT)) & ADC_CMDH_STS_MASK)\r
+#define ADC_CMDH_AVGS_MASK (0x7000U)\r
+#define ADC_CMDH_AVGS_SHIFT (12U)\r
/*! AVGS - Hardware Average Select\r
* 0b000..Single conversion.\r
* 0b001..2 conversions averaged.\r
* 0b110..64 conversions averaged.\r
* 0b111..128 conversions averaged.\r
*/\r
-#define ADC_CMDH_AVGS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_AVGS_SHIFT)) & ADC_CMDH_AVGS_MASK)\r
-#define ADC_CMDH_LOOP_MASK (0xF0000U)\r
-#define ADC_CMDH_LOOP_SHIFT (16U)\r
+#define ADC_CMDH_AVGS(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_AVGS_SHIFT)) & ADC_CMDH_AVGS_MASK)\r
+#define ADC_CMDH_LOOP_MASK (0xF0000U)\r
+#define ADC_CMDH_LOOP_SHIFT (16U)\r
/*! LOOP - Loop Count Select\r
* 0b0000..Looping not enabled. Command executes 1 time.\r
* 0b0001..Loop 1 time. Command executes 2 times.\r
* 0b0011-0b1110..Loop corresponding number of times. Command executes LOOP+1 times.\r
* 0b1111..Loop 15 times. Command executes 16 times.\r
*/\r
-#define ADC_CMDH_LOOP(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_LOOP_SHIFT)) & ADC_CMDH_LOOP_MASK)\r
-#define ADC_CMDH_NEXT_MASK (0xF000000U)\r
-#define ADC_CMDH_NEXT_SHIFT (24U)\r
+#define ADC_CMDH_LOOP(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_LOOP_SHIFT)) & ADC_CMDH_LOOP_MASK)\r
+#define ADC_CMDH_NEXT_MASK (0xF000000U)\r
+#define ADC_CMDH_NEXT_SHIFT (24U)\r
/*! NEXT - Next Command Select\r
- * 0b0000..No next command defined. Terminate conversions at completion of current command. If lower priority trigger pending, begin command associated with lower priority trigger.\r
+ * 0b0000..No next command defined. Terminate conversions at completion of current command. If lower priority\r
+ * trigger pending, begin command associated with lower priority trigger.\r
* 0b0001..Select CMD1 command buffer register as next command.\r
* 0b0010-0b1110..Select corresponding CMD command buffer register as next command\r
* 0b1111..Select CMD15 command buffer register as next command.\r
*/\r
-#define ADC_CMDH_NEXT(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_NEXT_SHIFT)) & ADC_CMDH_NEXT_MASK)\r
+#define ADC_CMDH_NEXT(x) (((uint32_t)(((uint32_t)(x)) << ADC_CMDH_NEXT_SHIFT)) & ADC_CMDH_NEXT_MASK)\r
/*! @} */\r
\r
/* The count of ADC_CMDH */\r
-#define ADC_CMDH_COUNT (15U)\r
+#define ADC_CMDH_COUNT (15U)\r
\r
/*! @name CV - Compare Value Register */\r
/*! @{ */\r
-#define ADC_CV_CVL_MASK (0xFFFFU)\r
-#define ADC_CV_CVL_SHIFT (0U)\r
-#define ADC_CV_CVL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CV_CVL_SHIFT)) & ADC_CV_CVL_MASK)\r
-#define ADC_CV_CVH_MASK (0xFFFF0000U)\r
-#define ADC_CV_CVH_SHIFT (16U)\r
-#define ADC_CV_CVH(x) (((uint32_t)(((uint32_t)(x)) << ADC_CV_CVH_SHIFT)) & ADC_CV_CVH_MASK)\r
+#define ADC_CV_CVL_MASK (0xFFFFU)\r
+#define ADC_CV_CVL_SHIFT (0U)\r
+/*! CVL - Compare Value Low.\r
+ */\r
+#define ADC_CV_CVL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CV_CVL_SHIFT)) & ADC_CV_CVL_MASK)\r
+#define ADC_CV_CVH_MASK (0xFFFF0000U)\r
+#define ADC_CV_CVH_SHIFT (16U)\r
+/*! CVH - Compare Value High.\r
+ */\r
+#define ADC_CV_CVH(x) (((uint32_t)(((uint32_t)(x)) << ADC_CV_CVH_SHIFT)) & ADC_CV_CVH_MASK)\r
/*! @} */\r
\r
/* The count of ADC_CV */\r
-#define ADC_CV_COUNT (4U)\r
+#define ADC_CV_COUNT (4U)\r
\r
/*! @name RESFIFO - ADC Data Result FIFO Register */\r
/*! @{ */\r
-#define ADC_RESFIFO_D_MASK (0xFFFFU)\r
-#define ADC_RESFIFO_D_SHIFT (0U)\r
-#define ADC_RESFIFO_D(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_D_SHIFT)) & ADC_RESFIFO_D_MASK)\r
-#define ADC_RESFIFO_TSRC_MASK (0xF0000U)\r
-#define ADC_RESFIFO_TSRC_SHIFT (16U)\r
+#define ADC_RESFIFO_D_MASK (0xFFFFU)\r
+#define ADC_RESFIFO_D_SHIFT (0U)\r
+/*! D - Data result\r
+ */\r
+#define ADC_RESFIFO_D(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_D_SHIFT)) & ADC_RESFIFO_D_MASK)\r
+#define ADC_RESFIFO_TSRC_MASK (0xF0000U)\r
+#define ADC_RESFIFO_TSRC_SHIFT (16U)\r
/*! TSRC - Trigger Source\r
* 0b0000..Trigger source 0 initiated this conversion.\r
* 0b0001..Trigger source 1 initiated this conversion.\r
* 0b0010-0b1110..Corresponding trigger source initiated this conversion.\r
* 0b1111..Trigger source 15 initiated this conversion.\r
*/\r
-#define ADC_RESFIFO_TSRC(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_TSRC_SHIFT)) & ADC_RESFIFO_TSRC_MASK)\r
-#define ADC_RESFIFO_LOOPCNT_MASK (0xF00000U)\r
-#define ADC_RESFIFO_LOOPCNT_SHIFT (20U)\r
+#define ADC_RESFIFO_TSRC(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_TSRC_SHIFT)) & ADC_RESFIFO_TSRC_MASK)\r
+#define ADC_RESFIFO_LOOPCNT_MASK (0xF00000U)\r
+#define ADC_RESFIFO_LOOPCNT_SHIFT (20U)\r
/*! LOOPCNT - Loop count value\r
* 0b0000..Result is from initial conversion in command.\r
* 0b0001..Result is from second conversion in command.\r
* 0b0010-0b1110..Result is from LOOPCNT+1 conversion in command.\r
* 0b1111..Result is from 16th conversion in command.\r
*/\r
-#define ADC_RESFIFO_LOOPCNT(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_LOOPCNT_SHIFT)) & ADC_RESFIFO_LOOPCNT_MASK)\r
-#define ADC_RESFIFO_CMDSRC_MASK (0xF000000U)\r
-#define ADC_RESFIFO_CMDSRC_SHIFT (24U)\r
+#define ADC_RESFIFO_LOOPCNT(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_LOOPCNT_SHIFT)) & ADC_RESFIFO_LOOPCNT_MASK)\r
+#define ADC_RESFIFO_CMDSRC_MASK (0xF000000U)\r
+#define ADC_RESFIFO_CMDSRC_SHIFT (24U)\r
/*! CMDSRC - Command Buffer Source\r
- * 0b0000..Not a valid value CMDSRC value for a dataword in RESFIFO. 0x0 is only found in initial FIFO state prior to an ADC conversion result dataword being stored to a RESFIFO buffer.\r
+ * 0b0000..Not a valid value CMDSRC value for a dataword in RESFIFO. 0x0 is only found in initial FIFO state\r
+ * prior to an ADC conversion result dataword being stored to a RESFIFO buffer.\r
* 0b0001..CMD1 buffer used as control settings for this conversion.\r
* 0b0010-0b1110..Corresponding command buffer used as control settings for this conversion.\r
* 0b1111..CMD15 buffer used as control settings for this conversion.\r
*/\r
-#define ADC_RESFIFO_CMDSRC(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_CMDSRC_SHIFT)) & ADC_RESFIFO_CMDSRC_MASK)\r
-#define ADC_RESFIFO_VALID_MASK (0x80000000U)\r
-#define ADC_RESFIFO_VALID_SHIFT (31U)\r
+#define ADC_RESFIFO_CMDSRC(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_CMDSRC_SHIFT)) & ADC_RESFIFO_CMDSRC_MASK)\r
+#define ADC_RESFIFO_VALID_MASK (0x80000000U)\r
+#define ADC_RESFIFO_VALID_SHIFT (31U)\r
/*! VALID - FIFO entry is valid\r
* 0b0..FIFO is empty. Discard any read from RESFIFO.\r
* 0b1..FIFO record read from RESFIFO is valid.\r
*/\r
-#define ADC_RESFIFO_VALID(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_VALID_SHIFT)) & ADC_RESFIFO_VALID_MASK)\r
+#define ADC_RESFIFO_VALID(x) (((uint32_t)(((uint32_t)(x)) << ADC_RESFIFO_VALID_SHIFT)) & ADC_RESFIFO_VALID_MASK)\r
/*! @} */\r
\r
/* The count of ADC_RESFIFO */\r
-#define ADC_RESFIFO_COUNT (2U)\r
+#define ADC_RESFIFO_COUNT (2U)\r
\r
/*! @name CAL_GAR - Calibration General A-Side Registers */\r
/*! @{ */\r
-#define ADC_CAL_GAR_CAL_GAR_VAL_MASK (0xFFFFU)\r
-#define ADC_CAL_GAR_CAL_GAR_VAL_SHIFT (0U)\r
-#define ADC_CAL_GAR_CAL_GAR_VAL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CAL_GAR_CAL_GAR_VAL_SHIFT)) & ADC_CAL_GAR_CAL_GAR_VAL_MASK)\r
+#define ADC_CAL_GAR_CAL_GAR_VAL_MASK (0xFFFFU)\r
+#define ADC_CAL_GAR_CAL_GAR_VAL_SHIFT (0U)\r
+/*! CAL_GAR_VAL - Calibration General A Side Register Element\r
+ */\r
+#define ADC_CAL_GAR_CAL_GAR_VAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ADC_CAL_GAR_CAL_GAR_VAL_SHIFT)) & ADC_CAL_GAR_CAL_GAR_VAL_MASK)\r
/*! @} */\r
\r
/* The count of ADC_CAL_GAR */\r
-#define ADC_CAL_GAR_COUNT (33U)\r
+#define ADC_CAL_GAR_COUNT (33U)\r
\r
/*! @name CAL_GBR - Calibration General B-Side Registers */\r
/*! @{ */\r
-#define ADC_CAL_GBR_CAL_GBR_VAL_MASK (0xFFFFU)\r
-#define ADC_CAL_GBR_CAL_GBR_VAL_SHIFT (0U)\r
-#define ADC_CAL_GBR_CAL_GBR_VAL(x) (((uint32_t)(((uint32_t)(x)) << ADC_CAL_GBR_CAL_GBR_VAL_SHIFT)) & ADC_CAL_GBR_CAL_GBR_VAL_MASK)\r
+#define ADC_CAL_GBR_CAL_GBR_VAL_MASK (0xFFFFU)\r
+#define ADC_CAL_GBR_CAL_GBR_VAL_SHIFT (0U)\r
+/*! CAL_GBR_VAL - Calibration General B Side Register Element\r
+ */\r
+#define ADC_CAL_GBR_CAL_GBR_VAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ADC_CAL_GBR_CAL_GBR_VAL_SHIFT)) & ADC_CAL_GBR_CAL_GBR_VAL_MASK)\r
/*! @} */\r
\r
/* The count of ADC_CAL_GBR */\r
-#define ADC_CAL_GBR_COUNT (33U)\r
+#define ADC_CAL_GBR_COUNT (33U)\r
\r
/*! @name TST - ADC Test Register */\r
/*! @{ */\r
-#define ADC_TST_CST_LONG_MASK (0x1U)\r
-#define ADC_TST_CST_LONG_SHIFT (0U)\r
+#define ADC_TST_CST_LONG_MASK (0x1U)\r
+#define ADC_TST_CST_LONG_SHIFT (0U)\r
/*! CST_LONG - Calibration Sample Time Long\r
* 0b0..Normal sample time. Minimum sample time of 3 ADCK cycles.\r
* 0b1..Increased sample time. 67 ADCK cycles total sample time.\r
*/\r
-#define ADC_TST_CST_LONG(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_CST_LONG_SHIFT)) & ADC_TST_CST_LONG_MASK)\r
-#define ADC_TST_FOFFM_MASK (0x100U)\r
-#define ADC_TST_FOFFM_SHIFT (8U)\r
+#define ADC_TST_CST_LONG(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_CST_LONG_SHIFT)) & ADC_TST_CST_LONG_MASK)\r
+#define ADC_TST_FOFFM_MASK (0x100U)\r
+#define ADC_TST_FOFFM_SHIFT (8U)\r
/*! FOFFM - Force M-side positive offset\r
* 0b0..Normal operation. No forced offset.\r
* 0b1..Test configuration. Forced positive offset on MDAC.\r
*/\r
-#define ADC_TST_FOFFM(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_FOFFM_SHIFT)) & ADC_TST_FOFFM_MASK)\r
-#define ADC_TST_FOFFP_MASK (0x200U)\r
-#define ADC_TST_FOFFP_SHIFT (9U)\r
+#define ADC_TST_FOFFM(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_FOFFM_SHIFT)) & ADC_TST_FOFFM_MASK)\r
+#define ADC_TST_FOFFP_MASK (0x200U)\r
+#define ADC_TST_FOFFP_SHIFT (9U)\r
/*! FOFFP - Force P-side positive offset\r
* 0b0..Normal operation. No forced offset.\r
* 0b1..Test configuration. Forced positive offset on PDAC.\r
*/\r
-#define ADC_TST_FOFFP(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_FOFFP_SHIFT)) & ADC_TST_FOFFP_MASK)\r
-#define ADC_TST_FOFFM2_MASK (0x400U)\r
-#define ADC_TST_FOFFM2_SHIFT (10U)\r
+#define ADC_TST_FOFFP(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_FOFFP_SHIFT)) & ADC_TST_FOFFP_MASK)\r
+#define ADC_TST_FOFFM2_MASK (0x400U)\r
+#define ADC_TST_FOFFM2_SHIFT (10U)\r
/*! FOFFM2 - Force M-side negative offset\r
* 0b0..Normal operation. No forced offset.\r
* 0b1..Test configuration. Forced negative offset on MDAC.\r
*/\r
-#define ADC_TST_FOFFM2(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_FOFFM2_SHIFT)) & ADC_TST_FOFFM2_MASK)\r
-#define ADC_TST_FOFFP2_MASK (0x800U)\r
-#define ADC_TST_FOFFP2_SHIFT (11U)\r
+#define ADC_TST_FOFFM2(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_FOFFM2_SHIFT)) & ADC_TST_FOFFM2_MASK)\r
+#define ADC_TST_FOFFP2_MASK (0x800U)\r
+#define ADC_TST_FOFFP2_SHIFT (11U)\r
/*! FOFFP2 - Force P-side negative offset\r
* 0b0..Normal operation. No forced offset.\r
* 0b1..Test configuration. Forced negative offset on PDAC.\r
*/\r
-#define ADC_TST_FOFFP2(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_FOFFP2_SHIFT)) & ADC_TST_FOFFP2_MASK)\r
-#define ADC_TST_TESTEN_MASK (0x800000U)\r
-#define ADC_TST_TESTEN_SHIFT (23U)\r
+#define ADC_TST_FOFFP2(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_FOFFP2_SHIFT)) & ADC_TST_FOFFP2_MASK)\r
+#define ADC_TST_TESTEN_MASK (0x800000U)\r
+#define ADC_TST_TESTEN_SHIFT (23U)\r
/*! TESTEN - Enable test configuration\r
* 0b0..Normal operation. Test configuration not enabled.\r
* 0b1..Hardware BIST Test in progress.\r
*/\r
-#define ADC_TST_TESTEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_TESTEN_SHIFT)) & ADC_TST_TESTEN_MASK)\r
+#define ADC_TST_TESTEN(x) (((uint32_t)(((uint32_t)(x)) << ADC_TST_TESTEN_SHIFT)) & ADC_TST_TESTEN_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group ADC_Register_Masks */\r
\r
-\r
/* ADC - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral ADC0 base address */\r
- #define ADC0_BASE (0x500A0000u)\r
- /** Peripheral ADC0 base address */\r
- #define ADC0_BASE_NS (0x400A0000u)\r
- /** Peripheral ADC0 base pointer */\r
- #define ADC0 ((ADC_Type *)ADC0_BASE)\r
- /** Peripheral ADC0 base pointer */\r
- #define ADC0_NS ((ADC_Type *)ADC0_BASE_NS)\r
- /** Array initializer of ADC peripheral base addresses */\r
- #define ADC_BASE_ADDRS { ADC0_BASE }\r
- /** Array initializer of ADC peripheral base pointers */\r
- #define ADC_BASE_PTRS { ADC0 }\r
- /** Array initializer of ADC peripheral base addresses */\r
- #define ADC_BASE_ADDRS_NS { ADC0_BASE_NS }\r
- /** Array initializer of ADC peripheral base pointers */\r
- #define ADC_BASE_PTRS_NS { ADC0_NS }\r
+/** Peripheral ADC0 base address */\r
+#define ADC0_BASE (0x500A0000u)\r
+/** Peripheral ADC0 base address */\r
+#define ADC0_BASE_NS (0x400A0000u)\r
+/** Peripheral ADC0 base pointer */\r
+#define ADC0 ((ADC_Type *)ADC0_BASE)\r
+/** Peripheral ADC0 base pointer */\r
+#define ADC0_NS ((ADC_Type *)ADC0_BASE_NS)\r
+/** Array initializer of ADC peripheral base addresses */\r
+#define ADC_BASE_ADDRS \\r
+ { \\r
+ ADC0_BASE \\r
+ }\r
+/** Array initializer of ADC peripheral base pointers */\r
+#define ADC_BASE_PTRS \\r
+ { \\r
+ ADC0 \\r
+ }\r
+/** Array initializer of ADC peripheral base addresses */\r
+#define ADC_BASE_ADDRS_NS \\r
+ { \\r
+ ADC0_BASE_NS \\r
+ }\r
+/** Array initializer of ADC peripheral base pointers */\r
+#define ADC_BASE_PTRS_NS \\r
+ { \\r
+ ADC0_NS \\r
+ }\r
#else\r
- /** Peripheral ADC0 base address */\r
- #define ADC0_BASE (0x400A0000u)\r
- /** Peripheral ADC0 base pointer */\r
- #define ADC0 ((ADC_Type *)ADC0_BASE)\r
- /** Array initializer of ADC peripheral base addresses */\r
- #define ADC_BASE_ADDRS { ADC0_BASE }\r
- /** Array initializer of ADC peripheral base pointers */\r
- #define ADC_BASE_PTRS { ADC0 }\r
+/** Peripheral ADC0 base address */\r
+#define ADC0_BASE (0x400A0000u)\r
+/** Peripheral ADC0 base pointer */\r
+#define ADC0 ((ADC_Type *)ADC0_BASE)\r
+/** Array initializer of ADC peripheral base addresses */\r
+#define ADC_BASE_ADDRS \\r
+ { \\r
+ ADC0_BASE \\r
+ }\r
+/** Array initializer of ADC peripheral base pointers */\r
+#define ADC_BASE_PTRS \\r
+ { \\r
+ ADC0 \\r
+ }\r
#endif\r
/** Interrupt vectors for the ADC peripheral type */\r
-#define ADC_IRQS { ADC0_IRQn }\r
+#define ADC_IRQS \\r
+ { \\r
+ ADC0_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group ADC_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- AHB_SECURE_CTRL Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** AHB_SECURE_CTRL - Register Layout Typedef */\r
-typedef struct {\r
- struct { /* offset: 0x0, array step: 0x30 */\r
- __IO uint32_t SLAVE_RULE; /**< , array offset: 0x0, array step: 0x30 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t SEC_CTRL_FLASH_MEM_RULE[3]; /**< Security access rules for FLASH sector 0 to sector 20. Each Flash sector is 32 Kbytes. There are 20 FLASH sectors in total., array offset: 0x10, array step: index*0x30, index2*0x4 */\r
- uint8_t RESERVED_1[4];\r
- __IO uint32_t SEC_CTRL_ROM_MEM_RULE[4]; /**< Security access rules for ROM sector 0 to sector 31. Each ROM sector is 4 Kbytes. There are 32 ROM sectors in total., array offset: 0x20, array step: index*0x30, index2*0x4 */\r
- } SEC_CTRL_FLASH_ROM[1];\r
- struct { /* offset: 0x30, array step: 0x14 */\r
- __IO uint32_t SLAVE_RULE; /**< Security access rules for RAMX slaves., array offset: 0x30, array step: 0x14 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t MEM_RULE[1]; /**< , array offset: 0x40, array step: index*0x14, index2*0x4 */\r
- } SEC_CTRL_RAMX[1];\r
- uint8_t RESERVED_0[12];\r
- struct { /* offset: 0x50, array step: 0x18 */\r
- __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM0 slaves., array offset: 0x50, array step: 0x18 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t MEM_RULE[2]; /**< , array offset: 0x60, array step: index*0x18, index2*0x4 */\r
- } SEC_CTRL_RAM0[1];\r
- uint8_t RESERVED_1[8];\r
- struct { /* offset: 0x70, array step: 0x18 */\r
- __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM1 slaves., array offset: 0x70, array step: 0x18 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t MEM_RULE[2]; /**< , array offset: 0x80, array step: index*0x18, index2*0x4 */\r
- } SEC_CTRL_RAM1[1];\r
- uint8_t RESERVED_2[8];\r
- struct { /* offset: 0x90, array step: 0x18 */\r
- __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM2 slaves., array offset: 0x90, array step: 0x18 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t MEM_RULE[2]; /**< , array offset: 0xA0, array step: index*0x18, index2*0x4 */\r
- } SEC_CTRL_RAM2[1];\r
- uint8_t RESERVED_3[8];\r
- struct { /* offset: 0xB0, array step: 0x18 */\r
- __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM3 slaves., array offset: 0xB0, array step: 0x18 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t MEM_RULE[2]; /**< , array offset: 0xC0, array step: index*0x18, index2*0x4 */\r
- } SEC_CTRL_RAM3[1];\r
- uint8_t RESERVED_4[8];\r
- struct { /* offset: 0xD0, array step: 0x14 */\r
- __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM4 slaves., array offset: 0xD0, array step: 0x14 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t MEM_RULE[1]; /**< , array offset: 0xE0, array step: index*0x14, index2*0x4 */\r
- } SEC_CTRL_RAM4[1];\r
- uint8_t RESERVED_5[12];\r
- struct { /* offset: 0xF0, array step: 0x30 */\r
- __IO uint32_t SLAVE_RULE; /**< , array offset: 0xF0, array step: 0x30 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t SEC_CTRL_APB_BRIDGE0_MEM_CTRL0; /**< Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in total., array offset: 0x100, array step: 0x30 */\r
- __IO uint32_t SEC_CTRL_APB_BRIDGE0_MEM_CTRL1; /**< Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in total., array offset: 0x104, array step: 0x30 */\r
- __IO uint32_t SEC_CTRL_APB_BRIDGE0_MEM_CTRL2; /**< Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in total., array offset: 0x108, array step: 0x30 */\r
- __IO uint32_t SEC_CTRL_APB_BRIDGE0_MEM_CTRL3; /**< Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in total., array offset: 0x10C, array step: 0x30 */\r
- __IO uint32_t SEC_CTRL_APB_BRIDGE1_MEM_CTRL0; /**< Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in total., array offset: 0x110, array step: 0x30 */\r
- __IO uint32_t SEC_CTRL_APB_BRIDGE1_MEM_CTRL1; /**< Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in total., array offset: 0x114, array step: 0x30 */\r
- __IO uint32_t SEC_CTRL_APB_BRIDGE1_MEM_CTRL2; /**< Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in total., array offset: 0x118, array step: 0x30 */\r
- __IO uint32_t SEC_CTRL_APB_BRIDGE1_MEM_CTRL3; /**< Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in total., array offset: 0x11C, array step: 0x30 */\r
- } SEC_CTRL_APB_BRIDGE[1];\r
- __IO uint32_t SEC_CTRL_AHB0_0_SLAVE_RULE; /**< Security access rules for AHB peripherals., offset: 0x120 */\r
- __IO uint32_t SEC_CTRL_AHB0_1_SLAVE_RULE; /**< Security access rules for AHB peripherals., offset: 0x124 */\r
- uint8_t RESERVED_6[8];\r
- __IO uint32_t SEC_CTRL_AHB1_0_SLAVE_RULE; /**< Security access rules for AHB peripherals., offset: 0x130 */\r
- __IO uint32_t SEC_CTRL_AHB1_1_SLAVE_RULE; /**< Security access rules for AHB peripherals., offset: 0x134 */\r
- uint8_t RESERVED_7[12];\r
- struct { /* offset: 0x144, array step: 0x14 */\r
- __IO uint32_t SEC_CTRL_AHB2_0_SLAVE_RULE; /**< Security access rules for AHB peripherals., array offset: 0x144, array step: 0x14 */\r
- __IO uint32_t SEC_CTRL_AHB2_1_SLAVE_RULE; /**< Security access rules for AHB peripherals., array offset: 0x148, array step: 0x14 */\r
- uint8_t RESERVED_0[8];\r
- __IO uint32_t SEC_CTRL_AHB2_0_MEM_RULE[1]; /**< , array offset: 0x154, array step: index*0x14, index2*0x4 */\r
- } SEC_CTRL_AHB2[1];\r
- uint8_t RESERVED_8[8];\r
- struct { /* offset: 0x160, array step: 0x14 */\r
- __IO uint32_t SLAVE_RULE; /**< , array offset: 0x160, array step: 0x14 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t MEM_RULE[1]; /**< , array offset: 0x170, array step: index*0x14, index2*0x4 */\r
- } SEC_CTRL_USB_HS[1];\r
- uint8_t RESERVED_9[3212];\r
- __I uint32_t SEC_VIO_ADDR[18]; /**< most recent security violation address for AHB layer n, array offset: 0xE00, array step: 0x4 */\r
- uint8_t RESERVED_10[56];\r
- __I uint32_t SEC_VIO_MISC_INFO[18]; /**< most recent security violation miscellaneous information for AHB layer n, array offset: 0xE80, array step: 0x4 */\r
- uint8_t RESERVED_11[56];\r
- __IO uint32_t SEC_VIO_INFO_VALID; /**< security violation address/information registers valid flags, offset: 0xF00 */\r
- uint8_t RESERVED_12[124];\r
- __IO uint32_t SEC_GPIO_MASK0; /**< Secure GPIO mask for port 0 pins. This register is used to block leakage of Secure interface (GPIOs, I2C, UART configured as secure peripherals) pin states to non-secure world., offset: 0xF80 */\r
- __IO uint32_t SEC_GPIO_MASK1; /**< Secure GPIO mask for port 1 pins., offset: 0xF84 */\r
- __IO uint32_t SEC_GPIO_MASK2; /**< Secure GPIO mask for port 2 pins., offset: 0xF88 */\r
- __IO uint32_t SEC_GPIO_MASK3; /**< Secure GPIO mask for port 3 pins., offset: 0xF8C */\r
- __IO uint32_t SEC_CPU_INT_MASK0; /**< Secure Interrupt mask for CPU1, offset: 0xF90 */\r
- __IO uint32_t SEC_CPU_INT_MASK1; /**< Secure Interrupt mask for CPU1, offset: 0xF94 */\r
- uint8_t RESERVED_13[36];\r
- __IO uint32_t SEC_MASK_LOCK; /**< Security General Purpose register access control., offset: 0xFBC */\r
- uint8_t RESERVED_14[16];\r
- __IO uint32_t MASTER_SEC_LEVEL; /**< master secure level register, offset: 0xFD0 */\r
- __IO uint32_t MASTER_SEC_ANTI_POL_REG; /**< master secure level anti-pole register, offset: 0xFD4 */\r
- uint8_t RESERVED_15[20];\r
- __IO uint32_t CM33_LOCK_REG; /**< Miscalleneous control signals for in CM33 (CPU0), offset: 0xFEC */\r
- __IO uint32_t MCM33_LOCK_REG; /**< Miscalleneous control signals for in micro-CM33 (CPU1), offset: 0xFF0 */\r
- uint8_t RESERVED_16[4];\r
- __IO uint32_t MISC_CTRL_DP_REG; /**< secure control duplicate register, offset: 0xFF8 */\r
- __IO uint32_t MISC_CTRL_REG; /**< secure control register, offset: 0xFFC */\r
+typedef struct\r
+{\r
+ struct\r
+ { /* offset: 0x0, array step: 0x30 */\r
+ __IO uint32_t\r
+ SLAVE_RULE; /**< Security access rules for Flash and ROM slaves., array offset: 0x0, array step: 0x30 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t SEC_CTRL_FLASH_MEM_RULE[3]; /**< Security access rules for FLASH sector 0 to sector 20. Each Flash\r
+ sector is 32 Kbytes. There are 20 FLASH sectors in total., array\r
+ offset: 0x10, array step: index*0x30, index2*0x4 */\r
+ uint8_t RESERVED_1[4];\r
+ __IO uint32_t SEC_CTRL_ROM_MEM_RULE[4]; /**< Security access rules for ROM sector 0 to sector 31. Each ROM\r
+ sector is 4 Kbytes. There are 32 ROM sectors in total., array offset:\r
+ 0x20, array step: index*0x30, index2*0x4 */\r
+ } SEC_CTRL_FLASH_ROM[1];\r
+ struct\r
+ { /* offset: 0x30, array step: 0x14 */\r
+ __IO uint32_t SLAVE_RULE; /**< Security access rules for RAMX slaves., array offset: 0x30, array step: 0x14 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t MEM_RULE[1]; /**< Security access rules for RAMX slaves., array offset: 0x40, array step:\r
+ index*0x14, index2*0x4 */\r
+ } SEC_CTRL_RAMX[1];\r
+ uint8_t RESERVED_0[12];\r
+ struct\r
+ { /* offset: 0x50, array step: 0x18 */\r
+ __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM0 slaves., array offset: 0x50, array step: 0x18 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t MEM_RULE[2]; /**< Security access rules for RAM0 slaves., array offset: 0x60, array step:\r
+ index*0x18, index2*0x4 */\r
+ } SEC_CTRL_RAM0[1];\r
+ uint8_t RESERVED_1[8];\r
+ struct\r
+ { /* offset: 0x70, array step: 0x18 */\r
+ __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM1 slaves., array offset: 0x70, array step: 0x18 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t MEM_RULE[2]; /**< Security access rules for RAM1 slaves., array offset: 0x80, array step:\r
+ index*0x18, index2*0x4 */\r
+ } SEC_CTRL_RAM1[1];\r
+ uint8_t RESERVED_2[8];\r
+ struct\r
+ { /* offset: 0x90, array step: 0x18 */\r
+ __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM2 slaves., array offset: 0x90, array step: 0x18 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t MEM_RULE[2]; /**< Security access rules for RAM2 slaves., array offset: 0xA0, array step:\r
+ index*0x18, index2*0x4 */\r
+ } SEC_CTRL_RAM2[1];\r
+ uint8_t RESERVED_3[8];\r
+ struct\r
+ { /* offset: 0xB0, array step: 0x18 */\r
+ __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM3 slaves., array offset: 0xB0, array step: 0x18 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t MEM_RULE[2]; /**< Security access rules for RAM3 slaves., array offset: 0xC0, array step:\r
+ index*0x18, index2*0x4 */\r
+ } SEC_CTRL_RAM3[1];\r
+ uint8_t RESERVED_4[8];\r
+ struct\r
+ { /* offset: 0xD0, array step: 0x14 */\r
+ __IO uint32_t SLAVE_RULE; /**< Security access rules for RAM4 slaves., array offset: 0xD0, array step: 0x14 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t MEM_RULE[1]; /**< Security access rules for RAM4 slaves., array offset: 0xE0, array step:\r
+ index*0x14, index2*0x4 */\r
+ } SEC_CTRL_RAM4[1];\r
+ uint8_t RESERVED_5[12];\r
+ struct\r
+ { /* offset: 0xF0, array step: 0x30 */\r
+ __IO uint32_t\r
+ SLAVE_RULE; /**< Security access rules for both APB Bridges slaves., array offset: 0xF0, array step: 0x30 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t SEC_CTRL_APB_BRIDGE0_MEM_CTRL0; /**< Security access rules for APB Bridge 0 peripherals. Each APB\r
+ bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in\r
+ total., array offset: 0x100, array step: 0x30 */\r
+ __IO uint32_t SEC_CTRL_APB_BRIDGE0_MEM_CTRL1; /**< Security access rules for APB Bridge 0 peripherals. Each APB\r
+ bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in\r
+ total., array offset: 0x104, array step: 0x30 */\r
+ __IO uint32_t SEC_CTRL_APB_BRIDGE0_MEM_CTRL2; /**< Security access rules for APB Bridge 0 peripherals. Each APB\r
+ bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in\r
+ total., array offset: 0x108, array step: 0x30 */\r
+ uint8_t RESERVED_1[4];\r
+ __IO uint32_t SEC_CTRL_APB_BRIDGE1_MEM_CTRL0; /**< Security access rules for APB Bridge 1 peripherals. Each APB\r
+ bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in\r
+ total., array offset: 0x110, array step: 0x30 */\r
+ __IO uint32_t SEC_CTRL_APB_BRIDGE1_MEM_CTRL1; /**< Security access rules for APB Bridge 1 peripherals. Each APB\r
+ bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in\r
+ total., array offset: 0x114, array step: 0x30 */\r
+ __IO uint32_t SEC_CTRL_APB_BRIDGE1_MEM_CTRL2; /**< Security access rules for APB Bridge 1 peripherals. Each APB\r
+ bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in\r
+ total., array offset: 0x118, array step: 0x30 */\r
+ __IO uint32_t SEC_CTRL_APB_BRIDGE1_MEM_CTRL3; /**< Security access rules for APB Bridge 1 peripherals. Each APB\r
+ bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in\r
+ total., array offset: 0x11C, array step: 0x30 */\r
+ } SEC_CTRL_APB_BRIDGE[1];\r
+ __IO uint32_t SEC_CTRL_AHB_PORT8_SLAVE0_RULE; /**< Security access rules for AHB peripherals., offset: 0x120 */\r
+ __IO uint32_t SEC_CTRL_AHB_PORT8_SLAVE1_RULE; /**< Security access rules for AHB peripherals., offset: 0x124 */\r
+ uint8_t RESERVED_6[8];\r
+ __IO uint32_t SEC_CTRL_AHB_PORT9_SLAVE0_RULE; /**< Security access rules for AHB peripherals., offset: 0x130 */\r
+ __IO uint32_t SEC_CTRL_AHB_PORT9_SLAVE1_RULE; /**< Security access rules for AHB peripherals., offset: 0x134 */\r
+ uint8_t RESERVED_7[8];\r
+ struct\r
+ { /* offset: 0x140, array step: 0x14 */\r
+ __IO uint32_t\r
+ SLAVE0_RULE; /**< Security access rules for AHB peripherals., array offset: 0x140, array step: 0x14 */\r
+ __IO uint32_t\r
+ SLAVE1_RULE; /**< Security access rules for AHB peripherals., array offset: 0x144, array step: 0x14 */\r
+ uint8_t RESERVED_0[8];\r
+ __IO uint32_t SEC_CTRL_AHB_SEC_CTRL_MEM_RULE[1]; /**< Security access rules for AHB_SEC_CTRL_AHB., array offset:\r
+ 0x150, array step: index*0x14, index2*0x4 */\r
+ } SEC_CTRL_AHB_PORT10[1];\r
+ uint8_t RESERVED_8[12];\r
+ struct\r
+ { /* offset: 0x160, array step: 0x14 */\r
+ __IO uint32_t SLAVE_RULE; /**< Security access rules for USB High speed RAM slaves., array offset: 0x160, array\r
+ step: 0x14 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t MEM_RULE[1]; /**< Security access rules for RAM_USB_HS., array offset: 0x170, array step:\r
+ index*0x14, index2*0x4 */\r
+ } SEC_CTRL_USB_HS[1];\r
+ uint8_t RESERVED_9[3212];\r
+ __I uint32_t SEC_VIO_ADDR[12]; /**< most recent security violation address for AHB port n, array offset: 0xE00,\r
+ array step: 0x4 */\r
+ uint8_t RESERVED_10[80];\r
+ __I uint32_t SEC_VIO_MISC_INFO[12]; /**< most recent security violation miscellaneous information for AHB port n,\r
+ array offset: 0xE80, array step: 0x4 */\r
+ uint8_t RESERVED_11[80];\r
+ __IO uint32_t\r
+ SEC_VIO_INFO_VALID; /**< security violation address/information registers valid flags, offset: 0xF00 */\r
+ uint8_t RESERVED_12[124];\r
+ __IO uint32_t SEC_GPIO_MASK0; /**< Secure GPIO mask for port 0 pins., offset: 0xF80 */\r
+ __IO uint32_t SEC_GPIO_MASK1; /**< Secure GPIO mask for port 1 pins., offset: 0xF84 */\r
+ uint8_t RESERVED_13[8];\r
+ __IO uint32_t SEC_CPU_INT_MASK0; /**< Secure Interrupt mask for CPU1, offset: 0xF90 */\r
+ __IO uint32_t SEC_CPU_INT_MASK1; /**< Secure Interrupt mask for CPU1, offset: 0xF94 */\r
+ uint8_t RESERVED_14[36];\r
+ __IO uint32_t SEC_MASK_LOCK; /**< Security General Purpose register access control., offset: 0xFBC */\r
+ uint8_t RESERVED_15[16];\r
+ __IO uint32_t MASTER_SEC_LEVEL; /**< master secure level register, offset: 0xFD0 */\r
+ __IO uint32_t MASTER_SEC_ANTI_POL_REG; /**< master secure level anti-pole register, offset: 0xFD4 */\r
+ uint8_t RESERVED_16[20];\r
+ __IO uint32_t CPU0_LOCK_REG; /**< Miscalleneous control signals for in Cortex M33 (CPU0), offset: 0xFEC */\r
+ __IO uint32_t CPU1_LOCK_REG; /**< Miscalleneous control signals for in micro-Cortex M33 (CPU1), offset: 0xFF0 */\r
+ uint8_t RESERVED_17[4];\r
+ __IO uint32_t MISC_CTRL_DP_REG; /**< secure control duplicate register, offset: 0xFF8 */\r
+ __IO uint32_t MISC_CTRL_REG; /**< secure control register, offset: 0xFFC */\r
} AHB_SECURE_CTRL_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name SEC_CTRL_FLASH_ROM_SLAVE_RULE - */\r
+/*! @name SEC_CTRL_FLASH_ROM_SLAVE_RULE - Security access rules for Flash and ROM slaves. */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_FLASH_RULE_MASK (0x3U)\r
#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_FLASH_RULE_SHIFT (0U)\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_FLASH_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_FLASH_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_FLASH_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_FLASH_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_FLASH_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_FLASH_RULE_MASK)\r
#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_ROM_RULE_MASK (0x30U)\r
#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_ROM_RULE_SHIFT (4U)\r
/*! ROM_RULE - Security access rules for the whole ROM : 0x0300_0000 - 0x0301_FFFF\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_ROM_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_ROM_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_ROM_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_ROM_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_ROM_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_ROM_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE - Security access rules for FLASH sector 0 to sector 20. Each Flash sector is 32 Kbytes. There are 20 FLASH sectors in total. */\r
+/*! @name SEC_CTRL_FLASH_MEM_RULE - Security access rules for FLASH sector 0 to sector 20. Each Flash sector is 32\r
+ * Kbytes. There are 20 FLASH sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE0_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE0_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE0_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE0_SHIFT (0U)\r
/*! RULE0 - secure control rule0. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE0_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE1_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE1_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE1_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE1_SHIFT (4U)\r
/*! RULE1 - secure control rule1. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE1_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE1_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE2_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE2_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE1_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE2_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE2_SHIFT (8U)\r
/*! RULE2 - secure control rule2. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE2_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE2_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE3_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE3_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE2_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE3_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE3_SHIFT (12U)\r
/*! RULE3 - secure control rule3. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE3_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE3_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE4_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE4_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE3_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE4_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE4_SHIFT (16U)\r
/*! RULE4 - secure control rule4. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE4_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE4_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE5_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE5_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE4_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE5_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE5_SHIFT (20U)\r
/*! RULE5 - secure control rule5. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE5_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE5_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE6_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE6_SHIFT (24U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE5_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE6_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE6_SHIFT (24U)\r
/*! RULE6 - secure control rule6. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE6_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE6_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE7_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE7_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE6_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE7_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE7_SHIFT (28U)\r
/*! RULE7 - secure control rule7. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE7_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_RULE7_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_RULE7_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_FLASH_MEM_RULE_COUNT2 (3U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_MEM_RULE_COUNT2 (3U)\r
\r
-/*! @name SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE - Security access rules for ROM sector 0 to sector 31. Each ROM sector is 4 Kbytes. There are 32 ROM sectors in total. */\r
+/*! @name SEC_CTRL_ROM_MEM_RULE - Security access rules for ROM sector 0 to sector 31. Each ROM sector is 4 Kbytes.\r
+ * There are 32 ROM sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE0_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE0_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE0_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE0_SHIFT (0U)\r
/*! RULE0 - secure control rule0. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE0_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE1_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE1_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE1_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE1_SHIFT (4U)\r
/*! RULE1 - secure control rule1. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE1_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE1_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE2_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE2_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE1_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE2_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE2_SHIFT (8U)\r
/*! RULE2 - secure control rule2. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE2_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE2_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE3_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE3_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE2_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE3_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE3_SHIFT (12U)\r
/*! RULE3 - secure control rule3. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE3_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE3_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE4_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE4_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE3_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE4_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE4_SHIFT (16U)\r
/*! RULE4 - secure control rule4. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE4_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE4_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE5_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE5_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE4_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE5_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE5_SHIFT (20U)\r
/*! RULE5 - secure control rule5. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE5_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE5_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE6_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE6_SHIFT (24U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE5_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE6_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE6_SHIFT (24U)\r
/*! RULE6 - secure control rule6. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE6_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE6_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE7_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE7_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE6_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE7_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE7_SHIFT (28U)\r
/*! RULE7 - secure control rule7. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE7_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_RULE7_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_RULE7_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_FLASH_ROM_SEC_CTRL_ROM_MEM_RULE_COUNT2 (4U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_ROM_MEM_RULE_COUNT2 (4U)\r
\r
/*! @name SEC_CTRL_RAMX_SLAVE_RULE - Security access rules for RAMX slaves. */\r
/*! @{ */\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SLAVE_RULE_RAMX_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SLAVE_RULE_RAMX_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SLAVE_RULE_RAMX_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SLAVE_RULE_RAMX_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SLAVE_RULE_RAMX_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_SLAVE_RULE_RAMX_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAMX_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE - */\r
+/*! @name SEC_CTRL_RAMX_MEM_RULE - Security access rules for RAMX slaves. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE0_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE0_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE0_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE0_SHIFT (0U)\r
/*! RULE0 - secure control rule0. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE0_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE1_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE1_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE1_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE1_SHIFT (4U)\r
/*! RULE1 - secure control rule1. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE1_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE1_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE2_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE2_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE1_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE2_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE2_SHIFT (8U)\r
/*! RULE2 - secure control rule2. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE2_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE2_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE3_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE3_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE2_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE3_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE3_SHIFT (12U)\r
/*! RULE3 - secure control rule3. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE3_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE3_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE4_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE4_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE3_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE4_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE4_SHIFT (16U)\r
/*! RULE4 - secure control rule4. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE4_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE4_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE5_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE5_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE4_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE5_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE5_SHIFT (20U)\r
/*! RULE5 - secure control rule5. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE5_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE5_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE6_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE6_SHIFT (24U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE5_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE6_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE6_SHIFT (24U)\r
/*! RULE6 - secure control rule6. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE6_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE6_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE7_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE7_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE6_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE7_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE7_SHIFT (28U)\r
/*! RULE7 - secure control rule7. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE7_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_RULE7_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_RULE7_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_SEC_CTRL_RAMX_MEM_RULE_MEM_RULE_COUNT2 (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAMX_MEM_RULE_COUNT2 (1U)\r
\r
/*! @name SEC_CTRL_RAM0_SLAVE_RULE - Security access rules for RAM0 slaves. */\r
/*! @{ */\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SLAVE_RULE_RAM0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SLAVE_RULE_RAM0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SLAVE_RULE_RAM0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SLAVE_RULE_RAM0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SLAVE_RULE_RAM0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_SLAVE_RULE_RAM0_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM0_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE - */\r
+/*! @name SEC_CTRL_RAM0_MEM_RULE - Security access rules for RAM0 slaves. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE0_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE0_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE0_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE0_SHIFT (0U)\r
/*! RULE0 - secure control rule0. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE0_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE1_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE1_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE1_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE1_SHIFT (4U)\r
/*! RULE1 - secure control rule1. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE1_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE1_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE2_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE2_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE1_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE2_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE2_SHIFT (8U)\r
/*! RULE2 - secure control rule2. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE2_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE2_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE3_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE3_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE2_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE3_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE3_SHIFT (12U)\r
/*! RULE3 - secure control rule3. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE3_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE3_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE4_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE4_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE3_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE4_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE4_SHIFT (16U)\r
/*! RULE4 - secure control rule4. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE4_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE4_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE5_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE5_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE4_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE5_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE5_SHIFT (20U)\r
/*! RULE5 - secure control rule5. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE5_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE5_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE6_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE6_SHIFT (24U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE5_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE6_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE6_SHIFT (24U)\r
/*! RULE6 - secure control rule6. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE6_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE6_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE7_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE7_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE6_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE7_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE7_SHIFT (28U)\r
/*! RULE7 - secure control rule7. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE7_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_RULE7_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_RULE7_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_SEC_CTRL_RAM0_MEM_RULE_MEM_RULE_COUNT2 (2U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM0_MEM_RULE_COUNT2 (2U)\r
\r
/*! @name SEC_CTRL_RAM1_SLAVE_RULE - Security access rules for RAM1 slaves. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM0_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM0_RULE_SHIFT (0U)\r
-/*! RAM0_RULE - Security access rules for the whole RAM1 : 0x2001_0000 - 0x2001_FFFF" name="0\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM1_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM1_RULE_SHIFT (0U)\r
+/*! RAM1_RULE - Security access rules for the whole RAM1 : 0x2001_0000 - 0x2001_FFFF" name="0\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_RAM1_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE - */\r
+/*! @name SEC_CTRL_RAM1_MEM_RULE - Security access rules for RAM1 slaves. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE0_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE0_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE0_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE0_SHIFT (0U)\r
/*! RULE0 - secure control rule0. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE0_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE1_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE1_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE1_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE1_SHIFT (4U)\r
/*! RULE1 - secure control rule1. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE1_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE1_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE2_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE2_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE1_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE2_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE2_SHIFT (8U)\r
/*! RULE2 - secure control rule2. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE2_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE2_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE3_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE3_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE2_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE3_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE3_SHIFT (12U)\r
/*! RULE3 - secure control rule3. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE3_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE3_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE4_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE4_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE3_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE4_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE4_SHIFT (16U)\r
/*! RULE4 - secure control rule4. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE4_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE4_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE5_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE5_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE4_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE5_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE5_SHIFT (20U)\r
/*! RULE5 - secure control rule5. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE5_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE5_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE6_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE6_SHIFT (24U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE5_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE6_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE6_SHIFT (24U)\r
/*! RULE6 - secure control rule6. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE6_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE6_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE7_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE7_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE6_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE7_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE7_SHIFT (28U)\r
/*! RULE7 - secure control rule7. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE7_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_RULE7_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_RULE7_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_SEC_CTRL_RAM1_MEM_RULE_MEM_RULE_COUNT2 (2U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM1_MEM_RULE_COUNT2 (2U)\r
\r
/*! @name SEC_CTRL_RAM2_SLAVE_RULE - Security access rules for RAM2 slaves. */\r
/*! @{ */\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SLAVE_RULE_RAM2_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SLAVE_RULE_RAM2_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SLAVE_RULE_RAM2_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SLAVE_RULE_RAM2_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SLAVE_RULE_RAM2_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_SLAVE_RULE_RAM2_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM2_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE - */\r
+/*! @name SEC_CTRL_RAM2_MEM_RULE - Security access rules for RAM2 slaves. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE0_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE0_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE0_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE0_SHIFT (0U)\r
/*! RULE0 - secure control rule0. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE0_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE1_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE1_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE1_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE1_SHIFT (4U)\r
/*! RULE1 - secure control rule1. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE1_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE1_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE2_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE2_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE1_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE2_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE2_SHIFT (8U)\r
/*! RULE2 - secure control rule2. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE2_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE2_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE3_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE3_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE2_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE3_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE3_SHIFT (12U)\r
/*! RULE3 - secure control rule3. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE3_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE3_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE4_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE4_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE3_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE4_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE4_SHIFT (16U)\r
/*! RULE4 - secure control rule4. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE4_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE4_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE5_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE5_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE4_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE5_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE5_SHIFT (20U)\r
/*! RULE5 - secure control rule5. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE5_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE5_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE6_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE6_SHIFT (24U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE5_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE6_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE6_SHIFT (24U)\r
/*! RULE6 - secure control rule6. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE6_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE6_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE7_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE7_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE6_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE7_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE7_SHIFT (28U)\r
/*! RULE7 - secure control rule7. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE7_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_RULE7_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_RULE7_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_SEC_CTRL_RAM2_MEM_RULE_MEM_RULE_COUNT2 (2U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM2_MEM_RULE_COUNT2 (2U)\r
\r
/*! @name SEC_CTRL_RAM3_SLAVE_RULE - Security access rules for RAM3 slaves. */\r
/*! @{ */\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SLAVE_RULE_RAM3_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SLAVE_RULE_RAM3_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SLAVE_RULE_RAM3_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SLAVE_RULE_RAM3_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SLAVE_RULE_RAM3_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_SLAVE_RULE_RAM3_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM3_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE - */\r
+/*! @name SEC_CTRL_RAM3_MEM_RULE - Security access rules for RAM3 slaves. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE0_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE0_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE0_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE0_SHIFT (0U)\r
/*! RULE0 - secure control rule0. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE0_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE1_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE1_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE1_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE1_SHIFT (4U)\r
/*! RULE1 - secure control rule1. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE1_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE1_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE2_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE2_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE1_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE2_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE2_SHIFT (8U)\r
/*! RULE2 - secure control rule2. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE2_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE2_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE3_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE3_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE2_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE3_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE3_SHIFT (12U)\r
/*! RULE3 - secure control rule3. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE3_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE3_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE4_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE4_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE3_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE4_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE4_SHIFT (16U)\r
/*! RULE4 - secure control rule4. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE4_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE4_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE5_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE5_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE4_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE5_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE5_SHIFT (20U)\r
/*! RULE5 - secure control rule5. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE5_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE5_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE6_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE6_SHIFT (24U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE5_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE6_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE6_SHIFT (24U)\r
/*! RULE6 - secure control rule6. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE6_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE6_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE7_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE7_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE6_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE7_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE7_SHIFT (28U)\r
/*! RULE7 - secure control rule7. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE7_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_RULE7_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_RULE7_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_SEC_CTRL_RAM3_MEM_RULE_MEM_RULE_COUNT2 (2U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM3_MEM_RULE_COUNT2 (2U)\r
\r
/*! @name SEC_CTRL_RAM4_SLAVE_RULE - Security access rules for RAM4 slaves. */\r
/*! @{ */\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SLAVE_RULE_RAM4_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_SLAVE_RULE_RAM4_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM4_SLAVE_RULE_RAM4_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SLAVE_RULE_RAM4_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_SLAVE_RULE_RAM4_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM4_SLAVE_RULE_RAM4_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM4_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE - */\r
+/*! @name SEC_CTRL_RAM4_MEM_RULE - Security access rules for RAM4 slaves. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE0_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE0_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE0_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE0_SHIFT (0U)\r
/*! RULE0 - secure control rule0. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE0_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE1_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE1_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE1_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE1_SHIFT (4U)\r
/*! RULE1 - secure control rule1. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE1_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE1_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE2_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE2_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE1_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE2_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE2_SHIFT (8U)\r
/*! RULE2 - secure control rule2. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE2_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE2_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE3_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE3_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE2_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE3_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE3_SHIFT (12U)\r
/*! RULE3 - secure control rule3. it can be set when check_reg's write_lock is '0'\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE3_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_RULE3_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_RULE3_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_SEC_CTRL_RAM4_MEM_RULE_MEM_RULE_COUNT2 (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_RAM4_MEM_RULE_COUNT2 (1U)\r
\r
-/*! @name SEC_CTRL_APB_BRIDGE_SLAVE_RULE - */\r
+/*! @name SEC_CTRL_APB_BRIDGE_SLAVE_RULE - Security access rules for both APB Bridges slaves. */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE0_RULE_MASK (0x3U)\r
#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE0_RULE_SHIFT (0U)\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE0_RULE_MASK)\r
#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE1_RULE_MASK (0x30U)\r
#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE1_RULE_SHIFT (4U)\r
/*! APBBRIDGE1_RULE - Security access rules for the whole APB Bridge 1\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE1_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE1_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE1_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_APBBRIDGE1_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0 - Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in total. */\r
+/*! @name SEC_CTRL_APB_BRIDGE0_MEM_CTRL0 - Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is\r
+ * 4 Kbytes. There are 32 APB Bridge 0 sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE_SHIFT (0U)\r
/*! SYSCON_RULE - System Configuration\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SYSCON_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE_SHIFT (4U)\r
/*! IOCON_RULE - I/O Configuration\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_IOCON_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE_SHIFT (8U)\r
/*! GINT0_RULE - GPIO input Interrupt 0\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE_SHIFT (12U)\r
/*! GINT1_RULE - GPIO input Interrupt 1\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_GINT1_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE_SHIFT (16U)\r
/*! PINT_RULE - Pin Interrupt and Pattern match\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PINT_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE_SHIFT (20U)\r
/*! SEC_PINT_RULE - Secure Pin Interrupt and Pattern match\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PMUX_RULE_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PMUX_RULE_SHIFT (24U)\r
-/*! PMUX_RULE - Peripherals mux\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_SEC_PINT_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_INPUTMUX_RULE_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_INPUTMUX_RULE_SHIFT (24U)\r
+/*! INPUTMUX_RULE - Peripheral input multiplexing\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PMUX_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PMUX_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_PMUX_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_INPUTMUX_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_INPUTMUX_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_INPUTMUX_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0 */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0 */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL0_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1 - Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in total. */\r
+/*! @name SEC_CTRL_APB_BRIDGE0_MEM_CTRL1 - Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is\r
+ * 4 Kbytes. There are 32 APB Bridge 0 sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE_SHIFT (0U)\r
/*! CTIMER0_RULE - Standard counter/Timer 0\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE_SHIFT (4U)\r
/*! CTIMER1_RULE - Standard counter/Timer 1\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_CTIMER1_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE_SHIFT (16U)\r
/*! WWDT_RULE - Windiwed wtachdog Timer\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_WWDT_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE_SHIFT (20U)\r
/*! MRT_RULE - Multi-rate Timer\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE_SHIFT (24U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_MRT_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE_SHIFT (24U)\r
/*! UTICK_RULE - Micro-Timer\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_UTICK_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1 */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1 */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL1_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2 - Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in total. */\r
+/*! @name SEC_CTRL_APB_BRIDGE0_MEM_CTRL2 - Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is\r
+ * 4 Kbytes. There are 32 APB Bridge 0 sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE_SHIFT (12U)\r
/*! ANACTRL_RULE - Analog Modules controller\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_EFUSE_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_EFUSE_RULE_SHIFT (20U)\r
-/*! EFUSE_RULE - eFUSE (One Time Programmable) memory controller\r
- * 0b00..Non-secure and Non-priviledge user access allowed.\r
- * 0b01..Non-secure and Privilege access allowed.\r
- * 0b10..Secure and Non-priviledge user access allowed.\r
- * 0b11..Secure and Priviledge user access allowed.\r
- */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_EFUSE_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_EFUSE_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_EFUSE_RULE_MASK)\r
-/*! @} */\r
-\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2 */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_COUNT (1U)\r
-\r
-/*! @name SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3 - Security access rules for APB Bridge 0 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 0 sectors in total. */\r
-/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_CAPTOUCH_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_CAPTOUCH_RULE_SHIFT (8U)\r
-/*! CAPTOUCH_RULE - Capacitive Touch controller\r
- * 0b00..Non-secure and Non-priviledge user access allowed.\r
- * 0b01..Non-secure and Privilege access allowed.\r
- * 0b10..Secure and Non-priviledge user access allowed.\r
- * 0b11..Secure and Priviledge user access allowed.\r
- */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_CAPTOUCH_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_CAPTOUCH_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_CAPTOUCH_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_EZH_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_EZH_RULE_SHIFT (20U)\r
-/*! EZH_RULE - EZH slave interface\r
- * 0b00..Non-secure and Non-priviledge user access allowed.\r
- * 0b01..Non-secure and Privilege access allowed.\r
- * 0b10..Secure and Non-priviledge user access allowed.\r
- * 0b11..Secure and Priviledge user access allowed.\r
- */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_EZH_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_EZH_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_EZH_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_ANACTRL_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3 */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE0_MEM_CTRL3_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2 */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE0_MEM_CTRL2_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0 - Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in total. */\r
+/*! @name SEC_CTRL_APB_BRIDGE1_MEM_CTRL0 - Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is\r
+ * 4 Kbytes. There are 32 APB Bridge 1 sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE_SHIFT (0U)\r
/*! PMC_RULE - Power Management Controller\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PVT_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PVT_RULE_SHIFT (8U)\r
-/*! PVT_RULE - Process and Voltage Monitoring controller\r
- * 0b00..Non-secure and Non-priviledge user access allowed.\r
- * 0b01..Non-secure and Privilege access allowed.\r
- * 0b10..Secure and Non-priviledge user access allowed.\r
- * 0b11..Secure and Priviledge user access allowed.\r
- */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PVT_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PVT_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PVT_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_PMC_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE_SHIFT (12U)\r
/*! SYSCTRL_RULE - System Controller\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_SYSCTRL_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0 */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0 */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL0_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1 - Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in total. */\r
+/*! @name SEC_CTRL_APB_BRIDGE1_MEM_CTRL1 - Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is\r
+ * 4 Kbytes. There are 32 APB Bridge 1 sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE_SHIFT (0U)\r
/*! CTIMER2_RULE - Standard counter/Timer 2\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER2_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE_SHIFT (4U)\r
/*! CTIMER3_RULE - Standard counter/Timer 3\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER3_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE_SHIFT (8U)\r
/*! CTIMER4_RULE - Standard counter/Timer 4\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_CTIMER4_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE_SHIFT (16U)\r
/*! RTC_RULE - Real Time Counter\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_RTC_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE_SHIFT (20U)\r
/*! OSEVENT_RULE - OS Event Timer\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_OSEVENT_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1 */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1 */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL1_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2 - Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in total. */\r
+/*! @name SEC_CTRL_APB_BRIDGE1_MEM_CTRL2 - Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is\r
+ * 4 Kbytes. There are 32 APB Bridge 1 sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE_SHIFT (16U)\r
/*! FLASH_CTRL_RULE - Flash Controller\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE_SHIFT (20U)\r
-/*! PRINCE_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_FLASH_CTRL_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE_SHIFT (20U)\r
+/*! PRINCE_RULE - Prince\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_PRINCE_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2 */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2 */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL2_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3 - Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is 4 Kbytes. There are 32 APB Bridge 1 sectors in total. */\r
+/*! @name SEC_CTRL_APB_BRIDGE1_MEM_CTRL3 - Security access rules for APB Bridge 1 peripherals. Each APB bridge sector is\r
+ * 4 Kbytes. There are 32 APB Bridge 1 sectors in total. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE_SHIFT (0U)\r
/*! USBHPHY_RULE - USB High Speed Phy controller\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_USBHPHY_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE_SHIFT (8U)\r
/*! RNG_RULE - True Random Number Generator\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUFF_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUFF_RULE_SHIFT (12U)\r
-/*! PUFF_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_RNG_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUF_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUF_RULE_SHIFT (12U)\r
+/*! PUF_RULE - PUF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUFF_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUFF_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUFF_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUF_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUF_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PUF_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE_SHIFT (20U)\r
/*! PLU_RULE - Programmable Look-Up logic\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_ROMPC_RULE_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_ROMPC_RULE_SHIFT (24U)\r
-/*! ROMPC_RULE - ROM patch controller\r
- * 0b00..Non-secure and Non-priviledge user access allowed.\r
- * 0b01..Non-secure and Privilege access allowed.\r
- * 0b10..Secure and Non-priviledge user access allowed.\r
- * 0b11..Secure and Priviledge user access allowed.\r
- */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_ROMPC_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_ROMPC_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_ROMPC_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_PLU_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3 */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3 */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_APB_BRIDGE1_MEM_CTRL3_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_AHB0_0_SLAVE_RULE - Security access rules for AHB peripherals. */\r
+/*! @name SEC_CTRL_AHB_PORT8_SLAVE0_RULE - Security access rules for AHB peripherals. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_DMA0_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_DMA0_RULE_SHIFT (8U)\r
-/*! DMA0_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_DMA0_RULE_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_DMA0_RULE_SHIFT (8U)\r
+/*! DMA0_RULE - DMA Controller\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_DMA0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_DMA0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_DMA0_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FS_USB_DEV_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FS_USB_DEV_RULE_SHIFT (16U)\r
-/*! FS_USB_DEV_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_DMA0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_DMA0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_DMA0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FS_USB_DEV_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FS_USB_DEV_RULE_SHIFT (16U)\r
+/*! FS_USB_DEV_RULE - USB Full-speed device\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FS_USB_DEV_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FS_USB_DEV_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FS_USB_DEV_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_SCT_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_SCT_RULE_SHIFT (20U)\r
-/*! SCT_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FS_USB_DEV_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FS_USB_DEV_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FS_USB_DEV_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_SCT_RULE_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_SCT_RULE_SHIFT (20U)\r
+/*! SCT_RULE - SCTimer\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_SCT_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_SCT_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_SCT_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM0_RULE_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM0_RULE_SHIFT (24U)\r
-/*! FLEXCOMM0_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_SCT_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_SCT_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_SCT_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM0_RULE_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM0_RULE_SHIFT (24U)\r
+/*! FLEXCOMM0_RULE - Flexcomm interface 0\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM0_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM1_RULE_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM1_RULE_SHIFT (28U)\r
-/*! FLEXCOMM1_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM1_RULE_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM1_RULE_SHIFT (28U)\r
+/*! FLEXCOMM1_RULE - Flexcomm interface 1\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM1_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM1_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_0_SLAVE_RULE_FLEXCOMM1_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE0_RULE_FLEXCOMM1_RULE_MASK)\r
/*! @} */\r
\r
-/*! @name SEC_CTRL_AHB0_1_SLAVE_RULE - Security access rules for AHB peripherals. */\r
+/*! @name SEC_CTRL_AHB_PORT8_SLAVE1_RULE - Security access rules for AHB peripherals. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM2_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM2_RULE_SHIFT (0U)\r
-/*! FLEXCOMM2_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM2_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM2_RULE_SHIFT (0U)\r
+/*! FLEXCOMM2_RULE - Flexcomm interface 2\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM2_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM2_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM2_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM3_RULE_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM3_RULE_SHIFT (4U)\r
-/*! FLEXCOMM3_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM2_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM2_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM2_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM3_RULE_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM3_RULE_SHIFT (4U)\r
+/*! FLEXCOMM3_RULE - Flexcomm interface 3\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM3_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM3_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM3_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM4_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM4_RULE_SHIFT (8U)\r
-/*! FLEXCOMM4_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM3_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM3_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM3_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM4_RULE_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM4_RULE_SHIFT (8U)\r
+/*! FLEXCOMM4_RULE - Flexcomm interface 4\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM4_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM4_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_FLEXCOMM4_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_MAILBOX_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_MAILBOX_RULE_SHIFT (12U)\r
-/*! MAILBOX_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM4_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM4_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_FLEXCOMM4_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_MAILBOX_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_MAILBOX_RULE_SHIFT (12U)\r
+/*! MAILBOX_RULE - Inter CPU communication Mailbox\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_MAILBOX_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_MAILBOX_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_MAILBOX_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_GPIO0_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_GPIO0_RULE_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_MAILBOX_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_MAILBOX_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_MAILBOX_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_GPIO0_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_GPIO0_RULE_SHIFT (16U)\r
/*! GPIO0_RULE - High Speed GPIO\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_GPIO0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_GPIO0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB0_1_SLAVE_RULE_GPIO0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_GPIO0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_GPIO0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT8_SLAVE1_RULE_GPIO0_RULE_MASK)\r
/*! @} */\r
\r
-/*! @name SEC_CTRL_AHB1_0_SLAVE_RULE - Security access rules for AHB peripherals. */\r
+/*! @name SEC_CTRL_AHB_PORT9_SLAVE0_RULE - Security access rules for AHB peripherals. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_USB_HS_DEV_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_USB_HS_DEV_RULE_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_USB_HS_DEV_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_USB_HS_DEV_RULE_SHIFT (16U)\r
/*! USB_HS_DEV_RULE - USB high Speed device registers\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_USB_HS_DEV_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_USB_HS_DEV_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_USB_HS_DEV_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_CRC_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_CRC_RULE_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_USB_HS_DEV_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_USB_HS_DEV_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_USB_HS_DEV_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_CRC_RULE_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_CRC_RULE_SHIFT (20U)\r
/*! CRC_RULE - CRC engine\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_CRC_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_CRC_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_CRC_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM5_RULE_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM5_RULE_SHIFT (24U)\r
-/*! FLEXCOMM5_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_CRC_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_CRC_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_CRC_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM5_RULE_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM5_RULE_SHIFT (24U)\r
+/*! FLEXCOMM5_RULE - Flexcomm interface 5\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM5_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM5_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM5_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM6_RULE_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM6_RULE_SHIFT (28U)\r
-/*! FLEXCOMM6_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM5_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM5_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM5_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM6_RULE_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM6_RULE_SHIFT (28U)\r
+/*! FLEXCOMM6_RULE - Flexcomm interface 6\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM6_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM6_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB1_0_SLAVE_RULE_FLEXCOMM6_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM6_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM6_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE0_RULE_FLEXCOMM6_RULE_MASK)\r
/*! @} */\r
\r
-/*! @name SEC_CTRL_AHB1_1_SLAVE_RULE - Security access rules for AHB peripherals. */\r
+/*! @name SEC_CTRL_AHB_PORT9_SLAVE1_RULE - Security access rules for AHB peripherals. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_FLEXCOMM7_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_FLEXCOMM7_RULE_SHIFT (0U)\r
-/*! FLEXCOMM7_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_FLEXCOMM7_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_FLEXCOMM7_RULE_SHIFT (0U)\r
+/*! FLEXCOMM7_RULE - Flexcomm interface 7\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_FLEXCOMM7_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_FLEXCOMM7_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_FLEXCOMM7_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_SDIO_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_SDIO_RULE_SHIFT (12U)\r
-/*! SDIO_RULE\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_FLEXCOMM7_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_FLEXCOMM7_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_FLEXCOMM7_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_SDIO_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_SDIO_RULE_SHIFT (12U)\r
+/*! SDIO_RULE - SDMMC card interface\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_SDIO_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_SDIO_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_SDIO_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_DBG_MAILBOX_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_DBG_MAILBOX_RULE_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_SDIO_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_SDIO_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_SDIO_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_DBG_MAILBOX_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_DBG_MAILBOX_RULE_SHIFT (16U)\r
/*! DBG_MAILBOX_RULE - Debug mailbox (aka ISP-AP)\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_DBG_MAILBOX_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_DBG_MAILBOX_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_DBG_MAILBOX_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_HS_LSPI_RULE_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_HS_LSPI_RULE_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_DBG_MAILBOX_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_DBG_MAILBOX_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_DBG_MAILBOX_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_HS_LSPI_RULE_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_HS_LSPI_RULE_SHIFT (28U)\r
/*! HS_LSPI_RULE - High Speed SPI\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_HS_LSPI_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_HS_LSPI_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB1_1_SLAVE_RULE_HS_LSPI_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_HS_LSPI_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_HS_LSPI_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT9_SLAVE1_RULE_HS_LSPI_RULE_MASK)\r
/*! @} */\r
\r
-/*! @name SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE - Security access rules for AHB peripherals. */\r
+/*! @name SEC_CTRL_AHB_PORT10_SLAVE0_RULE - Security access rules for AHB peripherals. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_ADC_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_ADC_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_ADC_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_ADC_RULE_SHIFT (0U)\r
/*! ADC_RULE - ADC\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_ADC_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_ADC_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_ADC_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_FS_HOST_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_FS_HOST_RULE_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_ADC_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_ADC_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_ADC_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_FS_HOST_RULE_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_FS_HOST_RULE_SHIFT (8U)\r
/*! USB_FS_HOST_RULE - USB Full Speed Host registers.\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_FS_HOST_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_FS_HOST_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_FS_HOST_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_HS_HOST_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_HS_HOST_RULE_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_FS_HOST_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_FS_HOST_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_FS_HOST_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_HS_HOST_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_HS_HOST_RULE_SHIFT (12U)\r
/*! USB_HS_HOST_RULE - USB High speed host registers\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_HS_HOST_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_HS_HOST_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_USB_HS_HOST_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_HASH_RULE_MASK (0x30000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_HASH_RULE_SHIFT (16U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_HS_HOST_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_HS_HOST_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_USB_HS_HOST_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_HASH_RULE_MASK (0x30000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_HASH_RULE_SHIFT (16U)\r
/*! HASH_RULE - SHA-2 crypto registers\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_HASH_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_HASH_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_HASH_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_CASPER_RULE_MASK (0x300000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_CASPER_RULE_SHIFT (20U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_HASH_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_HASH_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_HASH_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_CASPER_RULE_MASK (0x300000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_CASPER_RULE_SHIFT (20U)\r
/*! CASPER_RULE - RSA/ECC crypto accelerator\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_CASPER_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_CASPER_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_CASPER_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_PQ_RULE_MASK (0x3000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_PQ_RULE_SHIFT (24U)\r
-/*! PQ_RULE - Power Quad (CM33 processor hardware accelerator)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_CASPER_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_CASPER_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_CASPER_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_PQ_RULE_MASK (0x3000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_PQ_RULE_SHIFT (24U)\r
+/*! PQ_RULE - Power Quad (CPU0 processor hardware accelerator)\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_PQ_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_PQ_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_PQ_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_DMA1_RULE_MASK (0x30000000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_DMA1_RULE_SHIFT (28U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_PQ_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_PQ_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_PQ_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_DMA1_RULE_MASK (0x30000000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_DMA1_RULE_SHIFT (28U)\r
/*! DMA1_RULE - DMA Controller (Secure)\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_DMA1_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_DMA1_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_DMA1_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_DMA1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_DMA1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_DMA1_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_0_SLAVE_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE0_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE - Security access rules for AHB peripherals. */\r
+/*! @name SEC_CTRL_AHB_PORT10_SLAVE1_RULE - Security access rules for AHB peripherals. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_GPIO1_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_GPIO1_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_GPIO1_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_GPIO1_RULE_SHIFT (0U)\r
/*! GPIO1_RULE - Secure High Speed GPIO\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_GPIO1_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_GPIO1_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_GPIO1_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_AHB_SEC_CTRL_RULE_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_AHB_SEC_CTRL_RULE_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_GPIO1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_GPIO1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_GPIO1_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_AHB_SEC_CTRL_RULE_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_AHB_SEC_CTRL_RULE_SHIFT (4U)\r
/*! AHB_SEC_CTRL_RULE - AHB Secure Controller\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_AHB_SEC_CTRL_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_AHB_SEC_CTRL_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_AHB_SEC_CTRL_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_AHB_SEC_CTRL_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_AHB_SEC_CTRL_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_AHB_SEC_CTRL_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_1_SLAVE_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_PORT10_SLAVE1_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE - */\r
+/*! @name SEC_CTRL_AHB_SEC_CTRL_MEM_RULE - Security access rules for AHB_SEC_CTRL_AHB. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE_SHIFT (0U)\r
/*! AHB_SEC_CTRL_SECT_0_RULE - Address space: 0x400A_0000 - 0x400A_CFFF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE_SHIFT (4U)\r
/*! AHB_SEC_CTRL_SECT_1_RULE - Address space: 0x400A_D000 - 0x400A_DFFF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_1_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE_SHIFT (8U)\r
/*! AHB_SEC_CTRL_SECT_2_RULE - Address space: 0x400A_E000 - 0x400A_EFFF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_2_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE_SHIFT (12U)\r
/*! AHB_SEC_CTRL_SECT_3_RULE - Address space: 0x400A_F000 - 0x400A_FFFF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_AHB_SEC_CTRL_SECT_3_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_AHB2_SEC_CTRL_AHB2_MEM_RULE_SEC_CTRL_AHB2_0_MEM_RULE_COUNT2 (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_AHB_SEC_CTRL_MEM_RULE_COUNT2 (1U)\r
\r
-/*! @name SEC_CTRL_USB_HS_SLAVE_RULE - */\r
+/*! @name SEC_CTRL_USB_HS_SLAVE_RULE - Security access rules for USB High speed RAM slaves. */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_RAM_USB_HS_RULE_MASK (0x3U)\r
#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_RAM_USB_HS_RULE_SHIFT (0U)\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_RAM_USB_HS_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_RAM_USB_HS_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_RAM_USB_HS_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_RAM_USB_HS_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_RAM_USB_HS_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_RAM_USB_HS_RULE_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE */\r
#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SLAVE_RULE_COUNT (1U)\r
\r
-/*! @name SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE - */\r
+/*! @name SEC_CTRL_USB_HS_MEM_RULE - Security access rules for RAM_USB_HS. */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_0_RULE_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_0_RULE_SHIFT (0U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_0_RULE_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_0_RULE_SHIFT (0U)\r
/*! SRAM_SECT_0_RULE - Address space: 0x4010_0000 - 0x4010_0FFF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_0_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_0_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_0_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_1_RULE_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_1_RULE_SHIFT (4U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_0_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_0_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_0_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_1_RULE_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_1_RULE_SHIFT (4U)\r
/*! SRAM_SECT_1_RULE - Address space: 0x4010_1000 - 0x4010_1FFF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_1_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_1_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_1_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_2_RULE_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_2_RULE_SHIFT (8U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_1_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_1_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_1_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_2_RULE_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_2_RULE_SHIFT (8U)\r
/*! SRAM_SECT_2_RULE - Address space: 0x4010_2000 - 0x4010_2FFF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_2_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_2_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_2_RULE_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_3_RULE_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_3_RULE_SHIFT (12U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_2_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_2_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_2_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_3_RULE_MASK (0x3000U)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_3_RULE_SHIFT (12U)\r
/*! SRAM_SECT_3_RULE - Address space: 0x4010_3000 - 0x4010_3FFF\r
* 0b00..Non-secure and Non-priviledge user access allowed.\r
* 0b01..Non-secure and Privilege access allowed.\r
* 0b10..Secure and Non-priviledge user access allowed.\r
* 0b11..Secure and Priviledge user access allowed.\r
*/\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_3_RULE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_3_RULE_SHIFT)) & AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_SRAM_SECT_3_RULE_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_3_RULE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_3_RULE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_SRAM_SECT_3_RULE_MASK)\r
/*! @} */\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_COUNT (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_COUNT (1U)\r
\r
-/* The count of AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE */\r
-#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_SEC_CTRL_USB_HS_MEM_RULE_MEM_RULE_COUNT2 (1U)\r
+/* The count of AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE */\r
+#define AHB_SECURE_CTRL_SEC_CTRL_USB_HS_MEM_RULE_COUNT2 (1U)\r
\r
-/*! @name SEC_VIO_ADDR - most recent security violation address for AHB layer n */\r
+/*! @name SEC_VIO_ADDR - most recent security violation address for AHB port n */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_VIO_ADDR_SEC_VIO_ADDR_MASK (0xFFFFFFFFU)\r
#define AHB_SECURE_CTRL_SEC_VIO_ADDR_SEC_VIO_ADDR_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_ADDR_SEC_VIO_ADDR(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_ADDR_SEC_VIO_ADDR_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_ADDR_SEC_VIO_ADDR_MASK)\r
+/*! SEC_VIO_ADDR - security violation address for AHB port\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_ADDR_SEC_VIO_ADDR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_ADDR_SEC_VIO_ADDR_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_ADDR_SEC_VIO_ADDR_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_VIO_ADDR */\r
-#define AHB_SECURE_CTRL_SEC_VIO_ADDR_COUNT (18U)\r
+#define AHB_SECURE_CTRL_SEC_VIO_ADDR_COUNT (12U)\r
\r
-/*! @name SEC_VIO_MISC_INFO - most recent security violation miscellaneous information for AHB layer n */\r
+/*! @name SEC_VIO_MISC_INFO - most recent security violation miscellaneous information for AHB port n */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_WRITE_MASK (0x1U)\r
#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_WRITE_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_WRITE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_WRITE_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_WRITE_MASK)\r
+/*! SEC_VIO_INFO_WRITE - security violation access read/write indicator.\r
+ * 0b0..Read access.\r
+ * 0b1..Write access.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_WRITE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_WRITE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_WRITE_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_DATA_ACCESS_MASK (0x2U)\r
#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_DATA_ACCESS_SHIFT (1U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_DATA_ACCESS(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_DATA_ACCESS_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_DATA_ACCESS_MASK)\r
+/*! SEC_VIO_INFO_DATA_ACCESS - security violation access data/code indicator.\r
+ * 0b0..Code access.\r
+ * 0b1..Data access.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_DATA_ACCESS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_DATA_ACCESS_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_DATA_ACCESS_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SEC_LEVEL_MASK (0xF0U)\r
#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SEC_LEVEL_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SEC_LEVEL(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SEC_LEVEL_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SEC_LEVEL_MASK)\r
+/*! SEC_VIO_INFO_MASTER_SEC_LEVEL - bit [5:4]: master sec level and privilege level bit [7:6]: anti-pol value for master\r
+ * sec level and privilege level\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SEC_LEVEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SEC_LEVEL_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SEC_LEVEL_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_MASK (0xF00U)\r
#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_MASK)\r
+/*! SEC_VIO_INFO_MASTER - security violation master number\r
+ * 0b0000..CPU0 Code.\r
+ * 0b0001..CPU0 System.\r
+ * 0b0010..CPU1 Data.\r
+ * 0b0011..CPU1 System.\r
+ * 0b0100..USB-HS Device.\r
+ * 0b0101..SDMA0.\r
+ * 0b1000..SDIO.\r
+ * 0b1001..PowerQuad.\r
+ * 0b1010..HASH.\r
+ * 0b1011..USB-FS Host.\r
+ * 0b1100..SDMA1.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_SEC_VIO_INFO_MASTER_MASK)\r
/*! @} */\r
\r
/* The count of AHB_SECURE_CTRL_SEC_VIO_MISC_INFO */\r
-#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_COUNT (18U)\r
+#define AHB_SECURE_CTRL_SEC_VIO_MISC_INFO_COUNT (12U)\r
\r
/*! @name SEC_VIO_INFO_VALID - security violation address/information registers valid flags */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID0_MASK (0x1U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID0_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID0_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID0_MASK)\r
+/*! VIO_INFO_VALID0 - violation information valid flag for AHB port 0. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID0_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID1_MASK (0x2U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID1_SHIFT (1U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID1_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID1_MASK)\r
+/*! VIO_INFO_VALID1 - violation information valid flag for AHB port 1. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID1_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID2_MASK (0x4U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID2_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID2_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID2_MASK)\r
+/*! VIO_INFO_VALID2 - violation information valid flag for AHB port 2. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID2_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID3_MASK (0x8U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID3_SHIFT (3U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID3_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID3_MASK)\r
+/*! VIO_INFO_VALID3 - violation information valid flag for AHB port 3. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID3_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID4_MASK (0x10U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID4_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID4_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID4_MASK)\r
+/*! VIO_INFO_VALID4 - violation information valid flag for AHB port 4. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID4_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID5_MASK (0x20U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID5_SHIFT (5U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID5_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID5_MASK)\r
+/*! VIO_INFO_VALID5 - violation information valid flag for AHB port 5. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID5_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID6_MASK (0x40U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID6_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID6_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID6_MASK)\r
+/*! VIO_INFO_VALID6 - violation information valid flag for AHB port 6. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID6_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID7_MASK (0x80U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID7_SHIFT (7U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID7_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID7_MASK)\r
+/*! VIO_INFO_VALID7 - violation information valid flag for AHB port 7. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID7_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID8_MASK (0x100U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID8_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID8(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID8_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID8_MASK)\r
+/*! VIO_INFO_VALID8 - violation information valid flag for AHB port 8. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID8(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID8_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID8_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID9_MASK (0x200U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID9_SHIFT (9U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID9(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID9_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID9_MASK)\r
+/*! VIO_INFO_VALID9 - violation information valid flag for AHB port 9. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID9(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID9_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID9_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID10_MASK (0x400U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID10_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID10(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID10_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID10_MASK)\r
+/*! VIO_INFO_VALID10 - violation information valid flag for AHB port 10. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID10(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID10_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID10_MASK)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID11_MASK (0x800U)\r
#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID11_SHIFT (11U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID11(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID11_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID11_MASK)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID12_MASK (0x1000U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID12_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID12(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID12_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID12_MASK)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID13_MASK (0x2000U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID13_SHIFT (13U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID13(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID13_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID13_MASK)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID14_MASK (0x4000U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID14_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID14(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID14_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID14_MASK)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID15_MASK (0x8000U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID15_SHIFT (15U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID15(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID15_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID15_MASK)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID16_MASK (0x10000U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID16_SHIFT (16U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID16(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID16_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID16_MASK)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID17_MASK (0x20000U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID17_SHIFT (17U)\r
-#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID17(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID17_SHIFT)) & AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID17_MASK)\r
-/*! @} */\r
-\r
-/*! @name SEC_GPIO_MASK0 - Secure GPIO mask for port 0 pins. This register is used to block leakage of Secure interface (GPIOs, I2C, UART configured as secure peripherals) pin states to non-secure world. */\r
+/*! VIO_INFO_VALID11 - violation information valid flag for AHB port 11. Write 1 to clear.\r
+ * 0b0..Not valid.\r
+ * 0b1..Valid (violation occurred).\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID11(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID11_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_VIO_INFO_VALID_VIO_INFO_VALID11_MASK)\r
+/*! @} */\r
+\r
+/*! @name SEC_GPIO_MASK0 - Secure GPIO mask for port 0 pins. */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN0_SEC_MASK_MASK (0x1U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN0_SEC_MASK_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN0_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN0_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN0_SEC_MASK_MASK)\r
+/*! PIO0_PIN0_SEC_MASK - Secure mask for pin P0_0\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN0_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN0_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN0_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN1_SEC_MASK_MASK (0x2U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN1_SEC_MASK_SHIFT (1U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN1_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN1_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN1_SEC_MASK_MASK)\r
+/*! PIO0_PIN1_SEC_MASK - Secure mask for pin P0_1\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN1_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN1_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN1_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN2_SEC_MASK_MASK (0x4U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN2_SEC_MASK_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN2_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN2_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN2_SEC_MASK_MASK)\r
+/*! PIO0_PIN2_SEC_MASK - Secure mask for pin P0_2\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN2_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN2_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN2_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN3_SEC_MASK_MASK (0x8U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN3_SEC_MASK_SHIFT (3U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN3_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN3_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN3_SEC_MASK_MASK)\r
+/*! PIO0_PIN3_SEC_MASK - Secure mask for pin P0_3\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN3_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN3_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN3_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN4_SEC_MASK_MASK (0x10U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN4_SEC_MASK_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN4_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN4_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN4_SEC_MASK_MASK)\r
+/*! PIO0_PIN4_SEC_MASK - Secure mask for pin P0_4\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN4_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN4_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN4_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN5_SEC_MASK_MASK (0x20U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN5_SEC_MASK_SHIFT (5U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN5_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN5_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN5_SEC_MASK_MASK)\r
+/*! PIO0_PIN5_SEC_MASK - Secure mask for pin P0_5\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN5_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN5_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN5_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN6_SEC_MASK_MASK (0x40U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN6_SEC_MASK_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN6_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN6_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN6_SEC_MASK_MASK)\r
+/*! PIO0_PIN6_SEC_MASK - Secure mask for pin P0_6\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN6_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN6_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN6_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN7_SEC_MASK_MASK (0x80U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN7_SEC_MASK_SHIFT (7U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN7_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN7_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN7_SEC_MASK_MASK)\r
+/*! PIO0_PIN7_SEC_MASK - Secure mask for pin P0_7\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN7_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN7_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN7_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN8_SEC_MASK_MASK (0x100U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN8_SEC_MASK_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN8_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN8_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN8_SEC_MASK_MASK)\r
+/*! PIO0_PIN8_SEC_MASK - Secure mask for pin P0_8\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN8_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN8_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN8_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN9_SEC_MASK_MASK (0x200U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN9_SEC_MASK_SHIFT (9U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN9_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN9_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN9_SEC_MASK_MASK)\r
+/*! PIO0_PIN9_SEC_MASK - Secure mask for pin P0_9\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN9_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN9_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN9_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN10_SEC_MASK_MASK (0x400U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN10_SEC_MASK_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN10_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN10_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN10_SEC_MASK_MASK)\r
+/*! PIO0_PIN10_SEC_MASK - Secure mask for pin P0_10\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN10_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN10_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN10_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN11_SEC_MASK_MASK (0x800U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN11_SEC_MASK_SHIFT (11U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN11_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN11_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN11_SEC_MASK_MASK)\r
+/*! PIO0_PIN11_SEC_MASK - Secure mask for pin P0_11\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN11_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN11_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN11_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN12_SEC_MASK_MASK (0x1000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN12_SEC_MASK_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN12_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN12_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN12_SEC_MASK_MASK)\r
+/*! PIO0_PIN12_SEC_MASK - Secure mask for pin P0_12\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN12_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN12_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN12_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN13_SEC_MASK_MASK (0x2000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN13_SEC_MASK_SHIFT (13U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN13_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN13_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN13_SEC_MASK_MASK)\r
+/*! PIO0_PIN13_SEC_MASK - Secure mask for pin P0_13\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN13_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN13_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN13_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN14_SEC_MASK_MASK (0x4000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN14_SEC_MASK_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN14_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN14_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN14_SEC_MASK_MASK)\r
+/*! PIO0_PIN14_SEC_MASK - Secure mask for pin P0_14\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN14_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN14_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN14_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN15_SEC_MASK_MASK (0x8000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN15_SEC_MASK_SHIFT (15U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN15_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN15_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN15_SEC_MASK_MASK)\r
+/*! PIO0_PIN15_SEC_MASK - Secure mask for pin P0_15\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN15_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN15_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN15_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN16_SEC_MASK_MASK (0x10000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN16_SEC_MASK_SHIFT (16U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN16_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN16_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN16_SEC_MASK_MASK)\r
+/*! PIO0_PIN16_SEC_MASK - Secure mask for pin P0_16\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN16_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN16_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN16_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN17_SEC_MASK_MASK (0x20000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN17_SEC_MASK_SHIFT (17U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN17_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN17_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN17_SEC_MASK_MASK)\r
+/*! PIO0_PIN17_SEC_MASK - Secure mask for pin P0_17\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN17_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN17_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN17_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN18_SEC_MASK_MASK (0x40000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN18_SEC_MASK_SHIFT (18U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN18_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN18_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN18_SEC_MASK_MASK)\r
+/*! PIO0_PIN18_SEC_MASK - Secure mask for pin P0_18\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN18_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN18_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN18_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN19_SEC_MASK_MASK (0x80000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN19_SEC_MASK_SHIFT (19U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN19_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN19_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN19_SEC_MASK_MASK)\r
+/*! PIO0_PIN19_SEC_MASK - Secure mask for pin P0_19\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN19_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN19_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN19_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN20_SEC_MASK_MASK (0x100000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN20_SEC_MASK_SHIFT (20U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN20_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN20_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN20_SEC_MASK_MASK)\r
+/*! PIO0_PIN20_SEC_MASK - Secure mask for pin P0_20\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN20_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN20_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN20_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN21_SEC_MASK_MASK (0x200000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN21_SEC_MASK_SHIFT (21U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN21_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN21_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN21_SEC_MASK_MASK)\r
+/*! PIO0_PIN21_SEC_MASK - Secure mask for pin P0_21\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN21_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN21_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN21_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN22_SEC_MASK_MASK (0x400000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN22_SEC_MASK_SHIFT (22U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN22_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN22_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN22_SEC_MASK_MASK)\r
+/*! PIO0_PIN22_SEC_MASK - Secure mask for pin P0_22\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN22_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN22_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN22_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN23_SEC_MASK_MASK (0x800000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN23_SEC_MASK_SHIFT (23U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN23_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN23_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN23_SEC_MASK_MASK)\r
+/*! PIO0_PIN23_SEC_MASK - Secure mask for pin P0_23\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN23_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN23_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN23_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN24_SEC_MASK_MASK (0x1000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN24_SEC_MASK_SHIFT (24U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN24_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN24_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN24_SEC_MASK_MASK)\r
+/*! PIO0_PIN24_SEC_MASK - Secure mask for pin P0_24\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN24_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN24_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN24_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN25_SEC_MASK_MASK (0x2000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN25_SEC_MASK_SHIFT (25U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN25_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN25_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN25_SEC_MASK_MASK)\r
+/*! PIO0_PIN25_SEC_MASK - Secure mask for pin P0_25\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN25_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN25_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN25_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN26_SEC_MASK_MASK (0x4000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN26_SEC_MASK_SHIFT (26U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN26_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN26_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN26_SEC_MASK_MASK)\r
+/*! PIO0_PIN26_SEC_MASK - Secure mask for pin P0_26\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN26_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN26_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN26_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN27_SEC_MASK_MASK (0x8000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN27_SEC_MASK_SHIFT (27U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN27_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN27_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN27_SEC_MASK_MASK)\r
+/*! PIO0_PIN27_SEC_MASK - Secure mask for pin P0_27\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN27_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN27_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN27_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN28_SEC_MASK_MASK (0x10000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN28_SEC_MASK_SHIFT (28U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN28_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN28_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN28_SEC_MASK_MASK)\r
+/*! PIO0_PIN28_SEC_MASK - Secure mask for pin P0_28\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN28_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN28_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN28_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN29_SEC_MASK_MASK (0x20000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN29_SEC_MASK_SHIFT (29U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN29_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN29_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN29_SEC_MASK_MASK)\r
+/*! PIO0_PIN29_SEC_MASK - Secure mask for pin P0_29\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN29_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN29_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN29_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN30_SEC_MASK_MASK (0x40000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN30_SEC_MASK_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN30_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN30_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN30_SEC_MASK_MASK)\r
+/*! PIO0_PIN30_SEC_MASK - Secure mask for pin P0_30\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN30_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN30_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN30_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN31_SEC_MASK_MASK (0x80000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN31_SEC_MASK_SHIFT (31U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN31_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN31_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN31_SEC_MASK_MASK)\r
+/*! PIO0_PIN31_SEC_MASK - Secure mask for pin P0_31\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN31_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN31_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK0_PIO0_PIN31_SEC_MASK_MASK)\r
/*! @} */\r
\r
/*! @name SEC_GPIO_MASK1 - Secure GPIO mask for port 1 pins. */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN0_SEC_MASK_MASK (0x1U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN0_SEC_MASK_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN0_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN0_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN0_SEC_MASK_MASK)\r
+/*! PIO1_PIN0_SEC_MASK - Secure mask for pin P1_0\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN0_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN0_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN0_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN1_SEC_MASK_MASK (0x2U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN1_SEC_MASK_SHIFT (1U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN1_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN1_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN1_SEC_MASK_MASK)\r
+/*! PIO1_PIN1_SEC_MASK - Secure mask for pin P1_1\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN1_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN1_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN1_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN2_SEC_MASK_MASK (0x4U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN2_SEC_MASK_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN2_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN2_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN2_SEC_MASK_MASK)\r
+/*! PIO1_PIN2_SEC_MASK - Secure mask for pin P1_2\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN2_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN2_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN2_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN3_SEC_MASK_MASK (0x8U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN3_SEC_MASK_SHIFT (3U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN3_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN3_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN3_SEC_MASK_MASK)\r
+/*! PIO1_PIN3_SEC_MASK - Secure mask for pin P1_3\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN3_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN3_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN3_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN4_SEC_MASK_MASK (0x10U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN4_SEC_MASK_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN4_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN4_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN4_SEC_MASK_MASK)\r
+/*! PIO1_PIN4_SEC_MASK - Secure mask for pin P1_4\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN4_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN4_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN4_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN5_SEC_MASK_MASK (0x20U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN5_SEC_MASK_SHIFT (5U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN5_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN5_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN5_SEC_MASK_MASK)\r
+/*! PIO1_PIN5_SEC_MASK - Secure mask for pin P1_5\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN5_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN5_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN5_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN6_SEC_MASK_MASK (0x40U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN6_SEC_MASK_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN6_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN6_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN6_SEC_MASK_MASK)\r
+/*! PIO1_PIN6_SEC_MASK - Secure mask for pin P1_6\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN6_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN6_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN6_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN7_SEC_MASK_MASK (0x80U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN7_SEC_MASK_SHIFT (7U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN7_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN7_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN7_SEC_MASK_MASK)\r
+/*! PIO1_PIN7_SEC_MASK - Secure mask for pin P1_7\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN7_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN7_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN7_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN8_SEC_MASK_MASK (0x100U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN8_SEC_MASK_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN8_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN8_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN8_SEC_MASK_MASK)\r
+/*! PIO1_PIN8_SEC_MASK - Secure mask for pin P1_8\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN8_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN8_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN8_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN9_SEC_MASK_MASK (0x200U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN9_SEC_MASK_SHIFT (9U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN9_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN9_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN9_SEC_MASK_MASK)\r
+/*! PIO1_PIN9_SEC_MASK - Secure mask for pin P1_9\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN9_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN9_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN9_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN10_SEC_MASK_MASK (0x400U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN10_SEC_MASK_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN10_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN10_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN10_SEC_MASK_MASK)\r
+/*! PIO1_PIN10_SEC_MASK - Secure mask for pin P1_10\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN10_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN10_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN10_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN11_SEC_MASK_MASK (0x800U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN11_SEC_MASK_SHIFT (11U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN11_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN11_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN11_SEC_MASK_MASK)\r
+/*! PIO1_PIN11_SEC_MASK - Secure mask for pin P1_11\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN11_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN11_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN11_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN12_SEC_MASK_MASK (0x1000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN12_SEC_MASK_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN12_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN12_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN12_SEC_MASK_MASK)\r
+/*! PIO1_PIN12_SEC_MASK - Secure mask for pin P1_12\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN12_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN12_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN12_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN13_SEC_MASK_MASK (0x2000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN13_SEC_MASK_SHIFT (13U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN13_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN13_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN13_SEC_MASK_MASK)\r
+/*! PIO1_PIN13_SEC_MASK - Secure mask for pin P1_13\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN13_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN13_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN13_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN14_SEC_MASK_MASK (0x4000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN14_SEC_MASK_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN14_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN14_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN14_SEC_MASK_MASK)\r
+/*! PIO1_PIN14_SEC_MASK - Secure mask for pin P1_14\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN14_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN14_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN14_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN15_SEC_MASK_MASK (0x8000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN15_SEC_MASK_SHIFT (15U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN15_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN15_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN15_SEC_MASK_MASK)\r
+/*! PIO1_PIN15_SEC_MASK - Secure mask for pin P1_15\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN15_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN15_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN15_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN16_SEC_MASK_MASK (0x10000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN16_SEC_MASK_SHIFT (16U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN16_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN16_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN16_SEC_MASK_MASK)\r
+/*! PIO1_PIN16_SEC_MASK - Secure mask for pin P1_16\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN16_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN16_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN16_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN17_SEC_MASK_MASK (0x20000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN17_SEC_MASK_SHIFT (17U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN17_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN17_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN17_SEC_MASK_MASK)\r
+/*! PIO1_PIN17_SEC_MASK - Secure mask for pin P1_17\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN17_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN17_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN17_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN18_SEC_MASK_MASK (0x40000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN18_SEC_MASK_SHIFT (18U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN18_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN18_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN18_SEC_MASK_MASK)\r
+/*! PIO1_PIN18_SEC_MASK - Secure mask for pin P1_18\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN18_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN18_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN18_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN19_SEC_MASK_MASK (0x80000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN19_SEC_MASK_SHIFT (19U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN19_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN19_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN19_SEC_MASK_MASK)\r
+/*! PIO1_PIN19_SEC_MASK - Secure mask for pin P1_19\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN19_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN19_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN19_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN20_SEC_MASK_MASK (0x100000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN20_SEC_MASK_SHIFT (20U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN20_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN20_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN20_SEC_MASK_MASK)\r
+/*! PIO1_PIN20_SEC_MASK - Secure mask for pin P1_20\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN20_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN20_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN20_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN21_SEC_MASK_MASK (0x200000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN21_SEC_MASK_SHIFT (21U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN21_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN21_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN21_SEC_MASK_MASK)\r
+/*! PIO1_PIN21_SEC_MASK - Secure mask for pin P1_21\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN21_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN21_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN21_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN22_SEC_MASK_MASK (0x400000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN22_SEC_MASK_SHIFT (22U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN22_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN22_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN22_SEC_MASK_MASK)\r
+/*! PIO1_PIN22_SEC_MASK - Secure mask for pin P1_22\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN22_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN22_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN22_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN23_SEC_MASK_MASK (0x800000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN23_SEC_MASK_SHIFT (23U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN23_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN23_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN23_SEC_MASK_MASK)\r
+/*! PIO1_PIN23_SEC_MASK - Secure mask for pin P1_23\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN23_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN23_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN23_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN24_SEC_MASK_MASK (0x1000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN24_SEC_MASK_SHIFT (24U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN24_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN24_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN24_SEC_MASK_MASK)\r
+/*! PIO1_PIN24_SEC_MASK - Secure mask for pin P1_24\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN24_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN24_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN24_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN25_SEC_MASK_MASK (0x2000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN25_SEC_MASK_SHIFT (25U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN25_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN25_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN25_SEC_MASK_MASK)\r
+/*! PIO1_PIN25_SEC_MASK - Secure mask for pin P1_25\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN25_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN25_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN25_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN26_SEC_MASK_MASK (0x4000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN26_SEC_MASK_SHIFT (26U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN26_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN26_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN26_SEC_MASK_MASK)\r
+/*! PIO1_PIN26_SEC_MASK - Secure mask for pin P1_26\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN26_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN26_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN26_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN27_SEC_MASK_MASK (0x8000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN27_SEC_MASK_SHIFT (27U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN27_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN27_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN27_SEC_MASK_MASK)\r
+/*! PIO1_PIN27_SEC_MASK - Secure mask for pin P1_27\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN27_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN27_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN27_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN28_SEC_MASK_MASK (0x10000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN28_SEC_MASK_SHIFT (28U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN28_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN28_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN28_SEC_MASK_MASK)\r
+/*! PIO1_PIN28_SEC_MASK - Secure mask for pin P1_28\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN28_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN28_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN28_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN29_SEC_MASK_MASK (0x20000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN29_SEC_MASK_SHIFT (29U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN29_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN29_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN29_SEC_MASK_MASK)\r
+/*! PIO1_PIN29_SEC_MASK - Secure mask for pin P1_29\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN29_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN29_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN29_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN30_SEC_MASK_MASK (0x40000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN30_SEC_MASK_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN30_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN30_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN30_SEC_MASK_MASK)\r
+/*! PIO1_PIN30_SEC_MASK - Secure mask for pin P1_30\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN30_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN30_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN30_SEC_MASK_MASK)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN31_SEC_MASK_MASK (0x80000000U)\r
#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN31_SEC_MASK_SHIFT (31U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN31_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN31_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN31_SEC_MASK_MASK)\r
-/*! @} */\r
-\r
-/*! @name SEC_GPIO_MASK2 - Secure GPIO mask for port 2 pins. */\r
-/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN0_SEC_MASK_MASK (0x1U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN0_SEC_MASK_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN0_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN0_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN0_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN1_SEC_MASK_MASK (0x2U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN1_SEC_MASK_SHIFT (1U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN1_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN1_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN1_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN2_SEC_MASK_MASK (0x4U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN2_SEC_MASK_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN2_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN2_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN2_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN3_SEC_MASK_MASK (0x8U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN3_SEC_MASK_SHIFT (3U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN3_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN3_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN3_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN4_SEC_MASK_MASK (0x10U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN4_SEC_MASK_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN4_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN4_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN4_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN5_SEC_MASK_MASK (0x20U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN5_SEC_MASK_SHIFT (5U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN5_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN5_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN5_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN6_SEC_MASK_MASK (0x40U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN6_SEC_MASK_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN6_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN6_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN6_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN7_SEC_MASK_MASK (0x80U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN7_SEC_MASK_SHIFT (7U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN7_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN7_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN7_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN8_SEC_MASK_MASK (0x100U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN8_SEC_MASK_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN8_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN8_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN8_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN9_SEC_MASK_MASK (0x200U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN9_SEC_MASK_SHIFT (9U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN9_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN9_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN9_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN10_SEC_MASK_MASK (0x400U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN10_SEC_MASK_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN10_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN10_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN10_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN11_SEC_MASK_MASK (0x800U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN11_SEC_MASK_SHIFT (11U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN11_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN11_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN11_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN12_SEC_MASK_MASK (0x1000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN12_SEC_MASK_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN12_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN12_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN12_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN13_SEC_MASK_MASK (0x2000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN13_SEC_MASK_SHIFT (13U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN13_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN13_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN13_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN14_SEC_MASK_MASK (0x4000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN14_SEC_MASK_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN14_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN14_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN14_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN15_SEC_MASK_MASK (0x8000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN15_SEC_MASK_SHIFT (15U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN15_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN15_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN15_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN16_SEC_MASK_MASK (0x10000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN16_SEC_MASK_SHIFT (16U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN16_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN16_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN16_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN17_SEC_MASK_MASK (0x20000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN17_SEC_MASK_SHIFT (17U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN17_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN17_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN17_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN18_SEC_MASK_MASK (0x40000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN18_SEC_MASK_SHIFT (18U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN18_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN18_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN18_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN19_SEC_MASK_MASK (0x80000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN19_SEC_MASK_SHIFT (19U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN19_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN19_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN19_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN20_SEC_MASK_MASK (0x100000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN20_SEC_MASK_SHIFT (20U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN20_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN20_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN20_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN21_SEC_MASK_MASK (0x200000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN21_SEC_MASK_SHIFT (21U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN21_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN21_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN21_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN22_SEC_MASK_MASK (0x400000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN22_SEC_MASK_SHIFT (22U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN22_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN22_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN22_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN23_SEC_MASK_MASK (0x800000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN23_SEC_MASK_SHIFT (23U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN23_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN23_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN23_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN24_SEC_MASK_MASK (0x1000000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN24_SEC_MASK_SHIFT (24U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN24_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN24_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN24_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN25_SEC_MASK_MASK (0x2000000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN25_SEC_MASK_SHIFT (25U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN25_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN25_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN25_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN26_SEC_MASK_MASK (0x4000000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN26_SEC_MASK_SHIFT (26U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN26_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN26_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN26_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN27_SEC_MASK_MASK (0x8000000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN27_SEC_MASK_SHIFT (27U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN27_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN27_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN27_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN28_SEC_MASK_MASK (0x10000000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN28_SEC_MASK_SHIFT (28U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN28_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN28_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN28_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN29_SEC_MASK_MASK (0x20000000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN29_SEC_MASK_SHIFT (29U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN29_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN29_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN29_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN30_SEC_MASK_MASK (0x40000000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN30_SEC_MASK_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN30_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN30_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN30_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN31_SEC_MASK_MASK (0x80000000U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN31_SEC_MASK_SHIFT (31U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN31_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN31_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK2_PIO2_PIN31_SEC_MASK_MASK)\r
-/*! @} */\r
-\r
-/*! @name SEC_GPIO_MASK3 - Secure GPIO mask for port 3 pins. */\r
-/*! @{ */\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN0_SEC_MASK_MASK (0x1U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN0_SEC_MASK_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN0_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN0_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN0_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN1_SEC_MASK_MASK (0x2U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN1_SEC_MASK_SHIFT (1U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN1_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN1_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN1_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN2_SEC_MASK_MASK (0x4U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN2_SEC_MASK_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN2_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN2_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN2_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN3_SEC_MASK_MASK (0x8U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN3_SEC_MASK_SHIFT (3U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN3_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN3_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN3_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN4_SEC_MASK_MASK (0x10U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN4_SEC_MASK_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN4_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN4_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN4_SEC_MASK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN5_SEC_MASK_MASK (0x20U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN5_SEC_MASK_SHIFT (5U)\r
-#define AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN5_SEC_MASK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN5_SEC_MASK_SHIFT)) & AHB_SECURE_CTRL_SEC_GPIO_MASK3_PIO3_PIN5_SEC_MASK_MASK)\r
+/*! PIO1_PIN31_SEC_MASK - Secure mask for pin P1_31\r
+ * 0b1..Pin state is readable by non-secure world.\r
+ * 0b0..Pin state is blocked to non-secure world.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN31_SEC_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN31_SEC_MASK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_GPIO_MASK1_PIO1_PIN31_SEC_MASK_MASK)\r
/*! @} */\r
\r
/*! @name SEC_CPU_INT_MASK0 - Secure Interrupt mask for CPU1 */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SYS_IRQ_MASK (0x1U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SYS_IRQ_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SYS_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SYS_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SYS_IRQ_MASK)\r
+/*! SYS_IRQ - Watchdog Timer, Brown Out Detectors and Flash Controller interrupts\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SYS_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SYS_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SYS_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SDMA0_IRQ_MASK (0x2U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SDMA0_IRQ_SHIFT (1U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SDMA0_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SDMA0_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SDMA0_IRQ_MASK)\r
+/*! SDMA0_IRQ - System DMA 0 (non-secure) interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SDMA0_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SDMA0_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SDMA0_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT0_IRQ_MASK (0x4U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT0_IRQ_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT0_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT0_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT0_IRQ_MASK)\r
+/*! GPIO_GLOBALINT0_IRQ - GPIO Group 0 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT0_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT0_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT0_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT1_IRQ_MASK (0x8U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT1_IRQ_SHIFT (3U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT1_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT1_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT1_IRQ_MASK)\r
+/*! GPIO_GLOBALINT1_IRQ - GPIO Group 1 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT1_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT1_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_GLOBALINT1_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ0_MASK (0x10U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ0_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ0_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ0_MASK)\r
+/*! GPIO_INT0_IRQ0 - Pin interrupt 0 or pattern match engine slice 0 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ0_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ1_MASK (0x20U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ1_SHIFT (5U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ1_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ1_MASK)\r
+/*! GPIO_INT0_IRQ1 - Pin interrupt 1 or pattern match engine slice 1 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ1_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ2_MASK (0x40U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ2_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ2_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ2_MASK)\r
+/*! GPIO_INT0_IRQ2 - Pin interrupt 2 or pattern match engine slice 2 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ2_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ3_MASK (0x80U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ3_SHIFT (7U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ3_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ3_MASK)\r
+/*! GPIO_INT0_IRQ3 - Pin interrupt 3 or pattern match engine slice 3 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_GPIO_INT0_IRQ3_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_UTICK_IRQ_MASK (0x100U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_UTICK_IRQ_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_UTICK_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_UTICK_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_UTICK_IRQ_MASK)\r
+/*! UTICK_IRQ - Micro Tick Timer interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_UTICK_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_UTICK_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_UTICK_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MRT_IRQ_MASK (0x200U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MRT_IRQ_SHIFT (9U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MRT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MRT_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MRT_IRQ_MASK)\r
+/*! MRT_IRQ - Multi-Rate Timer interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MRT_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MRT_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MRT_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER0_IRQ_MASK (0x400U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER0_IRQ_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER0_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER0_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER0_IRQ_MASK)\r
+/*! CTIMER0_IRQ - Standard counter/timer 0 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER0_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER0_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER0_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER1_IRQ_MASK (0x800U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER1_IRQ_SHIFT (11U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER1_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER1_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER1_IRQ_MASK)\r
+/*! CTIMER1_IRQ - Standard counter/timer 1 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER1_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER1_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER1_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SCT_IRQ_MASK (0x1000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SCT_IRQ_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SCT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SCT_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SCT_IRQ_MASK)\r
+/*! SCT_IRQ - SCTimer/PWM interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SCT_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SCT_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_SCT_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER3_IRQ_MASK (0x2000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER3_IRQ_SHIFT (13U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER3_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER3_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER3_IRQ_MASK)\r
+/*! CTIMER3_IRQ - Standard counter/timer 3 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER3_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER3_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_CTIMER3_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM0_IRQ_MASK (0x4000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM0_IRQ_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM0_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM0_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM0_IRQ_MASK)\r
+/*! FLEXCOMM0_IRQ - Flexcomm 0 interrupt (USART, SPI, I2C, I2S).\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM0_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM0_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM0_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM1_IRQ_MASK (0x8000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM1_IRQ_SHIFT (15U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM1_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM1_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM1_IRQ_MASK)\r
+/*! FLEXCOMM1_IRQ - Flexcomm 1 interrupt (USART, SPI, I2C, I2S).\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM1_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM1_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM1_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM2_IRQ_MASK (0x10000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM2_IRQ_SHIFT (16U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM2_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM2_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM2_IRQ_MASK)\r
+/*! FLEXCOMM2_IRQ - Flexcomm 2 interrupt (USART, SPI, I2C, I2S).\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM2_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM2_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM2_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM3_IRQ_MASK (0x20000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM3_IRQ_SHIFT (17U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM3_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM3_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM3_IRQ_MASK)\r
+/*! FLEXCOMM3_IRQ - Flexcomm 3 interrupt (USART, SPI, I2C, I2S).\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM3_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM3_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM3_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM4_IRQ_MASK (0x40000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM4_IRQ_SHIFT (18U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM4_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM4_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM4_IRQ_MASK)\r
+/*! FLEXCOMM4_IRQ - Flexcomm 4 interrupt (USART, SPI, I2C, I2S).\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM4_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM4_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM4_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM5_IRQ_MASK (0x80000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM5_IRQ_SHIFT (19U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM5_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM5_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM5_IRQ_MASK)\r
+/*! FLEXCOMM5_IRQ - Flexcomm 5 interrupt (USART, SPI, I2C, I2S).\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM5_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM5_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM5_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM6_IRQ_MASK (0x100000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM6_IRQ_SHIFT (20U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM6_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM6_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM6_IRQ_MASK)\r
+/*! FLEXCOMM6_IRQ - Flexcomm 6 interrupt (USART, SPI, I2C, I2S).\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM6_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM6_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM6_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM7_IRQ_MASK (0x200000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM7_IRQ_SHIFT (21U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM7_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM7_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM7_IRQ_MASK)\r
+/*! FLEXCOMM7_IRQ - Flexcomm 7 interrupt (USART, SPI, I2C, I2S).\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM7_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM7_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_FLEXCOMM7_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ADC_IRQ_MASK (0x400000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ADC_IRQ_SHIFT (22U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ADC_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ADC_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ADC_IRQ_MASK)\r
+/*! ADC_IRQ - General Purpose ADC interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ADC_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ADC_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ADC_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED0_MASK (0x800000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED0_SHIFT (23U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED0_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED0_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_CAPT0_IRQ_MASK (0x1000000U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_CAPT0_IRQ_SHIFT (24U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_CAPT0_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_CAPT0_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_CAPT0_IRQ_MASK)\r
+/*! RESERVED0 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED0_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_IRQ_MASK (0x1000000U)\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_IRQ_SHIFT (24U)\r
+/*! ACMP_IRQ - Analog Comparator interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_ACMP_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED1_MASK (0x2000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED1_SHIFT (25U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED1_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED1_MASK)\r
+/*! RESERVED1 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED1_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED2_MASK (0x4000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED2_SHIFT (26U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED2_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED2_MASK)\r
+/*! RESERVED2 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED2_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_NEEDCLK_MASK (0x8000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_NEEDCLK_SHIFT (27U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_NEEDCLK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_NEEDCLK_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_NEEDCLK_MASK)\r
+/*! USB0_NEEDCLK - USB Full Speed Controller Clock request interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_NEEDCLK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_NEEDCLK_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_IRQ_MASK (0x10000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_IRQ_SHIFT (28U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_IRQ_MASK)\r
+/*! USB0_IRQ - USB Full Speed Controller interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_USB0_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RTC_IRQ_MASK (0x20000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RTC_IRQ_SHIFT (29U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RTC_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RTC_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RTC_IRQ_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_EZH_ARCH_B_IRQ_MASK (0x40000000U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_EZH_ARCH_B_IRQ_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_EZH_ARCH_B_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_EZH_ARCH_B_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_EZH_ARCH_B_IRQ_MASK)\r
+/*! RTC_IRQ - RTC_LITE0_ALARM_IRQ, RTC_LITE0_WAKEUP_IRQ\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RTC_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RTC_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RTC_IRQ_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED3_MASK (0x40000000U)\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED3_SHIFT (30U)\r
+/*! RESERVED3 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_RESERVED3_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MAILBOX_IRQ_MASK (0x80000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MAILBOX_IRQ_SHIFT (31U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MAILBOX_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MAILBOX_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MAILBOX_IRQ_MASK)\r
+/*! MAILBOX_IRQ - Mailbox interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MAILBOX_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MAILBOX_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK0_MAILBOX_IRQ_MASK)\r
/*! @} */\r
\r
/*! @name SEC_CPU_INT_MASK1 - Secure Interrupt mask for CPU1 */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ4_MASK (0x1U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ4_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ4_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ4_MASK)\r
+/*! GPIO_INT0_IRQ4 - Pin interrupt 4 or pattern match engine slice 4 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ4_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ5_MASK (0x2U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ5_SHIFT (1U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ5_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ5_MASK)\r
+/*! GPIO_INT0_IRQ5 - Pin interrupt 5 or pattern match engine slice 5 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ5_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ6_MASK (0x4U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ6_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ6(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ6_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ6_MASK)\r
+/*! GPIO_INT0_IRQ6 - Pin interrupt 6 or pattern match engine slice 6 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ6_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ6_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ7_MASK (0x8U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ7_SHIFT (3U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ7(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ7_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ7_MASK)\r
+/*! GPIO_INT0_IRQ7 - Pin interrupt 7 or pattern match engine slice 7 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ7_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_GPIO_INT0_IRQ7_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER2_IRQ_MASK (0x10U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER2_IRQ_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER2_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER2_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER2_IRQ_MASK)\r
+/*! CTIMER2_IRQ - Standard counter/timer 2 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER2_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER2_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER2_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER4_IRQ_MASK (0x20U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER4_IRQ_SHIFT (5U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER4_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER4_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER4_IRQ_MASK)\r
+/*! CTIMER4_IRQ - Standard counter/timer 4 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER4_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER4_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CTIMER4_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_OS_EVENT_TIMER_IRQ_MASK (0x40U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_OS_EVENT_TIMER_IRQ_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_OS_EVENT_TIMER_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_OS_EVENT_TIMER_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_OS_EVENT_TIMER_IRQ_MASK)\r
+/*! OS_EVENT_TIMER_IRQ - OS Event Timer and OS Event Timer Wakeup interrupts\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_OS_EVENT_TIMER_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_OS_EVENT_TIMER_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_OS_EVENT_TIMER_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED0_MASK (0x80U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED0_SHIFT (7U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED0_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED0_MASK)\r
+/*! RESERVED0 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED0_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED1_MASK (0x100U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED1_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED1_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED1_MASK)\r
+/*! RESERVED1 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED1_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED2_MASK (0x200U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED2_SHIFT (9U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED2(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED2_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED2_MASK)\r
+/*! RESERVED2 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED2_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED2_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDIO_IRQ_MASK (0x400U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDIO_IRQ_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDIO_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDIO_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDIO_IRQ_MASK)\r
+/*! SDIO_IRQ - SDIO Controller interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDIO_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDIO_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDIO_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED3_MASK (0x800U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED3_SHIFT (11U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED3(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED3_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED3_MASK)\r
+/*! RESERVED3 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED3_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED3_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED4_MASK (0x1000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED4_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED4(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED4_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED4_MASK)\r
+/*! RESERVED4 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED4_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED4_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED5_MASK (0x2000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED5_SHIFT (13U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED5(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED5_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED5_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_UTMI_IRQ_MASK (0x4000U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_UTMI_IRQ_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_UTMI_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_UTMI_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_UTMI_IRQ_MASK)\r
+/*! RESERVED5 - Reserved. Read value is undefined, only zero should be written.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED5_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_RESERVED5_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_PHY_IRQ_MASK (0x4000U)\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_PHY_IRQ_SHIFT (14U)\r
+/*! USB1_PHY_IRQ - USB High Speed PHY Controller interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_PHY_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_PHY_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_PHY_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_IRQ_MASK (0x8000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_IRQ_SHIFT (15U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_IRQ_MASK)\r
+/*! USB1_IRQ - USB High Speed Controller interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_NEEDCLK_MASK (0x10000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_NEEDCLK_SHIFT (16U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_NEEDCLK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_NEEDCLK_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_NEEDCLK_MASK)\r
+/*! USB1_NEEDCLK - USB High Speed Controller Clock request interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_NEEDCLK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_USB1_NEEDCLK_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_HYPERVISOR_CALL_IRQ_MASK (0x20000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_HYPERVISOR_CALL_IRQ_SHIFT (17U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_HYPERVISOR_CALL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_HYPERVISOR_CALL_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_HYPERVISOR_CALL_IRQ_MASK)\r
+/*! SEC_HYPERVISOR_CALL_IRQ - Secure fault Hyper Visor call interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_HYPERVISOR_CALL_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_HYPERVISOR_CALL_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_HYPERVISOR_CALL_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ0_MASK (0x40000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ0_SHIFT (18U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ0_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ0_MASK)\r
+/*! SEC_GPIO_INT0_IRQ0 - Secure Pin interrupt 0 or pattern match engine slice 0 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ0_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ1_MASK (0x80000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ1_SHIFT (19U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ1_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ1_MASK)\r
+/*! SEC_GPIO_INT0_IRQ1 - Secure Pin interrupt 1 or pattern match engine slice 1 interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_GPIO_INT0_IRQ1_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PLU_IRQ_MASK (0x100000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PLU_IRQ_SHIFT (20U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PLU_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PLU_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PLU_IRQ_MASK)\r
+/*! PLU_IRQ - Programmable Look-Up Controller interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PLU_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PLU_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PLU_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_VIO_IRQ_MASK (0x200000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_VIO_IRQ_SHIFT (21U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_VIO_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_VIO_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_VIO_IRQ_MASK)\r
+/*! SEC_VIO_IRQ - Security Violation interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_VIO_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_VIO_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SEC_VIO_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SHA_IRQ_MASK (0x400000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SHA_IRQ_SHIFT (22U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SHA_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SHA_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SHA_IRQ_MASK)\r
+/*! SHA_IRQ - HASH-AES interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SHA_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SHA_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SHA_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CASPER_IRQ_MASK (0x800000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CASPER_IRQ_SHIFT (23U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CASPER_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CASPER_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CASPER_IRQ_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_QDDKEY_IRQ_MASK (0x1000000U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_QDDKEY_IRQ_SHIFT (24U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_QDDKEY_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_QDDKEY_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_QDDKEY_IRQ_MASK)\r
+/*! CASPER_IRQ - CASPER interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CASPER_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CASPER_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_CASPER_IRQ_MASK)\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PUFKEY_IRQ_MASK (0x1000000U)\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PUFKEY_IRQ_SHIFT (24U)\r
+/*! PUFKEY_IRQ - PUF interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PUFKEY_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PUFKEY_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PUFKEY_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PQ_IRQ_MASK (0x2000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PQ_IRQ_SHIFT (25U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PQ_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PQ_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PQ_IRQ_MASK)\r
+/*! PQ_IRQ - Power Quad interrupt.\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PQ_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PQ_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PQ_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDMA1_IRQ_MASK (0x4000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDMA1_IRQ_SHIFT (26U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDMA1_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDMA1_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDMA1_IRQ_MASK)\r
+/*! SDMA1_IRQ - System DMA 1 (Secure) interrupt\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDMA1_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDMA1_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_SDMA1_IRQ_MASK)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_LSPI_HS_IRQ_MASK (0x8000000U)\r
#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_LSPI_HS_IRQ_SHIFT (27U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_LSPI_HS_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_LSPI_HS_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_LSPI_HS_IRQ_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_AMBER_IRQ_MASK (0x10000000U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_AMBER_IRQ_SHIFT (28U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_AMBER_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_AMBER_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_AMBER_IRQ_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_RED_IRQ_MASK (0x20000000U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_RED_IRQ_SHIFT (29U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_RED_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_RED_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF0_RED_IRQ_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_AMBER_IRQ_MASK (0x40000000U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_AMBER_IRQ_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_AMBER_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_AMBER_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_AMBER_IRQ_MASK)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_RED_IRQ_MASK (0x80000000U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_RED_IRQ_SHIFT (31U)\r
-#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_RED_IRQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_RED_IRQ_SHIFT)) & AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_PVTVF1_RED_IRQ_MASK)\r
+/*! LSPI_HS_IRQ - High Speed SPI interrupt\r
+ * 0b0..\r
+ * 0b1..\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_LSPI_HS_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_LSPI_HS_IRQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_CPU_INT_MASK1_LSPI_HS_IRQ_MASK)\r
/*! @} */\r
\r
/*! @name SEC_MASK_LOCK - Security General Purpose register access control. */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK0_LOCK_MASK (0x3U)\r
#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK0_LOCK_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK0_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK0_LOCK_SHIFT)) & AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK0_LOCK_MASK)\r
+/*! SEC_GPIO_MASK0_LOCK - SEC_GPIO_MASK0 register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK0_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK0_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK0_LOCK_MASK)\r
#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK1_LOCK_MASK (0xCU)\r
#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK1_LOCK_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK1_LOCK_SHIFT)) & AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK1_LOCK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK2_LOCK_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK2_LOCK_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK2_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK2_LOCK_SHIFT)) & AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK2_LOCK_MASK)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK3_LOCK_MASK (0xC0U)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK3_LOCK_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK3_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK3_LOCK_SHIFT)) & AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK3_LOCK_MASK)\r
+/*! SEC_GPIO_MASK1_LOCK - SEC_GPIO_MASK1 register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK1_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK1_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_GPIO_MASK1_LOCK_MASK)\r
#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK0_LOCK_MASK (0x300U)\r
#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK0_LOCK_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK0_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK0_LOCK_SHIFT)) & AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK0_LOCK_MASK)\r
+/*! SEC_CPU1_INT_MASK0_LOCK - SEC_CPU_INT_MASK0 register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK0_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK0_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK0_LOCK_MASK)\r
#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK1_LOCK_MASK (0xC00U)\r
#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK1_LOCK_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK1_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK1_LOCK_SHIFT)) & AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK1_LOCK_MASK)\r
+/*! SEC_CPU1_INT_MASK1_LOCK - SEC_CPU_INT_MASK1 register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK1_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK1_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_SEC_MASK_LOCK_SEC_CPU1_INT_MASK1_LOCK_MASK)\r
/*! @} */\r
\r
/*! @name MASTER_SEC_LEVEL - master secure level register */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33C_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33C_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33C(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33C_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33C_MASK)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33S_MASK (0xC0U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33S_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33S(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33S_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MCM33S_MASK)\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1C_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1C_SHIFT (4U)\r
+/*! CPU1C - Micro-Cortex M33 (CPU1) Code bus.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1C(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1C_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1C_MASK)\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1S_MASK (0xC0U)\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1S_SHIFT (6U)\r
+/*! CPU1S - Micro-Cortex M33 (CPU1) System bus.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1S(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1S_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_CPU1S_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSD_MASK (0x300U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSD_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSD(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSD_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSD_MASK)\r
+/*! USBFSD - USB Full Speed Device.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSD_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSD_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA0_MASK (0xC00U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA0_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA0_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA0_MASK)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_D_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_D_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_D(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_D_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_D_MASK)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_I_MASK (0xC000U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_I_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_I(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_I_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_EZH_I_MASK)\r
+/*! SDMA0 - System DMA 0.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA0_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDIO_MASK (0x30000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDIO_SHIFT (16U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDIO(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDIO_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDIO_MASK)\r
+/*! SDIO - SDIO.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDIO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDIO_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDIO_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_PQ_MASK (0xC0000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_PQ_SHIFT (18U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_PQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_PQ_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_PQ_MASK)\r
+/*! PQ - Power Quad.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_PQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_PQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_PQ_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_HASH_MASK (0x300000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_HASH_SHIFT (20U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_HASH(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_HASH_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_HASH_MASK)\r
+/*! HASH - Hash.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_HASH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_HASH_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_HASH_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSH_MASK (0xC00000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSH_SHIFT (22U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSH(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSH_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSH_MASK)\r
+/*! USBFSH - USB Full speed Host.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSH_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_USBFSH_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA1_MASK (0x3000000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA1_SHIFT (24U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA1_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA1_MASK)\r
+/*! SDMA1 - System DMA 1 security level.\r
+ * 0b00..Non-secure and Non-priviledge user access allowed.\r
+ * 0b01..Non-secure and Privilege access allowed.\r
+ * 0b10..Secure and Non-priviledge user access allowed.\r
+ * 0b11..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_SDMA1_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MASTER_SEC_LEVEL_LOCK_MASK (0xC0000000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MASTER_SEC_LEVEL_LOCK_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MASTER_SEC_LEVEL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MASTER_SEC_LEVEL_LOCK_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MASTER_SEC_LEVEL_LOCK_MASK)\r
+/*! MASTER_SEC_LEVEL_LOCK - MASTER_SEC_LEVEL write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MASTER_SEC_LEVEL_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MASTER_SEC_LEVEL_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_LEVEL_MASTER_SEC_LEVEL_LOCK_MASK)\r
/*! @} */\r
\r
/*! @name MASTER_SEC_ANTI_POL_REG - master secure level anti-pole register */\r
/*! @{ */\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33C_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33C_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33C(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33C_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33C_MASK)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33S_MASK (0xC0U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33S_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33S(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33S_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MCM33S_MASK)\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1C_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1C_SHIFT (4U)\r
+/*! CPU1C - Micro-Cortex M33 (CPU1) Code bus. Must be equal to NOT(MASTER_SEC_LEVEL.CPU1C)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1C(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1C_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1C_MASK)\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1S_MASK (0xC0U)\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1S_SHIFT (6U)\r
+/*! CPU1S - Micro-Cortex M33 (CPU1) System bus. Must be equal to NOT(MASTER_SEC_LEVEL.CPU1S)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1S(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1S_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_CPU1S_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSD_MASK (0x300U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSD_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSD(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSD_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSD_MASK)\r
+/*! USBFSD - USB Full Speed Device. Must be equal to NOT(MASTER_SEC_LEVEL.USBFSD)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSD_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSD_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA0_MASK (0xC00U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA0_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA0(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA0_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA0_MASK)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_D_MASK (0x3000U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_D_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_D(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_D_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_D_MASK)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_I_MASK (0xC000U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_I_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_I(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_I_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_EZH_I_MASK)\r
+/*! SDMA0 - System DMA 0. Must be equal to NOT(MASTER_SEC_LEVEL.SDMA0)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA0_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA0_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDIO_MASK (0x30000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDIO_SHIFT (16U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDIO(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDIO_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDIO_MASK)\r
+/*! SDIO - SDIO. Must be equal to NOT(MASTER_SEC_LEVEL.SDIO)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDIO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDIO_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDIO_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_PQ_MASK (0xC0000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_PQ_SHIFT (18U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_PQ(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_PQ_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_PQ_MASK)\r
+/*! PQ - Power Quad. Must be equal to NOT(MASTER_SEC_LEVEL.PQ)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_PQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_PQ_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_PQ_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_HASH_MASK (0x300000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_HASH_SHIFT (20U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_HASH(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_HASH_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_HASH_MASK)\r
+/*! HASH - Hash. Must be equal to NOT(MASTER_SEC_LEVEL.HASH)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_HASH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_HASH_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_HASH_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSH_MASK (0xC00000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSH_SHIFT (22U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSH(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSH_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSH_MASK)\r
+/*! USBFSH - USB Full speed Host. Must be equal to NOT(MASTER_SEC_LEVEL.USBFSH)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSH_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_USBFSH_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA1_MASK (0x3000000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA1_SHIFT (24U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA1(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA1_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA1_MASK)\r
+/*! SDMA1 - System DMA 1 security level. Must be equal to NOT(MASTER_SEC_LEVEL.SDMA1)\r
+ * 0b11..Non-secure and Non-priviledge user access allowed.\r
+ * 0b10..Non-secure and Privilege access allowed.\r
+ * 0b01..Secure and Non-priviledge user access allowed.\r
+ * 0b00..Secure and Priviledge user access allowed.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA1_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_SDMA1_MASK)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MASTER_SEC_LEVEL_ANTIPOL_LOCK_MASK (0xC0000000U)\r
#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MASTER_SEC_LEVEL_ANTIPOL_LOCK_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MASTER_SEC_LEVEL_ANTIPOL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MASTER_SEC_LEVEL_ANTIPOL_LOCK_SHIFT)) & AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MASTER_SEC_LEVEL_ANTIPOL_LOCK_MASK)\r
-/*! @} */\r
-\r
-/*! @name CM33_LOCK_REG - Miscalleneous control signals for in CM33 (CPU0) */\r
-/*! @{ */\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_VTOR_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_VTOR_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_VTOR(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_VTOR_SHIFT)) & AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_VTOR_MASK)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_MPU_MASK (0xCU)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_MPU_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_MPU(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_MPU_SHIFT)) & AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_NS_MPU_MASK)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_VTAIRCR_MASK (0x30U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_VTAIRCR_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_VTAIRCR(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_VTAIRCR_SHIFT)) & AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_VTAIRCR_MASK)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_MPU_MASK (0xC0U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_MPU_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_MPU(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_MPU_SHIFT)) & AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_S_MPU_MASK)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_SAU_MASK (0x300U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_SAU_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_SAU(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_SAU_SHIFT)) & AHB_SECURE_CTRL_CM33_LOCK_REG_LOCK_SAU_MASK)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_CM33_LOCK_REG_LOCK_MASK (0xC0000000U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_CM33_LOCK_REG_LOCK_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_CM33_LOCK_REG_CM33_LOCK_REG_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CM33_LOCK_REG_CM33_LOCK_REG_LOCK_SHIFT)) & AHB_SECURE_CTRL_CM33_LOCK_REG_CM33_LOCK_REG_LOCK_MASK)\r
-/*! @} */\r
-\r
-/*! @name MCM33_LOCK_REG - Miscalleneous control signals for in micro-CM33 (CPU1) */\r
-/*! @{ */\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_VTOR_MASK (0x3U)\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_VTOR_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_VTOR(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_VTOR_SHIFT)) & AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_VTOR_MASK)\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_MPU_MASK (0xCU)\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_MPU_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_MPU(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_MPU_SHIFT)) & AHB_SECURE_CTRL_MCM33_LOCK_REG_LOCK_NS_MPU_MASK)\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_MCM33_LOCK_REG_LOCK_MASK (0xC0000000U)\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_MCM33_LOCK_REG_LOCK_SHIFT (30U)\r
-#define AHB_SECURE_CTRL_MCM33_LOCK_REG_MCM33_LOCK_REG_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MCM33_LOCK_REG_MCM33_LOCK_REG_LOCK_SHIFT)) & AHB_SECURE_CTRL_MCM33_LOCK_REG_MCM33_LOCK_REG_LOCK_MASK)\r
+/*! MASTER_SEC_LEVEL_ANTIPOL_LOCK - MASTER_SEC_ANTI_POL_REG register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MASTER_SEC_LEVEL_ANTIPOL_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MASTER_SEC_LEVEL_ANTIPOL_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MASTER_SEC_ANTI_POL_REG_MASTER_SEC_LEVEL_ANTIPOL_LOCK_MASK)\r
+/*! @} */\r
+\r
+/*! @name CPU0_LOCK_REG - Miscalleneous control signals for in Cortex M33 (CPU0) */\r
+/*! @{ */\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_VTOR_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_VTOR_SHIFT (0U)\r
+/*! LOCK_NS_VTOR - Cortex M33 (CPU0) VTOR_NS register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_VTOR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_VTOR_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_VTOR_MASK)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_MPU_MASK (0xCU)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_MPU_SHIFT (2U)\r
+/*! LOCK_NS_MPU - Cortex M33 (CPU0) non-secure MPU register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_MPU(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_MPU_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_NS_MPU_MASK)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_VTAIRCR_MASK (0x30U)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_VTAIRCR_SHIFT (4U)\r
+/*! LOCK_S_VTAIRCR - Cortex M33 (CPU0) VTOR_S, AIRCR.PRIS, IRCR.BFHFNMINS registers write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_VTAIRCR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_VTAIRCR_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_VTAIRCR_MASK)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_MPU_MASK (0xC0U)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_MPU_SHIFT (6U)\r
+/*! LOCK_S_MPU - Cortex M33 (CPU0) Secure MPU registers write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_MPU(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_MPU_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_S_MPU_MASK)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_SAU_MASK (0x300U)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_SAU_SHIFT (8U)\r
+/*! LOCK_SAU - Cortex M33 (CPU0) SAU registers write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_SAU(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_SAU_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU0_LOCK_REG_LOCK_SAU_MASK)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_CPU0_LOCK_REG_LOCK_MASK (0xC0000000U)\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_CPU0_LOCK_REG_LOCK_SHIFT (30U)\r
+/*! CPU0_LOCK_REG_LOCK - CPU0_LOCK_REG write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU0_LOCK_REG_CPU0_LOCK_REG_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU0_LOCK_REG_CPU0_LOCK_REG_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU0_LOCK_REG_CPU0_LOCK_REG_LOCK_MASK)\r
+/*! @} */\r
+\r
+/*! @name CPU1_LOCK_REG - Miscalleneous control signals for in micro-Cortex M33 (CPU1) */\r
+/*! @{ */\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_VTOR_MASK (0x3U)\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_VTOR_SHIFT (0U)\r
+/*! LOCK_NS_VTOR - micro-Cortex M33 (CPU1) VTOR_NS register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_VTOR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_VTOR_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_VTOR_MASK)\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_MPU_MASK (0xCU)\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_MPU_SHIFT (2U)\r
+/*! LOCK_NS_MPU - micro-Cortex M33 (CPU1) non-secure MPU register write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_MPU(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_MPU_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU1_LOCK_REG_LOCK_NS_MPU_MASK)\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_CPU1_LOCK_REG_LOCK_MASK (0xC0000000U)\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_CPU1_LOCK_REG_LOCK_SHIFT (30U)\r
+/*! CPU1_LOCK_REG_LOCK - CPU1_LOCK_REG write-lock.\r
+ * 0b10..Writable.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_CPU1_LOCK_REG_CPU1_LOCK_REG_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_CPU1_LOCK_REG_CPU1_LOCK_REG_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_CPU1_LOCK_REG_CPU1_LOCK_REG_LOCK_MASK)\r
/*! @} */\r
\r
/*! @name MISC_CTRL_DP_REG - secure control duplicate register */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_WRITE_LOCK_MASK (0x3U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_WRITE_LOCK_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_WRITE_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_WRITE_LOCK_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_DP_REG_WRITE_LOCK_MASK)\r
+/*! WRITE_LOCK - Write lock.\r
+ * 0b10..Secure control registers can be written.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_WRITE_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_WRITE_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_DP_REG_WRITE_LOCK_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_SECURE_CHECKING_MASK (0xCU)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_SECURE_CHECKING_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_SECURE_CHECKING(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_SECURE_CHECKING_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_SECURE_CHECKING_MASK)\r
+/*! ENABLE_SECURE_CHECKING - Enable secure check for AHB matrix.\r
+ * 0b10..Disable check.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_SECURE_CHECKING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_SECURE_CHECKING_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_SECURE_CHECKING_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_S_PRIV_CHECK_MASK (0x30U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_S_PRIV_CHECK_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_S_PRIV_CHECK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_S_PRIV_CHECK_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_S_PRIV_CHECK_MASK)\r
+/*! ENABLE_S_PRIV_CHECK - Enable secure privilege check for AHB matrix.\r
+ * 0b10..Disable check.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_S_PRIV_CHECK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_S_PRIV_CHECK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_S_PRIV_CHECK_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_NS_PRIV_CHECK_MASK (0xC0U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_NS_PRIV_CHECK_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_NS_PRIV_CHECK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_NS_PRIV_CHECK_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_NS_PRIV_CHECK_MASK)\r
+/*! ENABLE_NS_PRIV_CHECK - Enable non-secure privilege check for AHB matrix.\r
+ * 0b10..Disable check.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_NS_PRIV_CHECK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_NS_PRIV_CHECK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_DP_REG_ENABLE_NS_PRIV_CHECK_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_VIOLATION_ABORT_MASK (0x300U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_VIOLATION_ABORT_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_VIOLATION_ABORT(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_VIOLATION_ABORT_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_VIOLATION_ABORT_MASK)\r
+/*! DISABLE_VIOLATION_ABORT - Disable secure violation abort.\r
+ * 0b10..Enable abort fort secure checker.\r
+ * 0b01..Disable abort fort secure checker.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_VIOLATION_ABORT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_VIOLATION_ABORT_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_VIOLATION_ABORT_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_MASK (0xC00U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_MASK)\r
+/*! DISABLE_SIMPLE_MASTER_STRICT_MODE - Disable simple master strict mode.\r
+ * 0b10..Simple master in strict mode.\r
+ * 0b01..Simple master in tier mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SMART_MASTER_STRICT_MODE_MASK (0x3000U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SMART_MASTER_STRICT_MODE_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SMART_MASTER_STRICT_MODE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SMART_MASTER_STRICT_MODE_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SMART_MASTER_STRICT_MODE_MASK)\r
+/*! DISABLE_SMART_MASTER_STRICT_MODE - Disable smart master strict mode.\r
+ * 0b10..Smart master in strict mode.\r
+ * 0b01..Smart master in tier mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SMART_MASTER_STRICT_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SMART_MASTER_STRICT_MODE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_DP_REG_DISABLE_SMART_MASTER_STRICT_MODE_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_IDAU_ALL_NS_MASK (0xC000U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_IDAU_ALL_NS_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_IDAU_ALL_NS(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_IDAU_ALL_NS_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_DP_REG_IDAU_ALL_NS_MASK)\r
+/*! IDAU_ALL_NS - Disable IDAU.\r
+ * 0b10..IDAU is enabled.\r
+ * 0b01..IDAU is disable.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_DP_REG_IDAU_ALL_NS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_DP_REG_IDAU_ALL_NS_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_DP_REG_IDAU_ALL_NS_MASK)\r
/*! @} */\r
\r
/*! @name MISC_CTRL_REG - secure control register */\r
/*! @{ */\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_WRITE_LOCK_MASK (0x3U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_WRITE_LOCK_SHIFT (0U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_REG_WRITE_LOCK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_WRITE_LOCK_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_REG_WRITE_LOCK_MASK)\r
+/*! WRITE_LOCK - Write lock.\r
+ * 0b10..Secure control registers can be written.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_REG_WRITE_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_WRITE_LOCK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_REG_WRITE_LOCK_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_SECURE_CHECKING_MASK (0xCU)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_SECURE_CHECKING_SHIFT (2U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_SECURE_CHECKING(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_SECURE_CHECKING_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_SECURE_CHECKING_MASK)\r
+/*! ENABLE_SECURE_CHECKING - Enable secure check for AHB matrix.\r
+ * 0b10..Disable check.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_SECURE_CHECKING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_SECURE_CHECKING_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_SECURE_CHECKING_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_S_PRIV_CHECK_MASK (0x30U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_S_PRIV_CHECK_SHIFT (4U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_S_PRIV_CHECK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_S_PRIV_CHECK_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_S_PRIV_CHECK_MASK)\r
+/*! ENABLE_S_PRIV_CHECK - Enable secure privilege check for AHB matrix.\r
+ * 0b10..Disable check.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_S_PRIV_CHECK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_S_PRIV_CHECK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_S_PRIV_CHECK_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_NS_PRIV_CHECK_MASK (0xC0U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_NS_PRIV_CHECK_SHIFT (6U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_NS_PRIV_CHECK(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_NS_PRIV_CHECK_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_NS_PRIV_CHECK_MASK)\r
+/*! ENABLE_NS_PRIV_CHECK - Enable non-secure privilege check for AHB matrix.\r
+ * 0b10..Disable check.\r
+ * 0b01..Restricted mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_NS_PRIV_CHECK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_NS_PRIV_CHECK_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_REG_ENABLE_NS_PRIV_CHECK_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_VIOLATION_ABORT_MASK (0x300U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_VIOLATION_ABORT_SHIFT (8U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_VIOLATION_ABORT(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_VIOLATION_ABORT_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_VIOLATION_ABORT_MASK)\r
+/*! DISABLE_VIOLATION_ABORT - Disable secure violation abort.\r
+ * 0b10..Enable abort fort secure checker.\r
+ * 0b01..Disable abort fort secure checker.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_VIOLATION_ABORT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_VIOLATION_ABORT_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_VIOLATION_ABORT_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_MASK (0xC00U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_SHIFT (10U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_MASK)\r
+/*! DISABLE_SIMPLE_MASTER_STRICT_MODE - Disable simple master strict mode.\r
+ * 0b10..Simple master in strict mode.\r
+ * 0b01..Simple master in tier mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SIMPLE_MASTER_STRICT_MODE_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SMART_MASTER_STRICT_MODE_MASK (0x3000U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SMART_MASTER_STRICT_MODE_SHIFT (12U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SMART_MASTER_STRICT_MODE(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SMART_MASTER_STRICT_MODE_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SMART_MASTER_STRICT_MODE_MASK)\r
+/*! DISABLE_SMART_MASTER_STRICT_MODE - Disable smart master strict mode.\r
+ * 0b10..Smart master in strict mode.\r
+ * 0b01..Smart master in tier mode.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SMART_MASTER_STRICT_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SMART_MASTER_STRICT_MODE_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_REG_DISABLE_SMART_MASTER_STRICT_MODE_MASK)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_IDAU_ALL_NS_MASK (0xC000U)\r
#define AHB_SECURE_CTRL_MISC_CTRL_REG_IDAU_ALL_NS_SHIFT (14U)\r
-#define AHB_SECURE_CTRL_MISC_CTRL_REG_IDAU_ALL_NS(x) (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_IDAU_ALL_NS_SHIFT)) & AHB_SECURE_CTRL_MISC_CTRL_REG_IDAU_ALL_NS_MASK)\r
+/*! IDAU_ALL_NS - Disable IDAU.\r
+ * 0b10..IDAU is enabled.\r
+ * 0b01..IDAU is disable.\r
+ */\r
+#define AHB_SECURE_CTRL_MISC_CTRL_REG_IDAU_ALL_NS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << AHB_SECURE_CTRL_MISC_CTRL_REG_IDAU_ALL_NS_SHIFT)) & \\r
+ AHB_SECURE_CTRL_MISC_CTRL_REG_IDAU_ALL_NS_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group AHB_SECURE_CTRL_Register_Masks */\r
\r
-\r
/* AHB_SECURE_CTRL - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral AHB_SECURE_CTRL base address */\r
- #define AHB_SECURE_CTRL_BASE (0x500AC000u)\r
- /** Peripheral AHB_SECURE_CTRL base address */\r
- #define AHB_SECURE_CTRL_BASE_NS (0x400AC000u)\r
- /** Peripheral AHB_SECURE_CTRL base pointer */\r
- #define AHB_SECURE_CTRL ((AHB_SECURE_CTRL_Type *)AHB_SECURE_CTRL_BASE)\r
- /** Peripheral AHB_SECURE_CTRL base pointer */\r
- #define AHB_SECURE_CTRL_NS ((AHB_SECURE_CTRL_Type *)AHB_SECURE_CTRL_BASE_NS)\r
- /** Array initializer of AHB_SECURE_CTRL peripheral base addresses */\r
- #define AHB_SECURE_CTRL_BASE_ADDRS { AHB_SECURE_CTRL_BASE }\r
- /** Array initializer of AHB_SECURE_CTRL peripheral base pointers */\r
- #define AHB_SECURE_CTRL_BASE_PTRS { AHB_SECURE_CTRL }\r
- /** Array initializer of AHB_SECURE_CTRL peripheral base addresses */\r
- #define AHB_SECURE_CTRL_BASE_ADDRS_NS { AHB_SECURE_CTRL_BASE_NS }\r
- /** Array initializer of AHB_SECURE_CTRL peripheral base pointers */\r
- #define AHB_SECURE_CTRL_BASE_PTRS_NS { AHB_SECURE_CTRL_NS }\r
+/** Peripheral AHB_SECURE_CTRL base address */\r
+#define AHB_SECURE_CTRL_BASE (0x500AC000u)\r
+/** Peripheral AHB_SECURE_CTRL base address */\r
+#define AHB_SECURE_CTRL_BASE_NS (0x400AC000u)\r
+/** Peripheral AHB_SECURE_CTRL base pointer */\r
+#define AHB_SECURE_CTRL ((AHB_SECURE_CTRL_Type *)AHB_SECURE_CTRL_BASE)\r
+/** Peripheral AHB_SECURE_CTRL base pointer */\r
+#define AHB_SECURE_CTRL_NS ((AHB_SECURE_CTRL_Type *)AHB_SECURE_CTRL_BASE_NS)\r
+/** Array initializer of AHB_SECURE_CTRL peripheral base addresses */\r
+#define AHB_SECURE_CTRL_BASE_ADDRS \\r
+ { \\r
+ AHB_SECURE_CTRL_BASE \\r
+ }\r
+/** Array initializer of AHB_SECURE_CTRL peripheral base pointers */\r
+#define AHB_SECURE_CTRL_BASE_PTRS \\r
+ { \\r
+ AHB_SECURE_CTRL \\r
+ }\r
+/** Array initializer of AHB_SECURE_CTRL peripheral base addresses */\r
+#define AHB_SECURE_CTRL_BASE_ADDRS_NS \\r
+ { \\r
+ AHB_SECURE_CTRL_BASE_NS \\r
+ }\r
+/** Array initializer of AHB_SECURE_CTRL peripheral base pointers */\r
+#define AHB_SECURE_CTRL_BASE_PTRS_NS \\r
+ { \\r
+ AHB_SECURE_CTRL_NS \\r
+ }\r
#else\r
- /** Peripheral AHB_SECURE_CTRL base address */\r
- #define AHB_SECURE_CTRL_BASE (0x400AC000u)\r
- /** Peripheral AHB_SECURE_CTRL base pointer */\r
- #define AHB_SECURE_CTRL ((AHB_SECURE_CTRL_Type *)AHB_SECURE_CTRL_BASE)\r
- /** Array initializer of AHB_SECURE_CTRL peripheral base addresses */\r
- #define AHB_SECURE_CTRL_BASE_ADDRS { AHB_SECURE_CTRL_BASE }\r
- /** Array initializer of AHB_SECURE_CTRL peripheral base pointers */\r
- #define AHB_SECURE_CTRL_BASE_PTRS { AHB_SECURE_CTRL }\r
+/** Peripheral AHB_SECURE_CTRL base address */\r
+#define AHB_SECURE_CTRL_BASE (0x400AC000u)\r
+/** Peripheral AHB_SECURE_CTRL base pointer */\r
+#define AHB_SECURE_CTRL ((AHB_SECURE_CTRL_Type *)AHB_SECURE_CTRL_BASE)\r
+/** Array initializer of AHB_SECURE_CTRL peripheral base addresses */\r
+#define AHB_SECURE_CTRL_BASE_ADDRS \\r
+ { \\r
+ AHB_SECURE_CTRL_BASE \\r
+ }\r
+/** Array initializer of AHB_SECURE_CTRL peripheral base pointers */\r
+#define AHB_SECURE_CTRL_BASE_PTRS \\r
+ { \\r
+ AHB_SECURE_CTRL \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group AHB_SECURE_CTRL_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- ANACTRL Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** ANACTRL - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t ANALOG_CTRL_CFG; /**< Various Analog blocks configuration (like FRO 192MHz trimmings source ...), offset: 0x0 */\r
- __I uint32_t ANALOG_CTRL_STATUS; /**< Analog Macroblock Identity registers, Flash Status registers, offset: 0x4 */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t FREQ_ME_CTRL; /**< Frequency Measure function control register, offset: 0xC */\r
- __IO uint32_t FRO192M_CTRL; /**< 192MHz Free Running OScillator (FRO) Control register, offset: 0x10 */\r
- __I uint32_t FRO192M_STATUS; /**< 192MHz Free Running OScillator (FRO) Status register, offset: 0x14 */\r
- __IO uint32_t ADC_CTRL; /**< General Purpose ADC VBAT Divider branch control, offset: 0x18 */\r
- uint8_t RESERVED_1[4];\r
- __IO uint32_t XO32M_CTRL; /**< 32 MHz Crystal Oscillator Control register, offset: 0x20 */\r
- __I uint32_t XO32M_STATUS; /**< 32 MHz Crystal Oscillator Status register, offset: 0x24 */\r
- uint8_t RESERVED_2[8];\r
- __IO uint32_t BOD_DCDC_INT_CTRL; /**< Brown Out Detectors (BoDs) & DCDC interrupts generation control register, offset: 0x30 */\r
- __I uint32_t BOD_DCDC_INT_STATUS; /**< BoDs & DCDC interrupts status register, offset: 0x34 */\r
- uint8_t RESERVED_3[8];\r
- __IO uint32_t RINGO0_CTRL; /**< First Ring Oscillator module control register., offset: 0x40 */\r
- __IO uint32_t RINGO1_CTRL; /**< Second Ring Oscillator module control register., offset: 0x44 */\r
- __IO uint32_t RINGO2_CTRL; /**< Third Ring Oscillator module control register., offset: 0x48 */\r
- uint8_t RESERVED_4[100];\r
- __IO uint32_t LDO_XO32M; /**< High Speed Crystal Oscillator (12 MHz - 32 MHz) Voltage Source Supply Control register, offset: 0xB0 */\r
- uint8_t RESERVED_5[12];\r
- __IO uint32_t XO_CAL_CFG; /**< All Crystal Oscillators (both the 32 KHz and the High speed) Capacitive Banks Calibration Configuration register, offset: 0xC0 */\r
- __IO uint32_t XO_CAL_CMD; /**< All Crystal Oscillators (both the 32 KHz and the High Speed) Capacitive Banks Calibration Command register., offset: 0xC4 */\r
- __I uint32_t XO_CAL_STATUS; /**< All Crystal Oscillators (both the 32 KHz and the High speed) Capacitive Banks Calibration Status register., offset: 0xC8 */\r
- uint8_t RESERVED_6[52];\r
- __IO uint32_t USBHS_PHY_CTRL; /**< USB High Speed Phy Control, offset: 0x100 */\r
- __IO uint32_t USBHS_PHY_TRIM; /**< USB High Speed Phy Trim values, offset: 0x104 */\r
- __I uint32_t USBHS_PHY_STATUS; /**< USB High Speed Phy Status, offset: 0x108 */\r
+typedef struct\r
+{\r
+ uint8_t RESERVED_0[4];\r
+ __I uint32_t ANALOG_CTRL_STATUS; /**< Analog Macroblock Identity registers, Flash Status registers, offset: 0x4 */\r
+ uint8_t RESERVED_1[4];\r
+ __IO uint32_t FREQ_ME_CTRL; /**< Frequency Measure function control register, offset: 0xC */\r
+ __IO uint32_t FRO192M_CTRL; /**< 192MHz Free Running OScillator (FRO) Control register, offset: 0x10 */\r
+ __I uint32_t FRO192M_STATUS; /**< 192MHz Free Running OScillator (FRO) Status register, offset: 0x14 */\r
+ uint8_t RESERVED_2[8];\r
+ __IO uint32_t XO32M_CTRL; /**< High speed Crystal Oscillator Control register, offset: 0x20 */\r
+ __I uint32_t XO32M_STATUS; /**< High speed Crystal Oscillator Status register, offset: 0x24 */\r
+ uint8_t RESERVED_3[8];\r
+ __IO uint32_t BOD_DCDC_INT_CTRL; /**< Brown Out Detectors (BoDs) & DCDC interrupts generation control register,\r
+ offset: 0x30 */\r
+ __I uint32_t BOD_DCDC_INT_STATUS; /**< BoDs & DCDC interrupts status register, offset: 0x34 */\r
+ uint8_t RESERVED_4[8];\r
+ __IO uint32_t RINGO0_CTRL; /**< First Ring Oscillator module control register., offset: 0x40 */\r
+ __IO uint32_t RINGO1_CTRL; /**< Second Ring Oscillator module control register., offset: 0x44 */\r
+ __IO uint32_t RINGO2_CTRL; /**< Third Ring Oscillator module control register., offset: 0x48 */\r
+ uint8_t RESERVED_5[180];\r
+ __IO uint32_t USBHS_PHY_CTRL; /**< USB High Speed Phy Control, offset: 0x100 */\r
} ANACTRL_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name ANALOG_CTRL_CFG - Various Analog blocks configuration (like FRO 192MHz trimmings source ...) */\r
-/*! @{ */\r
-#define ANACTRL_ANALOG_CTRL_CFG_FRO192M_TRIM_SRC_MASK (0x1U)\r
-#define ANACTRL_ANALOG_CTRL_CFG_FRO192M_TRIM_SRC_SHIFT (0U)\r
-/*! FRO192M_TRIM_SRC - FRO192M trimming and 'Enable' source.\r
- * 0b0..FRO192M trimming and 'Enable' comes from eFUSE.\r
- * 0b1..FRO192M trimming and 'Enable' comes from FRO192M_CTRL registers.\r
- */\r
-#define ANACTRL_ANALOG_CTRL_CFG_FRO192M_TRIM_SRC(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_ANALOG_CTRL_CFG_FRO192M_TRIM_SRC_SHIFT)) & ANACTRL_ANALOG_CTRL_CFG_FRO192M_TRIM_SRC_MASK)\r
-/*! @} */\r
-\r
/*! @name ANALOG_CTRL_STATUS - Analog Macroblock Identity registers, Flash Status registers */\r
/*! @{ */\r
-#define ANACTRL_ANALOG_CTRL_STATUS_PMU_ID_MASK (0x3FU)\r
-#define ANACTRL_ANALOG_CTRL_STATUS_PMU_ID_SHIFT (0U)\r
-#define ANACTRL_ANALOG_CTRL_STATUS_PMU_ID(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_ANALOG_CTRL_STATUS_PMU_ID_SHIFT)) & ANACTRL_ANALOG_CTRL_STATUS_PMU_ID_MASK)\r
-#define ANACTRL_ANALOG_CTRL_STATUS_OSC_ID_MASK (0xFC0U)\r
-#define ANACTRL_ANALOG_CTRL_STATUS_OSC_ID_SHIFT (6U)\r
-#define ANACTRL_ANALOG_CTRL_STATUS_OSC_ID(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_ANALOG_CTRL_STATUS_OSC_ID_SHIFT)) & ANACTRL_ANALOG_CTRL_STATUS_OSC_ID_MASK)\r
#define ANACTRL_ANALOG_CTRL_STATUS_FLASH_PWRDWN_MASK (0x1000U)\r
#define ANACTRL_ANALOG_CTRL_STATUS_FLASH_PWRDWN_SHIFT (12U)\r
/*! FLASH_PWRDWN - Flash Power Down status.\r
* 0b0..Flash is not in power down mode.\r
* 0b1..Flash is in power down mode.\r
*/\r
-#define ANACTRL_ANALOG_CTRL_STATUS_FLASH_PWRDWN(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_ANALOG_CTRL_STATUS_FLASH_PWRDWN_SHIFT)) & ANACTRL_ANALOG_CTRL_STATUS_FLASH_PWRDWN_MASK)\r
+#define ANACTRL_ANALOG_CTRL_STATUS_FLASH_PWRDWN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_ANALOG_CTRL_STATUS_FLASH_PWRDWN_SHIFT)) & \\r
+ ANACTRL_ANALOG_CTRL_STATUS_FLASH_PWRDWN_MASK)\r
#define ANACTRL_ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_MASK (0x2000U)\r
#define ANACTRL_ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_SHIFT (13U)\r
/*! FLASH_INIT_ERROR - Flash initialization error status.\r
* 0b0..No error.\r
* 0b1..At least one error occured during flash initialization..\r
*/\r
-#define ANACTRL_ANALOG_CTRL_STATUS_FLASH_INIT_ERROR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_SHIFT)) & ANACTRL_ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_MASK)\r
-#define ANACTRL_ANALOG_CTRL_STATUS_FINAL_TEST_DONE_VECT_MASK (0xF0000000U)\r
-#define ANACTRL_ANALOG_CTRL_STATUS_FINAL_TEST_DONE_VECT_SHIFT (28U)\r
-#define ANACTRL_ANALOG_CTRL_STATUS_FINAL_TEST_DONE_VECT(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_ANALOG_CTRL_STATUS_FINAL_TEST_DONE_VECT_SHIFT)) & ANACTRL_ANALOG_CTRL_STATUS_FINAL_TEST_DONE_VECT_MASK)\r
+#define ANACTRL_ANALOG_CTRL_STATUS_FLASH_INIT_ERROR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_SHIFT)) & \\r
+ ANACTRL_ANALOG_CTRL_STATUS_FLASH_INIT_ERROR_MASK)\r
/*! @} */\r
\r
/*! @name FREQ_ME_CTRL - Frequency Measure function control register */\r
/*! @{ */\r
-#define ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE_MASK (0x7FFFFFFFU)\r
-#define ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE_SHIFT (0U)\r
-#define ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE_SHIFT)) & ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE_MASK)\r
-#define ANACTRL_FREQ_ME_CTRL_PROG_MASK (0x80000000U)\r
-#define ANACTRL_FREQ_ME_CTRL_PROG_SHIFT (31U)\r
-#define ANACTRL_FREQ_ME_CTRL_PROG(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FREQ_ME_CTRL_PROG_SHIFT)) & ANACTRL_FREQ_ME_CTRL_PROG_MASK)\r
+#define ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE_MASK (0x7FFFFFFFU)\r
+#define ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE_SHIFT (0U)\r
+/*! CAPVAL_SCALE - Frequency measure result /Frequency measur scale\r
+ */\r
+#define ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE_SHIFT)) & ANACTRL_FREQ_ME_CTRL_CAPVAL_SCALE_MASK)\r
+#define ANACTRL_FREQ_ME_CTRL_PROG_MASK (0x80000000U)\r
+#define ANACTRL_FREQ_ME_CTRL_PROG_SHIFT (31U)\r
+/*! PROG - Set this bit to one to initiate a frequency measurement cycle. Hardware clears this bit\r
+ * when the measurement cycle has completed and there is valid capture data in the CAPVAL field\r
+ * (bits 30:0).\r
+ */\r
+#define ANACTRL_FREQ_ME_CTRL_PROG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FREQ_ME_CTRL_PROG_SHIFT)) & ANACTRL_FREQ_ME_CTRL_PROG_MASK)\r
/*! @} */\r
\r
/*! @name FRO192M_CTRL - 192MHz Free Running OScillator (FRO) Control register */\r
/*! @{ */\r
-#define ANACTRL_FRO192M_CTRL_BIAS_TRIM_MASK (0x3FU)\r
-#define ANACTRL_FRO192M_CTRL_BIAS_TRIM_SHIFT (0U)\r
-#define ANACTRL_FRO192M_CTRL_BIAS_TRIM(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_BIAS_TRIM_SHIFT)) & ANACTRL_FRO192M_CTRL_BIAS_TRIM_MASK)\r
-#define ANACTRL_FRO192M_CTRL_TEMP_TRIM_MASK (0x3F80U)\r
-#define ANACTRL_FRO192M_CTRL_TEMP_TRIM_SHIFT (7U)\r
-#define ANACTRL_FRO192M_CTRL_TEMP_TRIM(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_TEMP_TRIM_SHIFT)) & ANACTRL_FRO192M_CTRL_TEMP_TRIM_MASK)\r
-#define ANACTRL_FRO192M_CTRL_ENA_12MHZCLK_MASK (0x4000U)\r
-#define ANACTRL_FRO192M_CTRL_ENA_12MHZCLK_SHIFT (14U)\r
+#define ANACTRL_FRO192M_CTRL_ENA_12MHZCLK_MASK (0x4000U)\r
+#define ANACTRL_FRO192M_CTRL_ENA_12MHZCLK_SHIFT (14U)\r
/*! ENA_12MHZCLK - 12 MHz clock control.\r
* 0b0..12 MHz clock is disabled.\r
* 0b1..12 MHz clock is enabled.\r
*/\r
-#define ANACTRL_FRO192M_CTRL_ENA_12MHZCLK(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_ENA_12MHZCLK_SHIFT)) & ANACTRL_FRO192M_CTRL_ENA_12MHZCLK_MASK)\r
-#define ANACTRL_FRO192M_CTRL_ENA_48MHZCLK_MASK (0x8000U)\r
-#define ANACTRL_FRO192M_CTRL_ENA_48MHZCLK_SHIFT (15U)\r
+#define ANACTRL_FRO192M_CTRL_ENA_12MHZCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_ENA_12MHZCLK_SHIFT)) & ANACTRL_FRO192M_CTRL_ENA_12MHZCLK_MASK)\r
+#define ANACTRL_FRO192M_CTRL_ENA_48MHZCLK_MASK (0x8000U)\r
+#define ANACTRL_FRO192M_CTRL_ENA_48MHZCLK_SHIFT (15U)\r
/*! ENA_48MHZCLK - 48 MHz clock control.\r
- * 0b0..48 MHz clock is disabled.\r
+ * 0b0..Reserved.\r
* 0b1..48 MHz clock is enabled.\r
*/\r
-#define ANACTRL_FRO192M_CTRL_ENA_48MHZCLK(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_ENA_48MHZCLK_SHIFT)) & ANACTRL_FRO192M_CTRL_ENA_48MHZCLK_MASK)\r
-#define ANACTRL_FRO192M_CTRL_DAC_TRIM_MASK (0xFF0000U)\r
-#define ANACTRL_FRO192M_CTRL_DAC_TRIM_SHIFT (16U)\r
-#define ANACTRL_FRO192M_CTRL_DAC_TRIM(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_DAC_TRIM_SHIFT)) & ANACTRL_FRO192M_CTRL_DAC_TRIM_MASK)\r
-#define ANACTRL_FRO192M_CTRL_USBCLKADJ_MASK (0x1000000U)\r
-#define ANACTRL_FRO192M_CTRL_USBCLKADJ_SHIFT (24U)\r
-#define ANACTRL_FRO192M_CTRL_USBCLKADJ(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_USBCLKADJ_SHIFT)) & ANACTRL_FRO192M_CTRL_USBCLKADJ_MASK)\r
-#define ANACTRL_FRO192M_CTRL_USBMODCHG_MASK (0x2000000U)\r
-#define ANACTRL_FRO192M_CTRL_USBMODCHG_SHIFT (25U)\r
-#define ANACTRL_FRO192M_CTRL_USBMODCHG(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_USBMODCHG_SHIFT)) & ANACTRL_FRO192M_CTRL_USBMODCHG_MASK)\r
-#define ANACTRL_FRO192M_CTRL_ATB_CTRL_MASK (0x30000000U)\r
-#define ANACTRL_FRO192M_CTRL_ATB_CTRL_SHIFT (28U)\r
-#define ANACTRL_FRO192M_CTRL_ATB_CTRL(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_ATB_CTRL_SHIFT)) & ANACTRL_FRO192M_CTRL_ATB_CTRL_MASK)\r
-#define ANACTRL_FRO192M_CTRL_ENA_96MHZCLK_MASK (0x40000000U)\r
-#define ANACTRL_FRO192M_CTRL_ENA_96MHZCLK_SHIFT (30U)\r
+#define ANACTRL_FRO192M_CTRL_ENA_48MHZCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_ENA_48MHZCLK_SHIFT)) & ANACTRL_FRO192M_CTRL_ENA_48MHZCLK_MASK)\r
+#define ANACTRL_FRO192M_CTRL_DAC_TRIM_MASK (0xFF0000U)\r
+#define ANACTRL_FRO192M_CTRL_DAC_TRIM_SHIFT (16U)\r
+/*! DAC_TRIM - Frequency trim.\r
+ */\r
+#define ANACTRL_FRO192M_CTRL_DAC_TRIM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_DAC_TRIM_SHIFT)) & ANACTRL_FRO192M_CTRL_DAC_TRIM_MASK)\r
+#define ANACTRL_FRO192M_CTRL_USBCLKADJ_MASK (0x1000000U)\r
+#define ANACTRL_FRO192M_CTRL_USBCLKADJ_SHIFT (24U)\r
+/*! USBCLKADJ - If this bit is set and the USB peripheral is enabled into full speed device mode,\r
+ * the USB block will provide FRO clock adjustments to lock it to the host clock using the SOF\r
+ * packets.\r
+ */\r
+#define ANACTRL_FRO192M_CTRL_USBCLKADJ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_USBCLKADJ_SHIFT)) & ANACTRL_FRO192M_CTRL_USBCLKADJ_MASK)\r
+#define ANACTRL_FRO192M_CTRL_USBMODCHG_MASK (0x2000000U)\r
+#define ANACTRL_FRO192M_CTRL_USBMODCHG_SHIFT (25U)\r
+/*! USBMODCHG - If it reads as 1 when reading the DAC_TRIM field and USBCLKADJ=1, it should be re-read until it is 0.\r
+ */\r
+#define ANACTRL_FRO192M_CTRL_USBMODCHG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_USBMODCHG_SHIFT)) & ANACTRL_FRO192M_CTRL_USBMODCHG_MASK)\r
+#define ANACTRL_FRO192M_CTRL_ENA_96MHZCLK_MASK (0x40000000U)\r
+#define ANACTRL_FRO192M_CTRL_ENA_96MHZCLK_SHIFT (30U)\r
/*! ENA_96MHZCLK - 96 MHz clock control.\r
* 0b0..96 MHz clock is disabled.\r
* 0b1..96 MHz clock is enabled.\r
*/\r
-#define ANACTRL_FRO192M_CTRL_ENA_96MHZCLK(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_ENA_96MHZCLK_SHIFT)) & ANACTRL_FRO192M_CTRL_ENA_96MHZCLK_MASK)\r
-#define ANACTRL_FRO192M_CTRL_WRTRIM_MASK (0x80000000U)\r
-#define ANACTRL_FRO192M_CTRL_WRTRIM_SHIFT (31U)\r
-#define ANACTRL_FRO192M_CTRL_WRTRIM(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_WRTRIM_SHIFT)) & ANACTRL_FRO192M_CTRL_WRTRIM_MASK)\r
+#define ANACTRL_FRO192M_CTRL_ENA_96MHZCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_CTRL_ENA_96MHZCLK_SHIFT)) & ANACTRL_FRO192M_CTRL_ENA_96MHZCLK_MASK)\r
/*! @} */\r
\r
/*! @name FRO192M_STATUS - 192MHz Free Running OScillator (FRO) Status register */\r
/*! @{ */\r
-#define ANACTRL_FRO192M_STATUS_CLK_VALID_MASK (0x1U)\r
-#define ANACTRL_FRO192M_STATUS_CLK_VALID_SHIFT (0U)\r
+#define ANACTRL_FRO192M_STATUS_CLK_VALID_MASK (0x1U)\r
+#define ANACTRL_FRO192M_STATUS_CLK_VALID_SHIFT (0U)\r
/*! CLK_VALID - Output clock valid signal. Indicates that CCO clock has settled.\r
* 0b0..No output clock present (None of 12 MHz, 48 MHz or 96 MHz clock is available).\r
- * 0b1..Clock is present (12 MHz, 48 MHz or 96 MHz can be output if they are enable respectively by FRO192M_CTRL.ENA_12MHZCLK/ENA_48MHZCLK/ENA_96MHZCLK).\r
- */\r
-#define ANACTRL_FRO192M_STATUS_CLK_VALID(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_STATUS_CLK_VALID_SHIFT)) & ANACTRL_FRO192M_STATUS_CLK_VALID_MASK)\r
-#define ANACTRL_FRO192M_STATUS_ATB_VCTRL_MASK (0x2U)\r
-#define ANACTRL_FRO192M_STATUS_ATB_VCTRL_SHIFT (1U)\r
-#define ANACTRL_FRO192M_STATUS_ATB_VCTRL(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_STATUS_ATB_VCTRL_SHIFT)) & ANACTRL_FRO192M_STATUS_ATB_VCTRL_MASK)\r
-/*! @} */\r
-\r
-/*! @name ADC_CTRL - General Purpose ADC VBAT Divider branch control */\r
-/*! @{ */\r
-#define ANACTRL_ADC_CTRL_VBATDIVENABLE_MASK (0x1U)\r
-#define ANACTRL_ADC_CTRL_VBATDIVENABLE_SHIFT (0U)\r
-/*! VBATDIVENABLE - Switch On/Off VBAT divider branch.\r
- * 0b0..VBAT divider branch is disabled.\r
- * 0b1..VBAT divider branch is enabled.\r
- */\r
-#define ANACTRL_ADC_CTRL_VBATDIVENABLE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_ADC_CTRL_VBATDIVENABLE_SHIFT)) & ANACTRL_ADC_CTRL_VBATDIVENABLE_MASK)\r
-/*! @} */\r
-\r
-/*! @name XO32M_CTRL - 32 MHz Crystal Oscillator Control register */\r
-/*! @{ */\r
-#define ANACTRL_XO32M_CTRL_GM_MASK (0xEU)\r
-#define ANACTRL_XO32M_CTRL_GM_SHIFT (1U)\r
-#define ANACTRL_XO32M_CTRL_GM(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_GM_SHIFT)) & ANACTRL_XO32M_CTRL_GM_MASK)\r
-#define ANACTRL_XO32M_CTRL_SLAVE_MASK (0x10U)\r
-#define ANACTRL_XO32M_CTRL_SLAVE_SHIFT (4U)\r
-#define ANACTRL_XO32M_CTRL_SLAVE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_SLAVE_SHIFT)) & ANACTRL_XO32M_CTRL_SLAVE_MASK)\r
-#define ANACTRL_XO32M_CTRL_AMP_MASK (0xE0U)\r
-#define ANACTRL_XO32M_CTRL_AMP_SHIFT (5U)\r
-#define ANACTRL_XO32M_CTRL_AMP(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_AMP_SHIFT)) & ANACTRL_XO32M_CTRL_AMP_MASK)\r
-#define ANACTRL_XO32M_CTRL_OSC_CAP_IN_MASK (0x7F00U)\r
-#define ANACTRL_XO32M_CTRL_OSC_CAP_IN_SHIFT (8U)\r
-#define ANACTRL_XO32M_CTRL_OSC_CAP_IN(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_OSC_CAP_IN_SHIFT)) & ANACTRL_XO32M_CTRL_OSC_CAP_IN_MASK)\r
-#define ANACTRL_XO32M_CTRL_OSC_CAP_OUT_MASK (0x3F8000U)\r
-#define ANACTRL_XO32M_CTRL_OSC_CAP_OUT_SHIFT (15U)\r
-#define ANACTRL_XO32M_CTRL_OSC_CAP_OUT(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_OSC_CAP_OUT_SHIFT)) & ANACTRL_XO32M_CTRL_OSC_CAP_OUT_MASK)\r
+ * 0b1..Clock is present (12 MHz, 48 MHz or 96 MHz can be output if they are enable respectively by\r
+ * FRO192M_CTRL.ENA_12MHZCLK/ENA_48MHZCLK/ENA_96MHZCLK).\r
+ */\r
+#define ANACTRL_FRO192M_STATUS_CLK_VALID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_STATUS_CLK_VALID_SHIFT)) & ANACTRL_FRO192M_STATUS_CLK_VALID_MASK)\r
+#define ANACTRL_FRO192M_STATUS_ATB_VCTRL_MASK (0x2U)\r
+#define ANACTRL_FRO192M_STATUS_ATB_VCTRL_SHIFT (1U)\r
+/*! ATB_VCTRL - CCO threshold voltage detector output (signal vcco_ok). Once the CCO voltage crosses\r
+ * the threshold voltage of a SLVT transistor, this output signal will go high. It is also\r
+ * possible to observe the clk_valid signal.\r
+ */\r
+#define ANACTRL_FRO192M_STATUS_ATB_VCTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_FRO192M_STATUS_ATB_VCTRL_SHIFT)) & ANACTRL_FRO192M_STATUS_ATB_VCTRL_MASK)\r
+/*! @} */\r
+\r
+/*! @name XO32M_CTRL - High speed Crystal Oscillator Control register */\r
+/*! @{ */\r
#define ANACTRL_XO32M_CTRL_ACBUF_PASS_ENABLE_MASK (0x400000U)\r
#define ANACTRL_XO32M_CTRL_ACBUF_PASS_ENABLE_SHIFT (22U)\r
/*! ACBUF_PASS_ENABLE - Bypass enable of XO AC buffer enable in pll and top level.\r
* 0b0..XO AC buffer bypass is disabled.\r
* 0b1..XO AC buffer bypass is enabled.\r
*/\r
-#define ANACTRL_XO32M_CTRL_ACBUF_PASS_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_ACBUF_PASS_ENABLE_SHIFT)) & ANACTRL_XO32M_CTRL_ACBUF_PASS_ENABLE_MASK)\r
+#define ANACTRL_XO32M_CTRL_ACBUF_PASS_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_ACBUF_PASS_ENABLE_SHIFT)) & \\r
+ ANACTRL_XO32M_CTRL_ACBUF_PASS_ENABLE_MASK)\r
#define ANACTRL_XO32M_CTRL_ENABLE_PLL_USB_OUT_MASK (0x800000U)\r
#define ANACTRL_XO32M_CTRL_ENABLE_PLL_USB_OUT_SHIFT (23U)\r
-/*! ENABLE_PLL_USB_OUT - Enable XO 32 MHz output to USB HS PLL.\r
- * 0b0..XO 32 MHz output to USB HS PLL is disabled.\r
- * 0b1..XO 32 MHz output to USB HS PLL is enabled.\r
+/*! ENABLE_PLL_USB_OUT - Enable High speed Crystal oscillator output to USB HS PLL.\r
+ * 0b0..High speed Crystal oscillator output to USB HS PLL is disabled.\r
+ * 0b1..High speed Crystal oscillator output to USB HS PLL is enabled.\r
*/\r
-#define ANACTRL_XO32M_CTRL_ENABLE_PLL_USB_OUT(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_ENABLE_PLL_USB_OUT_SHIFT)) & ANACTRL_XO32M_CTRL_ENABLE_PLL_USB_OUT_MASK)\r
+#define ANACTRL_XO32M_CTRL_ENABLE_PLL_USB_OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_ENABLE_PLL_USB_OUT_SHIFT)) & \\r
+ ANACTRL_XO32M_CTRL_ENABLE_PLL_USB_OUT_MASK)\r
#define ANACTRL_XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_MASK (0x1000000U)\r
#define ANACTRL_XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_SHIFT (24U)\r
/*! ENABLE_SYSTEM_CLK_OUT - Enable XO 32 MHz output to CPU system.\r
- * 0b0..XO 32 MHz output to CPU system is disabled.\r
- * 0b1..XO 32 MHz output to CPU system is enabled.\r
- */\r
-#define ANACTRL_XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_SHIFT)) & ANACTRL_XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_MASK)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTSTARTSRCSEL_MASK (0x2000000U)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTSTARTSRCSEL_SHIFT (25U)\r
-/*! CAPTESTSTARTSRCSEL - Source selection for 'xo32k_captest_start' signal.\r
- * 0b0..Sourced from CAPTESTSTART.\r
- * 0b1..Sourced from calibration.\r
- */\r
-#define ANACTRL_XO32M_CTRL_CAPTESTSTARTSRCSEL(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_CAPTESTSTARTSRCSEL_SHIFT)) & ANACTRL_XO32M_CTRL_CAPTESTSTARTSRCSEL_MASK)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTSTART_MASK (0x4000000U)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTSTART_SHIFT (26U)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTSTART(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_CAPTESTSTART_SHIFT)) & ANACTRL_XO32M_CTRL_CAPTESTSTART_MASK)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTENABLE_MASK (0x8000000U)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTENABLE_SHIFT (27U)\r
-/*! CAPTESTENABLE - Enable signal for captest.\r
- * 0b0..Captest is disabled.\r
- * 0b1..Captest is enabled.\r
- */\r
-#define ANACTRL_XO32M_CTRL_CAPTESTENABLE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_CAPTESTENABLE_SHIFT)) & ANACTRL_XO32M_CTRL_CAPTESTENABLE_MASK)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTOSCINSEL_MASK (0x10000000U)\r
-#define ANACTRL_XO32M_CTRL_CAPTESTOSCINSEL_SHIFT (28U)\r
-/*! CAPTESTOSCINSEL - Select the input for test.\r
- * 0b0..osc_out (oscillator output) pin.\r
- * 0b1..osc_in (oscillator) pin.\r
- */\r
-#define ANACTRL_XO32M_CTRL_CAPTESTOSCINSEL(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_CAPTESTOSCINSEL_SHIFT)) & ANACTRL_XO32M_CTRL_CAPTESTOSCINSEL_MASK)\r
-/*! @} */\r
-\r
-/*! @name XO32M_STATUS - 32 MHz Crystal Oscillator Status register */\r
-/*! @{ */\r
-#define ANACTRL_XO32M_STATUS_XO_READY_MASK (0x1U)\r
-#define ANACTRL_XO32M_STATUS_XO_READY_SHIFT (0U)\r
+ * 0b0..High speed Crystal oscillator output to CPU system is disabled.\r
+ * 0b1..High speed Crystal oscillator output to CPU system is enabled.\r
+ */\r
+#define ANACTRL_XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_SHIFT)) & \\r
+ ANACTRL_XO32M_CTRL_ENABLE_SYSTEM_CLK_OUT_MASK)\r
+/*! @} */\r
+\r
+/*! @name XO32M_STATUS - High speed Crystal Oscillator Status register */\r
+/*! @{ */\r
+#define ANACTRL_XO32M_STATUS_XO_READY_MASK (0x1U)\r
+#define ANACTRL_XO32M_STATUS_XO_READY_SHIFT (0U)\r
/*! XO_READY - Indicates XO out frequency statibilty.\r
* 0b0..XO output frequency is not yet stable.\r
* 0b1..XO output frequency is stable.\r
*/\r
-#define ANACTRL_XO32M_STATUS_XO_READY(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_STATUS_XO_READY_SHIFT)) & ANACTRL_XO32M_STATUS_XO_READY_MASK)\r
+#define ANACTRL_XO32M_STATUS_XO_READY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO32M_STATUS_XO_READY_SHIFT)) & ANACTRL_XO32M_STATUS_XO_READY_MASK)\r
/*! @} */\r
\r
/*! @name BOD_DCDC_INT_CTRL - Brown Out Detectors (BoDs) & DCDC interrupts generation control register */\r
* 0b0..BOD VBAT interrupt is disabled.\r
* 0b1..BOD VBAT interrupt is enabled.\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE_SHIFT)) & ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_ENABLE_MASK)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_CLEAR_MASK (0x2U)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_CLEAR_SHIFT (1U)\r
-#define ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_CLEAR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_CLEAR_SHIFT)) & ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_CLEAR_MASK)\r
+/*! BODVBAT_INT_CLEAR - BOD VBAT interrupt clear.1: Clear the interrupt. Self-cleared bit.\r
+ */\r
+#define ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_CLEAR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_CLEAR_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_CTRL_BODVBAT_INT_CLEAR_MASK)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_MASK (0x4U)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_SHIFT (2U)\r
/*! BODCORE_INT_ENABLE - BOD CORE interrupt control.\r
* 0b0..BOD CORE interrupt is disabled.\r
* 0b1..BOD CORE interrupt is enabled.\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_SHIFT)) & ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_ENABLE_MASK)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_CLEAR_MASK (0x8U)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_CLEAR_SHIFT (3U)\r
-#define ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_CLEAR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_CLEAR_SHIFT)) & ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_CLEAR_MASK)\r
+/*! BODCORE_INT_CLEAR - BOD CORE interrupt clear.1: Clear the interrupt. Self-cleared bit.\r
+ */\r
+#define ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_CLEAR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_CLEAR_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_CTRL_BODCORE_INT_CLEAR_MASK)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_MASK (0x10U)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_SHIFT (4U)\r
/*! DCDC_INT_ENABLE - DCDC interrupt control.\r
* 0b0..DCDC interrupt is disabled.\r
* 0b1..DCDC interrupt is enabled.\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_SHIFT)) & ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_ENABLE_MASK)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_CLEAR_MASK (0x20U)\r
#define ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_CLEAR_SHIFT (5U)\r
-#define ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_CLEAR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_CLEAR_SHIFT)) & ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_CLEAR_MASK)\r
+/*! DCDC_INT_CLEAR - DCDC interrupt clear.1: Clear the interrupt. Self-cleared bit.\r
+ */\r
+#define ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_CLEAR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_CLEAR_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_CTRL_DCDC_INT_CLEAR_MASK)\r
/*! @} */\r
\r
/*! @name BOD_DCDC_INT_STATUS - BoDs & DCDC interrupts status register */\r
* 0b0..No interrupt pending..\r
* 0b1..Interrupt pending..\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_STATUS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_STATUS_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_STATUS_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_STATUS_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_STATUS_MASK)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_MASK (0x2U)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_SHIFT (1U)\r
/*! BODVBAT_INT_STATUS - BOD VBAT Interrupt status after Interrupt Enable.\r
* 0b0..No interrupt pending..\r
* 0b1..Interrupt pending..\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_INT_STATUS_MASK)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_VAL_MASK (0x4U)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_VAL_SHIFT (2U)\r
/*! BODVBAT_VAL - Current value of BOD VBAT power status output.\r
* 0b0..VBAT voltage level is below the threshold.\r
* 0b1..VBAT voltage level is above the threshold.\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_VAL(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_VAL_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_VAL_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_VAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_VAL_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_BODVBAT_VAL_MASK)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_STATUS_MASK (0x8U)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_STATUS_SHIFT (3U)\r
/*! BODCORE_STATUS - BOD CORE Interrupt status before Interrupt Enable.\r
* 0b0..No interrupt pending..\r
* 0b1..Interrupt pending..\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_STATUS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_STATUS_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_STATUS_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_STATUS_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_STATUS_MASK)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_MASK (0x10U)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_SHIFT (4U)\r
/*! BODCORE_INT_STATUS - BOD CORE Interrupt status after Interrupt Enable.\r
* 0b0..No interrupt pending..\r
* 0b1..Interrupt pending..\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_INT_STATUS_MASK)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_VAL_MASK (0x20U)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_VAL_SHIFT (5U)\r
/*! BODCORE_VAL - Current value of BOD CORE power status output.\r
* 0b0..CORE voltage level is below the threshold.\r
* 0b1..CORE voltage level is above the threshold.\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_VAL(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_VAL_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_VAL_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_VAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_VAL_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_BODCORE_VAL_MASK)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_STATUS_MASK (0x40U)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_STATUS_SHIFT (6U)\r
/*! DCDC_STATUS - DCDC Interrupt status before Interrupt Enable.\r
* 0b0..No interrupt pending..\r
* 0b1..Interrupt pending..\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_STATUS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_DCDC_STATUS_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_DCDC_STATUS_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_DCDC_STATUS_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_DCDC_STATUS_MASK)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_MASK (0x80U)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_SHIFT (7U)\r
/*! DCDC_INT_STATUS - DCDC Interrupt status after Interrupt Enable.\r
* 0b0..No interrupt pending..\r
* 0b1..Interrupt pending..\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_INT_STATUS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_INT_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_DCDC_INT_STATUS_MASK)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_VAL_MASK (0x100U)\r
#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_VAL_SHIFT (8U)\r
/*! DCDC_VAL - Current value of DCDC power status output.\r
* 0b0..DCDC output Voltage is below the targeted regulation level.\r
* 0b1..DCDC output Voltage is above the targeted regulation level.\r
*/\r
-#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_VAL(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_DCDC_VAL_SHIFT)) & ANACTRL_BOD_DCDC_INT_STATUS_DCDC_VAL_MASK)\r
+#define ANACTRL_BOD_DCDC_INT_STATUS_DCDC_VAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_BOD_DCDC_INT_STATUS_DCDC_VAL_SHIFT)) & \\r
+ ANACTRL_BOD_DCDC_INT_STATUS_DCDC_VAL_MASK)\r
/*! @} */\r
\r
/*! @name RINGO0_CTRL - First Ring Oscillator module control register. */\r
/*! @{ */\r
-#define ANACTRL_RINGO0_CTRL_SL_MASK (0x1U)\r
-#define ANACTRL_RINGO0_CTRL_SL_SHIFT (0U)\r
+#define ANACTRL_RINGO0_CTRL_SL_MASK (0x1U)\r
+#define ANACTRL_RINGO0_CTRL_SL_SHIFT (0U)\r
/*! SL - Select short or long ringo (for all ringos types).\r
* 0b0..Select short ringo (few elements).\r
* 0b1..Select long ringo (many elements).\r
*/\r
-#define ANACTRL_RINGO0_CTRL_SL(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_SL_SHIFT)) & ANACTRL_RINGO0_CTRL_SL_MASK)\r
-#define ANACTRL_RINGO0_CTRL_FS_MASK (0x2U)\r
-#define ANACTRL_RINGO0_CTRL_FS_SHIFT (1U)\r
+#define ANACTRL_RINGO0_CTRL_SL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_SL_SHIFT)) & ANACTRL_RINGO0_CTRL_SL_MASK)\r
+#define ANACTRL_RINGO0_CTRL_FS_MASK (0x2U)\r
+#define ANACTRL_RINGO0_CTRL_FS_SHIFT (1U)\r
/*! FS - Ringo frequency output divider.\r
* 0b0..High frequency output (frequency lower than 100 MHz).\r
* 0b1..Low frequency output (frequency lower than 10 MHz).\r
*/\r
-#define ANACTRL_RINGO0_CTRL_FS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_FS_SHIFT)) & ANACTRL_RINGO0_CTRL_FS_MASK)\r
-#define ANACTRL_RINGO0_CTRL_SWN_SWP_MASK (0xCU)\r
-#define ANACTRL_RINGO0_CTRL_SWN_SWP_SHIFT (2U)\r
+#define ANACTRL_RINGO0_CTRL_FS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_FS_SHIFT)) & ANACTRL_RINGO0_CTRL_FS_MASK)\r
+#define ANACTRL_RINGO0_CTRL_SWN_SWP_MASK (0xCU)\r
+#define ANACTRL_RINGO0_CTRL_SWN_SWP_SHIFT (2U)\r
/*! SWN_SWP - PN-Ringos (P-Transistor and N-Transistor processing) control.\r
* 0b00..Normal mode.\r
* 0b01..P-Monitor mode. Measure with weak P transistor.\r
* 0b10..P-Monitor mode. Measure with weak N transistor.\r
* 0b11..Don't use.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_SWN_SWP(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_SWN_SWP_SHIFT)) & ANACTRL_RINGO0_CTRL_SWN_SWP_MASK)\r
-#define ANACTRL_RINGO0_CTRL_PD_MASK (0x10U)\r
-#define ANACTRL_RINGO0_CTRL_PD_SHIFT (4U)\r
+#define ANACTRL_RINGO0_CTRL_SWN_SWP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_SWN_SWP_SHIFT)) & ANACTRL_RINGO0_CTRL_SWN_SWP_MASK)\r
+#define ANACTRL_RINGO0_CTRL_PD_MASK (0x10U)\r
+#define ANACTRL_RINGO0_CTRL_PD_SHIFT (4U)\r
/*! PD - Ringo module Power control.\r
* 0b0..The Ringo module is enabled.\r
* 0b1..The Ringo module is disabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_PD(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_PD_SHIFT)) & ANACTRL_RINGO0_CTRL_PD_MASK)\r
-#define ANACTRL_RINGO0_CTRL_E_ND0_MASK (0x20U)\r
-#define ANACTRL_RINGO0_CTRL_E_ND0_SHIFT (5U)\r
+#define ANACTRL_RINGO0_CTRL_PD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_PD_SHIFT)) & ANACTRL_RINGO0_CTRL_PD_MASK)\r
+#define ANACTRL_RINGO0_CTRL_E_ND0_MASK (0x20U)\r
+#define ANACTRL_RINGO0_CTRL_E_ND0_SHIFT (5U)\r
/*! E_ND0 - First NAND2-based ringo control.\r
* 0b0..First NAND2-based ringo is disabled.\r
* 0b1..First NAND2-based ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_E_ND0(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_ND0_SHIFT)) & ANACTRL_RINGO0_CTRL_E_ND0_MASK)\r
-#define ANACTRL_RINGO0_CTRL_E_ND1_MASK (0x40U)\r
-#define ANACTRL_RINGO0_CTRL_E_ND1_SHIFT (6U)\r
+#define ANACTRL_RINGO0_CTRL_E_ND0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_ND0_SHIFT)) & ANACTRL_RINGO0_CTRL_E_ND0_MASK)\r
+#define ANACTRL_RINGO0_CTRL_E_ND1_MASK (0x40U)\r
+#define ANACTRL_RINGO0_CTRL_E_ND1_SHIFT (6U)\r
/*! E_ND1 - Second NAND2-based ringo control.\r
* 0b0..Second NAND2-based ringo is disabled.\r
* 0b1..Second NAND2-based ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_E_ND1(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_ND1_SHIFT)) & ANACTRL_RINGO0_CTRL_E_ND1_MASK)\r
-#define ANACTRL_RINGO0_CTRL_E_NR0_MASK (0x80U)\r
-#define ANACTRL_RINGO0_CTRL_E_NR0_SHIFT (7U)\r
+#define ANACTRL_RINGO0_CTRL_E_ND1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_ND1_SHIFT)) & ANACTRL_RINGO0_CTRL_E_ND1_MASK)\r
+#define ANACTRL_RINGO0_CTRL_E_NR0_MASK (0x80U)\r
+#define ANACTRL_RINGO0_CTRL_E_NR0_SHIFT (7U)\r
/*! E_NR0 - First NOR2-based ringo control.\r
* 0b0..First NOR2-based ringo is disabled.\r
* 0b1..First NOR2-based ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_E_NR0(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_NR0_SHIFT)) & ANACTRL_RINGO0_CTRL_E_NR0_MASK)\r
-#define ANACTRL_RINGO0_CTRL_E_NR1_MASK (0x100U)\r
-#define ANACTRL_RINGO0_CTRL_E_NR1_SHIFT (8U)\r
+#define ANACTRL_RINGO0_CTRL_E_NR0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_NR0_SHIFT)) & ANACTRL_RINGO0_CTRL_E_NR0_MASK)\r
+#define ANACTRL_RINGO0_CTRL_E_NR1_MASK (0x100U)\r
+#define ANACTRL_RINGO0_CTRL_E_NR1_SHIFT (8U)\r
/*! E_NR1 - Second NOR2-based ringo control.\r
* 0b0..Second NORD2-based ringo is disabled.\r
* 0b1..Second NORD2-based ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_E_NR1(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_NR1_SHIFT)) & ANACTRL_RINGO0_CTRL_E_NR1_MASK)\r
-#define ANACTRL_RINGO0_CTRL_E_IV0_MASK (0x200U)\r
-#define ANACTRL_RINGO0_CTRL_E_IV0_SHIFT (9U)\r
+#define ANACTRL_RINGO0_CTRL_E_NR1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_NR1_SHIFT)) & ANACTRL_RINGO0_CTRL_E_NR1_MASK)\r
+#define ANACTRL_RINGO0_CTRL_E_IV0_MASK (0x200U)\r
+#define ANACTRL_RINGO0_CTRL_E_IV0_SHIFT (9U)\r
/*! E_IV0 - First Inverter-based ringo control.\r
* 0b0..First INV-based ringo is disabled.\r
* 0b1..First INV-based ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_E_IV0(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_IV0_SHIFT)) & ANACTRL_RINGO0_CTRL_E_IV0_MASK)\r
-#define ANACTRL_RINGO0_CTRL_E_IV1_MASK (0x400U)\r
-#define ANACTRL_RINGO0_CTRL_E_IV1_SHIFT (10U)\r
+#define ANACTRL_RINGO0_CTRL_E_IV0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_IV0_SHIFT)) & ANACTRL_RINGO0_CTRL_E_IV0_MASK)\r
+#define ANACTRL_RINGO0_CTRL_E_IV1_MASK (0x400U)\r
+#define ANACTRL_RINGO0_CTRL_E_IV1_SHIFT (10U)\r
/*! E_IV1 - Second Inverter-based ringo control.\r
* 0b0..Second INV-based ringo is disabled.\r
* 0b1..Second INV-based ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_E_IV1(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_IV1_SHIFT)) & ANACTRL_RINGO0_CTRL_E_IV1_MASK)\r
-#define ANACTRL_RINGO0_CTRL_E_PN0_MASK (0x800U)\r
-#define ANACTRL_RINGO0_CTRL_E_PN0_SHIFT (11U)\r
+#define ANACTRL_RINGO0_CTRL_E_IV1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_IV1_SHIFT)) & ANACTRL_RINGO0_CTRL_E_IV1_MASK)\r
+#define ANACTRL_RINGO0_CTRL_E_PN0_MASK (0x800U)\r
+#define ANACTRL_RINGO0_CTRL_E_PN0_SHIFT (11U)\r
/*! E_PN0 - First PN (P-Transistor and N-Transistor processing) monitor control.\r
* 0b0..First PN-based ringo is disabled.\r
* 0b1..First PN-based ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_E_PN0(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_PN0_SHIFT)) & ANACTRL_RINGO0_CTRL_E_PN0_MASK)\r
-#define ANACTRL_RINGO0_CTRL_E_PN1_MASK (0x1000U)\r
-#define ANACTRL_RINGO0_CTRL_E_PN1_SHIFT (12U)\r
+#define ANACTRL_RINGO0_CTRL_E_PN0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_PN0_SHIFT)) & ANACTRL_RINGO0_CTRL_E_PN0_MASK)\r
+#define ANACTRL_RINGO0_CTRL_E_PN1_MASK (0x1000U)\r
+#define ANACTRL_RINGO0_CTRL_E_PN1_SHIFT (12U)\r
/*! E_PN1 - Second PN (P-Transistor and N-Transistor processing) monitor control.\r
* 0b0..Second PN-based ringo is disabled.\r
* 0b1..Second PN-based ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO0_CTRL_E_PN1(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_PN1_SHIFT)) & ANACTRL_RINGO0_CTRL_E_PN1_MASK)\r
-#define ANACTRL_RINGO0_CTRL_DIVISOR_MASK (0xF0000U)\r
-#define ANACTRL_RINGO0_CTRL_DIVISOR_SHIFT (16U)\r
-#define ANACTRL_RINGO0_CTRL_DIVISOR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_DIVISOR_SHIFT)) & ANACTRL_RINGO0_CTRL_DIVISOR_MASK)\r
-#define ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ_MASK (0x80000000U)\r
+#define ANACTRL_RINGO0_CTRL_E_PN1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_E_PN1_SHIFT)) & ANACTRL_RINGO0_CTRL_E_PN1_MASK)\r
+#define ANACTRL_RINGO0_CTRL_DIVISOR_MASK (0xF0000U)\r
+#define ANACTRL_RINGO0_CTRL_DIVISOR_SHIFT (16U)\r
+/*! DIVISOR - Ringo out Clock divider value. Frequency Output = Frequency input / (DIViSOR+1). (minimum = Frequency\r
+ * input / 16)\r
+ */\r
+#define ANACTRL_RINGO0_CTRL_DIVISOR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_DIVISOR_SHIFT)) & ANACTRL_RINGO0_CTRL_DIVISOR_MASK)\r
+#define ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ_MASK (0x80000000U)\r
#define ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ_SHIFT (31U)\r
-#define ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ_SHIFT)) & ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ_MASK)\r
+/*! DIV_UPDATE_REQ - Ringo clock out Divider status flag. Set when a change is made to the divider\r
+ * value, cleared when the change is complete.\r
+ */\r
+#define ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ_SHIFT)) & \\r
+ ANACTRL_RINGO0_CTRL_DIV_UPDATE_REQ_MASK)\r
/*! @} */\r
\r
/*! @name RINGO1_CTRL - Second Ring Oscillator module control register. */\r
/*! @{ */\r
-#define ANACTRL_RINGO1_CTRL_S_MASK (0x1U)\r
-#define ANACTRL_RINGO1_CTRL_S_SHIFT (0U)\r
+#define ANACTRL_RINGO1_CTRL_S_MASK (0x1U)\r
+#define ANACTRL_RINGO1_CTRL_S_SHIFT (0U)\r
/*! S - Select short or long ringo (for all ringos types).\r
* 0b0..Select short ringo (few elements).\r
* 0b1..Select long ringo (many elements).\r
*/\r
-#define ANACTRL_RINGO1_CTRL_S(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_S_SHIFT)) & ANACTRL_RINGO1_CTRL_S_MASK)\r
-#define ANACTRL_RINGO1_CTRL_FS_MASK (0x2U)\r
-#define ANACTRL_RINGO1_CTRL_FS_SHIFT (1U)\r
+#define ANACTRL_RINGO1_CTRL_S(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_S_SHIFT)) & ANACTRL_RINGO1_CTRL_S_MASK)\r
+#define ANACTRL_RINGO1_CTRL_FS_MASK (0x2U)\r
+#define ANACTRL_RINGO1_CTRL_FS_SHIFT (1U)\r
/*! FS - Ringo frequency output divider.\r
* 0b0..High frequency output (frequency lower than 100 MHz).\r
* 0b1..Low frequency output (frequency lower than 10 MHz).\r
*/\r
-#define ANACTRL_RINGO1_CTRL_FS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_FS_SHIFT)) & ANACTRL_RINGO1_CTRL_FS_MASK)\r
-#define ANACTRL_RINGO1_CTRL_PD_MASK (0x4U)\r
-#define ANACTRL_RINGO1_CTRL_PD_SHIFT (2U)\r
+#define ANACTRL_RINGO1_CTRL_FS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_FS_SHIFT)) & ANACTRL_RINGO1_CTRL_FS_MASK)\r
+#define ANACTRL_RINGO1_CTRL_PD_MASK (0x4U)\r
+#define ANACTRL_RINGO1_CTRL_PD_SHIFT (2U)\r
/*! PD - Ringo module Power control.\r
* 0b0..The Ringo module is enabled.\r
* 0b1..The Ringo module is disabled.\r
*/\r
-#define ANACTRL_RINGO1_CTRL_PD(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_PD_SHIFT)) & ANACTRL_RINGO1_CTRL_PD_MASK)\r
-#define ANACTRL_RINGO1_CTRL_E_R24_MASK (0x8U)\r
-#define ANACTRL_RINGO1_CTRL_E_R24_SHIFT (3U)\r
+#define ANACTRL_RINGO1_CTRL_PD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_PD_SHIFT)) & ANACTRL_RINGO1_CTRL_PD_MASK)\r
+#define ANACTRL_RINGO1_CTRL_E_R24_MASK (0x8U)\r
+#define ANACTRL_RINGO1_CTRL_E_R24_SHIFT (3U)\r
/*! E_R24 - .\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO1_CTRL_E_R24(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_R24_SHIFT)) & ANACTRL_RINGO1_CTRL_E_R24_MASK)\r
-#define ANACTRL_RINGO1_CTRL_E_R35_MASK (0x10U)\r
-#define ANACTRL_RINGO1_CTRL_E_R35_SHIFT (4U)\r
+#define ANACTRL_RINGO1_CTRL_E_R24(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_R24_SHIFT)) & ANACTRL_RINGO1_CTRL_E_R24_MASK)\r
+#define ANACTRL_RINGO1_CTRL_E_R35_MASK (0x10U)\r
+#define ANACTRL_RINGO1_CTRL_E_R35_SHIFT (4U)\r
/*! E_R35 - .\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO1_CTRL_E_R35(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_R35_SHIFT)) & ANACTRL_RINGO1_CTRL_E_R35_MASK)\r
-#define ANACTRL_RINGO1_CTRL_E_M2_MASK (0x20U)\r
-#define ANACTRL_RINGO1_CTRL_E_M2_SHIFT (5U)\r
+#define ANACTRL_RINGO1_CTRL_E_R35(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_R35_SHIFT)) & ANACTRL_RINGO1_CTRL_E_R35_MASK)\r
+#define ANACTRL_RINGO1_CTRL_E_M2_MASK (0x20U)\r
+#define ANACTRL_RINGO1_CTRL_E_M2_SHIFT (5U)\r
/*! E_M2 - Metal 2 (M2) monitor control.\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO1_CTRL_E_M2(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_M2_SHIFT)) & ANACTRL_RINGO1_CTRL_E_M2_MASK)\r
-#define ANACTRL_RINGO1_CTRL_E_M3_MASK (0x40U)\r
-#define ANACTRL_RINGO1_CTRL_E_M3_SHIFT (6U)\r
+#define ANACTRL_RINGO1_CTRL_E_M2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_M2_SHIFT)) & ANACTRL_RINGO1_CTRL_E_M2_MASK)\r
+#define ANACTRL_RINGO1_CTRL_E_M3_MASK (0x40U)\r
+#define ANACTRL_RINGO1_CTRL_E_M3_SHIFT (6U)\r
/*! E_M3 - Metal 3 (M3) monitor control.\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO1_CTRL_E_M3(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_M3_SHIFT)) & ANACTRL_RINGO1_CTRL_E_M3_MASK)\r
-#define ANACTRL_RINGO1_CTRL_E_M4_MASK (0x80U)\r
-#define ANACTRL_RINGO1_CTRL_E_M4_SHIFT (7U)\r
+#define ANACTRL_RINGO1_CTRL_E_M3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_M3_SHIFT)) & ANACTRL_RINGO1_CTRL_E_M3_MASK)\r
+#define ANACTRL_RINGO1_CTRL_E_M4_MASK (0x80U)\r
+#define ANACTRL_RINGO1_CTRL_E_M4_SHIFT (7U)\r
/*! E_M4 - Metal 4 (M4) monitor control.\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO1_CTRL_E_M4(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_M4_SHIFT)) & ANACTRL_RINGO1_CTRL_E_M4_MASK)\r
-#define ANACTRL_RINGO1_CTRL_E_M5_MASK (0x100U)\r
-#define ANACTRL_RINGO1_CTRL_E_M5_SHIFT (8U)\r
+#define ANACTRL_RINGO1_CTRL_E_M4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_M4_SHIFT)) & ANACTRL_RINGO1_CTRL_E_M4_MASK)\r
+#define ANACTRL_RINGO1_CTRL_E_M5_MASK (0x100U)\r
+#define ANACTRL_RINGO1_CTRL_E_M5_SHIFT (8U)\r
/*! E_M5 - Metal 5 (M5) monitor control.\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO1_CTRL_E_M5(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_M5_SHIFT)) & ANACTRL_RINGO1_CTRL_E_M5_MASK)\r
-#define ANACTRL_RINGO1_CTRL_DIVISOR_MASK (0xF0000U)\r
-#define ANACTRL_RINGO1_CTRL_DIVISOR_SHIFT (16U)\r
-#define ANACTRL_RINGO1_CTRL_DIVISOR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_DIVISOR_SHIFT)) & ANACTRL_RINGO1_CTRL_DIVISOR_MASK)\r
-#define ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ_MASK (0x80000000U)\r
+#define ANACTRL_RINGO1_CTRL_E_M5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_E_M5_SHIFT)) & ANACTRL_RINGO1_CTRL_E_M5_MASK)\r
+#define ANACTRL_RINGO1_CTRL_DIVISOR_MASK (0xF0000U)\r
+#define ANACTRL_RINGO1_CTRL_DIVISOR_SHIFT (16U)\r
+/*! DIVISOR - Ringo out Clock divider value. Frequency Output = Frequency input / (DIViSOR+1). (minimum = Frequency\r
+ * input / 16)\r
+ */\r
+#define ANACTRL_RINGO1_CTRL_DIVISOR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_DIVISOR_SHIFT)) & ANACTRL_RINGO1_CTRL_DIVISOR_MASK)\r
+#define ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ_MASK (0x80000000U)\r
#define ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ_SHIFT (31U)\r
-#define ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ_SHIFT)) & ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ_MASK)\r
+/*! DIV_UPDATE_REQ - Ringo clock out Divider status flag. Set when a change is made to the divider\r
+ * value, cleared when the change is complete.\r
+ */\r
+#define ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ_SHIFT)) & \\r
+ ANACTRL_RINGO1_CTRL_DIV_UPDATE_REQ_MASK)\r
/*! @} */\r
\r
/*! @name RINGO2_CTRL - Third Ring Oscillator module control register. */\r
/*! @{ */\r
-#define ANACTRL_RINGO2_CTRL_S_MASK (0x1U)\r
-#define ANACTRL_RINGO2_CTRL_S_SHIFT (0U)\r
+#define ANACTRL_RINGO2_CTRL_S_MASK (0x1U)\r
+#define ANACTRL_RINGO2_CTRL_S_SHIFT (0U)\r
/*! S - Select short or long ringo (for all ringos types).\r
* 0b0..Select short ringo (few elements).\r
* 0b1..Select long ringo (many elements).\r
*/\r
-#define ANACTRL_RINGO2_CTRL_S(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_S_SHIFT)) & ANACTRL_RINGO2_CTRL_S_MASK)\r
-#define ANACTRL_RINGO2_CTRL_FS_MASK (0x2U)\r
-#define ANACTRL_RINGO2_CTRL_FS_SHIFT (1U)\r
+#define ANACTRL_RINGO2_CTRL_S(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_S_SHIFT)) & ANACTRL_RINGO2_CTRL_S_MASK)\r
+#define ANACTRL_RINGO2_CTRL_FS_MASK (0x2U)\r
+#define ANACTRL_RINGO2_CTRL_FS_SHIFT (1U)\r
/*! FS - Ringo frequency output divider.\r
* 0b0..High frequency output (frequency lower than 100 MHz).\r
* 0b1..Low frequency output (frequency lower than 10 MHz).\r
*/\r
-#define ANACTRL_RINGO2_CTRL_FS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_FS_SHIFT)) & ANACTRL_RINGO2_CTRL_FS_MASK)\r
-#define ANACTRL_RINGO2_CTRL_PD_MASK (0x4U)\r
-#define ANACTRL_RINGO2_CTRL_PD_SHIFT (2U)\r
+#define ANACTRL_RINGO2_CTRL_FS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_FS_SHIFT)) & ANACTRL_RINGO2_CTRL_FS_MASK)\r
+#define ANACTRL_RINGO2_CTRL_PD_MASK (0x4U)\r
+#define ANACTRL_RINGO2_CTRL_PD_SHIFT (2U)\r
/*! PD - Ringo module Power control.\r
* 0b0..The Ringo module is enabled.\r
* 0b1..The Ringo module is disabled.\r
*/\r
-#define ANACTRL_RINGO2_CTRL_PD(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_PD_SHIFT)) & ANACTRL_RINGO2_CTRL_PD_MASK)\r
-#define ANACTRL_RINGO2_CTRL_E_R24_MASK (0x8U)\r
-#define ANACTRL_RINGO2_CTRL_E_R24_SHIFT (3U)\r
+#define ANACTRL_RINGO2_CTRL_PD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_PD_SHIFT)) & ANACTRL_RINGO2_CTRL_PD_MASK)\r
+#define ANACTRL_RINGO2_CTRL_E_R24_MASK (0x8U)\r
+#define ANACTRL_RINGO2_CTRL_E_R24_SHIFT (3U)\r
/*! E_R24 - .\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO2_CTRL_E_R24(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_R24_SHIFT)) & ANACTRL_RINGO2_CTRL_E_R24_MASK)\r
-#define ANACTRL_RINGO2_CTRL_E_R35_MASK (0x10U)\r
-#define ANACTRL_RINGO2_CTRL_E_R35_SHIFT (4U)\r
+#define ANACTRL_RINGO2_CTRL_E_R24(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_R24_SHIFT)) & ANACTRL_RINGO2_CTRL_E_R24_MASK)\r
+#define ANACTRL_RINGO2_CTRL_E_R35_MASK (0x10U)\r
+#define ANACTRL_RINGO2_CTRL_E_R35_SHIFT (4U)\r
/*! E_R35 - .\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO2_CTRL_E_R35(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_R35_SHIFT)) & ANACTRL_RINGO2_CTRL_E_R35_MASK)\r
-#define ANACTRL_RINGO2_CTRL_E_M2_MASK (0x20U)\r
-#define ANACTRL_RINGO2_CTRL_E_M2_SHIFT (5U)\r
+#define ANACTRL_RINGO2_CTRL_E_R35(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_R35_SHIFT)) & ANACTRL_RINGO2_CTRL_E_R35_MASK)\r
+#define ANACTRL_RINGO2_CTRL_E_M2_MASK (0x20U)\r
+#define ANACTRL_RINGO2_CTRL_E_M2_SHIFT (5U)\r
/*! E_M2 - Metal 2 (M2) monitor control.\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO2_CTRL_E_M2(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_M2_SHIFT)) & ANACTRL_RINGO2_CTRL_E_M2_MASK)\r
-#define ANACTRL_RINGO2_CTRL_E_M3_MASK (0x40U)\r
-#define ANACTRL_RINGO2_CTRL_E_M3_SHIFT (6U)\r
+#define ANACTRL_RINGO2_CTRL_E_M2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_M2_SHIFT)) & ANACTRL_RINGO2_CTRL_E_M2_MASK)\r
+#define ANACTRL_RINGO2_CTRL_E_M3_MASK (0x40U)\r
+#define ANACTRL_RINGO2_CTRL_E_M3_SHIFT (6U)\r
/*! E_M3 - Metal 3 (M3) monitor control.\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO2_CTRL_E_M3(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_M3_SHIFT)) & ANACTRL_RINGO2_CTRL_E_M3_MASK)\r
-#define ANACTRL_RINGO2_CTRL_E_M4_MASK (0x80U)\r
-#define ANACTRL_RINGO2_CTRL_E_M4_SHIFT (7U)\r
+#define ANACTRL_RINGO2_CTRL_E_M3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_M3_SHIFT)) & ANACTRL_RINGO2_CTRL_E_M3_MASK)\r
+#define ANACTRL_RINGO2_CTRL_E_M4_MASK (0x80U)\r
+#define ANACTRL_RINGO2_CTRL_E_M4_SHIFT (7U)\r
/*! E_M4 - Metal 4 (M4) monitor control.\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO2_CTRL_E_M4(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_M4_SHIFT)) & ANACTRL_RINGO2_CTRL_E_M4_MASK)\r
-#define ANACTRL_RINGO2_CTRL_E_M5_MASK (0x100U)\r
-#define ANACTRL_RINGO2_CTRL_E_M5_SHIFT (8U)\r
+#define ANACTRL_RINGO2_CTRL_E_M4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_M4_SHIFT)) & ANACTRL_RINGO2_CTRL_E_M4_MASK)\r
+#define ANACTRL_RINGO2_CTRL_E_M5_MASK (0x100U)\r
+#define ANACTRL_RINGO2_CTRL_E_M5_SHIFT (8U)\r
/*! E_M5 - Metal 5 (M5) monitor control.\r
* 0b0..Ringo is disabled.\r
* 0b1..Ringo is enabled.\r
*/\r
-#define ANACTRL_RINGO2_CTRL_E_M5(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_M5_SHIFT)) & ANACTRL_RINGO2_CTRL_E_M5_MASK)\r
-#define ANACTRL_RINGO2_CTRL_DIVISOR_MASK (0xF0000U)\r
-#define ANACTRL_RINGO2_CTRL_DIVISOR_SHIFT (16U)\r
-#define ANACTRL_RINGO2_CTRL_DIVISOR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_DIVISOR_SHIFT)) & ANACTRL_RINGO2_CTRL_DIVISOR_MASK)\r
-#define ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ_MASK (0x80000000U)\r
+#define ANACTRL_RINGO2_CTRL_E_M5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_E_M5_SHIFT)) & ANACTRL_RINGO2_CTRL_E_M5_MASK)\r
+#define ANACTRL_RINGO2_CTRL_DIVISOR_MASK (0xF0000U)\r
+#define ANACTRL_RINGO2_CTRL_DIVISOR_SHIFT (16U)\r
+/*! DIVISOR - Ringo out Clock divider value. Frequency Output = Frequency input / (DIViSOR+1). (minimum = Frequency\r
+ * input / 16)\r
+ */\r
+#define ANACTRL_RINGO2_CTRL_DIVISOR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_DIVISOR_SHIFT)) & ANACTRL_RINGO2_CTRL_DIVISOR_MASK)\r
+#define ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ_MASK (0x80000000U)\r
#define ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ_SHIFT (31U)\r
-#define ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ_SHIFT)) & ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ_MASK)\r
-/*! @} */\r
-\r
-/*! @name LDO_XO32M - High Speed Crystal Oscillator (12 MHz - 32 MHz) Voltage Source Supply Control register */\r
-/*! @{ */\r
-#define ANACTRL_LDO_XO32M_BYPASS_MASK (0x2U)\r
-#define ANACTRL_LDO_XO32M_BYPASS_SHIFT (1U)\r
-/*! BYPASS - Activate LDO bypass.\r
- * 0b0..Disable bypass mode (for normal operations).\r
- * 0b1..Activate LDO bypass.\r
- */\r
-#define ANACTRL_LDO_XO32M_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_LDO_XO32M_BYPASS_SHIFT)) & ANACTRL_LDO_XO32M_BYPASS_MASK)\r
-#define ANACTRL_LDO_XO32M_HIGHZ_MASK (0x4U)\r
-#define ANACTRL_LDO_XO32M_HIGHZ_SHIFT (2U)\r
-/*! HIGHZ - .\r
- * 0b0..Output in High normal state.\r
- * 0b1..Output in High Impedance state.\r
- */\r
-#define ANACTRL_LDO_XO32M_HIGHZ(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_LDO_XO32M_HIGHZ_SHIFT)) & ANACTRL_LDO_XO32M_HIGHZ_MASK)\r
-#define ANACTRL_LDO_XO32M_VOUT_MASK (0x38U)\r
-#define ANACTRL_LDO_XO32M_VOUT_SHIFT (3U)\r
-/*! VOUT - Sets the LDO output level.\r
- * 0b000..0.750 V.\r
- * 0b001..0.775 V.\r
- * 0b010..0.800 V.\r
- * 0b011..0.825 V.\r
- * 0b100..0.850 V.\r
- * 0b101..0.875 V.\r
- * 0b110..0.900 V.\r
- * 0b111..0.925 V.\r
- */\r
-#define ANACTRL_LDO_XO32M_VOUT(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_LDO_XO32M_VOUT_SHIFT)) & ANACTRL_LDO_XO32M_VOUT_MASK)\r
-#define ANACTRL_LDO_XO32M_IBIAS_MASK (0xC0U)\r
-#define ANACTRL_LDO_XO32M_IBIAS_SHIFT (6U)\r
-#define ANACTRL_LDO_XO32M_IBIAS(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_LDO_XO32M_IBIAS_SHIFT)) & ANACTRL_LDO_XO32M_IBIAS_MASK)\r
-#define ANACTRL_LDO_XO32M_STABMODE_MASK (0x300U)\r
-#define ANACTRL_LDO_XO32M_STABMODE_SHIFT (8U)\r
-#define ANACTRL_LDO_XO32M_STABMODE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_LDO_XO32M_STABMODE_SHIFT)) & ANACTRL_LDO_XO32M_STABMODE_MASK)\r
-/*! @} */\r
-\r
-/*! @name XO_CAL_CFG - All Crystal Oscillators (both the 32 KHz and the High speed) Capacitive Banks Calibration Configuration register */\r
-/*! @{ */\r
-#define ANACTRL_XO_CAL_CFG_START_INV_MASK (0x1U)\r
-#define ANACTRL_XO_CAL_CFG_START_INV_SHIFT (0U)\r
-#define ANACTRL_XO_CAL_CFG_START_INV(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CFG_START_INV_SHIFT)) & ANACTRL_XO_CAL_CFG_START_INV_MASK)\r
-#define ANACTRL_XO_CAL_CFG_START_OVR_MASK (0x2U)\r
-#define ANACTRL_XO_CAL_CFG_START_OVR_SHIFT (1U)\r
-#define ANACTRL_XO_CAL_CFG_START_OVR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CFG_START_OVR_SHIFT)) & ANACTRL_XO_CAL_CFG_START_OVR_MASK)\r
-#define ANACTRL_XO_CAL_CFG_START_MASK (0x4U)\r
-#define ANACTRL_XO_CAL_CFG_START_SHIFT (2U)\r
-#define ANACTRL_XO_CAL_CFG_START(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CFG_START_SHIFT)) & ANACTRL_XO_CAL_CFG_START_MASK)\r
-#define ANACTRL_XO_CAL_CFG_STOP_INV_MASK (0x8U)\r
-#define ANACTRL_XO_CAL_CFG_STOP_INV_SHIFT (3U)\r
-#define ANACTRL_XO_CAL_CFG_STOP_INV(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CFG_STOP_INV_SHIFT)) & ANACTRL_XO_CAL_CFG_STOP_INV_MASK)\r
-#define ANACTRL_XO_CAL_CFG_STOP_CNTR_END_MASK (0x10U)\r
-#define ANACTRL_XO_CAL_CFG_STOP_CNTR_END_SHIFT (4U)\r
-#define ANACTRL_XO_CAL_CFG_STOP_CNTR_END(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CFG_STOP_CNTR_END_SHIFT)) & ANACTRL_XO_CAL_CFG_STOP_CNTR_END_MASK)\r
-#define ANACTRL_XO_CAL_CFG_XO32K_MODE_MASK (0x20U)\r
-#define ANACTRL_XO_CAL_CFG_XO32K_MODE_SHIFT (5U)\r
-/*! XO32K_MODE - When 0 : High speed crystal oscillator calibration is used. When 1 : 32 kHz crystal oscillator calibration is used.\r
- * 0b0..High speed crystal oscillator (12 MHz- 32 MHz) is used\r
- * 0b1..32 kHz crystal oscillator calibration is used.\r
- */\r
-#define ANACTRL_XO_CAL_CFG_XO32K_MODE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CFG_XO32K_MODE_SHIFT)) & ANACTRL_XO_CAL_CFG_XO32K_MODE_MASK)\r
-/*! @} */\r
-\r
-/*! @name XO_CAL_CMD - All Crystal Oscillators (both the 32 KHz and the High Speed) Capacitive Banks Calibration Command register. */\r
-/*! @{ */\r
-#define ANACTRL_XO_CAL_CMD_START_MASK (0x1U)\r
-#define ANACTRL_XO_CAL_CMD_START_SHIFT (0U)\r
-#define ANACTRL_XO_CAL_CMD_START(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CMD_START_SHIFT)) & ANACTRL_XO_CAL_CMD_START_MASK)\r
-#define ANACTRL_XO_CAL_CMD_STOP_MASK (0x2U)\r
-#define ANACTRL_XO_CAL_CMD_STOP_SHIFT (1U)\r
-#define ANACTRL_XO_CAL_CMD_STOP(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CMD_STOP_SHIFT)) & ANACTRL_XO_CAL_CMD_STOP_MASK)\r
-#define ANACTRL_XO_CAL_CMD_OVR_MASK (0x4U)\r
-#define ANACTRL_XO_CAL_CMD_OVR_SHIFT (2U)\r
-#define ANACTRL_XO_CAL_CMD_OVR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_CMD_OVR_SHIFT)) & ANACTRL_XO_CAL_CMD_OVR_MASK)\r
-/*! @} */\r
-\r
-/*! @name XO_CAL_STATUS - All Crystal Oscillators (both the 32 KHz and the High speed) Capacitive Banks Calibration Status register. */\r
-/*! @{ */\r
-#define ANACTRL_XO_CAL_STATUS_CAL_CNTR_MASK (0xFFFFU)\r
-#define ANACTRL_XO_CAL_STATUS_CAL_CNTR_SHIFT (0U)\r
-#define ANACTRL_XO_CAL_STATUS_CAL_CNTR(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_STATUS_CAL_CNTR_SHIFT)) & ANACTRL_XO_CAL_STATUS_CAL_CNTR_MASK)\r
-#define ANACTRL_XO_CAL_STATUS_DONE_MASK (0x10000U)\r
-#define ANACTRL_XO_CAL_STATUS_DONE_SHIFT (16U)\r
-#define ANACTRL_XO_CAL_STATUS_DONE(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_XO_CAL_STATUS_DONE_SHIFT)) & ANACTRL_XO_CAL_STATUS_DONE_MASK)\r
+/*! DIV_UPDATE_REQ - Ringo clock out Divider status flag. Set when a change is made to the divider\r
+ * value, cleared when the change is complete.\r
+ */\r
+#define ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ_SHIFT)) & \\r
+ ANACTRL_RINGO2_CTRL_DIV_UPDATE_REQ_MASK)\r
/*! @} */\r
\r
/*! @name USBHS_PHY_CTRL - USB High Speed Phy Control */\r
/*! @{ */\r
#define ANACTRL_USBHS_PHY_CTRL_usb_vbusvalid_ext_MASK (0x1U)\r
#define ANACTRL_USBHS_PHY_CTRL_usb_vbusvalid_ext_SHIFT (0U)\r
-#define ANACTRL_USBHS_PHY_CTRL_usb_vbusvalid_ext(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_CTRL_usb_vbusvalid_ext_SHIFT)) & ANACTRL_USBHS_PHY_CTRL_usb_vbusvalid_ext_MASK)\r
-#define ANACTRL_USBHS_PHY_CTRL_usb_id_ext_MASK (0x2U)\r
-#define ANACTRL_USBHS_PHY_CTRL_usb_id_ext_SHIFT (1U)\r
-#define ANACTRL_USBHS_PHY_CTRL_usb_id_ext(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_CTRL_usb_id_ext_SHIFT)) & ANACTRL_USBHS_PHY_CTRL_usb_id_ext_MASK)\r
-#define ANACTRL_USBHS_PHY_CTRL_iso_atx_MASK (0x8U)\r
-#define ANACTRL_USBHS_PHY_CTRL_iso_atx_SHIFT (3U)\r
-#define ANACTRL_USBHS_PHY_CTRL_iso_atx(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_CTRL_iso_atx_SHIFT)) & ANACTRL_USBHS_PHY_CTRL_iso_atx_MASK)\r
-/*! @} */\r
-\r
-/*! @name USBHS_PHY_TRIM - USB High Speed Phy Trim values */\r
-/*! @{ */\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb_reg_env_tail_adj_vd_MASK (0x3U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb_reg_env_tail_adj_vd_SHIFT (0U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb_reg_env_tail_adj_vd(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_TRIM_trim_usb_reg_env_tail_adj_vd_SHIFT)) & ANACTRL_USBHS_PHY_TRIM_trim_usb_reg_env_tail_adj_vd_MASK)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_d_cal_MASK (0x3CU)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_d_cal_SHIFT (2U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_d_cal(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_d_cal_SHIFT)) & ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_d_cal_MASK)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dp_MASK (0x7C0U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dp_SHIFT (6U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dp(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dp_SHIFT)) & ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dp_MASK)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dm_MASK (0xF800U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dm_SHIFT (11U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dm(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dm_SHIFT)) & ANACTRL_USBHS_PHY_TRIM_trim_usbphy_tx_cal45dm_MASK)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_tst_MASK (0x30000U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_tst_SHIFT (16U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_tst(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_tst_SHIFT)) & ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_tst_MASK)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_vbgadj_MASK (0x1C0000U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_vbgadj_SHIFT (18U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_vbgadj(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_vbgadj_SHIFT)) & ANACTRL_USBHS_PHY_TRIM_trim_usb2_refbias_vbgadj_MASK)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_pll_ctrl0_div_sel_MASK (0xE00000U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_pll_ctrl0_div_sel_SHIFT (21U)\r
-#define ANACTRL_USBHS_PHY_TRIM_trim_pll_ctrl0_div_sel(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_TRIM_trim_pll_ctrl0_div_sel_SHIFT)) & ANACTRL_USBHS_PHY_TRIM_trim_pll_ctrl0_div_sel_MASK)\r
-/*! @} */\r
-\r
-/*! @name USBHS_PHY_STATUS - USB High Speed Phy Status */\r
-/*! @{ */\r
-#define ANACTRL_USBHS_PHY_STATUS_pfd_stable_MASK (0x1U)\r
-#define ANACTRL_USBHS_PHY_STATUS_pfd_stable_SHIFT (0U)\r
-#define ANACTRL_USBHS_PHY_STATUS_pfd_stable(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_STATUS_pfd_stable_SHIFT)) & ANACTRL_USBHS_PHY_STATUS_pfd_stable_MASK)\r
-#define ANACTRL_USBHS_PHY_STATUS_vbusvalid_3vdetect_1p8v_MASK (0x2U)\r
-#define ANACTRL_USBHS_PHY_STATUS_vbusvalid_3vdetect_1p8v_SHIFT (1U)\r
-#define ANACTRL_USBHS_PHY_STATUS_vbusvalid_3vdetect_1p8v(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_STATUS_vbusvalid_3vdetect_1p8v_SHIFT)) & ANACTRL_USBHS_PHY_STATUS_vbusvalid_3vdetect_1p8v_MASK)\r
-#define ANACTRL_USBHS_PHY_STATUS_sess_vld_1p8v_MASK (0x4U)\r
-#define ANACTRL_USBHS_PHY_STATUS_sess_vld_1p8v_SHIFT (2U)\r
-#define ANACTRL_USBHS_PHY_STATUS_sess_vld_1p8v(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_STATUS_sess_vld_1p8v_SHIFT)) & ANACTRL_USBHS_PHY_STATUS_sess_vld_1p8v_MASK)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_rx_vpin_fs_1p8v_MASK (0x8U)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_rx_vpin_fs_1p8v_SHIFT (3U)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_rx_vpin_fs_1p8v(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_STATUS_usb2_rx_vpin_fs_1p8v_SHIFT)) & ANACTRL_USBHS_PHY_STATUS_usb2_rx_vpin_fs_1p8v_MASK)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_rx_vmin_fs_1p8v_MASK (0x10U)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_rx_vmin_fs_1p8v_SHIFT (4U)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_rx_vmin_fs_1p8v(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_STATUS_usb2_rx_vmin_fs_1p8v_SHIFT)) & ANACTRL_USBHS_PHY_STATUS_usb2_rx_vmin_fs_1p8v_MASK)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_plugged_in_1p8v_MASK (0x20U)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_plugged_in_1p8v_SHIFT (5U)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_plugged_in_1p8v(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_STATUS_usb2_plugged_in_1p8v_SHIFT)) & ANACTRL_USBHS_PHY_STATUS_usb2_plugged_in_1p8v_MASK)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_iddig_1p8v_MASK (0x40U)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_iddig_1p8v_SHIFT (6U)\r
-#define ANACTRL_USBHS_PHY_STATUS_usb2_iddig_1p8v(x) (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_STATUS_usb2_iddig_1p8v_SHIFT)) & ANACTRL_USBHS_PHY_STATUS_usb2_iddig_1p8v_MASK)\r
+/*! usb_vbusvalid_ext - Override value for Vbus if using external detectors.\r
+ */\r
+#define ANACTRL_USBHS_PHY_CTRL_usb_vbusvalid_ext(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_CTRL_usb_vbusvalid_ext_SHIFT)) & \\r
+ ANACTRL_USBHS_PHY_CTRL_usb_vbusvalid_ext_MASK)\r
+#define ANACTRL_USBHS_PHY_CTRL_usb_id_ext_MASK (0x2U)\r
+#define ANACTRL_USBHS_PHY_CTRL_usb_id_ext_SHIFT (1U)\r
+/*! usb_id_ext - Override value for ID if using external detectors.\r
+ */\r
+#define ANACTRL_USBHS_PHY_CTRL_usb_id_ext(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << ANACTRL_USBHS_PHY_CTRL_usb_id_ext_SHIFT)) & ANACTRL_USBHS_PHY_CTRL_usb_id_ext_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group ANACTRL_Register_Masks */\r
\r
-\r
/* ANACTRL - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral ANACTRL base address */\r
- #define ANACTRL_BASE (0x50013000u)\r
- /** Peripheral ANACTRL base address */\r
- #define ANACTRL_BASE_NS (0x40013000u)\r
- /** Peripheral ANACTRL base pointer */\r
- #define ANACTRL ((ANACTRL_Type *)ANACTRL_BASE)\r
- /** Peripheral ANACTRL base pointer */\r
- #define ANACTRL_NS ((ANACTRL_Type *)ANACTRL_BASE_NS)\r
- /** Array initializer of ANACTRL peripheral base addresses */\r
- #define ANACTRL_BASE_ADDRS { ANACTRL_BASE }\r
- /** Array initializer of ANACTRL peripheral base pointers */\r
- #define ANACTRL_BASE_PTRS { ANACTRL }\r
- /** Array initializer of ANACTRL peripheral base addresses */\r
- #define ANACTRL_BASE_ADDRS_NS { ANACTRL_BASE_NS }\r
- /** Array initializer of ANACTRL peripheral base pointers */\r
- #define ANACTRL_BASE_PTRS_NS { ANACTRL_NS }\r
+/** Peripheral ANACTRL base address */\r
+#define ANACTRL_BASE (0x50013000u)\r
+/** Peripheral ANACTRL base address */\r
+#define ANACTRL_BASE_NS (0x40013000u)\r
+/** Peripheral ANACTRL base pointer */\r
+#define ANACTRL ((ANACTRL_Type *)ANACTRL_BASE)\r
+/** Peripheral ANACTRL base pointer */\r
+#define ANACTRL_NS ((ANACTRL_Type *)ANACTRL_BASE_NS)\r
+/** Array initializer of ANACTRL peripheral base addresses */\r
+#define ANACTRL_BASE_ADDRS \\r
+ { \\r
+ ANACTRL_BASE \\r
+ }\r
+/** Array initializer of ANACTRL peripheral base pointers */\r
+#define ANACTRL_BASE_PTRS \\r
+ { \\r
+ ANACTRL \\r
+ }\r
+/** Array initializer of ANACTRL peripheral base addresses */\r
+#define ANACTRL_BASE_ADDRS_NS \\r
+ { \\r
+ ANACTRL_BASE_NS \\r
+ }\r
+/** Array initializer of ANACTRL peripheral base pointers */\r
+#define ANACTRL_BASE_PTRS_NS \\r
+ { \\r
+ ANACTRL_NS \\r
+ }\r
#else\r
- /** Peripheral ANACTRL base address */\r
- #define ANACTRL_BASE (0x40013000u)\r
- /** Peripheral ANACTRL base pointer */\r
- #define ANACTRL ((ANACTRL_Type *)ANACTRL_BASE)\r
- /** Array initializer of ANACTRL peripheral base addresses */\r
- #define ANACTRL_BASE_ADDRS { ANACTRL_BASE }\r
- /** Array initializer of ANACTRL peripheral base pointers */\r
- #define ANACTRL_BASE_PTRS { ANACTRL }\r
+/** Peripheral ANACTRL base address */\r
+#define ANACTRL_BASE (0x40013000u)\r
+/** Peripheral ANACTRL base pointer */\r
+#define ANACTRL ((ANACTRL_Type *)ANACTRL_BASE)\r
+/** Array initializer of ANACTRL peripheral base addresses */\r
+#define ANACTRL_BASE_ADDRS \\r
+ { \\r
+ ANACTRL_BASE \\r
+ }\r
+/** Array initializer of ANACTRL peripheral base pointers */\r
+#define ANACTRL_BASE_PTRS \\r
+ { \\r
+ ANACTRL \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group ANACTRL_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- CASPER Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** CASPER - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CTRL0; /**< Contains the offsets of AB and CD in the RAM., offset: 0x0 */\r
- __IO uint32_t CTRL1; /**< Contains the opcode mode, iteration count, and result offset (in RAM) and also launches the accelerator. Note: with CP version: CTRL0 and CRTL1 can be written in one go with MCRR., offset: 0x4 */\r
- __IO uint32_t LOADER; /**< Contains an optional loader to load into CTRL0/1 in steps to perform a set of operations., offset: 0x8 */\r
- __IO uint32_t STATUS; /**< Indicates operational status and would contain the carry bit if used., offset: 0xC */\r
- __IO uint32_t INTENSET; /**< Sets interrupts, offset: 0x10 */\r
- __IO uint32_t INTENCLR; /**< Clears interrupts, offset: 0x14 */\r
- __I uint32_t INTSTAT; /**< Interrupt status bits (mask of INTENSET and STATUS), offset: 0x18 */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t AREG; /**< A register, offset: 0x20 */\r
- __IO uint32_t BREG; /**< B register, offset: 0x24 */\r
- __IO uint32_t CREG; /**< C register, offset: 0x28 */\r
- __IO uint32_t DREG; /**< D register, offset: 0x2C */\r
- __IO uint32_t RES0; /**< Result register 0, offset: 0x30 */\r
- __IO uint32_t RES1; /**< Result register 1, offset: 0x34 */\r
- __IO uint32_t RES2; /**< Result register 2, offset: 0x38 */\r
- __IO uint32_t RES3; /**< Result register 3, offset: 0x3C */\r
- uint8_t RESERVED_1[32];\r
- __IO uint32_t MASK; /**< Optional mask register, offset: 0x60 */\r
- __IO uint32_t REMASK; /**< Optional re-mask register, offset: 0x64 */\r
- uint8_t RESERVED_2[24];\r
- __IO uint32_t LOCK; /**< Security lock register, offset: 0x80 */\r
+typedef struct\r
+{\r
+ __IO uint32_t CTRL0; /**< Contains the offsets of AB and CD in the RAM., offset: 0x0 */\r
+ __IO uint32_t CTRL1; /**< Contains the opcode mode, iteration count, and result offset (in RAM) and also launches\r
+ the accelerator. Note: with CP version: CTRL0 and CRTL1 can be written in one go with MCRR.,\r
+ offset: 0x4 */\r
+ __IO uint32_t LOADER; /**< Contains an optional loader to load into CTRL0/1 in steps to perform a set of\r
+ operations., offset: 0x8 */\r
+ __IO uint32_t STATUS; /**< Indicates operational status and would contain the carry bit if used., offset: 0xC */\r
+ __IO uint32_t INTENSET; /**< Sets interrupts, offset: 0x10 */\r
+ __IO uint32_t INTENCLR; /**< Clears interrupts, offset: 0x14 */\r
+ __I uint32_t INTSTAT; /**< Interrupt status bits (mask of INTENSET and STATUS), offset: 0x18 */\r
+ uint8_t RESERVED_0[4];\r
+ __IO uint32_t AREG; /**< A register, offset: 0x20 */\r
+ __IO uint32_t BREG; /**< B register, offset: 0x24 */\r
+ __IO uint32_t CREG; /**< C register, offset: 0x28 */\r
+ __IO uint32_t DREG; /**< D register, offset: 0x2C */\r
+ __IO uint32_t RES0; /**< Result register 0, offset: 0x30 */\r
+ __IO uint32_t RES1; /**< Result register 1, offset: 0x34 */\r
+ __IO uint32_t RES2; /**< Result register 2, offset: 0x38 */\r
+ __IO uint32_t RES3; /**< Result register 3, offset: 0x3C */\r
+ uint8_t RESERVED_1[32];\r
+ __IO uint32_t MASK; /**< Optional mask register, offset: 0x60 */\r
+ __IO uint32_t REMASK; /**< Optional re-mask register, offset: 0x64 */\r
+ uint8_t RESERVED_2[24];\r
+ __IO uint32_t LOCK; /**< Security lock register, offset: 0x80 */\r
} CASPER_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CTRL0 - Contains the offsets of AB and CD in the RAM. */\r
/*! @{ */\r
-#define CASPER_CTRL0_ABBPAIR_MASK (0x1U)\r
-#define CASPER_CTRL0_ABBPAIR_SHIFT (0U)\r
+#define CASPER_CTRL0_ABBPAIR_MASK (0x1U)\r
+#define CASPER_CTRL0_ABBPAIR_SHIFT (0U)\r
/*! ABBPAIR - Which bank-pair the offset ABOFF is within. This must be 0 if only 2-up\r
* 0b0..Bank-pair 0 (1st)\r
* 0b1..Bank-pair 1 (2nd)\r
*/\r
-#define CASPER_CTRL0_ABBPAIR(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL0_ABBPAIR_SHIFT)) & CASPER_CTRL0_ABBPAIR_MASK)\r
-#define CASPER_CTRL0_ABOFF_MASK (0x4U)\r
-#define CASPER_CTRL0_ABOFF_SHIFT (2U)\r
-#define CASPER_CTRL0_ABOFF(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL0_ABOFF_SHIFT)) & CASPER_CTRL0_ABOFF_MASK)\r
-#define CASPER_CTRL0_CDBPAIR_MASK (0x10000U)\r
-#define CASPER_CTRL0_CDBPAIR_SHIFT (16U)\r
+#define CASPER_CTRL0_ABBPAIR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL0_ABBPAIR_SHIFT)) & CASPER_CTRL0_ABBPAIR_MASK)\r
+#define CASPER_CTRL0_ABOFF_MASK (0x4U)\r
+#define CASPER_CTRL0_ABOFF_SHIFT (2U)\r
+/*! ABOFF - Word or DWord Offset of AB values, with B at [2]=0 and A at [2]=1 as far as the code\r
+ * sees (normally will be an interleaved bank so only sequential to AHB). Word offset only allowed\r
+ * if 32 bit operation. Ideally not in the same RAM as the CD values if 4-up\r
+ */\r
+#define CASPER_CTRL0_ABOFF(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL0_ABOFF_SHIFT)) & CASPER_CTRL0_ABOFF_MASK)\r
+#define CASPER_CTRL0_CDBPAIR_MASK (0x10000U)\r
+#define CASPER_CTRL0_CDBPAIR_SHIFT (16U)\r
/*! CDBPAIR - Which bank-pair the offset CDOFF is within. This must be 0 if only 2-up\r
* 0b0..Bank-pair 0 (1st)\r
* 0b1..Bank-pair 1 (2nd)\r
*/\r
-#define CASPER_CTRL0_CDBPAIR(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL0_CDBPAIR_SHIFT)) & CASPER_CTRL0_CDBPAIR_MASK)\r
-#define CASPER_CTRL0_CDOFF_MASK (0x1FFC0000U)\r
-#define CASPER_CTRL0_CDOFF_SHIFT (18U)\r
-#define CASPER_CTRL0_CDOFF(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL0_CDOFF_SHIFT)) & CASPER_CTRL0_CDOFF_MASK)\r
+#define CASPER_CTRL0_CDBPAIR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL0_CDBPAIR_SHIFT)) & CASPER_CTRL0_CDBPAIR_MASK)\r
+#define CASPER_CTRL0_CDOFF_MASK (0x1FFC0000U)\r
+#define CASPER_CTRL0_CDOFF_SHIFT (18U)\r
+/*! CDOFF - Word or DWord Offset of CD, with D at [2]=0 and C at [2]=1 as far as the code sees\r
+ * (normally will be an interleaved bank so only sequential to AHB). Word offset only allowed if 32\r
+ * bit operation. Ideally not in the same RAM as the AB values\r
+ */\r
+#define CASPER_CTRL0_CDOFF(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL0_CDOFF_SHIFT)) & CASPER_CTRL0_CDOFF_MASK)\r
/*! @} */\r
\r
-/*! @name CTRL1 - Contains the opcode mode, iteration count, and result offset (in RAM) and also launches the accelerator. Note: with CP version: CTRL0 and CRTL1 can be written in one go with MCRR. */\r
+/*! @name CTRL1 - Contains the opcode mode, iteration count, and result offset (in RAM) and also launches the\r
+ * accelerator. Note: with CP version: CTRL0 and CRTL1 can be written in one go with MCRR. */\r
/*! @{ */\r
-#define CASPER_CTRL1_ITER_MASK (0xFFU)\r
-#define CASPER_CTRL1_ITER_SHIFT (0U)\r
-#define CASPER_CTRL1_ITER(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_ITER_SHIFT)) & CASPER_CTRL1_ITER_MASK)\r
-#define CASPER_CTRL1_MODE_MASK (0xFF00U)\r
-#define CASPER_CTRL1_MODE_SHIFT (8U)\r
-#define CASPER_CTRL1_MODE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_MODE_SHIFT)) & CASPER_CTRL1_MODE_MASK)\r
-#define CASPER_CTRL1_RESBPAIR_MASK (0x10000U)\r
-#define CASPER_CTRL1_RESBPAIR_SHIFT (16U)\r
-/*! RESBPAIR - Which bank-pair the offset RESOFF is within. This must be 0 if only 2-up. Ideally this is not the same bank as ABBPAIR (when 4-up supported)\r
+#define CASPER_CTRL1_ITER_MASK (0xFFU)\r
+#define CASPER_CTRL1_ITER_SHIFT (0U)\r
+/*! ITER - Iteration counter. Is number_cycles - 1. write 0 means Does one cycle - does not iterate.\r
+ */\r
+#define CASPER_CTRL1_ITER(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_ITER_SHIFT)) & CASPER_CTRL1_ITER_MASK)\r
+#define CASPER_CTRL1_MODE_MASK (0xFF00U)\r
+#define CASPER_CTRL1_MODE_SHIFT (8U)\r
+/*! MODE - Operation mode to perform. write 0 means Accelerator is inactive. write others means accelerator is active.\r
+ */\r
+#define CASPER_CTRL1_MODE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_MODE_SHIFT)) & CASPER_CTRL1_MODE_MASK)\r
+#define CASPER_CTRL1_RESBPAIR_MASK (0x10000U)\r
+#define CASPER_CTRL1_RESBPAIR_SHIFT (16U)\r
+/*! RESBPAIR - Which bank-pair the offset RESOFF is within. This must be 0 if only 2-up. Ideally\r
+ * this is not the same bank as ABBPAIR (when 4-up supported)\r
* 0b0..Bank-pair 0 (1st)\r
* 0b1..Bank-pair 1 (2nd)\r
*/\r
-#define CASPER_CTRL1_RESBPAIR(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_RESBPAIR_SHIFT)) & CASPER_CTRL1_RESBPAIR_MASK)\r
-#define CASPER_CTRL1_RESOFF_MASK (0x1FFC0000U)\r
-#define CASPER_CTRL1_RESOFF_SHIFT (18U)\r
-#define CASPER_CTRL1_RESOFF(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_RESOFF_SHIFT)) & CASPER_CTRL1_RESOFF_MASK)\r
-#define CASPER_CTRL1_CSKIP_MASK (0xC0000000U)\r
-#define CASPER_CTRL1_CSKIP_SHIFT (30U)\r
-/*! CSKIP - Skip rules on Carry if needed. This operation will be skipped based on Carry value (from previous operation) if not 0:\r
- * 0b00..No Skip\r
- * 0b01..Skip if Carry is 1\r
- * 0b10..Skip if Carry is 0\r
- * 0b11..Set CTRLOFF to CDOFF and Skip\r
+#define CASPER_CTRL1_RESBPAIR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_RESBPAIR_SHIFT)) & CASPER_CTRL1_RESBPAIR_MASK)\r
+#define CASPER_CTRL1_RESOFF_MASK (0x1FFC0000U)\r
+#define CASPER_CTRL1_RESOFF_SHIFT (18U)\r
+/*! RESOFF - Word or DWord Offset of result. Word offset only allowed if 32 bit operation. Ideally\r
+ * not in the same RAM as the AB and CD values\r
+ */\r
+#define CASPER_CTRL1_RESOFF(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_RESOFF_SHIFT)) & CASPER_CTRL1_RESOFF_MASK)\r
+#define CASPER_CTRL1_CSKIP_MASK (0xC0000000U)\r
+#define CASPER_CTRL1_CSKIP_SHIFT (30U)\r
+/*! CSKIP - Skip rules on Carry if needed. This operation will be skipped based on Carry value (from previous operation)\r
+ * if not 0: 0b00..No Skip 0b01..Skip if Carry is 1 0b10..Skip if Carry is 0 0b11..Set CTRLOFF to CDOFF and Skip\r
*/\r
-#define CASPER_CTRL1_CSKIP(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_CSKIP_SHIFT)) & CASPER_CTRL1_CSKIP_MASK)\r
+#define CASPER_CTRL1_CSKIP(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CTRL1_CSKIP_SHIFT)) & CASPER_CTRL1_CSKIP_MASK)\r
/*! @} */\r
\r
/*! @name LOADER - Contains an optional loader to load into CTRL0/1 in steps to perform a set of operations. */\r
/*! @{ */\r
-#define CASPER_LOADER_COUNT_MASK (0xFFU)\r
-#define CASPER_LOADER_COUNT_SHIFT (0U)\r
-#define CASPER_LOADER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << CASPER_LOADER_COUNT_SHIFT)) & CASPER_LOADER_COUNT_MASK)\r
-#define CASPER_LOADER_CTRLBPAIR_MASK (0x10000U)\r
-#define CASPER_LOADER_CTRLBPAIR_SHIFT (16U)\r
-/*! CTRLBPAIR - Which bank-pair the offset CTRLOFF is within. This must be 0 if only 2-up. Does not matter which bank is used as this is loaded when not performing an operation.\r
+#define CASPER_LOADER_COUNT_MASK (0xFFU)\r
+#define CASPER_LOADER_COUNT_SHIFT (0U)\r
+/*! COUNT - Number of control pairs to load 0 relative (so 1 means load 1). write 1 means Does one\r
+ * op - does not iterate, write N means N control pairs to load\r
+ */\r
+#define CASPER_LOADER_COUNT(x) (((uint32_t)(((uint32_t)(x)) << CASPER_LOADER_COUNT_SHIFT)) & CASPER_LOADER_COUNT_MASK)\r
+#define CASPER_LOADER_CTRLBPAIR_MASK (0x10000U)\r
+#define CASPER_LOADER_CTRLBPAIR_SHIFT (16U)\r
+/*! CTRLBPAIR - Which bank-pair the offset CTRLOFF is within. This must be 0 if only 2-up. Does not\r
+ * matter which bank is used as this is loaded when not performing an operation.\r
* 0b0..Bank-pair 0 (1st)\r
* 0b1..Bank-pair 1 (2nd)\r
*/\r
-#define CASPER_LOADER_CTRLBPAIR(x) (((uint32_t)(((uint32_t)(x)) << CASPER_LOADER_CTRLBPAIR_SHIFT)) & CASPER_LOADER_CTRLBPAIR_MASK)\r
-#define CASPER_LOADER_CTRLOFF_MASK (0x1FFC0000U)\r
-#define CASPER_LOADER_CTRLOFF_SHIFT (18U)\r
-#define CASPER_LOADER_CTRLOFF(x) (((uint32_t)(((uint32_t)(x)) << CASPER_LOADER_CTRLOFF_SHIFT)) & CASPER_LOADER_CTRLOFF_MASK)\r
+#define CASPER_LOADER_CTRLBPAIR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_LOADER_CTRLBPAIR_SHIFT)) & CASPER_LOADER_CTRLBPAIR_MASK)\r
+#define CASPER_LOADER_CTRLOFF_MASK (0x1FFC0000U)\r
+#define CASPER_LOADER_CTRLOFF_SHIFT (18U)\r
+/*! CTRLOFF - DWord Offset of CTRL pair to load next.\r
+ */\r
+#define CASPER_LOADER_CTRLOFF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_LOADER_CTRLOFF_SHIFT)) & CASPER_LOADER_CTRLOFF_MASK)\r
/*! @} */\r
\r
/*! @name STATUS - Indicates operational status and would contain the carry bit if used. */\r
/*! @{ */\r
-#define CASPER_STATUS_DONE_MASK (0x1U)\r
-#define CASPER_STATUS_DONE_SHIFT (0U)\r
+#define CASPER_STATUS_DONE_MASK (0x1U)\r
+#define CASPER_STATUS_DONE_SHIFT (0U)\r
/*! DONE - Indicates if the accelerator has finished an operation. Write 1 to clear, or write CTRL1 to clear.\r
* 0b0..Busy or just cleared\r
* 0b1..Completed last operation\r
*/\r
-#define CASPER_STATUS_DONE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_STATUS_DONE_SHIFT)) & CASPER_STATUS_DONE_MASK)\r
-#define CASPER_STATUS_CARRY_MASK (0x10U)\r
-#define CASPER_STATUS_CARRY_SHIFT (4U)\r
+#define CASPER_STATUS_DONE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_STATUS_DONE_SHIFT)) & CASPER_STATUS_DONE_MASK)\r
+#define CASPER_STATUS_CARRY_MASK (0x10U)\r
+#define CASPER_STATUS_CARRY_SHIFT (4U)\r
/*! CARRY - Last carry value if operation produced a carry bit\r
* 0b0..Carry was 0 or no carry\r
* 0b1..Carry was 1\r
*/\r
-#define CASPER_STATUS_CARRY(x) (((uint32_t)(((uint32_t)(x)) << CASPER_STATUS_CARRY_SHIFT)) & CASPER_STATUS_CARRY_MASK)\r
-#define CASPER_STATUS_BUSY_MASK (0x20U)\r
-#define CASPER_STATUS_BUSY_SHIFT (5U)\r
+#define CASPER_STATUS_CARRY(x) (((uint32_t)(((uint32_t)(x)) << CASPER_STATUS_CARRY_SHIFT)) & CASPER_STATUS_CARRY_MASK)\r
+#define CASPER_STATUS_BUSY_MASK (0x20U)\r
+#define CASPER_STATUS_BUSY_SHIFT (5U)\r
/*! BUSY - Indicates if the accelerator is busy performing an operation\r
* 0b0..Not busy - is idle\r
* 0b1..Is busy\r
*/\r
-#define CASPER_STATUS_BUSY(x) (((uint32_t)(((uint32_t)(x)) << CASPER_STATUS_BUSY_SHIFT)) & CASPER_STATUS_BUSY_MASK)\r
+#define CASPER_STATUS_BUSY(x) (((uint32_t)(((uint32_t)(x)) << CASPER_STATUS_BUSY_SHIFT)) & CASPER_STATUS_BUSY_MASK)\r
/*! @} */\r
\r
/*! @name INTENSET - Sets interrupts */\r
/*! @{ */\r
-#define CASPER_INTENSET_DONE_MASK (0x1U)\r
-#define CASPER_INTENSET_DONE_SHIFT (0U)\r
+#define CASPER_INTENSET_DONE_MASK (0x1U)\r
+#define CASPER_INTENSET_DONE_SHIFT (0U)\r
/*! DONE - Set if the accelerator should interrupt when done.\r
* 0b0..Do not interrupt when done\r
* 0b1..Interrupt when done\r
*/\r
-#define CASPER_INTENSET_DONE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_INTENSET_DONE_SHIFT)) & CASPER_INTENSET_DONE_MASK)\r
+#define CASPER_INTENSET_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_INTENSET_DONE_SHIFT)) & CASPER_INTENSET_DONE_MASK)\r
/*! @} */\r
\r
/*! @name INTENCLR - Clears interrupts */\r
/*! @{ */\r
-#define CASPER_INTENCLR_DONE_MASK (0x1U)\r
-#define CASPER_INTENCLR_DONE_SHIFT (0U)\r
+#define CASPER_INTENCLR_DONE_MASK (0x1U)\r
+#define CASPER_INTENCLR_DONE_SHIFT (0U)\r
/*! DONE - Written to clear an interrupt set with INTENSET.\r
* 0b0..If written 0, ignored\r
* 0b1..If written 1, do not Interrupt when done\r
*/\r
-#define CASPER_INTENCLR_DONE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_INTENCLR_DONE_SHIFT)) & CASPER_INTENCLR_DONE_MASK)\r
+#define CASPER_INTENCLR_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_INTENCLR_DONE_SHIFT)) & CASPER_INTENCLR_DONE_MASK)\r
/*! @} */\r
\r
/*! @name INTSTAT - Interrupt status bits (mask of INTENSET and STATUS) */\r
/*! @{ */\r
-#define CASPER_INTSTAT_DONE_MASK (0x1U)\r
-#define CASPER_INTSTAT_DONE_SHIFT (0U)\r
+#define CASPER_INTSTAT_DONE_MASK (0x1U)\r
+#define CASPER_INTSTAT_DONE_SHIFT (0U)\r
/*! DONE - If set, interrupt is caused by accelerator being done.\r
* 0b0..Not caused by accelerator being done\r
* 0b1..Caused by accelerator being done\r
*/\r
-#define CASPER_INTSTAT_DONE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_INTSTAT_DONE_SHIFT)) & CASPER_INTSTAT_DONE_MASK)\r
+#define CASPER_INTSTAT_DONE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_INTSTAT_DONE_SHIFT)) & CASPER_INTSTAT_DONE_MASK)\r
/*! @} */\r
\r
/*! @name AREG - A register */\r
/*! @{ */\r
-#define CASPER_AREG_REG_VALUE_MASK (0xFFFFFFFFU)\r
-#define CASPER_AREG_REG_VALUE_SHIFT (0U)\r
-#define CASPER_AREG_REG_VALUE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_AREG_REG_VALUE_SHIFT)) & CASPER_AREG_REG_VALUE_MASK)\r
+#define CASPER_AREG_REG_VALUE_MASK (0xFFFFFFFFU)\r
+#define CASPER_AREG_REG_VALUE_SHIFT (0U)\r
+/*! REG_VALUE - Register to be fed into Multiplier. Is not normally written or read by application,\r
+ * but is available when accelerator not busy.\r
+ */\r
+#define CASPER_AREG_REG_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_AREG_REG_VALUE_SHIFT)) & CASPER_AREG_REG_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name BREG - B register */\r
/*! @{ */\r
-#define CASPER_BREG_REG_VALUE_MASK (0xFFFFFFFFU)\r
-#define CASPER_BREG_REG_VALUE_SHIFT (0U)\r
-#define CASPER_BREG_REG_VALUE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_BREG_REG_VALUE_SHIFT)) & CASPER_BREG_REG_VALUE_MASK)\r
+#define CASPER_BREG_REG_VALUE_MASK (0xFFFFFFFFU)\r
+#define CASPER_BREG_REG_VALUE_SHIFT (0U)\r
+/*! REG_VALUE - Register to be fed into Multiplier. Is not normally written or read by application,\r
+ * but is available when accelerator not busy.\r
+ */\r
+#define CASPER_BREG_REG_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_BREG_REG_VALUE_SHIFT)) & CASPER_BREG_REG_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name CREG - C register */\r
/*! @{ */\r
-#define CASPER_CREG_REG_VALUE_MASK (0xFFFFFFFFU)\r
-#define CASPER_CREG_REG_VALUE_SHIFT (0U)\r
-#define CASPER_CREG_REG_VALUE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_CREG_REG_VALUE_SHIFT)) & CASPER_CREG_REG_VALUE_MASK)\r
+#define CASPER_CREG_REG_VALUE_MASK (0xFFFFFFFFU)\r
+#define CASPER_CREG_REG_VALUE_SHIFT (0U)\r
+/*! REG_VALUE - Register to be fed into Multiplier. Is not normally written or read by application,\r
+ * but is available when accelerator not busy.\r
+ */\r
+#define CASPER_CREG_REG_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_CREG_REG_VALUE_SHIFT)) & CASPER_CREG_REG_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name DREG - D register */\r
/*! @{ */\r
-#define CASPER_DREG_REG_VALUE_MASK (0xFFFFFFFFU)\r
-#define CASPER_DREG_REG_VALUE_SHIFT (0U)\r
-#define CASPER_DREG_REG_VALUE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_DREG_REG_VALUE_SHIFT)) & CASPER_DREG_REG_VALUE_MASK)\r
+#define CASPER_DREG_REG_VALUE_MASK (0xFFFFFFFFU)\r
+#define CASPER_DREG_REG_VALUE_SHIFT (0U)\r
+/*! REG_VALUE - Register to be fed into Multiplier. Is not normally written or read by application,\r
+ * but is available when accelerator not busy.\r
+ */\r
+#define CASPER_DREG_REG_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_DREG_REG_VALUE_SHIFT)) & CASPER_DREG_REG_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name RES0 - Result register 0 */\r
/*! @{ */\r
-#define CASPER_RES0_REG_VALUE_MASK (0xFFFFFFFFU)\r
-#define CASPER_RES0_REG_VALUE_SHIFT (0U)\r
-#define CASPER_RES0_REG_VALUE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_RES0_REG_VALUE_SHIFT)) & CASPER_RES0_REG_VALUE_MASK)\r
+#define CASPER_RES0_REG_VALUE_MASK (0xFFFFFFFFU)\r
+#define CASPER_RES0_REG_VALUE_SHIFT (0U)\r
+/*! REG_VALUE - Register to hold working result (from multiplier, adder/xor, etc). Is not normally\r
+ * written or read by application, but is available when accelerator not busy.\r
+ */\r
+#define CASPER_RES0_REG_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_RES0_REG_VALUE_SHIFT)) & CASPER_RES0_REG_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name RES1 - Result register 1 */\r
/*! @{ */\r
-#define CASPER_RES1_REG_VALUE_MASK (0xFFFFFFFFU)\r
-#define CASPER_RES1_REG_VALUE_SHIFT (0U)\r
-#define CASPER_RES1_REG_VALUE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_RES1_REG_VALUE_SHIFT)) & CASPER_RES1_REG_VALUE_MASK)\r
+#define CASPER_RES1_REG_VALUE_MASK (0xFFFFFFFFU)\r
+#define CASPER_RES1_REG_VALUE_SHIFT (0U)\r
+/*! REG_VALUE - Register to hold working result (from multiplier, adder/xor, etc). Is not normally\r
+ * written or read by application, but is available when accelerator not busy.\r
+ */\r
+#define CASPER_RES1_REG_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_RES1_REG_VALUE_SHIFT)) & CASPER_RES1_REG_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name RES2 - Result register 2 */\r
/*! @{ */\r
-#define CASPER_RES2_REG_VALUE_MASK (0xFFFFFFFFU)\r
-#define CASPER_RES2_REG_VALUE_SHIFT (0U)\r
-#define CASPER_RES2_REG_VALUE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_RES2_REG_VALUE_SHIFT)) & CASPER_RES2_REG_VALUE_MASK)\r
+#define CASPER_RES2_REG_VALUE_MASK (0xFFFFFFFFU)\r
+#define CASPER_RES2_REG_VALUE_SHIFT (0U)\r
+/*! REG_VALUE - Register to hold working result (from multiplier, adder/xor, etc). Is not normally\r
+ * written or read by application, but is available when accelerator not busy.\r
+ */\r
+#define CASPER_RES2_REG_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_RES2_REG_VALUE_SHIFT)) & CASPER_RES2_REG_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name RES3 - Result register 3 */\r
/*! @{ */\r
-#define CASPER_RES3_REG_VALUE_MASK (0xFFFFFFFFU)\r
-#define CASPER_RES3_REG_VALUE_SHIFT (0U)\r
-#define CASPER_RES3_REG_VALUE(x) (((uint32_t)(((uint32_t)(x)) << CASPER_RES3_REG_VALUE_SHIFT)) & CASPER_RES3_REG_VALUE_MASK)\r
+#define CASPER_RES3_REG_VALUE_MASK (0xFFFFFFFFU)\r
+#define CASPER_RES3_REG_VALUE_SHIFT (0U)\r
+/*! REG_VALUE - Register to hold working result (from multiplier, adder/xor, etc). Is not normally\r
+ * written or read by application, but is available when accelerator not busy.\r
+ */\r
+#define CASPER_RES3_REG_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CASPER_RES3_REG_VALUE_SHIFT)) & CASPER_RES3_REG_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name MASK - Optional mask register */\r
/*! @{ */\r
-#define CASPER_MASK_MASK_MASK (0xFFFFFFFFU)\r
-#define CASPER_MASK_MASK_SHIFT (0U)\r
-#define CASPER_MASK_MASK(x) (((uint32_t)(((uint32_t)(x)) << CASPER_MASK_MASK_SHIFT)) & CASPER_MASK_MASK_MASK)\r
+#define CASPER_MASK_MASK_MASK (0xFFFFFFFFU)\r
+#define CASPER_MASK_MASK_SHIFT (0U)\r
+/*! MASK - Mask to apply as side channel countermeasure. 0: No mask to be used. N: Mask to XOR onto values\r
+ */\r
+#define CASPER_MASK_MASK(x) (((uint32_t)(((uint32_t)(x)) << CASPER_MASK_MASK_SHIFT)) & CASPER_MASK_MASK_MASK)\r
/*! @} */\r
\r
/*! @name REMASK - Optional re-mask register */\r
/*! @{ */\r
-#define CASPER_REMASK_MASK_MASK (0xFFFFFFFFU)\r
-#define CASPER_REMASK_MASK_SHIFT (0U)\r
-#define CASPER_REMASK_MASK(x) (((uint32_t)(((uint32_t)(x)) << CASPER_REMASK_MASK_SHIFT)) & CASPER_REMASK_MASK_MASK)\r
+#define CASPER_REMASK_MASK_MASK (0xFFFFFFFFU)\r
+#define CASPER_REMASK_MASK_SHIFT (0U)\r
+/*! MASK - Mask to apply as side channel countermeasure. 0: No mask to be used. N: Mask to XOR onto values\r
+ */\r
+#define CASPER_REMASK_MASK(x) (((uint32_t)(((uint32_t)(x)) << CASPER_REMASK_MASK_SHIFT)) & CASPER_REMASK_MASK_MASK)\r
/*! @} */\r
\r
/*! @name LOCK - Security lock register */\r
/*! @{ */\r
-#define CASPER_LOCK_LOCK_MASK (0x1U)\r
-#define CASPER_LOCK_LOCK_SHIFT (0U)\r
+#define CASPER_LOCK_LOCK_MASK (0x1U)\r
+#define CASPER_LOCK_LOCK_SHIFT (0U)\r
/*! LOCK - Reads back with security level locked to, or 0. Writes as 0 to unlock, 1 to lock.\r
* 0b0..unlock\r
* 0b1..Lock to current security level\r
*/\r
-#define CASPER_LOCK_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CASPER_LOCK_LOCK_SHIFT)) & CASPER_LOCK_LOCK_MASK)\r
-#define CASPER_LOCK_KEY_MASK (0x1FFF0U)\r
-#define CASPER_LOCK_KEY_SHIFT (4U)\r
+#define CASPER_LOCK_LOCK(x) (((uint32_t)(((uint32_t)(x)) << CASPER_LOCK_LOCK_SHIFT)) & CASPER_LOCK_LOCK_MASK)\r
+#define CASPER_LOCK_KEY_MASK (0x1FFF0U)\r
+#define CASPER_LOCK_KEY_SHIFT (4U)\r
/*! KEY - Must be written as 0x73D to change the register.\r
* 0b0011100111101..If set during write, will allow lock or unlock\r
*/\r
-#define CASPER_LOCK_KEY(x) (((uint32_t)(((uint32_t)(x)) << CASPER_LOCK_KEY_SHIFT)) & CASPER_LOCK_KEY_MASK)\r
+#define CASPER_LOCK_KEY(x) (((uint32_t)(((uint32_t)(x)) << CASPER_LOCK_KEY_SHIFT)) & CASPER_LOCK_KEY_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group CASPER_Register_Masks */\r
\r
-\r
/* CASPER - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral CASPER base address */\r
- #define CASPER_BASE (0x500A5000u)\r
- /** Peripheral CASPER base address */\r
- #define CASPER_BASE_NS (0x400A5000u)\r
- /** Peripheral CASPER base pointer */\r
- #define CASPER ((CASPER_Type *)CASPER_BASE)\r
- /** Peripheral CASPER base pointer */\r
- #define CASPER_NS ((CASPER_Type *)CASPER_BASE_NS)\r
- /** Array initializer of CASPER peripheral base addresses */\r
- #define CASPER_BASE_ADDRS { CASPER_BASE }\r
- /** Array initializer of CASPER peripheral base pointers */\r
- #define CASPER_BASE_PTRS { CASPER }\r
- /** Array initializer of CASPER peripheral base addresses */\r
- #define CASPER_BASE_ADDRS_NS { CASPER_BASE_NS }\r
- /** Array initializer of CASPER peripheral base pointers */\r
- #define CASPER_BASE_PTRS_NS { CASPER_NS }\r
+/** Peripheral CASPER base address */\r
+#define CASPER_BASE (0x500A5000u)\r
+/** Peripheral CASPER base address */\r
+#define CASPER_BASE_NS (0x400A5000u)\r
+/** Peripheral CASPER base pointer */\r
+#define CASPER ((CASPER_Type *)CASPER_BASE)\r
+/** Peripheral CASPER base pointer */\r
+#define CASPER_NS ((CASPER_Type *)CASPER_BASE_NS)\r
+/** Array initializer of CASPER peripheral base addresses */\r
+#define CASPER_BASE_ADDRS \\r
+ { \\r
+ CASPER_BASE \\r
+ }\r
+/** Array initializer of CASPER peripheral base pointers */\r
+#define CASPER_BASE_PTRS \\r
+ { \\r
+ CASPER \\r
+ }\r
+/** Array initializer of CASPER peripheral base addresses */\r
+#define CASPER_BASE_ADDRS_NS \\r
+ { \\r
+ CASPER_BASE_NS \\r
+ }\r
+/** Array initializer of CASPER peripheral base pointers */\r
+#define CASPER_BASE_PTRS_NS \\r
+ { \\r
+ CASPER_NS \\r
+ }\r
#else\r
- /** Peripheral CASPER base address */\r
- #define CASPER_BASE (0x400A5000u)\r
- /** Peripheral CASPER base pointer */\r
- #define CASPER ((CASPER_Type *)CASPER_BASE)\r
- /** Array initializer of CASPER peripheral base addresses */\r
- #define CASPER_BASE_ADDRS { CASPER_BASE }\r
- /** Array initializer of CASPER peripheral base pointers */\r
- #define CASPER_BASE_PTRS { CASPER }\r
+/** Peripheral CASPER base address */\r
+#define CASPER_BASE (0x400A5000u)\r
+/** Peripheral CASPER base pointer */\r
+#define CASPER ((CASPER_Type *)CASPER_BASE)\r
+/** Array initializer of CASPER peripheral base addresses */\r
+#define CASPER_BASE_ADDRS \\r
+ { \\r
+ CASPER_BASE \\r
+ }\r
+/** Array initializer of CASPER peripheral base pointers */\r
+#define CASPER_BASE_PTRS \\r
+ { \\r
+ CASPER \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group CASPER_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- CRC Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** CRC - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t MODE; /**< CRC mode register, offset: 0x0 */\r
- __IO uint32_t SEED; /**< CRC seed register, offset: 0x4 */\r
- union { /* offset: 0x8 */\r
- __I uint32_t SUM; /**< CRC checksum register, offset: 0x8 */\r
- __O uint32_t WR_DATA; /**< CRC data register, offset: 0x8 */\r
- };\r
+typedef struct\r
+{\r
+ __IO uint32_t MODE; /**< CRC mode register, offset: 0x0 */\r
+ __IO uint32_t SEED; /**< CRC seed register, offset: 0x4 */\r
+ union\r
+ { /* offset: 0x8 */\r
+ __I uint32_t SUM; /**< CRC checksum register, offset: 0x8 */\r
+ __O uint32_t WR_DATA; /**< CRC data register, offset: 0x8 */\r
+ };\r
} CRC_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name MODE - CRC mode register */\r
/*! @{ */\r
-#define CRC_MODE_CRC_POLY_MASK (0x3U)\r
-#define CRC_MODE_CRC_POLY_SHIFT (0U)\r
-#define CRC_MODE_CRC_POLY(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_CRC_POLY_SHIFT)) & CRC_MODE_CRC_POLY_MASK)\r
-#define CRC_MODE_BIT_RVS_WR_MASK (0x4U)\r
-#define CRC_MODE_BIT_RVS_WR_SHIFT (2U)\r
-#define CRC_MODE_BIT_RVS_WR(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_BIT_RVS_WR_SHIFT)) & CRC_MODE_BIT_RVS_WR_MASK)\r
-#define CRC_MODE_CMPL_WR_MASK (0x8U)\r
-#define CRC_MODE_CMPL_WR_SHIFT (3U)\r
-#define CRC_MODE_CMPL_WR(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_CMPL_WR_SHIFT)) & CRC_MODE_CMPL_WR_MASK)\r
-#define CRC_MODE_BIT_RVS_SUM_MASK (0x10U)\r
-#define CRC_MODE_BIT_RVS_SUM_SHIFT (4U)\r
-#define CRC_MODE_BIT_RVS_SUM(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_BIT_RVS_SUM_SHIFT)) & CRC_MODE_BIT_RVS_SUM_MASK)\r
-#define CRC_MODE_CMPL_SUM_MASK (0x20U)\r
-#define CRC_MODE_CMPL_SUM_SHIFT (5U)\r
-#define CRC_MODE_CMPL_SUM(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_CMPL_SUM_SHIFT)) & CRC_MODE_CMPL_SUM_MASK)\r
+#define CRC_MODE_CRC_POLY_MASK (0x3U)\r
+#define CRC_MODE_CRC_POLY_SHIFT (0U)\r
+/*! CRC_POLY - CRC polynomial: 1X = CRC-32 polynomial 01 = CRC-16 polynomial 00 = CRC-CCITT polynomial\r
+ */\r
+#define CRC_MODE_CRC_POLY(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_CRC_POLY_SHIFT)) & CRC_MODE_CRC_POLY_MASK)\r
+#define CRC_MODE_BIT_RVS_WR_MASK (0x4U)\r
+#define CRC_MODE_BIT_RVS_WR_SHIFT (2U)\r
+/*! BIT_RVS_WR - Data bit order: 1 = Bit order reverse for CRC_WR_DATA (per byte) 0 = No bit order reverse for\r
+ * CRC_WR_DATA (per byte)\r
+ */\r
+#define CRC_MODE_BIT_RVS_WR(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_BIT_RVS_WR_SHIFT)) & CRC_MODE_BIT_RVS_WR_MASK)\r
+#define CRC_MODE_CMPL_WR_MASK (0x8U)\r
+#define CRC_MODE_CMPL_WR_SHIFT (3U)\r
+/*! CMPL_WR - Data complement: 1 = 1's complement for CRC_WR_DATA 0 = No 1's complement for CRC_WR_DATA\r
+ */\r
+#define CRC_MODE_CMPL_WR(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_CMPL_WR_SHIFT)) & CRC_MODE_CMPL_WR_MASK)\r
+#define CRC_MODE_BIT_RVS_SUM_MASK (0x10U)\r
+#define CRC_MODE_BIT_RVS_SUM_SHIFT (4U)\r
+/*! BIT_RVS_SUM - CRC sum bit order: 1 = Bit order reverse for CRC_SUM 0 = No bit order reverse for CRC_SUM\r
+ */\r
+#define CRC_MODE_BIT_RVS_SUM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CRC_MODE_BIT_RVS_SUM_SHIFT)) & CRC_MODE_BIT_RVS_SUM_MASK)\r
+#define CRC_MODE_CMPL_SUM_MASK (0x20U)\r
+#define CRC_MODE_CMPL_SUM_SHIFT (5U)\r
+/*! CMPL_SUM - CRC sum complement: 1 = 1's complement for CRC_SUM 0 = No 1's complement for CRC_SUM\r
+ */\r
+#define CRC_MODE_CMPL_SUM(x) (((uint32_t)(((uint32_t)(x)) << CRC_MODE_CMPL_SUM_SHIFT)) & CRC_MODE_CMPL_SUM_MASK)\r
/*! @} */\r
\r
/*! @name SEED - CRC seed register */\r
/*! @{ */\r
-#define CRC_SEED_CRC_SEED_MASK (0xFFFFFFFFU)\r
-#define CRC_SEED_CRC_SEED_SHIFT (0U)\r
-#define CRC_SEED_CRC_SEED(x) (((uint32_t)(((uint32_t)(x)) << CRC_SEED_CRC_SEED_SHIFT)) & CRC_SEED_CRC_SEED_MASK)\r
+#define CRC_SEED_CRC_SEED_MASK (0xFFFFFFFFU)\r
+#define CRC_SEED_CRC_SEED_SHIFT (0U)\r
+/*! CRC_SEED - A write access to this register will load CRC seed value to CRC_SUM register with\r
+ * selected bit order and 1's complement pre-processes. A write access to this register will\r
+ * overrule the CRC calculation in progresses.\r
+ */\r
+#define CRC_SEED_CRC_SEED(x) (((uint32_t)(((uint32_t)(x)) << CRC_SEED_CRC_SEED_SHIFT)) & CRC_SEED_CRC_SEED_MASK)\r
/*! @} */\r
\r
/*! @name SUM - CRC checksum register */\r
/*! @{ */\r
-#define CRC_SUM_CRC_SUM_MASK (0xFFFFFFFFU)\r
-#define CRC_SUM_CRC_SUM_SHIFT (0U)\r
-#define CRC_SUM_CRC_SUM(x) (((uint32_t)(((uint32_t)(x)) << CRC_SUM_CRC_SUM_SHIFT)) & CRC_SUM_CRC_SUM_MASK)\r
+#define CRC_SUM_CRC_SUM_MASK (0xFFFFFFFFU)\r
+#define CRC_SUM_CRC_SUM_SHIFT (0U)\r
+/*! CRC_SUM - The most recent CRC sum can be read through this register with selected bit order and 1's complement\r
+ * post-processes.\r
+ */\r
+#define CRC_SUM_CRC_SUM(x) (((uint32_t)(((uint32_t)(x)) << CRC_SUM_CRC_SUM_SHIFT)) & CRC_SUM_CRC_SUM_MASK)\r
/*! @} */\r
\r
/*! @name WR_DATA - CRC data register */\r
/*! @{ */\r
-#define CRC_WR_DATA_CRC_WR_DATA_MASK (0xFFFFFFFFU)\r
-#define CRC_WR_DATA_CRC_WR_DATA_SHIFT (0U)\r
-#define CRC_WR_DATA_CRC_WR_DATA(x) (((uint32_t)(((uint32_t)(x)) << CRC_WR_DATA_CRC_WR_DATA_SHIFT)) & CRC_WR_DATA_CRC_WR_DATA_MASK)\r
+#define CRC_WR_DATA_CRC_WR_DATA_MASK (0xFFFFFFFFU)\r
+#define CRC_WR_DATA_CRC_WR_DATA_SHIFT (0U)\r
+/*! CRC_WR_DATA - Data written to this register will be taken to perform CRC calculation with\r
+ * selected bit order and 1's complement pre-process. Any write size 8, 16 or 32-bit are allowed and\r
+ * accept back-to-back transactions.\r
+ */\r
+#define CRC_WR_DATA_CRC_WR_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << CRC_WR_DATA_CRC_WR_DATA_SHIFT)) & CRC_WR_DATA_CRC_WR_DATA_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group CRC_Register_Masks */\r
\r
-\r
/* CRC - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral CRC_ENGINE base address */\r
- #define CRC_ENGINE_BASE (0x50095000u)\r
- /** Peripheral CRC_ENGINE base address */\r
- #define CRC_ENGINE_BASE_NS (0x40095000u)\r
- /** Peripheral CRC_ENGINE base pointer */\r
- #define CRC_ENGINE ((CRC_Type *)CRC_ENGINE_BASE)\r
- /** Peripheral CRC_ENGINE base pointer */\r
- #define CRC_ENGINE_NS ((CRC_Type *)CRC_ENGINE_BASE_NS)\r
- /** Array initializer of CRC peripheral base addresses */\r
- #define CRC_BASE_ADDRS { CRC_ENGINE_BASE }\r
- /** Array initializer of CRC peripheral base pointers */\r
- #define CRC_BASE_PTRS { CRC_ENGINE }\r
- /** Array initializer of CRC peripheral base addresses */\r
- #define CRC_BASE_ADDRS_NS { CRC_ENGINE_BASE_NS }\r
- /** Array initializer of CRC peripheral base pointers */\r
- #define CRC_BASE_PTRS_NS { CRC_ENGINE_NS }\r
+/** Peripheral CRC_ENGINE base address */\r
+#define CRC_ENGINE_BASE (0x50095000u)\r
+/** Peripheral CRC_ENGINE base address */\r
+#define CRC_ENGINE_BASE_NS (0x40095000u)\r
+/** Peripheral CRC_ENGINE base pointer */\r
+#define CRC_ENGINE ((CRC_Type *)CRC_ENGINE_BASE)\r
+/** Peripheral CRC_ENGINE base pointer */\r
+#define CRC_ENGINE_NS ((CRC_Type *)CRC_ENGINE_BASE_NS)\r
+/** Array initializer of CRC peripheral base addresses */\r
+#define CRC_BASE_ADDRS \\r
+ { \\r
+ CRC_ENGINE_BASE \\r
+ }\r
+/** Array initializer of CRC peripheral base pointers */\r
+#define CRC_BASE_PTRS \\r
+ { \\r
+ CRC_ENGINE \\r
+ }\r
+/** Array initializer of CRC peripheral base addresses */\r
+#define CRC_BASE_ADDRS_NS \\r
+ { \\r
+ CRC_ENGINE_BASE_NS \\r
+ }\r
+/** Array initializer of CRC peripheral base pointers */\r
+#define CRC_BASE_PTRS_NS \\r
+ { \\r
+ CRC_ENGINE_NS \\r
+ }\r
#else\r
- /** Peripheral CRC_ENGINE base address */\r
- #define CRC_ENGINE_BASE (0x40095000u)\r
- /** Peripheral CRC_ENGINE base pointer */\r
- #define CRC_ENGINE ((CRC_Type *)CRC_ENGINE_BASE)\r
- /** Array initializer of CRC peripheral base addresses */\r
- #define CRC_BASE_ADDRS { CRC_ENGINE_BASE }\r
- /** Array initializer of CRC peripheral base pointers */\r
- #define CRC_BASE_PTRS { CRC_ENGINE }\r
+/** Peripheral CRC_ENGINE base address */\r
+#define CRC_ENGINE_BASE (0x40095000u)\r
+/** Peripheral CRC_ENGINE base pointer */\r
+#define CRC_ENGINE ((CRC_Type *)CRC_ENGINE_BASE)\r
+/** Array initializer of CRC peripheral base addresses */\r
+#define CRC_BASE_ADDRS \\r
+ { \\r
+ CRC_ENGINE_BASE \\r
+ }\r
+/** Array initializer of CRC peripheral base pointers */\r
+#define CRC_BASE_PTRS \\r
+ { \\r
+ CRC_ENGINE \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group CRC_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- CTIMER Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** CTIMER - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t IR; /**< Interrupt Register. The IR can be written to clear interrupts. The IR can be read to identify which of eight possible interrupt sources are pending., offset: 0x0 */\r
- __IO uint32_t TCR; /**< Timer Control Register. The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR., offset: 0x4 */\r
- __IO uint32_t TC; /**< Timer Counter, offset: 0x8 */\r
- __IO uint32_t PR; /**< Prescale Register, offset: 0xC */\r
- __IO uint32_t PC; /**< Prescale Counter, offset: 0x10 */\r
- __IO uint32_t MCR; /**< Match Control Register, offset: 0x14 */\r
- __IO uint32_t MR[4]; /**< Match Register . MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC., array offset: 0x18, array step: 0x4 */\r
- __IO uint32_t CCR; /**< Capture Control Register. The CCR controls which edges of the capture inputs are used to load the Capture Registers and whether or not an interrupt is generated when a capture takes place., offset: 0x28 */\r
- __I uint32_t CR[4]; /**< Capture Register . CR is loaded with the value of TC when there is an event on the CAPn. input., array offset: 0x2C, array step: 0x4 */\r
- __IO uint32_t EMR; /**< External Match Register. The EMR controls the match function and the external match pins., offset: 0x3C */\r
- uint8_t RESERVED_0[48];\r
- __IO uint32_t CTCR; /**< Count Control Register. The CTCR selects between Timer and Counter mode, and in Counter mode selects the signal and edge(s) for counting., offset: 0x70 */\r
- __IO uint32_t PWMC; /**< PWM Control Register. This register enables PWM mode for the external match pins., offset: 0x74 */\r
- __IO uint32_t MSR[4]; /**< Match Shadow Register, array offset: 0x78, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t IR; /**< Interrupt Register. The IR can be written to clear interrupts. The IR can be read to identify\r
+ which of eight possible interrupt sources are pending., offset: 0x0 */\r
+ __IO uint32_t TCR; /**< Timer Control Register. The TCR is used to control the Timer Counter functions. The Timer\r
+ Counter can be disabled or reset through the TCR., offset: 0x4 */\r
+ __IO uint32_t TC; /**< Timer Counter, offset: 0x8 */\r
+ __IO uint32_t PR; /**< Prescale Register, offset: 0xC */\r
+ __IO uint32_t PC; /**< Prescale Counter, offset: 0x10 */\r
+ __IO uint32_t MCR; /**< Match Control Register, offset: 0x14 */\r
+ __IO uint32_t\r
+ MR[4]; /**< Match Register . MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or\r
+ generate an interrupt every time MR matches the TC., array offset: 0x18, array step: 0x4 */\r
+ __IO uint32_t CCR; /**< Capture Control Register. The CCR controls which edges of the capture inputs are used to\r
+ load the Capture Registers and whether or not an interrupt is generated when a capture takes\r
+ place., offset: 0x28 */\r
+ __I uint32_t CR[4]; /**< Capture Register . CR is loaded with the value of TC when there is an event on the CAPn.\r
+ input., array offset: 0x2C, array step: 0x4 */\r
+ __IO uint32_t EMR; /**< External Match Register. The EMR controls the match function and the external match pins.,\r
+ offset: 0x3C */\r
+ uint8_t RESERVED_0[48];\r
+ __IO uint32_t CTCR; /**< Count Control Register. The CTCR selects between Timer and Counter mode, and in Counter\r
+ mode selects the signal and edge(s) for counting., offset: 0x70 */\r
+ __IO uint32_t\r
+ PWMC; /**< PWM Control Register. This register enables PWM mode for the external match pins., offset: 0x74 */\r
+ __IO uint32_t MSR[4]; /**< Match Shadow Register, array offset: 0x78, array step: 0x4 */\r
} CTIMER_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name IR - Interrupt Register. The IR can be written to clear interrupts. The IR can be read to identify which of eight possible interrupt sources are pending. */\r
-/*! @{ */\r
-#define CTIMER_IR_MR0INT_MASK (0x1U)\r
-#define CTIMER_IR_MR0INT_SHIFT (0U)\r
-#define CTIMER_IR_MR0INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_MR0INT_SHIFT)) & CTIMER_IR_MR0INT_MASK)\r
-#define CTIMER_IR_MR1INT_MASK (0x2U)\r
-#define CTIMER_IR_MR1INT_SHIFT (1U)\r
-#define CTIMER_IR_MR1INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_MR1INT_SHIFT)) & CTIMER_IR_MR1INT_MASK)\r
-#define CTIMER_IR_MR2INT_MASK (0x4U)\r
-#define CTIMER_IR_MR2INT_SHIFT (2U)\r
-#define CTIMER_IR_MR2INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_MR2INT_SHIFT)) & CTIMER_IR_MR2INT_MASK)\r
-#define CTIMER_IR_MR3INT_MASK (0x8U)\r
-#define CTIMER_IR_MR3INT_SHIFT (3U)\r
-#define CTIMER_IR_MR3INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_MR3INT_SHIFT)) & CTIMER_IR_MR3INT_MASK)\r
-#define CTIMER_IR_CR0INT_MASK (0x10U)\r
-#define CTIMER_IR_CR0INT_SHIFT (4U)\r
-#define CTIMER_IR_CR0INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_CR0INT_SHIFT)) & CTIMER_IR_CR0INT_MASK)\r
-#define CTIMER_IR_CR1INT_MASK (0x20U)\r
-#define CTIMER_IR_CR1INT_SHIFT (5U)\r
-#define CTIMER_IR_CR1INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_CR1INT_SHIFT)) & CTIMER_IR_CR1INT_MASK)\r
-#define CTIMER_IR_CR2INT_MASK (0x40U)\r
-#define CTIMER_IR_CR2INT_SHIFT (6U)\r
-#define CTIMER_IR_CR2INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_CR2INT_SHIFT)) & CTIMER_IR_CR2INT_MASK)\r
-#define CTIMER_IR_CR3INT_MASK (0x80U)\r
-#define CTIMER_IR_CR3INT_SHIFT (7U)\r
-#define CTIMER_IR_CR3INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_CR3INT_SHIFT)) & CTIMER_IR_CR3INT_MASK)\r
-/*! @} */\r
-\r
-/*! @name TCR - Timer Control Register. The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR. */\r
-/*! @{ */\r
-#define CTIMER_TCR_CEN_MASK (0x1U)\r
-#define CTIMER_TCR_CEN_SHIFT (0U)\r
+/*! @name IR - Interrupt Register. The IR can be written to clear interrupts. The IR can be read to identify which of\r
+ * eight possible interrupt sources are pending. */\r
+/*! @{ */\r
+#define CTIMER_IR_MR0INT_MASK (0x1U)\r
+#define CTIMER_IR_MR0INT_SHIFT (0U)\r
+/*! MR0INT - Interrupt flag for match channel 0.\r
+ */\r
+#define CTIMER_IR_MR0INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_MR0INT_SHIFT)) & CTIMER_IR_MR0INT_MASK)\r
+#define CTIMER_IR_MR1INT_MASK (0x2U)\r
+#define CTIMER_IR_MR1INT_SHIFT (1U)\r
+/*! MR1INT - Interrupt flag for match channel 1.\r
+ */\r
+#define CTIMER_IR_MR1INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_MR1INT_SHIFT)) & CTIMER_IR_MR1INT_MASK)\r
+#define CTIMER_IR_MR2INT_MASK (0x4U)\r
+#define CTIMER_IR_MR2INT_SHIFT (2U)\r
+/*! MR2INT - Interrupt flag for match channel 2.\r
+ */\r
+#define CTIMER_IR_MR2INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_MR2INT_SHIFT)) & CTIMER_IR_MR2INT_MASK)\r
+#define CTIMER_IR_MR3INT_MASK (0x8U)\r
+#define CTIMER_IR_MR3INT_SHIFT (3U)\r
+/*! MR3INT - Interrupt flag for match channel 3.\r
+ */\r
+#define CTIMER_IR_MR3INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_MR3INT_SHIFT)) & CTIMER_IR_MR3INT_MASK)\r
+#define CTIMER_IR_CR0INT_MASK (0x10U)\r
+#define CTIMER_IR_CR0INT_SHIFT (4U)\r
+/*! CR0INT - Interrupt flag for capture channel 0 event.\r
+ */\r
+#define CTIMER_IR_CR0INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_CR0INT_SHIFT)) & CTIMER_IR_CR0INT_MASK)\r
+#define CTIMER_IR_CR1INT_MASK (0x20U)\r
+#define CTIMER_IR_CR1INT_SHIFT (5U)\r
+/*! CR1INT - Interrupt flag for capture channel 1 event.\r
+ */\r
+#define CTIMER_IR_CR1INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_CR1INT_SHIFT)) & CTIMER_IR_CR1INT_MASK)\r
+#define CTIMER_IR_CR2INT_MASK (0x40U)\r
+#define CTIMER_IR_CR2INT_SHIFT (6U)\r
+/*! CR2INT - Interrupt flag for capture channel 2 event.\r
+ */\r
+#define CTIMER_IR_CR2INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_CR2INT_SHIFT)) & CTIMER_IR_CR2INT_MASK)\r
+#define CTIMER_IR_CR3INT_MASK (0x80U)\r
+#define CTIMER_IR_CR3INT_SHIFT (7U)\r
+/*! CR3INT - Interrupt flag for capture channel 3 event.\r
+ */\r
+#define CTIMER_IR_CR3INT(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_IR_CR3INT_SHIFT)) & CTIMER_IR_CR3INT_MASK)\r
+/*! @} */\r
+\r
+/*! @name TCR - Timer Control Register. The TCR is used to control the Timer Counter functions. The Timer Counter can be\r
+ * disabled or reset through the TCR. */\r
+/*! @{ */\r
+#define CTIMER_TCR_CEN_MASK (0x1U)\r
+#define CTIMER_TCR_CEN_SHIFT (0U)\r
/*! CEN - Counter enable.\r
* 0b0..Disabled.The counters are disabled.\r
* 0b1..Enabled. The Timer Counter and Prescale Counter are enabled.\r
*/\r
-#define CTIMER_TCR_CEN(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_TCR_CEN_SHIFT)) & CTIMER_TCR_CEN_MASK)\r
-#define CTIMER_TCR_CRST_MASK (0x2U)\r
-#define CTIMER_TCR_CRST_SHIFT (1U)\r
+#define CTIMER_TCR_CEN(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_TCR_CEN_SHIFT)) & CTIMER_TCR_CEN_MASK)\r
+#define CTIMER_TCR_CRST_MASK (0x2U)\r
+#define CTIMER_TCR_CRST_SHIFT (1U)\r
/*! CRST - Counter reset.\r
* 0b0..Disabled. Do nothing.\r
- * 0b1..Enabled. The Timer Counter and the Prescale Counter are synchronously reset on the next positive edge of the APB bus clock. The counters remain reset until TCR[1] is returned to zero.\r
+ * 0b1..Enabled. The Timer Counter and the Prescale Counter are synchronously reset on the next positive edge of\r
+ * the APB bus clock. The counters remain reset until TCR[1] is returned to zero.\r
*/\r
-#define CTIMER_TCR_CRST(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_TCR_CRST_SHIFT)) & CTIMER_TCR_CRST_MASK)\r
+#define CTIMER_TCR_CRST(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_TCR_CRST_SHIFT)) & CTIMER_TCR_CRST_MASK)\r
/*! @} */\r
\r
/*! @name TC - Timer Counter */\r
/*! @{ */\r
-#define CTIMER_TC_TCVAL_MASK (0xFFFFFFFFU)\r
-#define CTIMER_TC_TCVAL_SHIFT (0U)\r
-#define CTIMER_TC_TCVAL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_TC_TCVAL_SHIFT)) & CTIMER_TC_TCVAL_MASK)\r
+#define CTIMER_TC_TCVAL_MASK (0xFFFFFFFFU)\r
+#define CTIMER_TC_TCVAL_SHIFT (0U)\r
+/*! TCVAL - Timer counter value.\r
+ */\r
+#define CTIMER_TC_TCVAL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_TC_TCVAL_SHIFT)) & CTIMER_TC_TCVAL_MASK)\r
/*! @} */\r
\r
/*! @name PR - Prescale Register */\r
/*! @{ */\r
-#define CTIMER_PR_PRVAL_MASK (0xFFFFFFFFU)\r
-#define CTIMER_PR_PRVAL_SHIFT (0U)\r
-#define CTIMER_PR_PRVAL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PR_PRVAL_SHIFT)) & CTIMER_PR_PRVAL_MASK)\r
+#define CTIMER_PR_PRVAL_MASK (0xFFFFFFFFU)\r
+#define CTIMER_PR_PRVAL_SHIFT (0U)\r
+/*! PRVAL - Prescale counter value.\r
+ */\r
+#define CTIMER_PR_PRVAL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PR_PRVAL_SHIFT)) & CTIMER_PR_PRVAL_MASK)\r
/*! @} */\r
\r
/*! @name PC - Prescale Counter */\r
/*! @{ */\r
-#define CTIMER_PC_PCVAL_MASK (0xFFFFFFFFU)\r
-#define CTIMER_PC_PCVAL_SHIFT (0U)\r
-#define CTIMER_PC_PCVAL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PC_PCVAL_SHIFT)) & CTIMER_PC_PCVAL_MASK)\r
+#define CTIMER_PC_PCVAL_MASK (0xFFFFFFFFU)\r
+#define CTIMER_PC_PCVAL_SHIFT (0U)\r
+/*! PCVAL - Prescale counter value.\r
+ */\r
+#define CTIMER_PC_PCVAL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PC_PCVAL_SHIFT)) & CTIMER_PC_PCVAL_MASK)\r
/*! @} */\r
\r
/*! @name MCR - Match Control Register */\r
/*! @{ */\r
-#define CTIMER_MCR_MR0I_MASK (0x1U)\r
-#define CTIMER_MCR_MR0I_SHIFT (0U)\r
-#define CTIMER_MCR_MR0I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR0I_SHIFT)) & CTIMER_MCR_MR0I_MASK)\r
-#define CTIMER_MCR_MR0R_MASK (0x2U)\r
-#define CTIMER_MCR_MR0R_SHIFT (1U)\r
-#define CTIMER_MCR_MR0R(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR0R_SHIFT)) & CTIMER_MCR_MR0R_MASK)\r
-#define CTIMER_MCR_MR0S_MASK (0x4U)\r
-#define CTIMER_MCR_MR0S_SHIFT (2U)\r
-#define CTIMER_MCR_MR0S(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR0S_SHIFT)) & CTIMER_MCR_MR0S_MASK)\r
-#define CTIMER_MCR_MR1I_MASK (0x8U)\r
-#define CTIMER_MCR_MR1I_SHIFT (3U)\r
-#define CTIMER_MCR_MR1I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR1I_SHIFT)) & CTIMER_MCR_MR1I_MASK)\r
-#define CTIMER_MCR_MR1R_MASK (0x10U)\r
-#define CTIMER_MCR_MR1R_SHIFT (4U)\r
-#define CTIMER_MCR_MR1R(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR1R_SHIFT)) & CTIMER_MCR_MR1R_MASK)\r
-#define CTIMER_MCR_MR1S_MASK (0x20U)\r
-#define CTIMER_MCR_MR1S_SHIFT (5U)\r
-#define CTIMER_MCR_MR1S(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR1S_SHIFT)) & CTIMER_MCR_MR1S_MASK)\r
-#define CTIMER_MCR_MR2I_MASK (0x40U)\r
-#define CTIMER_MCR_MR2I_SHIFT (6U)\r
-#define CTIMER_MCR_MR2I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR2I_SHIFT)) & CTIMER_MCR_MR2I_MASK)\r
-#define CTIMER_MCR_MR2R_MASK (0x80U)\r
-#define CTIMER_MCR_MR2R_SHIFT (7U)\r
-#define CTIMER_MCR_MR2R(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR2R_SHIFT)) & CTIMER_MCR_MR2R_MASK)\r
-#define CTIMER_MCR_MR2S_MASK (0x100U)\r
-#define CTIMER_MCR_MR2S_SHIFT (8U)\r
-#define CTIMER_MCR_MR2S(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR2S_SHIFT)) & CTIMER_MCR_MR2S_MASK)\r
-#define CTIMER_MCR_MR3I_MASK (0x200U)\r
-#define CTIMER_MCR_MR3I_SHIFT (9U)\r
-#define CTIMER_MCR_MR3I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR3I_SHIFT)) & CTIMER_MCR_MR3I_MASK)\r
-#define CTIMER_MCR_MR3R_MASK (0x400U)\r
-#define CTIMER_MCR_MR3R_SHIFT (10U)\r
-#define CTIMER_MCR_MR3R(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR3R_SHIFT)) & CTIMER_MCR_MR3R_MASK)\r
-#define CTIMER_MCR_MR3S_MASK (0x800U)\r
-#define CTIMER_MCR_MR3S_SHIFT (11U)\r
-#define CTIMER_MCR_MR3S(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR3S_SHIFT)) & CTIMER_MCR_MR3S_MASK)\r
-#define CTIMER_MCR_MR0RL_MASK (0x1000000U)\r
-#define CTIMER_MCR_MR0RL_SHIFT (24U)\r
-#define CTIMER_MCR_MR0RL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR0RL_SHIFT)) & CTIMER_MCR_MR0RL_MASK)\r
-#define CTIMER_MCR_MR1RL_MASK (0x2000000U)\r
-#define CTIMER_MCR_MR1RL_SHIFT (25U)\r
-#define CTIMER_MCR_MR1RL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR1RL_SHIFT)) & CTIMER_MCR_MR1RL_MASK)\r
-#define CTIMER_MCR_MR2RL_MASK (0x4000000U)\r
-#define CTIMER_MCR_MR2RL_SHIFT (26U)\r
-#define CTIMER_MCR_MR2RL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR2RL_SHIFT)) & CTIMER_MCR_MR2RL_MASK)\r
-#define CTIMER_MCR_MR3RL_MASK (0x8000000U)\r
-#define CTIMER_MCR_MR3RL_SHIFT (27U)\r
-#define CTIMER_MCR_MR3RL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR3RL_SHIFT)) & CTIMER_MCR_MR3RL_MASK)\r
-/*! @} */\r
-\r
-/*! @name MR - Match Register . MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC. */\r
-/*! @{ */\r
-#define CTIMER_MR_MATCH_MASK (0xFFFFFFFFU)\r
-#define CTIMER_MR_MATCH_SHIFT (0U)\r
-#define CTIMER_MR_MATCH(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MR_MATCH_SHIFT)) & CTIMER_MR_MATCH_MASK)\r
+#define CTIMER_MCR_MR0I_MASK (0x1U)\r
+#define CTIMER_MCR_MR0I_SHIFT (0U)\r
+/*! MR0I - Interrupt on MR0: an interrupt is generated when MR0 matches the value in the TC.\r
+ */\r
+#define CTIMER_MCR_MR0I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR0I_SHIFT)) & CTIMER_MCR_MR0I_MASK)\r
+#define CTIMER_MCR_MR0R_MASK (0x2U)\r
+#define CTIMER_MCR_MR0R_SHIFT (1U)\r
+/*! MR0R - Reset on MR0: the TC will be reset if MR0 matches it.\r
+ */\r
+#define CTIMER_MCR_MR0R(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR0R_SHIFT)) & CTIMER_MCR_MR0R_MASK)\r
+#define CTIMER_MCR_MR0S_MASK (0x4U)\r
+#define CTIMER_MCR_MR0S_SHIFT (2U)\r
+/*! MR0S - Stop on MR0: the TC and PC will be stopped and TCR[0] will be set to 0 if MR0 matches the TC.\r
+ */\r
+#define CTIMER_MCR_MR0S(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR0S_SHIFT)) & CTIMER_MCR_MR0S_MASK)\r
+#define CTIMER_MCR_MR1I_MASK (0x8U)\r
+#define CTIMER_MCR_MR1I_SHIFT (3U)\r
+/*! MR1I - Interrupt on MR1: an interrupt is generated when MR1 matches the value in the TC.\r
+ */\r
+#define CTIMER_MCR_MR1I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR1I_SHIFT)) & CTIMER_MCR_MR1I_MASK)\r
+#define CTIMER_MCR_MR1R_MASK (0x10U)\r
+#define CTIMER_MCR_MR1R_SHIFT (4U)\r
+/*! MR1R - Reset on MR1: the TC will be reset if MR1 matches it.\r
+ */\r
+#define CTIMER_MCR_MR1R(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR1R_SHIFT)) & CTIMER_MCR_MR1R_MASK)\r
+#define CTIMER_MCR_MR1S_MASK (0x20U)\r
+#define CTIMER_MCR_MR1S_SHIFT (5U)\r
+/*! MR1S - Stop on MR1: the TC and PC will be stopped and TCR[0] will be set to 0 if MR1 matches the TC.\r
+ */\r
+#define CTIMER_MCR_MR1S(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR1S_SHIFT)) & CTIMER_MCR_MR1S_MASK)\r
+#define CTIMER_MCR_MR2I_MASK (0x40U)\r
+#define CTIMER_MCR_MR2I_SHIFT (6U)\r
+/*! MR2I - Interrupt on MR2: an interrupt is generated when MR2 matches the value in the TC.\r
+ */\r
+#define CTIMER_MCR_MR2I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR2I_SHIFT)) & CTIMER_MCR_MR2I_MASK)\r
+#define CTIMER_MCR_MR2R_MASK (0x80U)\r
+#define CTIMER_MCR_MR2R_SHIFT (7U)\r
+/*! MR2R - Reset on MR2: the TC will be reset if MR2 matches it.\r
+ */\r
+#define CTIMER_MCR_MR2R(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR2R_SHIFT)) & CTIMER_MCR_MR2R_MASK)\r
+#define CTIMER_MCR_MR2S_MASK (0x100U)\r
+#define CTIMER_MCR_MR2S_SHIFT (8U)\r
+/*! MR2S - Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches the TC.\r
+ */\r
+#define CTIMER_MCR_MR2S(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR2S_SHIFT)) & CTIMER_MCR_MR2S_MASK)\r
+#define CTIMER_MCR_MR3I_MASK (0x200U)\r
+#define CTIMER_MCR_MR3I_SHIFT (9U)\r
+/*! MR3I - Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC.\r
+ */\r
+#define CTIMER_MCR_MR3I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR3I_SHIFT)) & CTIMER_MCR_MR3I_MASK)\r
+#define CTIMER_MCR_MR3R_MASK (0x400U)\r
+#define CTIMER_MCR_MR3R_SHIFT (10U)\r
+/*! MR3R - Reset on MR3: the TC will be reset if MR3 matches it.\r
+ */\r
+#define CTIMER_MCR_MR3R(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR3R_SHIFT)) & CTIMER_MCR_MR3R_MASK)\r
+#define CTIMER_MCR_MR3S_MASK (0x800U)\r
+#define CTIMER_MCR_MR3S_SHIFT (11U)\r
+/*! MR3S - Stop on MR3: the TC and PC will be stopped and TCR[0] will be set to 0 if MR3 matches the TC.\r
+ */\r
+#define CTIMER_MCR_MR3S(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR3S_SHIFT)) & CTIMER_MCR_MR3S_MASK)\r
+#define CTIMER_MCR_MR0RL_MASK (0x1000000U)\r
+#define CTIMER_MCR_MR0RL_SHIFT (24U)\r
+/*! MR0RL - Reload MR0 with the contents of the Match 0 Shadow Register when the TC is reset to zero\r
+ * (either via a match event or a write to bit 1 of the TCR).\r
+ */\r
+#define CTIMER_MCR_MR0RL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR0RL_SHIFT)) & CTIMER_MCR_MR0RL_MASK)\r
+#define CTIMER_MCR_MR1RL_MASK (0x2000000U)\r
+#define CTIMER_MCR_MR1RL_SHIFT (25U)\r
+/*! MR1RL - Reload MR1 with the contents of the Match 1 Shadow Register when the TC is reset to zero\r
+ * (either via a match event or a write to bit 1 of the TCR).\r
+ */\r
+#define CTIMER_MCR_MR1RL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR1RL_SHIFT)) & CTIMER_MCR_MR1RL_MASK)\r
+#define CTIMER_MCR_MR2RL_MASK (0x4000000U)\r
+#define CTIMER_MCR_MR2RL_SHIFT (26U)\r
+/*! MR2RL - Reload MR2 with the contents of the Match 2 Shadow Register when the TC is reset to zero\r
+ * (either via a match event or a write to bit 1 of the TCR).\r
+ */\r
+#define CTIMER_MCR_MR2RL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR2RL_SHIFT)) & CTIMER_MCR_MR2RL_MASK)\r
+#define CTIMER_MCR_MR3RL_MASK (0x8000000U)\r
+#define CTIMER_MCR_MR3RL_SHIFT (27U)\r
+/*! MR3RL - Reload MR3 with the contents of the Match 3 Shadow Register when the TC is reset to zero\r
+ * (either via a match event or a write to bit 1 of the TCR).\r
+ */\r
+#define CTIMER_MCR_MR3RL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MCR_MR3RL_SHIFT)) & CTIMER_MCR_MR3RL_MASK)\r
+/*! @} */\r
+\r
+/*! @name MR - Match Register . MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or\r
+ * generate an interrupt every time MR matches the TC. */\r
+/*! @{ */\r
+#define CTIMER_MR_MATCH_MASK (0xFFFFFFFFU)\r
+#define CTIMER_MR_MATCH_SHIFT (0U)\r
+/*! MATCH - Timer counter match value.\r
+ */\r
+#define CTIMER_MR_MATCH(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MR_MATCH_SHIFT)) & CTIMER_MR_MATCH_MASK)\r
/*! @} */\r
\r
/* The count of CTIMER_MR */\r
-#define CTIMER_MR_COUNT (4U)\r
-\r
-/*! @name CCR - Capture Control Register. The CCR controls which edges of the capture inputs are used to load the Capture Registers and whether or not an interrupt is generated when a capture takes place. */\r
-/*! @{ */\r
-#define CTIMER_CCR_CAP0RE_MASK (0x1U)\r
-#define CTIMER_CCR_CAP0RE_SHIFT (0U)\r
-#define CTIMER_CCR_CAP0RE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP0RE_SHIFT)) & CTIMER_CCR_CAP0RE_MASK)\r
-#define CTIMER_CCR_CAP0FE_MASK (0x2U)\r
-#define CTIMER_CCR_CAP0FE_SHIFT (1U)\r
-#define CTIMER_CCR_CAP0FE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP0FE_SHIFT)) & CTIMER_CCR_CAP0FE_MASK)\r
-#define CTIMER_CCR_CAP0I_MASK (0x4U)\r
-#define CTIMER_CCR_CAP0I_SHIFT (2U)\r
-#define CTIMER_CCR_CAP0I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP0I_SHIFT)) & CTIMER_CCR_CAP0I_MASK)\r
-#define CTIMER_CCR_CAP1RE_MASK (0x8U)\r
-#define CTIMER_CCR_CAP1RE_SHIFT (3U)\r
-#define CTIMER_CCR_CAP1RE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP1RE_SHIFT)) & CTIMER_CCR_CAP1RE_MASK)\r
-#define CTIMER_CCR_CAP1FE_MASK (0x10U)\r
-#define CTIMER_CCR_CAP1FE_SHIFT (4U)\r
-#define CTIMER_CCR_CAP1FE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP1FE_SHIFT)) & CTIMER_CCR_CAP1FE_MASK)\r
-#define CTIMER_CCR_CAP1I_MASK (0x20U)\r
-#define CTIMER_CCR_CAP1I_SHIFT (5U)\r
-#define CTIMER_CCR_CAP1I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP1I_SHIFT)) & CTIMER_CCR_CAP1I_MASK)\r
-#define CTIMER_CCR_CAP2RE_MASK (0x40U)\r
-#define CTIMER_CCR_CAP2RE_SHIFT (6U)\r
-#define CTIMER_CCR_CAP2RE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP2RE_SHIFT)) & CTIMER_CCR_CAP2RE_MASK)\r
-#define CTIMER_CCR_CAP2FE_MASK (0x80U)\r
-#define CTIMER_CCR_CAP2FE_SHIFT (7U)\r
-#define CTIMER_CCR_CAP2FE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP2FE_SHIFT)) & CTIMER_CCR_CAP2FE_MASK)\r
-#define CTIMER_CCR_CAP2I_MASK (0x100U)\r
-#define CTIMER_CCR_CAP2I_SHIFT (8U)\r
-#define CTIMER_CCR_CAP2I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP2I_SHIFT)) & CTIMER_CCR_CAP2I_MASK)\r
-#define CTIMER_CCR_CAP3RE_MASK (0x200U)\r
-#define CTIMER_CCR_CAP3RE_SHIFT (9U)\r
-#define CTIMER_CCR_CAP3RE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP3RE_SHIFT)) & CTIMER_CCR_CAP3RE_MASK)\r
-#define CTIMER_CCR_CAP3FE_MASK (0x400U)\r
-#define CTIMER_CCR_CAP3FE_SHIFT (10U)\r
-#define CTIMER_CCR_CAP3FE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP3FE_SHIFT)) & CTIMER_CCR_CAP3FE_MASK)\r
-#define CTIMER_CCR_CAP3I_MASK (0x800U)\r
-#define CTIMER_CCR_CAP3I_SHIFT (11U)\r
-#define CTIMER_CCR_CAP3I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP3I_SHIFT)) & CTIMER_CCR_CAP3I_MASK)\r
+#define CTIMER_MR_COUNT (4U)\r
+\r
+/*! @name CCR - Capture Control Register. The CCR controls which edges of the capture inputs are used to load the\r
+ * Capture Registers and whether or not an interrupt is generated when a capture takes place. */\r
+/*! @{ */\r
+#define CTIMER_CCR_CAP0RE_MASK (0x1U)\r
+#define CTIMER_CCR_CAP0RE_SHIFT (0U)\r
+/*! CAP0RE - Rising edge of capture channel 0: a sequence of 0 then 1 causes CR0 to be loaded with\r
+ * the contents of TC. 0 = disabled. 1 = enabled.\r
+ */\r
+#define CTIMER_CCR_CAP0RE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP0RE_SHIFT)) & CTIMER_CCR_CAP0RE_MASK)\r
+#define CTIMER_CCR_CAP0FE_MASK (0x2U)\r
+#define CTIMER_CCR_CAP0FE_SHIFT (1U)\r
+/*! CAP0FE - Falling edge of capture channel 0: a sequence of 1 then 0 causes CR0 to be loaded with\r
+ * the contents of TC. 0 = disabled. 1 = enabled.\r
+ */\r
+#define CTIMER_CCR_CAP0FE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP0FE_SHIFT)) & CTIMER_CCR_CAP0FE_MASK)\r
+#define CTIMER_CCR_CAP0I_MASK (0x4U)\r
+#define CTIMER_CCR_CAP0I_SHIFT (2U)\r
+/*! CAP0I - Generate interrupt on channel 0 capture event: a CR0 load generates an interrupt.\r
+ */\r
+#define CTIMER_CCR_CAP0I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP0I_SHIFT)) & CTIMER_CCR_CAP0I_MASK)\r
+#define CTIMER_CCR_CAP1RE_MASK (0x8U)\r
+#define CTIMER_CCR_CAP1RE_SHIFT (3U)\r
+/*! CAP1RE - Rising edge of capture channel 1: a sequence of 0 then 1 causes CR1 to be loaded with\r
+ * the contents of TC. 0 = disabled. 1 = enabled.\r
+ */\r
+#define CTIMER_CCR_CAP1RE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP1RE_SHIFT)) & CTIMER_CCR_CAP1RE_MASK)\r
+#define CTIMER_CCR_CAP1FE_MASK (0x10U)\r
+#define CTIMER_CCR_CAP1FE_SHIFT (4U)\r
+/*! CAP1FE - Falling edge of capture channel 1: a sequence of 1 then 0 causes CR1 to be loaded with\r
+ * the contents of TC. 0 = disabled. 1 = enabled.\r
+ */\r
+#define CTIMER_CCR_CAP1FE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP1FE_SHIFT)) & CTIMER_CCR_CAP1FE_MASK)\r
+#define CTIMER_CCR_CAP1I_MASK (0x20U)\r
+#define CTIMER_CCR_CAP1I_SHIFT (5U)\r
+/*! CAP1I - Generate interrupt on channel 1 capture event: a CR1 load generates an interrupt.\r
+ */\r
+#define CTIMER_CCR_CAP1I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP1I_SHIFT)) & CTIMER_CCR_CAP1I_MASK)\r
+#define CTIMER_CCR_CAP2RE_MASK (0x40U)\r
+#define CTIMER_CCR_CAP2RE_SHIFT (6U)\r
+/*! CAP2RE - Rising edge of capture channel 2: a sequence of 0 then 1 causes CR2 to be loaded with\r
+ * the contents of TC. 0 = disabled. 1 = enabled.\r
+ */\r
+#define CTIMER_CCR_CAP2RE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP2RE_SHIFT)) & CTIMER_CCR_CAP2RE_MASK)\r
+#define CTIMER_CCR_CAP2FE_MASK (0x80U)\r
+#define CTIMER_CCR_CAP2FE_SHIFT (7U)\r
+/*! CAP2FE - Falling edge of capture channel 2: a sequence of 1 then 0 causes CR2 to be loaded with\r
+ * the contents of TC. 0 = disabled. 1 = enabled.\r
+ */\r
+#define CTIMER_CCR_CAP2FE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP2FE_SHIFT)) & CTIMER_CCR_CAP2FE_MASK)\r
+#define CTIMER_CCR_CAP2I_MASK (0x100U)\r
+#define CTIMER_CCR_CAP2I_SHIFT (8U)\r
+/*! CAP2I - Generate interrupt on channel 2 capture event: a CR2 load generates an interrupt.\r
+ */\r
+#define CTIMER_CCR_CAP2I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP2I_SHIFT)) & CTIMER_CCR_CAP2I_MASK)\r
+#define CTIMER_CCR_CAP3RE_MASK (0x200U)\r
+#define CTIMER_CCR_CAP3RE_SHIFT (9U)\r
+/*! CAP3RE - Rising edge of capture channel 3: a sequence of 0 then 1 causes CR3 to be loaded with\r
+ * the contents of TC. 0 = disabled. 1 = enabled.\r
+ */\r
+#define CTIMER_CCR_CAP3RE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP3RE_SHIFT)) & CTIMER_CCR_CAP3RE_MASK)\r
+#define CTIMER_CCR_CAP3FE_MASK (0x400U)\r
+#define CTIMER_CCR_CAP3FE_SHIFT (10U)\r
+/*! CAP3FE - Falling edge of capture channel 3: a sequence of 1 then 0 causes CR3 to be loaded with\r
+ * the contents of TC. 0 = disabled. 1 = enabled.\r
+ */\r
+#define CTIMER_CCR_CAP3FE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP3FE_SHIFT)) & CTIMER_CCR_CAP3FE_MASK)\r
+#define CTIMER_CCR_CAP3I_MASK (0x800U)\r
+#define CTIMER_CCR_CAP3I_SHIFT (11U)\r
+/*! CAP3I - Generate interrupt on channel 3 capture event: a CR3 load generates an interrupt.\r
+ */\r
+#define CTIMER_CCR_CAP3I(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CCR_CAP3I_SHIFT)) & CTIMER_CCR_CAP3I_MASK)\r
/*! @} */\r
\r
/*! @name CR - Capture Register . CR is loaded with the value of TC when there is an event on the CAPn. input. */\r
/*! @{ */\r
-#define CTIMER_CR_CAP_MASK (0xFFFFFFFFU)\r
-#define CTIMER_CR_CAP_SHIFT (0U)\r
-#define CTIMER_CR_CAP(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CR_CAP_SHIFT)) & CTIMER_CR_CAP_MASK)\r
+#define CTIMER_CR_CAP_MASK (0xFFFFFFFFU)\r
+#define CTIMER_CR_CAP_SHIFT (0U)\r
+/*! CAP - Timer counter capture value.\r
+ */\r
+#define CTIMER_CR_CAP(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CR_CAP_SHIFT)) & CTIMER_CR_CAP_MASK)\r
/*! @} */\r
\r
/* The count of CTIMER_CR */\r
-#define CTIMER_CR_COUNT (4U)\r
+#define CTIMER_CR_COUNT (4U)\r
\r
/*! @name EMR - External Match Register. The EMR controls the match function and the external match pins. */\r
/*! @{ */\r
-#define CTIMER_EMR_EM0_MASK (0x1U)\r
-#define CTIMER_EMR_EM0_SHIFT (0U)\r
-#define CTIMER_EMR_EM0(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EM0_SHIFT)) & CTIMER_EMR_EM0_MASK)\r
-#define CTIMER_EMR_EM1_MASK (0x2U)\r
-#define CTIMER_EMR_EM1_SHIFT (1U)\r
-#define CTIMER_EMR_EM1(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EM1_SHIFT)) & CTIMER_EMR_EM1_MASK)\r
-#define CTIMER_EMR_EM2_MASK (0x4U)\r
-#define CTIMER_EMR_EM2_SHIFT (2U)\r
-#define CTIMER_EMR_EM2(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EM2_SHIFT)) & CTIMER_EMR_EM2_MASK)\r
-#define CTIMER_EMR_EM3_MASK (0x8U)\r
-#define CTIMER_EMR_EM3_SHIFT (3U)\r
-#define CTIMER_EMR_EM3(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EM3_SHIFT)) & CTIMER_EMR_EM3_MASK)\r
-#define CTIMER_EMR_EMC0_MASK (0x30U)\r
-#define CTIMER_EMR_EMC0_SHIFT (4U)\r
+#define CTIMER_EMR_EM0_MASK (0x1U)\r
+#define CTIMER_EMR_EM0_SHIFT (0U)\r
+/*! EM0 - External Match 0. This bit reflects the state of output MAT0, whether or not this output\r
+ * is connected to a pin. When a match occurs between the TC and MR0, this bit can either toggle,\r
+ * go LOW, go HIGH, or do nothing, as selected by EMR[5:4]. This bit is driven to the MAT pins if\r
+ * the match function is selected via IOCON. 0 = LOW. 1 = HIGH.\r
+ */\r
+#define CTIMER_EMR_EM0(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EM0_SHIFT)) & CTIMER_EMR_EM0_MASK)\r
+#define CTIMER_EMR_EM1_MASK (0x2U)\r
+#define CTIMER_EMR_EM1_SHIFT (1U)\r
+/*! EM1 - External Match 1. This bit reflects the state of output MAT1, whether or not this output\r
+ * is connected to a pin. When a match occurs between the TC and MR1, this bit can either toggle,\r
+ * go LOW, go HIGH, or do nothing, as selected by EMR[7:6]. This bit is driven to the MAT pins if\r
+ * the match function is selected via IOCON. 0 = LOW. 1 = HIGH.\r
+ */\r
+#define CTIMER_EMR_EM1(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EM1_SHIFT)) & CTIMER_EMR_EM1_MASK)\r
+#define CTIMER_EMR_EM2_MASK (0x4U)\r
+#define CTIMER_EMR_EM2_SHIFT (2U)\r
+/*! EM2 - External Match 2. This bit reflects the state of output MAT2, whether or not this output\r
+ * is connected to a pin. When a match occurs between the TC and MR2, this bit can either toggle,\r
+ * go LOW, go HIGH, or do nothing, as selected by EMR[9:8]. This bit is driven to the MAT pins if\r
+ * the match function is selected via IOCON. 0 = LOW. 1 = HIGH.\r
+ */\r
+#define CTIMER_EMR_EM2(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EM2_SHIFT)) & CTIMER_EMR_EM2_MASK)\r
+#define CTIMER_EMR_EM3_MASK (0x8U)\r
+#define CTIMER_EMR_EM3_SHIFT (3U)\r
+/*! EM3 - External Match 3. This bit reflects the state of output MAT3, whether or not this output\r
+ * is connected to a pin. When a match occurs between the TC and MR3, this bit can either toggle,\r
+ * go LOW, go HIGH, or do nothing, as selected by MR[11:10]. This bit is driven to the MAT pins\r
+ * if the match function is selected via IOCON. 0 = LOW. 1 = HIGH.\r
+ */\r
+#define CTIMER_EMR_EM3(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EM3_SHIFT)) & CTIMER_EMR_EM3_MASK)\r
+#define CTIMER_EMR_EMC0_MASK (0x30U)\r
+#define CTIMER_EMR_EMC0_SHIFT (4U)\r
/*! EMC0 - External Match Control 0. Determines the functionality of External Match 0.\r
* 0b00..Do Nothing.\r
* 0b01..Clear. Clear the corresponding External Match bit/output to 0 (MAT0 pin is LOW if pinned out).\r
* 0b10..Set. Set the corresponding External Match bit/output to 1 (MAT0 pin is HIGH if pinned out).\r
* 0b11..Toggle. Toggle the corresponding External Match bit/output.\r
*/\r
-#define CTIMER_EMR_EMC0(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EMC0_SHIFT)) & CTIMER_EMR_EMC0_MASK)\r
-#define CTIMER_EMR_EMC1_MASK (0xC0U)\r
-#define CTIMER_EMR_EMC1_SHIFT (6U)\r
+#define CTIMER_EMR_EMC0(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EMC0_SHIFT)) & CTIMER_EMR_EMC0_MASK)\r
+#define CTIMER_EMR_EMC1_MASK (0xC0U)\r
+#define CTIMER_EMR_EMC1_SHIFT (6U)\r
/*! EMC1 - External Match Control 1. Determines the functionality of External Match 1.\r
* 0b00..Do Nothing.\r
* 0b01..Clear. Clear the corresponding External Match bit/output to 0 (MAT1 pin is LOW if pinned out).\r
* 0b10..Set. Set the corresponding External Match bit/output to 1 (MAT1 pin is HIGH if pinned out).\r
* 0b11..Toggle. Toggle the corresponding External Match bit/output.\r
*/\r
-#define CTIMER_EMR_EMC1(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EMC1_SHIFT)) & CTIMER_EMR_EMC1_MASK)\r
-#define CTIMER_EMR_EMC2_MASK (0x300U)\r
-#define CTIMER_EMR_EMC2_SHIFT (8U)\r
+#define CTIMER_EMR_EMC1(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EMC1_SHIFT)) & CTIMER_EMR_EMC1_MASK)\r
+#define CTIMER_EMR_EMC2_MASK (0x300U)\r
+#define CTIMER_EMR_EMC2_SHIFT (8U)\r
/*! EMC2 - External Match Control 2. Determines the functionality of External Match 2.\r
* 0b00..Do Nothing.\r
* 0b01..Clear. Clear the corresponding External Match bit/output to 0 (MAT2 pin is LOW if pinned out).\r
* 0b10..Set. Set the corresponding External Match bit/output to 1 (MAT2 pin is HIGH if pinned out).\r
* 0b11..Toggle. Toggle the corresponding External Match bit/output.\r
*/\r
-#define CTIMER_EMR_EMC2(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EMC2_SHIFT)) & CTIMER_EMR_EMC2_MASK)\r
-#define CTIMER_EMR_EMC3_MASK (0xC00U)\r
-#define CTIMER_EMR_EMC3_SHIFT (10U)\r
+#define CTIMER_EMR_EMC2(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EMC2_SHIFT)) & CTIMER_EMR_EMC2_MASK)\r
+#define CTIMER_EMR_EMC3_MASK (0xC00U)\r
+#define CTIMER_EMR_EMC3_SHIFT (10U)\r
/*! EMC3 - External Match Control 3. Determines the functionality of External Match 3.\r
* 0b00..Do Nothing.\r
* 0b01..Clear. Clear the corresponding External Match bit/output to 0 (MAT3 pin is LOW if pinned out).\r
* 0b10..Set. Set the corresponding External Match bit/output to 1 (MAT3 pin is HIGH if pinned out).\r
* 0b11..Toggle. Toggle the corresponding External Match bit/output.\r
*/\r
-#define CTIMER_EMR_EMC3(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EMC3_SHIFT)) & CTIMER_EMR_EMC3_MASK)\r
+#define CTIMER_EMR_EMC3(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_EMR_EMC3_SHIFT)) & CTIMER_EMR_EMC3_MASK)\r
/*! @} */\r
\r
-/*! @name CTCR - Count Control Register. The CTCR selects between Timer and Counter mode, and in Counter mode selects the signal and edge(s) for counting. */\r
+/*! @name CTCR - Count Control Register. The CTCR selects between Timer and Counter mode, and in Counter mode selects\r
+ * the signal and edge(s) for counting. */\r
/*! @{ */\r
-#define CTIMER_CTCR_CTMODE_MASK (0x3U)\r
-#define CTIMER_CTCR_CTMODE_SHIFT (0U)\r
-/*! CTMODE - Counter/Timer Mode This field selects which rising APB bus clock edges can increment Timer's Prescale Counter (PC), or clear PC and increment Timer Counter (TC). Timer Mode: the TC is incremented when the Prescale Counter matches the Prescale Register.\r
+#define CTIMER_CTCR_CTMODE_MASK (0x3U)\r
+#define CTIMER_CTCR_CTMODE_SHIFT (0U)\r
+/*! CTMODE - Counter/Timer Mode This field selects which rising APB bus clock edges can increment\r
+ * Timer's Prescale Counter (PC), or clear PC and increment Timer Counter (TC). Timer Mode: the TC\r
+ * is incremented when the Prescale Counter matches the Prescale Register.\r
* 0b00..Timer Mode. Incremented every rising APB bus clock edge.\r
* 0b01..Counter Mode rising edge. TC is incremented on rising edges on the CAP input selected by bits 3:2.\r
* 0b10..Counter Mode falling edge. TC is incremented on falling edges on the CAP input selected by bits 3:2.\r
* 0b11..Counter Mode dual edge. TC is incremented on both edges on the CAP input selected by bits 3:2.\r
*/\r
-#define CTIMER_CTCR_CTMODE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CTCR_CTMODE_SHIFT)) & CTIMER_CTCR_CTMODE_MASK)\r
-#define CTIMER_CTCR_CINSEL_MASK (0xCU)\r
-#define CTIMER_CTCR_CINSEL_SHIFT (2U)\r
-/*! CINSEL - Count Input Select When bits 1:0 in this register are not 00, these bits select which CAP pin is sampled for clocking. Note: If Counter mode is selected for a particular CAPn input in the CTCR, the 3 bits for that input in the Capture Control Register (CCR) must be programmed as 000. However, capture and/or interrupt can be selected for the other 3 CAPn inputs in the same timer.\r
+#define CTIMER_CTCR_CTMODE(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CTCR_CTMODE_SHIFT)) & CTIMER_CTCR_CTMODE_MASK)\r
+#define CTIMER_CTCR_CINSEL_MASK (0xCU)\r
+#define CTIMER_CTCR_CINSEL_SHIFT (2U)\r
+/*! CINSEL - Count Input Select When bits 1:0 in this register are not 00, these bits select which\r
+ * CAP pin is sampled for clocking. Note: If Counter mode is selected for a particular CAPn input\r
+ * in the CTCR, the 3 bits for that input in the Capture Control Register (CCR) must be\r
+ * programmed as 000. However, capture and/or interrupt can be selected for the other 3 CAPn inputs in the\r
+ * same timer.\r
* 0b00..Channel 0. CAPn.0 for CTIMERn\r
* 0b01..Channel 1. CAPn.1 for CTIMERn\r
* 0b10..Channel 2. CAPn.2 for CTIMERn\r
* 0b11..Channel 3. CAPn.3 for CTIMERn\r
*/\r
-#define CTIMER_CTCR_CINSEL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CTCR_CINSEL_SHIFT)) & CTIMER_CTCR_CINSEL_MASK)\r
-#define CTIMER_CTCR_ENCC_MASK (0x10U)\r
-#define CTIMER_CTCR_ENCC_SHIFT (4U)\r
-#define CTIMER_CTCR_ENCC(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CTCR_ENCC_SHIFT)) & CTIMER_CTCR_ENCC_MASK)\r
-#define CTIMER_CTCR_SELCC_MASK (0xE0U)\r
-#define CTIMER_CTCR_SELCC_SHIFT (5U)\r
-/*! SELCC - Edge select. When bit 4 is 1, these bits select which capture input edge will cause the timer and prescaler to be cleared. These bits have no effect when bit 4 is low. Values 0x2 to 0x3 and 0x6 to 0x7 are reserved.\r
+#define CTIMER_CTCR_CINSEL(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CTCR_CINSEL_SHIFT)) & CTIMER_CTCR_CINSEL_MASK)\r
+#define CTIMER_CTCR_ENCC_MASK (0x10U)\r
+#define CTIMER_CTCR_ENCC_SHIFT (4U)\r
+/*! ENCC - Setting this bit to 1 enables clearing of the timer and the prescaler when the\r
+ * capture-edge event specified in bits 7:5 occurs.\r
+ */\r
+#define CTIMER_CTCR_ENCC(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CTCR_ENCC_SHIFT)) & CTIMER_CTCR_ENCC_MASK)\r
+#define CTIMER_CTCR_SELCC_MASK (0xE0U)\r
+#define CTIMER_CTCR_SELCC_SHIFT (5U)\r
+/*! SELCC - Edge select. When bit 4 is 1, these bits select which capture input edge will cause the\r
+ * timer and prescaler to be cleared. These bits have no effect when bit 4 is low. Values 0x2 to\r
+ * 0x3 and 0x6 to 0x7 are reserved.\r
* 0b000..Channel 0 Rising Edge. Rising edge of the signal on capture channel 0 clears the timer (if bit 4 is set).\r
* 0b001..Channel 0 Falling Edge. Falling edge of the signal on capture channel 0 clears the timer (if bit 4 is set).\r
* 0b010..Channel 1 Rising Edge. Rising edge of the signal on capture channel 1 clears the timer (if bit 4 is set).\r
* 0b100..Channel 2 Rising Edge. Rising edge of the signal on capture channel 2 clears the timer (if bit 4 is set).\r
* 0b101..Channel 2 Falling Edge. Falling edge of the signal on capture channel 2 clears the timer (if bit 4 is set).\r
*/\r
-#define CTIMER_CTCR_SELCC(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CTCR_SELCC_SHIFT)) & CTIMER_CTCR_SELCC_MASK)\r
+#define CTIMER_CTCR_SELCC(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_CTCR_SELCC_SHIFT)) & CTIMER_CTCR_SELCC_MASK)\r
/*! @} */\r
\r
/*! @name PWMC - PWM Control Register. This register enables PWM mode for the external match pins. */\r
/*! @{ */\r
-#define CTIMER_PWMC_PWMEN0_MASK (0x1U)\r
-#define CTIMER_PWMC_PWMEN0_SHIFT (0U)\r
+#define CTIMER_PWMC_PWMEN0_MASK (0x1U)\r
+#define CTIMER_PWMC_PWMEN0_SHIFT (0U)\r
/*! PWMEN0 - PWM mode enable for channel0.\r
* 0b0..Match. CTIMERn_MAT0 is controlled by EM0.\r
* 0b1..PWM. PWM mode is enabled for CTIMERn_MAT0.\r
*/\r
-#define CTIMER_PWMC_PWMEN0(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PWMC_PWMEN0_SHIFT)) & CTIMER_PWMC_PWMEN0_MASK)\r
-#define CTIMER_PWMC_PWMEN1_MASK (0x2U)\r
-#define CTIMER_PWMC_PWMEN1_SHIFT (1U)\r
+#define CTIMER_PWMC_PWMEN0(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PWMC_PWMEN0_SHIFT)) & CTIMER_PWMC_PWMEN0_MASK)\r
+#define CTIMER_PWMC_PWMEN1_MASK (0x2U)\r
+#define CTIMER_PWMC_PWMEN1_SHIFT (1U)\r
/*! PWMEN1 - PWM mode enable for channel1.\r
* 0b0..Match. CTIMERn_MAT01 is controlled by EM1.\r
* 0b1..PWM. PWM mode is enabled for CTIMERn_MAT1.\r
*/\r
-#define CTIMER_PWMC_PWMEN1(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PWMC_PWMEN1_SHIFT)) & CTIMER_PWMC_PWMEN1_MASK)\r
-#define CTIMER_PWMC_PWMEN2_MASK (0x4U)\r
-#define CTIMER_PWMC_PWMEN2_SHIFT (2U)\r
+#define CTIMER_PWMC_PWMEN1(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PWMC_PWMEN1_SHIFT)) & CTIMER_PWMC_PWMEN1_MASK)\r
+#define CTIMER_PWMC_PWMEN2_MASK (0x4U)\r
+#define CTIMER_PWMC_PWMEN2_SHIFT (2U)\r
/*! PWMEN2 - PWM mode enable for channel2.\r
* 0b0..Match. CTIMERn_MAT2 is controlled by EM2.\r
* 0b1..PWM. PWM mode is enabled for CTIMERn_MAT2.\r
*/\r
-#define CTIMER_PWMC_PWMEN2(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PWMC_PWMEN2_SHIFT)) & CTIMER_PWMC_PWMEN2_MASK)\r
-#define CTIMER_PWMC_PWMEN3_MASK (0x8U)\r
-#define CTIMER_PWMC_PWMEN3_SHIFT (3U)\r
+#define CTIMER_PWMC_PWMEN2(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PWMC_PWMEN2_SHIFT)) & CTIMER_PWMC_PWMEN2_MASK)\r
+#define CTIMER_PWMC_PWMEN3_MASK (0x8U)\r
+#define CTIMER_PWMC_PWMEN3_SHIFT (3U)\r
/*! PWMEN3 - PWM mode enable for channel3. Note: It is recommended to use match channel 3 to set the PWM cycle.\r
* 0b0..Match. CTIMERn_MAT3 is controlled by EM3.\r
* 0b1..PWM. PWM mode is enabled for CT132Bn_MAT3.\r
*/\r
-#define CTIMER_PWMC_PWMEN3(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PWMC_PWMEN3_SHIFT)) & CTIMER_PWMC_PWMEN3_MASK)\r
+#define CTIMER_PWMC_PWMEN3(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_PWMC_PWMEN3_SHIFT)) & CTIMER_PWMC_PWMEN3_MASK)\r
/*! @} */\r
\r
/*! @name MSR - Match Shadow Register */\r
/*! @{ */\r
-#define CTIMER_MSR_SHADOWW_MASK (0xFFFFFFFFU)\r
-#define CTIMER_MSR_SHADOWW_SHIFT (0U)\r
-#define CTIMER_MSR_SHADOWW(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MSR_SHADOWW_SHIFT)) & CTIMER_MSR_SHADOWW_MASK)\r
+#define CTIMER_MSR_SHADOW_MASK (0xFFFFFFFFU)\r
+#define CTIMER_MSR_SHADOW_SHIFT (0U)\r
+/*! SHADOW - Timer counter match shadow value.\r
+ */\r
+#define CTIMER_MSR_SHADOW(x) (((uint32_t)(((uint32_t)(x)) << CTIMER_MSR_SHADOW_SHIFT)) & CTIMER_MSR_SHADOW_MASK)\r
/*! @} */\r
\r
/* The count of CTIMER_MSR */\r
-#define CTIMER_MSR_COUNT (4U)\r
-\r
+#define CTIMER_MSR_COUNT (4U)\r
\r
/*!\r
* @}\r
*/ /* end of group CTIMER_Register_Masks */\r
\r
-\r
/* CTIMER - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral CTIMER0 base address */\r
- #define CTIMER0_BASE (0x50008000u)\r
- /** Peripheral CTIMER0 base address */\r
- #define CTIMER0_BASE_NS (0x40008000u)\r
- /** Peripheral CTIMER0 base pointer */\r
- #define CTIMER0 ((CTIMER_Type *)CTIMER0_BASE)\r
- /** Peripheral CTIMER0 base pointer */\r
- #define CTIMER0_NS ((CTIMER_Type *)CTIMER0_BASE_NS)\r
- /** Peripheral CTIMER1 base address */\r
- #define CTIMER1_BASE (0x50009000u)\r
- /** Peripheral CTIMER1 base address */\r
- #define CTIMER1_BASE_NS (0x40009000u)\r
- /** Peripheral CTIMER1 base pointer */\r
- #define CTIMER1 ((CTIMER_Type *)CTIMER1_BASE)\r
- /** Peripheral CTIMER1 base pointer */\r
- #define CTIMER1_NS ((CTIMER_Type *)CTIMER1_BASE_NS)\r
- /** Peripheral CTIMER2 base address */\r
- #define CTIMER2_BASE (0x50028000u)\r
- /** Peripheral CTIMER2 base address */\r
- #define CTIMER2_BASE_NS (0x40028000u)\r
- /** Peripheral CTIMER2 base pointer */\r
- #define CTIMER2 ((CTIMER_Type *)CTIMER2_BASE)\r
- /** Peripheral CTIMER2 base pointer */\r
- #define CTIMER2_NS ((CTIMER_Type *)CTIMER2_BASE_NS)\r
- /** Peripheral CTIMER3 base address */\r
- #define CTIMER3_BASE (0x50029000u)\r
- /** Peripheral CTIMER3 base address */\r
- #define CTIMER3_BASE_NS (0x40029000u)\r
- /** Peripheral CTIMER3 base pointer */\r
- #define CTIMER3 ((CTIMER_Type *)CTIMER3_BASE)\r
- /** Peripheral CTIMER3 base pointer */\r
- #define CTIMER3_NS ((CTIMER_Type *)CTIMER3_BASE_NS)\r
- /** Peripheral CTIMER4 base address */\r
- #define CTIMER4_BASE (0x5002A000u)\r
- /** Peripheral CTIMER4 base address */\r
- #define CTIMER4_BASE_NS (0x4002A000u)\r
- /** Peripheral CTIMER4 base pointer */\r
- #define CTIMER4 ((CTIMER_Type *)CTIMER4_BASE)\r
- /** Peripheral CTIMER4 base pointer */\r
- #define CTIMER4_NS ((CTIMER_Type *)CTIMER4_BASE_NS)\r
- /** Array initializer of CTIMER peripheral base addresses */\r
- #define CTIMER_BASE_ADDRS { CTIMER0_BASE, CTIMER1_BASE, CTIMER2_BASE, CTIMER3_BASE, CTIMER4_BASE }\r
- /** Array initializer of CTIMER peripheral base pointers */\r
- #define CTIMER_BASE_PTRS { CTIMER0, CTIMER1, CTIMER2, CTIMER3, CTIMER4 }\r
- /** Array initializer of CTIMER peripheral base addresses */\r
- #define CTIMER_BASE_ADDRS_NS { CTIMER0_BASE_NS, CTIMER1_BASE_NS, CTIMER2_BASE_NS, CTIMER3_BASE_NS, CTIMER4_BASE_NS }\r
- /** Array initializer of CTIMER peripheral base pointers */\r
- #define CTIMER_BASE_PTRS_NS { CTIMER0_NS, CTIMER1_NS, CTIMER2_NS, CTIMER3_NS, CTIMER4_NS }\r
+/** Peripheral CTIMER0 base address */\r
+#define CTIMER0_BASE (0x50008000u)\r
+/** Peripheral CTIMER0 base address */\r
+#define CTIMER0_BASE_NS (0x40008000u)\r
+/** Peripheral CTIMER0 base pointer */\r
+#define CTIMER0 ((CTIMER_Type *)CTIMER0_BASE)\r
+/** Peripheral CTIMER0 base pointer */\r
+#define CTIMER0_NS ((CTIMER_Type *)CTIMER0_BASE_NS)\r
+/** Peripheral CTIMER1 base address */\r
+#define CTIMER1_BASE (0x50009000u)\r
+/** Peripheral CTIMER1 base address */\r
+#define CTIMER1_BASE_NS (0x40009000u)\r
+/** Peripheral CTIMER1 base pointer */\r
+#define CTIMER1 ((CTIMER_Type *)CTIMER1_BASE)\r
+/** Peripheral CTIMER1 base pointer */\r
+#define CTIMER1_NS ((CTIMER_Type *)CTIMER1_BASE_NS)\r
+/** Peripheral CTIMER2 base address */\r
+#define CTIMER2_BASE (0x50028000u)\r
+/** Peripheral CTIMER2 base address */\r
+#define CTIMER2_BASE_NS (0x40028000u)\r
+/** Peripheral CTIMER2 base pointer */\r
+#define CTIMER2 ((CTIMER_Type *)CTIMER2_BASE)\r
+/** Peripheral CTIMER2 base pointer */\r
+#define CTIMER2_NS ((CTIMER_Type *)CTIMER2_BASE_NS)\r
+/** Peripheral CTIMER3 base address */\r
+#define CTIMER3_BASE (0x50029000u)\r
+/** Peripheral CTIMER3 base address */\r
+#define CTIMER3_BASE_NS (0x40029000u)\r
+/** Peripheral CTIMER3 base pointer */\r
+#define CTIMER3 ((CTIMER_Type *)CTIMER3_BASE)\r
+/** Peripheral CTIMER3 base pointer */\r
+#define CTIMER3_NS ((CTIMER_Type *)CTIMER3_BASE_NS)\r
+/** Peripheral CTIMER4 base address */\r
+#define CTIMER4_BASE (0x5002A000u)\r
+/** Peripheral CTIMER4 base address */\r
+#define CTIMER4_BASE_NS (0x4002A000u)\r
+/** Peripheral CTIMER4 base pointer */\r
+#define CTIMER4 ((CTIMER_Type *)CTIMER4_BASE)\r
+/** Peripheral CTIMER4 base pointer */\r
+#define CTIMER4_NS ((CTIMER_Type *)CTIMER4_BASE_NS)\r
+/** Array initializer of CTIMER peripheral base addresses */\r
+#define CTIMER_BASE_ADDRS \\r
+ { \\r
+ CTIMER0_BASE, CTIMER1_BASE, CTIMER2_BASE, CTIMER3_BASE, CTIMER4_BASE \\r
+ }\r
+/** Array initializer of CTIMER peripheral base pointers */\r
+#define CTIMER_BASE_PTRS \\r
+ { \\r
+ CTIMER0, CTIMER1, CTIMER2, CTIMER3, CTIMER4 \\r
+ }\r
+/** Array initializer of CTIMER peripheral base addresses */\r
+#define CTIMER_BASE_ADDRS_NS \\r
+ { \\r
+ CTIMER0_BASE_NS, CTIMER1_BASE_NS, CTIMER2_BASE_NS, CTIMER3_BASE_NS, CTIMER4_BASE_NS \\r
+ }\r
+/** Array initializer of CTIMER peripheral base pointers */\r
+#define CTIMER_BASE_PTRS_NS \\r
+ { \\r
+ CTIMER0_NS, CTIMER1_NS, CTIMER2_NS, CTIMER3_NS, CTIMER4_NS \\r
+ }\r
#else\r
- /** Peripheral CTIMER0 base address */\r
- #define CTIMER0_BASE (0x40008000u)\r
- /** Peripheral CTIMER0 base pointer */\r
- #define CTIMER0 ((CTIMER_Type *)CTIMER0_BASE)\r
- /** Peripheral CTIMER1 base address */\r
- #define CTIMER1_BASE (0x40009000u)\r
- /** Peripheral CTIMER1 base pointer */\r
- #define CTIMER1 ((CTIMER_Type *)CTIMER1_BASE)\r
- /** Peripheral CTIMER2 base address */\r
- #define CTIMER2_BASE (0x40028000u)\r
- /** Peripheral CTIMER2 base pointer */\r
- #define CTIMER2 ((CTIMER_Type *)CTIMER2_BASE)\r
- /** Peripheral CTIMER3 base address */\r
- #define CTIMER3_BASE (0x40029000u)\r
- /** Peripheral CTIMER3 base pointer */\r
- #define CTIMER3 ((CTIMER_Type *)CTIMER3_BASE)\r
- /** Peripheral CTIMER4 base address */\r
- #define CTIMER4_BASE (0x4002A000u)\r
- /** Peripheral CTIMER4 base pointer */\r
- #define CTIMER4 ((CTIMER_Type *)CTIMER4_BASE)\r
- /** Array initializer of CTIMER peripheral base addresses */\r
- #define CTIMER_BASE_ADDRS { CTIMER0_BASE, CTIMER1_BASE, CTIMER2_BASE, CTIMER3_BASE, CTIMER4_BASE }\r
- /** Array initializer of CTIMER peripheral base pointers */\r
- #define CTIMER_BASE_PTRS { CTIMER0, CTIMER1, CTIMER2, CTIMER3, CTIMER4 }\r
+/** Peripheral CTIMER0 base address */\r
+#define CTIMER0_BASE (0x40008000u)\r
+/** Peripheral CTIMER0 base pointer */\r
+#define CTIMER0 ((CTIMER_Type *)CTIMER0_BASE)\r
+/** Peripheral CTIMER1 base address */\r
+#define CTIMER1_BASE (0x40009000u)\r
+/** Peripheral CTIMER1 base pointer */\r
+#define CTIMER1 ((CTIMER_Type *)CTIMER1_BASE)\r
+/** Peripheral CTIMER2 base address */\r
+#define CTIMER2_BASE (0x40028000u)\r
+/** Peripheral CTIMER2 base pointer */\r
+#define CTIMER2 ((CTIMER_Type *)CTIMER2_BASE)\r
+/** Peripheral CTIMER3 base address */\r
+#define CTIMER3_BASE (0x40029000u)\r
+/** Peripheral CTIMER3 base pointer */\r
+#define CTIMER3 ((CTIMER_Type *)CTIMER3_BASE)\r
+/** Peripheral CTIMER4 base address */\r
+#define CTIMER4_BASE (0x4002A000u)\r
+/** Peripheral CTIMER4 base pointer */\r
+#define CTIMER4 ((CTIMER_Type *)CTIMER4_BASE)\r
+/** Array initializer of CTIMER peripheral base addresses */\r
+#define CTIMER_BASE_ADDRS \\r
+ { \\r
+ CTIMER0_BASE, CTIMER1_BASE, CTIMER2_BASE, CTIMER3_BASE, CTIMER4_BASE \\r
+ }\r
+/** Array initializer of CTIMER peripheral base pointers */\r
+#define CTIMER_BASE_PTRS \\r
+ { \\r
+ CTIMER0, CTIMER1, CTIMER2, CTIMER3, CTIMER4 \\r
+ }\r
#endif\r
/** Interrupt vectors for the CTIMER peripheral type */\r
-#define CTIMER_IRQS { CTIMER0_IRQn, CTIMER1_IRQn, CTIMER2_IRQn, CTIMER3_IRQn, CTIMER4_IRQn }\r
+#define CTIMER_IRQS \\r
+ { \\r
+ CTIMER0_IRQn, CTIMER1_IRQn, CTIMER2_IRQn, CTIMER3_IRQn, CTIMER4_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group CTIMER_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
- -- DGBMAILBOX Peripheral Access Layer\r
+ -- DBGMAILBOX Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
\r
/*!\r
- * @addtogroup DGBMAILBOX_Peripheral_Access_Layer DGBMAILBOX Peripheral Access Layer\r
+ * @addtogroup DBGMAILBOX_Peripheral_Access_Layer DBGMAILBOX Peripheral Access Layer\r
* @{\r
*/\r
\r
-/** DGBMAILBOX - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CSW; /**< CRC mode register, offset: 0x0 */\r
- __IO uint32_t REQUEST; /**< CRC seed register, offset: 0x4 */\r
- __IO uint32_t RETURN; /**< Return value from ROM., offset: 0x8 */\r
- uint8_t RESERVED_0[240];\r
- __I uint32_t ID; /**< Identification register, offset: 0xFC */\r
-} DGBMAILBOX_Type;\r
+/** DBGMAILBOX - Register Layout Typedef */\r
+typedef struct\r
+{\r
+ __IO uint32_t CSW; /**< CRC mode register, offset: 0x0 */\r
+ __IO uint32_t REQUEST; /**< CRC seed register, offset: 0x4 */\r
+ __IO uint32_t RETURN; /**< Return value from ROM., offset: 0x8 */\r
+ uint8_t RESERVED_0[240];\r
+ __I uint32_t ID; /**< Identification register, offset: 0xFC */\r
+} DBGMAILBOX_Type;\r
\r
/* ----------------------------------------------------------------------------\r
- -- DGBMAILBOX Register Masks\r
+ -- DBGMAILBOX Register Masks\r
---------------------------------------------------------------------------- */\r
\r
/*!\r
- * @addtogroup DGBMAILBOX_Register_Masks DGBMAILBOX Register Masks\r
+ * @addtogroup DBGMAILBOX_Register_Masks DBGMAILBOX Register Masks\r
* @{\r
*/\r
\r
/*! @name CSW - CRC mode register */\r
/*! @{ */\r
-#define DGBMAILBOX_CSW_RESYNCH_REQ_MASK (0x1U)\r
-#define DGBMAILBOX_CSW_RESYNCH_REQ_SHIFT (0U)\r
-#define DGBMAILBOX_CSW_RESYNCH_REQ(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_CSW_RESYNCH_REQ_SHIFT)) & DGBMAILBOX_CSW_RESYNCH_REQ_MASK)\r
-#define DGBMAILBOX_CSW_REQ_PENDING_MASK (0x2U)\r
-#define DGBMAILBOX_CSW_REQ_PENDING_SHIFT (1U)\r
-#define DGBMAILBOX_CSW_REQ_PENDING(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_CSW_REQ_PENDING_SHIFT)) & DGBMAILBOX_CSW_REQ_PENDING_MASK)\r
-#define DGBMAILBOX_CSW_DBG_OR_ERR_MASK (0x4U)\r
-#define DGBMAILBOX_CSW_DBG_OR_ERR_SHIFT (2U)\r
-#define DGBMAILBOX_CSW_DBG_OR_ERR(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_CSW_DBG_OR_ERR_SHIFT)) & DGBMAILBOX_CSW_DBG_OR_ERR_MASK)\r
-#define DGBMAILBOX_CSW_AHB_OR_ERR_MASK (0x8U)\r
-#define DGBMAILBOX_CSW_AHB_OR_ERR_SHIFT (3U)\r
-#define DGBMAILBOX_CSW_AHB_OR_ERR(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_CSW_AHB_OR_ERR_SHIFT)) & DGBMAILBOX_CSW_AHB_OR_ERR_MASK)\r
-#define DGBMAILBOX_CSW_SOFT_RESET_MASK (0x10U)\r
-#define DGBMAILBOX_CSW_SOFT_RESET_SHIFT (4U)\r
-#define DGBMAILBOX_CSW_SOFT_RESET(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_CSW_SOFT_RESET_SHIFT)) & DGBMAILBOX_CSW_SOFT_RESET_MASK)\r
-#define DGBMAILBOX_CSW_CHIP_RESET_REQ_MASK (0x20U)\r
-#define DGBMAILBOX_CSW_CHIP_RESET_REQ_SHIFT (5U)\r
-#define DGBMAILBOX_CSW_CHIP_RESET_REQ(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_CSW_CHIP_RESET_REQ_SHIFT)) & DGBMAILBOX_CSW_CHIP_RESET_REQ_MASK)\r
+#define DBGMAILBOX_CSW_RESYNCH_REQ_MASK (0x1U)\r
+#define DBGMAILBOX_CSW_RESYNCH_REQ_SHIFT (0U)\r
+/*! RESYNCH_REQ - Debugger will set this bit to 1 to request a resynchronrisation\r
+ */\r
+#define DBGMAILBOX_CSW_RESYNCH_REQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_CSW_RESYNCH_REQ_SHIFT)) & DBGMAILBOX_CSW_RESYNCH_REQ_MASK)\r
+#define DBGMAILBOX_CSW_REQ_PENDING_MASK (0x2U)\r
+#define DBGMAILBOX_CSW_REQ_PENDING_SHIFT (1U)\r
+/*! REQ_PENDING - Request is pending from debugger (i.e unread value in REQUEST)\r
+ */\r
+#define DBGMAILBOX_CSW_REQ_PENDING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_CSW_REQ_PENDING_SHIFT)) & DBGMAILBOX_CSW_REQ_PENDING_MASK)\r
+#define DBGMAILBOX_CSW_DBG_OR_ERR_MASK (0x4U)\r
+#define DBGMAILBOX_CSW_DBG_OR_ERR_SHIFT (2U)\r
+/*! DBG_OR_ERR - Debugger overrun error (previous REQUEST overwritten before being picked up by ROM)\r
+ */\r
+#define DBGMAILBOX_CSW_DBG_OR_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_CSW_DBG_OR_ERR_SHIFT)) & DBGMAILBOX_CSW_DBG_OR_ERR_MASK)\r
+#define DBGMAILBOX_CSW_AHB_OR_ERR_MASK (0x8U)\r
+#define DBGMAILBOX_CSW_AHB_OR_ERR_SHIFT (3U)\r
+/*! AHB_OR_ERR - AHB overrun Error (Return value overwritten by ROM)\r
+ */\r
+#define DBGMAILBOX_CSW_AHB_OR_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_CSW_AHB_OR_ERR_SHIFT)) & DBGMAILBOX_CSW_AHB_OR_ERR_MASK)\r
+#define DBGMAILBOX_CSW_SOFT_RESET_MASK (0x10U)\r
+#define DBGMAILBOX_CSW_SOFT_RESET_SHIFT (4U)\r
+/*! SOFT_RESET - Soft Reset for DM (write-only from AHB, not readable and selfclearing). A write to\r
+ * this bit will cause a soft reset for DM.\r
+ */\r
+#define DBGMAILBOX_CSW_SOFT_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_CSW_SOFT_RESET_SHIFT)) & DBGMAILBOX_CSW_SOFT_RESET_MASK)\r
+#define DBGMAILBOX_CSW_CHIP_RESET_REQ_MASK (0x20U)\r
+#define DBGMAILBOX_CSW_CHIP_RESET_REQ_SHIFT (5U)\r
+/*! CHIP_RESET_REQ - Write only bit. Once written will cause the chip to reset (note that the DM is\r
+ * not reset by this reset as it is only resettable by a SOFT reset or a POR/BOD event)\r
+ */\r
+#define DBGMAILBOX_CSW_CHIP_RESET_REQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_CSW_CHIP_RESET_REQ_SHIFT)) & DBGMAILBOX_CSW_CHIP_RESET_REQ_MASK)\r
/*! @} */\r
\r
/*! @name REQUEST - CRC seed register */\r
/*! @{ */\r
-#define DGBMAILBOX_REQUEST_REQ_MASK (0xFFFFFFFFU)\r
-#define DGBMAILBOX_REQUEST_REQ_SHIFT (0U)\r
-#define DGBMAILBOX_REQUEST_REQ(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_REQUEST_REQ_SHIFT)) & DGBMAILBOX_REQUEST_REQ_MASK)\r
+#define DBGMAILBOX_REQUEST_REQ_MASK (0xFFFFFFFFU)\r
+#define DBGMAILBOX_REQUEST_REQ_SHIFT (0U)\r
+/*! REQ - Request Value\r
+ */\r
+#define DBGMAILBOX_REQUEST_REQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_REQUEST_REQ_SHIFT)) & DBGMAILBOX_REQUEST_REQ_MASK)\r
/*! @} */\r
\r
/*! @name RETURN - Return value from ROM. */\r
/*! @{ */\r
-#define DGBMAILBOX_RETURN_RET_MASK (0xFFFFFFFFU)\r
-#define DGBMAILBOX_RETURN_RET_SHIFT (0U)\r
-#define DGBMAILBOX_RETURN_RET(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_RETURN_RET_SHIFT)) & DGBMAILBOX_RETURN_RET_MASK)\r
+#define DBGMAILBOX_RETURN_RET_MASK (0xFFFFFFFFU)\r
+#define DBGMAILBOX_RETURN_RET_SHIFT (0U)\r
+/*! RET - The Return value from ROM.\r
+ */\r
+#define DBGMAILBOX_RETURN_RET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_RETURN_RET_SHIFT)) & DBGMAILBOX_RETURN_RET_MASK)\r
/*! @} */\r
\r
/*! @name ID - Identification register */\r
/*! @{ */\r
-#define DGBMAILBOX_ID_ID_MASK (0xFFFFFFFFU)\r
-#define DGBMAILBOX_ID_ID_SHIFT (0U)\r
-#define DGBMAILBOX_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << DGBMAILBOX_ID_ID_SHIFT)) & DGBMAILBOX_ID_ID_MASK)\r
+#define DBGMAILBOX_ID_ID_MASK (0xFFFFFFFFU)\r
+#define DBGMAILBOX_ID_ID_SHIFT (0U)\r
+/*! ID - Identification value.\r
+ */\r
+#define DBGMAILBOX_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << DBGMAILBOX_ID_ID_SHIFT)) & DBGMAILBOX_ID_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
- */ /* end of group DGBMAILBOX_Register_Masks */\r
-\r
+ */ /* end of group DBGMAILBOX_Register_Masks */\r
\r
-/* DGBMAILBOX - Peripheral instance base addresses */\r
+/* DBGMAILBOX - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral DGBMAILBOX base address */\r
- #define DGBMAILBOX_BASE (0x5009C000u)\r
- /** Peripheral DGBMAILBOX base address */\r
- #define DGBMAILBOX_BASE_NS (0x4009C000u)\r
- /** Peripheral DGBMAILBOX base pointer */\r
- #define DGBMAILBOX ((DGBMAILBOX_Type *)DGBMAILBOX_BASE)\r
- /** Peripheral DGBMAILBOX base pointer */\r
- #define DGBMAILBOX_NS ((DGBMAILBOX_Type *)DGBMAILBOX_BASE_NS)\r
- /** Array initializer of DGBMAILBOX peripheral base addresses */\r
- #define DGBMAILBOX_BASE_ADDRS { DGBMAILBOX_BASE }\r
- /** Array initializer of DGBMAILBOX peripheral base pointers */\r
- #define DGBMAILBOX_BASE_PTRS { DGBMAILBOX }\r
- /** Array initializer of DGBMAILBOX peripheral base addresses */\r
- #define DGBMAILBOX_BASE_ADDRS_NS { DGBMAILBOX_BASE_NS }\r
- /** Array initializer of DGBMAILBOX peripheral base pointers */\r
- #define DGBMAILBOX_BASE_PTRS_NS { DGBMAILBOX_NS }\r
+/** Peripheral DBGMAILBOX base address */\r
+#define DBGMAILBOX_BASE (0x5009C000u)\r
+/** Peripheral DBGMAILBOX base address */\r
+#define DBGMAILBOX_BASE_NS (0x4009C000u)\r
+/** Peripheral DBGMAILBOX base pointer */\r
+#define DBGMAILBOX ((DBGMAILBOX_Type *)DBGMAILBOX_BASE)\r
+/** Peripheral DBGMAILBOX base pointer */\r
+#define DBGMAILBOX_NS ((DBGMAILBOX_Type *)DBGMAILBOX_BASE_NS)\r
+/** Array initializer of DBGMAILBOX peripheral base addresses */\r
+#define DBGMAILBOX_BASE_ADDRS \\r
+ { \\r
+ DBGMAILBOX_BASE \\r
+ }\r
+/** Array initializer of DBGMAILBOX peripheral base pointers */\r
+#define DBGMAILBOX_BASE_PTRS \\r
+ { \\r
+ DBGMAILBOX \\r
+ }\r
+/** Array initializer of DBGMAILBOX peripheral base addresses */\r
+#define DBGMAILBOX_BASE_ADDRS_NS \\r
+ { \\r
+ DBGMAILBOX_BASE_NS \\r
+ }\r
+/** Array initializer of DBGMAILBOX peripheral base pointers */\r
+#define DBGMAILBOX_BASE_PTRS_NS \\r
+ { \\r
+ DBGMAILBOX_NS \\r
+ }\r
#else\r
- /** Peripheral DGBMAILBOX base address */\r
- #define DGBMAILBOX_BASE (0x4009C000u)\r
- /** Peripheral DGBMAILBOX base pointer */\r
- #define DGBMAILBOX ((DGBMAILBOX_Type *)DGBMAILBOX_BASE)\r
- /** Array initializer of DGBMAILBOX peripheral base addresses */\r
- #define DGBMAILBOX_BASE_ADDRS { DGBMAILBOX_BASE }\r
- /** Array initializer of DGBMAILBOX peripheral base pointers */\r
- #define DGBMAILBOX_BASE_PTRS { DGBMAILBOX }\r
+/** Peripheral DBGMAILBOX base address */\r
+#define DBGMAILBOX_BASE (0x4009C000u)\r
+/** Peripheral DBGMAILBOX base pointer */\r
+#define DBGMAILBOX ((DBGMAILBOX_Type *)DBGMAILBOX_BASE)\r
+/** Array initializer of DBGMAILBOX peripheral base addresses */\r
+#define DBGMAILBOX_BASE_ADDRS \\r
+ { \\r
+ DBGMAILBOX_BASE \\r
+ }\r
+/** Array initializer of DBGMAILBOX peripheral base pointers */\r
+#define DBGMAILBOX_BASE_PTRS \\r
+ { \\r
+ DBGMAILBOX \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
- */ /* end of group DGBMAILBOX_Peripheral_Access_Layer */\r
-\r
+ */ /* end of group DBGMAILBOX_Peripheral_Access_Layer */\r
\r
/* ----------------------------------------------------------------------------\r
-- DMA Peripheral Access Layer\r
*/\r
\r
/** DMA - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CTRL; /**< DMA control., offset: 0x0 */\r
- __I uint32_t INTSTAT; /**< Interrupt status., offset: 0x4 */\r
- __IO uint32_t SRAMBASE; /**< SRAM address of the channel configuration table., offset: 0x8 */\r
- uint8_t RESERVED_0[20];\r
- struct { /* offset: 0x20, array step: 0x5C */\r
- __IO uint32_t ENABLESET; /**< Channel Enable read and Set for all DMA channels., array offset: 0x20, array step: 0x5C */\r
- uint8_t RESERVED_0[4];\r
- __O uint32_t ENABLECLR; /**< Channel Enable Clear for all DMA channels., array offset: 0x28, array step: 0x5C */\r
- uint8_t RESERVED_1[4];\r
- __I uint32_t ACTIVE; /**< Channel Active status for all DMA channels., array offset: 0x30, array step: 0x5C */\r
- uint8_t RESERVED_2[4];\r
- __I uint32_t BUSY; /**< Channel Busy status for all DMA channels., array offset: 0x38, array step: 0x5C */\r
- uint8_t RESERVED_3[4];\r
- __IO uint32_t ERRINT; /**< Error Interrupt status for all DMA channels., array offset: 0x40, array step: 0x5C */\r
- uint8_t RESERVED_4[4];\r
- __IO uint32_t INTENSET; /**< Interrupt Enable read and Set for all DMA channels., array offset: 0x48, array step: 0x5C */\r
- uint8_t RESERVED_5[4];\r
- __O uint32_t INTENCLR; /**< Interrupt Enable Clear for all DMA channels., array offset: 0x50, array step: 0x5C */\r
- uint8_t RESERVED_6[4];\r
- __IO uint32_t INTA; /**< Interrupt A status for all DMA channels., array offset: 0x58, array step: 0x5C */\r
- uint8_t RESERVED_7[4];\r
- __IO uint32_t INTB; /**< Interrupt B status for all DMA channels., array offset: 0x60, array step: 0x5C */\r
- uint8_t RESERVED_8[4];\r
- __O uint32_t SETVALID; /**< Set ValidPending control bits for all DMA channels., array offset: 0x68, array step: 0x5C */\r
- uint8_t RESERVED_9[4];\r
- __O uint32_t SETTRIG; /**< Set Trigger control bits for all DMA channels., array offset: 0x70, array step: 0x5C */\r
- uint8_t RESERVED_10[4];\r
- __O uint32_t ABORT; /**< Channel Abort control for all DMA channels., array offset: 0x78, array step: 0x5C */\r
- } COMMON[1];\r
- uint8_t RESERVED_1[900];\r
- struct { /* offset: 0x400, array step: 0x10 */\r
- __IO uint32_t CFG; /**< Configuration register for DMA channel ., array offset: 0x400, array step: 0x10 */\r
- __I uint32_t CTLSTAT; /**< Control and status register for DMA channel ., array offset: 0x404, array step: 0x10 */\r
- __IO uint32_t XFERCFG; /**< Transfer configuration register for DMA channel ., array offset: 0x408, array step: 0x10 */\r
- uint8_t RESERVED_0[4];\r
- } CHANNEL[30];\r
+typedef struct\r
+{\r
+ __IO uint32_t CTRL; /**< DMA control., offset: 0x0 */\r
+ __I uint32_t INTSTAT; /**< Interrupt status., offset: 0x4 */\r
+ __IO uint32_t SRAMBASE; /**< SRAM address of the channel configuration table., offset: 0x8 */\r
+ uint8_t RESERVED_0[20];\r
+ struct\r
+ { /* offset: 0x20, array step: 0x5C */\r
+ __IO uint32_t\r
+ ENABLESET; /**< Channel Enable read and Set for all DMA channels., array offset: 0x20, array step: 0x5C */\r
+ uint8_t RESERVED_0[4];\r
+ __O uint32_t ENABLECLR; /**< Channel Enable Clear for all DMA channels., array offset: 0x28, array step: 0x5C */\r
+ uint8_t RESERVED_1[4];\r
+ __I uint32_t ACTIVE; /**< Channel Active status for all DMA channels., array offset: 0x30, array step: 0x5C */\r
+ uint8_t RESERVED_2[4];\r
+ __I uint32_t BUSY; /**< Channel Busy status for all DMA channels., array offset: 0x38, array step: 0x5C */\r
+ uint8_t RESERVED_3[4];\r
+ __IO uint32_t ERRINT; /**< Error Interrupt status for all DMA channels., array offset: 0x40, array step: 0x5C */\r
+ uint8_t RESERVED_4[4];\r
+ __IO uint32_t\r
+ INTENSET; /**< Interrupt Enable read and Set for all DMA channels., array offset: 0x48, array step: 0x5C */\r
+ uint8_t RESERVED_5[4];\r
+ __O uint32_t\r
+ INTENCLR; /**< Interrupt Enable Clear for all DMA channels., array offset: 0x50, array step: 0x5C */\r
+ uint8_t RESERVED_6[4];\r
+ __IO uint32_t INTA; /**< Interrupt A status for all DMA channels., array offset: 0x58, array step: 0x5C */\r
+ uint8_t RESERVED_7[4];\r
+ __IO uint32_t INTB; /**< Interrupt B status for all DMA channels., array offset: 0x60, array step: 0x5C */\r
+ uint8_t RESERVED_8[4];\r
+ __O uint32_t\r
+ SETVALID; /**< Set ValidPending control bits for all DMA channels., array offset: 0x68, array step: 0x5C */\r
+ uint8_t RESERVED_9[4];\r
+ __O uint32_t\r
+ SETTRIG; /**< Set Trigger control bits for all DMA channels., array offset: 0x70, array step: 0x5C */\r
+ uint8_t RESERVED_10[4];\r
+ __O uint32_t ABORT; /**< Channel Abort control for all DMA channels., array offset: 0x78, array step: 0x5C */\r
+ } COMMON[1];\r
+ uint8_t RESERVED_1[900];\r
+ struct\r
+ { /* offset: 0x400, array step: 0x10 */\r
+ __IO uint32_t CFG; /**< Configuration register for DMA channel ., array offset: 0x400, array step: 0x10 */\r
+ __I uint32_t\r
+ CTLSTAT; /**< Control and status register for DMA channel ., array offset: 0x404, array step: 0x10 */\r
+ __IO uint32_t\r
+ XFERCFG; /**< Transfer configuration register for DMA channel ., array offset: 0x408, array step: 0x10 */\r
+ uint8_t RESERVED_0[4];\r
+ } CHANNEL[23];\r
} DMA_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CTRL - DMA control. */\r
/*! @{ */\r
-#define DMA_CTRL_ENABLE_MASK (0x1U)\r
-#define DMA_CTRL_ENABLE_SHIFT (0U)\r
+#define DMA_CTRL_ENABLE_MASK (0x1U)\r
+#define DMA_CTRL_ENABLE_SHIFT (0U)\r
/*! ENABLE - DMA controller master enable.\r
- * 0b0..Disabled. The DMA controller is disabled. This clears any triggers that were asserted at the point when disabled, but does not prevent re-triggering when the DMA controller is re-enabled.\r
+ * 0b0..Disabled. The DMA controller is disabled. This clears any triggers that were asserted at the point when\r
+ * disabled, but does not prevent re-triggering when the DMA controller is re-enabled.\r
* 0b1..Enabled. The DMA controller is enabled.\r
*/\r
-#define DMA_CTRL_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << DMA_CTRL_ENABLE_SHIFT)) & DMA_CTRL_ENABLE_MASK)\r
+#define DMA_CTRL_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << DMA_CTRL_ENABLE_SHIFT)) & DMA_CTRL_ENABLE_MASK)\r
/*! @} */\r
\r
/*! @name INTSTAT - Interrupt status. */\r
/*! @{ */\r
-#define DMA_INTSTAT_ACTIVEINT_MASK (0x2U)\r
-#define DMA_INTSTAT_ACTIVEINT_SHIFT (1U)\r
+#define DMA_INTSTAT_ACTIVEINT_MASK (0x2U)\r
+#define DMA_INTSTAT_ACTIVEINT_SHIFT (1U)\r
/*! ACTIVEINT - Summarizes whether any enabled interrupts (other than error interrupts) are pending.\r
* 0b0..Not pending. No enabled interrupts are pending.\r
* 0b1..Pending. At least one enabled interrupt is pending.\r
*/\r
-#define DMA_INTSTAT_ACTIVEINT(x) (((uint32_t)(((uint32_t)(x)) << DMA_INTSTAT_ACTIVEINT_SHIFT)) & DMA_INTSTAT_ACTIVEINT_MASK)\r
-#define DMA_INTSTAT_ACTIVEERRINT_MASK (0x4U)\r
-#define DMA_INTSTAT_ACTIVEERRINT_SHIFT (2U)\r
+#define DMA_INTSTAT_ACTIVEINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_INTSTAT_ACTIVEINT_SHIFT)) & DMA_INTSTAT_ACTIVEINT_MASK)\r
+#define DMA_INTSTAT_ACTIVEERRINT_MASK (0x4U)\r
+#define DMA_INTSTAT_ACTIVEERRINT_SHIFT (2U)\r
/*! ACTIVEERRINT - Summarizes whether any error interrupts are pending.\r
* 0b0..Not pending. No error interrupts are pending.\r
* 0b1..Pending. At least one error interrupt is pending.\r
*/\r
-#define DMA_INTSTAT_ACTIVEERRINT(x) (((uint32_t)(((uint32_t)(x)) << DMA_INTSTAT_ACTIVEERRINT_SHIFT)) & DMA_INTSTAT_ACTIVEERRINT_MASK)\r
+#define DMA_INTSTAT_ACTIVEERRINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_INTSTAT_ACTIVEERRINT_SHIFT)) & DMA_INTSTAT_ACTIVEERRINT_MASK)\r
/*! @} */\r
\r
/*! @name SRAMBASE - SRAM address of the channel configuration table. */\r
/*! @{ */\r
-#define DMA_SRAMBASE_OFFSET_MASK (0xFFFFFE00U)\r
-#define DMA_SRAMBASE_OFFSET_SHIFT (9U)\r
-#define DMA_SRAMBASE_OFFSET(x) (((uint32_t)(((uint32_t)(x)) << DMA_SRAMBASE_OFFSET_SHIFT)) & DMA_SRAMBASE_OFFSET_MASK)\r
+#define DMA_SRAMBASE_OFFSET_MASK (0xFFFFFE00U)\r
+#define DMA_SRAMBASE_OFFSET_SHIFT (9U)\r
+/*! OFFSET - Address bits 31:9 of the beginning of the DMA descriptor table. For 18 channels, the\r
+ * table must begin on a 512 byte boundary.\r
+ */\r
+#define DMA_SRAMBASE_OFFSET(x) (((uint32_t)(((uint32_t)(x)) << DMA_SRAMBASE_OFFSET_SHIFT)) & DMA_SRAMBASE_OFFSET_MASK)\r
/*! @} */\r
\r
/*! @name COMMON_ENABLESET - Channel Enable read and Set for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_ENABLESET_ENA_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_ENABLESET_ENA_SHIFT (0U)\r
-#define DMA_COMMON_ENABLESET_ENA(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ENABLESET_ENA_SHIFT)) & DMA_COMMON_ENABLESET_ENA_MASK)\r
+#define DMA_COMMON_ENABLESET_ENA_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_ENABLESET_ENA_SHIFT (0U)\r
+/*! ENA - Enable for DMA channels. Bit n enables or disables DMA channel n. The number of bits =\r
+ * number of DMA channels in this device. Other bits are reserved. 0 = disabled. 1 = enabled.\r
+ */\r
+#define DMA_COMMON_ENABLESET_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ENABLESET_ENA_SHIFT)) & DMA_COMMON_ENABLESET_ENA_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_ENABLESET */\r
-#define DMA_COMMON_ENABLESET_COUNT (1U)\r
+#define DMA_COMMON_ENABLESET_COUNT (1U)\r
\r
/*! @name COMMON_ENABLECLR - Channel Enable Clear for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_ENABLECLR_CLR_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_ENABLECLR_CLR_SHIFT (0U)\r
-#define DMA_COMMON_ENABLECLR_CLR(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ENABLECLR_CLR_SHIFT)) & DMA_COMMON_ENABLECLR_CLR_MASK)\r
+#define DMA_COMMON_ENABLECLR_CLR_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_ENABLECLR_CLR_SHIFT (0U)\r
+/*! CLR - Writing ones to this register clears the corresponding bits in ENABLESET0. Bit n clears\r
+ * the channel enable bit n. The number of bits = number of DMA channels in this device. Other bits\r
+ * are reserved.\r
+ */\r
+#define DMA_COMMON_ENABLECLR_CLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ENABLECLR_CLR_SHIFT)) & DMA_COMMON_ENABLECLR_CLR_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_ENABLECLR */\r
-#define DMA_COMMON_ENABLECLR_COUNT (1U)\r
+#define DMA_COMMON_ENABLECLR_COUNT (1U)\r
\r
/*! @name COMMON_ACTIVE - Channel Active status for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_ACTIVE_ACT_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_ACTIVE_ACT_SHIFT (0U)\r
-#define DMA_COMMON_ACTIVE_ACT(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ACTIVE_ACT_SHIFT)) & DMA_COMMON_ACTIVE_ACT_MASK)\r
+#define DMA_COMMON_ACTIVE_ACT_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_ACTIVE_ACT_SHIFT (0U)\r
+/*! ACT - Active flag for DMA channel n. Bit n corresponds to DMA channel n. The number of bits =\r
+ * number of DMA channels in this device. Other bits are reserved. 0 = not active. 1 = active.\r
+ */\r
+#define DMA_COMMON_ACTIVE_ACT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ACTIVE_ACT_SHIFT)) & DMA_COMMON_ACTIVE_ACT_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_ACTIVE */\r
-#define DMA_COMMON_ACTIVE_COUNT (1U)\r
+#define DMA_COMMON_ACTIVE_COUNT (1U)\r
\r
/*! @name COMMON_BUSY - Channel Busy status for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_BUSY_BSY_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_BUSY_BSY_SHIFT (0U)\r
-#define DMA_COMMON_BUSY_BSY(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_BUSY_BSY_SHIFT)) & DMA_COMMON_BUSY_BSY_MASK)\r
+#define DMA_COMMON_BUSY_BSY_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_BUSY_BSY_SHIFT (0U)\r
+/*! BSY - Busy flag for DMA channel n. Bit n corresponds to DMA channel n. The number of bits =\r
+ * number of DMA channels in this device. Other bits are reserved. 0 = not busy. 1 = busy.\r
+ */\r
+#define DMA_COMMON_BUSY_BSY(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_BUSY_BSY_SHIFT)) & DMA_COMMON_BUSY_BSY_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_BUSY */\r
-#define DMA_COMMON_BUSY_COUNT (1U)\r
+#define DMA_COMMON_BUSY_COUNT (1U)\r
\r
/*! @name COMMON_ERRINT - Error Interrupt status for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_ERRINT_ERR_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_ERRINT_ERR_SHIFT (0U)\r
-#define DMA_COMMON_ERRINT_ERR(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ERRINT_ERR_SHIFT)) & DMA_COMMON_ERRINT_ERR_MASK)\r
+#define DMA_COMMON_ERRINT_ERR_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_ERRINT_ERR_SHIFT (0U)\r
+/*! ERR - Error Interrupt flag for DMA channel n. Bit n corresponds to DMA channel n. The number of\r
+ * bits = number of DMA channels in this device. Other bits are reserved. 0 = error interrupt is\r
+ * not active. 1 = error interrupt is active.\r
+ */\r
+#define DMA_COMMON_ERRINT_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ERRINT_ERR_SHIFT)) & DMA_COMMON_ERRINT_ERR_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_ERRINT */\r
-#define DMA_COMMON_ERRINT_COUNT (1U)\r
+#define DMA_COMMON_ERRINT_COUNT (1U)\r
\r
/*! @name COMMON_INTENSET - Interrupt Enable read and Set for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_INTENSET_INTEN_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_INTENSET_INTEN_SHIFT (0U)\r
-#define DMA_COMMON_INTENSET_INTEN(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_INTENSET_INTEN_SHIFT)) & DMA_COMMON_INTENSET_INTEN_MASK)\r
+#define DMA_COMMON_INTENSET_INTEN_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_INTENSET_INTEN_SHIFT (0U)\r
+/*! INTEN - Interrupt Enable read and set for DMA channel n. Bit n corresponds to DMA channel n. The\r
+ * number of bits = number of DMA channels in this device. Other bits are reserved. 0 =\r
+ * interrupt for DMA channel is disabled. 1 = interrupt for DMA channel is enabled.\r
+ */\r
+#define DMA_COMMON_INTENSET_INTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_INTENSET_INTEN_SHIFT)) & DMA_COMMON_INTENSET_INTEN_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_INTENSET */\r
-#define DMA_COMMON_INTENSET_COUNT (1U)\r
+#define DMA_COMMON_INTENSET_COUNT (1U)\r
\r
/*! @name COMMON_INTENCLR - Interrupt Enable Clear for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_INTENCLR_CLR_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_INTENCLR_CLR_SHIFT (0U)\r
-#define DMA_COMMON_INTENCLR_CLR(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_INTENCLR_CLR_SHIFT)) & DMA_COMMON_INTENCLR_CLR_MASK)\r
+#define DMA_COMMON_INTENCLR_CLR_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_INTENCLR_CLR_SHIFT (0U)\r
+/*! CLR - Writing ones to this register clears corresponding bits in the INTENSET0. Bit n\r
+ * corresponds to DMA channel n. The number of bits = number of DMA channels in this device. Other bits are\r
+ * reserved.\r
+ */\r
+#define DMA_COMMON_INTENCLR_CLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_INTENCLR_CLR_SHIFT)) & DMA_COMMON_INTENCLR_CLR_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_INTENCLR */\r
-#define DMA_COMMON_INTENCLR_COUNT (1U)\r
+#define DMA_COMMON_INTENCLR_COUNT (1U)\r
\r
/*! @name COMMON_INTA - Interrupt A status for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_INTA_IA_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_INTA_IA_SHIFT (0U)\r
-#define DMA_COMMON_INTA_IA(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_INTA_IA_SHIFT)) & DMA_COMMON_INTA_IA_MASK)\r
+#define DMA_COMMON_INTA_IA_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_INTA_IA_SHIFT (0U)\r
+/*! IA - Interrupt A status for DMA channel n. Bit n corresponds to DMA channel n. The number of\r
+ * bits = number of DMA channels in this device. Other bits are reserved. 0 = the DMA channel\r
+ * interrupt A is not active. 1 = the DMA channel interrupt A is active.\r
+ */\r
+#define DMA_COMMON_INTA_IA(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_INTA_IA_SHIFT)) & DMA_COMMON_INTA_IA_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_INTA */\r
-#define DMA_COMMON_INTA_COUNT (1U)\r
+#define DMA_COMMON_INTA_COUNT (1U)\r
\r
/*! @name COMMON_INTB - Interrupt B status for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_INTB_IB_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_INTB_IB_SHIFT (0U)\r
-#define DMA_COMMON_INTB_IB(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_INTB_IB_SHIFT)) & DMA_COMMON_INTB_IB_MASK)\r
+#define DMA_COMMON_INTB_IB_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_INTB_IB_SHIFT (0U)\r
+/*! IB - Interrupt B status for DMA channel n. Bit n corresponds to DMA channel n. The number of\r
+ * bits = number of DMA channels in this device. Other bits are reserved. 0 = the DMA channel\r
+ * interrupt B is not active. 1 = the DMA channel interrupt B is active.\r
+ */\r
+#define DMA_COMMON_INTB_IB(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_INTB_IB_SHIFT)) & DMA_COMMON_INTB_IB_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_INTB */\r
-#define DMA_COMMON_INTB_COUNT (1U)\r
+#define DMA_COMMON_INTB_COUNT (1U)\r
\r
/*! @name COMMON_SETVALID - Set ValidPending control bits for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_SETVALID_SV_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_SETVALID_SV_SHIFT (0U)\r
-#define DMA_COMMON_SETVALID_SV(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_SETVALID_SV_SHIFT)) & DMA_COMMON_SETVALID_SV_MASK)\r
+#define DMA_COMMON_SETVALID_SV_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_SETVALID_SV_SHIFT (0U)\r
+/*! SV - SETVALID control for DMA channel n. Bit n corresponds to DMA channel n. The number of bits\r
+ * = number of DMA channels in this device. Other bits are reserved. 0 = no effect. 1 = sets the\r
+ * VALIDPENDING control bit for DMA channel n\r
+ */\r
+#define DMA_COMMON_SETVALID_SV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_SETVALID_SV_SHIFT)) & DMA_COMMON_SETVALID_SV_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_SETVALID */\r
-#define DMA_COMMON_SETVALID_COUNT (1U)\r
+#define DMA_COMMON_SETVALID_COUNT (1U)\r
\r
/*! @name COMMON_SETTRIG - Set Trigger control bits for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_SETTRIG_TRIG_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_SETTRIG_TRIG_SHIFT (0U)\r
-#define DMA_COMMON_SETTRIG_TRIG(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_SETTRIG_TRIG_SHIFT)) & DMA_COMMON_SETTRIG_TRIG_MASK)\r
+#define DMA_COMMON_SETTRIG_TRIG_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_SETTRIG_TRIG_SHIFT (0U)\r
+/*! TRIG - Set Trigger control bit for DMA channel 0. Bit n corresponds to DMA channel n. The number\r
+ * of bits = number of DMA channels in this device. Other bits are reserved. 0 = no effect. 1 =\r
+ * sets the TRIG bit for DMA channel n.\r
+ */\r
+#define DMA_COMMON_SETTRIG_TRIG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_SETTRIG_TRIG_SHIFT)) & DMA_COMMON_SETTRIG_TRIG_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_SETTRIG */\r
-#define DMA_COMMON_SETTRIG_COUNT (1U)\r
+#define DMA_COMMON_SETTRIG_COUNT (1U)\r
\r
/*! @name COMMON_ABORT - Channel Abort control for all DMA channels. */\r
/*! @{ */\r
-#define DMA_COMMON_ABORT_ABORTCTRL_MASK (0xFFFFFFFFU)\r
-#define DMA_COMMON_ABORT_ABORTCTRL_SHIFT (0U)\r
-#define DMA_COMMON_ABORT_ABORTCTRL(x) (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ABORT_ABORTCTRL_SHIFT)) & DMA_COMMON_ABORT_ABORTCTRL_MASK)\r
+#define DMA_COMMON_ABORT_ABORTCTRL_MASK (0xFFFFFFFFU)\r
+#define DMA_COMMON_ABORT_ABORTCTRL_SHIFT (0U)\r
+/*! ABORTCTRL - Abort control for DMA channel 0. Bit n corresponds to DMA channel n. 0 = no effect.\r
+ * 1 = aborts DMA operations on channel n.\r
+ */\r
+#define DMA_COMMON_ABORT_ABORTCTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_COMMON_ABORT_ABORTCTRL_SHIFT)) & DMA_COMMON_ABORT_ABORTCTRL_MASK)\r
/*! @} */\r
\r
/* The count of DMA_COMMON_ABORT */\r
-#define DMA_COMMON_ABORT_COUNT (1U)\r
+#define DMA_COMMON_ABORT_COUNT (1U)\r
\r
/*! @name CHANNEL_CFG - Configuration register for DMA channel . */\r
/*! @{ */\r
-#define DMA_CHANNEL_CFG_PERIPHREQEN_MASK (0x1U)\r
-#define DMA_CHANNEL_CFG_PERIPHREQEN_SHIFT (0U)\r
-/*! PERIPHREQEN - Peripheral request Enable. If a DMA channel is used to perform a memory-to-memory move, any peripheral DMA request associated with that channel can be disabled to prevent any interaction between the peripheral and the DMA controller.\r
+#define DMA_CHANNEL_CFG_PERIPHREQEN_MASK (0x1U)\r
+#define DMA_CHANNEL_CFG_PERIPHREQEN_SHIFT (0U)\r
+/*! PERIPHREQEN - Peripheral request Enable. If a DMA channel is used to perform a memory-to-memory\r
+ * move, any peripheral DMA request associated with that channel can be disabled to prevent any\r
+ * interaction between the peripheral and the DMA controller.\r
* 0b0..Disabled. Peripheral DMA requests are disabled.\r
* 0b1..Enabled. Peripheral DMA requests are enabled.\r
*/\r
-#define DMA_CHANNEL_CFG_PERIPHREQEN(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_PERIPHREQEN_SHIFT)) & DMA_CHANNEL_CFG_PERIPHREQEN_MASK)\r
-#define DMA_CHANNEL_CFG_HWTRIGEN_MASK (0x2U)\r
-#define DMA_CHANNEL_CFG_HWTRIGEN_SHIFT (1U)\r
+#define DMA_CHANNEL_CFG_PERIPHREQEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_PERIPHREQEN_SHIFT)) & DMA_CHANNEL_CFG_PERIPHREQEN_MASK)\r
+#define DMA_CHANNEL_CFG_HWTRIGEN_MASK (0x2U)\r
+#define DMA_CHANNEL_CFG_HWTRIGEN_SHIFT (1U)\r
/*! HWTRIGEN - Hardware Triggering Enable for this channel.\r
* 0b0..Disabled. Hardware triggering is not used.\r
* 0b1..Enabled. Use hardware triggering.\r
*/\r
-#define DMA_CHANNEL_CFG_HWTRIGEN(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_HWTRIGEN_SHIFT)) & DMA_CHANNEL_CFG_HWTRIGEN_MASK)\r
-#define DMA_CHANNEL_CFG_TRIGPOL_MASK (0x10U)\r
-#define DMA_CHANNEL_CFG_TRIGPOL_SHIFT (4U)\r
+#define DMA_CHANNEL_CFG_HWTRIGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_HWTRIGEN_SHIFT)) & DMA_CHANNEL_CFG_HWTRIGEN_MASK)\r
+#define DMA_CHANNEL_CFG_TRIGPOL_MASK (0x10U)\r
+#define DMA_CHANNEL_CFG_TRIGPOL_SHIFT (4U)\r
/*! TRIGPOL - Trigger Polarity. Selects the polarity of a hardware trigger for this channel.\r
* 0b0..Active low - falling edge. Hardware trigger is active low or falling edge triggered, based on TRIGTYPE.\r
* 0b1..Active high - rising edge. Hardware trigger is active high or rising edge triggered, based on TRIGTYPE.\r
*/\r
-#define DMA_CHANNEL_CFG_TRIGPOL(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_TRIGPOL_SHIFT)) & DMA_CHANNEL_CFG_TRIGPOL_MASK)\r
-#define DMA_CHANNEL_CFG_TRIGTYPE_MASK (0x20U)\r
-#define DMA_CHANNEL_CFG_TRIGTYPE_SHIFT (5U)\r
+#define DMA_CHANNEL_CFG_TRIGPOL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_TRIGPOL_SHIFT)) & DMA_CHANNEL_CFG_TRIGPOL_MASK)\r
+#define DMA_CHANNEL_CFG_TRIGTYPE_MASK (0x20U)\r
+#define DMA_CHANNEL_CFG_TRIGTYPE_SHIFT (5U)\r
/*! TRIGTYPE - Trigger Type. Selects hardware trigger as edge triggered or level triggered.\r
- * 0b0..Edge. Hardware trigger is edge triggered. Transfers will be initiated and completed, as specified for a single trigger.\r
- * 0b1..Level. Hardware trigger is level triggered. Note that when level triggering without burst (BURSTPOWER = 0) is selected, only hardware triggers should be used on that channel. Transfers continue as long as the trigger level is asserted. Once the trigger is de-asserted, the transfer will be paused until the trigger is, again, asserted. However, the transfer will not be paused until any remaining transfers within the current BURSTPOWER length are completed.\r
- */\r
-#define DMA_CHANNEL_CFG_TRIGTYPE(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_TRIGTYPE_SHIFT)) & DMA_CHANNEL_CFG_TRIGTYPE_MASK)\r
-#define DMA_CHANNEL_CFG_TRIGBURST_MASK (0x40U)\r
-#define DMA_CHANNEL_CFG_TRIGBURST_SHIFT (6U)\r
+ * 0b0..Edge. Hardware trigger is edge triggered. Transfers will be initiated and completed, as specified for a single\r
+ * trigger. 0b1..Level. Hardware trigger is level triggered. Note that when level triggering without burst (BURSTPOWER =\r
+ * 0) is selected, only hardware triggers should be used on that channel. Transfers continue as long as the\r
+ * trigger level is asserted. Once the trigger is de-asserted, the transfer will be paused until the trigger\r
+ * is, again, asserted. However, the transfer will not be paused until any remaining transfers within the\r
+ * current BURSTPOWER length are completed.\r
+ */\r
+#define DMA_CHANNEL_CFG_TRIGTYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_TRIGTYPE_SHIFT)) & DMA_CHANNEL_CFG_TRIGTYPE_MASK)\r
+#define DMA_CHANNEL_CFG_TRIGBURST_MASK (0x40U)\r
+#define DMA_CHANNEL_CFG_TRIGBURST_SHIFT (6U)\r
/*! TRIGBURST - Trigger Burst. Selects whether hardware triggers cause a single or burst transfer.\r
* 0b0..Single transfer. Hardware trigger causes a single transfer.\r
- * 0b1..Burst transfer. When the trigger for this channel is set to edge triggered, a hardware trigger causes a burst transfer, as defined by BURSTPOWER. When the trigger for this channel is set to level triggered, a hardware trigger causes transfers to continue as long as the trigger is asserted, unless the transfer is complete.\r
- */\r
-#define DMA_CHANNEL_CFG_TRIGBURST(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_TRIGBURST_SHIFT)) & DMA_CHANNEL_CFG_TRIGBURST_MASK)\r
-#define DMA_CHANNEL_CFG_BURSTPOWER_MASK (0xF00U)\r
-#define DMA_CHANNEL_CFG_BURSTPOWER_SHIFT (8U)\r
-#define DMA_CHANNEL_CFG_BURSTPOWER(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_BURSTPOWER_SHIFT)) & DMA_CHANNEL_CFG_BURSTPOWER_MASK)\r
-#define DMA_CHANNEL_CFG_SRCBURSTWRAP_MASK (0x4000U)\r
-#define DMA_CHANNEL_CFG_SRCBURSTWRAP_SHIFT (14U)\r
-/*! SRCBURSTWRAP - Source Burst Wrap. When enabled, the source data address for the DMA is 'wrapped', meaning that the source address range for each burst will be the same. As an example, this could be used to read several sequential registers from a peripheral for each DMA burst, reading the same registers again for each burst.\r
+ * 0b1..Burst transfer. When the trigger for this channel is set to edge triggered, a hardware trigger causes a\r
+ * burst transfer, as defined by BURSTPOWER. When the trigger for this channel is set to level triggered, a\r
+ * hardware trigger causes transfers to continue as long as the trigger is asserted, unless the transfer is\r
+ * complete.\r
+ */\r
+#define DMA_CHANNEL_CFG_TRIGBURST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_TRIGBURST_SHIFT)) & DMA_CHANNEL_CFG_TRIGBURST_MASK)\r
+#define DMA_CHANNEL_CFG_BURSTPOWER_MASK (0xF00U)\r
+#define DMA_CHANNEL_CFG_BURSTPOWER_SHIFT (8U)\r
+/*! BURSTPOWER - Burst Power is used in two ways. It always selects the address wrap size when\r
+ * SRCBURSTWRAP and/or DSTBURSTWRAP modes are selected (see descriptions elsewhere in this register).\r
+ * When the TRIGBURST field elsewhere in this register = 1, Burst Power selects how many\r
+ * transfers are performed for each DMA trigger. This can be used, for example, with peripherals that\r
+ * contain a FIFO that can initiate a DMA operation when the FIFO reaches a certain level. 0000:\r
+ * Burst size = 1 (20). 0001: Burst size = 2 (21). 0010: Burst size = 4 (22). 1010: Burst size =\r
+ * 1024 (210). This corresponds to the maximum supported transfer count. others: not supported. The\r
+ * total transfer length as defined in the XFERCOUNT bits in the XFERCFG register must be an even\r
+ * multiple of the burst size.\r
+ */\r
+#define DMA_CHANNEL_CFG_BURSTPOWER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_BURSTPOWER_SHIFT)) & DMA_CHANNEL_CFG_BURSTPOWER_MASK)\r
+#define DMA_CHANNEL_CFG_SRCBURSTWRAP_MASK (0x4000U)\r
+#define DMA_CHANNEL_CFG_SRCBURSTWRAP_SHIFT (14U)\r
+/*! SRCBURSTWRAP - Source Burst Wrap. When enabled, the source data address for the DMA is\r
+ * 'wrapped', meaning that the source address range for each burst will be the same. As an example, this\r
+ * could be used to read several sequential registers from a peripheral for each DMA burst,\r
+ * reading the same registers again for each burst.\r
* 0b0..Disabled. Source burst wrapping is not enabled for this DMA channel.\r
* 0b1..Enabled. Source burst wrapping is enabled for this DMA channel.\r
*/\r
-#define DMA_CHANNEL_CFG_SRCBURSTWRAP(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_SRCBURSTWRAP_SHIFT)) & DMA_CHANNEL_CFG_SRCBURSTWRAP_MASK)\r
-#define DMA_CHANNEL_CFG_DSTBURSTWRAP_MASK (0x8000U)\r
-#define DMA_CHANNEL_CFG_DSTBURSTWRAP_SHIFT (15U)\r
-/*! DSTBURSTWRAP - Destination Burst Wrap. When enabled, the destination data address for the DMA is 'wrapped', meaning that the destination address range for each burst will be the same. As an example, this could be used to write several sequential registers to a peripheral for each DMA burst, writing the same registers again for each burst.\r
+#define DMA_CHANNEL_CFG_SRCBURSTWRAP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_SRCBURSTWRAP_SHIFT)) & DMA_CHANNEL_CFG_SRCBURSTWRAP_MASK)\r
+#define DMA_CHANNEL_CFG_DSTBURSTWRAP_MASK (0x8000U)\r
+#define DMA_CHANNEL_CFG_DSTBURSTWRAP_SHIFT (15U)\r
+/*! DSTBURSTWRAP - Destination Burst Wrap. When enabled, the destination data address for the DMA is\r
+ * 'wrapped', meaning that the destination address range for each burst will be the same. As an\r
+ * example, this could be used to write several sequential registers to a peripheral for each DMA\r
+ * burst, writing the same registers again for each burst.\r
* 0b0..Disabled. Destination burst wrapping is not enabled for this DMA channel.\r
* 0b1..Enabled. Destination burst wrapping is enabled for this DMA channel.\r
*/\r
-#define DMA_CHANNEL_CFG_DSTBURSTWRAP(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_DSTBURSTWRAP_SHIFT)) & DMA_CHANNEL_CFG_DSTBURSTWRAP_MASK)\r
-#define DMA_CHANNEL_CFG_CHPRIORITY_MASK (0x70000U)\r
-#define DMA_CHANNEL_CFG_CHPRIORITY_SHIFT (16U)\r
-#define DMA_CHANNEL_CFG_CHPRIORITY(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_CHPRIORITY_SHIFT)) & DMA_CHANNEL_CFG_CHPRIORITY_MASK)\r
+#define DMA_CHANNEL_CFG_DSTBURSTWRAP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_DSTBURSTWRAP_SHIFT)) & DMA_CHANNEL_CFG_DSTBURSTWRAP_MASK)\r
+#define DMA_CHANNEL_CFG_CHPRIORITY_MASK (0x70000U)\r
+#define DMA_CHANNEL_CFG_CHPRIORITY_SHIFT (16U)\r
+/*! CHPRIORITY - Priority of this channel when multiple DMA requests are pending. Eight priority\r
+ * levels are supported: 0x0 = highest priority. 0x7 = lowest priority.\r
+ */\r
+#define DMA_CHANNEL_CFG_CHPRIORITY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CFG_CHPRIORITY_SHIFT)) & DMA_CHANNEL_CFG_CHPRIORITY_MASK)\r
/*! @} */\r
\r
/* The count of DMA_CHANNEL_CFG */\r
-#define DMA_CHANNEL_CFG_COUNT (30U)\r
+#define DMA_CHANNEL_CFG_COUNT (23U)\r
\r
/*! @name CHANNEL_CTLSTAT - Control and status register for DMA channel . */\r
/*! @{ */\r
-#define DMA_CHANNEL_CTLSTAT_VALIDPENDING_MASK (0x1U)\r
-#define DMA_CHANNEL_CTLSTAT_VALIDPENDING_SHIFT (0U)\r
-/*! VALIDPENDING - Valid pending flag for this channel. This bit is set when a 1 is written to the corresponding bit in the related SETVALID register when CFGVALID = 1 for the same channel.\r
+#define DMA_CHANNEL_CTLSTAT_VALIDPENDING_MASK (0x1U)\r
+#define DMA_CHANNEL_CTLSTAT_VALIDPENDING_SHIFT (0U)\r
+/*! VALIDPENDING - Valid pending flag for this channel. This bit is set when a 1 is written to the\r
+ * corresponding bit in the related SETVALID register when CFGVALID = 1 for the same channel.\r
* 0b0..No effect. No effect on DMA operation.\r
* 0b1..Valid pending.\r
*/\r
-#define DMA_CHANNEL_CTLSTAT_VALIDPENDING(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CTLSTAT_VALIDPENDING_SHIFT)) & DMA_CHANNEL_CTLSTAT_VALIDPENDING_MASK)\r
-#define DMA_CHANNEL_CTLSTAT_TRIG_MASK (0x4U)\r
-#define DMA_CHANNEL_CTLSTAT_TRIG_SHIFT (2U)\r
-/*! TRIG - Trigger flag. Indicates that the trigger for this channel is currently set. This bit is cleared at the end of an entire transfer or upon reload when CLRTRIG = 1.\r
+#define DMA_CHANNEL_CTLSTAT_VALIDPENDING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CTLSTAT_VALIDPENDING_SHIFT)) & DMA_CHANNEL_CTLSTAT_VALIDPENDING_MASK)\r
+#define DMA_CHANNEL_CTLSTAT_TRIG_MASK (0x4U)\r
+#define DMA_CHANNEL_CTLSTAT_TRIG_SHIFT (2U)\r
+/*! TRIG - Trigger flag. Indicates that the trigger for this channel is currently set. This bit is\r
+ * cleared at the end of an entire transfer or upon reload when CLRTRIG = 1.\r
* 0b0..Not triggered. The trigger for this DMA channel is not set. DMA operations will not be carried out.\r
* 0b1..Triggered. The trigger for this DMA channel is set. DMA operations will be carried out.\r
*/\r
-#define DMA_CHANNEL_CTLSTAT_TRIG(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CTLSTAT_TRIG_SHIFT)) & DMA_CHANNEL_CTLSTAT_TRIG_MASK)\r
+#define DMA_CHANNEL_CTLSTAT_TRIG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_CTLSTAT_TRIG_SHIFT)) & DMA_CHANNEL_CTLSTAT_TRIG_MASK)\r
/*! @} */\r
\r
/* The count of DMA_CHANNEL_CTLSTAT */\r
-#define DMA_CHANNEL_CTLSTAT_COUNT (30U)\r
+#define DMA_CHANNEL_CTLSTAT_COUNT (23U)\r
\r
/*! @name CHANNEL_XFERCFG - Transfer configuration register for DMA channel . */\r
/*! @{ */\r
-#define DMA_CHANNEL_XFERCFG_CFGVALID_MASK (0x1U)\r
-#define DMA_CHANNEL_XFERCFG_CFGVALID_SHIFT (0U)\r
-/*! CFGVALID - Configuration Valid flag. This bit indicates whether the current channel descriptor is valid and can potentially be acted upon, if all other activation criteria are fulfilled.\r
+#define DMA_CHANNEL_XFERCFG_CFGVALID_MASK (0x1U)\r
+#define DMA_CHANNEL_XFERCFG_CFGVALID_SHIFT (0U)\r
+/*! CFGVALID - Configuration Valid flag. This bit indicates whether the current channel descriptor\r
+ * is valid and can potentially be acted upon, if all other activation criteria are fulfilled.\r
* 0b0..Not valid. The channel descriptor is not considered valid until validated by an associated SETVALID0 setting.\r
* 0b1..Valid. The current channel descriptor is considered valid.\r
*/\r
-#define DMA_CHANNEL_XFERCFG_CFGVALID(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_CFGVALID_SHIFT)) & DMA_CHANNEL_XFERCFG_CFGVALID_MASK)\r
-#define DMA_CHANNEL_XFERCFG_RELOAD_MASK (0x2U)\r
-#define DMA_CHANNEL_XFERCFG_RELOAD_SHIFT (1U)\r
-/*! RELOAD - Indicates whether the channel's control structure will be reloaded when the current descriptor is exhausted. Reloading allows ping-pong and linked transfers.\r
+#define DMA_CHANNEL_XFERCFG_CFGVALID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_CFGVALID_SHIFT)) & DMA_CHANNEL_XFERCFG_CFGVALID_MASK)\r
+#define DMA_CHANNEL_XFERCFG_RELOAD_MASK (0x2U)\r
+#define DMA_CHANNEL_XFERCFG_RELOAD_SHIFT (1U)\r
+/*! RELOAD - Indicates whether the channel's control structure will be reloaded when the current\r
+ * descriptor is exhausted. Reloading allows ping-pong and linked transfers.\r
* 0b0..Disabled. Do not reload the channels' control structure when the current descriptor is exhausted.\r
* 0b1..Enabled. Reload the channels' control structure when the current descriptor is exhausted.\r
*/\r
-#define DMA_CHANNEL_XFERCFG_RELOAD(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_RELOAD_SHIFT)) & DMA_CHANNEL_XFERCFG_RELOAD_MASK)\r
-#define DMA_CHANNEL_XFERCFG_SWTRIG_MASK (0x4U)\r
-#define DMA_CHANNEL_XFERCFG_SWTRIG_SHIFT (2U)\r
+#define DMA_CHANNEL_XFERCFG_RELOAD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_RELOAD_SHIFT)) & DMA_CHANNEL_XFERCFG_RELOAD_MASK)\r
+#define DMA_CHANNEL_XFERCFG_SWTRIG_MASK (0x4U)\r
+#define DMA_CHANNEL_XFERCFG_SWTRIG_SHIFT (2U)\r
/*! SWTRIG - Software Trigger.\r
- * 0b0..Not set. When written by software, the trigger for this channel is not set. A new trigger, as defined by the HWTRIGEN, TRIGPOL, and TRIGTYPE will be needed to start the channel.\r
- * 0b1..Set. When written by software, the trigger for this channel is set immediately. This feature should not be used with level triggering when TRIGBURST = 0.\r
- */\r
-#define DMA_CHANNEL_XFERCFG_SWTRIG(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_SWTRIG_SHIFT)) & DMA_CHANNEL_XFERCFG_SWTRIG_MASK)\r
-#define DMA_CHANNEL_XFERCFG_CLRTRIG_MASK (0x8U)\r
-#define DMA_CHANNEL_XFERCFG_CLRTRIG_SHIFT (3U)\r
+ * 0b0..Not set. When written by software, the trigger for this channel is not set. A new trigger, as defined by\r
+ * the HWTRIGEN, TRIGPOL, and TRIGTYPE will be needed to start the channel.\r
+ * 0b1..Set. When written by software, the trigger for this channel is set immediately. This feature should not\r
+ * be used with level triggering when TRIGBURST = 0.\r
+ */\r
+#define DMA_CHANNEL_XFERCFG_SWTRIG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_SWTRIG_SHIFT)) & DMA_CHANNEL_XFERCFG_SWTRIG_MASK)\r
+#define DMA_CHANNEL_XFERCFG_CLRTRIG_MASK (0x8U)\r
+#define DMA_CHANNEL_XFERCFG_CLRTRIG_SHIFT (3U)\r
/*! CLRTRIG - Clear Trigger.\r
- * 0b0..Not cleared. The trigger is not cleared when this descriptor is exhausted. If there is a reload, the next descriptor will be started.\r
- * 0b1..Cleared. The trigger is cleared when this descriptor is exhausted\r
- */\r
-#define DMA_CHANNEL_XFERCFG_CLRTRIG(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_CLRTRIG_SHIFT)) & DMA_CHANNEL_XFERCFG_CLRTRIG_MASK)\r
-#define DMA_CHANNEL_XFERCFG_SETINTA_MASK (0x10U)\r
-#define DMA_CHANNEL_XFERCFG_SETINTA_SHIFT (4U)\r
-/*! SETINTA - Set Interrupt flag A for this channel. There is no hardware distinction between interrupt A and B. They can be used by software to assist with more complex descriptor usage. By convention, interrupt A may be used when only one interrupt flag is needed.\r
+ * 0b0..Not cleared. The trigger is not cleared when this descriptor is exhausted. If there is a reload, the next\r
+ * descriptor will be started. 0b1..Cleared. The trigger is cleared when this descriptor is exhausted\r
+ */\r
+#define DMA_CHANNEL_XFERCFG_CLRTRIG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_CLRTRIG_SHIFT)) & DMA_CHANNEL_XFERCFG_CLRTRIG_MASK)\r
+#define DMA_CHANNEL_XFERCFG_SETINTA_MASK (0x10U)\r
+#define DMA_CHANNEL_XFERCFG_SETINTA_SHIFT (4U)\r
+/*! SETINTA - Set Interrupt flag A for this channel. There is no hardware distinction between\r
+ * interrupt A and B. They can be used by software to assist with more complex descriptor usage. By\r
+ * convention, interrupt A may be used when only one interrupt flag is needed.\r
* 0b0..No effect.\r
* 0b1..Set. The INTA flag for this channel will be set when the current descriptor is exhausted.\r
*/\r
-#define DMA_CHANNEL_XFERCFG_SETINTA(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_SETINTA_SHIFT)) & DMA_CHANNEL_XFERCFG_SETINTA_MASK)\r
-#define DMA_CHANNEL_XFERCFG_SETINTB_MASK (0x20U)\r
-#define DMA_CHANNEL_XFERCFG_SETINTB_SHIFT (5U)\r
-/*! SETINTB - Set Interrupt flag B for this channel. There is no hardware distinction between interrupt A and B. They can be used by software to assist with more complex descriptor usage. By convention, interrupt A may be used when only one interrupt flag is needed.\r
+#define DMA_CHANNEL_XFERCFG_SETINTA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_SETINTA_SHIFT)) & DMA_CHANNEL_XFERCFG_SETINTA_MASK)\r
+#define DMA_CHANNEL_XFERCFG_SETINTB_MASK (0x20U)\r
+#define DMA_CHANNEL_XFERCFG_SETINTB_SHIFT (5U)\r
+/*! SETINTB - Set Interrupt flag B for this channel. There is no hardware distinction between\r
+ * interrupt A and B. They can be used by software to assist with more complex descriptor usage. By\r
+ * convention, interrupt A may be used when only one interrupt flag is needed.\r
* 0b0..No effect.\r
* 0b1..Set. The INTB flag for this channel will be set when the current descriptor is exhausted.\r
*/\r
-#define DMA_CHANNEL_XFERCFG_SETINTB(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_SETINTB_SHIFT)) & DMA_CHANNEL_XFERCFG_SETINTB_MASK)\r
-#define DMA_CHANNEL_XFERCFG_WIDTH_MASK (0x300U)\r
-#define DMA_CHANNEL_XFERCFG_WIDTH_SHIFT (8U)\r
+#define DMA_CHANNEL_XFERCFG_SETINTB(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_SETINTB_SHIFT)) & DMA_CHANNEL_XFERCFG_SETINTB_MASK)\r
+#define DMA_CHANNEL_XFERCFG_WIDTH_MASK (0x300U)\r
+#define DMA_CHANNEL_XFERCFG_WIDTH_SHIFT (8U)\r
/*! WIDTH - Transfer width used for this DMA channel.\r
* 0b00..8-bit. 8-bit transfers are performed (8-bit source reads and destination writes).\r
* 0b01..16-bit. 6-bit transfers are performed (16-bit source reads and destination writes).\r
* 0b10..32-bit. 32-bit transfers are performed (32-bit source reads and destination writes).\r
* 0b11..Reserved. Reserved setting, do not use.\r
*/\r
-#define DMA_CHANNEL_XFERCFG_WIDTH(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_WIDTH_SHIFT)) & DMA_CHANNEL_XFERCFG_WIDTH_MASK)\r
-#define DMA_CHANNEL_XFERCFG_SRCINC_MASK (0x3000U)\r
-#define DMA_CHANNEL_XFERCFG_SRCINC_SHIFT (12U)\r
+#define DMA_CHANNEL_XFERCFG_WIDTH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_WIDTH_SHIFT)) & DMA_CHANNEL_XFERCFG_WIDTH_MASK)\r
+#define DMA_CHANNEL_XFERCFG_SRCINC_MASK (0x3000U)\r
+#define DMA_CHANNEL_XFERCFG_SRCINC_SHIFT (12U)\r
/*! SRCINC - Determines whether the source address is incremented for each DMA transfer.\r
- * 0b00..No increment. The source address is not incremented for each transfer. This is the usual case when the source is a peripheral device.\r
- * 0b01..1 x width. The source address is incremented by the amount specified by Width for each transfer. This is the usual case when the source is memory.\r
- * 0b10..2 x width. The source address is incremented by 2 times the amount specified by Width for each transfer.\r
- * 0b11..4 x width. The source address is incremented by 4 times the amount specified by Width for each transfer.\r
- */\r
-#define DMA_CHANNEL_XFERCFG_SRCINC(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_SRCINC_SHIFT)) & DMA_CHANNEL_XFERCFG_SRCINC_MASK)\r
-#define DMA_CHANNEL_XFERCFG_DSTINC_MASK (0xC000U)\r
-#define DMA_CHANNEL_XFERCFG_DSTINC_SHIFT (14U)\r
+ * 0b00..No increment. The source address is not incremented for each transfer. This is the usual case when the source\r
+ * is a peripheral device. 0b01..1 x width. The source address is incremented by the amount specified by Width for each\r
+ * transfer. This is the usual case when the source is memory. 0b10..2 x width. The source address is incremented by 2\r
+ * times the amount specified by Width for each transfer. 0b11..4 x width. The source address is incremented by 4 times\r
+ * the amount specified by Width for each transfer.\r
+ */\r
+#define DMA_CHANNEL_XFERCFG_SRCINC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_SRCINC_SHIFT)) & DMA_CHANNEL_XFERCFG_SRCINC_MASK)\r
+#define DMA_CHANNEL_XFERCFG_DSTINC_MASK (0xC000U)\r
+#define DMA_CHANNEL_XFERCFG_DSTINC_SHIFT (14U)\r
/*! DSTINC - Determines whether the destination address is incremented for each DMA transfer.\r
- * 0b00..No increment. The destination address is not incremented for each transfer. This is the usual case when the destination is a peripheral device.\r
- * 0b01..1 x width. The destination address is incremented by the amount specified by Width for each transfer. This is the usual case when the destination is memory.\r
+ * 0b00..No increment. The destination address is not incremented for each transfer. This is the usual case when\r
+ * the destination is a peripheral device.\r
+ * 0b01..1 x width. The destination address is incremented by the amount specified by Width for each transfer.\r
+ * This is the usual case when the destination is memory.\r
* 0b10..2 x width. The destination address is incremented by 2 times the amount specified by Width for each transfer.\r
* 0b11..4 x width. The destination address is incremented by 4 times the amount specified by Width for each transfer.\r
*/\r
-#define DMA_CHANNEL_XFERCFG_DSTINC(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_DSTINC_SHIFT)) & DMA_CHANNEL_XFERCFG_DSTINC_MASK)\r
-#define DMA_CHANNEL_XFERCFG_XFERCOUNT_MASK (0x3FF0000U)\r
-#define DMA_CHANNEL_XFERCFG_XFERCOUNT_SHIFT (16U)\r
-#define DMA_CHANNEL_XFERCFG_XFERCOUNT(x) (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_XFERCOUNT_SHIFT)) & DMA_CHANNEL_XFERCFG_XFERCOUNT_MASK)\r
+#define DMA_CHANNEL_XFERCFG_DSTINC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_DSTINC_SHIFT)) & DMA_CHANNEL_XFERCFG_DSTINC_MASK)\r
+#define DMA_CHANNEL_XFERCFG_XFERCOUNT_MASK (0x3FF0000U)\r
+#define DMA_CHANNEL_XFERCFG_XFERCOUNT_SHIFT (16U)\r
+/*! XFERCOUNT - Total number of transfers to be performed, minus 1 encoded. The number of bytes\r
+ * transferred is: (XFERCOUNT + 1) x data width (as defined by the WIDTH field). The DMA controller\r
+ * uses this bit field during transfer to count down. Hence, it cannot be used by software to read\r
+ * back the size of the transfer, for instance, in an interrupt handler. 0x0 = a total of 1\r
+ * transfer will be performed. 0x1 = a total of 2 transfers will be performed. 0x3FF = a total of\r
+ * 1,024 transfers will be performed.\r
+ */\r
+#define DMA_CHANNEL_XFERCFG_XFERCOUNT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << DMA_CHANNEL_XFERCFG_XFERCOUNT_SHIFT)) & DMA_CHANNEL_XFERCFG_XFERCOUNT_MASK)\r
/*! @} */\r
\r
/* The count of DMA_CHANNEL_XFERCFG */\r
-#define DMA_CHANNEL_XFERCFG_COUNT (30U)\r
-\r
+#define DMA_CHANNEL_XFERCFG_COUNT (23U)\r
\r
/*!\r
* @}\r
*/ /* end of group DMA_Register_Masks */\r
\r
-\r
/* DMA - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral DMA0 base address */\r
- #define DMA0_BASE (0x50082000u)\r
- /** Peripheral DMA0 base address */\r
- #define DMA0_BASE_NS (0x40082000u)\r
- /** Peripheral DMA0 base pointer */\r
- #define DMA0 ((DMA_Type *)DMA0_BASE)\r
- /** Peripheral DMA0 base pointer */\r
- #define DMA0_NS ((DMA_Type *)DMA0_BASE_NS)\r
- /** Peripheral DMA1 base address */\r
- #define DMA1_BASE (0x500A7000u)\r
- /** Peripheral DMA1 base address */\r
- #define DMA1_BASE_NS (0x400A7000u)\r
- /** Peripheral DMA1 base pointer */\r
- #define DMA1 ((DMA_Type *)DMA1_BASE)\r
- /** Peripheral DMA1 base pointer */\r
- #define DMA1_NS ((DMA_Type *)DMA1_BASE_NS)\r
- /** Array initializer of DMA peripheral base addresses */\r
- #define DMA_BASE_ADDRS { DMA0_BASE, DMA1_BASE }\r
- /** Array initializer of DMA peripheral base pointers */\r
- #define DMA_BASE_PTRS { DMA0, DMA1 }\r
- /** Array initializer of DMA peripheral base addresses */\r
- #define DMA_BASE_ADDRS_NS { DMA0_BASE_NS, DMA1_BASE_NS }\r
- /** Array initializer of DMA peripheral base pointers */\r
- #define DMA_BASE_PTRS_NS { DMA0_NS, DMA1_NS }\r
+/** Peripheral DMA0 base address */\r
+#define DMA0_BASE (0x50082000u)\r
+/** Peripheral DMA0 base address */\r
+#define DMA0_BASE_NS (0x40082000u)\r
+/** Peripheral DMA0 base pointer */\r
+#define DMA0 ((DMA_Type *)DMA0_BASE)\r
+/** Peripheral DMA0 base pointer */\r
+#define DMA0_NS ((DMA_Type *)DMA0_BASE_NS)\r
+/** Peripheral DMA1 base address */\r
+#define DMA1_BASE (0x500A7000u)\r
+/** Peripheral DMA1 base address */\r
+#define DMA1_BASE_NS (0x400A7000u)\r
+/** Peripheral DMA1 base pointer */\r
+#define DMA1 ((DMA_Type *)DMA1_BASE)\r
+/** Peripheral DMA1 base pointer */\r
+#define DMA1_NS ((DMA_Type *)DMA1_BASE_NS)\r
+/** Array initializer of DMA peripheral base addresses */\r
+#define DMA_BASE_ADDRS \\r
+ { \\r
+ DMA0_BASE, DMA1_BASE \\r
+ }\r
+/** Array initializer of DMA peripheral base pointers */\r
+#define DMA_BASE_PTRS \\r
+ { \\r
+ DMA0, DMA1 \\r
+ }\r
+/** Array initializer of DMA peripheral base addresses */\r
+#define DMA_BASE_ADDRS_NS \\r
+ { \\r
+ DMA0_BASE_NS, DMA1_BASE_NS \\r
+ }\r
+/** Array initializer of DMA peripheral base pointers */\r
+#define DMA_BASE_PTRS_NS \\r
+ { \\r
+ DMA0_NS, DMA1_NS \\r
+ }\r
#else\r
- /** Peripheral DMA0 base address */\r
- #define DMA0_BASE (0x40082000u)\r
- /** Peripheral DMA0 base pointer */\r
- #define DMA0 ((DMA_Type *)DMA0_BASE)\r
- /** Peripheral DMA1 base address */\r
- #define DMA1_BASE (0x400A7000u)\r
- /** Peripheral DMA1 base pointer */\r
- #define DMA1 ((DMA_Type *)DMA1_BASE)\r
- /** Array initializer of DMA peripheral base addresses */\r
- #define DMA_BASE_ADDRS { DMA0_BASE, DMA1_BASE }\r
- /** Array initializer of DMA peripheral base pointers */\r
- #define DMA_BASE_PTRS { DMA0, DMA1 }\r
+/** Peripheral DMA0 base address */\r
+#define DMA0_BASE (0x40082000u)\r
+/** Peripheral DMA0 base pointer */\r
+#define DMA0 ((DMA_Type *)DMA0_BASE)\r
+/** Peripheral DMA1 base address */\r
+#define DMA1_BASE (0x400A7000u)\r
+/** Peripheral DMA1 base pointer */\r
+#define DMA1 ((DMA_Type *)DMA1_BASE)\r
+/** Array initializer of DMA peripheral base addresses */\r
+#define DMA_BASE_ADDRS \\r
+ { \\r
+ DMA0_BASE, DMA1_BASE \\r
+ }\r
+/** Array initializer of DMA peripheral base pointers */\r
+#define DMA_BASE_PTRS \\r
+ { \\r
+ DMA0, DMA1 \\r
+ }\r
#endif\r
/** Interrupt vectors for the DMA peripheral type */\r
-#define DMA_IRQS { DMA0_IRQn, DMA1_IRQn }\r
+#define DMA_IRQS \\r
+ { \\r
+ DMA0_IRQn, DMA1_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group DMA_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- FLASH Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** FLASH - Register Layout Typedef */\r
-typedef struct {\r
- __O uint32_t CMD; /**< command register, offset: 0x0 */\r
- __O uint32_t EVENT; /**< event register, offset: 0x4 */\r
- __IO uint32_t BURST; /**< read burst register, offset: 0x8 */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t STARTA; /**< start (or only) address for next flash command, offset: 0x10 */\r
- __IO uint32_t STOPA; /**< end address for next flash command, if command operates on address ranges, offset: 0x14 */\r
- uint8_t RESERVED_1[104];\r
- __IO uint32_t DATAW[8]; /**< data register, word 0-7; Memory data, or command parameter, or command result., array offset: 0x80, array step: 0x4 */\r
- uint8_t RESERVED_2[3896];\r
- __O uint32_t INT_CLR_ENABLE; /**< Clear interrupt enable bits, offset: 0xFD8 */\r
- __O uint32_t INT_SET_ENABLE; /**< Set interrupt enable bits, offset: 0xFDC */\r
- __I uint32_t INT_STATUS; /**< Interrupt status bits, offset: 0xFE0 */\r
- __I uint32_t INT_ENABLE; /**< Interrupt enable bits, offset: 0xFE4 */\r
- __O uint32_t INT_CLR_STATUS; /**< Clear interrupt status bits, offset: 0xFE8 */\r
- __O uint32_t INT_SET_STATUS; /**< Set interrupt status bits, offset: 0xFEC */\r
- uint8_t RESERVED_3[12];\r
- __I uint32_t MODULE_ID; /**< Controller+Memory module identification, offset: 0xFFC */\r
+typedef struct\r
+{\r
+ __O uint32_t CMD; /**< command register, offset: 0x0 */\r
+ __O uint32_t EVENT; /**< event register, offset: 0x4 */\r
+ uint8_t RESERVED_0[8];\r
+ __IO uint32_t STARTA; /**< start (or only) address for next flash command, offset: 0x10 */\r
+ __IO uint32_t STOPA; /**< end address for next flash command, if command operates on address ranges, offset: 0x14 */\r
+ uint8_t RESERVED_1[104];\r
+ __IO uint32_t DATAW[4]; /**< data register, word 0-7; Memory data, or command parameter, or command result., array\r
+ offset: 0x80, array step: 0x4 */\r
+ uint8_t RESERVED_2[3912];\r
+ __O uint32_t INT_CLR_ENABLE; /**< Clear interrupt enable bits, offset: 0xFD8 */\r
+ __O uint32_t INT_SET_ENABLE; /**< Set interrupt enable bits, offset: 0xFDC */\r
+ __I uint32_t INT_STATUS; /**< Interrupt status bits, offset: 0xFE0 */\r
+ __I uint32_t INT_ENABLE; /**< Interrupt enable bits, offset: 0xFE4 */\r
+ __O uint32_t INT_CLR_STATUS; /**< Clear interrupt status bits, offset: 0xFE8 */\r
+ __O uint32_t INT_SET_STATUS; /**< Set interrupt status bits, offset: 0xFEC */\r
+ uint8_t RESERVED_3[12];\r
+ __I uint32_t MODULE_ID; /**< Controller+Memory module identification, offset: 0xFFC */\r
} FLASH_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CMD - command register */\r
/*! @{ */\r
-#define FLASH_CMD_CMD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMD_CMD_SHIFT (0U)\r
-#define FLASH_CMD_CMD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMD_CMD_SHIFT)) & FLASH_CMD_CMD_MASK)\r
+#define FLASH_CMD_CMD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CMD_CMD_SHIFT (0U)\r
+/*! CMD - command register.\r
+ */\r
+#define FLASH_CMD_CMD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMD_CMD_SHIFT)) & FLASH_CMD_CMD_MASK)\r
/*! @} */\r
\r
/*! @name EVENT - event register */\r
/*! @{ */\r
-#define FLASH_EVENT_RST_MASK (0x1U)\r
-#define FLASH_EVENT_RST_SHIFT (0U)\r
-#define FLASH_EVENT_RST(x) (((uint32_t)(((uint32_t)(x)) << FLASH_EVENT_RST_SHIFT)) & FLASH_EVENT_RST_MASK)\r
-#define FLASH_EVENT_WAKEUP_MASK (0x2U)\r
-#define FLASH_EVENT_WAKEUP_SHIFT (1U)\r
-#define FLASH_EVENT_WAKEUP(x) (((uint32_t)(((uint32_t)(x)) << FLASH_EVENT_WAKEUP_SHIFT)) & FLASH_EVENT_WAKEUP_MASK)\r
-#define FLASH_EVENT_ABORT_MASK (0x4U)\r
-#define FLASH_EVENT_ABORT_SHIFT (2U)\r
-#define FLASH_EVENT_ABORT(x) (((uint32_t)(((uint32_t)(x)) << FLASH_EVENT_ABORT_SHIFT)) & FLASH_EVENT_ABORT_MASK)\r
-/*! @} */\r
-\r
-/*! @name BURST - read burst register */\r
-/*! @{ */\r
-#define FLASH_BURST_XOR_MASK_MASK (0xFFFFFU)\r
-#define FLASH_BURST_XOR_MASK_SHIFT (0U)\r
-#define FLASH_BURST_XOR_MASK(x) (((uint32_t)(((uint32_t)(x)) << FLASH_BURST_XOR_MASK_SHIFT)) & FLASH_BURST_XOR_MASK_MASK)\r
-#define FLASH_BURST_DESCR1_MASK (0xF00000U)\r
-#define FLASH_BURST_DESCR1_SHIFT (20U)\r
-#define FLASH_BURST_DESCR1(x) (((uint32_t)(((uint32_t)(x)) << FLASH_BURST_DESCR1_SHIFT)) & FLASH_BURST_DESCR1_MASK)\r
-#define FLASH_BURST_DESCR2_MASK (0xF000000U)\r
-#define FLASH_BURST_DESCR2_SHIFT (24U)\r
-#define FLASH_BURST_DESCR2(x) (((uint32_t)(((uint32_t)(x)) << FLASH_BURST_DESCR2_SHIFT)) & FLASH_BURST_DESCR2_MASK)\r
-#define FLASH_BURST_DESCR3_MASK (0xF0000000U)\r
-#define FLASH_BURST_DESCR3_SHIFT (28U)\r
-#define FLASH_BURST_DESCR3(x) (((uint32_t)(((uint32_t)(x)) << FLASH_BURST_DESCR3_SHIFT)) & FLASH_BURST_DESCR3_MASK)\r
+#define FLASH_EVENT_RST_MASK (0x1U)\r
+#define FLASH_EVENT_RST_SHIFT (0U)\r
+/*! RST - When bit is set, the controller and flash are reset.\r
+ */\r
+#define FLASH_EVENT_RST(x) (((uint32_t)(((uint32_t)(x)) << FLASH_EVENT_RST_SHIFT)) & FLASH_EVENT_RST_MASK)\r
+#define FLASH_EVENT_WAKEUP_MASK (0x2U)\r
+#define FLASH_EVENT_WAKEUP_SHIFT (1U)\r
+/*! WAKEUP - When bit is set, the controller wakes up from whatever low power or powerdown mode was active.\r
+ */\r
+#define FLASH_EVENT_WAKEUP(x) (((uint32_t)(((uint32_t)(x)) << FLASH_EVENT_WAKEUP_SHIFT)) & FLASH_EVENT_WAKEUP_MASK)\r
+#define FLASH_EVENT_ABORT_MASK (0x4U)\r
+#define FLASH_EVENT_ABORT_SHIFT (2U)\r
+/*! ABORT - When bit is set, a running program/erase command is aborted.\r
+ */\r
+#define FLASH_EVENT_ABORT(x) (((uint32_t)(((uint32_t)(x)) << FLASH_EVENT_ABORT_SHIFT)) & FLASH_EVENT_ABORT_MASK)\r
/*! @} */\r
\r
/*! @name STARTA - start (or only) address for next flash command */\r
/*! @{ */\r
-#define FLASH_STARTA_STARTA_MASK (0x3FFFFU)\r
-#define FLASH_STARTA_STARTA_SHIFT (0U)\r
-#define FLASH_STARTA_STARTA(x) (((uint32_t)(((uint32_t)(x)) << FLASH_STARTA_STARTA_SHIFT)) & FLASH_STARTA_STARTA_MASK)\r
+#define FLASH_STARTA_STARTA_MASK (0x3FFFFU)\r
+#define FLASH_STARTA_STARTA_SHIFT (0U)\r
+/*! STARTA - Address / Start address for commands that take an address (range) as a parameter.\r
+ */\r
+#define FLASH_STARTA_STARTA(x) (((uint32_t)(((uint32_t)(x)) << FLASH_STARTA_STARTA_SHIFT)) & FLASH_STARTA_STARTA_MASK)\r
/*! @} */\r
\r
/*! @name STOPA - end address for next flash command, if command operates on address ranges */\r
/*! @{ */\r
-#define FLASH_STOPA_STOPA_MASK (0x3FFFFU)\r
-#define FLASH_STOPA_STOPA_SHIFT (0U)\r
-#define FLASH_STOPA_STOPA(x) (((uint32_t)(((uint32_t)(x)) << FLASH_STOPA_STOPA_SHIFT)) & FLASH_STOPA_STOPA_MASK)\r
+#define FLASH_STOPA_STOPA_MASK (0x3FFFFU)\r
+#define FLASH_STOPA_STOPA_SHIFT (0U)\r
+/*! STOPA - Stop address for commands that take an address range as a parameter (the word specified\r
+ * by STOPA is included in the address range).\r
+ */\r
+#define FLASH_STOPA_STOPA(x) (((uint32_t)(((uint32_t)(x)) << FLASH_STOPA_STOPA_SHIFT)) & FLASH_STOPA_STOPA_MASK)\r
/*! @} */\r
\r
/*! @name DATAW - data register, word 0-7; Memory data, or command parameter, or command result. */\r
/*! @{ */\r
-#define FLASH_DATAW_DATAW_MASK (0xFFFFFFFFU)\r
-#define FLASH_DATAW_DATAW_SHIFT (0U)\r
-#define FLASH_DATAW_DATAW(x) (((uint32_t)(((uint32_t)(x)) << FLASH_DATAW_DATAW_SHIFT)) & FLASH_DATAW_DATAW_MASK)\r
+#define FLASH_DATAW_DATAW_MASK (0xFFFFFFFFU)\r
+#define FLASH_DATAW_DATAW_SHIFT (0U)\r
+#define FLASH_DATAW_DATAW(x) (((uint32_t)(((uint32_t)(x)) << FLASH_DATAW_DATAW_SHIFT)) & FLASH_DATAW_DATAW_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_DATAW */\r
-#define FLASH_DATAW_COUNT (8U)\r
+#define FLASH_DATAW_COUNT (4U)\r
\r
/*! @name INT_CLR_ENABLE - Clear interrupt enable bits */\r
/*! @{ */\r
-#define FLASH_INT_CLR_ENABLE_FAIL_MASK (0x1U)\r
-#define FLASH_INT_CLR_ENABLE_FAIL_SHIFT (0U)\r
-#define FLASH_INT_CLR_ENABLE_FAIL(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_ENABLE_FAIL_SHIFT)) & FLASH_INT_CLR_ENABLE_FAIL_MASK)\r
-#define FLASH_INT_CLR_ENABLE_ERR_MASK (0x2U)\r
-#define FLASH_INT_CLR_ENABLE_ERR_SHIFT (1U)\r
-#define FLASH_INT_CLR_ENABLE_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_ENABLE_ERR_SHIFT)) & FLASH_INT_CLR_ENABLE_ERR_MASK)\r
-#define FLASH_INT_CLR_ENABLE_DONE_MASK (0x4U)\r
-#define FLASH_INT_CLR_ENABLE_DONE_SHIFT (2U)\r
-#define FLASH_INT_CLR_ENABLE_DONE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_ENABLE_DONE_SHIFT)) & FLASH_INT_CLR_ENABLE_DONE_MASK)\r
-#define FLASH_INT_CLR_ENABLE_ECC_ERR_MASK (0x8U)\r
-#define FLASH_INT_CLR_ENABLE_ECC_ERR_SHIFT (3U)\r
-#define FLASH_INT_CLR_ENABLE_ECC_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_ENABLE_ECC_ERR_SHIFT)) & FLASH_INT_CLR_ENABLE_ECC_ERR_MASK)\r
+#define FLASH_INT_CLR_ENABLE_FAIL_MASK (0x1U)\r
+#define FLASH_INT_CLR_ENABLE_FAIL_SHIFT (0U)\r
+/*! FAIL - When a CLR_ENABLE bit is written to 1, the corresponding INT_ENABLE bit is cleared.\r
+ */\r
+#define FLASH_INT_CLR_ENABLE_FAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_ENABLE_FAIL_SHIFT)) & FLASH_INT_CLR_ENABLE_FAIL_MASK)\r
+#define FLASH_INT_CLR_ENABLE_ERR_MASK (0x2U)\r
+#define FLASH_INT_CLR_ENABLE_ERR_SHIFT (1U)\r
+/*! ERR - When a CLR_ENABLE bit is written to 1, the corresponding INT_ENABLE bit is cleared.\r
+ */\r
+#define FLASH_INT_CLR_ENABLE_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_ENABLE_ERR_SHIFT)) & FLASH_INT_CLR_ENABLE_ERR_MASK)\r
+#define FLASH_INT_CLR_ENABLE_DONE_MASK (0x4U)\r
+#define FLASH_INT_CLR_ENABLE_DONE_SHIFT (2U)\r
+/*! DONE - When a CLR_ENABLE bit is written to 1, the corresponding INT_ENABLE bit is cleared.\r
+ */\r
+#define FLASH_INT_CLR_ENABLE_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_ENABLE_DONE_SHIFT)) & FLASH_INT_CLR_ENABLE_DONE_MASK)\r
+#define FLASH_INT_CLR_ENABLE_ECC_ERR_MASK (0x8U)\r
+#define FLASH_INT_CLR_ENABLE_ECC_ERR_SHIFT (3U)\r
+/*! ECC_ERR - When a CLR_ENABLE bit is written to 1, the corresponding INT_ENABLE bit is cleared.\r
+ */\r
+#define FLASH_INT_CLR_ENABLE_ECC_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_ENABLE_ECC_ERR_SHIFT)) & FLASH_INT_CLR_ENABLE_ECC_ERR_MASK)\r
/*! @} */\r
\r
/*! @name INT_SET_ENABLE - Set interrupt enable bits */\r
/*! @{ */\r
-#define FLASH_INT_SET_ENABLE_FAIL_MASK (0x1U)\r
-#define FLASH_INT_SET_ENABLE_FAIL_SHIFT (0U)\r
-#define FLASH_INT_SET_ENABLE_FAIL(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_ENABLE_FAIL_SHIFT)) & FLASH_INT_SET_ENABLE_FAIL_MASK)\r
-#define FLASH_INT_SET_ENABLE_ERR_MASK (0x2U)\r
-#define FLASH_INT_SET_ENABLE_ERR_SHIFT (1U)\r
-#define FLASH_INT_SET_ENABLE_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_ENABLE_ERR_SHIFT)) & FLASH_INT_SET_ENABLE_ERR_MASK)\r
-#define FLASH_INT_SET_ENABLE_DONE_MASK (0x4U)\r
-#define FLASH_INT_SET_ENABLE_DONE_SHIFT (2U)\r
-#define FLASH_INT_SET_ENABLE_DONE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_ENABLE_DONE_SHIFT)) & FLASH_INT_SET_ENABLE_DONE_MASK)\r
-#define FLASH_INT_SET_ENABLE_ECC_ERR_MASK (0x8U)\r
-#define FLASH_INT_SET_ENABLE_ECC_ERR_SHIFT (3U)\r
-#define FLASH_INT_SET_ENABLE_ECC_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_ENABLE_ECC_ERR_SHIFT)) & FLASH_INT_SET_ENABLE_ECC_ERR_MASK)\r
+#define FLASH_INT_SET_ENABLE_FAIL_MASK (0x1U)\r
+#define FLASH_INT_SET_ENABLE_FAIL_SHIFT (0U)\r
+/*! FAIL - When a SET_ENABLE bit is written to 1, the corresponding INT_ENABLE bit is set.\r
+ */\r
+#define FLASH_INT_SET_ENABLE_FAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_ENABLE_FAIL_SHIFT)) & FLASH_INT_SET_ENABLE_FAIL_MASK)\r
+#define FLASH_INT_SET_ENABLE_ERR_MASK (0x2U)\r
+#define FLASH_INT_SET_ENABLE_ERR_SHIFT (1U)\r
+/*! ERR - When a SET_ENABLE bit is written to 1, the corresponding INT_ENABLE bit is set.\r
+ */\r
+#define FLASH_INT_SET_ENABLE_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_ENABLE_ERR_SHIFT)) & FLASH_INT_SET_ENABLE_ERR_MASK)\r
+#define FLASH_INT_SET_ENABLE_DONE_MASK (0x4U)\r
+#define FLASH_INT_SET_ENABLE_DONE_SHIFT (2U)\r
+/*! DONE - When a SET_ENABLE bit is written to 1, the corresponding INT_ENABLE bit is set.\r
+ */\r
+#define FLASH_INT_SET_ENABLE_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_ENABLE_DONE_SHIFT)) & FLASH_INT_SET_ENABLE_DONE_MASK)\r
+#define FLASH_INT_SET_ENABLE_ECC_ERR_MASK (0x8U)\r
+#define FLASH_INT_SET_ENABLE_ECC_ERR_SHIFT (3U)\r
+/*! ECC_ERR - When a SET_ENABLE bit is written to 1, the corresponding INT_ENABLE bit is set.\r
+ */\r
+#define FLASH_INT_SET_ENABLE_ECC_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_ENABLE_ECC_ERR_SHIFT)) & FLASH_INT_SET_ENABLE_ECC_ERR_MASK)\r
/*! @} */\r
\r
/*! @name INT_STATUS - Interrupt status bits */\r
/*! @{ */\r
-#define FLASH_INT_STATUS_FAIL_MASK (0x1U)\r
-#define FLASH_INT_STATUS_FAIL_SHIFT (0U)\r
-#define FLASH_INT_STATUS_FAIL(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_STATUS_FAIL_SHIFT)) & FLASH_INT_STATUS_FAIL_MASK)\r
-#define FLASH_INT_STATUS_ERR_MASK (0x2U)\r
-#define FLASH_INT_STATUS_ERR_SHIFT (1U)\r
-#define FLASH_INT_STATUS_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_STATUS_ERR_SHIFT)) & FLASH_INT_STATUS_ERR_MASK)\r
-#define FLASH_INT_STATUS_DONE_MASK (0x4U)\r
-#define FLASH_INT_STATUS_DONE_SHIFT (2U)\r
-#define FLASH_INT_STATUS_DONE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_STATUS_DONE_SHIFT)) & FLASH_INT_STATUS_DONE_MASK)\r
-#define FLASH_INT_STATUS_ECC_ERR_MASK (0x8U)\r
-#define FLASH_INT_STATUS_ECC_ERR_SHIFT (3U)\r
-#define FLASH_INT_STATUS_ECC_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_STATUS_ECC_ERR_SHIFT)) & FLASH_INT_STATUS_ECC_ERR_MASK)\r
+#define FLASH_INT_STATUS_FAIL_MASK (0x1U)\r
+#define FLASH_INT_STATUS_FAIL_SHIFT (0U)\r
+/*! FAIL - This status bit is set if execution of a (legal) command failed.\r
+ */\r
+#define FLASH_INT_STATUS_FAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_STATUS_FAIL_SHIFT)) & FLASH_INT_STATUS_FAIL_MASK)\r
+#define FLASH_INT_STATUS_ERR_MASK (0x2U)\r
+#define FLASH_INT_STATUS_ERR_SHIFT (1U)\r
+/*! ERR - This status bit is set if execution of an illegal command is detected.\r
+ */\r
+#define FLASH_INT_STATUS_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_STATUS_ERR_SHIFT)) & FLASH_INT_STATUS_ERR_MASK)\r
+#define FLASH_INT_STATUS_DONE_MASK (0x4U)\r
+#define FLASH_INT_STATUS_DONE_SHIFT (2U)\r
+/*! DONE - This status bit is set at the end of command execution.\r
+ */\r
+#define FLASH_INT_STATUS_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_STATUS_DONE_SHIFT)) & FLASH_INT_STATUS_DONE_MASK)\r
+#define FLASH_INT_STATUS_ECC_ERR_MASK (0x8U)\r
+#define FLASH_INT_STATUS_ECC_ERR_SHIFT (3U)\r
+/*! ECC_ERR - This status bit is set if, during a memory read operation (either a user-requested\r
+ * read, or a speculative read, or reads performed by a controller command), a correctable or\r
+ * uncorrectable error is detected by ECC decoding logic.\r
+ */\r
+#define FLASH_INT_STATUS_ECC_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_STATUS_ECC_ERR_SHIFT)) & FLASH_INT_STATUS_ECC_ERR_MASK)\r
/*! @} */\r
\r
/*! @name INT_ENABLE - Interrupt enable bits */\r
/*! @{ */\r
-#define FLASH_INT_ENABLE_FAIL_MASK (0x1U)\r
-#define FLASH_INT_ENABLE_FAIL_SHIFT (0U)\r
-#define FLASH_INT_ENABLE_FAIL(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_ENABLE_FAIL_SHIFT)) & FLASH_INT_ENABLE_FAIL_MASK)\r
-#define FLASH_INT_ENABLE_ERR_MASK (0x2U)\r
-#define FLASH_INT_ENABLE_ERR_SHIFT (1U)\r
-#define FLASH_INT_ENABLE_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_ENABLE_ERR_SHIFT)) & FLASH_INT_ENABLE_ERR_MASK)\r
-#define FLASH_INT_ENABLE_DONE_MASK (0x4U)\r
-#define FLASH_INT_ENABLE_DONE_SHIFT (2U)\r
-#define FLASH_INT_ENABLE_DONE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_ENABLE_DONE_SHIFT)) & FLASH_INT_ENABLE_DONE_MASK)\r
-#define FLASH_INT_ENABLE_ECC_ERR_MASK (0x8U)\r
-#define FLASH_INT_ENABLE_ECC_ERR_SHIFT (3U)\r
-#define FLASH_INT_ENABLE_ECC_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_ENABLE_ECC_ERR_SHIFT)) & FLASH_INT_ENABLE_ECC_ERR_MASK)\r
+#define FLASH_INT_ENABLE_FAIL_MASK (0x1U)\r
+#define FLASH_INT_ENABLE_FAIL_SHIFT (0U)\r
+/*! FAIL - If an INT_ENABLE bit is set, an interrupt request will be generated if the corresponding INT_STATUS bit is\r
+ * high.\r
+ */\r
+#define FLASH_INT_ENABLE_FAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_ENABLE_FAIL_SHIFT)) & FLASH_INT_ENABLE_FAIL_MASK)\r
+#define FLASH_INT_ENABLE_ERR_MASK (0x2U)\r
+#define FLASH_INT_ENABLE_ERR_SHIFT (1U)\r
+/*! ERR - If an INT_ENABLE bit is set, an interrupt request will be generated if the corresponding INT_STATUS bit is\r
+ * high.\r
+ */\r
+#define FLASH_INT_ENABLE_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_ENABLE_ERR_SHIFT)) & FLASH_INT_ENABLE_ERR_MASK)\r
+#define FLASH_INT_ENABLE_DONE_MASK (0x4U)\r
+#define FLASH_INT_ENABLE_DONE_SHIFT (2U)\r
+/*! DONE - If an INT_ENABLE bit is set, an interrupt request will be generated if the corresponding INT_STATUS bit is\r
+ * high.\r
+ */\r
+#define FLASH_INT_ENABLE_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_ENABLE_DONE_SHIFT)) & FLASH_INT_ENABLE_DONE_MASK)\r
+#define FLASH_INT_ENABLE_ECC_ERR_MASK (0x8U)\r
+#define FLASH_INT_ENABLE_ECC_ERR_SHIFT (3U)\r
+/*! ECC_ERR - If an INT_ENABLE bit is set, an interrupt request will be generated if the corresponding INT_STATUS bit is\r
+ * high.\r
+ */\r
+#define FLASH_INT_ENABLE_ECC_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_ENABLE_ECC_ERR_SHIFT)) & FLASH_INT_ENABLE_ECC_ERR_MASK)\r
/*! @} */\r
\r
/*! @name INT_CLR_STATUS - Clear interrupt status bits */\r
/*! @{ */\r
-#define FLASH_INT_CLR_STATUS_FAIL_MASK (0x1U)\r
-#define FLASH_INT_CLR_STATUS_FAIL_SHIFT (0U)\r
-#define FLASH_INT_CLR_STATUS_FAIL(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_STATUS_FAIL_SHIFT)) & FLASH_INT_CLR_STATUS_FAIL_MASK)\r
-#define FLASH_INT_CLR_STATUS_ERR_MASK (0x2U)\r
-#define FLASH_INT_CLR_STATUS_ERR_SHIFT (1U)\r
-#define FLASH_INT_CLR_STATUS_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_STATUS_ERR_SHIFT)) & FLASH_INT_CLR_STATUS_ERR_MASK)\r
-#define FLASH_INT_CLR_STATUS_DONE_MASK (0x4U)\r
-#define FLASH_INT_CLR_STATUS_DONE_SHIFT (2U)\r
-#define FLASH_INT_CLR_STATUS_DONE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_STATUS_DONE_SHIFT)) & FLASH_INT_CLR_STATUS_DONE_MASK)\r
-#define FLASH_INT_CLR_STATUS_ECC_ERR_MASK (0x8U)\r
-#define FLASH_INT_CLR_STATUS_ECC_ERR_SHIFT (3U)\r
-#define FLASH_INT_CLR_STATUS_ECC_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_STATUS_ECC_ERR_SHIFT)) & FLASH_INT_CLR_STATUS_ECC_ERR_MASK)\r
+#define FLASH_INT_CLR_STATUS_FAIL_MASK (0x1U)\r
+#define FLASH_INT_CLR_STATUS_FAIL_SHIFT (0U)\r
+/*! FAIL - When a CLR_STATUS bit is written to 1, the corresponding INT_STATUS bit is cleared.\r
+ */\r
+#define FLASH_INT_CLR_STATUS_FAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_STATUS_FAIL_SHIFT)) & FLASH_INT_CLR_STATUS_FAIL_MASK)\r
+#define FLASH_INT_CLR_STATUS_ERR_MASK (0x2U)\r
+#define FLASH_INT_CLR_STATUS_ERR_SHIFT (1U)\r
+/*! ERR - When a CLR_STATUS bit is written to 1, the corresponding INT_STATUS bit is cleared.\r
+ */\r
+#define FLASH_INT_CLR_STATUS_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_STATUS_ERR_SHIFT)) & FLASH_INT_CLR_STATUS_ERR_MASK)\r
+#define FLASH_INT_CLR_STATUS_DONE_MASK (0x4U)\r
+#define FLASH_INT_CLR_STATUS_DONE_SHIFT (2U)\r
+/*! DONE - When a CLR_STATUS bit is written to 1, the corresponding INT_STATUS bit is cleared.\r
+ */\r
+#define FLASH_INT_CLR_STATUS_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_STATUS_DONE_SHIFT)) & FLASH_INT_CLR_STATUS_DONE_MASK)\r
+#define FLASH_INT_CLR_STATUS_ECC_ERR_MASK (0x8U)\r
+#define FLASH_INT_CLR_STATUS_ECC_ERR_SHIFT (3U)\r
+/*! ECC_ERR - When a CLR_STATUS bit is written to 1, the corresponding INT_STATUS bit is cleared.\r
+ */\r
+#define FLASH_INT_CLR_STATUS_ECC_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_CLR_STATUS_ECC_ERR_SHIFT)) & FLASH_INT_CLR_STATUS_ECC_ERR_MASK)\r
/*! @} */\r
\r
/*! @name INT_SET_STATUS - Set interrupt status bits */\r
/*! @{ */\r
-#define FLASH_INT_SET_STATUS_FAIL_MASK (0x1U)\r
-#define FLASH_INT_SET_STATUS_FAIL_SHIFT (0U)\r
-#define FLASH_INT_SET_STATUS_FAIL(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_STATUS_FAIL_SHIFT)) & FLASH_INT_SET_STATUS_FAIL_MASK)\r
-#define FLASH_INT_SET_STATUS_ERR_MASK (0x2U)\r
-#define FLASH_INT_SET_STATUS_ERR_SHIFT (1U)\r
-#define FLASH_INT_SET_STATUS_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_STATUS_ERR_SHIFT)) & FLASH_INT_SET_STATUS_ERR_MASK)\r
-#define FLASH_INT_SET_STATUS_DONE_MASK (0x4U)\r
-#define FLASH_INT_SET_STATUS_DONE_SHIFT (2U)\r
-#define FLASH_INT_SET_STATUS_DONE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_STATUS_DONE_SHIFT)) & FLASH_INT_SET_STATUS_DONE_MASK)\r
-#define FLASH_INT_SET_STATUS_ECC_ERR_MASK (0x8U)\r
-#define FLASH_INT_SET_STATUS_ECC_ERR_SHIFT (3U)\r
-#define FLASH_INT_SET_STATUS_ECC_ERR(x) (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_STATUS_ECC_ERR_SHIFT)) & FLASH_INT_SET_STATUS_ECC_ERR_MASK)\r
+#define FLASH_INT_SET_STATUS_FAIL_MASK (0x1U)\r
+#define FLASH_INT_SET_STATUS_FAIL_SHIFT (0U)\r
+/*! FAIL - When a SET_STATUS bit is written to 1, the corresponding INT_STATUS bit is set.\r
+ */\r
+#define FLASH_INT_SET_STATUS_FAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_STATUS_FAIL_SHIFT)) & FLASH_INT_SET_STATUS_FAIL_MASK)\r
+#define FLASH_INT_SET_STATUS_ERR_MASK (0x2U)\r
+#define FLASH_INT_SET_STATUS_ERR_SHIFT (1U)\r
+/*! ERR - When a SET_STATUS bit is written to 1, the corresponding INT_STATUS bit is set.\r
+ */\r
+#define FLASH_INT_SET_STATUS_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_STATUS_ERR_SHIFT)) & FLASH_INT_SET_STATUS_ERR_MASK)\r
+#define FLASH_INT_SET_STATUS_DONE_MASK (0x4U)\r
+#define FLASH_INT_SET_STATUS_DONE_SHIFT (2U)\r
+/*! DONE - When a SET_STATUS bit is written to 1, the corresponding INT_STATUS bit is set.\r
+ */\r
+#define FLASH_INT_SET_STATUS_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_STATUS_DONE_SHIFT)) & FLASH_INT_SET_STATUS_DONE_MASK)\r
+#define FLASH_INT_SET_STATUS_ECC_ERR_MASK (0x8U)\r
+#define FLASH_INT_SET_STATUS_ECC_ERR_SHIFT (3U)\r
+/*! ECC_ERR - When a SET_STATUS bit is written to 1, the corresponding INT_STATUS bit is set.\r
+ */\r
+#define FLASH_INT_SET_STATUS_ECC_ERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_INT_SET_STATUS_ECC_ERR_SHIFT)) & FLASH_INT_SET_STATUS_ECC_ERR_MASK)\r
/*! @} */\r
\r
/*! @name MODULE_ID - Controller+Memory module identification */\r
/*! @{ */\r
-#define FLASH_MODULE_ID_APERTURE_MASK (0xFFU)\r
-#define FLASH_MODULE_ID_APERTURE_SHIFT (0U)\r
-#define FLASH_MODULE_ID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_MODULE_ID_APERTURE_SHIFT)) & FLASH_MODULE_ID_APERTURE_MASK)\r
-#define FLASH_MODULE_ID_MINOR_REV_MASK (0xF00U)\r
-#define FLASH_MODULE_ID_MINOR_REV_SHIFT (8U)\r
-#define FLASH_MODULE_ID_MINOR_REV(x) (((uint32_t)(((uint32_t)(x)) << FLASH_MODULE_ID_MINOR_REV_SHIFT)) & FLASH_MODULE_ID_MINOR_REV_MASK)\r
-#define FLASH_MODULE_ID_MAJOR_REV_MASK (0xF000U)\r
-#define FLASH_MODULE_ID_MAJOR_REV_SHIFT (12U)\r
-#define FLASH_MODULE_ID_MAJOR_REV(x) (((uint32_t)(((uint32_t)(x)) << FLASH_MODULE_ID_MAJOR_REV_SHIFT)) & FLASH_MODULE_ID_MAJOR_REV_MASK)\r
-#define FLASH_MODULE_ID_ID_MASK (0xFFFF0000U)\r
-#define FLASH_MODULE_ID_ID_SHIFT (16U)\r
-#define FLASH_MODULE_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << FLASH_MODULE_ID_ID_SHIFT)) & FLASH_MODULE_ID_ID_MASK)\r
+#define FLASH_MODULE_ID_APERTURE_MASK (0xFFU)\r
+#define FLASH_MODULE_ID_APERTURE_SHIFT (0U)\r
+/*! APERTURE - Aperture i.\r
+ */\r
+#define FLASH_MODULE_ID_APERTURE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_MODULE_ID_APERTURE_SHIFT)) & FLASH_MODULE_ID_APERTURE_MASK)\r
+#define FLASH_MODULE_ID_MINOR_REV_MASK (0xF00U)\r
+#define FLASH_MODULE_ID_MINOR_REV_SHIFT (8U)\r
+/*! MINOR_REV - Minor revision i.\r
+ */\r
+#define FLASH_MODULE_ID_MINOR_REV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_MODULE_ID_MINOR_REV_SHIFT)) & FLASH_MODULE_ID_MINOR_REV_MASK)\r
+#define FLASH_MODULE_ID_MAJOR_REV_MASK (0xF000U)\r
+#define FLASH_MODULE_ID_MAJOR_REV_SHIFT (12U)\r
+/*! MAJOR_REV - Major revision i.\r
+ */\r
+#define FLASH_MODULE_ID_MAJOR_REV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_MODULE_ID_MAJOR_REV_SHIFT)) & FLASH_MODULE_ID_MAJOR_REV_MASK)\r
+#define FLASH_MODULE_ID_ID_MASK (0xFFFF0000U)\r
+#define FLASH_MODULE_ID_ID_SHIFT (16U)\r
+/*! ID - Identifier.\r
+ */\r
+#define FLASH_MODULE_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << FLASH_MODULE_ID_ID_SHIFT)) & FLASH_MODULE_ID_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group FLASH_Register_Masks */\r
\r
-\r
/* FLASH - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral FLASH base address */\r
- #define FLASH_BASE (0x50034000u)\r
- /** Peripheral FLASH base address */\r
- #define FLASH_BASE_NS (0x40034000u)\r
- /** Peripheral FLASH base pointer */\r
- #define FLASH ((FLASH_Type *)FLASH_BASE)\r
- /** Peripheral FLASH base pointer */\r
- #define FLASH_NS ((FLASH_Type *)FLASH_BASE_NS)\r
- /** Array initializer of FLASH peripheral base addresses */\r
- #define FLASH_BASE_ADDRS { FLASH_BASE }\r
- /** Array initializer of FLASH peripheral base pointers */\r
- #define FLASH_BASE_PTRS { FLASH }\r
- /** Array initializer of FLASH peripheral base addresses */\r
- #define FLASH_BASE_ADDRS_NS { FLASH_BASE_NS }\r
- /** Array initializer of FLASH peripheral base pointers */\r
- #define FLASH_BASE_PTRS_NS { FLASH_NS }\r
+/** Peripheral FLASH base address */\r
+#define FLASH_BASE (0x50034000u)\r
+/** Peripheral FLASH base address */\r
+#define FLASH_BASE_NS (0x40034000u)\r
+/** Peripheral FLASH base pointer */\r
+#define FLASH ((FLASH_Type *)FLASH_BASE)\r
+/** Peripheral FLASH base pointer */\r
+#define FLASH_NS ((FLASH_Type *)FLASH_BASE_NS)\r
+/** Array initializer of FLASH peripheral base addresses */\r
+#define FLASH_BASE_ADDRS \\r
+ { \\r
+ FLASH_BASE \\r
+ }\r
+/** Array initializer of FLASH peripheral base pointers */\r
+#define FLASH_BASE_PTRS \\r
+ { \\r
+ FLASH \\r
+ }\r
+/** Array initializer of FLASH peripheral base addresses */\r
+#define FLASH_BASE_ADDRS_NS \\r
+ { \\r
+ FLASH_BASE_NS \\r
+ }\r
+/** Array initializer of FLASH peripheral base pointers */\r
+#define FLASH_BASE_PTRS_NS \\r
+ { \\r
+ FLASH_NS \\r
+ }\r
#else\r
- /** Peripheral FLASH base address */\r
- #define FLASH_BASE (0x40034000u)\r
- /** Peripheral FLASH base pointer */\r
- #define FLASH ((FLASH_Type *)FLASH_BASE)\r
- /** Array initializer of FLASH peripheral base addresses */\r
- #define FLASH_BASE_ADDRS { FLASH_BASE }\r
- /** Array initializer of FLASH peripheral base pointers */\r
- #define FLASH_BASE_PTRS { FLASH }\r
+/** Peripheral FLASH base address */\r
+#define FLASH_BASE (0x40034000u)\r
+/** Peripheral FLASH base pointer */\r
+#define FLASH ((FLASH_Type *)FLASH_BASE)\r
+/** Array initializer of FLASH peripheral base addresses */\r
+#define FLASH_BASE_ADDRS \\r
+ { \\r
+ FLASH_BASE \\r
+ }\r
+/** Array initializer of FLASH peripheral base pointers */\r
+#define FLASH_BASE_PTRS \\r
+ { \\r
+ FLASH \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group FLASH_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- FLASH_CFPA Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** FLASH_CFPA - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t HEADER; /**< ., offset: 0x0 */\r
- __IO uint32_t VERSION; /**< ., offset: 0x4 */\r
- __IO uint32_t S_FW_VERSION; /**< Secure firmware version (Monotonic counter), offset: 0x8 */\r
- __IO uint32_t NS_FW_VERSION; /**< Non-Secure firmware version (Monotonic counter), offset: 0xC */\r
- __IO uint32_t IMAGE_KEY_REVOKE; /**< Image key revocation ID (Monotonic counter), offset: 0x10 */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t ROTKH_REVOKE; /**< ., offset: 0x18 */\r
- __IO uint32_t VENDOR_USAGE; /**< ., offset: 0x1C */\r
- __IO uint32_t DCFG_CC_SOCU_PIN; /**< With TZ-M, the part can be sold by level 1 customers (secure code developer) to level-2 customers who develops non-secure code only. - In this scenario, or easy of development, Level-I customer releases the part to always allow non-secure debug. - To allow level-2 customers to further seal the part DCFG_CC_SOCU_NS is used. - ROM will use this word to further restrict the debug access., offset: 0x20 */\r
- __IO uint32_t DCFG_CC_SOCU_DFLT; /**< With TZ-M, the part can be sold by level 1 customers (secure code developer) to level-2 customers who develops non-secure code only. - In this scenario, or easy of development, Level-I customer releases the part to always allow non-secure debug. - To allow level-2 customers to further seal the part DCFG_CC_SOCU_NS is used. - ROM will use this word to further restrict the debug access., offset: 0x24 */\r
- __IO uint32_t ENABLE_FA_MODE; /**< Enable FA mode. SET_FA_MODE Command should write 0xC33CA55A to this word to indicate boot ROM to enter FA mode., offset: 0x28 */\r
- __IO uint32_t CMPA_PROG_IN_PROGRESS; /**< CMPA Page programming on going. This field shall be set to 0x5CC55AA5 in the active CFPA page each time CMPA page programming is going on. It shall always be set to 0x00000000 in the CFPA scratch area., offset: 0x2C */\r
- union { /* offset: 0x30 */\r
- __IO uint32_t PRINCE_REGION0_IV_CODE[14]; /**< ., array offset: 0x30, array step: 0x4 */\r
- struct { /* offset: 0x30 */\r
- __IO uint32_t PRINCE_REGION0_IV_HEADER0; /**< ., offset: 0x30 */\r
- __IO uint32_t PRINCE_REGION0_IV_HEADER1; /**< ., offset: 0x34 */\r
- __IO uint32_t PRINCE_REGION0_IV_BODY[12]; /**< ., array offset: 0x38, array step: 0x4 */\r
- } PRINCE_REGION0_IV_CODE_CORE;\r
- };\r
- union { /* offset: 0x68 */\r
- __IO uint32_t PRINCE_REGION1_IV_CODE[14]; /**< ., array offset: 0x68, array step: 0x4 */\r
- struct { /* offset: 0x68 */\r
- __IO uint32_t PRINCE_REGION1_IV_HEADER0; /**< ., offset: 0x68 */\r
- __IO uint32_t PRINCE_REGION1_IV_HEADER1; /**< ., offset: 0x6C */\r
- __IO uint32_t PRINCE_REGION1_IV_BODY[12]; /**< ., array offset: 0x70, array step: 0x4 */\r
- } PRINCE_REGION1_IV_CODE_CORE;\r
- };\r
- union { /* offset: 0xA0 */\r
- __IO uint32_t PRINCE_REGION2_IV_CODE[14]; /**< ., array offset: 0xA0, array step: 0x4 */\r
- struct { /* offset: 0xA0 */\r
- __IO uint32_t PRINCE_REGION2_IV_HEADER0; /**< ., offset: 0xA0 */\r
- __IO uint32_t PRINCE_REGION2_IV_HEADER1; /**< ., offset: 0xA4 */\r
- __IO uint32_t PRINCE_REGION2_IV_BODY[12]; /**< ., array offset: 0xA8, array step: 0x4 */\r
- } PRINCE_REGION2_IV_CODE_CORE;\r
- };\r
- uint8_t RESERVED_1[40];\r
- __IO uint32_t CUSTOMER_DEFINED[56]; /**< Customer Defined (Programable through ROM API), array offset: 0x100, array step: 0x4 */\r
- __IO uint32_t SHA256_DIGEST[8]; /**< SHA256_DIGEST0 for DIGEST[31:0] SHA256_DIGEST1 for DIGEST[63:32] SHA256_DIGEST2 for DIGEST[95:64] SHA256_DIGEST3 for DIGEST[127:96] SHA256_DIGEST4 for DIGEST[159:128] SHA256_DIGEST5 for DIGEST[191:160] SHA256_DIGEST6 for DIGEST[223:192] SHA256_DIGEST7 for DIGEST[255:224], array offset: 0x1E0, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t HEADER; /**< ., offset: 0x0 */\r
+ __IO uint32_t VERSION; /**< ., offset: 0x4 */\r
+ __IO uint32_t S_FW_VERSION; /**< Secure firmware version (Monotonic counter), offset: 0x8 */\r
+ __IO uint32_t NS_FW_VERSION; /**< Non-Secure firmware version (Monotonic counter), offset: 0xC */\r
+ __IO uint32_t IMAGE_KEY_REVOKE; /**< Image key revocation ID (Monotonic counter), offset: 0x10 */\r
+ uint8_t RESERVED_0[4];\r
+ __IO uint32_t ROTKH_REVOKE; /**< ., offset: 0x18 */\r
+ __IO uint32_t VENDOR_USAGE; /**< ., offset: 0x1C */\r
+ __IO uint32_t\r
+ DCFG_CC_SOCU_PIN; /**< With TZ-M, the part can be sold by level 1 customers (secure code developer) to level-2\r
+ customers who develops non-secure code only. - In this scenario, or easy of development,\r
+ Level-I customer releases the part to always allow non-secure debug. - To allow level-2\r
+ customers to further seal the part DCFG_CC_SOCU_NS is used. - ROM will use this word to\r
+ further restrict the debug access., offset: 0x20 */\r
+ __IO uint32_t\r
+ DCFG_CC_SOCU_DFLT; /**< With TZ-M, the part can be sold by level 1 customers (secure code developer) to level-2\r
+ customers who develops non-secure code only. - In this scenario, or easy of development,\r
+ Level-I customer releases the part to always allow non-secure debug. - To allow level-2\r
+ customers to further seal the part DCFG_CC_SOCU_NS is used. - ROM will use this word to\r
+ further restrict the debug access., offset: 0x24 */\r
+ __IO uint32_t ENABLE_FA_MODE; /**< Enable FA mode. SET_FA_MODE Command should write 0xC33CA55A to this word to\r
+ indicate boot ROM to enter FA mode., offset: 0x28 */\r
+ __IO uint32_t CMPA_PROG_IN_PROGRESS; /**< CMPA Page programming on going. This field shall be set to 0x5CC55AA5 in\r
+ the active CFPA page each time CMPA page programming is going on. It shall\r
+ always be set to 0x00000000 in the CFPA scratch area., offset: 0x2C */\r
+ union\r
+ { /* offset: 0x30 */\r
+ __IO uint32_t PRINCE_REGION0_IV_CODE[14]; /**< ., array offset: 0x30, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x30 */\r
+ __IO uint32_t PRINCE_REGION0_IV_HEADER0; /**< ., offset: 0x30 */\r
+ __IO uint32_t PRINCE_REGION0_IV_HEADER1; /**< ., offset: 0x34 */\r
+ __IO uint32_t PRINCE_REGION0_IV_BODY[12]; /**< ., array offset: 0x38, array step: 0x4 */\r
+ } PRINCE_REGION0_IV_CODE_CORE;\r
+ };\r
+ union\r
+ { /* offset: 0x68 */\r
+ __IO uint32_t PRINCE_REGION1_IV_CODE[14]; /**< ., array offset: 0x68, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x68 */\r
+ __IO uint32_t PRINCE_REGION1_IV_HEADER0; /**< ., offset: 0x68 */\r
+ __IO uint32_t PRINCE_REGION1_IV_HEADER1; /**< ., offset: 0x6C */\r
+ __IO uint32_t PRINCE_REGION1_IV_BODY[12]; /**< ., array offset: 0x70, array step: 0x4 */\r
+ } PRINCE_REGION1_IV_CODE_CORE;\r
+ };\r
+ union\r
+ { /* offset: 0xA0 */\r
+ __IO uint32_t PRINCE_REGION2_IV_CODE[14]; /**< ., array offset: 0xA0, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0xA0 */\r
+ __IO uint32_t PRINCE_REGION2_IV_HEADER0; /**< ., offset: 0xA0 */\r
+ __IO uint32_t PRINCE_REGION2_IV_HEADER1; /**< ., offset: 0xA4 */\r
+ __IO uint32_t PRINCE_REGION2_IV_BODY[12]; /**< ., array offset: 0xA8, array step: 0x4 */\r
+ } PRINCE_REGION2_IV_CODE_CORE;\r
+ };\r
+ uint8_t RESERVED_1[40];\r
+ __IO uint32_t CUSTOMER_DEFINED[56]; /**< Customer Defined (Programable through ROM API), array offset: 0x100, array\r
+ step: 0x4 */\r
+ __IO uint32_t\r
+ SHA256_DIGEST[8]; /**< SHA256_DIGEST0 for DIGEST[31:0] SHA256_DIGEST1 for DIGEST[63:32] SHA256_DIGEST2 for\r
+ DIGEST[95:64] SHA256_DIGEST3 for DIGEST[127:96] SHA256_DIGEST4 for DIGEST[159:128]\r
+ SHA256_DIGEST5 for DIGEST[191:160] SHA256_DIGEST6 for DIGEST[223:192] SHA256_DIGEST7 for\r
+ DIGEST[255:224], array offset: 0x1E0, array step: 0x4 */\r
} FLASH_CFPA_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name HEADER - . */\r
/*! @{ */\r
-#define FLASH_CFPA_HEADER_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CFPA_HEADER_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_HEADER_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_HEADER_FIELD_SHIFT)) & FLASH_CFPA_HEADER_FIELD_MASK)\r
+#define FLASH_CFPA_HEADER_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CFPA_HEADER_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_HEADER_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_HEADER_FIELD_SHIFT)) & FLASH_CFPA_HEADER_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name VERSION - . */\r
/*! @{ */\r
-#define FLASH_CFPA_VERSION_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CFPA_VERSION_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_VERSION_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_VERSION_FIELD_SHIFT)) & FLASH_CFPA_VERSION_FIELD_MASK)\r
+#define FLASH_CFPA_VERSION_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CFPA_VERSION_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_VERSION_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_VERSION_FIELD_SHIFT)) & FLASH_CFPA_VERSION_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name S_FW_VERSION - Secure firmware version (Monotonic counter) */\r
/*! @{ */\r
-#define FLASH_CFPA_S_FW_VERSION_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CFPA_S_FW_VERSION_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_S_FW_VERSION_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_S_FW_VERSION_FIELD_SHIFT)) & FLASH_CFPA_S_FW_VERSION_FIELD_MASK)\r
+#define FLASH_CFPA_S_FW_VERSION_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CFPA_S_FW_VERSION_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_S_FW_VERSION_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_S_FW_VERSION_FIELD_SHIFT)) & FLASH_CFPA_S_FW_VERSION_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name NS_FW_VERSION - Non-Secure firmware version (Monotonic counter) */\r
/*! @{ */\r
-#define FLASH_CFPA_NS_FW_VERSION_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CFPA_NS_FW_VERSION_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_NS_FW_VERSION_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_NS_FW_VERSION_FIELD_SHIFT)) & FLASH_CFPA_NS_FW_VERSION_FIELD_MASK)\r
+#define FLASH_CFPA_NS_FW_VERSION_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CFPA_NS_FW_VERSION_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_NS_FW_VERSION_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_NS_FW_VERSION_FIELD_SHIFT)) & FLASH_CFPA_NS_FW_VERSION_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name IMAGE_KEY_REVOKE - Image key revocation ID (Monotonic counter) */\r
/*! @{ */\r
-#define FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD_SHIFT)) & FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD_MASK)\r
+#define FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD_SHIFT)) & FLASH_CFPA_IMAGE_KEY_REVOKE_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name ROTKH_REVOKE - . */\r
/*! @{ */\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN_MASK (0x3U)\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN_SHIFT (0U)\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN_SHIFT)) & FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN_MASK)\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN_MASK (0xCU)\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN_SHIFT (2U)\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN_SHIFT)) & FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN_MASK)\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN_MASK (0x30U)\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN_SHIFT (4U)\r
-#define FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN_SHIFT)) & FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN_MASK)\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN_MASK (0x3U)\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN_SHIFT (0U)\r
+/*! RoTK0_EN - RoT Key 0 enable. 00 - Invalid 01 - Enabled 10, 11 - Key revoked\r
+ */\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN_SHIFT)) & FLASH_CFPA_ROTKH_REVOKE_RoTK0_EN_MASK)\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN_MASK (0xCU)\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN_SHIFT (2U)\r
+/*! RoTK1_EN - RoT Key 1 enable. 00 - Invalid 01 - Enabled 10, 11 - Key revoked\r
+ */\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN_SHIFT)) & FLASH_CFPA_ROTKH_REVOKE_RoTK1_EN_MASK)\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN_MASK (0x30U)\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN_SHIFT (4U)\r
+/*! RoTK2_EN - RoT Key 2 enable. 00 - Invalid 01 - Enabled 10, 11 - Key revoked\r
+ */\r
+#define FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN_SHIFT)) & FLASH_CFPA_ROTKH_REVOKE_RoTK2_EN_MASK)\r
/*! @} */\r
\r
/*! @name VENDOR_USAGE - . */\r
/*! @{ */\r
#define FLASH_CFPA_VENDOR_USAGE_DBG_VENDOR_USAGE_MASK (0xFFFFU)\r
#define FLASH_CFPA_VENDOR_USAGE_DBG_VENDOR_USAGE_SHIFT (0U)\r
-#define FLASH_CFPA_VENDOR_USAGE_DBG_VENDOR_USAGE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_VENDOR_USAGE_DBG_VENDOR_USAGE_SHIFT)) & FLASH_CFPA_VENDOR_USAGE_DBG_VENDOR_USAGE_MASK)\r
+/*! DBG_VENDOR_USAGE - DBG_VENDOR_USAGE.\r
+ */\r
+#define FLASH_CFPA_VENDOR_USAGE_DBG_VENDOR_USAGE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_VENDOR_USAGE_DBG_VENDOR_USAGE_SHIFT)) & \\r
+ FLASH_CFPA_VENDOR_USAGE_DBG_VENDOR_USAGE_MASK)\r
#define FLASH_CFPA_VENDOR_USAGE_INVERSE_VALUE_MASK (0xFFFF0000U)\r
#define FLASH_CFPA_VENDOR_USAGE_INVERSE_VALUE_SHIFT (16U)\r
-#define FLASH_CFPA_VENDOR_USAGE_INVERSE_VALUE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_VENDOR_USAGE_INVERSE_VALUE_SHIFT)) & FLASH_CFPA_VENDOR_USAGE_INVERSE_VALUE_MASK)\r
+/*! INVERSE_VALUE - inverse value of bits [15:0]\r
+ */\r
+#define FLASH_CFPA_VENDOR_USAGE_INVERSE_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_VENDOR_USAGE_INVERSE_VALUE_SHIFT)) & \\r
+ FLASH_CFPA_VENDOR_USAGE_INVERSE_VALUE_MASK)\r
/*! @} */\r
\r
-/*! @name DCFG_CC_SOCU_PIN - With TZ-M, the part can be sold by level 1 customers (secure code developer) to level-2 customers who develops non-secure code only. - In this scenario, or easy of development, Level-I customer releases the part to always allow non-secure debug. - To allow level-2 customers to further seal the part DCFG_CC_SOCU_NS is used. - ROM will use this word to further restrict the debug access. */\r
+/*! @name DCFG_CC_SOCU_PIN - With TZ-M, the part can be sold by level 1 customers (secure code developer) to level-2\r
+ * customers who develops non-secure code only. - In this scenario, or easy of development, Level-I customer releases\r
+ * the part to always allow non-secure debug. - To allow level-2 customers to further seal the part DCFG_CC_SOCU_NS is\r
+ * used. - ROM will use this word to further restrict the debug access. */\r
/*! @{ */\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN_MASK (0x1U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN_SHIFT (0U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN_MASK (0x1U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN_SHIFT (0U)\r
/*! NIDEN - Non Secure non-invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN_MASK (0x2U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN_SHIFT (1U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_NIDEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN_MASK (0x2U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN_SHIFT (1U)\r
/*! DBGEN - Non Secure debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_DBGEN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPNIDEN_MASK (0x4U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPNIDEN_SHIFT (2U)\r
/*! SPNIDEN - Secure non-invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPNIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_SPNIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_SPNIDEN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN_MASK (0x8U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPNIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_SPNIDEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_SPNIDEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN_MASK (0x8U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN_SHIFT (3U)\r
/*! SPIDEN - Secure invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN_MASK (0x10U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN_SHIFT (4U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_SPIDEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN_MASK (0x10U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN_SHIFT (4U)\r
/*! TAPEN - JTAG TAP enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN_MASK (0x20U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN_SHIFT (5U)\r
-/*! MCM33_DBGEN - Micro CM33 invasive debug enable\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_TAPEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_DBGEN_MASK (0x20U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_DBGEN_SHIFT (5U)\r
+/*! CPU1_DBGEN - CPU1 (Micro cortex M33) invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_DBGEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_DBGEN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_MASK (0x40U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_SHIFT (6U)\r
/*! ISP_CMD_EN - ISP Boot Command enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_MASK (0x80U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_SHIFT (7U)\r
/*! FA_CMD_EN - FA Command enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_FA_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_FA_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_MASK (0x100U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_SHIFT (8U)\r
/*! ME_CMD_EN - Flash Mass Erase Command enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_ME_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN_MASK (0x200U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN_SHIFT (9U)\r
-/*! MCM33_NIDEN - Micro CM33 non-invasive debug enable\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_ME_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_NIDEN_MASK (0x200U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_NIDEN_SHIFT (9U)\r
+/*! CPU1_NIDEN - CPU1 (Micro cortex M33) non-invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_NIDEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_CPU1_NIDEN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_UUID_CHECK_MASK (0x8000U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_UUID_CHECK_SHIFT (15U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_UUID_CHECK(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_UUID_CHECK_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_UUID_CHECK_MASK)\r
+/*! UUID_CHECK - Enforce UUID match during Debug authentication.\r
+ */\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_UUID_CHECK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_UUID_CHECK_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_UUID_CHECK_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_MASK (0xFFFF0000U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_SHIFT (16U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_MASK)\r
+/*! INVERSE_VALUE - inverse value of bits [15:0]\r
+ */\r
+#define FLASH_CFPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_MASK)\r
/*! @} */\r
\r
-/*! @name DCFG_CC_SOCU_DFLT - With TZ-M, the part can be sold by level 1 customers (secure code developer) to level-2 customers who develops non-secure code only. - In this scenario, or easy of development, Level-I customer releases the part to always allow non-secure debug. - To allow level-2 customers to further seal the part DCFG_CC_SOCU_NS is used. - ROM will use this word to further restrict the debug access. */\r
+/*! @name DCFG_CC_SOCU_DFLT - With TZ-M, the part can be sold by level 1 customers (secure code developer) to level-2\r
+ * customers who develops non-secure code only. - In this scenario, or easy of development, Level-I customer releases\r
+ * the part to always allow non-secure debug. - To allow level-2 customers to further seal the part DCFG_CC_SOCU_NS is\r
+ * used. - ROM will use this word to further restrict the debug access. */\r
/*! @{ */\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN_MASK (0x1U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN_MASK (0x1U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN_SHIFT (0U)\r
/*! NIDEN - Non Secure non-invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN_MASK (0x2U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_NIDEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN_MASK (0x2U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN_SHIFT (1U)\r
/*! DBGEN - Non Secure debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_DBGEN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPNIDEN_MASK (0x4U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPNIDEN_SHIFT (2U)\r
/*! SPNIDEN - Secure non-invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPNIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPNIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPNIDEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPNIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPNIDEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPNIDEN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPIDEN_MASK (0x8U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPIDEN_SHIFT (3U)\r
/*! SPIDEN - Secure invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPIDEN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN_MASK (0x10U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPIDEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_SPIDEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN_MASK (0x10U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN_SHIFT (4U)\r
/*! TAPEN - JTAG TAP fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN_MASK (0x20U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN_SHIFT (5U)\r
-/*! MCM33_DBGEN - Micro CM33 invasive debug fixed state\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_TAPEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_DBGEN_MASK (0x20U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_DBGEN_SHIFT (5U)\r
+/*! CPU1_DBGEN - CPU1 (Micro cortex M33) invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_DBGEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_DBGEN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_MASK (0x40U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_SHIFT (6U)\r
/*! ISP_CMD_EN - ISP Boot Command fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_MASK (0x80U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_SHIFT (7U)\r
/*! FA_CMD_EN - FA Command fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_MASK (0x100U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_SHIFT (8U)\r
/*! ME_CMD_EN - Flash Mass Erase Command fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_MASK)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN_MASK (0x200U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN_SHIFT (9U)\r
-/*! MCM33_NIDEN - Micro CM33 non-invasive debug fixed state\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_NIDEN_MASK (0x200U)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_NIDEN_SHIFT (9U)\r
+/*! CPU1_NIDEN - CPU1 (Micro cortex M33) non-invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN_MASK)\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_NIDEN_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_CPU1_NIDEN_MASK)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_MASK (0xFFFF0000U)\r
#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_SHIFT (16U)\r
-#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_SHIFT)) & FLASH_CFPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_MASK)\r
+/*! INVERSE_VALUE - inverse value of bits [15:0]\r
+ */\r
+#define FLASH_CFPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_SHIFT)) & \\r
+ FLASH_CFPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_MASK)\r
/*! @} */\r
\r
-/*! @name ENABLE_FA_MODE - Enable FA mode. SET_FA_MODE Command should write 0xC33CA55A to this word to indicate boot ROM to enter FA mode. */\r
+/*! @name ENABLE_FA_MODE - Enable FA mode. SET_FA_MODE Command should write 0xC33CA55A to this word to indicate boot ROM\r
+ * to enter FA mode. */\r
/*! @{ */\r
-#define FLASH_CFPA_ENABLE_FA_MODE_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CFPA_ENABLE_FA_MODE_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_ENABLE_FA_MODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_ENABLE_FA_MODE_FIELD_SHIFT)) & FLASH_CFPA_ENABLE_FA_MODE_FIELD_MASK)\r
+#define FLASH_CFPA_ENABLE_FA_MODE_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CFPA_ENABLE_FA_MODE_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_ENABLE_FA_MODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_ENABLE_FA_MODE_FIELD_SHIFT)) & FLASH_CFPA_ENABLE_FA_MODE_FIELD_MASK)\r
/*! @} */\r
\r
-/*! @name CMPA_PROG_IN_PROGRESS - CMPA Page programming on going. This field shall be set to 0x5CC55AA5 in the active CFPA page each time CMPA page programming is going on. It shall always be set to 0x00000000 in the CFPA scratch area. */\r
+/*! @name CMPA_PROG_IN_PROGRESS - CMPA Page programming on going. This field shall be set to 0x5CC55AA5 in the active\r
+ * CFPA page each time CMPA page programming is going on. It shall always be set to 0x00000000 in the CFPA scratch area.\r
+ */\r
/*! @{ */\r
#define FLASH_CFPA_CMPA_PROG_IN_PROGRESS_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_CMPA_PROG_IN_PROGRESS_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_CMPA_PROG_IN_PROGRESS_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_CMPA_PROG_IN_PROGRESS_FIELD_SHIFT)) & FLASH_CFPA_CMPA_PROG_IN_PROGRESS_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_CMPA_PROG_IN_PROGRESS_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_CMPA_PROG_IN_PROGRESS_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_CMPA_PROG_IN_PROGRESS_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION0_IV_CODE - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION0_IV_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION0_IV_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION0_IV_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_CODE_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION0_IV_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION0_IV_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_CODE_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION0_IV_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CFPA_PRINCE_REGION0_IV_CODE */\r
-#define FLASH_CFPA_PRINCE_REGION0_IV_CODE_COUNT (14U)\r
+#define FLASH_CFPA_PRINCE_REGION0_IV_CODE_COUNT (14U)\r
\r
/*! @name PRINCE_REGION0_IV_HEADER0 - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_HEADER0_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION0_IV_HEADER0_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_HEADER0_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION0_IV_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION0_IV_HEADER1 - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_TYPE_MASK (0x3U)\r
#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_TYPE_SHIFT)) & FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_TYPE_MASK)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_TYPE_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_TYPE_MASK)\r
#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_INDEX_MASK (0xF00U)\r
#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_INDEX_SHIFT)) & FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_INDEX_MASK)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_INDEX_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_INDEX_MASK)\r
#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_SIZE_MASK (0x3F000000U)\r
#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_SIZE_SHIFT)) & FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_SIZE_MASK)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_SIZE_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION0_IV_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION0_IV_BODY - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION0_IV_BODY_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION0_IV_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION0_IV_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_BODY_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION0_IV_BODY_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION0_IV_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION0_IV_BODY_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION0_IV_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CFPA_PRINCE_REGION0_IV_BODY */\r
-#define FLASH_CFPA_PRINCE_REGION0_IV_BODY_COUNT (12U)\r
+#define FLASH_CFPA_PRINCE_REGION0_IV_BODY_COUNT (12U)\r
\r
/*! @name PRINCE_REGION1_IV_CODE - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION1_IV_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION1_IV_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION1_IV_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_CODE_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION1_IV_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION1_IV_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_CODE_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION1_IV_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CFPA_PRINCE_REGION1_IV_CODE */\r
-#define FLASH_CFPA_PRINCE_REGION1_IV_CODE_COUNT (14U)\r
+#define FLASH_CFPA_PRINCE_REGION1_IV_CODE_COUNT (14U)\r
\r
/*! @name PRINCE_REGION1_IV_HEADER0 - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_HEADER0_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION1_IV_HEADER0_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_HEADER0_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION1_IV_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION1_IV_HEADER1 - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_TYPE_MASK (0x3U)\r
#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_TYPE_SHIFT)) & FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_TYPE_MASK)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_TYPE_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_TYPE_MASK)\r
#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_INDEX_MASK (0xF00U)\r
#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_INDEX_SHIFT)) & FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_INDEX_MASK)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_INDEX_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_INDEX_MASK)\r
#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_SIZE_MASK (0x3F000000U)\r
#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_SIZE_SHIFT)) & FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_SIZE_MASK)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_SIZE_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION1_IV_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION1_IV_BODY - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION1_IV_BODY_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION1_IV_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION1_IV_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_BODY_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION1_IV_BODY_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION1_IV_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION1_IV_BODY_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION1_IV_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CFPA_PRINCE_REGION1_IV_BODY */\r
-#define FLASH_CFPA_PRINCE_REGION1_IV_BODY_COUNT (12U)\r
+#define FLASH_CFPA_PRINCE_REGION1_IV_BODY_COUNT (12U)\r
\r
/*! @name PRINCE_REGION2_IV_CODE - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION2_IV_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION2_IV_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION2_IV_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_CODE_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION2_IV_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION2_IV_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_CODE_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION2_IV_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CFPA_PRINCE_REGION2_IV_CODE */\r
-#define FLASH_CFPA_PRINCE_REGION2_IV_CODE_COUNT (14U)\r
+#define FLASH_CFPA_PRINCE_REGION2_IV_CODE_COUNT (14U)\r
\r
/*! @name PRINCE_REGION2_IV_HEADER0 - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_HEADER0_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION2_IV_HEADER0_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_HEADER0_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION2_IV_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION2_IV_HEADER1 - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_TYPE_MASK (0x3U)\r
#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_TYPE_SHIFT)) & FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_TYPE_MASK)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_TYPE_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_TYPE_MASK)\r
#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_INDEX_MASK (0xF00U)\r
#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_INDEX_SHIFT)) & FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_INDEX_MASK)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_INDEX_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_INDEX_MASK)\r
#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_SIZE_MASK (0x3F000000U)\r
#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_SIZE_SHIFT)) & FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_SIZE_MASK)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_SIZE_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION2_IV_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION2_IV_BODY - . */\r
/*! @{ */\r
#define FLASH_CFPA_PRINCE_REGION2_IV_BODY_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_CFPA_PRINCE_REGION2_IV_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_PRINCE_REGION2_IV_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_BODY_FIELD_SHIFT)) & FLASH_CFPA_PRINCE_REGION2_IV_BODY_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_PRINCE_REGION2_IV_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_PRINCE_REGION2_IV_BODY_FIELD_SHIFT)) & \\r
+ FLASH_CFPA_PRINCE_REGION2_IV_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CFPA_PRINCE_REGION2_IV_BODY */\r
-#define FLASH_CFPA_PRINCE_REGION2_IV_BODY_COUNT (12U)\r
+#define FLASH_CFPA_PRINCE_REGION2_IV_BODY_COUNT (12U)\r
\r
/*! @name CUSTOMER_DEFINED - Customer Defined (Programable through ROM API) */\r
/*! @{ */\r
-#define FLASH_CFPA_CUSTOMER_DEFINED_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CFPA_CUSTOMER_DEFINED_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_CUSTOMER_DEFINED_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_CUSTOMER_DEFINED_FIELD_SHIFT)) & FLASH_CFPA_CUSTOMER_DEFINED_FIELD_MASK)\r
+#define FLASH_CFPA_CUSTOMER_DEFINED_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CFPA_CUSTOMER_DEFINED_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_CUSTOMER_DEFINED_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_CUSTOMER_DEFINED_FIELD_SHIFT)) & FLASH_CFPA_CUSTOMER_DEFINED_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CFPA_CUSTOMER_DEFINED */\r
-#define FLASH_CFPA_CUSTOMER_DEFINED_COUNT (56U)\r
+#define FLASH_CFPA_CUSTOMER_DEFINED_COUNT (56U)\r
\r
-/*! @name SHA256_DIGEST - SHA256_DIGEST0 for DIGEST[31:0] SHA256_DIGEST1 for DIGEST[63:32] SHA256_DIGEST2 for DIGEST[95:64] SHA256_DIGEST3 for DIGEST[127:96] SHA256_DIGEST4 for DIGEST[159:128] SHA256_DIGEST5 for DIGEST[191:160] SHA256_DIGEST6 for DIGEST[223:192] SHA256_DIGEST7 for DIGEST[255:224] */\r
+/*! @name SHA256_DIGEST - SHA256_DIGEST0 for DIGEST[31:0] SHA256_DIGEST1 for DIGEST[63:32] SHA256_DIGEST2 for\r
+ * DIGEST[95:64] SHA256_DIGEST3 for DIGEST[127:96] SHA256_DIGEST4 for DIGEST[159:128] SHA256_DIGEST5 for DIGEST[191:160]\r
+ * SHA256_DIGEST6 for DIGEST[223:192] SHA256_DIGEST7 for DIGEST[255:224] */\r
/*! @{ */\r
-#define FLASH_CFPA_SHA256_DIGEST_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CFPA_SHA256_DIGEST_FIELD_SHIFT (0U)\r
-#define FLASH_CFPA_SHA256_DIGEST_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_SHA256_DIGEST_FIELD_SHIFT)) & FLASH_CFPA_SHA256_DIGEST_FIELD_MASK)\r
+#define FLASH_CFPA_SHA256_DIGEST_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CFPA_SHA256_DIGEST_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CFPA_SHA256_DIGEST_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CFPA_SHA256_DIGEST_FIELD_SHIFT)) & FLASH_CFPA_SHA256_DIGEST_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CFPA_SHA256_DIGEST */\r
-#define FLASH_CFPA_SHA256_DIGEST_COUNT (8U)\r
-\r
+#define FLASH_CFPA_SHA256_DIGEST_COUNT (8U)\r
\r
/*!\r
* @}\r
*/ /* end of group FLASH_CFPA_Register_Masks */\r
\r
-\r
/* FLASH_CFPA - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral FLASH_CFPA0 base address */\r
- #define FLASH_CFPA0_BASE (0x1009E000u)\r
- /** Peripheral FLASH_CFPA0 base address */\r
- #define FLASH_CFPA0_BASE_NS (0x9E000u)\r
- /** Peripheral FLASH_CFPA0 base pointer */\r
- #define FLASH_CFPA0 ((FLASH_CFPA_Type *)FLASH_CFPA0_BASE)\r
- /** Peripheral FLASH_CFPA0 base pointer */\r
- #define FLASH_CFPA0_NS ((FLASH_CFPA_Type *)FLASH_CFPA0_BASE_NS)\r
- /** Peripheral FLASH_CFPA1 base address */\r
- #define FLASH_CFPA1_BASE (0x1009E200u)\r
- /** Peripheral FLASH_CFPA1 base address */\r
- #define FLASH_CFPA1_BASE_NS (0x9E200u)\r
- /** Peripheral FLASH_CFPA1 base pointer */\r
- #define FLASH_CFPA1 ((FLASH_CFPA_Type *)FLASH_CFPA1_BASE)\r
- /** Peripheral FLASH_CFPA1 base pointer */\r
- #define FLASH_CFPA1_NS ((FLASH_CFPA_Type *)FLASH_CFPA1_BASE_NS)\r
- /** Peripheral FLASH_CFPA_SCRATCH base address */\r
- #define FLASH_CFPA_SCRATCH_BASE (0x1009DE00u)\r
- /** Peripheral FLASH_CFPA_SCRATCH base address */\r
- #define FLASH_CFPA_SCRATCH_BASE_NS (0x9DE00u)\r
- /** Peripheral FLASH_CFPA_SCRATCH base pointer */\r
- #define FLASH_CFPA_SCRATCH ((FLASH_CFPA_Type *)FLASH_CFPA_SCRATCH_BASE)\r
- /** Peripheral FLASH_CFPA_SCRATCH base pointer */\r
- #define FLASH_CFPA_SCRATCH_NS ((FLASH_CFPA_Type *)FLASH_CFPA_SCRATCH_BASE_NS)\r
- /** Array initializer of FLASH_CFPA peripheral base addresses */\r
- #define FLASH_CFPA_BASE_ADDRS { FLASH_CFPA0_BASE, FLASH_CFPA1_BASE, FLASH_CFPA_SCRATCH_BASE }\r
- /** Array initializer of FLASH_CFPA peripheral base pointers */\r
- #define FLASH_CFPA_BASE_PTRS { FLASH_CFPA0, FLASH_CFPA1, FLASH_CFPA_SCRATCH }\r
- /** Array initializer of FLASH_CFPA peripheral base addresses */\r
- #define FLASH_CFPA_BASE_ADDRS_NS { FLASH_CFPA0_BASE_NS, FLASH_CFPA1_BASE_NS, FLASH_CFPA_SCRATCH_BASE_NS }\r
- /** Array initializer of FLASH_CFPA peripheral base pointers */\r
- #define FLASH_CFPA_BASE_PTRS_NS { FLASH_CFPA0_NS, FLASH_CFPA1_NS, FLASH_CFPA_SCRATCH_NS }\r
+/** Peripheral FLASH_CFPA0 base address */\r
+#define FLASH_CFPA0_BASE (0x1009E000u)\r
+/** Peripheral FLASH_CFPA0 base address */\r
+#define FLASH_CFPA0_BASE_NS (0x9E000u)\r
+/** Peripheral FLASH_CFPA0 base pointer */\r
+#define FLASH_CFPA0 ((FLASH_CFPA_Type *)FLASH_CFPA0_BASE)\r
+/** Peripheral FLASH_CFPA0 base pointer */\r
+#define FLASH_CFPA0_NS ((FLASH_CFPA_Type *)FLASH_CFPA0_BASE_NS)\r
+/** Peripheral FLASH_CFPA1 base address */\r
+#define FLASH_CFPA1_BASE (0x1009E200u)\r
+/** Peripheral FLASH_CFPA1 base address */\r
+#define FLASH_CFPA1_BASE_NS (0x9E200u)\r
+/** Peripheral FLASH_CFPA1 base pointer */\r
+#define FLASH_CFPA1 ((FLASH_CFPA_Type *)FLASH_CFPA1_BASE)\r
+/** Peripheral FLASH_CFPA1 base pointer */\r
+#define FLASH_CFPA1_NS ((FLASH_CFPA_Type *)FLASH_CFPA1_BASE_NS)\r
+/** Peripheral FLASH_CFPA_SCRATCH base address */\r
+#define FLASH_CFPA_SCRATCH_BASE (0x1009DE00u)\r
+/** Peripheral FLASH_CFPA_SCRATCH base address */\r
+#define FLASH_CFPA_SCRATCH_BASE_NS (0x9DE00u)\r
+/** Peripheral FLASH_CFPA_SCRATCH base pointer */\r
+#define FLASH_CFPA_SCRATCH ((FLASH_CFPA_Type *)FLASH_CFPA_SCRATCH_BASE)\r
+/** Peripheral FLASH_CFPA_SCRATCH base pointer */\r
+#define FLASH_CFPA_SCRATCH_NS ((FLASH_CFPA_Type *)FLASH_CFPA_SCRATCH_BASE_NS)\r
+/** Array initializer of FLASH_CFPA peripheral base addresses */\r
+#define FLASH_CFPA_BASE_ADDRS \\r
+ { \\r
+ FLASH_CFPA0_BASE, FLASH_CFPA1_BASE, FLASH_CFPA_SCRATCH_BASE \\r
+ }\r
+/** Array initializer of FLASH_CFPA peripheral base pointers */\r
+#define FLASH_CFPA_BASE_PTRS \\r
+ { \\r
+ FLASH_CFPA0, FLASH_CFPA1, FLASH_CFPA_SCRATCH \\r
+ }\r
+/** Array initializer of FLASH_CFPA peripheral base addresses */\r
+#define FLASH_CFPA_BASE_ADDRS_NS \\r
+ { \\r
+ FLASH_CFPA0_BASE_NS, FLASH_CFPA1_BASE_NS, FLASH_CFPA_SCRATCH_BASE_NS \\r
+ }\r
+/** Array initializer of FLASH_CFPA peripheral base pointers */\r
+#define FLASH_CFPA_BASE_PTRS_NS \\r
+ { \\r
+ FLASH_CFPA0_NS, FLASH_CFPA1_NS, FLASH_CFPA_SCRATCH_NS \\r
+ }\r
#else\r
- /** Peripheral FLASH_CFPA0 base address */\r
- #define FLASH_CFPA0_BASE (0x9E000u)\r
- /** Peripheral FLASH_CFPA0 base pointer */\r
- #define FLASH_CFPA0 ((FLASH_CFPA_Type *)FLASH_CFPA0_BASE)\r
- /** Peripheral FLASH_CFPA1 base address */\r
- #define FLASH_CFPA1_BASE (0x9E200u)\r
- /** Peripheral FLASH_CFPA1 base pointer */\r
- #define FLASH_CFPA1 ((FLASH_CFPA_Type *)FLASH_CFPA1_BASE)\r
- /** Peripheral FLASH_CFPA_SCRATCH base address */\r
- #define FLASH_CFPA_SCRATCH_BASE (0x9DE00u)\r
- /** Peripheral FLASH_CFPA_SCRATCH base pointer */\r
- #define FLASH_CFPA_SCRATCH ((FLASH_CFPA_Type *)FLASH_CFPA_SCRATCH_BASE)\r
- /** Array initializer of FLASH_CFPA peripheral base addresses */\r
- #define FLASH_CFPA_BASE_ADDRS { FLASH_CFPA0_BASE, FLASH_CFPA1_BASE, FLASH_CFPA_SCRATCH_BASE }\r
- /** Array initializer of FLASH_CFPA peripheral base pointers */\r
- #define FLASH_CFPA_BASE_PTRS { FLASH_CFPA0, FLASH_CFPA1, FLASH_CFPA_SCRATCH }\r
+/** Peripheral FLASH_CFPA0 base address */\r
+#define FLASH_CFPA0_BASE (0x9E000u)\r
+/** Peripheral FLASH_CFPA0 base pointer */\r
+#define FLASH_CFPA0 ((FLASH_CFPA_Type *)FLASH_CFPA0_BASE)\r
+/** Peripheral FLASH_CFPA1 base address */\r
+#define FLASH_CFPA1_BASE (0x9E200u)\r
+/** Peripheral FLASH_CFPA1 base pointer */\r
+#define FLASH_CFPA1 ((FLASH_CFPA_Type *)FLASH_CFPA1_BASE)\r
+/** Peripheral FLASH_CFPA_SCRATCH base address */\r
+#define FLASH_CFPA_SCRATCH_BASE (0x9DE00u)\r
+/** Peripheral FLASH_CFPA_SCRATCH base pointer */\r
+#define FLASH_CFPA_SCRATCH ((FLASH_CFPA_Type *)FLASH_CFPA_SCRATCH_BASE)\r
+/** Array initializer of FLASH_CFPA peripheral base addresses */\r
+#define FLASH_CFPA_BASE_ADDRS \\r
+ { \\r
+ FLASH_CFPA0_BASE, FLASH_CFPA1_BASE, FLASH_CFPA_SCRATCH_BASE \\r
+ }\r
+/** Array initializer of FLASH_CFPA peripheral base pointers */\r
+#define FLASH_CFPA_BASE_PTRS \\r
+ { \\r
+ FLASH_CFPA0, FLASH_CFPA1, FLASH_CFPA_SCRATCH \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group FLASH_CFPA_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- FLASH_CMPA Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** FLASH_CMPA - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t BOOT_CFG; /**< ., offset: 0x0 */\r
- __IO uint32_t SPI_FLASH_CFG; /**< ., offset: 0x4 */\r
- __IO uint32_t USB_ID; /**< ., offset: 0x8 */\r
- __IO uint32_t SDIO_CFG; /**< ., offset: 0xC */\r
- __IO uint32_t DCFG_CC_SOCU_PIN; /**< ., offset: 0x10 */\r
- __IO uint32_t DCFG_CC_SOCU_DFLT; /**< ., offset: 0x14 */\r
- __IO uint32_t DAP_VENDOR_USAGE_FIXED; /**< ., offset: 0x18 */\r
- __IO uint32_t SECURE_BOOT_CFG; /**< ., offset: 0x1C */\r
- __IO uint32_t PRINCE_BASE_ADDR; /**< ., offset: 0x20 */\r
- __IO uint32_t PRINCE_SR_0; /**< Region 0, sub-region enable, offset: 0x24 */\r
- __IO uint32_t PRINCE_SR_1; /**< Region 1, sub-region enable, offset: 0x28 */\r
- __IO uint32_t PRINCE_SR_2; /**< Region 2, sub-region enable, offset: 0x2C */\r
- uint8_t RESERVED_0[32];\r
- __IO uint32_t ROTKH[8]; /**< ROTKH0 for Root of Trust Keys Table hash[255:224] ROTKH1 for Root of Trust Keys Table hash[223:192] ROTKH2 for Root of Trust Keys Table hash[191:160] ROTKH3 for Root of Trust Keys Table hash[159:128] ROTKH4 for Root of Trust Keys Table hash[127:96] ROTKH5 for Root of Trust Keys Table hash[95:64] ROTKH6 for Root of Trust Keys Table hash[63:32] ROTKH7 for Root of Trust Keys Table hash[31:0], array offset: 0x50, array step: 0x4 */\r
- uint8_t RESERVED_1[144];\r
- __IO uint32_t CUSTOMER_DEFINED[56]; /**< Customer Defined (Programable through ROM API), array offset: 0x100, array step: 0x4 */\r
- __IO uint32_t SHA256_DIGEST[8]; /**< SHA256_DIGEST0 for DIGEST[31:0] SHA256_DIGEST1 for DIGEST[63:32] SHA256_DIGEST2 for DIGEST[95:64] SHA256_DIGEST3 for DIGEST[127:96] SHA256_DIGEST4 for DIGEST[159:128] SHA256_DIGEST5 for DIGEST[191:160] SHA256_DIGEST6 for DIGEST[223:192] SHA256_DIGEST7 for DIGEST[255:224], array offset: 0x1E0, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t BOOT_CFG; /**< ., offset: 0x0 */\r
+ __IO uint32_t SPI_FLASH_CFG; /**< ., offset: 0x4 */\r
+ __IO uint32_t USB_ID; /**< ., offset: 0x8 */\r
+ __IO uint32_t SDIO_CFG; /**< ., offset: 0xC */\r
+ __IO uint32_t CC_SOCU_PIN; /**< ., offset: 0x10 */\r
+ __IO uint32_t CC_SOCU_DFLT; /**< ., offset: 0x14 */\r
+ __IO uint32_t VENDOR_USAGE; /**< ., offset: 0x18 */\r
+ __IO uint32_t SECURE_BOOT_CFG; /**< ., offset: 0x1C */\r
+ __IO uint32_t PRINCE_BASE_ADDR; /**< ., offset: 0x20 */\r
+ __IO uint32_t PRINCE_SR_0; /**< Region 0, sub-region enable, offset: 0x24 */\r
+ __IO uint32_t PRINCE_SR_1; /**< Region 1, sub-region enable, offset: 0x28 */\r
+ __IO uint32_t PRINCE_SR_2; /**< Region 2, sub-region enable, offset: 0x2C */\r
+ __IO uint32_t XTAL_32KHZ_CAPABANK_TRIM; /**< Xtal 32kHz capabank triming., offset: 0x30 */\r
+ __IO uint32_t XTAL_16MHZ_CAPABANK_TRIM; /**< Xtal 16MHz capabank triming., offset: 0x34 */\r
+ uint8_t RESERVED_0[24];\r
+ __IO uint32_t ROTKH[8]; /**< ROTKH0 for Root of Trust Keys Table hash[255:224] ROTKH1 for Root of Trust Keys Table\r
+ hash[223:192] ROTKH2 for Root of Trust Keys Table hash[191:160] ROTKH3 for Root of Trust\r
+ Keys Table hash[159:128] ROTKH4 for Root of Trust Keys Table hash[127:96] ROTKH5 for Root\r
+ of Trust Keys Table hash[95:64] ROTKH6 for Root of Trust Keys Table hash[63:32] ROTKH7\r
+ for Root of Trust Keys Table hash[31:0], array offset: 0x50, array step: 0x4 */\r
+ uint8_t RESERVED_1[144];\r
+ __IO uint32_t CUSTOMER_DEFINED[56]; /**< Customer Defined (Programable through ROM API), array offset: 0x100, array\r
+ step: 0x4 */\r
+ __IO uint32_t\r
+ SHA256_DIGEST[8]; /**< SHA256_DIGEST0 for DIGEST[31:0] SHA256_DIGEST1 for DIGEST[63:32] SHA256_DIGEST2 for\r
+ DIGEST[95:64] SHA256_DIGEST3 for DIGEST[127:96] SHA256_DIGEST4 for DIGEST[159:128]\r
+ SHA256_DIGEST5 for DIGEST[191:160] SHA256_DIGEST6 for DIGEST[223:192] SHA256_DIGEST7 for\r
+ DIGEST[255:224], array offset: 0x1E0, array step: 0x4 */\r
} FLASH_CMPA_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* 0b011..I2C Slave ISP\r
* 0b111..Disable ISP fall through\r
*/\r
-#define FLASH_CMPA_BOOT_CFG_DEFAULT_ISP_MODE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_BOOT_CFG_DEFAULT_ISP_MODE_SHIFT)) & FLASH_CMPA_BOOT_CFG_DEFAULT_ISP_MODE_MASK)\r
-#define FLASH_CMPA_BOOT_CFG_BOOT_SPEED_MASK (0x180U)\r
-#define FLASH_CMPA_BOOT_CFG_BOOT_SPEED_SHIFT (7U)\r
+#define FLASH_CMPA_BOOT_CFG_DEFAULT_ISP_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_BOOT_CFG_DEFAULT_ISP_MODE_SHIFT)) & \\r
+ FLASH_CMPA_BOOT_CFG_DEFAULT_ISP_MODE_MASK)\r
+#define FLASH_CMPA_BOOT_CFG_BOOT_SPEED_MASK (0x180U)\r
+#define FLASH_CMPA_BOOT_CFG_BOOT_SPEED_SHIFT (7U)\r
/*! BOOT_SPEED - Core clock:\r
* 0b00..Defined by NMPA.SYSTEM_SPEED_CODE\r
* 0b01..48MHz FRO\r
* 0b10..96MHz FRO\r
*/\r
-#define FLASH_CMPA_BOOT_CFG_BOOT_SPEED(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_BOOT_CFG_BOOT_SPEED_SHIFT)) & FLASH_CMPA_BOOT_CFG_BOOT_SPEED_MASK)\r
+#define FLASH_CMPA_BOOT_CFG_BOOT_SPEED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_BOOT_CFG_BOOT_SPEED_SHIFT)) & FLASH_CMPA_BOOT_CFG_BOOT_SPEED_MASK)\r
#define FLASH_CMPA_BOOT_CFG_BOOT_FAILURE_PIN_MASK (0xFF000000U)\r
#define FLASH_CMPA_BOOT_CFG_BOOT_FAILURE_PIN_SHIFT (24U)\r
-#define FLASH_CMPA_BOOT_CFG_BOOT_FAILURE_PIN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_BOOT_CFG_BOOT_FAILURE_PIN_SHIFT)) & FLASH_CMPA_BOOT_CFG_BOOT_FAILURE_PIN_MASK)\r
+/*! BOOT_FAILURE_PIN - GPIO port and pin number to use for indicating failure reason. The toggle\r
+ * rate of the pin is used to decode the error type. [2:0] - Defines GPIO port [7:3] - Defines GPIO\r
+ * pin\r
+ */\r
+#define FLASH_CMPA_BOOT_CFG_BOOT_FAILURE_PIN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_BOOT_CFG_BOOT_FAILURE_PIN_SHIFT)) & \\r
+ FLASH_CMPA_BOOT_CFG_BOOT_FAILURE_PIN_MASK)\r
/*! @} */\r
\r
/*! @name SPI_FLASH_CFG - . */\r
/*! @{ */\r
-#define FLASH_CMPA_SPI_FLASH_CFG_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMPA_SPI_FLASH_CFG_FIELD_SHIFT (0U)\r
-#define FLASH_CMPA_SPI_FLASH_CFG_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SPI_FLASH_CFG_FIELD_SHIFT)) & FLASH_CMPA_SPI_FLASH_CFG_FIELD_MASK)\r
+#define FLASH_CMPA_SPI_FLASH_CFG_SPI_RECOVERY_BOOT_EN_MASK (0x1FU)\r
+#define FLASH_CMPA_SPI_FLASH_CFG_SPI_RECOVERY_BOOT_EN_SHIFT (0U)\r
+/*! SPI_RECOVERY_BOOT_EN - SPI flash recovery boot is enabled, if non-zero value is written to this field.\r
+ */\r
+#define FLASH_CMPA_SPI_FLASH_CFG_SPI_RECOVERY_BOOT_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SPI_FLASH_CFG_SPI_RECOVERY_BOOT_EN_SHIFT)) & \\r
+ FLASH_CMPA_SPI_FLASH_CFG_SPI_RECOVERY_BOOT_EN_MASK)\r
/*! @} */\r
\r
/*! @name USB_ID - . */\r
/*! @{ */\r
-#define FLASH_CMPA_USB_ID_USB_VENDOR_ID_MASK (0xFFFFU)\r
-#define FLASH_CMPA_USB_ID_USB_VENDOR_ID_SHIFT (0U)\r
-#define FLASH_CMPA_USB_ID_USB_VENDOR_ID(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_USB_ID_USB_VENDOR_ID_SHIFT)) & FLASH_CMPA_USB_ID_USB_VENDOR_ID_MASK)\r
-#define FLASH_CMPA_USB_ID_USB_PRODUCT_ID_MASK (0xFFFF0000U)\r
-#define FLASH_CMPA_USB_ID_USB_PRODUCT_ID_SHIFT (16U)\r
-#define FLASH_CMPA_USB_ID_USB_PRODUCT_ID(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_USB_ID_USB_PRODUCT_ID_SHIFT)) & FLASH_CMPA_USB_ID_USB_PRODUCT_ID_MASK)\r
+#define FLASH_CMPA_USB_ID_USB_VENDOR_ID_MASK (0xFFFFU)\r
+#define FLASH_CMPA_USB_ID_USB_VENDOR_ID_SHIFT (0U)\r
+/*! USB_VENDOR_ID - .\r
+ */\r
+#define FLASH_CMPA_USB_ID_USB_VENDOR_ID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_USB_ID_USB_VENDOR_ID_SHIFT)) & FLASH_CMPA_USB_ID_USB_VENDOR_ID_MASK)\r
+#define FLASH_CMPA_USB_ID_USB_PRODUCT_ID_MASK (0xFFFF0000U)\r
+#define FLASH_CMPA_USB_ID_USB_PRODUCT_ID_SHIFT (16U)\r
+/*! USB_PRODUCT_ID - .\r
+ */\r
+#define FLASH_CMPA_USB_ID_USB_PRODUCT_ID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_USB_ID_USB_PRODUCT_ID_SHIFT)) & FLASH_CMPA_USB_ID_USB_PRODUCT_ID_MASK)\r
/*! @} */\r
\r
/*! @name SDIO_CFG - . */\r
/*! @{ */\r
-#define FLASH_CMPA_SDIO_CFG_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMPA_SDIO_CFG_FIELD_SHIFT (0U)\r
-#define FLASH_CMPA_SDIO_CFG_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SDIO_CFG_FIELD_SHIFT)) & FLASH_CMPA_SDIO_CFG_FIELD_MASK)\r
+#define FLASH_CMPA_SDIO_CFG_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CMPA_SDIO_CFG_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CMPA_SDIO_CFG_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SDIO_CFG_FIELD_SHIFT)) & FLASH_CMPA_SDIO_CFG_FIELD_MASK)\r
/*! @} */\r
\r
-/*! @name DCFG_CC_SOCU_PIN - . */\r
+/*! @name CC_SOCU_PIN - . */\r
/*! @{ */\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_NIDEN_MASK (0x1U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_NIDEN_SHIFT (0U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_NIDEN_MASK (0x1U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_NIDEN_SHIFT (0U)\r
/*! NIDEN - Non Secure non-invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_NIDEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_NIDEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_DBGEN_MASK (0x2U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_DBGEN_SHIFT (1U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_NIDEN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_NIDEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_DBGEN_MASK (0x2U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_DBGEN_SHIFT (1U)\r
/*! DBGEN - Non Secure debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_DBGEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_DBGEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_SPNIDEN_MASK (0x4U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_SPNIDEN_SHIFT (2U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_DBGEN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_DBGEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_SPNIDEN_MASK (0x4U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_SPNIDEN_SHIFT (2U)\r
/*! SPNIDEN - Secure non-invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_SPNIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_SPNIDEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_SPNIDEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_SPIDEN_MASK (0x8U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_SPIDEN_SHIFT (3U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_SPNIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_SPNIDEN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_SPNIDEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_SPIDEN_MASK (0x8U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_SPIDEN_SHIFT (3U)\r
/*! SPIDEN - Secure invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_SPIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_SPIDEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_SPIDEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_TAPEN_MASK (0x10U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_TAPEN_SHIFT (4U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_SPIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_SPIDEN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_SPIDEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_TAPEN_MASK (0x10U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_TAPEN_SHIFT (4U)\r
/*! TAPEN - JTAG TAP enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_TAPEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_TAPEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_TAPEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN_MASK (0x20U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN_SHIFT (5U)\r
-/*! MCM33_DBGEN - Micro CM33 invasive debug enable\r
+#define FLASH_CMPA_CC_SOCU_PIN_TAPEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_TAPEN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_TAPEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_CPU1_DBGEN_MASK (0x20U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_CPU1_DBGEN_SHIFT (5U)\r
+/*! CPU1_DBGEN - CPU1 (Micro cortex M33) invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_DBGEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_MASK (0x40U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_SHIFT (6U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_CPU1_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_CPU1_DBGEN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_CPU1_DBGEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_ISP_CMD_EN_MASK (0x40U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_ISP_CMD_EN_SHIFT (6U)\r
/*! ISP_CMD_EN - ISP Boot Command enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_ISP_CMD_EN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_MASK (0x80U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_SHIFT (7U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_ISP_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_ISP_CMD_EN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_ISP_CMD_EN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_FA_CMD_EN_MASK (0x80U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_FA_CMD_EN_SHIFT (7U)\r
/*! FA_CMD_EN - FA Command enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_FA_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_FA_CMD_EN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_MASK (0x100U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_SHIFT (8U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_FA_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_FA_CMD_EN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_FA_CMD_EN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_ME_CMD_EN_MASK (0x100U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_ME_CMD_EN_SHIFT (8U)\r
/*! ME_CMD_EN - Flash Mass Erase Command enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_ME_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_ME_CMD_EN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN_MASK (0x200U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN_SHIFT (9U)\r
-/*! MCM33_NIDEN - Micro CM33 non-invasive debug enable\r
+#define FLASH_CMPA_CC_SOCU_PIN_ME_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_ME_CMD_EN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_ME_CMD_EN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_CPU1_NIDEN_MASK (0x200U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_CPU1_NIDEN_SHIFT (9U)\r
+/*! CPU1_NIDEN - CPU1 (Micro cortex M33) non-invasive debug enable\r
* 0b0..Use DAP to enable\r
* 0b1..Fixed state\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_MCM33_NIDEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_UUID_CHECK_MASK (0x8000U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_UUID_CHECK_SHIFT (15U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_UUID_CHECK(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_UUID_CHECK_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_UUID_CHECK_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_MASK (0xFFFF0000U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_SHIFT (16U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_PIN_INVERSE_VALUE_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_CPU1_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_CPU1_NIDEN_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_CPU1_NIDEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_UUID_CHECK_MASK (0x8000U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_UUID_CHECK_SHIFT (15U)\r
+/*! UUID_CHECK - Enforce UUID match during Debug authentication.\r
+ */\r
+#define FLASH_CMPA_CC_SOCU_PIN_UUID_CHECK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_UUID_CHECK_SHIFT)) & FLASH_CMPA_CC_SOCU_PIN_UUID_CHECK_MASK)\r
+#define FLASH_CMPA_CC_SOCU_PIN_INVERSE_VALUE_MASK (0xFFFF0000U)\r
+#define FLASH_CMPA_CC_SOCU_PIN_INVERSE_VALUE_SHIFT (16U)\r
+/*! INVERSE_VALUE - inverse value of bits [15:0]\r
+ */\r
+#define FLASH_CMPA_CC_SOCU_PIN_INVERSE_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_PIN_INVERSE_VALUE_SHIFT)) & \\r
+ FLASH_CMPA_CC_SOCU_PIN_INVERSE_VALUE_MASK)\r
/*! @} */\r
\r
-/*! @name DCFG_CC_SOCU_DFLT - . */\r
+/*! @name CC_SOCU_DFLT - . */\r
/*! @{ */\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_NIDEN_MASK (0x1U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_NIDEN_SHIFT (0U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_NIDEN_MASK (0x1U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_NIDEN_SHIFT (0U)\r
/*! NIDEN - Non Secure non-invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_NIDEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_NIDEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_DBGEN_MASK (0x2U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_DBGEN_SHIFT (1U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_NIDEN_SHIFT)) & FLASH_CMPA_CC_SOCU_DFLT_NIDEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_DBGEN_MASK (0x2U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_DBGEN_SHIFT (1U)\r
/*! DBGEN - Non Secure debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_DBGEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_DBGEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPNIDEN_MASK (0x4U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPNIDEN_SHIFT (2U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_DBGEN_SHIFT)) & FLASH_CMPA_CC_SOCU_DFLT_DBGEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_SPNIDEN_MASK (0x4U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_SPNIDEN_SHIFT (2U)\r
/*! SPNIDEN - Secure non-invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPNIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPNIDEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPNIDEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPIDEN_MASK (0x8U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPIDEN_SHIFT (3U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_SPNIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_SPNIDEN_SHIFT)) & FLASH_CMPA_CC_SOCU_DFLT_SPNIDEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_SPIDEN_MASK (0x8U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_SPIDEN_SHIFT (3U)\r
/*! SPIDEN - Secure invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPIDEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_SPIDEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_TAPEN_MASK (0x10U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_TAPEN_SHIFT (4U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_SPIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_SPIDEN_SHIFT)) & FLASH_CMPA_CC_SOCU_DFLT_SPIDEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_TAPEN_MASK (0x10U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_TAPEN_SHIFT (4U)\r
/*! TAPEN - JTAG TAP fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_TAPEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_TAPEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_TAPEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN_MASK (0x20U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN_SHIFT (5U)\r
-/*! MCM33_DBGEN - Micro CM33 invasive debug fixed state\r
+#define FLASH_CMPA_CC_SOCU_DFLT_TAPEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_TAPEN_SHIFT)) & FLASH_CMPA_CC_SOCU_DFLT_TAPEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_CPU1_DBGEN_MASK (0x20U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_CPU1_DBGEN_SHIFT (5U)\r
+/*! CPU1_DBGEN - CPU1 (Micro cortex M33) invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_DBGEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_MASK (0x40U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_SHIFT (6U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_CPU1_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_CPU1_DBGEN_SHIFT)) & \\r
+ FLASH_CMPA_CC_SOCU_DFLT_CPU1_DBGEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_ISP_CMD_EN_MASK (0x40U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_ISP_CMD_EN_SHIFT (6U)\r
/*! ISP_CMD_EN - ISP Boot Command fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_ISP_CMD_EN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_MASK (0x80U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_SHIFT (7U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_ISP_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_ISP_CMD_EN_SHIFT)) & \\r
+ FLASH_CMPA_CC_SOCU_DFLT_ISP_CMD_EN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_FA_CMD_EN_MASK (0x80U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_FA_CMD_EN_SHIFT (7U)\r
/*! FA_CMD_EN - FA Command fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_FA_CMD_EN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_MASK (0x100U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_SHIFT (8U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_FA_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_FA_CMD_EN_SHIFT)) & FLASH_CMPA_CC_SOCU_DFLT_FA_CMD_EN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_ME_CMD_EN_MASK (0x100U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_ME_CMD_EN_SHIFT (8U)\r
/*! ME_CMD_EN - Flash Mass Erase Command fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_ME_CMD_EN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN_MASK (0x200U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN_SHIFT (9U)\r
-/*! MCM33_NIDEN - Micro CM33 non-invasive debug fixed state\r
+#define FLASH_CMPA_CC_SOCU_DFLT_ME_CMD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_ME_CMD_EN_SHIFT)) & FLASH_CMPA_CC_SOCU_DFLT_ME_CMD_EN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_CPU1_NIDEN_MASK (0x200U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_CPU1_NIDEN_SHIFT (9U)\r
+/*! CPU1_NIDEN - CPU1 (Micro cortex M33) non-invasive debug fixed state\r
* 0b0..Disable\r
* 0b1..Enable\r
*/\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_MCM33_NIDEN_MASK)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_MASK (0xFFFF0000U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_SHIFT (16U)\r
-#define FLASH_CMPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_SHIFT)) & FLASH_CMPA_DCFG_CC_SOCU_DFLT_INVERSE_VALUE_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_CPU1_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_CPU1_NIDEN_SHIFT)) & \\r
+ FLASH_CMPA_CC_SOCU_DFLT_CPU1_NIDEN_MASK)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_INVERSE_VALUE_MASK (0xFFFF0000U)\r
+#define FLASH_CMPA_CC_SOCU_DFLT_INVERSE_VALUE_SHIFT (16U)\r
+/*! INVERSE_VALUE - inverse value of bits [15:0]\r
+ */\r
+#define FLASH_CMPA_CC_SOCU_DFLT_INVERSE_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CC_SOCU_DFLT_INVERSE_VALUE_SHIFT)) & \\r
+ FLASH_CMPA_CC_SOCU_DFLT_INVERSE_VALUE_MASK)\r
/*! @} */\r
\r
-/*! @name DAP_VENDOR_USAGE_FIXED - . */\r
+/*! @name VENDOR_USAGE - . */\r
/*! @{ */\r
-#define FLASH_CMPA_DAP_VENDOR_USAGE_FIXED_VENDOR_USAGE_MASK (0xFFFF0000U)\r
-#define FLASH_CMPA_DAP_VENDOR_USAGE_FIXED_VENDOR_USAGE_SHIFT (16U)\r
-#define FLASH_CMPA_DAP_VENDOR_USAGE_FIXED_VENDOR_USAGE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_DAP_VENDOR_USAGE_FIXED_VENDOR_USAGE_SHIFT)) & FLASH_CMPA_DAP_VENDOR_USAGE_FIXED_VENDOR_USAGE_MASK)\r
+#define FLASH_CMPA_VENDOR_USAGE_VENDOR_USAGE_MASK (0xFFFF0000U)\r
+#define FLASH_CMPA_VENDOR_USAGE_VENDOR_USAGE_SHIFT (16U)\r
+/*! VENDOR_USAGE - Upper 16 bits of vendor usage field defined in DAP. Lower 16-bits come from customer field area.\r
+ */\r
+#define FLASH_CMPA_VENDOR_USAGE_VENDOR_USAGE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_VENDOR_USAGE_VENDOR_USAGE_SHIFT)) & \\r
+ FLASH_CMPA_VENDOR_USAGE_VENDOR_USAGE_MASK)\r
/*! @} */\r
\r
/*! @name SECURE_BOOT_CFG - . */\r
/*! @{ */\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_RSA4K_MASK (0x3U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_RSA4K_SHIFT (0U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_RSA4K(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_RSA4K_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_RSA4K_MASK)\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_RSA4K_MASK (0x3U)\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_RSA4K_SHIFT (0U)\r
+/*! RSA4K - Use RSA4096 keys only. 00- RSA2048 keys 01, 10, 11 - RSA4096 keys\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_RSA4K(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_RSA4K_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_RSA4K_MASK)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_ENC_NXP_CFG_MASK (0xCU)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_ENC_NXP_CFG_SHIFT (2U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_ENC_NXP_CFG(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_DICE_ENC_NXP_CFG_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_DICE_ENC_NXP_CFG_MASK)\r
+/*! DICE_ENC_NXP_CFG - Include NXP area in DICE computation. 00 - not included 01, 10, 11 - included\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_ENC_NXP_CFG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_DICE_ENC_NXP_CFG_SHIFT)) & \\r
+ FLASH_CMPA_SECURE_BOOT_CFG_DICE_ENC_NXP_CFG_MASK)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_CUST_CFG_MASK (0x30U)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_CUST_CFG_SHIFT (4U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_CUST_CFG(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_DICE_CUST_CFG_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_DICE_CUST_CFG_MASK)\r
+/*! DICE_CUST_CFG - Include Customer factory area (including keys) in DICE computation. 00 - not included 01, 10, 11 -\r
+ * included\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_CUST_CFG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_DICE_CUST_CFG_SHIFT)) & \\r
+ FLASH_CMPA_SECURE_BOOT_CFG_DICE_CUST_CFG_MASK)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_SKIP_DICE_MASK (0xC0U)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_SKIP_DICE_SHIFT (6U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_SKIP_DICE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_SKIP_DICE_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_SKIP_DICE_MASK)\r
+/*! SKIP_DICE - Skip DICE computation. 00 - Enable DICE 01,10,11 - Disable DICE\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_SKIP_DICE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_SKIP_DICE_SHIFT)) & \\r
+ FLASH_CMPA_SECURE_BOOT_CFG_SKIP_DICE_MASK)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_TZM_IMAGE_TYPE_MASK (0x300U)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_TZM_IMAGE_TYPE_SHIFT (8U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_TZM_IMAGE_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_TZM_IMAGE_TYPE_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_TZM_IMAGE_TYPE_MASK)\r
+/*! TZM_IMAGE_TYPE - TrustZone-M mode. 00 - TZM mode in image header. 01 - Disable TZ-M. Boots to\r
+ * NonSecure. 10 - TZ-M enable boots to secure mode. 11 - Preset TZM checker from image header.\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_TZM_IMAGE_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_TZM_IMAGE_TYPE_SHIFT)) & \\r
+ FLASH_CMPA_SECURE_BOOT_CFG_TZM_IMAGE_TYPE_MASK)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_SET_KEY_MASK (0xC00U)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_SET_KEY_SHIFT (10U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_SET_KEY(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_SET_KEY_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_SET_KEY_MASK)\r
+/*! BLOCK_SET_KEY - Block PUF key code generation. 00 - Enable Key code generation 01, 10, 11 - Disable key code\r
+ * generation\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_SET_KEY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_SET_KEY_SHIFT)) & \\r
+ FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_SET_KEY_MASK)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_ENROLL_MASK (0x3000U)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_ENROLL_SHIFT (12U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_ENROLL(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_ENROLL_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_ENROLL_MASK)\r
+/*! BLOCK_ENROLL - Block PUF enrollement. 00 - Enable enrollment mode 01, 10, 11 - Disable further enrollmnet\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_ENROLL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_ENROLL_SHIFT)) & \\r
+ FLASH_CMPA_SECURE_BOOT_CFG_BLOCK_ENROLL_MASK)\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_INC_SEC_EPOCH_MASK (0xC000U)\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_INC_SEC_EPOCH_SHIFT (14U)\r
+/*! DICE_INC_SEC_EPOCH - Include security EPOCH in DICE\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_DICE_INC_SEC_EPOCH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_DICE_INC_SEC_EPOCH_SHIFT)) & \\r
+ FLASH_CMPA_SECURE_BOOT_CFG_DICE_INC_SEC_EPOCH_MASK)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_SEC_BOOT_EN_MASK (0xC0000000U)\r
#define FLASH_CMPA_SECURE_BOOT_CFG_SEC_BOOT_EN_SHIFT (30U)\r
-#define FLASH_CMPA_SECURE_BOOT_CFG_SEC_BOOT_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_SEC_BOOT_EN_SHIFT)) & FLASH_CMPA_SECURE_BOOT_CFG_SEC_BOOT_EN_MASK)\r
+/*! SEC_BOOT_EN - Secure boot enable. 00 - Plain image (internal flash with or without CRC) 01, 10,\r
+ * 11 - Boot signed images. (internal flash, RSA signed)\r
+ */\r
+#define FLASH_CMPA_SECURE_BOOT_CFG_SEC_BOOT_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SECURE_BOOT_CFG_SEC_BOOT_EN_SHIFT)) & \\r
+ FLASH_CMPA_SECURE_BOOT_CFG_SEC_BOOT_EN_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_BASE_ADDR - . */\r
/*! @{ */\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG_MASK (0xFU)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG_SHIFT (0U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG_MASK)\r
+/*! ADDR0_PRG - Programmable portion of the base address of region 0.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_ADDR0_PRG_MASK)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR1_PRG_MASK (0xF0U)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR1_PRG_SHIFT (4U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR1_PRG(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_ADDR1_PRG_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_ADDR1_PRG_MASK)\r
+/*! ADDR1_PRG - Programmable portion of the base address of region 1.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR1_PRG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_ADDR1_PRG_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_ADDR1_PRG_MASK)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR2_PRG_MASK (0xF00U)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR2_PRG_SHIFT (8U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR2_PRG(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_ADDR2_PRG_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_ADDR2_PRG_MASK)\r
+/*! ADDR2_PRG - Programmable portion of the base address of region 2.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_ADDR2_PRG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_ADDR2_PRG_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_ADDR2_PRG_MASK)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG0_MASK (0x30000U)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG0_SHIFT (16U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG0(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG0_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG0_MASK)\r
+/*! LOCK_REG0 - Lock PRINCE region0 settings. 00 - Region is not locked. 01, 10, 11 - Region is locked.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG0_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG0_MASK)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG1_MASK (0xC0000U)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG1_SHIFT (18U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG1(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG1_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG1_MASK)\r
+/*! LOCK_REG1 - Lock PRINCE region1 settings. 00 - Region is not locked. 01, 10, 11 - Region is locked.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG1_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG1_MASK)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG2_MASK (0x300000U)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG2_SHIFT (20U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG2(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG2_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG2_MASK)\r
+/*! LOCK_REG2 - Lock PRINCE region2 settings. 00 - Region is not locked. 01, 10, 11 - Region is locked.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG2_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_LOCK_REG2_MASK)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_REG0_ERASE_CHECK_EN_MASK (0x3000000U)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_REG0_ERASE_CHECK_EN_SHIFT (24U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_REG0_ERASE_CHECK_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_REG0_ERASE_CHECK_EN_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_REG0_ERASE_CHECK_EN_MASK)\r
+/*! REG0_ERASE_CHECK_EN - For PRINCE region0 enable checking whether all encrypted pages are erased\r
+ * together. 00 - Check is disabled. 01, 10, 11 - Check is enabled.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_REG0_ERASE_CHECK_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_REG0_ERASE_CHECK_EN_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_REG0_ERASE_CHECK_EN_MASK)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_REG1_ERASE_CHECK_EN_MASK (0xC000000U)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_REG1_ERASE_CHECK_EN_SHIFT (26U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_REG1_ERASE_CHECK_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_REG1_ERASE_CHECK_EN_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_REG1_ERASE_CHECK_EN_MASK)\r
+/*! REG1_ERASE_CHECK_EN - For PRINCE region1 enable checking whether all encrypted pages are erased\r
+ * together. 00 - Check is disabled. 01, 10, 11 - Check is enabled.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_REG1_ERASE_CHECK_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_REG1_ERASE_CHECK_EN_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_REG1_ERASE_CHECK_EN_MASK)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_REG2_ERASE_CHECK_EN_MASK (0x30000000U)\r
#define FLASH_CMPA_PRINCE_BASE_ADDR_REG2_ERASE_CHECK_EN_SHIFT (28U)\r
-#define FLASH_CMPA_PRINCE_BASE_ADDR_REG2_ERASE_CHECK_EN(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_REG2_ERASE_CHECK_EN_SHIFT)) & FLASH_CMPA_PRINCE_BASE_ADDR_REG2_ERASE_CHECK_EN_MASK)\r
+/*! REG2_ERASE_CHECK_EN - For PRINCE region2 enable checking whether all encrypted pages are erased\r
+ * together. 00 - Check is disabled. 01, 10, 11 - Check is enabled.\r
+ */\r
+#define FLASH_CMPA_PRINCE_BASE_ADDR_REG2_ERASE_CHECK_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_BASE_ADDR_REG2_ERASE_CHECK_EN_SHIFT)) & \\r
+ FLASH_CMPA_PRINCE_BASE_ADDR_REG2_ERASE_CHECK_EN_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_SR_0 - Region 0, sub-region enable */\r
/*! @{ */\r
-#define FLASH_CMPA_PRINCE_SR_0_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMPA_PRINCE_SR_0_FIELD_SHIFT (0U)\r
-#define FLASH_CMPA_PRINCE_SR_0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_SR_0_FIELD_SHIFT)) & FLASH_CMPA_PRINCE_SR_0_FIELD_MASK)\r
+#define FLASH_CMPA_PRINCE_SR_0_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CMPA_PRINCE_SR_0_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CMPA_PRINCE_SR_0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_SR_0_FIELD_SHIFT)) & FLASH_CMPA_PRINCE_SR_0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_SR_1 - Region 1, sub-region enable */\r
/*! @{ */\r
-#define FLASH_CMPA_PRINCE_SR_1_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMPA_PRINCE_SR_1_FIELD_SHIFT (0U)\r
-#define FLASH_CMPA_PRINCE_SR_1_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_SR_1_FIELD_SHIFT)) & FLASH_CMPA_PRINCE_SR_1_FIELD_MASK)\r
+#define FLASH_CMPA_PRINCE_SR_1_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CMPA_PRINCE_SR_1_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CMPA_PRINCE_SR_1_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_SR_1_FIELD_SHIFT)) & FLASH_CMPA_PRINCE_SR_1_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_SR_2 - Region 2, sub-region enable */\r
/*! @{ */\r
-#define FLASH_CMPA_PRINCE_SR_2_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMPA_PRINCE_SR_2_FIELD_SHIFT (0U)\r
-#define FLASH_CMPA_PRINCE_SR_2_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_SR_2_FIELD_SHIFT)) & FLASH_CMPA_PRINCE_SR_2_FIELD_MASK)\r
+#define FLASH_CMPA_PRINCE_SR_2_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CMPA_PRINCE_SR_2_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CMPA_PRINCE_SR_2_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_PRINCE_SR_2_FIELD_SHIFT)) & FLASH_CMPA_PRINCE_SR_2_FIELD_MASK)\r
+/*! @} */\r
+\r
+/*! @name XTAL_32KHZ_CAPABANK_TRIM - Xtal 32kHz capabank triming. */\r
+/*! @{ */\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_TRIM_VALID_MASK (0x1U)\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_TRIM_VALID_SHIFT (0U)\r
+/*! TRIM_VALID - 0 : Capa Bank trimmings not valid. Default trimmings value are used. 1 : Capa Bank trimmings valid.\r
+ */\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_TRIM_VALID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_TRIM_VALID_SHIFT)) & \\r
+ FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_TRIM_VALID_MASK)\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100_MASK (0x7FEU)\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100_SHIFT (1U)\r
+/*! XTAL_LOAD_CAP_IEC_PF_X100 - Load capacitance, pF x 100. For example, 6pF becomes 600.\r
+ */\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100_SHIFT)) & \\r
+ FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100_MASK)\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100_MASK (0x1FF800U)\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100_SHIFT (11U)\r
+/*! PCB_XIN_PARA_CAP_PF_X100 - PCB XIN parasitic capacitance, pF x 100. For example, 6pF becomes 600.\r
+ */\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100_SHIFT)) & \\r
+ FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100_MASK)\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100_MASK (0x7FE00000U)\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100_SHIFT (21U)\r
+/*! PCB_XOUT_PARA_CAP_PF_X100 - PCB XOUT parasitic capacitance, pF x 100. For example, 6pF becomes 600.\r
+ */\r
+#define FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100_SHIFT)) & \\r
+ FLASH_CMPA_XTAL_32KHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100_MASK)\r
+/*! @} */\r
+\r
+/*! @name XTAL_16MHZ_CAPABANK_TRIM - Xtal 16MHz capabank triming. */\r
+/*! @{ */\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_TRIM_VALID_MASK (0x1U)\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_TRIM_VALID_SHIFT (0U)\r
+/*! TRIM_VALID - 0 : Capa Bank trimmings not valid. Default trimmings value are used. 1 : Capa Bank trimmings valid.\r
+ */\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_TRIM_VALID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_TRIM_VALID_SHIFT)) & \\r
+ FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_TRIM_VALID_MASK)\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100_MASK (0x7FEU)\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100_SHIFT (1U)\r
+/*! XTAL_LOAD_CAP_IEC_PF_X100 - Load capacitance, pF x 100. For example, 6pF becomes 600.\r
+ */\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100_SHIFT)) & \\r
+ FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_XTAL_LOAD_CAP_IEC_PF_X100_MASK)\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100_MASK (0x1FF800U)\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100_SHIFT (11U)\r
+/*! PCB_XIN_PARA_CAP_PF_X100 - PCB XIN parasitic capacitance, pF x 100. For example, 6pF becomes 600.\r
+ */\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100_SHIFT)) & \\r
+ FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XIN_PARA_CAP_PF_X100_MASK)\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100_MASK (0x7FE00000U)\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100_SHIFT (21U)\r
+/*! PCB_XOUT_PARA_CAP_PF_X100 - PCB XOUT parasitic capacitance, pF x 100. For example, 6pF becomes 600.\r
+ */\r
+#define FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100_SHIFT)) & \\r
+ FLASH_CMPA_XTAL_16MHZ_CAPABANK_TRIM_PCB_XOUT_PARA_CAP_PF_X100_MASK)\r
/*! @} */\r
\r
-/*! @name ROTKH - ROTKH0 for Root of Trust Keys Table hash[255:224] ROTKH1 for Root of Trust Keys Table hash[223:192] ROTKH2 for Root of Trust Keys Table hash[191:160] ROTKH3 for Root of Trust Keys Table hash[159:128] ROTKH4 for Root of Trust Keys Table hash[127:96] ROTKH5 for Root of Trust Keys Table hash[95:64] ROTKH6 for Root of Trust Keys Table hash[63:32] ROTKH7 for Root of Trust Keys Table hash[31:0] */\r
+/*! @name ROTKH - ROTKH0 for Root of Trust Keys Table hash[255:224] ROTKH1 for Root of Trust Keys Table hash[223:192]\r
+ * ROTKH2 for Root of Trust Keys Table hash[191:160] ROTKH3 for Root of Trust Keys Table hash[159:128] ROTKH4 for Root\r
+ * of Trust Keys Table hash[127:96] ROTKH5 for Root of Trust Keys Table hash[95:64] ROTKH6 for Root of Trust Keys Table\r
+ * hash[63:32] ROTKH7 for Root of Trust Keys Table hash[31:0] */\r
/*! @{ */\r
-#define FLASH_CMPA_ROTKH_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMPA_ROTKH_FIELD_SHIFT (0U)\r
-#define FLASH_CMPA_ROTKH_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_ROTKH_FIELD_SHIFT)) & FLASH_CMPA_ROTKH_FIELD_MASK)\r
+#define FLASH_CMPA_ROTKH_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CMPA_ROTKH_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CMPA_ROTKH_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_ROTKH_FIELD_SHIFT)) & FLASH_CMPA_ROTKH_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CMPA_ROTKH */\r
-#define FLASH_CMPA_ROTKH_COUNT (8U)\r
+#define FLASH_CMPA_ROTKH_COUNT (8U)\r
\r
/*! @name CUSTOMER_DEFINED - Customer Defined (Programable through ROM API) */\r
/*! @{ */\r
-#define FLASH_CMPA_CUSTOMER_DEFINED_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMPA_CUSTOMER_DEFINED_FIELD_SHIFT (0U)\r
-#define FLASH_CMPA_CUSTOMER_DEFINED_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CUSTOMER_DEFINED_FIELD_SHIFT)) & FLASH_CMPA_CUSTOMER_DEFINED_FIELD_MASK)\r
+#define FLASH_CMPA_CUSTOMER_DEFINED_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CMPA_CUSTOMER_DEFINED_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CMPA_CUSTOMER_DEFINED_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_CUSTOMER_DEFINED_FIELD_SHIFT)) & FLASH_CMPA_CUSTOMER_DEFINED_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CMPA_CUSTOMER_DEFINED */\r
-#define FLASH_CMPA_CUSTOMER_DEFINED_COUNT (56U)\r
+#define FLASH_CMPA_CUSTOMER_DEFINED_COUNT (56U)\r
\r
-/*! @name SHA256_DIGEST - SHA256_DIGEST0 for DIGEST[31:0] SHA256_DIGEST1 for DIGEST[63:32] SHA256_DIGEST2 for DIGEST[95:64] SHA256_DIGEST3 for DIGEST[127:96] SHA256_DIGEST4 for DIGEST[159:128] SHA256_DIGEST5 for DIGEST[191:160] SHA256_DIGEST6 for DIGEST[223:192] SHA256_DIGEST7 for DIGEST[255:224] */\r
+/*! @name SHA256_DIGEST - SHA256_DIGEST0 for DIGEST[31:0] SHA256_DIGEST1 for DIGEST[63:32] SHA256_DIGEST2 for\r
+ * DIGEST[95:64] SHA256_DIGEST3 for DIGEST[127:96] SHA256_DIGEST4 for DIGEST[159:128] SHA256_DIGEST5 for DIGEST[191:160]\r
+ * SHA256_DIGEST6 for DIGEST[223:192] SHA256_DIGEST7 for DIGEST[255:224] */\r
/*! @{ */\r
-#define FLASH_CMPA_SHA256_DIGEST_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_CMPA_SHA256_DIGEST_FIELD_SHIFT (0U)\r
-#define FLASH_CMPA_SHA256_DIGEST_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SHA256_DIGEST_FIELD_SHIFT)) & FLASH_CMPA_SHA256_DIGEST_FIELD_MASK)\r
+#define FLASH_CMPA_SHA256_DIGEST_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_CMPA_SHA256_DIGEST_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_CMPA_SHA256_DIGEST_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_CMPA_SHA256_DIGEST_FIELD_SHIFT)) & FLASH_CMPA_SHA256_DIGEST_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_CMPA_SHA256_DIGEST */\r
-#define FLASH_CMPA_SHA256_DIGEST_COUNT (8U)\r
-\r
+#define FLASH_CMPA_SHA256_DIGEST_COUNT (8U)\r
\r
/*!\r
* @}\r
*/ /* end of group FLASH_CMPA_Register_Masks */\r
\r
-\r
/* FLASH_CMPA - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral FLASH_CMPA base address */\r
- #define FLASH_CMPA_BASE (0x1009E400u)\r
- /** Peripheral FLASH_CMPA base address */\r
- #define FLASH_CMPA_BASE_NS (0x9E400u)\r
- /** Peripheral FLASH_CMPA base pointer */\r
- #define FLASH_CMPA ((FLASH_CMPA_Type *)FLASH_CMPA_BASE)\r
- /** Peripheral FLASH_CMPA base pointer */\r
- #define FLASH_CMPA_NS ((FLASH_CMPA_Type *)FLASH_CMPA_BASE_NS)\r
- /** Array initializer of FLASH_CMPA peripheral base addresses */\r
- #define FLASH_CMPA_BASE_ADDRS { FLASH_CMPA_BASE }\r
- /** Array initializer of FLASH_CMPA peripheral base pointers */\r
- #define FLASH_CMPA_BASE_PTRS { FLASH_CMPA }\r
- /** Array initializer of FLASH_CMPA peripheral base addresses */\r
- #define FLASH_CMPA_BASE_ADDRS_NS { FLASH_CMPA_BASE_NS }\r
- /** Array initializer of FLASH_CMPA peripheral base pointers */\r
- #define FLASH_CMPA_BASE_PTRS_NS { FLASH_CMPA_NS }\r
+/** Peripheral FLASH_CMPA base address */\r
+#define FLASH_CMPA_BASE (0x1009E400u)\r
+/** Peripheral FLASH_CMPA base address */\r
+#define FLASH_CMPA_BASE_NS (0x9E400u)\r
+/** Peripheral FLASH_CMPA base pointer */\r
+#define FLASH_CMPA ((FLASH_CMPA_Type *)FLASH_CMPA_BASE)\r
+/** Peripheral FLASH_CMPA base pointer */\r
+#define FLASH_CMPA_NS ((FLASH_CMPA_Type *)FLASH_CMPA_BASE_NS)\r
+/** Array initializer of FLASH_CMPA peripheral base addresses */\r
+#define FLASH_CMPA_BASE_ADDRS \\r
+ { \\r
+ FLASH_CMPA_BASE \\r
+ }\r
+/** Array initializer of FLASH_CMPA peripheral base pointers */\r
+#define FLASH_CMPA_BASE_PTRS \\r
+ { \\r
+ FLASH_CMPA \\r
+ }\r
+/** Array initializer of FLASH_CMPA peripheral base addresses */\r
+#define FLASH_CMPA_BASE_ADDRS_NS \\r
+ { \\r
+ FLASH_CMPA_BASE_NS \\r
+ }\r
+/** Array initializer of FLASH_CMPA peripheral base pointers */\r
+#define FLASH_CMPA_BASE_PTRS_NS \\r
+ { \\r
+ FLASH_CMPA_NS \\r
+ }\r
#else\r
- /** Peripheral FLASH_CMPA base address */\r
- #define FLASH_CMPA_BASE (0x9E400u)\r
- /** Peripheral FLASH_CMPA base pointer */\r
- #define FLASH_CMPA ((FLASH_CMPA_Type *)FLASH_CMPA_BASE)\r
- /** Array initializer of FLASH_CMPA peripheral base addresses */\r
- #define FLASH_CMPA_BASE_ADDRS { FLASH_CMPA_BASE }\r
- /** Array initializer of FLASH_CMPA peripheral base pointers */\r
- #define FLASH_CMPA_BASE_PTRS { FLASH_CMPA }\r
+/** Peripheral FLASH_CMPA base address */\r
+#define FLASH_CMPA_BASE (0x9E400u)\r
+/** Peripheral FLASH_CMPA base pointer */\r
+#define FLASH_CMPA ((FLASH_CMPA_Type *)FLASH_CMPA_BASE)\r
+/** Array initializer of FLASH_CMPA peripheral base addresses */\r
+#define FLASH_CMPA_BASE_ADDRS \\r
+ { \\r
+ FLASH_CMPA_BASE \\r
+ }\r
+/** Array initializer of FLASH_CMPA peripheral base pointers */\r
+#define FLASH_CMPA_BASE_PTRS \\r
+ { \\r
+ FLASH_CMPA \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group FLASH_CMPA_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- FLASH_KEY_STORE Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** FLASH_KEY_STORE - Register Layout Typedef */\r
-typedef struct {\r
- struct { /* offset: 0x0 */\r
- __IO uint32_t HEADER; /**< Valid Key Sore Header : 0x95959595, offset: 0x0 */\r
- __IO uint32_t PUF_DISCHARGE_TIME_IN_MS; /**< puf discharge time in ms., offset: 0x4 */\r
- } KEY_STORE_HEADER;\r
- __IO uint32_t ACTIVATION_CODE[298]; /**< ., array offset: 0x8, array step: 0x4 */\r
- union { /* offset: 0x4B0 */\r
- __IO uint32_t SBKEY_KEY_CODE[14]; /**< ., array offset: 0x4B0, array step: 0x4 */\r
- struct { /* offset: 0x4B0 */\r
- __IO uint32_t SBKEY_HEADER0; /**< ., offset: 0x4B0 */\r
- __IO uint32_t SBKEY_HEADER1; /**< ., offset: 0x4B4 */\r
- __IO uint32_t SBKEY_BODY[12]; /**< ., array offset: 0x4B8, array step: 0x4 */\r
- } SBKEY_KEY_CODE_CORE;\r
- };\r
- union { /* offset: 0x4E8 */\r
- __IO uint32_t USER_KEK_KEY_CODE[14]; /**< ., array offset: 0x4E8, array step: 0x4 */\r
- struct { /* offset: 0x4E8 */\r
- __IO uint32_t USER_KEK_HEADER0; /**< ., offset: 0x4E8 */\r
- __IO uint32_t USER_KEK_HEADER1; /**< ., offset: 0x4EC */\r
- __IO uint32_t USER_KEK_BODY[12]; /**< ., array offset: 0x4F0, array step: 0x4 */\r
- } USER_KEK_KEY_CODE_CORE;\r
- };\r
- union { /* offset: 0x520 */\r
- __IO uint32_t UDS_KEY_CODE[14]; /**< ., array offset: 0x520, array step: 0x4 */\r
- struct { /* offset: 0x520 */\r
- __IO uint32_t UDS_HEADER0; /**< ., offset: 0x520 */\r
- __IO uint32_t UDS_HEADER1; /**< ., offset: 0x524 */\r
- __IO uint32_t UDS_BODY[12]; /**< ., array offset: 0x528, array step: 0x4 */\r
- } UDS_KEY_CODE_CORE;\r
- };\r
- union { /* offset: 0x558 */\r
- __IO uint32_t PRINCE_REGION0_KEY_CODE[14]; /**< ., array offset: 0x558, array step: 0x4 */\r
- struct { /* offset: 0x558 */\r
- __IO uint32_t PRINCE_REGION0_HEADER0; /**< ., offset: 0x558 */\r
- __IO uint32_t PRINCE_REGION0_HEADER1; /**< ., offset: 0x55C */\r
- __IO uint32_t PRINCE_REGION0_BODY[12]; /**< ., array offset: 0x560, array step: 0x4 */\r
- } PRINCE_REGION0_KEY_CODE_CORE;\r
- };\r
- union { /* offset: 0x590 */\r
- __IO uint32_t PRINCE_REGION1_KEY_CODE[14]; /**< ., array offset: 0x590, array step: 0x4 */\r
- struct { /* offset: 0x590 */\r
- __IO uint32_t PRINCE_REGION1_HEADER0; /**< ., offset: 0x590 */\r
- __IO uint32_t PRINCE_REGION1_HEADER1; /**< ., offset: 0x594 */\r
- __IO uint32_t PRINCE_REGION1_BODY[12]; /**< ., array offset: 0x598, array step: 0x4 */\r
- } PRINCE_REGION1_KEY_CODE_CORE;\r
- };\r
- union { /* offset: 0x5C8 */\r
- __IO uint32_t PRINCE_REGION2_KEY_CODE[14]; /**< ., array offset: 0x5C8, array step: 0x4 */\r
- struct { /* offset: 0x5C8 */\r
- __IO uint32_t PRINCE_REGION2_HEADER0; /**< ., offset: 0x5C8 */\r
- __IO uint32_t PRINCE_REGION2_HEADER1; /**< ., offset: 0x5CC */\r
- __IO uint32_t PRINCE_REGION2_BODY[12]; /**< ., array offset: 0x5D0, array step: 0x4 */\r
- } PRINCE_REGION2_KEY_CODE_CORE;\r
- };\r
+typedef struct\r
+{\r
+ struct\r
+ { /* offset: 0x0 */\r
+ __IO uint32_t HEADER; /**< Valid Key Sore Header : 0x95959595, offset: 0x0 */\r
+ __IO uint32_t PUF_DISCHARGE_TIME_IN_MS; /**< puf discharge time in ms., offset: 0x4 */\r
+ } KEY_STORE_HEADER;\r
+ __IO uint32_t ACTIVATION_CODE[298]; /**< ., array offset: 0x8, array step: 0x4 */\r
+ union\r
+ { /* offset: 0x4B0 */\r
+ __IO uint32_t SBKEY_KEY_CODE[14]; /**< ., array offset: 0x4B0, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x4B0 */\r
+ __IO uint32_t SBKEY_HEADER0; /**< ., offset: 0x4B0 */\r
+ __IO uint32_t SBKEY_HEADER1; /**< ., offset: 0x4B4 */\r
+ __IO uint32_t SBKEY_BODY[12]; /**< ., array offset: 0x4B8, array step: 0x4 */\r
+ } SBKEY_KEY_CODE_CORE;\r
+ };\r
+ union\r
+ { /* offset: 0x4E8 */\r
+ __IO uint32_t USER_KEK_KEY_CODE[14]; /**< ., array offset: 0x4E8, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x4E8 */\r
+ __IO uint32_t USER_KEK_HEADER0; /**< ., offset: 0x4E8 */\r
+ __IO uint32_t USER_KEK_HEADER1; /**< ., offset: 0x4EC */\r
+ __IO uint32_t USER_KEK_BODY[12]; /**< ., array offset: 0x4F0, array step: 0x4 */\r
+ } USER_KEK_KEY_CODE_CORE;\r
+ };\r
+ union\r
+ { /* offset: 0x520 */\r
+ __IO uint32_t UDS_KEY_CODE[14]; /**< ., array offset: 0x520, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x520 */\r
+ __IO uint32_t UDS_HEADER0; /**< ., offset: 0x520 */\r
+ __IO uint32_t UDS_HEADER1; /**< ., offset: 0x524 */\r
+ __IO uint32_t UDS_BODY[12]; /**< ., array offset: 0x528, array step: 0x4 */\r
+ } UDS_KEY_CODE_CORE;\r
+ };\r
+ union\r
+ { /* offset: 0x558 */\r
+ __IO uint32_t PRINCE_REGION0_KEY_CODE[14]; /**< ., array offset: 0x558, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x558 */\r
+ __IO uint32_t PRINCE_REGION0_HEADER0; /**< ., offset: 0x558 */\r
+ __IO uint32_t PRINCE_REGION0_HEADER1; /**< ., offset: 0x55C */\r
+ __IO uint32_t PRINCE_REGION0_BODY[12]; /**< ., array offset: 0x560, array step: 0x4 */\r
+ } PRINCE_REGION0_KEY_CODE_CORE;\r
+ };\r
+ union\r
+ { /* offset: 0x590 */\r
+ __IO uint32_t PRINCE_REGION1_KEY_CODE[14]; /**< ., array offset: 0x590, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x590 */\r
+ __IO uint32_t PRINCE_REGION1_HEADER0; /**< ., offset: 0x590 */\r
+ __IO uint32_t PRINCE_REGION1_HEADER1; /**< ., offset: 0x594 */\r
+ __IO uint32_t PRINCE_REGION1_BODY[12]; /**< ., array offset: 0x598, array step: 0x4 */\r
+ } PRINCE_REGION1_KEY_CODE_CORE;\r
+ };\r
+ union\r
+ { /* offset: 0x5C8 */\r
+ __IO uint32_t PRINCE_REGION2_KEY_CODE[14]; /**< ., array offset: 0x5C8, array step: 0x4 */\r
+ struct\r
+ { /* offset: 0x5C8 */\r
+ __IO uint32_t PRINCE_REGION2_HEADER0; /**< ., offset: 0x5C8 */\r
+ __IO uint32_t PRINCE_REGION2_HEADER1; /**< ., offset: 0x5CC */\r
+ __IO uint32_t PRINCE_REGION2_BODY[12]; /**< ., array offset: 0x5D0, array step: 0x4 */\r
+ } PRINCE_REGION2_KEY_CODE_CORE;\r
+ };\r
} FLASH_KEY_STORE_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name HEADER - Valid Key Sore Header : 0x95959595 */\r
/*! @{ */\r
-#define FLASH_KEY_STORE_HEADER_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_KEY_STORE_HEADER_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_HEADER_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_HEADER_FIELD_SHIFT)) & FLASH_KEY_STORE_HEADER_FIELD_MASK)\r
+#define FLASH_KEY_STORE_HEADER_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_KEY_STORE_HEADER_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_HEADER_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_HEADER_FIELD_SHIFT)) & FLASH_KEY_STORE_HEADER_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PUF_DISCHARGE_TIME_IN_MS - puf discharge time in ms. */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PUF_DISCHARGE_TIME_IN_MS_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PUF_DISCHARGE_TIME_IN_MS_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PUF_DISCHARGE_TIME_IN_MS_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PUF_DISCHARGE_TIME_IN_MS_FIELD_SHIFT)) & FLASH_KEY_STORE_PUF_DISCHARGE_TIME_IN_MS_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PUF_DISCHARGE_TIME_IN_MS_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PUF_DISCHARGE_TIME_IN_MS_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PUF_DISCHARGE_TIME_IN_MS_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name ACTIVATION_CODE - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_ACTIVATION_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_ACTIVATION_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_ACTIVATION_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_ACTIVATION_CODE_FIELD_SHIFT)) & FLASH_KEY_STORE_ACTIVATION_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_ACTIVATION_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_ACTIVATION_CODE_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_ACTIVATION_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_ACTIVATION_CODE */\r
-#define FLASH_KEY_STORE_ACTIVATION_CODE_COUNT (298U)\r
+#define FLASH_KEY_STORE_ACTIVATION_CODE_COUNT (298U)\r
\r
/*! @name SBKEY_KEY_CODE - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_SBKEY_KEY_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_SBKEY_KEY_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_SBKEY_KEY_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_KEY_CODE_FIELD_SHIFT)) & FLASH_KEY_STORE_SBKEY_KEY_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_SBKEY_KEY_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_KEY_CODE_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_SBKEY_KEY_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_SBKEY_KEY_CODE */\r
-#define FLASH_KEY_STORE_SBKEY_KEY_CODE_COUNT (14U)\r
+#define FLASH_KEY_STORE_SBKEY_KEY_CODE_COUNT (14U)\r
\r
/*! @name SBKEY_HEADER0 - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_SBKEY_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_SBKEY_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_SBKEY_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_HEADER0_FIELD_SHIFT)) & FLASH_KEY_STORE_SBKEY_HEADER0_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_SBKEY_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_HEADER0_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_SBKEY_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name SBKEY_HEADER1 - . */\r
/*! @{ */\r
-#define FLASH_KEY_STORE_SBKEY_HEADER1_TYPE_MASK (0x3U)\r
+#define FLASH_KEY_STORE_SBKEY_HEADER1_TYPE_MASK (0x3U)\r
#define FLASH_KEY_STORE_SBKEY_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_KEY_STORE_SBKEY_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_HEADER1_TYPE_SHIFT)) & FLASH_KEY_STORE_SBKEY_HEADER1_TYPE_MASK)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_KEY_STORE_SBKEY_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_HEADER1_TYPE_SHIFT)) & \\r
+ FLASH_KEY_STORE_SBKEY_HEADER1_TYPE_MASK)\r
#define FLASH_KEY_STORE_SBKEY_HEADER1_INDEX_MASK (0xF00U)\r
#define FLASH_KEY_STORE_SBKEY_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_KEY_STORE_SBKEY_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_HEADER1_INDEX_SHIFT)) & FLASH_KEY_STORE_SBKEY_HEADER1_INDEX_MASK)\r
-#define FLASH_KEY_STORE_SBKEY_HEADER1_SIZE_MASK (0x3F000000U)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_KEY_STORE_SBKEY_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_HEADER1_INDEX_SHIFT)) & \\r
+ FLASH_KEY_STORE_SBKEY_HEADER1_INDEX_MASK)\r
+#define FLASH_KEY_STORE_SBKEY_HEADER1_SIZE_MASK (0x3F000000U)\r
#define FLASH_KEY_STORE_SBKEY_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_KEY_STORE_SBKEY_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_HEADER1_SIZE_SHIFT)) & FLASH_KEY_STORE_SBKEY_HEADER1_SIZE_MASK)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_KEY_STORE_SBKEY_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_HEADER1_SIZE_SHIFT)) & \\r
+ FLASH_KEY_STORE_SBKEY_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name SBKEY_BODY - . */\r
/*! @{ */\r
-#define FLASH_KEY_STORE_SBKEY_BODY_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_KEY_STORE_SBKEY_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_SBKEY_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_BODY_FIELD_SHIFT)) & FLASH_KEY_STORE_SBKEY_BODY_FIELD_MASK)\r
+#define FLASH_KEY_STORE_SBKEY_BODY_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_KEY_STORE_SBKEY_BODY_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_SBKEY_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_SBKEY_BODY_FIELD_SHIFT)) & FLASH_KEY_STORE_SBKEY_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_SBKEY_BODY */\r
-#define FLASH_KEY_STORE_SBKEY_BODY_COUNT (12U)\r
+#define FLASH_KEY_STORE_SBKEY_BODY_COUNT (12U)\r
\r
/*! @name USER_KEK_KEY_CODE - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_USER_KEK_KEY_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_USER_KEK_KEY_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_USER_KEK_KEY_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_KEY_CODE_FIELD_SHIFT)) & FLASH_KEY_STORE_USER_KEK_KEY_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_USER_KEK_KEY_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_KEY_CODE_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_USER_KEK_KEY_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_USER_KEK_KEY_CODE */\r
-#define FLASH_KEY_STORE_USER_KEK_KEY_CODE_COUNT (14U)\r
+#define FLASH_KEY_STORE_USER_KEK_KEY_CODE_COUNT (14U)\r
\r
/*! @name USER_KEK_HEADER0 - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_USER_KEK_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_USER_KEK_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_USER_KEK_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_HEADER0_FIELD_SHIFT)) & FLASH_KEY_STORE_USER_KEK_HEADER0_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_USER_KEK_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_HEADER0_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_USER_KEK_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name USER_KEK_HEADER1 - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_USER_KEK_HEADER1_TYPE_MASK (0x3U)\r
#define FLASH_KEY_STORE_USER_KEK_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_KEY_STORE_USER_KEK_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_HEADER1_TYPE_SHIFT)) & FLASH_KEY_STORE_USER_KEK_HEADER1_TYPE_MASK)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_KEY_STORE_USER_KEK_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_HEADER1_TYPE_SHIFT)) & \\r
+ FLASH_KEY_STORE_USER_KEK_HEADER1_TYPE_MASK)\r
#define FLASH_KEY_STORE_USER_KEK_HEADER1_INDEX_MASK (0xF00U)\r
#define FLASH_KEY_STORE_USER_KEK_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_KEY_STORE_USER_KEK_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_HEADER1_INDEX_SHIFT)) & FLASH_KEY_STORE_USER_KEK_HEADER1_INDEX_MASK)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_KEY_STORE_USER_KEK_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_HEADER1_INDEX_SHIFT)) & \\r
+ FLASH_KEY_STORE_USER_KEK_HEADER1_INDEX_MASK)\r
#define FLASH_KEY_STORE_USER_KEK_HEADER1_SIZE_MASK (0x3F000000U)\r
#define FLASH_KEY_STORE_USER_KEK_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_KEY_STORE_USER_KEK_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_HEADER1_SIZE_SHIFT)) & FLASH_KEY_STORE_USER_KEK_HEADER1_SIZE_MASK)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_KEY_STORE_USER_KEK_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_HEADER1_SIZE_SHIFT)) & \\r
+ FLASH_KEY_STORE_USER_KEK_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name USER_KEK_BODY - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_USER_KEK_BODY_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_USER_KEK_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_USER_KEK_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_BODY_FIELD_SHIFT)) & FLASH_KEY_STORE_USER_KEK_BODY_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_USER_KEK_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_USER_KEK_BODY_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_USER_KEK_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_USER_KEK_BODY */\r
-#define FLASH_KEY_STORE_USER_KEK_BODY_COUNT (12U)\r
+#define FLASH_KEY_STORE_USER_KEK_BODY_COUNT (12U)\r
\r
/*! @name UDS_KEY_CODE - . */\r
/*! @{ */\r
-#define FLASH_KEY_STORE_UDS_KEY_CODE_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_KEY_STORE_UDS_KEY_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_UDS_KEY_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_UDS_KEY_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_KEY_CODE_FIELD_SHIFT)) & FLASH_KEY_STORE_UDS_KEY_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_UDS_KEY_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_KEY_CODE_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_UDS_KEY_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_UDS_KEY_CODE */\r
-#define FLASH_KEY_STORE_UDS_KEY_CODE_COUNT (14U)\r
+#define FLASH_KEY_STORE_UDS_KEY_CODE_COUNT (14U)\r
\r
/*! @name UDS_HEADER0 - . */\r
/*! @{ */\r
-#define FLASH_KEY_STORE_UDS_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_KEY_STORE_UDS_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_UDS_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_HEADER0_FIELD_SHIFT)) & FLASH_KEY_STORE_UDS_HEADER0_FIELD_MASK)\r
+#define FLASH_KEY_STORE_UDS_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_KEY_STORE_UDS_HEADER0_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_UDS_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_HEADER0_FIELD_SHIFT)) & FLASH_KEY_STORE_UDS_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name UDS_HEADER1 - . */\r
/*! @{ */\r
-#define FLASH_KEY_STORE_UDS_HEADER1_TYPE_MASK (0x3U)\r
-#define FLASH_KEY_STORE_UDS_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_KEY_STORE_UDS_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_HEADER1_TYPE_SHIFT)) & FLASH_KEY_STORE_UDS_HEADER1_TYPE_MASK)\r
-#define FLASH_KEY_STORE_UDS_HEADER1_INDEX_MASK (0xF00U)\r
-#define FLASH_KEY_STORE_UDS_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_KEY_STORE_UDS_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_HEADER1_INDEX_SHIFT)) & FLASH_KEY_STORE_UDS_HEADER1_INDEX_MASK)\r
-#define FLASH_KEY_STORE_UDS_HEADER1_SIZE_MASK (0x3F000000U)\r
-#define FLASH_KEY_STORE_UDS_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_KEY_STORE_UDS_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_HEADER1_SIZE_SHIFT)) & FLASH_KEY_STORE_UDS_HEADER1_SIZE_MASK)\r
+#define FLASH_KEY_STORE_UDS_HEADER1_TYPE_MASK (0x3U)\r
+#define FLASH_KEY_STORE_UDS_HEADER1_TYPE_SHIFT (0U)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_KEY_STORE_UDS_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_HEADER1_TYPE_SHIFT)) & FLASH_KEY_STORE_UDS_HEADER1_TYPE_MASK)\r
+#define FLASH_KEY_STORE_UDS_HEADER1_INDEX_MASK (0xF00U)\r
+#define FLASH_KEY_STORE_UDS_HEADER1_INDEX_SHIFT (8U)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_KEY_STORE_UDS_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_HEADER1_INDEX_SHIFT)) & FLASH_KEY_STORE_UDS_HEADER1_INDEX_MASK)\r
+#define FLASH_KEY_STORE_UDS_HEADER1_SIZE_MASK (0x3F000000U)\r
+#define FLASH_KEY_STORE_UDS_HEADER1_SIZE_SHIFT (24U)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_KEY_STORE_UDS_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_HEADER1_SIZE_SHIFT)) & FLASH_KEY_STORE_UDS_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name UDS_BODY - . */\r
/*! @{ */\r
-#define FLASH_KEY_STORE_UDS_BODY_FIELD_MASK (0xFFFFFFFFU)\r
-#define FLASH_KEY_STORE_UDS_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_UDS_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_BODY_FIELD_SHIFT)) & FLASH_KEY_STORE_UDS_BODY_FIELD_MASK)\r
+#define FLASH_KEY_STORE_UDS_BODY_FIELD_MASK (0xFFFFFFFFU)\r
+#define FLASH_KEY_STORE_UDS_BODY_FIELD_SHIFT (0U)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_UDS_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_UDS_BODY_FIELD_SHIFT)) & FLASH_KEY_STORE_UDS_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_UDS_BODY */\r
-#define FLASH_KEY_STORE_UDS_BODY_COUNT (12U)\r
+#define FLASH_KEY_STORE_UDS_BODY_COUNT (12U)\r
\r
/*! @name PRINCE_REGION0_KEY_CODE - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_PRINCE_REGION0_KEY_CODE */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_HEADER0_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION0_HEADER0_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_HEADER0_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION0_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION0_HEADER1 - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_TYPE_MASK (0x3U)\r
#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_TYPE_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_TYPE_MASK)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_TYPE_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_TYPE_MASK)\r
#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_INDEX_MASK (0xF00U)\r
#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_INDEX_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_INDEX_MASK)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_INDEX_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_INDEX_MASK)\r
#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_SIZE_MASK (0x3F000000U)\r
#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_SIZE_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_SIZE_MASK)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_SIZE_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION0_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION0_BODY - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION0_BODY_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION0_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION0_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_BODY_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION0_BODY_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION0_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION0_BODY_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION0_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_PRINCE_REGION0_BODY */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_PRINCE_REGION1_KEY_CODE */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_HEADER0_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION1_HEADER0_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_HEADER0_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION1_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION1_HEADER1 - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_TYPE_MASK (0x3U)\r
#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_TYPE_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_TYPE_MASK)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_TYPE_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_TYPE_MASK)\r
#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_INDEX_MASK (0xF00U)\r
#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_INDEX_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_INDEX_MASK)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_INDEX_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_INDEX_MASK)\r
#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_SIZE_MASK (0x3F000000U)\r
#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_SIZE_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_SIZE_MASK)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_SIZE_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION1_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION1_BODY - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION1_BODY_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION1_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION1_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_BODY_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION1_BODY_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION1_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION1_BODY_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION1_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_PRINCE_REGION1_BODY */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_PRINCE_REGION2_KEY_CODE */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER0_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER0_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER0_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_HEADER0_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION2_HEADER0_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER0_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_HEADER0_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION2_HEADER0_FIELD_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION2_HEADER1 - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_TYPE_MASK (0x3U)\r
#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_TYPE_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_TYPE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_TYPE_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_TYPE_MASK)\r
+/*! TYPE - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_TYPE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_TYPE_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_TYPE_MASK)\r
#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_INDEX_MASK (0xF00U)\r
#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_INDEX_SHIFT (8U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_INDEX(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_INDEX_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_INDEX_MASK)\r
+/*! INDEX - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_INDEX_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_INDEX_MASK)\r
#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_SIZE_MASK (0x3F000000U)\r
#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_SIZE_SHIFT (24U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_SIZE(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_SIZE_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_SIZE_MASK)\r
+/*! SIZE - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_SIZE_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION2_HEADER1_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name PRINCE_REGION2_BODY - . */\r
/*! @{ */\r
#define FLASH_KEY_STORE_PRINCE_REGION2_BODY_FIELD_MASK (0xFFFFFFFFU)\r
#define FLASH_KEY_STORE_PRINCE_REGION2_BODY_FIELD_SHIFT (0U)\r
-#define FLASH_KEY_STORE_PRINCE_REGION2_BODY_FIELD(x) (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_BODY_FIELD_SHIFT)) & FLASH_KEY_STORE_PRINCE_REGION2_BODY_FIELD_MASK)\r
+/*! FIELD - .\r
+ */\r
+#define FLASH_KEY_STORE_PRINCE_REGION2_BODY_FIELD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLASH_KEY_STORE_PRINCE_REGION2_BODY_FIELD_SHIFT)) & \\r
+ FLASH_KEY_STORE_PRINCE_REGION2_BODY_FIELD_MASK)\r
/*! @} */\r
\r
/* The count of FLASH_KEY_STORE_PRINCE_REGION2_BODY */\r
#define FLASH_KEY_STORE_PRINCE_REGION2_BODY_COUNT (12U)\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group FLASH_KEY_STORE_Register_Masks */\r
\r
-\r
/* FLASH_KEY_STORE - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral FLASH_KEY_STORE base address */\r
- #define FLASH_KEY_STORE_BASE (0x1009E600u)\r
- /** Peripheral FLASH_KEY_STORE base address */\r
- #define FLASH_KEY_STORE_BASE_NS (0x9E600u)\r
- /** Peripheral FLASH_KEY_STORE base pointer */\r
- #define FLASH_KEY_STORE ((FLASH_KEY_STORE_Type *)FLASH_KEY_STORE_BASE)\r
- /** Peripheral FLASH_KEY_STORE base pointer */\r
- #define FLASH_KEY_STORE_NS ((FLASH_KEY_STORE_Type *)FLASH_KEY_STORE_BASE_NS)\r
- /** Array initializer of FLASH_KEY_STORE peripheral base addresses */\r
- #define FLASH_KEY_STORE_BASE_ADDRS { FLASH_KEY_STORE_BASE }\r
- /** Array initializer of FLASH_KEY_STORE peripheral base pointers */\r
- #define FLASH_KEY_STORE_BASE_PTRS { FLASH_KEY_STORE }\r
- /** Array initializer of FLASH_KEY_STORE peripheral base addresses */\r
- #define FLASH_KEY_STORE_BASE_ADDRS_NS { FLASH_KEY_STORE_BASE_NS }\r
- /** Array initializer of FLASH_KEY_STORE peripheral base pointers */\r
- #define FLASH_KEY_STORE_BASE_PTRS_NS { FLASH_KEY_STORE_NS }\r
+/** Peripheral FLASH_KEY_STORE base address */\r
+#define FLASH_KEY_STORE_BASE (0x1009E600u)\r
+/** Peripheral FLASH_KEY_STORE base address */\r
+#define FLASH_KEY_STORE_BASE_NS (0x9E600u)\r
+/** Peripheral FLASH_KEY_STORE base pointer */\r
+#define FLASH_KEY_STORE ((FLASH_KEY_STORE_Type *)FLASH_KEY_STORE_BASE)\r
+/** Peripheral FLASH_KEY_STORE base pointer */\r
+#define FLASH_KEY_STORE_NS ((FLASH_KEY_STORE_Type *)FLASH_KEY_STORE_BASE_NS)\r
+/** Array initializer of FLASH_KEY_STORE peripheral base addresses */\r
+#define FLASH_KEY_STORE_BASE_ADDRS \\r
+ { \\r
+ FLASH_KEY_STORE_BASE \\r
+ }\r
+/** Array initializer of FLASH_KEY_STORE peripheral base pointers */\r
+#define FLASH_KEY_STORE_BASE_PTRS \\r
+ { \\r
+ FLASH_KEY_STORE \\r
+ }\r
+/** Array initializer of FLASH_KEY_STORE peripheral base addresses */\r
+#define FLASH_KEY_STORE_BASE_ADDRS_NS \\r
+ { \\r
+ FLASH_KEY_STORE_BASE_NS \\r
+ }\r
+/** Array initializer of FLASH_KEY_STORE peripheral base pointers */\r
+#define FLASH_KEY_STORE_BASE_PTRS_NS \\r
+ { \\r
+ FLASH_KEY_STORE_NS \\r
+ }\r
#else\r
- /** Peripheral FLASH_KEY_STORE base address */\r
- #define FLASH_KEY_STORE_BASE (0x9E600u)\r
- /** Peripheral FLASH_KEY_STORE base pointer */\r
- #define FLASH_KEY_STORE ((FLASH_KEY_STORE_Type *)FLASH_KEY_STORE_BASE)\r
- /** Array initializer of FLASH_KEY_STORE peripheral base addresses */\r
- #define FLASH_KEY_STORE_BASE_ADDRS { FLASH_KEY_STORE_BASE }\r
- /** Array initializer of FLASH_KEY_STORE peripheral base pointers */\r
- #define FLASH_KEY_STORE_BASE_PTRS { FLASH_KEY_STORE }\r
+/** Peripheral FLASH_KEY_STORE base address */\r
+#define FLASH_KEY_STORE_BASE (0x9E600u)\r
+/** Peripheral FLASH_KEY_STORE base pointer */\r
+#define FLASH_KEY_STORE ((FLASH_KEY_STORE_Type *)FLASH_KEY_STORE_BASE)\r
+/** Array initializer of FLASH_KEY_STORE peripheral base addresses */\r
+#define FLASH_KEY_STORE_BASE_ADDRS \\r
+ { \\r
+ FLASH_KEY_STORE_BASE \\r
+ }\r
+/** Array initializer of FLASH_KEY_STORE peripheral base pointers */\r
+#define FLASH_KEY_STORE_BASE_PTRS \\r
+ { \\r
+ FLASH_KEY_STORE \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group FLASH_KEY_STORE_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- FLEXCOMM Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** FLEXCOMM - Register Layout Typedef */\r
-typedef struct {\r
- uint8_t RESERVED_0[4088];\r
- __IO uint32_t PSELID; /**< Peripheral Select and Flexcomm ID register., offset: 0xFF8 */\r
- __I uint32_t PID; /**< Peripheral identification register., offset: 0xFFC */\r
+typedef struct\r
+{\r
+ uint8_t RESERVED_0[4088];\r
+ __IO uint32_t PSELID; /**< Peripheral Select and Flexcomm ID register., offset: 0xFF8 */\r
+ __I uint32_t PID; /**< Peripheral identification register., offset: 0xFFC */\r
} FLEXCOMM_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name PSELID - Peripheral Select and Flexcomm ID register. */\r
/*! @{ */\r
-#define FLEXCOMM_PSELID_PERSEL_MASK (0x7U)\r
-#define FLEXCOMM_PSELID_PERSEL_SHIFT (0U)\r
+#define FLEXCOMM_PSELID_PERSEL_MASK (0x7U)\r
+#define FLEXCOMM_PSELID_PERSEL_SHIFT (0U)\r
/*! PERSEL - Peripheral Select. This field is writable by software.\r
* 0b000..No peripheral selected.\r
* 0b001..USART function selected.\r
* 0b110..Reserved\r
* 0b111..Reserved\r
*/\r
-#define FLEXCOMM_PSELID_PERSEL(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_PERSEL_SHIFT)) & FLEXCOMM_PSELID_PERSEL_MASK)\r
-#define FLEXCOMM_PSELID_LOCK_MASK (0x8U)\r
-#define FLEXCOMM_PSELID_LOCK_SHIFT (3U)\r
+#define FLEXCOMM_PSELID_PERSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_PERSEL_SHIFT)) & FLEXCOMM_PSELID_PERSEL_MASK)\r
+#define FLEXCOMM_PSELID_LOCK_MASK (0x8U)\r
+#define FLEXCOMM_PSELID_LOCK_SHIFT (3U)\r
/*! LOCK - Lock the peripheral select. This field is writable by software.\r
* 0b0..Peripheral select can be changed by software.\r
* 0b1..Peripheral select is locked and cannot be changed until this Flexcomm or the entire device is reset.\r
*/\r
-#define FLEXCOMM_PSELID_LOCK(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_LOCK_SHIFT)) & FLEXCOMM_PSELID_LOCK_MASK)\r
-#define FLEXCOMM_PSELID_USARTPRESENT_MASK (0x10U)\r
-#define FLEXCOMM_PSELID_USARTPRESENT_SHIFT (4U)\r
+#define FLEXCOMM_PSELID_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_LOCK_SHIFT)) & FLEXCOMM_PSELID_LOCK_MASK)\r
+#define FLEXCOMM_PSELID_USARTPRESENT_MASK (0x10U)\r
+#define FLEXCOMM_PSELID_USARTPRESENT_SHIFT (4U)\r
/*! USARTPRESENT - USART present indicator. This field is Read-only.\r
* 0b0..This Flexcomm does not include the USART function.\r
* 0b1..This Flexcomm includes the USART function.\r
*/\r
-#define FLEXCOMM_PSELID_USARTPRESENT(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_USARTPRESENT_SHIFT)) & FLEXCOMM_PSELID_USARTPRESENT_MASK)\r
-#define FLEXCOMM_PSELID_SPIPRESENT_MASK (0x20U)\r
-#define FLEXCOMM_PSELID_SPIPRESENT_SHIFT (5U)\r
+#define FLEXCOMM_PSELID_USARTPRESENT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_USARTPRESENT_SHIFT)) & FLEXCOMM_PSELID_USARTPRESENT_MASK)\r
+#define FLEXCOMM_PSELID_SPIPRESENT_MASK (0x20U)\r
+#define FLEXCOMM_PSELID_SPIPRESENT_SHIFT (5U)\r
/*! SPIPRESENT - SPI present indicator. This field is Read-only.\r
* 0b0..This Flexcomm does not include the SPI function.\r
* 0b1..This Flexcomm includes the SPI function.\r
*/\r
-#define FLEXCOMM_PSELID_SPIPRESENT(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_SPIPRESENT_SHIFT)) & FLEXCOMM_PSELID_SPIPRESENT_MASK)\r
-#define FLEXCOMM_PSELID_I2CPRESENT_MASK (0x40U)\r
-#define FLEXCOMM_PSELID_I2CPRESENT_SHIFT (6U)\r
+#define FLEXCOMM_PSELID_SPIPRESENT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_SPIPRESENT_SHIFT)) & FLEXCOMM_PSELID_SPIPRESENT_MASK)\r
+#define FLEXCOMM_PSELID_I2CPRESENT_MASK (0x40U)\r
+#define FLEXCOMM_PSELID_I2CPRESENT_SHIFT (6U)\r
/*! I2CPRESENT - I2C present indicator. This field is Read-only.\r
* 0b0..This Flexcomm does not include the I2C function.\r
* 0b1..This Flexcomm includes the I2C function.\r
*/\r
-#define FLEXCOMM_PSELID_I2CPRESENT(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_I2CPRESENT_SHIFT)) & FLEXCOMM_PSELID_I2CPRESENT_MASK)\r
-#define FLEXCOMM_PSELID_I2SPRESENT_MASK (0x80U)\r
-#define FLEXCOMM_PSELID_I2SPRESENT_SHIFT (7U)\r
+#define FLEXCOMM_PSELID_I2CPRESENT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_I2CPRESENT_SHIFT)) & FLEXCOMM_PSELID_I2CPRESENT_MASK)\r
+#define FLEXCOMM_PSELID_I2SPRESENT_MASK (0x80U)\r
+#define FLEXCOMM_PSELID_I2SPRESENT_SHIFT (7U)\r
/*! I2SPRESENT - I 2S present indicator. This field is Read-only.\r
* 0b0..This Flexcomm does not include the I2S function.\r
* 0b1..This Flexcomm includes the I2S function.\r
*/\r
-#define FLEXCOMM_PSELID_I2SPRESENT(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_I2SPRESENT_SHIFT)) & FLEXCOMM_PSELID_I2SPRESENT_MASK)\r
-#define FLEXCOMM_PSELID_ID_MASK (0xFFFFF000U)\r
-#define FLEXCOMM_PSELID_ID_SHIFT (12U)\r
-#define FLEXCOMM_PSELID_ID(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_ID_SHIFT)) & FLEXCOMM_PSELID_ID_MASK)\r
+#define FLEXCOMM_PSELID_I2SPRESENT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_I2SPRESENT_SHIFT)) & FLEXCOMM_PSELID_I2SPRESENT_MASK)\r
+#define FLEXCOMM_PSELID_ID_MASK (0xFFFFF000U)\r
+#define FLEXCOMM_PSELID_ID_SHIFT (12U)\r
+/*! ID - Flexcomm ID.\r
+ */\r
+#define FLEXCOMM_PSELID_ID(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PSELID_ID_SHIFT)) & FLEXCOMM_PSELID_ID_MASK)\r
/*! @} */\r
\r
/*! @name PID - Peripheral identification register. */\r
/*! @{ */\r
-#define FLEXCOMM_PID_Aperture_MASK (0xFFU)\r
-#define FLEXCOMM_PID_Aperture_SHIFT (0U)\r
-#define FLEXCOMM_PID_Aperture(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PID_Aperture_SHIFT)) & FLEXCOMM_PID_Aperture_MASK)\r
-#define FLEXCOMM_PID_Minor_Rev_MASK (0xF00U)\r
-#define FLEXCOMM_PID_Minor_Rev_SHIFT (8U)\r
-#define FLEXCOMM_PID_Minor_Rev(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PID_Minor_Rev_SHIFT)) & FLEXCOMM_PID_Minor_Rev_MASK)\r
-#define FLEXCOMM_PID_Major_Rev_MASK (0xF000U)\r
-#define FLEXCOMM_PID_Major_Rev_SHIFT (12U)\r
-#define FLEXCOMM_PID_Major_Rev(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PID_Major_Rev_SHIFT)) & FLEXCOMM_PID_Major_Rev_MASK)\r
-#define FLEXCOMM_PID_ID_MASK (0xFFFF0000U)\r
-#define FLEXCOMM_PID_ID_SHIFT (16U)\r
-#define FLEXCOMM_PID_ID(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PID_ID_SHIFT)) & FLEXCOMM_PID_ID_MASK)\r
+#define FLEXCOMM_PID_APERTURE_MASK (0xFFU)\r
+#define FLEXCOMM_PID_APERTURE_SHIFT (0U)\r
+/*! APERTURE - size aperture for the register port on the bus (APB or AHB).\r
+ */\r
+#define FLEXCOMM_PID_APERTURE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PID_APERTURE_SHIFT)) & FLEXCOMM_PID_APERTURE_MASK)\r
+#define FLEXCOMM_PID_MINOR_REV_MASK (0xF00U)\r
+#define FLEXCOMM_PID_MINOR_REV_SHIFT (8U)\r
+/*! MINOR_REV - Minor revision of module implementation.\r
+ */\r
+#define FLEXCOMM_PID_MINOR_REV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PID_MINOR_REV_SHIFT)) & FLEXCOMM_PID_MINOR_REV_MASK)\r
+#define FLEXCOMM_PID_MAJOR_REV_MASK (0xF000U)\r
+#define FLEXCOMM_PID_MAJOR_REV_SHIFT (12U)\r
+/*! MAJOR_REV - Major revision of module implementation.\r
+ */\r
+#define FLEXCOMM_PID_MAJOR_REV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PID_MAJOR_REV_SHIFT)) & FLEXCOMM_PID_MAJOR_REV_MASK)\r
+#define FLEXCOMM_PID_ID_MASK (0xFFFF0000U)\r
+#define FLEXCOMM_PID_ID_SHIFT (16U)\r
+/*! ID - Module identifier for the selected function.\r
+ */\r
+#define FLEXCOMM_PID_ID(x) (((uint32_t)(((uint32_t)(x)) << FLEXCOMM_PID_ID_SHIFT)) & FLEXCOMM_PID_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group FLEXCOMM_Register_Masks */\r
\r
-\r
/* FLEXCOMM - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral FLEXCOMM0 base address */\r
- #define FLEXCOMM0_BASE (0x50086000u)\r
- /** Peripheral FLEXCOMM0 base address */\r
- #define FLEXCOMM0_BASE_NS (0x40086000u)\r
- /** Peripheral FLEXCOMM0 base pointer */\r
- #define FLEXCOMM0 ((FLEXCOMM_Type *)FLEXCOMM0_BASE)\r
- /** Peripheral FLEXCOMM0 base pointer */\r
- #define FLEXCOMM0_NS ((FLEXCOMM_Type *)FLEXCOMM0_BASE_NS)\r
- /** Peripheral FLEXCOMM1 base address */\r
- #define FLEXCOMM1_BASE (0x50087000u)\r
- /** Peripheral FLEXCOMM1 base address */\r
- #define FLEXCOMM1_BASE_NS (0x40087000u)\r
- /** Peripheral FLEXCOMM1 base pointer */\r
- #define FLEXCOMM1 ((FLEXCOMM_Type *)FLEXCOMM1_BASE)\r
- /** Peripheral FLEXCOMM1 base pointer */\r
- #define FLEXCOMM1_NS ((FLEXCOMM_Type *)FLEXCOMM1_BASE_NS)\r
- /** Peripheral FLEXCOMM2 base address */\r
- #define FLEXCOMM2_BASE (0x50088000u)\r
- /** Peripheral FLEXCOMM2 base address */\r
- #define FLEXCOMM2_BASE_NS (0x40088000u)\r
- /** Peripheral FLEXCOMM2 base pointer */\r
- #define FLEXCOMM2 ((FLEXCOMM_Type *)FLEXCOMM2_BASE)\r
- /** Peripheral FLEXCOMM2 base pointer */\r
- #define FLEXCOMM2_NS ((FLEXCOMM_Type *)FLEXCOMM2_BASE_NS)\r
- /** Peripheral FLEXCOMM3 base address */\r
- #define FLEXCOMM3_BASE (0x50089000u)\r
- /** Peripheral FLEXCOMM3 base address */\r
- #define FLEXCOMM3_BASE_NS (0x40089000u)\r
- /** Peripheral FLEXCOMM3 base pointer */\r
- #define FLEXCOMM3 ((FLEXCOMM_Type *)FLEXCOMM3_BASE)\r
- /** Peripheral FLEXCOMM3 base pointer */\r
- #define FLEXCOMM3_NS ((FLEXCOMM_Type *)FLEXCOMM3_BASE_NS)\r
- /** Peripheral FLEXCOMM4 base address */\r
- #define FLEXCOMM4_BASE (0x5008A000u)\r
- /** Peripheral FLEXCOMM4 base address */\r
- #define FLEXCOMM4_BASE_NS (0x4008A000u)\r
- /** Peripheral FLEXCOMM4 base pointer */\r
- #define FLEXCOMM4 ((FLEXCOMM_Type *)FLEXCOMM4_BASE)\r
- /** Peripheral FLEXCOMM4 base pointer */\r
- #define FLEXCOMM4_NS ((FLEXCOMM_Type *)FLEXCOMM4_BASE_NS)\r
- /** Peripheral FLEXCOMM5 base address */\r
- #define FLEXCOMM5_BASE (0x50096000u)\r
- /** Peripheral FLEXCOMM5 base address */\r
- #define FLEXCOMM5_BASE_NS (0x40096000u)\r
- /** Peripheral FLEXCOMM5 base pointer */\r
- #define FLEXCOMM5 ((FLEXCOMM_Type *)FLEXCOMM5_BASE)\r
- /** Peripheral FLEXCOMM5 base pointer */\r
- #define FLEXCOMM5_NS ((FLEXCOMM_Type *)FLEXCOMM5_BASE_NS)\r
- /** Peripheral FLEXCOMM6 base address */\r
- #define FLEXCOMM6_BASE (0x50097000u)\r
- /** Peripheral FLEXCOMM6 base address */\r
- #define FLEXCOMM6_BASE_NS (0x40097000u)\r
- /** Peripheral FLEXCOMM6 base pointer */\r
- #define FLEXCOMM6 ((FLEXCOMM_Type *)FLEXCOMM6_BASE)\r
- /** Peripheral FLEXCOMM6 base pointer */\r
- #define FLEXCOMM6_NS ((FLEXCOMM_Type *)FLEXCOMM6_BASE_NS)\r
- /** Peripheral FLEXCOMM7 base address */\r
- #define FLEXCOMM7_BASE (0x50098000u)\r
- /** Peripheral FLEXCOMM7 base address */\r
- #define FLEXCOMM7_BASE_NS (0x40098000u)\r
- /** Peripheral FLEXCOMM7 base pointer */\r
- #define FLEXCOMM7 ((FLEXCOMM_Type *)FLEXCOMM7_BASE)\r
- /** Peripheral FLEXCOMM7 base pointer */\r
- #define FLEXCOMM7_NS ((FLEXCOMM_Type *)FLEXCOMM7_BASE_NS)\r
- /** Peripheral FLEXCOMM8 base address */\r
- #define FLEXCOMM8_BASE (0x5009F000u)\r
- /** Peripheral FLEXCOMM8 base address */\r
- #define FLEXCOMM8_BASE_NS (0x4009F000u)\r
- /** Peripheral FLEXCOMM8 base pointer */\r
- #define FLEXCOMM8 ((FLEXCOMM_Type *)FLEXCOMM8_BASE)\r
- /** Peripheral FLEXCOMM8 base pointer */\r
- #define FLEXCOMM8_NS ((FLEXCOMM_Type *)FLEXCOMM8_BASE_NS)\r
- /** Array initializer of FLEXCOMM peripheral base addresses */\r
- #define FLEXCOMM_BASE_ADDRS { FLEXCOMM0_BASE, FLEXCOMM1_BASE, FLEXCOMM2_BASE, FLEXCOMM3_BASE, FLEXCOMM4_BASE, FLEXCOMM5_BASE, FLEXCOMM6_BASE, FLEXCOMM7_BASE, FLEXCOMM8_BASE }\r
- /** Array initializer of FLEXCOMM peripheral base pointers */\r
- #define FLEXCOMM_BASE_PTRS { FLEXCOMM0, FLEXCOMM1, FLEXCOMM2, FLEXCOMM3, FLEXCOMM4, FLEXCOMM5, FLEXCOMM6, FLEXCOMM7, FLEXCOMM8 }\r
- /** Array initializer of FLEXCOMM peripheral base addresses */\r
- #define FLEXCOMM_BASE_ADDRS_NS { FLEXCOMM0_BASE_NS, FLEXCOMM1_BASE_NS, FLEXCOMM2_BASE_NS, FLEXCOMM3_BASE_NS, FLEXCOMM4_BASE_NS, FLEXCOMM5_BASE_NS, FLEXCOMM6_BASE_NS, FLEXCOMM7_BASE_NS, FLEXCOMM8_BASE_NS }\r
- /** Array initializer of FLEXCOMM peripheral base pointers */\r
- #define FLEXCOMM_BASE_PTRS_NS { FLEXCOMM0_NS, FLEXCOMM1_NS, FLEXCOMM2_NS, FLEXCOMM3_NS, FLEXCOMM4_NS, FLEXCOMM5_NS, FLEXCOMM6_NS, FLEXCOMM7_NS, FLEXCOMM8_NS }\r
+/** Peripheral FLEXCOMM0 base address */\r
+#define FLEXCOMM0_BASE (0x50086000u)\r
+/** Peripheral FLEXCOMM0 base address */\r
+#define FLEXCOMM0_BASE_NS (0x40086000u)\r
+/** Peripheral FLEXCOMM0 base pointer */\r
+#define FLEXCOMM0 ((FLEXCOMM_Type *)FLEXCOMM0_BASE)\r
+/** Peripheral FLEXCOMM0 base pointer */\r
+#define FLEXCOMM0_NS ((FLEXCOMM_Type *)FLEXCOMM0_BASE_NS)\r
+/** Peripheral FLEXCOMM1 base address */\r
+#define FLEXCOMM1_BASE (0x50087000u)\r
+/** Peripheral FLEXCOMM1 base address */\r
+#define FLEXCOMM1_BASE_NS (0x40087000u)\r
+/** Peripheral FLEXCOMM1 base pointer */\r
+#define FLEXCOMM1 ((FLEXCOMM_Type *)FLEXCOMM1_BASE)\r
+/** Peripheral FLEXCOMM1 base pointer */\r
+#define FLEXCOMM1_NS ((FLEXCOMM_Type *)FLEXCOMM1_BASE_NS)\r
+/** Peripheral FLEXCOMM2 base address */\r
+#define FLEXCOMM2_BASE (0x50088000u)\r
+/** Peripheral FLEXCOMM2 base address */\r
+#define FLEXCOMM2_BASE_NS (0x40088000u)\r
+/** Peripheral FLEXCOMM2 base pointer */\r
+#define FLEXCOMM2 ((FLEXCOMM_Type *)FLEXCOMM2_BASE)\r
+/** Peripheral FLEXCOMM2 base pointer */\r
+#define FLEXCOMM2_NS ((FLEXCOMM_Type *)FLEXCOMM2_BASE_NS)\r
+/** Peripheral FLEXCOMM3 base address */\r
+#define FLEXCOMM3_BASE (0x50089000u)\r
+/** Peripheral FLEXCOMM3 base address */\r
+#define FLEXCOMM3_BASE_NS (0x40089000u)\r
+/** Peripheral FLEXCOMM3 base pointer */\r
+#define FLEXCOMM3 ((FLEXCOMM_Type *)FLEXCOMM3_BASE)\r
+/** Peripheral FLEXCOMM3 base pointer */\r
+#define FLEXCOMM3_NS ((FLEXCOMM_Type *)FLEXCOMM3_BASE_NS)\r
+/** Peripheral FLEXCOMM4 base address */\r
+#define FLEXCOMM4_BASE (0x5008A000u)\r
+/** Peripheral FLEXCOMM4 base address */\r
+#define FLEXCOMM4_BASE_NS (0x4008A000u)\r
+/** Peripheral FLEXCOMM4 base pointer */\r
+#define FLEXCOMM4 ((FLEXCOMM_Type *)FLEXCOMM4_BASE)\r
+/** Peripheral FLEXCOMM4 base pointer */\r
+#define FLEXCOMM4_NS ((FLEXCOMM_Type *)FLEXCOMM4_BASE_NS)\r
+/** Peripheral FLEXCOMM5 base address */\r
+#define FLEXCOMM5_BASE (0x50096000u)\r
+/** Peripheral FLEXCOMM5 base address */\r
+#define FLEXCOMM5_BASE_NS (0x40096000u)\r
+/** Peripheral FLEXCOMM5 base pointer */\r
+#define FLEXCOMM5 ((FLEXCOMM_Type *)FLEXCOMM5_BASE)\r
+/** Peripheral FLEXCOMM5 base pointer */\r
+#define FLEXCOMM5_NS ((FLEXCOMM_Type *)FLEXCOMM5_BASE_NS)\r
+/** Peripheral FLEXCOMM6 base address */\r
+#define FLEXCOMM6_BASE (0x50097000u)\r
+/** Peripheral FLEXCOMM6 base address */\r
+#define FLEXCOMM6_BASE_NS (0x40097000u)\r
+/** Peripheral FLEXCOMM6 base pointer */\r
+#define FLEXCOMM6 ((FLEXCOMM_Type *)FLEXCOMM6_BASE)\r
+/** Peripheral FLEXCOMM6 base pointer */\r
+#define FLEXCOMM6_NS ((FLEXCOMM_Type *)FLEXCOMM6_BASE_NS)\r
+/** Peripheral FLEXCOMM7 base address */\r
+#define FLEXCOMM7_BASE (0x50098000u)\r
+/** Peripheral FLEXCOMM7 base address */\r
+#define FLEXCOMM7_BASE_NS (0x40098000u)\r
+/** Peripheral FLEXCOMM7 base pointer */\r
+#define FLEXCOMM7 ((FLEXCOMM_Type *)FLEXCOMM7_BASE)\r
+/** Peripheral FLEXCOMM7 base pointer */\r
+#define FLEXCOMM7_NS ((FLEXCOMM_Type *)FLEXCOMM7_BASE_NS)\r
+/** Peripheral FLEXCOMM8 base address */\r
+#define FLEXCOMM8_BASE (0x5009F000u)\r
+/** Peripheral FLEXCOMM8 base address */\r
+#define FLEXCOMM8_BASE_NS (0x4009F000u)\r
+/** Peripheral FLEXCOMM8 base pointer */\r
+#define FLEXCOMM8 ((FLEXCOMM_Type *)FLEXCOMM8_BASE)\r
+/** Peripheral FLEXCOMM8 base pointer */\r
+#define FLEXCOMM8_NS ((FLEXCOMM_Type *)FLEXCOMM8_BASE_NS)\r
+/** Array initializer of FLEXCOMM peripheral base addresses */\r
+#define FLEXCOMM_BASE_ADDRS \\r
+ { \\r
+ FLEXCOMM0_BASE, FLEXCOMM1_BASE, FLEXCOMM2_BASE, FLEXCOMM3_BASE, FLEXCOMM4_BASE, FLEXCOMM5_BASE, \\r
+ FLEXCOMM6_BASE, FLEXCOMM7_BASE, FLEXCOMM8_BASE \\r
+ }\r
+/** Array initializer of FLEXCOMM peripheral base pointers */\r
+#define FLEXCOMM_BASE_PTRS \\r
+ { \\r
+ FLEXCOMM0, FLEXCOMM1, FLEXCOMM2, FLEXCOMM3, FLEXCOMM4, FLEXCOMM5, FLEXCOMM6, FLEXCOMM7, FLEXCOMM8 \\r
+ }\r
+/** Array initializer of FLEXCOMM peripheral base addresses */\r
+#define FLEXCOMM_BASE_ADDRS_NS \\r
+ { \\r
+ FLEXCOMM0_BASE_NS, FLEXCOMM1_BASE_NS, FLEXCOMM2_BASE_NS, FLEXCOMM3_BASE_NS, FLEXCOMM4_BASE_NS, \\r
+ FLEXCOMM5_BASE_NS, FLEXCOMM6_BASE_NS, FLEXCOMM7_BASE_NS, FLEXCOMM8_BASE_NS \\r
+ }\r
+/** Array initializer of FLEXCOMM peripheral base pointers */\r
+#define FLEXCOMM_BASE_PTRS_NS \\r
+ { \\r
+ FLEXCOMM0_NS, FLEXCOMM1_NS, FLEXCOMM2_NS, FLEXCOMM3_NS, FLEXCOMM4_NS, FLEXCOMM5_NS, FLEXCOMM6_NS, \\r
+ FLEXCOMM7_NS, FLEXCOMM8_NS \\r
+ }\r
#else\r
- /** Peripheral FLEXCOMM0 base address */\r
- #define FLEXCOMM0_BASE (0x40086000u)\r
- /** Peripheral FLEXCOMM0 base pointer */\r
- #define FLEXCOMM0 ((FLEXCOMM_Type *)FLEXCOMM0_BASE)\r
- /** Peripheral FLEXCOMM1 base address */\r
- #define FLEXCOMM1_BASE (0x40087000u)\r
- /** Peripheral FLEXCOMM1 base pointer */\r
- #define FLEXCOMM1 ((FLEXCOMM_Type *)FLEXCOMM1_BASE)\r
- /** Peripheral FLEXCOMM2 base address */\r
- #define FLEXCOMM2_BASE (0x40088000u)\r
- /** Peripheral FLEXCOMM2 base pointer */\r
- #define FLEXCOMM2 ((FLEXCOMM_Type *)FLEXCOMM2_BASE)\r
- /** Peripheral FLEXCOMM3 base address */\r
- #define FLEXCOMM3_BASE (0x40089000u)\r
- /** Peripheral FLEXCOMM3 base pointer */\r
- #define FLEXCOMM3 ((FLEXCOMM_Type *)FLEXCOMM3_BASE)\r
- /** Peripheral FLEXCOMM4 base address */\r
- #define FLEXCOMM4_BASE (0x4008A000u)\r
- /** Peripheral FLEXCOMM4 base pointer */\r
- #define FLEXCOMM4 ((FLEXCOMM_Type *)FLEXCOMM4_BASE)\r
- /** Peripheral FLEXCOMM5 base address */\r
- #define FLEXCOMM5_BASE (0x40096000u)\r
- /** Peripheral FLEXCOMM5 base pointer */\r
- #define FLEXCOMM5 ((FLEXCOMM_Type *)FLEXCOMM5_BASE)\r
- /** Peripheral FLEXCOMM6 base address */\r
- #define FLEXCOMM6_BASE (0x40097000u)\r
- /** Peripheral FLEXCOMM6 base pointer */\r
- #define FLEXCOMM6 ((FLEXCOMM_Type *)FLEXCOMM6_BASE)\r
- /** Peripheral FLEXCOMM7 base address */\r
- #define FLEXCOMM7_BASE (0x40098000u)\r
- /** Peripheral FLEXCOMM7 base pointer */\r
- #define FLEXCOMM7 ((FLEXCOMM_Type *)FLEXCOMM7_BASE)\r
- /** Peripheral FLEXCOMM8 base address */\r
- #define FLEXCOMM8_BASE (0x4009F000u)\r
- /** Peripheral FLEXCOMM8 base pointer */\r
- #define FLEXCOMM8 ((FLEXCOMM_Type *)FLEXCOMM8_BASE)\r
- /** Array initializer of FLEXCOMM peripheral base addresses */\r
- #define FLEXCOMM_BASE_ADDRS { FLEXCOMM0_BASE, FLEXCOMM1_BASE, FLEXCOMM2_BASE, FLEXCOMM3_BASE, FLEXCOMM4_BASE, FLEXCOMM5_BASE, FLEXCOMM6_BASE, FLEXCOMM7_BASE, FLEXCOMM8_BASE }\r
- /** Array initializer of FLEXCOMM peripheral base pointers */\r
- #define FLEXCOMM_BASE_PTRS { FLEXCOMM0, FLEXCOMM1, FLEXCOMM2, FLEXCOMM3, FLEXCOMM4, FLEXCOMM5, FLEXCOMM6, FLEXCOMM7, FLEXCOMM8 }\r
+/** Peripheral FLEXCOMM0 base address */\r
+#define FLEXCOMM0_BASE (0x40086000u)\r
+/** Peripheral FLEXCOMM0 base pointer */\r
+#define FLEXCOMM0 ((FLEXCOMM_Type *)FLEXCOMM0_BASE)\r
+/** Peripheral FLEXCOMM1 base address */\r
+#define FLEXCOMM1_BASE (0x40087000u)\r
+/** Peripheral FLEXCOMM1 base pointer */\r
+#define FLEXCOMM1 ((FLEXCOMM_Type *)FLEXCOMM1_BASE)\r
+/** Peripheral FLEXCOMM2 base address */\r
+#define FLEXCOMM2_BASE (0x40088000u)\r
+/** Peripheral FLEXCOMM2 base pointer */\r
+#define FLEXCOMM2 ((FLEXCOMM_Type *)FLEXCOMM2_BASE)\r
+/** Peripheral FLEXCOMM3 base address */\r
+#define FLEXCOMM3_BASE (0x40089000u)\r
+/** Peripheral FLEXCOMM3 base pointer */\r
+#define FLEXCOMM3 ((FLEXCOMM_Type *)FLEXCOMM3_BASE)\r
+/** Peripheral FLEXCOMM4 base address */\r
+#define FLEXCOMM4_BASE (0x4008A000u)\r
+/** Peripheral FLEXCOMM4 base pointer */\r
+#define FLEXCOMM4 ((FLEXCOMM_Type *)FLEXCOMM4_BASE)\r
+/** Peripheral FLEXCOMM5 base address */\r
+#define FLEXCOMM5_BASE (0x40096000u)\r
+/** Peripheral FLEXCOMM5 base pointer */\r
+#define FLEXCOMM5 ((FLEXCOMM_Type *)FLEXCOMM5_BASE)\r
+/** Peripheral FLEXCOMM6 base address */\r
+#define FLEXCOMM6_BASE (0x40097000u)\r
+/** Peripheral FLEXCOMM6 base pointer */\r
+#define FLEXCOMM6 ((FLEXCOMM_Type *)FLEXCOMM6_BASE)\r
+/** Peripheral FLEXCOMM7 base address */\r
+#define FLEXCOMM7_BASE (0x40098000u)\r
+/** Peripheral FLEXCOMM7 base pointer */\r
+#define FLEXCOMM7 ((FLEXCOMM_Type *)FLEXCOMM7_BASE)\r
+/** Peripheral FLEXCOMM8 base address */\r
+#define FLEXCOMM8_BASE (0x4009F000u)\r
+/** Peripheral FLEXCOMM8 base pointer */\r
+#define FLEXCOMM8 ((FLEXCOMM_Type *)FLEXCOMM8_BASE)\r
+/** Array initializer of FLEXCOMM peripheral base addresses */\r
+#define FLEXCOMM_BASE_ADDRS \\r
+ { \\r
+ FLEXCOMM0_BASE, FLEXCOMM1_BASE, FLEXCOMM2_BASE, FLEXCOMM3_BASE, FLEXCOMM4_BASE, FLEXCOMM5_BASE, \\r
+ FLEXCOMM6_BASE, FLEXCOMM7_BASE, FLEXCOMM8_BASE \\r
+ }\r
+/** Array initializer of FLEXCOMM peripheral base pointers */\r
+#define FLEXCOMM_BASE_PTRS \\r
+ { \\r
+ FLEXCOMM0, FLEXCOMM1, FLEXCOMM2, FLEXCOMM3, FLEXCOMM4, FLEXCOMM5, FLEXCOMM6, FLEXCOMM7, FLEXCOMM8 \\r
+ }\r
#endif\r
/** Interrupt vectors for the FLEXCOMM peripheral type */\r
-#define FLEXCOMM_IRQS { FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, FLEXCOMM6_IRQn, FLEXCOMM7_IRQn, LSPI_HS_IRQn }\r
+#define FLEXCOMM_IRQS \\r
+ { \\r
+ FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, \\r
+ FLEXCOMM6_IRQn, FLEXCOMM7_IRQn, FLEXCOMM8_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group FLEXCOMM_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- GINT Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** GINT - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CTRL; /**< GPIO grouped interrupt control register, offset: 0x0 */\r
- uint8_t RESERVED_0[28];\r
- __IO uint32_t PORT_POL[2]; /**< GPIO grouped interrupt port 0 polarity register, array offset: 0x20, array step: 0x4 */\r
- uint8_t RESERVED_1[24];\r
- __IO uint32_t PORT_ENA[2]; /**< GPIO grouped interrupt port 0 enable register, array offset: 0x40, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t CTRL; /**< GPIO grouped interrupt control register, offset: 0x0 */\r
+ uint8_t RESERVED_0[28];\r
+ __IO uint32_t\r
+ PORT_POL[2]; /**< GPIO grouped interrupt port 0 polarity register, array offset: 0x20, array step: 0x4 */\r
+ uint8_t RESERVED_1[24];\r
+ __IO uint32_t\r
+ PORT_ENA[2]; /**< GPIO grouped interrupt port 0 enable register, array offset: 0x40, array step: 0x4 */\r
} GINT_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CTRL - GPIO grouped interrupt control register */\r
/*! @{ */\r
-#define GINT_CTRL_INT_MASK (0x1U)\r
-#define GINT_CTRL_INT_SHIFT (0U)\r
+#define GINT_CTRL_INT_MASK (0x1U)\r
+#define GINT_CTRL_INT_SHIFT (0U)\r
/*! INT - Group interrupt status. This bit is cleared by writing a one to it. Writing zero has no effect.\r
* 0b0..No request. No interrupt request is pending.\r
* 0b1..Request active. Interrupt request is active.\r
*/\r
-#define GINT_CTRL_INT(x) (((uint32_t)(((uint32_t)(x)) << GINT_CTRL_INT_SHIFT)) & GINT_CTRL_INT_MASK)\r
-#define GINT_CTRL_COMB_MASK (0x2U)\r
-#define GINT_CTRL_COMB_SHIFT (1U)\r
+#define GINT_CTRL_INT(x) (((uint32_t)(((uint32_t)(x)) << GINT_CTRL_INT_SHIFT)) & GINT_CTRL_INT_MASK)\r
+#define GINT_CTRL_COMB_MASK (0x2U)\r
+#define GINT_CTRL_COMB_SHIFT (1U)\r
/*! COMB - Combine enabled inputs for group interrupt\r
- * 0b0..Or. OR functionality: A grouped interrupt is generated when any one of the enabled inputs is active (based on its programmed polarity).\r
- * 0b1..And. AND functionality: An interrupt is generated when all enabled bits are active (based on their programmed polarity).\r
+ * 0b0..Or. OR functionality: A grouped interrupt is generated when any one of the enabled inputs is active (based on\r
+ * its programmed polarity). 0b1..And. AND functionality: An interrupt is generated when all enabled bits are active\r
+ * (based on their programmed polarity).\r
*/\r
-#define GINT_CTRL_COMB(x) (((uint32_t)(((uint32_t)(x)) << GINT_CTRL_COMB_SHIFT)) & GINT_CTRL_COMB_MASK)\r
-#define GINT_CTRL_TRIG_MASK (0x4U)\r
-#define GINT_CTRL_TRIG_SHIFT (2U)\r
+#define GINT_CTRL_COMB(x) (((uint32_t)(((uint32_t)(x)) << GINT_CTRL_COMB_SHIFT)) & GINT_CTRL_COMB_MASK)\r
+#define GINT_CTRL_TRIG_MASK (0x4U)\r
+#define GINT_CTRL_TRIG_SHIFT (2U)\r
/*! TRIG - Group interrupt trigger\r
* 0b0..Edge-triggered.\r
* 0b1..Level-triggered.\r
*/\r
-#define GINT_CTRL_TRIG(x) (((uint32_t)(((uint32_t)(x)) << GINT_CTRL_TRIG_SHIFT)) & GINT_CTRL_TRIG_MASK)\r
+#define GINT_CTRL_TRIG(x) (((uint32_t)(((uint32_t)(x)) << GINT_CTRL_TRIG_SHIFT)) & GINT_CTRL_TRIG_MASK)\r
/*! @} */\r
\r
/*! @name PORT_POL - GPIO grouped interrupt port 0 polarity register */\r
/*! @{ */\r
-#define GINT_PORT_POL_POL_MASK (0xFFFFFFFFU)\r
-#define GINT_PORT_POL_POL_SHIFT (0U)\r
-#define GINT_PORT_POL_POL(x) (((uint32_t)(((uint32_t)(x)) << GINT_PORT_POL_POL_SHIFT)) & GINT_PORT_POL_POL_MASK)\r
+#define GINT_PORT_POL_POL_MASK (0xFFFFFFFFU)\r
+#define GINT_PORT_POL_POL_SHIFT (0U)\r
+/*! POL - Configure pin polarity of port m pins for group interrupt. Bit n corresponds to pin PIOm_n\r
+ * of port m. 0 = the pin is active LOW. If the level on this pin is LOW, the pin contributes to\r
+ * the group interrupt. 1 = the pin is active HIGH. If the level on this pin is HIGH, the pin\r
+ * contributes to the group interrupt.\r
+ */\r
+#define GINT_PORT_POL_POL(x) (((uint32_t)(((uint32_t)(x)) << GINT_PORT_POL_POL_SHIFT)) & GINT_PORT_POL_POL_MASK)\r
/*! @} */\r
\r
/* The count of GINT_PORT_POL */\r
-#define GINT_PORT_POL_COUNT (2U)\r
+#define GINT_PORT_POL_COUNT (2U)\r
\r
/*! @name PORT_ENA - GPIO grouped interrupt port 0 enable register */\r
/*! @{ */\r
-#define GINT_PORT_ENA_ENA_MASK (0xFFFFFFFFU)\r
-#define GINT_PORT_ENA_ENA_SHIFT (0U)\r
-#define GINT_PORT_ENA_ENA(x) (((uint32_t)(((uint32_t)(x)) << GINT_PORT_ENA_ENA_SHIFT)) & GINT_PORT_ENA_ENA_MASK)\r
+#define GINT_PORT_ENA_ENA_MASK (0xFFFFFFFFU)\r
+#define GINT_PORT_ENA_ENA_SHIFT (0U)\r
+/*! ENA - Enable port 0 pin for group interrupt. Bit n corresponds to pin Pm_n of port m. 0 = the\r
+ * port 0 pin is disabled and does not contribute to the grouped interrupt. 1 = the port 0 pin is\r
+ * enabled and contributes to the grouped interrupt.\r
+ */\r
+#define GINT_PORT_ENA_ENA(x) (((uint32_t)(((uint32_t)(x)) << GINT_PORT_ENA_ENA_SHIFT)) & GINT_PORT_ENA_ENA_MASK)\r
/*! @} */\r
\r
/* The count of GINT_PORT_ENA */\r
-#define GINT_PORT_ENA_COUNT (2U)\r
-\r
+#define GINT_PORT_ENA_COUNT (2U)\r
\r
/*!\r
* @}\r
*/ /* end of group GINT_Register_Masks */\r
\r
-\r
/* GINT - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral GINT0 base address */\r
- #define GINT0_BASE (0x50002000u)\r
- /** Peripheral GINT0 base address */\r
- #define GINT0_BASE_NS (0x40002000u)\r
- /** Peripheral GINT0 base pointer */\r
- #define GINT0 ((GINT_Type *)GINT0_BASE)\r
- /** Peripheral GINT0 base pointer */\r
- #define GINT0_NS ((GINT_Type *)GINT0_BASE_NS)\r
- /** Peripheral GINT1 base address */\r
- #define GINT1_BASE (0x50003000u)\r
- /** Peripheral GINT1 base address */\r
- #define GINT1_BASE_NS (0x40003000u)\r
- /** Peripheral GINT1 base pointer */\r
- #define GINT1 ((GINT_Type *)GINT1_BASE)\r
- /** Peripheral GINT1 base pointer */\r
- #define GINT1_NS ((GINT_Type *)GINT1_BASE_NS)\r
- /** Array initializer of GINT peripheral base addresses */\r
- #define GINT_BASE_ADDRS { GINT0_BASE, GINT1_BASE }\r
- /** Array initializer of GINT peripheral base pointers */\r
- #define GINT_BASE_PTRS { GINT0, GINT1 }\r
- /** Array initializer of GINT peripheral base addresses */\r
- #define GINT_BASE_ADDRS_NS { GINT0_BASE_NS, GINT1_BASE_NS }\r
- /** Array initializer of GINT peripheral base pointers */\r
- #define GINT_BASE_PTRS_NS { GINT0_NS, GINT1_NS }\r
+/** Peripheral GINT0 base address */\r
+#define GINT0_BASE (0x50002000u)\r
+/** Peripheral GINT0 base address */\r
+#define GINT0_BASE_NS (0x40002000u)\r
+/** Peripheral GINT0 base pointer */\r
+#define GINT0 ((GINT_Type *)GINT0_BASE)\r
+/** Peripheral GINT0 base pointer */\r
+#define GINT0_NS ((GINT_Type *)GINT0_BASE_NS)\r
+/** Peripheral GINT1 base address */\r
+#define GINT1_BASE (0x50003000u)\r
+/** Peripheral GINT1 base address */\r
+#define GINT1_BASE_NS (0x40003000u)\r
+/** Peripheral GINT1 base pointer */\r
+#define GINT1 ((GINT_Type *)GINT1_BASE)\r
+/** Peripheral GINT1 base pointer */\r
+#define GINT1_NS ((GINT_Type *)GINT1_BASE_NS)\r
+/** Array initializer of GINT peripheral base addresses */\r
+#define GINT_BASE_ADDRS \\r
+ { \\r
+ GINT0_BASE, GINT1_BASE \\r
+ }\r
+/** Array initializer of GINT peripheral base pointers */\r
+#define GINT_BASE_PTRS \\r
+ { \\r
+ GINT0, GINT1 \\r
+ }\r
+/** Array initializer of GINT peripheral base addresses */\r
+#define GINT_BASE_ADDRS_NS \\r
+ { \\r
+ GINT0_BASE_NS, GINT1_BASE_NS \\r
+ }\r
+/** Array initializer of GINT peripheral base pointers */\r
+#define GINT_BASE_PTRS_NS \\r
+ { \\r
+ GINT0_NS, GINT1_NS \\r
+ }\r
#else\r
- /** Peripheral GINT0 base address */\r
- #define GINT0_BASE (0x40002000u)\r
- /** Peripheral GINT0 base pointer */\r
- #define GINT0 ((GINT_Type *)GINT0_BASE)\r
- /** Peripheral GINT1 base address */\r
- #define GINT1_BASE (0x40003000u)\r
- /** Peripheral GINT1 base pointer */\r
- #define GINT1 ((GINT_Type *)GINT1_BASE)\r
- /** Array initializer of GINT peripheral base addresses */\r
- #define GINT_BASE_ADDRS { GINT0_BASE, GINT1_BASE }\r
- /** Array initializer of GINT peripheral base pointers */\r
- #define GINT_BASE_PTRS { GINT0, GINT1 }\r
+/** Peripheral GINT0 base address */\r
+#define GINT0_BASE (0x40002000u)\r
+/** Peripheral GINT0 base pointer */\r
+#define GINT0 ((GINT_Type *)GINT0_BASE)\r
+/** Peripheral GINT1 base address */\r
+#define GINT1_BASE (0x40003000u)\r
+/** Peripheral GINT1 base pointer */\r
+#define GINT1 ((GINT_Type *)GINT1_BASE)\r
+/** Array initializer of GINT peripheral base addresses */\r
+#define GINT_BASE_ADDRS \\r
+ { \\r
+ GINT0_BASE, GINT1_BASE \\r
+ }\r
+/** Array initializer of GINT peripheral base pointers */\r
+#define GINT_BASE_PTRS \\r
+ { \\r
+ GINT0, GINT1 \\r
+ }\r
#endif\r
/** Interrupt vectors for the GINT peripheral type */\r
-#define GINT_IRQS { GINT0_IRQn, GINT1_IRQn }\r
+#define GINT_IRQS \\r
+ { \\r
+ GINT0_IRQn, GINT1_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group GINT_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- GPIO Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** GPIO - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint8_t B[4][32]; /**< Byte pin registers for all port GPIO pins, array offset: 0x0, array step: index*0x20, index2*0x1 */\r
- uint8_t RESERVED_0[3968];\r
- __IO uint32_t W[4][32]; /**< Word pin registers for all port GPIO pins, array offset: 0x1000, array step: index*0x80, index2*0x4 */\r
- uint8_t RESERVED_1[3584];\r
- __IO uint32_t DIR[4]; /**< Direction registers for all port GPIO pins, array offset: 0x2000, array step: 0x4 */\r
- uint8_t RESERVED_2[112];\r
- __IO uint32_t MASK[4]; /**< Mask register for all port GPIO pins, array offset: 0x2080, array step: 0x4 */\r
- uint8_t RESERVED_3[112];\r
- __IO uint32_t PIN[4]; /**< Port pin register for all port GPIO pins, array offset: 0x2100, array step: 0x4 */\r
- uint8_t RESERVED_4[112];\r
- __IO uint32_t MPIN[4]; /**< Masked port register for all port GPIO pins, array offset: 0x2180, array step: 0x4 */\r
- uint8_t RESERVED_5[112];\r
- __IO uint32_t SET[4]; /**< Write: Set register for port. Read: output bits for port, array offset: 0x2200, array step: 0x4 */\r
- uint8_t RESERVED_6[112];\r
- __O uint32_t CLR[4]; /**< Clear port for all port GPIO pins, array offset: 0x2280, array step: 0x4 */\r
- uint8_t RESERVED_7[112];\r
- __O uint32_t NOT[4]; /**< Toggle port for all port GPIO pins, array offset: 0x2300, array step: 0x4 */\r
- uint8_t RESERVED_8[112];\r
- __O uint32_t DIRSET[4]; /**< Set pin direction bits for port, array offset: 0x2380, array step: 0x4 */\r
- uint8_t RESERVED_9[112];\r
- __O uint32_t DIRCLR[4]; /**< Clear pin direction bits for port, array offset: 0x2400, array step: 0x4 */\r
- uint8_t RESERVED_10[112];\r
- __O uint32_t DIRNOT[4]; /**< Toggle pin direction bits for port, array offset: 0x2480, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint8_t B[2][32]; /**< Byte pin registers for all port GPIO pins, array offset: 0x0, array step: index*0x20,\r
+ index2*0x1 */\r
+ uint8_t RESERVED_0[4032];\r
+ __IO uint32_t W[2][32]; /**< Word pin registers for all port GPIO pins, array offset: 0x1000, array step:\r
+ index*0x80, index2*0x4 */\r
+ uint8_t RESERVED_1[3840];\r
+ __IO uint32_t DIR[2]; /**< Direction registers for all port GPIO pins, array offset: 0x2000, array step: 0x4 */\r
+ uint8_t RESERVED_2[120];\r
+ __IO uint32_t MASK[2]; /**< Mask register for all port GPIO pins, array offset: 0x2080, array step: 0x4 */\r
+ uint8_t RESERVED_3[120];\r
+ __IO uint32_t PIN[2]; /**< Port pin register for all port GPIO pins, array offset: 0x2100, array step: 0x4 */\r
+ uint8_t RESERVED_4[120];\r
+ __IO uint32_t MPIN[2]; /**< Masked port register for all port GPIO pins, array offset: 0x2180, array step: 0x4 */\r
+ uint8_t RESERVED_5[120];\r
+ __IO uint32_t\r
+ SET[2]; /**< Write: Set register for port. Read: output bits for port, array offset: 0x2200, array step: 0x4 */\r
+ uint8_t RESERVED_6[120];\r
+ __O uint32_t CLR[2]; /**< Clear port for all port GPIO pins, array offset: 0x2280, array step: 0x4 */\r
+ uint8_t RESERVED_7[120];\r
+ __O uint32_t NOT[2]; /**< Toggle port for all port GPIO pins, array offset: 0x2300, array step: 0x4 */\r
+ uint8_t RESERVED_8[120];\r
+ __O uint32_t DIRSET[2]; /**< Set pin direction bits for port, array offset: 0x2380, array step: 0x4 */\r
+ uint8_t RESERVED_9[120];\r
+ __O uint32_t DIRCLR[2]; /**< Clear pin direction bits for port, array offset: 0x2400, array step: 0x4 */\r
+ uint8_t RESERVED_10[120];\r
+ __O uint32_t DIRNOT[2]; /**< Toggle pin direction bits for port, array offset: 0x2480, array step: 0x4 */\r
} GPIO_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name B - Byte pin registers for all port GPIO pins */\r
/*! @{ */\r
-#define GPIO_B_PBYTE_MASK (0x1U)\r
-#define GPIO_B_PBYTE_SHIFT (0U)\r
-#define GPIO_B_PBYTE(x) (((uint8_t)(((uint8_t)(x)) << GPIO_B_PBYTE_SHIFT)) & GPIO_B_PBYTE_MASK)\r
+#define GPIO_B_PBYTE_MASK (0x1U)\r
+#define GPIO_B_PBYTE_SHIFT (0U)\r
+/*! PBYTE - Read: state of the pin PIOm_n, regardless of direction, masking, or alternate function,\r
+ * except that pins configured as analog I/O always read as 0. One register for each port pin.\r
+ * Supported pins depends on the specific device and package. Write: loads the pin's output bit.\r
+ * One register for each port pin. Supported pins depends on the specific device and package.\r
+ */\r
+#define GPIO_B_PBYTE(x) (((uint8_t)(((uint8_t)(x)) << GPIO_B_PBYTE_SHIFT)) & GPIO_B_PBYTE_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_B */\r
-#define GPIO_B_COUNT (4U)\r
+#define GPIO_B_COUNT (2U)\r
\r
/* The count of GPIO_B */\r
-#define GPIO_B_COUNT2 (32U)\r
+#define GPIO_B_COUNT2 (32U)\r
\r
/*! @name W - Word pin registers for all port GPIO pins */\r
/*! @{ */\r
-#define GPIO_W_PWORD_MASK (0xFFFFFFFFU)\r
-#define GPIO_W_PWORD_SHIFT (0U)\r
-#define GPIO_W_PWORD(x) (((uint32_t)(((uint32_t)(x)) << GPIO_W_PWORD_SHIFT)) & GPIO_W_PWORD_MASK)\r
+#define GPIO_W_PWORD_MASK (0xFFFFFFFFU)\r
+#define GPIO_W_PWORD_SHIFT (0U)\r
+/*! PWORD - Read 0: pin PIOm_n is LOW. Write 0: clear output bit. Read 0xFFFF FFFF: pin PIOm_n is\r
+ * HIGH. Write any value 0x0000 0001 to 0xFFFF FFFF: set output bit. Only 0 or 0xFFFF FFFF can be\r
+ * read. Writing any value other than 0 will set the output bit. One register for each port pin.\r
+ * Supported pins depends on the specific device and package.\r
+ */\r
+#define GPIO_W_PWORD(x) (((uint32_t)(((uint32_t)(x)) << GPIO_W_PWORD_SHIFT)) & GPIO_W_PWORD_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_W */\r
-#define GPIO_W_COUNT (4U)\r
+#define GPIO_W_COUNT (2U)\r
\r
/* The count of GPIO_W */\r
-#define GPIO_W_COUNT2 (32U)\r
+#define GPIO_W_COUNT2 (32U)\r
\r
/*! @name DIR - Direction registers for all port GPIO pins */\r
/*! @{ */\r
-#define GPIO_DIR_DIRP_MASK (0xFFFFFFFFU)\r
-#define GPIO_DIR_DIRP_SHIFT (0U)\r
-#define GPIO_DIR_DIRP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_DIR_DIRP_SHIFT)) & GPIO_DIR_DIRP_MASK)\r
+#define GPIO_DIR_DIRP_MASK (0xFFFFFFFFU)\r
+#define GPIO_DIR_DIRP_SHIFT (0U)\r
+/*! DIRP - Selects pin direction for pin PIOm_n (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported\r
+ * pins depends on the specific device and package. 0 = input. 1 = output.\r
+ */\r
+#define GPIO_DIR_DIRP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_DIR_DIRP_SHIFT)) & GPIO_DIR_DIRP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_DIR */\r
-#define GPIO_DIR_COUNT (4U)\r
+#define GPIO_DIR_COUNT (2U)\r
\r
/*! @name MASK - Mask register for all port GPIO pins */\r
/*! @{ */\r
-#define GPIO_MASK_MASKP_MASK (0xFFFFFFFFU)\r
-#define GPIO_MASK_MASKP_SHIFT (0U)\r
-#define GPIO_MASK_MASKP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_MASK_MASKP_SHIFT)) & GPIO_MASK_MASKP_MASK)\r
+#define GPIO_MASK_MASKP_MASK (0xFFFFFFFFU)\r
+#define GPIO_MASK_MASKP_SHIFT (0U)\r
+/*! MASKP - Controls which bits corresponding to PIOm_n are active in the MPORT register (bit 0 =\r
+ * PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on the specific device and package.0 =\r
+ * Read MPORT: pin state; write MPORT: load output bit. 1 = Read MPORT: 0; write MPORT: output bit\r
+ * not affected.\r
+ */\r
+#define GPIO_MASK_MASKP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_MASK_MASKP_SHIFT)) & GPIO_MASK_MASKP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_MASK */\r
-#define GPIO_MASK_COUNT (4U)\r
+#define GPIO_MASK_COUNT (2U)\r
\r
/*! @name PIN - Port pin register for all port GPIO pins */\r
/*! @{ */\r
-#define GPIO_PIN_PORT_MASK (0xFFFFFFFFU)\r
-#define GPIO_PIN_PORT_SHIFT (0U)\r
-#define GPIO_PIN_PORT(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PIN_PORT_SHIFT)) & GPIO_PIN_PORT_MASK)\r
+#define GPIO_PIN_PORT_MASK (0xFFFFFFFFU)\r
+#define GPIO_PIN_PORT_SHIFT (0U)\r
+/*! PORT - Reads pin states or loads output bits (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported\r
+ * pins depends on the specific device and package. 0 = Read: pin is low; write: clear output bit.\r
+ * 1 = Read: pin is high; write: set output bit.\r
+ */\r
+#define GPIO_PIN_PORT(x) (((uint32_t)(((uint32_t)(x)) << GPIO_PIN_PORT_SHIFT)) & GPIO_PIN_PORT_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_PIN */\r
-#define GPIO_PIN_COUNT (4U)\r
+#define GPIO_PIN_COUNT (2U)\r
\r
/*! @name MPIN - Masked port register for all port GPIO pins */\r
/*! @{ */\r
-#define GPIO_MPIN_MPORTP_MASK (0xFFFFFFFFU)\r
-#define GPIO_MPIN_MPORTP_SHIFT (0U)\r
-#define GPIO_MPIN_MPORTP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_MPIN_MPORTP_SHIFT)) & GPIO_MPIN_MPORTP_MASK)\r
+#define GPIO_MPIN_MPORTP_MASK (0xFFFFFFFFU)\r
+#define GPIO_MPIN_MPORTP_SHIFT (0U)\r
+/*! MPORTP - Masked port register (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on\r
+ * the specific device and package. 0 = Read: pin is LOW and/or the corresponding bit in the MASK\r
+ * register is 1; write: clear output bit if the corresponding bit in the MASK register is 0. 1\r
+ * = Read: pin is HIGH and the corresponding bit in the MASK register is 0; write: set output bit\r
+ * if the corresponding bit in the MASK register is 0.\r
+ */\r
+#define GPIO_MPIN_MPORTP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_MPIN_MPORTP_SHIFT)) & GPIO_MPIN_MPORTP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_MPIN */\r
-#define GPIO_MPIN_COUNT (4U)\r
+#define GPIO_MPIN_COUNT (2U)\r
\r
/*! @name SET - Write: Set register for port. Read: output bits for port */\r
/*! @{ */\r
-#define GPIO_SET_SETP_MASK (0xFFFFFFFFU)\r
-#define GPIO_SET_SETP_SHIFT (0U)\r
-#define GPIO_SET_SETP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_SET_SETP_SHIFT)) & GPIO_SET_SETP_MASK)\r
+#define GPIO_SET_SETP_MASK (0xFFFFFFFFU)\r
+#define GPIO_SET_SETP_SHIFT (0U)\r
+/*! SETP - Read or set output bits (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on\r
+ * the specific device and package. 0 = Read: output bit: write: no operation. 1 = Read: output\r
+ * bit; write: set output bit.\r
+ */\r
+#define GPIO_SET_SETP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_SET_SETP_SHIFT)) & GPIO_SET_SETP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_SET */\r
-#define GPIO_SET_COUNT (4U)\r
+#define GPIO_SET_COUNT (2U)\r
\r
/*! @name CLR - Clear port for all port GPIO pins */\r
/*! @{ */\r
-#define GPIO_CLR_CLRP_MASK (0xFFFFFFFFU)\r
-#define GPIO_CLR_CLRP_SHIFT (0U)\r
-#define GPIO_CLR_CLRP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_CLR_CLRP_SHIFT)) & GPIO_CLR_CLRP_MASK)\r
+#define GPIO_CLR_CLRP_MASK (0xFFFFFFFFU)\r
+#define GPIO_CLR_CLRP_SHIFT (0U)\r
+/*! CLRP - Clear output bits (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on the\r
+ * specific device and package. 0 = No operation. 1 = Clear output bit.\r
+ */\r
+#define GPIO_CLR_CLRP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_CLR_CLRP_SHIFT)) & GPIO_CLR_CLRP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_CLR */\r
-#define GPIO_CLR_COUNT (4U)\r
+#define GPIO_CLR_COUNT (2U)\r
\r
/*! @name NOT - Toggle port for all port GPIO pins */\r
/*! @{ */\r
-#define GPIO_NOT_NOTP_MASK (0xFFFFFFFFU)\r
-#define GPIO_NOT_NOTP_SHIFT (0U)\r
-#define GPIO_NOT_NOTP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_NOT_NOTP_SHIFT)) & GPIO_NOT_NOTP_MASK)\r
+#define GPIO_NOT_NOTP_MASK (0xFFFFFFFFU)\r
+#define GPIO_NOT_NOTP_SHIFT (0U)\r
+/*! NOTP - Toggle output bits (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on the\r
+ * specific device and package. 0 = no operation. 1 = Toggle output bit.\r
+ */\r
+#define GPIO_NOT_NOTP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_NOT_NOTP_SHIFT)) & GPIO_NOT_NOTP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_NOT */\r
-#define GPIO_NOT_COUNT (4U)\r
+#define GPIO_NOT_COUNT (2U)\r
\r
/*! @name DIRSET - Set pin direction bits for port */\r
/*! @{ */\r
-#define GPIO_DIRSET_DIRSETP_MASK (0x1FFFFFFFU)\r
-#define GPIO_DIRSET_DIRSETP_SHIFT (0U)\r
-#define GPIO_DIRSET_DIRSETP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_DIRSET_DIRSETP_SHIFT)) & GPIO_DIRSET_DIRSETP_MASK)\r
+#define GPIO_DIRSET_DIRSETP_MASK (0xFFFFFFFFU)\r
+#define GPIO_DIRSET_DIRSETP_SHIFT (0U)\r
+/*! DIRSETP - Set direction bits (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on\r
+ * the specific device and package. 0 = No operation. 1 = Set direction bit.\r
+ */\r
+#define GPIO_DIRSET_DIRSETP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_DIRSET_DIRSETP_SHIFT)) & GPIO_DIRSET_DIRSETP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_DIRSET */\r
-#define GPIO_DIRSET_COUNT (4U)\r
+#define GPIO_DIRSET_COUNT (2U)\r
\r
/*! @name DIRCLR - Clear pin direction bits for port */\r
/*! @{ */\r
-#define GPIO_DIRCLR_DIRCLRP_MASK (0x1FFFFFFFU)\r
-#define GPIO_DIRCLR_DIRCLRP_SHIFT (0U)\r
-#define GPIO_DIRCLR_DIRCLRP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_DIRCLR_DIRCLRP_SHIFT)) & GPIO_DIRCLR_DIRCLRP_MASK)\r
+#define GPIO_DIRCLR_DIRCLRP_MASK (0xFFFFFFFFU)\r
+#define GPIO_DIRCLR_DIRCLRP_SHIFT (0U)\r
+/*! DIRCLRP - Clear direction bits (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on\r
+ * the specific device and package. 0 = No operation. 1 = Clear direction bit.\r
+ */\r
+#define GPIO_DIRCLR_DIRCLRP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_DIRCLR_DIRCLRP_SHIFT)) & GPIO_DIRCLR_DIRCLRP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_DIRCLR */\r
-#define GPIO_DIRCLR_COUNT (4U)\r
+#define GPIO_DIRCLR_COUNT (2U)\r
\r
/*! @name DIRNOT - Toggle pin direction bits for port */\r
/*! @{ */\r
-#define GPIO_DIRNOT_DIRNOTP_MASK (0x1FFFFFFFU)\r
-#define GPIO_DIRNOT_DIRNOTP_SHIFT (0U)\r
-#define GPIO_DIRNOT_DIRNOTP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_DIRNOT_DIRNOTP_SHIFT)) & GPIO_DIRNOT_DIRNOTP_MASK)\r
+#define GPIO_DIRNOT_DIRNOTP_MASK (0xFFFFFFFFU)\r
+#define GPIO_DIRNOT_DIRNOTP_SHIFT (0U)\r
+/*! DIRNOTP - Toggle direction bits (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends\r
+ * on the specific device and package. 0 = no operation. 1 = Toggle direction bit.\r
+ */\r
+#define GPIO_DIRNOT_DIRNOTP(x) (((uint32_t)(((uint32_t)(x)) << GPIO_DIRNOT_DIRNOTP_SHIFT)) & GPIO_DIRNOT_DIRNOTP_MASK)\r
/*! @} */\r
\r
/* The count of GPIO_DIRNOT */\r
-#define GPIO_DIRNOT_COUNT (4U)\r
-\r
+#define GPIO_DIRNOT_COUNT (2U)\r
\r
/*!\r
* @}\r
*/ /* end of group GPIO_Register_Masks */\r
\r
-\r
/* GPIO - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral GPIO base address */\r
- #define GPIO_BASE (0x5008C000u)\r
- /** Peripheral GPIO base address */\r
- #define GPIO_BASE_NS (0x4008C000u)\r
- /** Peripheral GPIO base pointer */\r
- #define GPIO ((GPIO_Type *)GPIO_BASE)\r
- /** Peripheral GPIO base pointer */\r
- #define GPIO_NS ((GPIO_Type *)GPIO_BASE_NS)\r
- /** Peripheral SECGPIO base address */\r
- #define SECGPIO_BASE (0x500A8000u)\r
- /** Peripheral SECGPIO base address */\r
- #define SECGPIO_BASE_NS (0x400A8000u)\r
- /** Peripheral SECGPIO base pointer */\r
- #define SECGPIO ((GPIO_Type *)SECGPIO_BASE)\r
- /** Peripheral SECGPIO base pointer */\r
- #define SECGPIO_NS ((GPIO_Type *)SECGPIO_BASE_NS)\r
- /** Array initializer of GPIO peripheral base addresses */\r
- #define GPIO_BASE_ADDRS { GPIO_BASE, SECGPIO_BASE }\r
- /** Array initializer of GPIO peripheral base pointers */\r
- #define GPIO_BASE_PTRS { GPIO, SECGPIO }\r
- /** Array initializer of GPIO peripheral base addresses */\r
- #define GPIO_BASE_ADDRS_NS { GPIO_BASE_NS, SECGPIO_BASE_NS }\r
- /** Array initializer of GPIO peripheral base pointers */\r
- #define GPIO_BASE_PTRS_NS { GPIO_NS, SECGPIO_NS }\r
+/** Peripheral GPIO base address */\r
+#define GPIO_BASE (0x5008C000u)\r
+/** Peripheral GPIO base address */\r
+#define GPIO_BASE_NS (0x4008C000u)\r
+/** Peripheral GPIO base pointer */\r
+#define GPIO ((GPIO_Type *)GPIO_BASE)\r
+/** Peripheral GPIO base pointer */\r
+#define GPIO_NS ((GPIO_Type *)GPIO_BASE_NS)\r
+/** Peripheral SECGPIO base address */\r
+#define SECGPIO_BASE (0x500A8000u)\r
+/** Peripheral SECGPIO base address */\r
+#define SECGPIO_BASE_NS (0x400A8000u)\r
+/** Peripheral SECGPIO base pointer */\r
+#define SECGPIO ((GPIO_Type *)SECGPIO_BASE)\r
+/** Peripheral SECGPIO base pointer */\r
+#define SECGPIO_NS ((GPIO_Type *)SECGPIO_BASE_NS)\r
+/** Array initializer of GPIO peripheral base addresses */\r
+#define GPIO_BASE_ADDRS \\r
+ { \\r
+ GPIO_BASE, SECGPIO_BASE \\r
+ }\r
+/** Array initializer of GPIO peripheral base pointers */\r
+#define GPIO_BASE_PTRS \\r
+ { \\r
+ GPIO, SECGPIO \\r
+ }\r
+/** Array initializer of GPIO peripheral base addresses */\r
+#define GPIO_BASE_ADDRS_NS \\r
+ { \\r
+ GPIO_BASE_NS, SECGPIO_BASE_NS \\r
+ }\r
+/** Array initializer of GPIO peripheral base pointers */\r
+#define GPIO_BASE_PTRS_NS \\r
+ { \\r
+ GPIO_NS, SECGPIO_NS \\r
+ }\r
#else\r
- /** Peripheral GPIO base address */\r
- #define GPIO_BASE (0x4008C000u)\r
- /** Peripheral GPIO base pointer */\r
- #define GPIO ((GPIO_Type *)GPIO_BASE)\r
- /** Peripheral SECGPIO base address */\r
- #define SECGPIO_BASE (0x400A8000u)\r
- /** Peripheral SECGPIO base pointer */\r
- #define SECGPIO ((GPIO_Type *)SECGPIO_BASE)\r
- /** Array initializer of GPIO peripheral base addresses */\r
- #define GPIO_BASE_ADDRS { GPIO_BASE, SECGPIO_BASE }\r
- /** Array initializer of GPIO peripheral base pointers */\r
- #define GPIO_BASE_PTRS { GPIO, SECGPIO }\r
+/** Peripheral GPIO base address */\r
+#define GPIO_BASE (0x4008C000u)\r
+/** Peripheral GPIO base pointer */\r
+#define GPIO ((GPIO_Type *)GPIO_BASE)\r
+/** Peripheral SECGPIO base address */\r
+#define SECGPIO_BASE (0x400A8000u)\r
+/** Peripheral SECGPIO base pointer */\r
+#define SECGPIO ((GPIO_Type *)SECGPIO_BASE)\r
+/** Array initializer of GPIO peripheral base addresses */\r
+#define GPIO_BASE_ADDRS \\r
+ { \\r
+ GPIO_BASE, SECGPIO_BASE \\r
+ }\r
+/** Array initializer of GPIO peripheral base pointers */\r
+#define GPIO_BASE_PTRS \\r
+ { \\r
+ GPIO, SECGPIO \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group GPIO_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- HASHCRYPT Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** HASHCRYPT - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CTRL; /**< Is control register to enable and operate Hash and Crypto, offset: 0x0 */\r
- __IO uint32_t STATUS; /**< Indicates status of Hash peripheral., offset: 0x4 */\r
- __IO uint32_t INTENSET; /**< Write 1 to enable interrupts; reads back with which are set., offset: 0x8 */\r
- __IO uint32_t INTENCLR; /**< Write 1 to clear interrupts., offset: 0xC */\r
- __IO uint32_t MEMCTRL; /**< Setup Master to access memory (if available), offset: 0x10 */\r
- __IO uint32_t MEMADDR; /**< Address to start memory access from (if available)., offset: 0x14 */\r
- uint8_t RESERVED_0[8];\r
- __O uint32_t INDATA; /**< Input of 16 words at a time to load up buffer., offset: 0x20 */\r
- __O uint32_t ALIAS[7]; /**< , array offset: 0x24, array step: 0x4 */\r
- __I uint32_t OUTDATA0[8]; /**< , array offset: 0x40, array step: 0x4 */\r
- __I uint32_t OUTDATA1[8]; /**< , array offset: 0x60, array step: 0x4 */\r
- __IO uint32_t CRYPTCFG; /**< Crypto settings for AES and Salsa and ChaCha, offset: 0x80 */\r
- __I uint32_t CONFIG; /**< Returns the configuration of this block in this chip - indicates what services are available., offset: 0x84 */\r
- uint8_t RESERVED_1[4];\r
- __IO uint32_t LOCK; /**< Lock register allows locking to the current security level or unlocking by the lock holding level., offset: 0x8C */\r
- __O uint32_t MASK[4]; /**< , array offset: 0x90, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t CTRL; /**< Control register to enable and operate Hash and Crypto, offset: 0x0 */\r
+ __IO uint32_t STATUS; /**< Indicates status of Hash peripheral., offset: 0x4 */\r
+ __IO uint32_t INTENSET; /**< Write 1 to enable interrupts; reads back with which are set., offset: 0x8 */\r
+ __IO uint32_t INTENCLR; /**< Write 1 to clear interrupts., offset: 0xC */\r
+ __IO uint32_t MEMCTRL; /**< Setup Master to access memory (if available), offset: 0x10 */\r
+ __IO uint32_t MEMADDR; /**< Address to start memory access from (if available)., offset: 0x14 */\r
+ uint8_t RESERVED_0[8];\r
+ __O uint32_t INDATA; /**< Input of 16 words at a time to load up buffer., offset: 0x20 */\r
+ __O uint32_t ALIAS[7]; /**< , array offset: 0x24, array step: 0x4 */\r
+ __I uint32_t DIGEST0[8]; /**< , array offset: 0x40, array step: 0x4 */\r
+ uint8_t RESERVED_1[32];\r
+ __IO uint32_t CRYPTCFG; /**< Crypto settings for AES and Salsa and ChaCha, offset: 0x80 */\r
+ __I uint32_t CONFIG; /**< Returns the configuration of this block in this chip - indicates what services are\r
+ available., offset: 0x84 */\r
+ uint8_t RESERVED_2[4];\r
+ __IO uint32_t LOCK; /**< Lock register allows locking to the current security level or unlocking by the lock holding\r
+ level., offset: 0x8C */\r
+ __O uint32_t MASK[4]; /**< , array offset: 0x90, array step: 0x4 */\r
} HASHCRYPT_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name CTRL - Is control register to enable and operate Hash and Crypto */\r
+/*! @name CTRL - Control register to enable and operate Hash and Crypto */\r
/*! @{ */\r
-#define HASHCRYPT_CTRL_MODE_MASK (0x7U)\r
-#define HASHCRYPT_CTRL_MODE_SHIFT (0U)\r
-/*! Mode - The operational mode to use, or 0 if none. Note that the CONFIG register will indicate if specific modes beyond SHA1 and SHA2-256 are available.\r
+#define HASHCRYPT_CTRL_MODE_MASK (0x7U)\r
+#define HASHCRYPT_CTRL_MODE_SHIFT (0U)\r
+/*! Mode - The operational mode to use, or 0 if none. Note that the CONFIG register will indicate if\r
+ * specific modes beyond SHA1 and SHA2-256 are available.\r
* 0b000..Disabled\r
* 0b001..SHA1 is enabled\r
* 0b010..SHA2-256 is enabled\r
- * 0b011..SHA2-512 is enabled (if available)\r
* 0b100..AES if available (see also CRYPTCFG register for more controls)\r
* 0b101..ICB-AES if available (see also CRYPTCFG register for more controls)\r
- * 0b110..Salsa20/20 if available (including XSalsa - see also CRYPTCFG register)\r
- * 0b111..ChaCha20 if available (see also CRYPTCFG register for more controls)\r
*/\r
-#define HASHCRYPT_CTRL_MODE(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_MODE_SHIFT)) & HASHCRYPT_CTRL_MODE_MASK)\r
-#define HASHCRYPT_CTRL_NEW_HASH_MASK (0x10U)\r
-#define HASHCRYPT_CTRL_NEW_HASH_SHIFT (4U)\r
-/*! New_Hash - Written with 1 when starting a new Hash/Crypto. It self clears. Note that the WAITING Status bit will clear for a cycle during the initialization from New=1.\r
+#define HASHCRYPT_CTRL_MODE(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_MODE_SHIFT)) & HASHCRYPT_CTRL_MODE_MASK)\r
+#define HASHCRYPT_CTRL_NEW_HASH_MASK (0x10U)\r
+#define HASHCRYPT_CTRL_NEW_HASH_SHIFT (4U)\r
+/*! New_Hash - Written with 1 when starting a new Hash/Crypto. It self clears. Note that the WAITING\r
+ * Status bit will clear for a cycle during the initialization from New=1.\r
* 0b1..Starts a new Hash/Crypto and initializes the Digest/Result.\r
*/\r
-#define HASHCRYPT_CTRL_NEW_HASH(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_NEW_HASH_SHIFT)) & HASHCRYPT_CTRL_NEW_HASH_MASK)\r
-#define HASHCRYPT_CTRL_DMA_I_MASK (0x100U)\r
-#define HASHCRYPT_CTRL_DMA_I_SHIFT (8U)\r
-/*! DMA_I - Written with 1 to use DMA to fill INDATA. If Hash, will request from DMA for 16 words and then will process the Hash. If Cryptographic, it will load as many words as needed, including key if not already loaded. It will then request again. Normal model is that the DMA interrupts the processor when its length expires. Note that if the processor will write the key and optionally IV, it should not enable this until it has done so. Otherwise, the DMA will be expected to load those for the 1st block (when needed).\r
- * 0b0..DMA is not used. Processor writes the necessary words when WAITING is set (interrupts), unless AHB Master is used.\r
- * 0b1..DMA will push in the data.\r
- */\r
-#define HASHCRYPT_CTRL_DMA_I(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_DMA_I_SHIFT)) & HASHCRYPT_CTRL_DMA_I_MASK)\r
-#define HASHCRYPT_CTRL_DMA_O_MASK (0x200U)\r
-#define HASHCRYPT_CTRL_DMA_O_SHIFT (9U)\r
-/*! DMA_O - Written to 1 to use DMA to drain the digest/output. If both DMA_I and DMA_O are set, the DMA has to know to switch direction and the locations. This can be used for crypto uses.\r
+#define HASHCRYPT_CTRL_NEW_HASH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_NEW_HASH_SHIFT)) & HASHCRYPT_CTRL_NEW_HASH_MASK)\r
+#define HASHCRYPT_CTRL_DMA_I_MASK (0x100U)\r
+#define HASHCRYPT_CTRL_DMA_I_SHIFT (8U)\r
+/*! DMA_I - Written with 1 to use DMA to fill INDATA. If Hash, will request from DMA for 16 words\r
+ * and then will process the Hash. If Cryptographic, it will load as many words as needed,\r
+ * including key if not already loaded. It will then request again. Normal model is that the DMA\r
+ * interrupts the processor when its length expires. Note that if the processor will write the key and\r
+ * optionally IV, it should not enable this until it has done so. Otherwise, the DMA will be\r
+ * expected to load those for the 1st block (when needed).\r
+ * 0b0..DMA is not used. Processor writes the necessary words when WAITING is set (interrupts), unless AHB Master is\r
+ * used. 0b1..DMA will push in the data.\r
+ */\r
+#define HASHCRYPT_CTRL_DMA_I(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_DMA_I_SHIFT)) & HASHCRYPT_CTRL_DMA_I_MASK)\r
+#define HASHCRYPT_CTRL_DMA_O_MASK (0x200U)\r
+#define HASHCRYPT_CTRL_DMA_O_SHIFT (9U)\r
+/*! DMA_O - Written to 1 to use DMA to drain the digest/output. If both DMA_I and DMA_O are set, the\r
+ * DMA has to know to switch direction and the locations. This can be used for crypto uses.\r
* 0b0..DMA is not used. Processor reads the digest/output in response to DIGEST interrupt.\r
*/\r
-#define HASHCRYPT_CTRL_DMA_O(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_DMA_O_SHIFT)) & HASHCRYPT_CTRL_DMA_O_MASK)\r
-#define HASHCRYPT_CTRL_HASHSWPB_MASK (0x1000U)\r
-#define HASHCRYPT_CTRL_HASHSWPB_SHIFT (12U)\r
-#define HASHCRYPT_CTRL_HASHSWPB(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_HASHSWPB_SHIFT)) & HASHCRYPT_CTRL_HASHSWPB_MASK)\r
+#define HASHCRYPT_CTRL_DMA_O(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_DMA_O_SHIFT)) & HASHCRYPT_CTRL_DMA_O_MASK)\r
+#define HASHCRYPT_CTRL_HASHSWPB_MASK (0x1000U)\r
+#define HASHCRYPT_CTRL_HASHSWPB_SHIFT (12U)\r
+/*! HASHSWPB - If 1, will swap bytes in the word for SHA hashing. The default is byte order (so LSB\r
+ * is 1st byte) but this allows swapping to MSB is 1st such as is shown in SHS spec. For\r
+ * cryptographic swapping, see the CRYPTCFG register.\r
+ */\r
+#define HASHCRYPT_CTRL_HASHSWPB(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CTRL_HASHSWPB_SHIFT)) & HASHCRYPT_CTRL_HASHSWPB_MASK)\r
/*! @} */\r
\r
/*! @name STATUS - Indicates status of Hash peripheral. */\r
/*! @{ */\r
-#define HASHCRYPT_STATUS_WAITING_MASK (0x1U)\r
-#define HASHCRYPT_STATUS_WAITING_SHIFT (0U)\r
+#define HASHCRYPT_STATUS_WAITING_MASK (0x1U)\r
+#define HASHCRYPT_STATUS_WAITING_SHIFT (0U)\r
/*! WAITING - If 1, the block is waiting for more data to process.\r
- * 0b0..Not waiting for data - may be disabled or may be busy. Note that for cryptographic uses, this is not set if IsLast is set nor will it set until at least 1 word is read of the output.\r
+ * 0b0..Not waiting for data - may be disabled or may be busy. Note that for cryptographic uses, this is not set\r
+ * if IsLast is set nor will it set until at least 1 word is read of the output.\r
* 0b1..Waiting for data to be written in (16 words)\r
*/\r
-#define HASHCRYPT_STATUS_WAITING(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_WAITING_SHIFT)) & HASHCRYPT_STATUS_WAITING_MASK)\r
-#define HASHCRYPT_STATUS_DIGEST_AKA_OUTDATA_MASK (0x2U)\r
-#define HASHCRYPT_STATUS_DIGEST_AKA_OUTDATA_SHIFT (1U)\r
-/*! DIGEST_aka_OUTDATA - For Hash, if 1 then a DIGEST is ready and waiting and there is no active next block already started. For Cryptographic uses, this will be set for each block processed, indicating OUTDATA (and OUTDATA2 if larger output) contains the next value to read out. This is cleared when any data is written, when New is written, for Cryptographic uses when the last word is read out, or when the block is disabled.\r
+#define HASHCRYPT_STATUS_WAITING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_WAITING_SHIFT)) & HASHCRYPT_STATUS_WAITING_MASK)\r
+#define HASHCRYPT_STATUS_DIGEST_MASK (0x2U)\r
+#define HASHCRYPT_STATUS_DIGEST_SHIFT (1U)\r
+/*! DIGEST - For Hash, if 1 then a DIGEST is ready and waiting and there is no active next block\r
+ * already started. For Cryptographic uses, this will be set for each block processed, indicating\r
+ * OUTDATA (and OUTDATA2 if larger output) contains the next value to read out. This is cleared\r
+ * when any data is written, when New is written, for Cryptographic uses when the last word is read\r
+ * out, or when the block is disabled.\r
* 0b0..No Digest is ready\r
* 0b1..Digest is ready. Application may read it or may write more data\r
*/\r
-#define HASHCRYPT_STATUS_DIGEST_AKA_OUTDATA(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_DIGEST_AKA_OUTDATA_SHIFT)) & HASHCRYPT_STATUS_DIGEST_AKA_OUTDATA_MASK)\r
-#define HASHCRYPT_STATUS_ERROR_MASK (0x4U)\r
-#define HASHCRYPT_STATUS_ERROR_SHIFT (2U)\r
-/*! ERROR - If 1, an error occurred. For normal uses, this is due to an attempted overrun: INDATA was written when it was not appropriate. For Master cases, this is an AHB bus error; the COUNT field will indicate which block it was on.\r
+#define HASHCRYPT_STATUS_DIGEST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_DIGEST_SHIFT)) & HASHCRYPT_STATUS_DIGEST_MASK)\r
+#define HASHCRYPT_STATUS_ERROR_MASK (0x4U)\r
+#define HASHCRYPT_STATUS_ERROR_SHIFT (2U)\r
+/*! ERROR - If 1, an error occurred. For normal uses, this is due to an attempted overrun: INDATA\r
+ * was written when it was not appropriate. For Master cases, this is an AHB bus error; the COUNT\r
+ * field will indicate which block it was on.\r
* 0b0..No error.\r
* 0b1..An error occurred since last cleared (written 1 to clear).\r
*/\r
-#define HASHCRYPT_STATUS_ERROR(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_ERROR_SHIFT)) & HASHCRYPT_STATUS_ERROR_MASK)\r
-#define HASHCRYPT_STATUS_NEEDKEY_MASK (0x10U)\r
-#define HASHCRYPT_STATUS_NEEDKEY_SHIFT (4U)\r
+#define HASHCRYPT_STATUS_ERROR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_ERROR_SHIFT)) & HASHCRYPT_STATUS_ERROR_MASK)\r
+#define HASHCRYPT_STATUS_NEEDKEY_MASK (0x10U)\r
+#define HASHCRYPT_STATUS_NEEDKEY_SHIFT (4U)\r
/*! NEEDKEY - Indicates the block wants the key to be written in (set along with WAITING)\r
* 0b0..No Key is needed and writes will not be treated as Key\r
* 0b1..Key is needed and INDATA/ALIAS will be accepted as Key. Will also set WAITING.\r
*/\r
-#define HASHCRYPT_STATUS_NEEDKEY(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_NEEDKEY_SHIFT)) & HASHCRYPT_STATUS_NEEDKEY_MASK)\r
-#define HASHCRYPT_STATUS_NEEDIV_MASK (0x20U)\r
-#define HASHCRYPT_STATUS_NEEDIV_SHIFT (5U)\r
+#define HASHCRYPT_STATUS_NEEDKEY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_NEEDKEY_SHIFT)) & HASHCRYPT_STATUS_NEEDKEY_MASK)\r
+#define HASHCRYPT_STATUS_NEEDIV_MASK (0x20U)\r
+#define HASHCRYPT_STATUS_NEEDIV_SHIFT (5U)\r
/*! NEEDIV - Indicates the block wants an IV/NONE to be written in (set along with WAITING)\r
* 0b0..No IV/Nonce is needed, either because written already or because not needed.\r
* 0b1..IV/Nonce is needed and INDATA/ALIAS will be accepted as IV/Nonce. Will also set WAITING.\r
*/\r
-#define HASHCRYPT_STATUS_NEEDIV(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_NEEDIV_SHIFT)) & HASHCRYPT_STATUS_NEEDIV_MASK)\r
-#define HASHCRYPT_STATUS_ICBIDX_MASK (0x3F0000U)\r
-#define HASHCRYPT_STATUS_ICBIDX_SHIFT (16U)\r
-#define HASHCRYPT_STATUS_ICBIDX(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_ICBIDX_SHIFT)) & HASHCRYPT_STATUS_ICBIDX_MASK)\r
+#define HASHCRYPT_STATUS_NEEDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_NEEDIV_SHIFT)) & HASHCRYPT_STATUS_NEEDIV_MASK)\r
+#define HASHCRYPT_STATUS_ICBIDX_MASK (0x3F0000U)\r
+#define HASHCRYPT_STATUS_ICBIDX_SHIFT (16U)\r
+/*! ICBIDX - If ICB-AES is selected, then reads as the ICB index count based on ICBSTRM (from\r
+ * CRYPTCFG). That is, if 3 bits of ICBSTRM, then this will count from 0 to 7 and then back to 0. On 0,\r
+ * it has to compute the full ICB, quicker when not 0.\r
+ */\r
+#define HASHCRYPT_STATUS_ICBIDX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_STATUS_ICBIDX_SHIFT)) & HASHCRYPT_STATUS_ICBIDX_MASK)\r
/*! @} */\r
\r
/*! @name INTENSET - Write 1 to enable interrupts; reads back with which are set. */\r
/*! @{ */\r
-#define HASHCRYPT_INTENSET_WAITING_MASK (0x1U)\r
-#define HASHCRYPT_INTENSET_WAITING_SHIFT (0U)\r
+#define HASHCRYPT_INTENSET_WAITING_MASK (0x1U)\r
+#define HASHCRYPT_INTENSET_WAITING_SHIFT (0U)\r
/*! WAITING - Indicates if should interrupt when waiting for data input.\r
* 0b0..Will not interrupt when waiting.\r
* 0b1..Will interrupt when waiting\r
*/\r
-#define HASHCRYPT_INTENSET_WAITING(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENSET_WAITING_SHIFT)) & HASHCRYPT_INTENSET_WAITING_MASK)\r
-#define HASHCRYPT_INTENSET_DIGEST_MASK (0x2U)\r
-#define HASHCRYPT_INTENSET_DIGEST_SHIFT (1U)\r
-/*! DIGEST - Indicates if should interrupt when Digest (or Outdata) is ready (completed a hash/crypto or completed a full sequence).\r
- * 0b0..Will not interrupt when Digest is ready\r
- * 0b1..Will interrupt when Digest is ready. Interrupt cleared by writing more data, starting a new Hash, or disabling (done).\r
- */\r
-#define HASHCRYPT_INTENSET_DIGEST(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENSET_DIGEST_SHIFT)) & HASHCRYPT_INTENSET_DIGEST_MASK)\r
-#define HASHCRYPT_INTENSET_ERROR_MASK (0x4U)\r
-#define HASHCRYPT_INTENSET_ERROR_SHIFT (2U)\r
+#define HASHCRYPT_INTENSET_WAITING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENSET_WAITING_SHIFT)) & HASHCRYPT_INTENSET_WAITING_MASK)\r
+#define HASHCRYPT_INTENSET_DIGEST_MASK (0x2U)\r
+#define HASHCRYPT_INTENSET_DIGEST_SHIFT (1U)\r
+/*! DIGEST - Indicates if should interrupt when Digest (or Outdata) is ready (completed a hash/crypto or completed a\r
+ * full sequence). 0b0..Will not interrupt when Digest is ready 0b1..Will interrupt when Digest is ready. Interrupt\r
+ * cleared by writing more data, starting a new Hash, or disabling (done).\r
+ */\r
+#define HASHCRYPT_INTENSET_DIGEST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENSET_DIGEST_SHIFT)) & HASHCRYPT_INTENSET_DIGEST_MASK)\r
+#define HASHCRYPT_INTENSET_ERROR_MASK (0x4U)\r
+#define HASHCRYPT_INTENSET_ERROR_SHIFT (2U)\r
/*! ERROR - Indicates if should interrupt on an ERROR (as defined in Status)\r
* 0b0..Will not interrupt on Error.\r
* 0b1..Will interrupt on Error (until cleared).\r
*/\r
-#define HASHCRYPT_INTENSET_ERROR(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENSET_ERROR_SHIFT)) & HASHCRYPT_INTENSET_ERROR_MASK)\r
+#define HASHCRYPT_INTENSET_ERROR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENSET_ERROR_SHIFT)) & HASHCRYPT_INTENSET_ERROR_MASK)\r
/*! @} */\r
\r
/*! @name INTENCLR - Write 1 to clear interrupts. */\r
/*! @{ */\r
-#define HASHCRYPT_INTENCLR_WAITING_MASK (0x1U)\r
-#define HASHCRYPT_INTENCLR_WAITING_SHIFT (0U)\r
-#define HASHCRYPT_INTENCLR_WAITING(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENCLR_WAITING_SHIFT)) & HASHCRYPT_INTENCLR_WAITING_MASK)\r
-#define HASHCRYPT_INTENCLR_DIGEST_MASK (0x2U)\r
-#define HASHCRYPT_INTENCLR_DIGEST_SHIFT (1U)\r
-#define HASHCRYPT_INTENCLR_DIGEST(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENCLR_DIGEST_SHIFT)) & HASHCRYPT_INTENCLR_DIGEST_MASK)\r
-#define HASHCRYPT_INTENCLR_ERROR_MASK (0x4U)\r
-#define HASHCRYPT_INTENCLR_ERROR_SHIFT (2U)\r
-#define HASHCRYPT_INTENCLR_ERROR(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENCLR_ERROR_SHIFT)) & HASHCRYPT_INTENCLR_ERROR_MASK)\r
+#define HASHCRYPT_INTENCLR_WAITING_MASK (0x1U)\r
+#define HASHCRYPT_INTENCLR_WAITING_SHIFT (0U)\r
+/*! WAITING - Write 1 to clear mask.\r
+ */\r
+#define HASHCRYPT_INTENCLR_WAITING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENCLR_WAITING_SHIFT)) & HASHCRYPT_INTENCLR_WAITING_MASK)\r
+#define HASHCRYPT_INTENCLR_DIGEST_MASK (0x2U)\r
+#define HASHCRYPT_INTENCLR_DIGEST_SHIFT (1U)\r
+/*! DIGEST - Write 1 to clear mask.\r
+ */\r
+#define HASHCRYPT_INTENCLR_DIGEST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENCLR_DIGEST_SHIFT)) & HASHCRYPT_INTENCLR_DIGEST_MASK)\r
+#define HASHCRYPT_INTENCLR_ERROR_MASK (0x4U)\r
+#define HASHCRYPT_INTENCLR_ERROR_SHIFT (2U)\r
+/*! ERROR - Write 1 to clear mask.\r
+ */\r
+#define HASHCRYPT_INTENCLR_ERROR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INTENCLR_ERROR_SHIFT)) & HASHCRYPT_INTENCLR_ERROR_MASK)\r
/*! @} */\r
\r
/*! @name MEMCTRL - Setup Master to access memory (if available) */\r
/*! @{ */\r
-#define HASHCRYPT_MEMCTRL_MASTER_MASK (0x1U)\r
-#define HASHCRYPT_MEMCTRL_MASTER_SHIFT (0U)\r
-/*! MASTER\r
+#define HASHCRYPT_MEMCTRL_MASTER_MASK (0x1U)\r
+#define HASHCRYPT_MEMCTRL_MASTER_SHIFT (0U)\r
+/*! MASTER - Enables mastering.\r
* 0b0..Mastering is not used and the normal DMA or Interrupt based model is used with INDATA.\r
* 0b1..Mastering is enabled and DMA and INDATA should not be used.\r
*/\r
-#define HASHCRYPT_MEMCTRL_MASTER(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_MEMCTRL_MASTER_SHIFT)) & HASHCRYPT_MEMCTRL_MASTER_MASK)\r
-#define HASHCRYPT_MEMCTRL_COUNT_MASK (0x7FF0000U)\r
-#define HASHCRYPT_MEMCTRL_COUNT_SHIFT (16U)\r
-#define HASHCRYPT_MEMCTRL_COUNT(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_MEMCTRL_COUNT_SHIFT)) & HASHCRYPT_MEMCTRL_COUNT_MASK)\r
+#define HASHCRYPT_MEMCTRL_MASTER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_MEMCTRL_MASTER_SHIFT)) & HASHCRYPT_MEMCTRL_MASTER_MASK)\r
+#define HASHCRYPT_MEMCTRL_COUNT_MASK (0x7FF0000U)\r
+#define HASHCRYPT_MEMCTRL_COUNT_SHIFT (16U)\r
+/*! COUNT - Number of 512-bit (128-bit if AES, except 1st block which may include key and IV) blocks\r
+ * to copy starting at MEMADDR. This register will decrement after each block is copied, ending\r
+ * in 0. For Hash, the DIGEST interrupt will occur when it reaches 0. Fro AES, the DIGEST/OUTDATA\r
+ * interrupt will occur on ever block. If a bus error occurs, it will stop with this field set\r
+ * to the block that failed. 0:Done - nothing to process. 1 to 2K: Number of 512-bit (or 128bit)\r
+ * blocks to hash.\r
+ */\r
+#define HASHCRYPT_MEMCTRL_COUNT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_MEMCTRL_COUNT_SHIFT)) & HASHCRYPT_MEMCTRL_COUNT_MASK)\r
/*! @} */\r
\r
/*! @name MEMADDR - Address to start memory access from (if available). */\r
/*! @{ */\r
-#define HASHCRYPT_MEMADDR_BASE_MASK (0xFFFFFFFFU)\r
-#define HASHCRYPT_MEMADDR_BASE_SHIFT (0U)\r
-#define HASHCRYPT_MEMADDR_BASE(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_MEMADDR_BASE_SHIFT)) & HASHCRYPT_MEMADDR_BASE_MASK)\r
+#define HASHCRYPT_MEMADDR_BASE_MASK (0xFFFFFFFFU)\r
+#define HASHCRYPT_MEMADDR_BASE_SHIFT (0U)\r
+/*! BASE - Address base to start copying from, word aligned (so bits 1:0 must be 0). This field will\r
+ * advance as it processes the words. If it fails with a bus error, the register will contain\r
+ * the failing word. N:Address in Flash or RAM space; RAM only as mapped in this part. May also be\r
+ * able to address SPIFI.\r
+ */\r
+#define HASHCRYPT_MEMADDR_BASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_MEMADDR_BASE_SHIFT)) & HASHCRYPT_MEMADDR_BASE_MASK)\r
/*! @} */\r
\r
/*! @name INDATA - Input of 16 words at a time to load up buffer. */\r
/*! @{ */\r
-#define HASHCRYPT_INDATA_DATA_MASK (0xFFFFFFFFU)\r
-#define HASHCRYPT_INDATA_DATA_SHIFT (0U)\r
-#define HASHCRYPT_INDATA_DATA(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INDATA_DATA_SHIFT)) & HASHCRYPT_INDATA_DATA_MASK)\r
+#define HASHCRYPT_INDATA_DATA_MASK (0xFFFFFFFFU)\r
+#define HASHCRYPT_INDATA_DATA_SHIFT (0U)\r
+/*! DATA - Write next word in little-endian form. The hash requires big endian word data, but this\r
+ * block swaps the bytes automatically. That is, SHA assumes the data coming in is treated as\r
+ * bytes (e.g. "abcd") and since the ARM core will treat "abcd" as a word as 0x64636261, the block\r
+ * will swap the word to restore into big endian.\r
+ */\r
+#define HASHCRYPT_INDATA_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_INDATA_DATA_SHIFT)) & HASHCRYPT_INDATA_DATA_MASK)\r
/*! @} */\r
\r
/*! @name ALIAS - */\r
/*! @{ */\r
-#define HASHCRYPT_ALIAS_DATA_MASK (0xFFFFFFFFU)\r
-#define HASHCRYPT_ALIAS_DATA_SHIFT (0U)\r
-#define HASHCRYPT_ALIAS_DATA(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_ALIAS_DATA_SHIFT)) & HASHCRYPT_ALIAS_DATA_MASK)\r
+#define HASHCRYPT_ALIAS_DATA_MASK (0xFFFFFFFFU)\r
+#define HASHCRYPT_ALIAS_DATA_SHIFT (0U)\r
+/*! DATA - Write next word in little-endian form. The hash requires big endian word data, but this\r
+ * block swaps the bytes automatically. That is, SHA assumes the data coming in is treated as\r
+ * bytes (e.g. "abcd") and since the ARM core will treat "abcd" as a word as 0x64636261, the block\r
+ * will swap the word to restore into big endian.\r
+ */\r
+#define HASHCRYPT_ALIAS_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_ALIAS_DATA_SHIFT)) & HASHCRYPT_ALIAS_DATA_MASK)\r
/*! @} */\r
\r
/* The count of HASHCRYPT_ALIAS */\r
-#define HASHCRYPT_ALIAS_COUNT (7U)\r
+#define HASHCRYPT_ALIAS_COUNT (7U)\r
\r
-/*! @name OUTDATA0 - */\r
+/*! @name DIGEST0 - */\r
/*! @{ */\r
-#define HASHCRYPT_OUTDATA0_DIGEST_OUTPUT_MASK (0xFFFFFFFFU)\r
-#define HASHCRYPT_OUTDATA0_DIGEST_OUTPUT_SHIFT (0U)\r
-#define HASHCRYPT_OUTDATA0_DIGEST_OUTPUT(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_OUTDATA0_DIGEST_OUTPUT_SHIFT)) & HASHCRYPT_OUTDATA0_DIGEST_OUTPUT_MASK)\r
-/*! @} */\r
-\r
-/* The count of HASHCRYPT_OUTDATA0 */\r
-#define HASHCRYPT_OUTDATA0_COUNT (8U)\r
-\r
-/*! @name OUTDATA1 - */\r
-/*! @{ */\r
-#define HASHCRYPT_OUTDATA1_OUTPUT_MASK (0xFFFFFFFFU)\r
-#define HASHCRYPT_OUTDATA1_OUTPUT_SHIFT (0U)\r
-#define HASHCRYPT_OUTDATA1_OUTPUT(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_OUTDATA1_OUTPUT_SHIFT)) & HASHCRYPT_OUTDATA1_OUTPUT_MASK)\r
+#define HASHCRYPT_DIGEST0_DIGEST_MASK (0xFFFFFFFFU)\r
+#define HASHCRYPT_DIGEST0_DIGEST_SHIFT (0U)\r
+/*! DIGEST - One word of the Digest or output. Note that only 1st 4 are populated for AES and 1st 5 are populated for\r
+ * SHA1.\r
+ */\r
+#define HASHCRYPT_DIGEST0_DIGEST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_DIGEST0_DIGEST_SHIFT)) & HASHCRYPT_DIGEST0_DIGEST_MASK)\r
/*! @} */\r
\r
-/* The count of HASHCRYPT_OUTDATA1 */\r
-#define HASHCRYPT_OUTDATA1_COUNT (8U)\r
+/* The count of HASHCRYPT_DIGEST0 */\r
+#define HASHCRYPT_DIGEST0_COUNT (8U)\r
\r
/*! @name CRYPTCFG - Crypto settings for AES and Salsa and ChaCha */\r
/*! @{ */\r
-#define HASHCRYPT_CRYPTCFG_MSW1ST_OUT_MASK (0x1U)\r
-#define HASHCRYPT_CRYPTCFG_MSW1ST_OUT_SHIFT (0U)\r
-#define HASHCRYPT_CRYPTCFG_MSW1ST_OUT(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_MSW1ST_OUT_SHIFT)) & HASHCRYPT_CRYPTCFG_MSW1ST_OUT_MASK)\r
-#define HASHCRYPT_CRYPTCFG_SWAPKEY_MASK (0x2U)\r
-#define HASHCRYPT_CRYPTCFG_SWAPKEY_SHIFT (1U)\r
-#define HASHCRYPT_CRYPTCFG_SWAPKEY(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_SWAPKEY_SHIFT)) & HASHCRYPT_CRYPTCFG_SWAPKEY_MASK)\r
-#define HASHCRYPT_CRYPTCFG_SWAPDAT_MASK (0x4U)\r
-#define HASHCRYPT_CRYPTCFG_SWAPDAT_SHIFT (2U)\r
-#define HASHCRYPT_CRYPTCFG_SWAPDAT(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_SWAPDAT_SHIFT)) & HASHCRYPT_CRYPTCFG_SWAPDAT_MASK)\r
-#define HASHCRYPT_CRYPTCFG_MSW1ST_MASK (0x8U)\r
-#define HASHCRYPT_CRYPTCFG_MSW1ST_SHIFT (3U)\r
-#define HASHCRYPT_CRYPTCFG_MSW1ST(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_MSW1ST_SHIFT)) & HASHCRYPT_CRYPTCFG_MSW1ST_MASK)\r
-#define HASHCRYPT_CRYPTCFG_AESMODE_MASK (0x30U)\r
-#define HASHCRYPT_CRYPTCFG_AESMODE_SHIFT (4U)\r
+#define HASHCRYPT_CRYPTCFG_MSW1ST_OUT_MASK (0x1U)\r
+#define HASHCRYPT_CRYPTCFG_MSW1ST_OUT_SHIFT (0U)\r
+/*! MSW1ST_OUT - If 1, OUTDATA0 will be read Most significant word 1st for AES. Else it will be read\r
+ * in normal little endian - Least significant word 1st. Note: only if allowed by configuration.\r
+ */\r
+#define HASHCRYPT_CRYPTCFG_MSW1ST_OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_MSW1ST_OUT_SHIFT)) & HASHCRYPT_CRYPTCFG_MSW1ST_OUT_MASK)\r
+#define HASHCRYPT_CRYPTCFG_SWAPKEY_MASK (0x2U)\r
+#define HASHCRYPT_CRYPTCFG_SWAPKEY_SHIFT (1U)\r
+/*! SWAPKEY - If 1, will Swap the key input (bytes in each word).\r
+ */\r
+#define HASHCRYPT_CRYPTCFG_SWAPKEY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_SWAPKEY_SHIFT)) & HASHCRYPT_CRYPTCFG_SWAPKEY_MASK)\r
+#define HASHCRYPT_CRYPTCFG_SWAPDAT_MASK (0x4U)\r
+#define HASHCRYPT_CRYPTCFG_SWAPDAT_SHIFT (2U)\r
+/*! SWAPDAT - If 1, will SWAP the data and IV inputs (bytes in each word).\r
+ */\r
+#define HASHCRYPT_CRYPTCFG_SWAPDAT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_SWAPDAT_SHIFT)) & HASHCRYPT_CRYPTCFG_SWAPDAT_MASK)\r
+#define HASHCRYPT_CRYPTCFG_MSW1ST_MASK (0x8U)\r
+#define HASHCRYPT_CRYPTCFG_MSW1ST_SHIFT (3U)\r
+/*! MSW1ST - If 1, load of key, IV, and data is MSW 1st for AES. Else, the words are little endian.\r
+ * Note: only if allowed by configuration.\r
+ */\r
+#define HASHCRYPT_CRYPTCFG_MSW1ST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_MSW1ST_SHIFT)) & HASHCRYPT_CRYPTCFG_MSW1ST_MASK)\r
+#define HASHCRYPT_CRYPTCFG_AESMODE_MASK (0x30U)\r
+#define HASHCRYPT_CRYPTCFG_AESMODE_SHIFT (4U)\r
/*! AESMODE - AES Cipher mode to use if plain AES\r
* 0b00..ECB - used as is\r
* 0b01..CBC mode (see details on IV/nonce)\r
* 0b10..CTR mode (see details on IV/nonce). See also AESCTRPOS.\r
* 0b11..reserved\r
*/\r
-#define HASHCRYPT_CRYPTCFG_AESMODE(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESMODE_SHIFT)) & HASHCRYPT_CRYPTCFG_AESMODE_MASK)\r
-#define HASHCRYPT_CRYPTCFG_AESDECRYPT_MASK (0x40U)\r
-#define HASHCRYPT_CRYPTCFG_AESDECRYPT_SHIFT (6U)\r
+#define HASHCRYPT_CRYPTCFG_AESMODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESMODE_SHIFT)) & HASHCRYPT_CRYPTCFG_AESMODE_MASK)\r
+#define HASHCRYPT_CRYPTCFG_AESDECRYPT_MASK (0x40U)\r
+#define HASHCRYPT_CRYPTCFG_AESDECRYPT_SHIFT (6U)\r
/*! AESDECRYPT - AES ECB direction. Only encryption used if CTR mode or manual modes such as CFB\r
* 0b0..Encrypt\r
* 0b1..Decrypt\r
*/\r
-#define HASHCRYPT_CRYPTCFG_AESDECRYPT(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESDECRYPT_SHIFT)) & HASHCRYPT_CRYPTCFG_AESDECRYPT_MASK)\r
-#define HASHCRYPT_CRYPTCFG_AESSECRET_MASK (0x80U)\r
-#define HASHCRYPT_CRYPTCFG_AESSECRET_SHIFT (7U)\r
-/*! AESSECRET - Selects the Hidden Secret key vs. User key, if provided. If security levels are used, only the highest level is permitted to select this.\r
+#define HASHCRYPT_CRYPTCFG_AESDECRYPT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESDECRYPT_SHIFT)) & HASHCRYPT_CRYPTCFG_AESDECRYPT_MASK)\r
+#define HASHCRYPT_CRYPTCFG_AESSECRET_MASK (0x80U)\r
+#define HASHCRYPT_CRYPTCFG_AESSECRET_SHIFT (7U)\r
+/*! AESSECRET - Selects the Hidden Secret key vs. User key, if provided. If security levels are\r
+ * used, only the highest level is permitted to select this.\r
* 0b0..User key provided in normal way\r
* 0b1..Secret key provided in hidden way by HW\r
*/\r
-#define HASHCRYPT_CRYPTCFG_AESSECRET(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESSECRET_SHIFT)) & HASHCRYPT_CRYPTCFG_AESSECRET_MASK)\r
-#define HASHCRYPT_CRYPTCFG_AESKEYSZ_MASK (0x300U)\r
-#define HASHCRYPT_CRYPTCFG_AESKEYSZ_SHIFT (8U)\r
+#define HASHCRYPT_CRYPTCFG_AESSECRET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESSECRET_SHIFT)) & HASHCRYPT_CRYPTCFG_AESSECRET_MASK)\r
+#define HASHCRYPT_CRYPTCFG_AESKEYSZ_MASK (0x300U)\r
+#define HASHCRYPT_CRYPTCFG_AESKEYSZ_SHIFT (8U)\r
/*! AESKEYSZ - Sets the AES key size\r
* 0b00..128 bit key\r
* 0b01..192 bit key\r
* 0b10..256 bit key\r
* 0b11..reserved\r
*/\r
-#define HASHCRYPT_CRYPTCFG_AESKEYSZ(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESKEYSZ_SHIFT)) & HASHCRYPT_CRYPTCFG_AESKEYSZ_MASK)\r
-#define HASHCRYPT_CRYPTCFG_AESCTRPOS_MASK (0x1C00U)\r
-#define HASHCRYPT_CRYPTCFG_AESCTRPOS_SHIFT (10U)\r
-#define HASHCRYPT_CRYPTCFG_AESCTRPOS(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESCTRPOS_SHIFT)) & HASHCRYPT_CRYPTCFG_AESCTRPOS_MASK)\r
-#define HASHCRYPT_CRYPTCFG_STREAMLAST_MASK (0x10000U)\r
-#define HASHCRYPT_CRYPTCFG_STREAMLAST_SHIFT (16U)\r
-#define HASHCRYPT_CRYPTCFG_STREAMLAST(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_STREAMLAST_SHIFT)) & HASHCRYPT_CRYPTCFG_STREAMLAST_MASK)\r
-#define HASHCRYPT_CRYPTCFG_XSALSA_MASK (0x20000U)\r
-#define HASHCRYPT_CRYPTCFG_XSALSA_SHIFT (17U)\r
-#define HASHCRYPT_CRYPTCFG_XSALSA(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_XSALSA_SHIFT)) & HASHCRYPT_CRYPTCFG_XSALSA_MASK)\r
-#define HASHCRYPT_CRYPTCFG_ICBSZ_MASK (0x300000U)\r
-#define HASHCRYPT_CRYPTCFG_ICBSZ_SHIFT (20U)\r
-/*! ICBSZ - This sets the ICB size between 32 and 128 bits, using the following rules. Note that the counter is assumed to occupy the low order bits of the IV.\r
+#define HASHCRYPT_CRYPTCFG_AESKEYSZ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESKEYSZ_SHIFT)) & HASHCRYPT_CRYPTCFG_AESKEYSZ_MASK)\r
+#define HASHCRYPT_CRYPTCFG_AESCTRPOS_MASK (0x1C00U)\r
+#define HASHCRYPT_CRYPTCFG_AESCTRPOS_SHIFT (10U)\r
+/*! AESCTRPOS - Halfword position of 16b counter in IV if AESMODE is CTR (position is fixed for\r
+ * Salsa and ChaCha). Only supports 16b counter, so application must control any additional bytes if\r
+ * using more. The 16-bit counter is read from the IV and incremented by 1 each time. Any other\r
+ * use CTR should use ECB directly and do its own XOR and so on.\r
+ */\r
+#define HASHCRYPT_CRYPTCFG_AESCTRPOS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_AESCTRPOS_SHIFT)) & HASHCRYPT_CRYPTCFG_AESCTRPOS_MASK)\r
+#define HASHCRYPT_CRYPTCFG_STREAMLAST_MASK (0x10000U)\r
+#define HASHCRYPT_CRYPTCFG_STREAMLAST_SHIFT (16U)\r
+/*! STREAMLAST - Is 1 if last stream block. If not 1, then the engine will compute the next "hash".\r
+ */\r
+#define HASHCRYPT_CRYPTCFG_STREAMLAST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_STREAMLAST_SHIFT)) & HASHCRYPT_CRYPTCFG_STREAMLAST_MASK)\r
+#define HASHCRYPT_CRYPTCFG_ICBSZ_MASK (0x300000U)\r
+#define HASHCRYPT_CRYPTCFG_ICBSZ_SHIFT (20U)\r
+/*! ICBSZ - This sets the ICB size between 32 and 128 bits, using the following rules. Note that the\r
+ * counter is assumed to occupy the low order bits of the IV.\r
* 0b00..32 bits of the IV/ctr are used (from 127:96)\r
* 0b01..64 bits of the IV/ctr are used (from 127:64)\r
* 0b10..96 bits of the IV/ctr are used (from 127:32)\r
* 0b11..All 128 bits of the IV/ctr are used\r
*/\r
-#define HASHCRYPT_CRYPTCFG_ICBSZ(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_ICBSZ_SHIFT)) & HASHCRYPT_CRYPTCFG_ICBSZ_MASK)\r
-#define HASHCRYPT_CRYPTCFG_ICBSTRM_MASK (0xC00000U)\r
-#define HASHCRYPT_CRYPTCFG_ICBSTRM_SHIFT (22U)\r
-/*! ICBSTRM - The size of the ICB-AES stream that can be pushed before needing to compute a new IV/ctr (counter start). This optimizes the performance of the stream of blocks after the 1st.\r
+#define HASHCRYPT_CRYPTCFG_ICBSZ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_ICBSZ_SHIFT)) & HASHCRYPT_CRYPTCFG_ICBSZ_MASK)\r
+#define HASHCRYPT_CRYPTCFG_ICBSTRM_MASK (0xC00000U)\r
+#define HASHCRYPT_CRYPTCFG_ICBSTRM_SHIFT (22U)\r
+/*! ICBSTRM - The size of the ICB-AES stream that can be pushed before needing to compute a new\r
+ * IV/ctr (counter start). This optimizes the performance of the stream of blocks after the 1st.\r
* 0b00..8 blocks\r
* 0b01..16 blocks\r
* 0b10..32 blocks\r
* 0b11..64 blocks\r
*/\r
-#define HASHCRYPT_CRYPTCFG_ICBSTRM(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_ICBSTRM_SHIFT)) & HASHCRYPT_CRYPTCFG_ICBSTRM_MASK)\r
+#define HASHCRYPT_CRYPTCFG_ICBSTRM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CRYPTCFG_ICBSTRM_SHIFT)) & HASHCRYPT_CRYPTCFG_ICBSTRM_MASK)\r
/*! @} */\r
\r
/*! @name CONFIG - Returns the configuration of this block in this chip - indicates what services are available. */\r
/*! @{ */\r
-#define HASHCRYPT_CONFIG_DUAL_MASK (0x1U)\r
-#define HASHCRYPT_CONFIG_DUAL_SHIFT (0U)\r
-#define HASHCRYPT_CONFIG_DUAL(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_DUAL_SHIFT)) & HASHCRYPT_CONFIG_DUAL_MASK)\r
-#define HASHCRYPT_CONFIG_DMA_MASK (0x2U)\r
-#define HASHCRYPT_CONFIG_DMA_SHIFT (1U)\r
-#define HASHCRYPT_CONFIG_DMA(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_DMA_SHIFT)) & HASHCRYPT_CONFIG_DMA_MASK)\r
-#define HASHCRYPT_CONFIG_AHB_MASK (0x8U)\r
-#define HASHCRYPT_CONFIG_AHB_SHIFT (3U)\r
-#define HASHCRYPT_CONFIG_AHB(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_AHB_SHIFT)) & HASHCRYPT_CONFIG_AHB_MASK)\r
-#define HASHCRYPT_CONFIG_SHA512_MASK (0x20U)\r
-#define HASHCRYPT_CONFIG_SHA512_SHIFT (5U)\r
-#define HASHCRYPT_CONFIG_SHA512(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_SHA512_SHIFT)) & HASHCRYPT_CONFIG_SHA512_MASK)\r
-#define HASHCRYPT_CONFIG_AES_MASK (0x40U)\r
-#define HASHCRYPT_CONFIG_AES_SHIFT (6U)\r
-#define HASHCRYPT_CONFIG_AES(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_AES_SHIFT)) & HASHCRYPT_CONFIG_AES_MASK)\r
-#define HASHCRYPT_CONFIG_AESKEY_MASK (0x80U)\r
-#define HASHCRYPT_CONFIG_AESKEY_SHIFT (7U)\r
-#define HASHCRYPT_CONFIG_AESKEY(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_AESKEY_SHIFT)) & HASHCRYPT_CONFIG_AESKEY_MASK)\r
-#define HASHCRYPT_CONFIG_SECRET_MASK (0x100U)\r
-#define HASHCRYPT_CONFIG_SECRET_SHIFT (8U)\r
-#define HASHCRYPT_CONFIG_SECRET(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_SECRET_SHIFT)) & HASHCRYPT_CONFIG_SECRET_MASK)\r
-#define HASHCRYPT_CONFIG_SALSA_MASK (0x200U)\r
-#define HASHCRYPT_CONFIG_SALSA_SHIFT (9U)\r
-#define HASHCRYPT_CONFIG_SALSA(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_SALSA_SHIFT)) & HASHCRYPT_CONFIG_SALSA_MASK)\r
-#define HASHCRYPT_CONFIG_CHACHA_MASK (0x400U)\r
-#define HASHCRYPT_CONFIG_CHACHA_SHIFT (10U)\r
-#define HASHCRYPT_CONFIG_CHACHA(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_CHACHA_SHIFT)) & HASHCRYPT_CONFIG_CHACHA_MASK)\r
-#define HASHCRYPT_CONFIG_ICB_MASK (0x800U)\r
-#define HASHCRYPT_CONFIG_ICB_SHIFT (11U)\r
-#define HASHCRYPT_CONFIG_ICB(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_ICB_SHIFT)) & HASHCRYPT_CONFIG_ICB_MASK)\r
+#define HASHCRYPT_CONFIG_DUAL_MASK (0x1U)\r
+#define HASHCRYPT_CONFIG_DUAL_SHIFT (0U)\r
+/*! DUAL - 1 if 2 x 512 bit buffers, 0 if only 1 x 512 bit\r
+ */\r
+#define HASHCRYPT_CONFIG_DUAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_DUAL_SHIFT)) & HASHCRYPT_CONFIG_DUAL_MASK)\r
+#define HASHCRYPT_CONFIG_DMA_MASK (0x2U)\r
+#define HASHCRYPT_CONFIG_DMA_SHIFT (1U)\r
+/*! DMA - 1 if DMA is connected\r
+ */\r
+#define HASHCRYPT_CONFIG_DMA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_DMA_SHIFT)) & HASHCRYPT_CONFIG_DMA_MASK)\r
+#define HASHCRYPT_CONFIG_AHB_MASK (0x8U)\r
+#define HASHCRYPT_CONFIG_AHB_SHIFT (3U)\r
+/*! AHB - 1 if AHB Master is enabled\r
+ */\r
+#define HASHCRYPT_CONFIG_AHB(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_AHB_SHIFT)) & HASHCRYPT_CONFIG_AHB_MASK)\r
+#define HASHCRYPT_CONFIG_AES_MASK (0x40U)\r
+#define HASHCRYPT_CONFIG_AES_SHIFT (6U)\r
+/*! AES - 1 if AES 128 included\r
+ */\r
+#define HASHCRYPT_CONFIG_AES(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_AES_SHIFT)) & HASHCRYPT_CONFIG_AES_MASK)\r
+#define HASHCRYPT_CONFIG_AESKEY_MASK (0x80U)\r
+#define HASHCRYPT_CONFIG_AESKEY_SHIFT (7U)\r
+/*! AESKEY - 1 if AES 192 and 256 also included\r
+ */\r
+#define HASHCRYPT_CONFIG_AESKEY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_AESKEY_SHIFT)) & HASHCRYPT_CONFIG_AESKEY_MASK)\r
+#define HASHCRYPT_CONFIG_SECRET_MASK (0x100U)\r
+#define HASHCRYPT_CONFIG_SECRET_SHIFT (8U)\r
+/*! SECRET - 1 if AES Secret key available\r
+ */\r
+#define HASHCRYPT_CONFIG_SECRET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_SECRET_SHIFT)) & HASHCRYPT_CONFIG_SECRET_MASK)\r
+#define HASHCRYPT_CONFIG_ICB_MASK (0x800U)\r
+#define HASHCRYPT_CONFIG_ICB_SHIFT (11U)\r
+/*! ICB - 1 if ICB over AES included\r
+ */\r
+#define HASHCRYPT_CONFIG_ICB(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_CONFIG_ICB_SHIFT)) & HASHCRYPT_CONFIG_ICB_MASK)\r
/*! @} */\r
\r
/*! @name LOCK - Lock register allows locking to the current security level or unlocking by the lock holding level. */\r
/*! @{ */\r
-#define HASHCRYPT_LOCK_SECLOCK_MASK (0x3U)\r
-#define HASHCRYPT_LOCK_SECLOCK_SHIFT (0U)\r
-/*! SECLOCK - Write 1 to secure-lock this block (if running in a security state). Write 0 to unlock. If locked already, may only write if at same or higher security level as lock. Reads as: 0 if unlocked, else 1, 2, 3 to indicate security level it is locked at. NOTE: this and ID are the only readable registers if locked and current state is lower than lock level.\r
+#define HASHCRYPT_LOCK_SECLOCK_MASK (0x3U)\r
+#define HASHCRYPT_LOCK_SECLOCK_SHIFT (0U)\r
+/*! SECLOCK - Write 1 to secure-lock this block (if running in a security state). Write 0 to unlock.\r
+ * If locked already, may only write if at same or higher security level as lock. Reads as: 0 if\r
+ * unlocked, else 1, 2, 3 to indicate security level it is locked at. NOTE: this and ID are the\r
+ * only readable registers if locked and current state is lower than lock level.\r
* 0b00..Unlocks, so block is open to all. But, AHB Master will only issue non-secure requests.\r
* 0b01..Locks to the current security level. AHB Master will issue requests at this level.\r
*/\r
-#define HASHCRYPT_LOCK_SECLOCK(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_LOCK_SECLOCK_SHIFT)) & HASHCRYPT_LOCK_SECLOCK_MASK)\r
-#define HASHCRYPT_LOCK_PATTERN_MASK (0xFFF0U)\r
-#define HASHCRYPT_LOCK_PATTERN_SHIFT (4U)\r
-#define HASHCRYPT_LOCK_PATTERN(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_LOCK_PATTERN_SHIFT)) & HASHCRYPT_LOCK_PATTERN_MASK)\r
+#define HASHCRYPT_LOCK_SECLOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_LOCK_SECLOCK_SHIFT)) & HASHCRYPT_LOCK_SECLOCK_MASK)\r
+#define HASHCRYPT_LOCK_PATTERN_MASK (0xFFF0U)\r
+#define HASHCRYPT_LOCK_PATTERN_SHIFT (4U)\r
+/*! PATTERN - Must write 0xA75 to change lock state. A75:Pattern needed to change bits 1:0\r
+ */\r
+#define HASHCRYPT_LOCK_PATTERN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_LOCK_PATTERN_SHIFT)) & HASHCRYPT_LOCK_PATTERN_MASK)\r
/*! @} */\r
\r
/*! @name MASK - */\r
/*! @{ */\r
-#define HASHCRYPT_MASK_MASK_MASK (0xFFFFFFFFU)\r
-#define HASHCRYPT_MASK_MASK_SHIFT (0U)\r
-#define HASHCRYPT_MASK_MASK(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_MASK_MASK_SHIFT)) & HASHCRYPT_MASK_MASK_MASK)\r
+#define HASHCRYPT_MASK_MASK_MASK (0xFFFFFFFFU)\r
+#define HASHCRYPT_MASK_MASK_SHIFT (0U)\r
+/*! MASK - A random word.\r
+ */\r
+#define HASHCRYPT_MASK_MASK(x) (((uint32_t)(((uint32_t)(x)) << HASHCRYPT_MASK_MASK_SHIFT)) & HASHCRYPT_MASK_MASK_MASK)\r
/*! @} */\r
\r
/* The count of HASHCRYPT_MASK */\r
-#define HASHCRYPT_MASK_COUNT (4U)\r
-\r
+#define HASHCRYPT_MASK_COUNT (4U)\r
\r
/*!\r
* @}\r
*/ /* end of group HASHCRYPT_Register_Masks */\r
\r
-\r
/* HASHCRYPT - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral HASHCRYPT base address */\r
- #define HASHCRYPT_BASE (0x500A4000u)\r
- /** Peripheral HASHCRYPT base address */\r
- #define HASHCRYPT_BASE_NS (0x400A4000u)\r
- /** Peripheral HASHCRYPT base pointer */\r
- #define HASHCRYPT ((HASHCRYPT_Type *)HASHCRYPT_BASE)\r
- /** Peripheral HASHCRYPT base pointer */\r
- #define HASHCRYPT_NS ((HASHCRYPT_Type *)HASHCRYPT_BASE_NS)\r
- /** Array initializer of HASHCRYPT peripheral base addresses */\r
- #define HASHCRYPT_BASE_ADDRS { HASHCRYPT_BASE }\r
- /** Array initializer of HASHCRYPT peripheral base pointers */\r
- #define HASHCRYPT_BASE_PTRS { HASHCRYPT }\r
- /** Array initializer of HASHCRYPT peripheral base addresses */\r
- #define HASHCRYPT_BASE_ADDRS_NS { HASHCRYPT_BASE_NS }\r
- /** Array initializer of HASHCRYPT peripheral base pointers */\r
- #define HASHCRYPT_BASE_PTRS_NS { HASHCRYPT_NS }\r
+/** Peripheral HASHCRYPT base address */\r
+#define HASHCRYPT_BASE (0x500A4000u)\r
+/** Peripheral HASHCRYPT base address */\r
+#define HASHCRYPT_BASE_NS (0x400A4000u)\r
+/** Peripheral HASHCRYPT base pointer */\r
+#define HASHCRYPT ((HASHCRYPT_Type *)HASHCRYPT_BASE)\r
+/** Peripheral HASHCRYPT base pointer */\r
+#define HASHCRYPT_NS ((HASHCRYPT_Type *)HASHCRYPT_BASE_NS)\r
+/** Array initializer of HASHCRYPT peripheral base addresses */\r
+#define HASHCRYPT_BASE_ADDRS \\r
+ { \\r
+ HASHCRYPT_BASE \\r
+ }\r
+/** Array initializer of HASHCRYPT peripheral base pointers */\r
+#define HASHCRYPT_BASE_PTRS \\r
+ { \\r
+ HASHCRYPT \\r
+ }\r
+/** Array initializer of HASHCRYPT peripheral base addresses */\r
+#define HASHCRYPT_BASE_ADDRS_NS \\r
+ { \\r
+ HASHCRYPT_BASE_NS \\r
+ }\r
+/** Array initializer of HASHCRYPT peripheral base pointers */\r
+#define HASHCRYPT_BASE_PTRS_NS \\r
+ { \\r
+ HASHCRYPT_NS \\r
+ }\r
#else\r
- /** Peripheral HASHCRYPT base address */\r
- #define HASHCRYPT_BASE (0x400A4000u)\r
- /** Peripheral HASHCRYPT base pointer */\r
- #define HASHCRYPT ((HASHCRYPT_Type *)HASHCRYPT_BASE)\r
- /** Array initializer of HASHCRYPT peripheral base addresses */\r
- #define HASHCRYPT_BASE_ADDRS { HASHCRYPT_BASE }\r
- /** Array initializer of HASHCRYPT peripheral base pointers */\r
- #define HASHCRYPT_BASE_PTRS { HASHCRYPT }\r
+/** Peripheral HASHCRYPT base address */\r
+#define HASHCRYPT_BASE (0x400A4000u)\r
+/** Peripheral HASHCRYPT base pointer */\r
+#define HASHCRYPT ((HASHCRYPT_Type *)HASHCRYPT_BASE)\r
+/** Array initializer of HASHCRYPT peripheral base addresses */\r
+#define HASHCRYPT_BASE_ADDRS \\r
+ { \\r
+ HASHCRYPT_BASE \\r
+ }\r
+/** Array initializer of HASHCRYPT peripheral base pointers */\r
+#define HASHCRYPT_BASE_PTRS \\r
+ { \\r
+ HASHCRYPT \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group HASHCRYPT_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- I2C Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** I2C - Register Layout Typedef */\r
-typedef struct {\r
- uint8_t RESERVED_0[2048];\r
- __IO uint32_t CFG; /**< Configuration for shared functions., offset: 0x800 */\r
- __IO uint32_t STAT; /**< Status register for Master, Slave, and Monitor functions., offset: 0x804 */\r
- __IO uint32_t INTENSET; /**< Interrupt Enable Set and read register., offset: 0x808 */\r
- __O uint32_t INTENCLR; /**< Interrupt Enable Clear register., offset: 0x80C */\r
- __IO uint32_t TIMEOUT; /**< Time-out value register., offset: 0x810 */\r
- __IO uint32_t CLKDIV; /**< Clock pre-divider for the entire I2C interface. This determines what time increments are used for the MSTTIME register, and controls some timing of the Slave function., offset: 0x814 */\r
- __I uint32_t INTSTAT; /**< Interrupt Status register for Master, Slave, and Monitor functions., offset: 0x818 */\r
- uint8_t RESERVED_1[4];\r
- __IO uint32_t MSTCTL; /**< Master control register., offset: 0x820 */\r
- __IO uint32_t MSTTIME; /**< Master timing configuration., offset: 0x824 */\r
- __IO uint32_t MSTDAT; /**< Combined Master receiver and transmitter data register., offset: 0x828 */\r
- uint8_t RESERVED_2[20];\r
- __IO uint32_t SLVCTL; /**< Slave control register., offset: 0x840 */\r
- __IO uint32_t SLVDAT; /**< Combined Slave receiver and transmitter data register., offset: 0x844 */\r
- __IO uint32_t SLVADR[4]; /**< Slave address register., array offset: 0x848, array step: 0x4 */\r
- __IO uint32_t SLVQUAL0; /**< Slave Qualification for address 0., offset: 0x858 */\r
- uint8_t RESERVED_3[36];\r
- __I uint32_t MONRXDAT; /**< Monitor receiver data register., offset: 0x880 */\r
- uint8_t RESERVED_4[1912];\r
- __I uint32_t ID; /**< Peripheral identification register., offset: 0xFFC */\r
+typedef struct\r
+{\r
+ uint8_t RESERVED_0[2048];\r
+ __IO uint32_t CFG; /**< Configuration for shared functions., offset: 0x800 */\r
+ __IO uint32_t STAT; /**< Status register for Master, Slave, and Monitor functions., offset: 0x804 */\r
+ __IO uint32_t INTENSET; /**< Interrupt Enable Set and read register., offset: 0x808 */\r
+ __O uint32_t INTENCLR; /**< Interrupt Enable Clear register., offset: 0x80C */\r
+ __IO uint32_t TIMEOUT; /**< Time-out value register., offset: 0x810 */\r
+ __IO uint32_t\r
+ CLKDIV; /**< Clock pre-divider for the entire I2C interface. This determines what time increments are used for\r
+ the MSTTIME register, and controls some timing of the Slave function., offset: 0x814 */\r
+ __I uint32_t INTSTAT; /**< Interrupt Status register for Master, Slave, and Monitor functions., offset: 0x818 */\r
+ uint8_t RESERVED_1[4];\r
+ __IO uint32_t MSTCTL; /**< Master control register., offset: 0x820 */\r
+ __IO uint32_t MSTTIME; /**< Master timing configuration., offset: 0x824 */\r
+ __IO uint32_t MSTDAT; /**< Combined Master receiver and transmitter data register., offset: 0x828 */\r
+ uint8_t RESERVED_2[20];\r
+ __IO uint32_t SLVCTL; /**< Slave control register., offset: 0x840 */\r
+ __IO uint32_t SLVDAT; /**< Combined Slave receiver and transmitter data register., offset: 0x844 */\r
+ __IO uint32_t SLVADR[4]; /**< Slave address register., array offset: 0x848, array step: 0x4 */\r
+ __IO uint32_t SLVQUAL0; /**< Slave Qualification for address 0., offset: 0x858 */\r
+ uint8_t RESERVED_3[36];\r
+ __I uint32_t MONRXDAT; /**< Monitor receiver data register., offset: 0x880 */\r
+ uint8_t RESERVED_4[1912];\r
+ __I uint32_t ID; /**< Peripheral identification register., offset: 0xFFC */\r
} I2C_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CFG - Configuration for shared functions. */\r
/*! @{ */\r
-#define I2C_CFG_MSTEN_MASK (0x1U)\r
-#define I2C_CFG_MSTEN_SHIFT (0U)\r
-/*! MSTEN - Master Enable. When disabled, configurations settings for the Master function are not changed, but the Master function is internally reset.\r
+#define I2C_CFG_MSTEN_MASK (0x1U)\r
+#define I2C_CFG_MSTEN_SHIFT (0U)\r
+/*! MSTEN - Master Enable. When disabled, configurations settings for the Master function are not\r
+ * changed, but the Master function is internally reset.\r
* 0b0..Disabled. The I2C Master function is disabled.\r
* 0b1..Enabled. The I2C Master function is enabled.\r
*/\r
-#define I2C_CFG_MSTEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_MSTEN_SHIFT)) & I2C_CFG_MSTEN_MASK)\r
-#define I2C_CFG_SLVEN_MASK (0x2U)\r
-#define I2C_CFG_SLVEN_SHIFT (1U)\r
-/*! SLVEN - Slave Enable. When disabled, configurations settings for the Slave function are not changed, but the Slave function is internally reset.\r
+#define I2C_CFG_MSTEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_MSTEN_SHIFT)) & I2C_CFG_MSTEN_MASK)\r
+#define I2C_CFG_SLVEN_MASK (0x2U)\r
+#define I2C_CFG_SLVEN_SHIFT (1U)\r
+/*! SLVEN - Slave Enable. When disabled, configurations settings for the Slave function are not\r
+ * changed, but the Slave function is internally reset.\r
* 0b0..Disabled. The I2C slave function is disabled.\r
* 0b1..Enabled. The I2C slave function is enabled.\r
*/\r
-#define I2C_CFG_SLVEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_SLVEN_SHIFT)) & I2C_CFG_SLVEN_MASK)\r
-#define I2C_CFG_MONEN_MASK (0x4U)\r
-#define I2C_CFG_MONEN_SHIFT (2U)\r
-/*! MONEN - Monitor Enable. When disabled, configurations settings for the Monitor function are not changed, but the Monitor function is internally reset.\r
+#define I2C_CFG_SLVEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_SLVEN_SHIFT)) & I2C_CFG_SLVEN_MASK)\r
+#define I2C_CFG_MONEN_MASK (0x4U)\r
+#define I2C_CFG_MONEN_SHIFT (2U)\r
+/*! MONEN - Monitor Enable. When disabled, configurations settings for the Monitor function are not\r
+ * changed, but the Monitor function is internally reset.\r
* 0b0..Disabled. The I2C Monitor function is disabled.\r
* 0b1..Enabled. The I2C Monitor function is enabled.\r
*/\r
-#define I2C_CFG_MONEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_MONEN_SHIFT)) & I2C_CFG_MONEN_MASK)\r
-#define I2C_CFG_TIMEOUTEN_MASK (0x8U)\r
-#define I2C_CFG_TIMEOUTEN_SHIFT (3U)\r
+#define I2C_CFG_MONEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_MONEN_SHIFT)) & I2C_CFG_MONEN_MASK)\r
+#define I2C_CFG_TIMEOUTEN_MASK (0x8U)\r
+#define I2C_CFG_TIMEOUTEN_SHIFT (3U)\r
/*! TIMEOUTEN - I2C bus Time-out Enable. When disabled, the time-out function is internally reset.\r
* 0b0..Disabled. Time-out function is disabled.\r
- * 0b1..Enabled. Time-out function is enabled. Both types of time-out flags will be generated and will cause interrupts if they are enabled. Typically, only one time-out will be used in a system.\r
+ * 0b1..Enabled. Time-out function is enabled. Both types of time-out flags will be generated and will cause\r
+ * interrupts if they are enabled. Typically, only one time-out will be used in a system.\r
*/\r
-#define I2C_CFG_TIMEOUTEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_TIMEOUTEN_SHIFT)) & I2C_CFG_TIMEOUTEN_MASK)\r
-#define I2C_CFG_MONCLKSTR_MASK (0x10U)\r
-#define I2C_CFG_MONCLKSTR_SHIFT (4U)\r
+#define I2C_CFG_TIMEOUTEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_TIMEOUTEN_SHIFT)) & I2C_CFG_TIMEOUTEN_MASK)\r
+#define I2C_CFG_MONCLKSTR_MASK (0x10U)\r
+#define I2C_CFG_MONCLKSTR_SHIFT (4U)\r
/*! MONCLKSTR - Monitor function Clock Stretching.\r
- * 0b0..Disabled. The Monitor function will not perform clock stretching. Software or DMA may not always be able to read data provided by the Monitor function before it is overwritten. This mode may be used when non-invasive monitoring is critical.\r
- * 0b1..Enabled. The Monitor function will perform clock stretching in order to ensure that software or DMA can read all incoming data supplied by the Monitor function.\r
- */\r
-#define I2C_CFG_MONCLKSTR(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_MONCLKSTR_SHIFT)) & I2C_CFG_MONCLKSTR_MASK)\r
-#define I2C_CFG_HSCAPABLE_MASK (0x20U)\r
-#define I2C_CFG_HSCAPABLE_SHIFT (5U)\r
-/*! HSCAPABLE - High-speed mode Capable enable. Since High Speed mode alters the way I2C pins drive and filter, as well as the timing for certain I2C signalling, enabling High-speed mode applies to all functions: Master, Slave, and Monitor.\r
- * 0b0..Fast-mode plus. The I 2C interface will support Standard-mode, Fast-mode, and Fast-mode Plus, to the extent that the pin electronics support these modes. Any changes that need to be made to the pin controls, such as changing the drive strength or filtering, must be made by software via the IOCON register associated with each I2C pin,\r
- * 0b1..High-speed. In addition to Standard-mode, Fast-mode, and Fast-mode Plus, the I 2C interface will support High-speed mode to the extent that the pin electronics support these modes. See Section 25.7.2.2 for more information.\r
- */\r
-#define I2C_CFG_HSCAPABLE(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_HSCAPABLE_SHIFT)) & I2C_CFG_HSCAPABLE_MASK)\r
+ * 0b0..Disabled. The Monitor function will not perform clock stretching. Software or DMA may not always be able\r
+ * to read data provided by the Monitor function before it is overwritten. This mode may be used when\r
+ * non-invasive monitoring is critical.\r
+ * 0b1..Enabled. The Monitor function will perform clock stretching in order to ensure that software or DMA can\r
+ * read all incoming data supplied by the Monitor function.\r
+ */\r
+#define I2C_CFG_MONCLKSTR(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_MONCLKSTR_SHIFT)) & I2C_CFG_MONCLKSTR_MASK)\r
+#define I2C_CFG_HSCAPABLE_MASK (0x20U)\r
+#define I2C_CFG_HSCAPABLE_SHIFT (5U)\r
+/*! HSCAPABLE - High-speed mode Capable enable. Since High Speed mode alters the way I2C pins drive\r
+ * and filter, as well as the timing for certain I2C signalling, enabling High-speed mode applies\r
+ * to all functions: Master, Slave, and Monitor.\r
+ * 0b0..Fast-mode plus. The I 2C interface will support Standard-mode, Fast-mode, and Fast-mode Plus, to the\r
+ * extent that the pin electronics support these modes. Any changes that need to be made to the pin controls,\r
+ * such as changing the drive strength or filtering, must be made by software via the IOCON register associated\r
+ * with each I2C pin,\r
+ * 0b1..High-speed. In addition to Standard-mode, Fast-mode, and Fast-mode Plus, the I 2C interface will support\r
+ * High-speed mode to the extent that the pin electronics support these modes. See Section 25.7.2.2 for more\r
+ * information.\r
+ */\r
+#define I2C_CFG_HSCAPABLE(x) (((uint32_t)(((uint32_t)(x)) << I2C_CFG_HSCAPABLE_SHIFT)) & I2C_CFG_HSCAPABLE_MASK)\r
/*! @} */\r
\r
/*! @name STAT - Status register for Master, Slave, and Monitor functions. */\r
/*! @{ */\r
-#define I2C_STAT_MSTPENDING_MASK (0x1U)\r
-#define I2C_STAT_MSTPENDING_SHIFT (0U)\r
-/*! MSTPENDING - Master Pending. Indicates that the Master is waiting to continue communication on the I2C-bus (pending) or is idle. When the master is pending, the MSTSTATE bits indicate what type of software service if any the master expects. This flag will cause an interrupt when set if, enabled via the INTENSET register. The MSTPENDING flag is not set when the DMA is handling an event (if the MSTDMA bit in the MSTCTL register is set). If the master is in the idle state, and no communication is needed, mask this interrupt.\r
- * 0b0..In progress. Communication is in progress and the Master function is busy and cannot currently accept a command.\r
- * 0b1..Pending. The Master function needs software service or is in the idle state. If the master is not in the idle state, it is waiting to receive or transmit data or the NACK bit.\r
- */\r
-#define I2C_STAT_MSTPENDING(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MSTPENDING_SHIFT)) & I2C_STAT_MSTPENDING_MASK)\r
-#define I2C_STAT_MSTSTATE_MASK (0xEU)\r
-#define I2C_STAT_MSTSTATE_SHIFT (1U)\r
-/*! MSTSTATE - Master State code. The master state code reflects the master state when the MSTPENDING bit is set, that is the master is pending or in the idle state. Each value of this field indicates a specific required service for the Master function. All other values are reserved. See Table 400 for details of state values and appropriate responses.\r
+#define I2C_STAT_MSTPENDING_MASK (0x1U)\r
+#define I2C_STAT_MSTPENDING_SHIFT (0U)\r
+/*! MSTPENDING - Master Pending. Indicates that the Master is waiting to continue communication on\r
+ * the I2C-bus (pending) or is idle. When the master is pending, the MSTSTATE bits indicate what\r
+ * type of software service if any the master expects. This flag will cause an interrupt when set\r
+ * if, enabled via the INTENSET register. The MSTPENDING flag is not set when the DMA is handling\r
+ * an event (if the MSTDMA bit in the MSTCTL register is set). If the master is in the idle\r
+ * state, and no communication is needed, mask this interrupt.\r
+ * 0b0..In progress. Communication is in progress and the Master function is busy and cannot currently accept a\r
+ * command. 0b1..Pending. The Master function needs software service or is in the idle state. If the master is not in\r
+ * the idle state, it is waiting to receive or transmit data or the NACK bit.\r
+ */\r
+#define I2C_STAT_MSTPENDING(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MSTPENDING_SHIFT)) & I2C_STAT_MSTPENDING_MASK)\r
+#define I2C_STAT_MSTSTATE_MASK (0xEU)\r
+#define I2C_STAT_MSTSTATE_SHIFT (1U)\r
+/*! MSTSTATE - Master State code. The master state code reflects the master state when the\r
+ * MSTPENDING bit is set, that is the master is pending or in the idle state. Each value of this field\r
+ * indicates a specific required service for the Master function. All other values are reserved. See\r
+ * Table 400 for details of state values and appropriate responses.\r
* 0b000..Idle. The Master function is available to be used for a new transaction.\r
- * 0b001..Receive ready. Received data available (Master Receiver mode). Address plus Read was previously sent and Acknowledged by slave.\r
- * 0b010..Transmit ready. Data can be transmitted (Master Transmitter mode). Address plus Write was previously sent and Acknowledged by slave.\r
- * 0b011..NACK Address. Slave NACKed address.\r
- * 0b100..NACK Data. Slave NACKed transmitted data.\r
- */\r
-#define I2C_STAT_MSTSTATE(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MSTSTATE_SHIFT)) & I2C_STAT_MSTSTATE_MASK)\r
-#define I2C_STAT_MSTARBLOSS_MASK (0x10U)\r
-#define I2C_STAT_MSTARBLOSS_SHIFT (4U)\r
-/*! MSTARBLOSS - Master Arbitration Loss flag. This flag can be cleared by software writing a 1 to this bit. It is also cleared automatically a 1 is written to MSTCONTINUE.\r
+ * 0b001..Receive ready. Received data available (Master Receiver mode). Address plus Read was previously sent and\r
+ * Acknowledged by slave. 0b010..Transmit ready. Data can be transmitted (Master Transmitter mode). Address plus Write\r
+ * was previously sent and Acknowledged by slave. 0b011..NACK Address. Slave NACKed address. 0b100..NACK Data. Slave\r
+ * NACKed transmitted data.\r
+ */\r
+#define I2C_STAT_MSTSTATE(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MSTSTATE_SHIFT)) & I2C_STAT_MSTSTATE_MASK)\r
+#define I2C_STAT_MSTARBLOSS_MASK (0x10U)\r
+#define I2C_STAT_MSTARBLOSS_SHIFT (4U)\r
+/*! MSTARBLOSS - Master Arbitration Loss flag. This flag can be cleared by software writing a 1 to\r
+ * this bit. It is also cleared automatically a 1 is written to MSTCONTINUE.\r
* 0b0..No Arbitration Loss has occurred.\r
- * 0b1..Arbitration loss. The Master function has experienced an Arbitration Loss. At this point, the Master function has already stopped driving the bus and gone to an idle state. Software can respond by doing nothing, or by sending a Start in order to attempt to gain control of the bus when it next becomes idle.\r
- */\r
-#define I2C_STAT_MSTARBLOSS(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MSTARBLOSS_SHIFT)) & I2C_STAT_MSTARBLOSS_MASK)\r
-#define I2C_STAT_MSTSTSTPERR_MASK (0x40U)\r
-#define I2C_STAT_MSTSTSTPERR_SHIFT (6U)\r
-/*! MSTSTSTPERR - Master Start/Stop Error flag. This flag can be cleared by software writing a 1 to this bit. It is also cleared automatically a 1 is written to MSTCONTINUE.\r
+ * 0b1..Arbitration loss. The Master function has experienced an Arbitration Loss. At this point, the Master\r
+ * function has already stopped driving the bus and gone to an idle state. Software can respond by doing nothing,\r
+ * or by sending a Start in order to attempt to gain control of the bus when it next becomes idle.\r
+ */\r
+#define I2C_STAT_MSTARBLOSS(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MSTARBLOSS_SHIFT)) & I2C_STAT_MSTARBLOSS_MASK)\r
+#define I2C_STAT_MSTSTSTPERR_MASK (0x40U)\r
+#define I2C_STAT_MSTSTSTPERR_SHIFT (6U)\r
+/*! MSTSTSTPERR - Master Start/Stop Error flag. This flag can be cleared by software writing a 1 to\r
+ * this bit. It is also cleared automatically a 1 is written to MSTCONTINUE.\r
* 0b0..No Start/Stop Error has occurred.\r
- * 0b1..The Master function has experienced a Start/Stop Error. A Start or Stop was detected at a time when it is not allowed by the I2C specification. The Master interface has stopped driving the bus and gone to an idle state, no action is required. A request for a Start could be made, or software could attempt to insure that the bus has not stalled.\r
- */\r
-#define I2C_STAT_MSTSTSTPERR(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MSTSTSTPERR_SHIFT)) & I2C_STAT_MSTSTSTPERR_MASK)\r
-#define I2C_STAT_SLVPENDING_MASK (0x100U)\r
-#define I2C_STAT_SLVPENDING_SHIFT (8U)\r
-/*! SLVPENDING - Slave Pending. Indicates that the Slave function is waiting to continue communication on the I2C-bus and needs software service. This flag will cause an interrupt when set if enabled via INTENSET. The SLVPENDING flag is not set when the DMA is handling an event (if the SLVDMA bit in the SLVCTL register is set). The SLVPENDING flag is read-only and is automatically cleared when a 1 is written to the SLVCONTINUE bit in the SLVCTL register. The point in time when SlvPending is set depends on whether the I2C interface is in HSCAPABLE mode. See Section 25.7.2.2.2. When the I2C interface is configured to be HSCAPABLE, HS master codes are detected automatically. Due to the requirements of the HS I2C specification, slave addresses must also be detected automatically, since the address must be acknowledged before the clock can be stretched.\r
+ * 0b1..The Master function has experienced a Start/Stop Error. A Start or Stop was detected at a time when it is\r
+ * not allowed by the I2C specification. The Master interface has stopped driving the bus and gone to an\r
+ * idle state, no action is required. A request for a Start could be made, or software could attempt to insure\r
+ * that the bus has not stalled.\r
+ */\r
+#define I2C_STAT_MSTSTSTPERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MSTSTSTPERR_SHIFT)) & I2C_STAT_MSTSTSTPERR_MASK)\r
+#define I2C_STAT_SLVPENDING_MASK (0x100U)\r
+#define I2C_STAT_SLVPENDING_SHIFT (8U)\r
+/*! SLVPENDING - Slave Pending. Indicates that the Slave function is waiting to continue\r
+ * communication on the I2C-bus and needs software service. This flag will cause an interrupt when set if\r
+ * enabled via INTENSET. The SLVPENDING flag is not set when the DMA is handling an event (if the\r
+ * SLVDMA bit in the SLVCTL register is set). The SLVPENDING flag is read-only and is\r
+ * automatically cleared when a 1 is written to the SLVCONTINUE bit in the SLVCTL register. The point in time\r
+ * when SlvPending is set depends on whether the I2C interface is in HSCAPABLE mode. See Section\r
+ * 25.7.2.2.2. When the I2C interface is configured to be HSCAPABLE, HS master codes are\r
+ * detected automatically. Due to the requirements of the HS I2C specification, slave addresses must\r
+ * also be detected automatically, since the address must be acknowledged before the clock can be\r
+ * stretched.\r
* 0b0..In progress. The Slave function does not currently need service.\r
- * 0b1..Pending. The Slave function needs service. Information on what is needed can be found in the adjacent SLVSTATE field.\r
- */\r
-#define I2C_STAT_SLVPENDING(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVPENDING_SHIFT)) & I2C_STAT_SLVPENDING_MASK)\r
-#define I2C_STAT_SLVSTATE_MASK (0x600U)\r
-#define I2C_STAT_SLVSTATE_SHIFT (9U)\r
-/*! SLVSTATE - Slave State code. Each value of this field indicates a specific required service for the Slave function. All other values are reserved. See Table 401 for state values and actions. note that the occurrence of some states and how they are handled are affected by DMA mode and Automatic Operation modes.\r
- * 0b00..Slave address. Address plus R/W received. At least one of the four slave addresses has been matched by hardware.\r
- * 0b01..Slave receive. Received data is available (Slave Receiver mode).\r
- * 0b10..Slave transmit. Data can be transmitted (Slave Transmitter mode).\r
- */\r
-#define I2C_STAT_SLVSTATE(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVSTATE_SHIFT)) & I2C_STAT_SLVSTATE_MASK)\r
-#define I2C_STAT_SLVNOTSTR_MASK (0x800U)\r
-#define I2C_STAT_SLVNOTSTR_SHIFT (11U)\r
-/*! SLVNOTSTR - Slave Not Stretching. Indicates when the slave function is stretching the I2C clock. This is needed in order to gracefully invoke Deep Sleep or Power-down modes during slave operation. This read-only flag reflects the slave function status in real time.\r
- * 0b0..Stretching. The slave function is currently stretching the I2C bus clock. Deep-Sleep or Power-down mode cannot be entered at this time.\r
- * 0b1..Not stretching. The slave function is not currently stretching the I 2C bus clock. Deep-sleep or Power-down mode could be entered at this time.\r
- */\r
-#define I2C_STAT_SLVNOTSTR(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVNOTSTR_SHIFT)) & I2C_STAT_SLVNOTSTR_MASK)\r
-#define I2C_STAT_SLVIDX_MASK (0x3000U)\r
-#define I2C_STAT_SLVIDX_SHIFT (12U)\r
-/*! SLVIDX - Slave address match Index. This field is valid when the I2C slave function has been selected by receiving an address that matches one of the slave addresses defined by any enabled slave address registers, and provides an identification of the address that was matched. It is possible that more than one address could be matched, but only one match can be reported here.\r
+ * 0b1..Pending. The Slave function needs service. Information on what is needed can be found in the adjacent SLVSTATE\r
+ * field.\r
+ */\r
+#define I2C_STAT_SLVPENDING(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVPENDING_SHIFT)) & I2C_STAT_SLVPENDING_MASK)\r
+#define I2C_STAT_SLVSTATE_MASK (0x600U)\r
+#define I2C_STAT_SLVSTATE_SHIFT (9U)\r
+/*! SLVSTATE - Slave State code. Each value of this field indicates a specific required service for\r
+ * the Slave function. All other values are reserved. See Table 401 for state values and actions.\r
+ * note that the occurrence of some states and how they are handled are affected by DMA mode and\r
+ * Automatic Operation modes.\r
+ * 0b00..Slave address. Address plus R/W received. At least one of the four slave addresses has been matched by\r
+ * hardware. 0b01..Slave receive. Received data is available (Slave Receiver mode). 0b10..Slave transmit. Data can be\r
+ * transmitted (Slave Transmitter mode).\r
+ */\r
+#define I2C_STAT_SLVSTATE(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVSTATE_SHIFT)) & I2C_STAT_SLVSTATE_MASK)\r
+#define I2C_STAT_SLVNOTSTR_MASK (0x800U)\r
+#define I2C_STAT_SLVNOTSTR_SHIFT (11U)\r
+/*! SLVNOTSTR - Slave Not Stretching. Indicates when the slave function is stretching the I2C clock.\r
+ * This is needed in order to gracefully invoke Deep Sleep or Power-down modes during slave\r
+ * operation. This read-only flag reflects the slave function status in real time.\r
+ * 0b0..Stretching. The slave function is currently stretching the I2C bus clock. Deep-Sleep or Power-down mode cannot\r
+ * be entered at this time. 0b1..Not stretching. The slave function is not currently stretching the I 2C bus clock.\r
+ * Deep-sleep or Power-down mode could be entered at this time.\r
+ */\r
+#define I2C_STAT_SLVNOTSTR(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVNOTSTR_SHIFT)) & I2C_STAT_SLVNOTSTR_MASK)\r
+#define I2C_STAT_SLVIDX_MASK (0x3000U)\r
+#define I2C_STAT_SLVIDX_SHIFT (12U)\r
+/*! SLVIDX - Slave address match Index. This field is valid when the I2C slave function has been\r
+ * selected by receiving an address that matches one of the slave addresses defined by any enabled\r
+ * slave address registers, and provides an identification of the address that was matched. It is\r
+ * possible that more than one address could be matched, but only one match can be reported here.\r
* 0b00..Address 0. Slave address 0 was matched.\r
* 0b01..Address 1. Slave address 1 was matched.\r
* 0b10..Address 2. Slave address 2 was matched.\r
* 0b11..Address 3. Slave address 3 was matched.\r
*/\r
-#define I2C_STAT_SLVIDX(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVIDX_SHIFT)) & I2C_STAT_SLVIDX_MASK)\r
-#define I2C_STAT_SLVSEL_MASK (0x4000U)\r
-#define I2C_STAT_SLVSEL_SHIFT (14U)\r
-/*! SLVSEL - Slave selected flag. SLVSEL is set after an address match when software tells the Slave function to acknowledge the address, or when the address has been automatically acknowledged. It is cleared when another address cycle presents an address that does not match an enabled address on the Slave function, when slave software decides to NACK a matched address, when there is a Stop detected on the bus, when the master NACKs slave data, and in some combinations of Automatic Operation. SLVSEL is not cleared if software NACKs data.\r
+#define I2C_STAT_SLVIDX(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVIDX_SHIFT)) & I2C_STAT_SLVIDX_MASK)\r
+#define I2C_STAT_SLVSEL_MASK (0x4000U)\r
+#define I2C_STAT_SLVSEL_SHIFT (14U)\r
+/*! SLVSEL - Slave selected flag. SLVSEL is set after an address match when software tells the Slave\r
+ * function to acknowledge the address, or when the address has been automatically acknowledged.\r
+ * It is cleared when another address cycle presents an address that does not match an enabled\r
+ * address on the Slave function, when slave software decides to NACK a matched address, when\r
+ * there is a Stop detected on the bus, when the master NACKs slave data, and in some combinations of\r
+ * Automatic Operation. SLVSEL is not cleared if software NACKs data.\r
* 0b0..Not selected. The Slave function is not currently selected.\r
* 0b1..Selected. The Slave function is currently selected.\r
*/\r
-#define I2C_STAT_SLVSEL(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVSEL_SHIFT)) & I2C_STAT_SLVSEL_MASK)\r
-#define I2C_STAT_SLVDESEL_MASK (0x8000U)\r
-#define I2C_STAT_SLVDESEL_SHIFT (15U)\r
-/*! SLVDESEL - Slave Deselected flag. This flag will cause an interrupt when set if enabled via INTENSET. This flag can be cleared by writing a 1 to this bit.\r
- * 0b0..Not deselected. The Slave function has not become deselected. This does not mean that it is currently selected. That information can be found in the SLVSEL flag.\r
- * 0b1..Deselected. The Slave function has become deselected. This is specifically caused by the SLVSEL flag changing from 1 to 0. See the description of SLVSEL for details on when that event occurs.\r
- */\r
-#define I2C_STAT_SLVDESEL(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVDESEL_SHIFT)) & I2C_STAT_SLVDESEL_MASK)\r
-#define I2C_STAT_MONRDY_MASK (0x10000U)\r
-#define I2C_STAT_MONRDY_SHIFT (16U)\r
+#define I2C_STAT_SLVSEL(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVSEL_SHIFT)) & I2C_STAT_SLVSEL_MASK)\r
+#define I2C_STAT_SLVDESEL_MASK (0x8000U)\r
+#define I2C_STAT_SLVDESEL_SHIFT (15U)\r
+/*! SLVDESEL - Slave Deselected flag. This flag will cause an interrupt when set if enabled via\r
+ * INTENSET. This flag can be cleared by writing a 1 to this bit.\r
+ * 0b0..Not deselected. The Slave function has not become deselected. This does not mean that it is currently\r
+ * selected. That information can be found in the SLVSEL flag.\r
+ * 0b1..Deselected. The Slave function has become deselected. This is specifically caused by the SLVSEL flag\r
+ * changing from 1 to 0. See the description of SLVSEL for details on when that event occurs.\r
+ */\r
+#define I2C_STAT_SLVDESEL(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SLVDESEL_SHIFT)) & I2C_STAT_SLVDESEL_MASK)\r
+#define I2C_STAT_MONRDY_MASK (0x10000U)\r
+#define I2C_STAT_MONRDY_SHIFT (16U)\r
/*! MONRDY - Monitor Ready. This flag is cleared when the MONRXDAT register is read.\r
* 0b0..No data. The Monitor function does not currently have data available.\r
* 0b1..Data waiting. The Monitor function has data waiting to be read.\r
*/\r
-#define I2C_STAT_MONRDY(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MONRDY_SHIFT)) & I2C_STAT_MONRDY_MASK)\r
-#define I2C_STAT_MONOV_MASK (0x20000U)\r
-#define I2C_STAT_MONOV_SHIFT (17U)\r
+#define I2C_STAT_MONRDY(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MONRDY_SHIFT)) & I2C_STAT_MONRDY_MASK)\r
+#define I2C_STAT_MONOV_MASK (0x20000U)\r
+#define I2C_STAT_MONOV_SHIFT (17U)\r
/*! MONOV - Monitor Overflow flag.\r
* 0b0..No overrun. Monitor data has not overrun.\r
- * 0b1..Overrun. A Monitor data overrun has occurred. This can only happen when Monitor clock stretching not enabled via the MONCLKSTR bit in the CFG register. Writing 1 to this bit clears the flag.\r
- */\r
-#define I2C_STAT_MONOV(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MONOV_SHIFT)) & I2C_STAT_MONOV_MASK)\r
-#define I2C_STAT_MONACTIVE_MASK (0x40000U)\r
-#define I2C_STAT_MONACTIVE_SHIFT (18U)\r
-/*! MONACTIVE - Monitor Active flag. Indicates when the Monitor function considers the I 2C bus to be active. Active is defined here as when some Master is on the bus: a bus Start has occurred more recently than a bus Stop.\r
+ * 0b1..Overrun. A Monitor data overrun has occurred. This can only happen when Monitor clock stretching not\r
+ * enabled via the MONCLKSTR bit in the CFG register. Writing 1 to this bit clears the flag.\r
+ */\r
+#define I2C_STAT_MONOV(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MONOV_SHIFT)) & I2C_STAT_MONOV_MASK)\r
+#define I2C_STAT_MONACTIVE_MASK (0x40000U)\r
+#define I2C_STAT_MONACTIVE_SHIFT (18U)\r
+/*! MONACTIVE - Monitor Active flag. Indicates when the Monitor function considers the I 2C bus to\r
+ * be active. Active is defined here as when some Master is on the bus: a bus Start has occurred\r
+ * more recently than a bus Stop.\r
* 0b0..Inactive. The Monitor function considers the I2C bus to be inactive.\r
* 0b1..Active. The Monitor function considers the I2C bus to be active.\r
*/\r
-#define I2C_STAT_MONACTIVE(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MONACTIVE_SHIFT)) & I2C_STAT_MONACTIVE_MASK)\r
-#define I2C_STAT_MONIDLE_MASK (0x80000U)\r
-#define I2C_STAT_MONIDLE_SHIFT (19U)\r
-/*! MONIDLE - Monitor Idle flag. This flag is set when the Monitor function sees the I2C bus change from active to inactive. This can be used by software to decide when to process data accumulated by the Monitor function. This flag will cause an interrupt when set if enabled via the INTENSET register. The flag can be cleared by writing a 1 to this bit.\r
+#define I2C_STAT_MONACTIVE(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MONACTIVE_SHIFT)) & I2C_STAT_MONACTIVE_MASK)\r
+#define I2C_STAT_MONIDLE_MASK (0x80000U)\r
+#define I2C_STAT_MONIDLE_SHIFT (19U)\r
+/*! MONIDLE - Monitor Idle flag. This flag is set when the Monitor function sees the I2C bus change\r
+ * from active to inactive. This can be used by software to decide when to process data\r
+ * accumulated by the Monitor function. This flag will cause an interrupt when set if enabled via the\r
+ * INTENSET register. The flag can be cleared by writing a 1 to this bit.\r
* 0b0..Not idle. The I2C bus is not idle, or this flag has been cleared by software.\r
* 0b1..Idle. The I2C bus has gone idle at least once since the last time this flag was cleared by software.\r
*/\r
-#define I2C_STAT_MONIDLE(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MONIDLE_SHIFT)) & I2C_STAT_MONIDLE_MASK)\r
-#define I2C_STAT_EVENTTIMEOUT_MASK (0x1000000U)\r
-#define I2C_STAT_EVENTTIMEOUT_SHIFT (24U)\r
-/*! EVENTTIMEOUT - Event Time-out Interrupt flag. Indicates when the time between events has been longer than the time specified by the TIMEOUT register. Events include Start, Stop, and clock edges. The flag is cleared by writing a 1 to this bit. No time-out is created when the I2C-bus is idle.\r
+#define I2C_STAT_MONIDLE(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_MONIDLE_SHIFT)) & I2C_STAT_MONIDLE_MASK)\r
+#define I2C_STAT_EVENTTIMEOUT_MASK (0x1000000U)\r
+#define I2C_STAT_EVENTTIMEOUT_SHIFT (24U)\r
+/*! EVENTTIMEOUT - Event Time-out Interrupt flag. Indicates when the time between events has been\r
+ * longer than the time specified by the TIMEOUT register. Events include Start, Stop, and clock\r
+ * edges. The flag is cleared by writing a 1 to this bit. No time-out is created when the I2C-bus\r
+ * is idle.\r
* 0b0..No time-out. I2C bus events have not caused a time-out.\r
- * 0b1..Event time-out. The time between I2C bus events has been longer than the time specified by the TIMEOUT register.\r
- */\r
-#define I2C_STAT_EVENTTIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_EVENTTIMEOUT_SHIFT)) & I2C_STAT_EVENTTIMEOUT_MASK)\r
-#define I2C_STAT_SCLTIMEOUT_MASK (0x2000000U)\r
-#define I2C_STAT_SCLTIMEOUT_SHIFT (25U)\r
-/*! SCLTIMEOUT - SCL Time-out Interrupt flag. Indicates when SCL has remained low longer than the time specific by the TIMEOUT register. The flag is cleared by writing a 1 to this bit.\r
+ * 0b1..Event time-out. The time between I2C bus events has been longer than the time specified by the TIMEOUT\r
+ * register.\r
+ */\r
+#define I2C_STAT_EVENTTIMEOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_STAT_EVENTTIMEOUT_SHIFT)) & I2C_STAT_EVENTTIMEOUT_MASK)\r
+#define I2C_STAT_SCLTIMEOUT_MASK (0x2000000U)\r
+#define I2C_STAT_SCLTIMEOUT_SHIFT (25U)\r
+/*! SCLTIMEOUT - SCL Time-out Interrupt flag. Indicates when SCL has remained low longer than the\r
+ * time specific by the TIMEOUT register. The flag is cleared by writing a 1 to this bit.\r
* 0b0..No time-out. SCL low time has not caused a time-out.\r
* 0b1..Time-out. SCL low time has caused a time-out.\r
*/\r
-#define I2C_STAT_SCLTIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SCLTIMEOUT_SHIFT)) & I2C_STAT_SCLTIMEOUT_MASK)\r
+#define I2C_STAT_SCLTIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << I2C_STAT_SCLTIMEOUT_SHIFT)) & I2C_STAT_SCLTIMEOUT_MASK)\r
/*! @} */\r
\r
/*! @name INTENSET - Interrupt Enable Set and read register. */\r
/*! @{ */\r
-#define I2C_INTENSET_MSTPENDINGEN_MASK (0x1U)\r
-#define I2C_INTENSET_MSTPENDINGEN_SHIFT (0U)\r
+#define I2C_INTENSET_MSTPENDINGEN_MASK (0x1U)\r
+#define I2C_INTENSET_MSTPENDINGEN_SHIFT (0U)\r
/*! MSTPENDINGEN - Master Pending interrupt Enable.\r
* 0b0..Disabled. The MstPending interrupt is disabled.\r
* 0b1..Enabled. The MstPending interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_MSTPENDINGEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MSTPENDINGEN_SHIFT)) & I2C_INTENSET_MSTPENDINGEN_MASK)\r
-#define I2C_INTENSET_MSTARBLOSSEN_MASK (0x10U)\r
-#define I2C_INTENSET_MSTARBLOSSEN_SHIFT (4U)\r
+#define I2C_INTENSET_MSTPENDINGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MSTPENDINGEN_SHIFT)) & I2C_INTENSET_MSTPENDINGEN_MASK)\r
+#define I2C_INTENSET_MSTARBLOSSEN_MASK (0x10U)\r
+#define I2C_INTENSET_MSTARBLOSSEN_SHIFT (4U)\r
/*! MSTARBLOSSEN - Master Arbitration Loss interrupt Enable.\r
* 0b0..Disabled. The MstArbLoss interrupt is disabled.\r
* 0b1..Enabled. The MstArbLoss interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_MSTARBLOSSEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MSTARBLOSSEN_SHIFT)) & I2C_INTENSET_MSTARBLOSSEN_MASK)\r
-#define I2C_INTENSET_MSTSTSTPERREN_MASK (0x40U)\r
-#define I2C_INTENSET_MSTSTSTPERREN_SHIFT (6U)\r
+#define I2C_INTENSET_MSTARBLOSSEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MSTARBLOSSEN_SHIFT)) & I2C_INTENSET_MSTARBLOSSEN_MASK)\r
+#define I2C_INTENSET_MSTSTSTPERREN_MASK (0x40U)\r
+#define I2C_INTENSET_MSTSTSTPERREN_SHIFT (6U)\r
/*! MSTSTSTPERREN - Master Start/Stop Error interrupt Enable.\r
* 0b0..Disabled. The MstStStpErr interrupt is disabled.\r
* 0b1..Enabled. The MstStStpErr interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_MSTSTSTPERREN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MSTSTSTPERREN_SHIFT)) & I2C_INTENSET_MSTSTSTPERREN_MASK)\r
-#define I2C_INTENSET_SLVPENDINGEN_MASK (0x100U)\r
-#define I2C_INTENSET_SLVPENDINGEN_SHIFT (8U)\r
+#define I2C_INTENSET_MSTSTSTPERREN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MSTSTSTPERREN_SHIFT)) & I2C_INTENSET_MSTSTSTPERREN_MASK)\r
+#define I2C_INTENSET_SLVPENDINGEN_MASK (0x100U)\r
+#define I2C_INTENSET_SLVPENDINGEN_SHIFT (8U)\r
/*! SLVPENDINGEN - Slave Pending interrupt Enable.\r
* 0b0..Disabled. The SlvPending interrupt is disabled.\r
* 0b1..Enabled. The SlvPending interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_SLVPENDINGEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_SLVPENDINGEN_SHIFT)) & I2C_INTENSET_SLVPENDINGEN_MASK)\r
-#define I2C_INTENSET_SLVNOTSTREN_MASK (0x800U)\r
-#define I2C_INTENSET_SLVNOTSTREN_SHIFT (11U)\r
+#define I2C_INTENSET_SLVPENDINGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_SLVPENDINGEN_SHIFT)) & I2C_INTENSET_SLVPENDINGEN_MASK)\r
+#define I2C_INTENSET_SLVNOTSTREN_MASK (0x800U)\r
+#define I2C_INTENSET_SLVNOTSTREN_SHIFT (11U)\r
/*! SLVNOTSTREN - Slave Not Stretching interrupt Enable.\r
* 0b0..Disabled. The SlvNotStr interrupt is disabled.\r
* 0b1..Enabled. The SlvNotStr interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_SLVNOTSTREN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_SLVNOTSTREN_SHIFT)) & I2C_INTENSET_SLVNOTSTREN_MASK)\r
-#define I2C_INTENSET_SLVDESELEN_MASK (0x8000U)\r
-#define I2C_INTENSET_SLVDESELEN_SHIFT (15U)\r
+#define I2C_INTENSET_SLVNOTSTREN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_SLVNOTSTREN_SHIFT)) & I2C_INTENSET_SLVNOTSTREN_MASK)\r
+#define I2C_INTENSET_SLVDESELEN_MASK (0x8000U)\r
+#define I2C_INTENSET_SLVDESELEN_SHIFT (15U)\r
/*! SLVDESELEN - Slave Deselect interrupt Enable.\r
* 0b0..Disabled. The SlvDeSel interrupt is disabled.\r
* 0b1..Enabled. The SlvDeSel interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_SLVDESELEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_SLVDESELEN_SHIFT)) & I2C_INTENSET_SLVDESELEN_MASK)\r
-#define I2C_INTENSET_MONRDYEN_MASK (0x10000U)\r
-#define I2C_INTENSET_MONRDYEN_SHIFT (16U)\r
+#define I2C_INTENSET_SLVDESELEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_SLVDESELEN_SHIFT)) & I2C_INTENSET_SLVDESELEN_MASK)\r
+#define I2C_INTENSET_MONRDYEN_MASK (0x10000U)\r
+#define I2C_INTENSET_MONRDYEN_SHIFT (16U)\r
/*! MONRDYEN - Monitor data Ready interrupt Enable.\r
* 0b0..Disabled. The MonRdy interrupt is disabled.\r
* 0b1..Enabled. The MonRdy interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_MONRDYEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MONRDYEN_SHIFT)) & I2C_INTENSET_MONRDYEN_MASK)\r
-#define I2C_INTENSET_MONOVEN_MASK (0x20000U)\r
-#define I2C_INTENSET_MONOVEN_SHIFT (17U)\r
+#define I2C_INTENSET_MONRDYEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MONRDYEN_SHIFT)) & I2C_INTENSET_MONRDYEN_MASK)\r
+#define I2C_INTENSET_MONOVEN_MASK (0x20000U)\r
+#define I2C_INTENSET_MONOVEN_SHIFT (17U)\r
/*! MONOVEN - Monitor Overrun interrupt Enable.\r
* 0b0..Disabled. The MonOv interrupt is disabled.\r
* 0b1..Enabled. The MonOv interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_MONOVEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MONOVEN_SHIFT)) & I2C_INTENSET_MONOVEN_MASK)\r
-#define I2C_INTENSET_MONIDLEEN_MASK (0x80000U)\r
-#define I2C_INTENSET_MONIDLEEN_SHIFT (19U)\r
+#define I2C_INTENSET_MONOVEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MONOVEN_SHIFT)) & I2C_INTENSET_MONOVEN_MASK)\r
+#define I2C_INTENSET_MONIDLEEN_MASK (0x80000U)\r
+#define I2C_INTENSET_MONIDLEEN_SHIFT (19U)\r
/*! MONIDLEEN - Monitor Idle interrupt Enable.\r
* 0b0..Disabled. The MonIdle interrupt is disabled.\r
* 0b1..Enabled. The MonIdle interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_MONIDLEEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MONIDLEEN_SHIFT)) & I2C_INTENSET_MONIDLEEN_MASK)\r
-#define I2C_INTENSET_EVENTTIMEOUTEN_MASK (0x1000000U)\r
-#define I2C_INTENSET_EVENTTIMEOUTEN_SHIFT (24U)\r
+#define I2C_INTENSET_MONIDLEEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_MONIDLEEN_SHIFT)) & I2C_INTENSET_MONIDLEEN_MASK)\r
+#define I2C_INTENSET_EVENTTIMEOUTEN_MASK (0x1000000U)\r
+#define I2C_INTENSET_EVENTTIMEOUTEN_SHIFT (24U)\r
/*! EVENTTIMEOUTEN - Event time-out interrupt Enable.\r
* 0b0..Disabled. The Event time-out interrupt is disabled.\r
* 0b1..Enabled. The Event time-out interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_EVENTTIMEOUTEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_EVENTTIMEOUTEN_SHIFT)) & I2C_INTENSET_EVENTTIMEOUTEN_MASK)\r
-#define I2C_INTENSET_SCLTIMEOUTEN_MASK (0x2000000U)\r
-#define I2C_INTENSET_SCLTIMEOUTEN_SHIFT (25U)\r
+#define I2C_INTENSET_EVENTTIMEOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_EVENTTIMEOUTEN_SHIFT)) & I2C_INTENSET_EVENTTIMEOUTEN_MASK)\r
+#define I2C_INTENSET_SCLTIMEOUTEN_MASK (0x2000000U)\r
+#define I2C_INTENSET_SCLTIMEOUTEN_SHIFT (25U)\r
/*! SCLTIMEOUTEN - SCL time-out interrupt Enable.\r
* 0b0..Disabled. The SCL time-out interrupt is disabled.\r
* 0b1..Enabled. The SCL time-out interrupt is enabled.\r
*/\r
-#define I2C_INTENSET_SCLTIMEOUTEN(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_SCLTIMEOUTEN_SHIFT)) & I2C_INTENSET_SCLTIMEOUTEN_MASK)\r
+#define I2C_INTENSET_SCLTIMEOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENSET_SCLTIMEOUTEN_SHIFT)) & I2C_INTENSET_SCLTIMEOUTEN_MASK)\r
/*! @} */\r
\r
/*! @name INTENCLR - Interrupt Enable Clear register. */\r
/*! @{ */\r
-#define I2C_INTENCLR_MSTPENDINGCLR_MASK (0x1U)\r
-#define I2C_INTENCLR_MSTPENDINGCLR_SHIFT (0U)\r
-#define I2C_INTENCLR_MSTPENDINGCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MSTPENDINGCLR_SHIFT)) & I2C_INTENCLR_MSTPENDINGCLR_MASK)\r
-#define I2C_INTENCLR_MSTARBLOSSCLR_MASK (0x10U)\r
-#define I2C_INTENCLR_MSTARBLOSSCLR_SHIFT (4U)\r
-#define I2C_INTENCLR_MSTARBLOSSCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MSTARBLOSSCLR_SHIFT)) & I2C_INTENCLR_MSTARBLOSSCLR_MASK)\r
-#define I2C_INTENCLR_MSTSTSTPERRCLR_MASK (0x40U)\r
-#define I2C_INTENCLR_MSTSTSTPERRCLR_SHIFT (6U)\r
-#define I2C_INTENCLR_MSTSTSTPERRCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MSTSTSTPERRCLR_SHIFT)) & I2C_INTENCLR_MSTSTSTPERRCLR_MASK)\r
-#define I2C_INTENCLR_SLVPENDINGCLR_MASK (0x100U)\r
-#define I2C_INTENCLR_SLVPENDINGCLR_SHIFT (8U)\r
-#define I2C_INTENCLR_SLVPENDINGCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_SLVPENDINGCLR_SHIFT)) & I2C_INTENCLR_SLVPENDINGCLR_MASK)\r
-#define I2C_INTENCLR_SLVNOTSTRCLR_MASK (0x800U)\r
-#define I2C_INTENCLR_SLVNOTSTRCLR_SHIFT (11U)\r
-#define I2C_INTENCLR_SLVNOTSTRCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_SLVNOTSTRCLR_SHIFT)) & I2C_INTENCLR_SLVNOTSTRCLR_MASK)\r
-#define I2C_INTENCLR_SLVDESELCLR_MASK (0x8000U)\r
-#define I2C_INTENCLR_SLVDESELCLR_SHIFT (15U)\r
-#define I2C_INTENCLR_SLVDESELCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_SLVDESELCLR_SHIFT)) & I2C_INTENCLR_SLVDESELCLR_MASK)\r
-#define I2C_INTENCLR_MONRDYCLR_MASK (0x10000U)\r
-#define I2C_INTENCLR_MONRDYCLR_SHIFT (16U)\r
-#define I2C_INTENCLR_MONRDYCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MONRDYCLR_SHIFT)) & I2C_INTENCLR_MONRDYCLR_MASK)\r
-#define I2C_INTENCLR_MONOVCLR_MASK (0x20000U)\r
-#define I2C_INTENCLR_MONOVCLR_SHIFT (17U)\r
-#define I2C_INTENCLR_MONOVCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MONOVCLR_SHIFT)) & I2C_INTENCLR_MONOVCLR_MASK)\r
-#define I2C_INTENCLR_MONIDLECLR_MASK (0x80000U)\r
-#define I2C_INTENCLR_MONIDLECLR_SHIFT (19U)\r
-#define I2C_INTENCLR_MONIDLECLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MONIDLECLR_SHIFT)) & I2C_INTENCLR_MONIDLECLR_MASK)\r
-#define I2C_INTENCLR_EVENTTIMEOUTCLR_MASK (0x1000000U)\r
-#define I2C_INTENCLR_EVENTTIMEOUTCLR_SHIFT (24U)\r
-#define I2C_INTENCLR_EVENTTIMEOUTCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_EVENTTIMEOUTCLR_SHIFT)) & I2C_INTENCLR_EVENTTIMEOUTCLR_MASK)\r
-#define I2C_INTENCLR_SCLTIMEOUTCLR_MASK (0x2000000U)\r
-#define I2C_INTENCLR_SCLTIMEOUTCLR_SHIFT (25U)\r
-#define I2C_INTENCLR_SCLTIMEOUTCLR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_SCLTIMEOUTCLR_SHIFT)) & I2C_INTENCLR_SCLTIMEOUTCLR_MASK)\r
+#define I2C_INTENCLR_MSTPENDINGCLR_MASK (0x1U)\r
+#define I2C_INTENCLR_MSTPENDINGCLR_SHIFT (0U)\r
+/*! MSTPENDINGCLR - Master Pending interrupt clear. Writing 1 to this bit clears the corresponding\r
+ * bit in the INTENSET register if implemented.\r
+ */\r
+#define I2C_INTENCLR_MSTPENDINGCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MSTPENDINGCLR_SHIFT)) & I2C_INTENCLR_MSTPENDINGCLR_MASK)\r
+#define I2C_INTENCLR_MSTARBLOSSCLR_MASK (0x10U)\r
+#define I2C_INTENCLR_MSTARBLOSSCLR_SHIFT (4U)\r
+/*! MSTARBLOSSCLR - Master Arbitration Loss interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_MSTARBLOSSCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MSTARBLOSSCLR_SHIFT)) & I2C_INTENCLR_MSTARBLOSSCLR_MASK)\r
+#define I2C_INTENCLR_MSTSTSTPERRCLR_MASK (0x40U)\r
+#define I2C_INTENCLR_MSTSTSTPERRCLR_SHIFT (6U)\r
+/*! MSTSTSTPERRCLR - Master Start/Stop Error interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_MSTSTSTPERRCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MSTSTSTPERRCLR_SHIFT)) & I2C_INTENCLR_MSTSTSTPERRCLR_MASK)\r
+#define I2C_INTENCLR_SLVPENDINGCLR_MASK (0x100U)\r
+#define I2C_INTENCLR_SLVPENDINGCLR_SHIFT (8U)\r
+/*! SLVPENDINGCLR - Slave Pending interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_SLVPENDINGCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_SLVPENDINGCLR_SHIFT)) & I2C_INTENCLR_SLVPENDINGCLR_MASK)\r
+#define I2C_INTENCLR_SLVNOTSTRCLR_MASK (0x800U)\r
+#define I2C_INTENCLR_SLVNOTSTRCLR_SHIFT (11U)\r
+/*! SLVNOTSTRCLR - Slave Not Stretching interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_SLVNOTSTRCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_SLVNOTSTRCLR_SHIFT)) & I2C_INTENCLR_SLVNOTSTRCLR_MASK)\r
+#define I2C_INTENCLR_SLVDESELCLR_MASK (0x8000U)\r
+#define I2C_INTENCLR_SLVDESELCLR_SHIFT (15U)\r
+/*! SLVDESELCLR - Slave Deselect interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_SLVDESELCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_SLVDESELCLR_SHIFT)) & I2C_INTENCLR_SLVDESELCLR_MASK)\r
+#define I2C_INTENCLR_MONRDYCLR_MASK (0x10000U)\r
+#define I2C_INTENCLR_MONRDYCLR_SHIFT (16U)\r
+/*! MONRDYCLR - Monitor data Ready interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_MONRDYCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MONRDYCLR_SHIFT)) & I2C_INTENCLR_MONRDYCLR_MASK)\r
+#define I2C_INTENCLR_MONOVCLR_MASK (0x20000U)\r
+#define I2C_INTENCLR_MONOVCLR_SHIFT (17U)\r
+/*! MONOVCLR - Monitor Overrun interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_MONOVCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MONOVCLR_SHIFT)) & I2C_INTENCLR_MONOVCLR_MASK)\r
+#define I2C_INTENCLR_MONIDLECLR_MASK (0x80000U)\r
+#define I2C_INTENCLR_MONIDLECLR_SHIFT (19U)\r
+/*! MONIDLECLR - Monitor Idle interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_MONIDLECLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_MONIDLECLR_SHIFT)) & I2C_INTENCLR_MONIDLECLR_MASK)\r
+#define I2C_INTENCLR_EVENTTIMEOUTCLR_MASK (0x1000000U)\r
+#define I2C_INTENCLR_EVENTTIMEOUTCLR_SHIFT (24U)\r
+/*! EVENTTIMEOUTCLR - Event time-out interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_EVENTTIMEOUTCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_EVENTTIMEOUTCLR_SHIFT)) & I2C_INTENCLR_EVENTTIMEOUTCLR_MASK)\r
+#define I2C_INTENCLR_SCLTIMEOUTCLR_MASK (0x2000000U)\r
+#define I2C_INTENCLR_SCLTIMEOUTCLR_SHIFT (25U)\r
+/*! SCLTIMEOUTCLR - SCL time-out interrupt clear.\r
+ */\r
+#define I2C_INTENCLR_SCLTIMEOUTCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTENCLR_SCLTIMEOUTCLR_SHIFT)) & I2C_INTENCLR_SCLTIMEOUTCLR_MASK)\r
/*! @} */\r
\r
/*! @name TIMEOUT - Time-out value register. */\r
/*! @{ */\r
-#define I2C_TIMEOUT_TOMIN_MASK (0xFU)\r
-#define I2C_TIMEOUT_TOMIN_SHIFT (0U)\r
-#define I2C_TIMEOUT_TOMIN(x) (((uint32_t)(((uint32_t)(x)) << I2C_TIMEOUT_TOMIN_SHIFT)) & I2C_TIMEOUT_TOMIN_MASK)\r
-#define I2C_TIMEOUT_TO_MASK (0xFFF0U)\r
-#define I2C_TIMEOUT_TO_SHIFT (4U)\r
-#define I2C_TIMEOUT_TO(x) (((uint32_t)(((uint32_t)(x)) << I2C_TIMEOUT_TO_SHIFT)) & I2C_TIMEOUT_TO_MASK)\r
+#define I2C_TIMEOUT_TOMIN_MASK (0xFU)\r
+#define I2C_TIMEOUT_TOMIN_SHIFT (0U)\r
+/*! TOMIN - Time-out time value, bottom four bits. These are hard-wired to 0xF. This gives a minimum\r
+ * time-out of 16 I2C function clocks and also a time-out resolution of 16 I2C function clocks.\r
+ */\r
+#define I2C_TIMEOUT_TOMIN(x) (((uint32_t)(((uint32_t)(x)) << I2C_TIMEOUT_TOMIN_SHIFT)) & I2C_TIMEOUT_TOMIN_MASK)\r
+#define I2C_TIMEOUT_TO_MASK (0xFFF0U)\r
+#define I2C_TIMEOUT_TO_SHIFT (4U)\r
+/*! TO - Time-out time value. Specifies the time-out interval value in increments of 16 I 2C\r
+ * function clocks, as defined by the CLKDIV register. To change this value while I2C is in operation,\r
+ * disable all time-outs, write a new value to TIMEOUT, then re-enable time-outs. 0x000 = A\r
+ * time-out will occur after 16 counts of the I2C function clock. 0x001 = A time-out will occur after\r
+ * 32 counts of the I2C function clock. 0xFFF = A time-out will occur after 65,536 counts of the\r
+ * I2C function clock.\r
+ */\r
+#define I2C_TIMEOUT_TO(x) (((uint32_t)(((uint32_t)(x)) << I2C_TIMEOUT_TO_SHIFT)) & I2C_TIMEOUT_TO_MASK)\r
/*! @} */\r
\r
-/*! @name CLKDIV - Clock pre-divider for the entire I2C interface. This determines what time increments are used for the MSTTIME register, and controls some timing of the Slave function. */\r
+/*! @name CLKDIV - Clock pre-divider for the entire I2C interface. This determines what time increments are used for the\r
+ * MSTTIME register, and controls some timing of the Slave function. */\r
/*! @{ */\r
-#define I2C_CLKDIV_DIVVAL_MASK (0xFFFFU)\r
-#define I2C_CLKDIV_DIVVAL_SHIFT (0U)\r
-#define I2C_CLKDIV_DIVVAL(x) (((uint32_t)(((uint32_t)(x)) << I2C_CLKDIV_DIVVAL_SHIFT)) & I2C_CLKDIV_DIVVAL_MASK)\r
+#define I2C_CLKDIV_DIVVAL_MASK (0xFFFFU)\r
+#define I2C_CLKDIV_DIVVAL_SHIFT (0U)\r
+/*! DIVVAL - This field controls how the Flexcomm clock (FCLK) is used by the I2C functions that\r
+ * need an internal clock in order to operate. 0x0000 = FCLK is used directly by the I2C. 0x0001 =\r
+ * FCLK is divided by 2 before use. 0x0002 = FCLK is divided by 3 before use. 0xFFFF = FCLK is\r
+ * divided by 65,536 before use.\r
+ */\r
+#define I2C_CLKDIV_DIVVAL(x) (((uint32_t)(((uint32_t)(x)) << I2C_CLKDIV_DIVVAL_SHIFT)) & I2C_CLKDIV_DIVVAL_MASK)\r
/*! @} */\r
\r
/*! @name INTSTAT - Interrupt Status register for Master, Slave, and Monitor functions. */\r
/*! @{ */\r
-#define I2C_INTSTAT_MSTPENDING_MASK (0x1U)\r
-#define I2C_INTSTAT_MSTPENDING_SHIFT (0U)\r
-#define I2C_INTSTAT_MSTPENDING(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MSTPENDING_SHIFT)) & I2C_INTSTAT_MSTPENDING_MASK)\r
-#define I2C_INTSTAT_MSTARBLOSS_MASK (0x10U)\r
-#define I2C_INTSTAT_MSTARBLOSS_SHIFT (4U)\r
-#define I2C_INTSTAT_MSTARBLOSS(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MSTARBLOSS_SHIFT)) & I2C_INTSTAT_MSTARBLOSS_MASK)\r
-#define I2C_INTSTAT_MSTSTSTPERR_MASK (0x40U)\r
-#define I2C_INTSTAT_MSTSTSTPERR_SHIFT (6U)\r
-#define I2C_INTSTAT_MSTSTSTPERR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MSTSTSTPERR_SHIFT)) & I2C_INTSTAT_MSTSTSTPERR_MASK)\r
-#define I2C_INTSTAT_SLVPENDING_MASK (0x100U)\r
-#define I2C_INTSTAT_SLVPENDING_SHIFT (8U)\r
-#define I2C_INTSTAT_SLVPENDING(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_SLVPENDING_SHIFT)) & I2C_INTSTAT_SLVPENDING_MASK)\r
-#define I2C_INTSTAT_SLVNOTSTR_MASK (0x800U)\r
-#define I2C_INTSTAT_SLVNOTSTR_SHIFT (11U)\r
-#define I2C_INTSTAT_SLVNOTSTR(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_SLVNOTSTR_SHIFT)) & I2C_INTSTAT_SLVNOTSTR_MASK)\r
-#define I2C_INTSTAT_SLVDESEL_MASK (0x8000U)\r
-#define I2C_INTSTAT_SLVDESEL_SHIFT (15U)\r
-#define I2C_INTSTAT_SLVDESEL(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_SLVDESEL_SHIFT)) & I2C_INTSTAT_SLVDESEL_MASK)\r
-#define I2C_INTSTAT_MONRDY_MASK (0x10000U)\r
-#define I2C_INTSTAT_MONRDY_SHIFT (16U)\r
-#define I2C_INTSTAT_MONRDY(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MONRDY_SHIFT)) & I2C_INTSTAT_MONRDY_MASK)\r
-#define I2C_INTSTAT_MONOV_MASK (0x20000U)\r
-#define I2C_INTSTAT_MONOV_SHIFT (17U)\r
-#define I2C_INTSTAT_MONOV(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MONOV_SHIFT)) & I2C_INTSTAT_MONOV_MASK)\r
-#define I2C_INTSTAT_MONIDLE_MASK (0x80000U)\r
-#define I2C_INTSTAT_MONIDLE_SHIFT (19U)\r
-#define I2C_INTSTAT_MONIDLE(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MONIDLE_SHIFT)) & I2C_INTSTAT_MONIDLE_MASK)\r
-#define I2C_INTSTAT_EVENTTIMEOUT_MASK (0x1000000U)\r
-#define I2C_INTSTAT_EVENTTIMEOUT_SHIFT (24U)\r
-#define I2C_INTSTAT_EVENTTIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_EVENTTIMEOUT_SHIFT)) & I2C_INTSTAT_EVENTTIMEOUT_MASK)\r
-#define I2C_INTSTAT_SCLTIMEOUT_MASK (0x2000000U)\r
-#define I2C_INTSTAT_SCLTIMEOUT_SHIFT (25U)\r
-#define I2C_INTSTAT_SCLTIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_SCLTIMEOUT_SHIFT)) & I2C_INTSTAT_SCLTIMEOUT_MASK)\r
+#define I2C_INTSTAT_MSTPENDING_MASK (0x1U)\r
+#define I2C_INTSTAT_MSTPENDING_SHIFT (0U)\r
+/*! MSTPENDING - Master Pending.\r
+ */\r
+#define I2C_INTSTAT_MSTPENDING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MSTPENDING_SHIFT)) & I2C_INTSTAT_MSTPENDING_MASK)\r
+#define I2C_INTSTAT_MSTARBLOSS_MASK (0x10U)\r
+#define I2C_INTSTAT_MSTARBLOSS_SHIFT (4U)\r
+/*! MSTARBLOSS - Master Arbitration Loss flag.\r
+ */\r
+#define I2C_INTSTAT_MSTARBLOSS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MSTARBLOSS_SHIFT)) & I2C_INTSTAT_MSTARBLOSS_MASK)\r
+#define I2C_INTSTAT_MSTSTSTPERR_MASK (0x40U)\r
+#define I2C_INTSTAT_MSTSTSTPERR_SHIFT (6U)\r
+/*! MSTSTSTPERR - Master Start/Stop Error flag.\r
+ */\r
+#define I2C_INTSTAT_MSTSTSTPERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MSTSTSTPERR_SHIFT)) & I2C_INTSTAT_MSTSTSTPERR_MASK)\r
+#define I2C_INTSTAT_SLVPENDING_MASK (0x100U)\r
+#define I2C_INTSTAT_SLVPENDING_SHIFT (8U)\r
+/*! SLVPENDING - Slave Pending.\r
+ */\r
+#define I2C_INTSTAT_SLVPENDING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_SLVPENDING_SHIFT)) & I2C_INTSTAT_SLVPENDING_MASK)\r
+#define I2C_INTSTAT_SLVNOTSTR_MASK (0x800U)\r
+#define I2C_INTSTAT_SLVNOTSTR_SHIFT (11U)\r
+/*! SLVNOTSTR - Slave Not Stretching status.\r
+ */\r
+#define I2C_INTSTAT_SLVNOTSTR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_SLVNOTSTR_SHIFT)) & I2C_INTSTAT_SLVNOTSTR_MASK)\r
+#define I2C_INTSTAT_SLVDESEL_MASK (0x8000U)\r
+#define I2C_INTSTAT_SLVDESEL_SHIFT (15U)\r
+/*! SLVDESEL - Slave Deselected flag.\r
+ */\r
+#define I2C_INTSTAT_SLVDESEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_SLVDESEL_SHIFT)) & I2C_INTSTAT_SLVDESEL_MASK)\r
+#define I2C_INTSTAT_MONRDY_MASK (0x10000U)\r
+#define I2C_INTSTAT_MONRDY_SHIFT (16U)\r
+/*! MONRDY - Monitor Ready.\r
+ */\r
+#define I2C_INTSTAT_MONRDY(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MONRDY_SHIFT)) & I2C_INTSTAT_MONRDY_MASK)\r
+#define I2C_INTSTAT_MONOV_MASK (0x20000U)\r
+#define I2C_INTSTAT_MONOV_SHIFT (17U)\r
+/*! MONOV - Monitor Overflow flag.\r
+ */\r
+#define I2C_INTSTAT_MONOV(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MONOV_SHIFT)) & I2C_INTSTAT_MONOV_MASK)\r
+#define I2C_INTSTAT_MONIDLE_MASK (0x80000U)\r
+#define I2C_INTSTAT_MONIDLE_SHIFT (19U)\r
+/*! MONIDLE - Monitor Idle flag.\r
+ */\r
+#define I2C_INTSTAT_MONIDLE(x) (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_MONIDLE_SHIFT)) & I2C_INTSTAT_MONIDLE_MASK)\r
+#define I2C_INTSTAT_EVENTTIMEOUT_MASK (0x1000000U)\r
+#define I2C_INTSTAT_EVENTTIMEOUT_SHIFT (24U)\r
+/*! EVENTTIMEOUT - Event time-out Interrupt flag.\r
+ */\r
+#define I2C_INTSTAT_EVENTTIMEOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_EVENTTIMEOUT_SHIFT)) & I2C_INTSTAT_EVENTTIMEOUT_MASK)\r
+#define I2C_INTSTAT_SCLTIMEOUT_MASK (0x2000000U)\r
+#define I2C_INTSTAT_SCLTIMEOUT_SHIFT (25U)\r
+/*! SCLTIMEOUT - SCL time-out Interrupt flag.\r
+ */\r
+#define I2C_INTSTAT_SCLTIMEOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_INTSTAT_SCLTIMEOUT_SHIFT)) & I2C_INTSTAT_SCLTIMEOUT_MASK)\r
/*! @} */\r
\r
/*! @name MSTCTL - Master control register. */\r
/*! @{ */\r
-#define I2C_MSTCTL_MSTCONTINUE_MASK (0x1U)\r
-#define I2C_MSTCTL_MSTCONTINUE_SHIFT (0U)\r
+#define I2C_MSTCTL_MSTCONTINUE_MASK (0x1U)\r
+#define I2C_MSTCTL_MSTCONTINUE_SHIFT (0U)\r
/*! MSTCONTINUE - Master Continue. This bit is write-only.\r
* 0b0..No effect.\r
- * 0b1..Continue. Informs the Master function to continue to the next operation. This must done after writing transmit data, reading received data, or any other housekeeping related to the next bus operation.\r
+ * 0b1..Continue. Informs the Master function to continue to the next operation. This must done after writing\r
+ * transmit data, reading received data, or any other housekeeping related to the next bus operation.\r
*/\r
-#define I2C_MSTCTL_MSTCONTINUE(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTCTL_MSTCONTINUE_SHIFT)) & I2C_MSTCTL_MSTCONTINUE_MASK)\r
-#define I2C_MSTCTL_MSTSTART_MASK (0x2U)\r
-#define I2C_MSTCTL_MSTSTART_SHIFT (1U)\r
+#define I2C_MSTCTL_MSTCONTINUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_MSTCTL_MSTCONTINUE_SHIFT)) & I2C_MSTCTL_MSTCONTINUE_MASK)\r
+#define I2C_MSTCTL_MSTSTART_MASK (0x2U)\r
+#define I2C_MSTCTL_MSTSTART_SHIFT (1U)\r
/*! MSTSTART - Master Start control. This bit is write-only.\r
* 0b0..No effect.\r
* 0b1..Start. A Start will be generated on the I2C bus at the next allowed time.\r
*/\r
-#define I2C_MSTCTL_MSTSTART(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTCTL_MSTSTART_SHIFT)) & I2C_MSTCTL_MSTSTART_MASK)\r
-#define I2C_MSTCTL_MSTSTOP_MASK (0x4U)\r
-#define I2C_MSTCTL_MSTSTOP_SHIFT (2U)\r
+#define I2C_MSTCTL_MSTSTART(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTCTL_MSTSTART_SHIFT)) & I2C_MSTCTL_MSTSTART_MASK)\r
+#define I2C_MSTCTL_MSTSTOP_MASK (0x4U)\r
+#define I2C_MSTCTL_MSTSTOP_SHIFT (2U)\r
/*! MSTSTOP - Master Stop control. This bit is write-only.\r
* 0b0..No effect.\r
- * 0b1..Stop. A Stop will be generated on the I2C bus at the next allowed time, preceded by a NACK to the slave if the master is receiving data from the slave (Master Receiver mode).\r
- */\r
-#define I2C_MSTCTL_MSTSTOP(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTCTL_MSTSTOP_SHIFT)) & I2C_MSTCTL_MSTSTOP_MASK)\r
-#define I2C_MSTCTL_MSTDMA_MASK (0x8U)\r
-#define I2C_MSTCTL_MSTDMA_SHIFT (3U)\r
-/*! MSTDMA - Master DMA enable. Data operations of the I2C can be performed with DMA. Protocol type operations such as Start, address, Stop, and address match must always be done with software, typically via an interrupt. Address acknowledgement must also be done by software except when the I2C is configured to be HSCAPABLE (and address acknowledgement is handled entirely by hardware) or when Automatic Operation is enabled. When a DMA data transfer is complete, MSTDMA must be cleared prior to beginning the next operation, typically a Start or Stop.This bit is read/write.\r
+ * 0b1..Stop. A Stop will be generated on the I2C bus at the next allowed time, preceded by a NACK to the slave\r
+ * if the master is receiving data from the slave (Master Receiver mode).\r
+ */\r
+#define I2C_MSTCTL_MSTSTOP(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTCTL_MSTSTOP_SHIFT)) & I2C_MSTCTL_MSTSTOP_MASK)\r
+#define I2C_MSTCTL_MSTDMA_MASK (0x8U)\r
+#define I2C_MSTCTL_MSTDMA_SHIFT (3U)\r
+/*! MSTDMA - Master DMA enable. Data operations of the I2C can be performed with DMA. Protocol type\r
+ * operations such as Start, address, Stop, and address match must always be done with software,\r
+ * typically via an interrupt. Address acknowledgement must also be done by software except when\r
+ * the I2C is configured to be HSCAPABLE (and address acknowledgement is handled entirely by\r
+ * hardware) or when Automatic Operation is enabled. When a DMA data transfer is complete, MSTDMA\r
+ * must be cleared prior to beginning the next operation, typically a Start or Stop.This bit is\r
+ * read/write.\r
* 0b0..Disable. No DMA requests are generated for master operation.\r
- * 0b1..Enable. A DMA request is generated for I2C master data operations. When this I2C master is generating Acknowledge bits in Master Receiver mode, the acknowledge is generated automatically.\r
+ * 0b1..Enable. A DMA request is generated for I2C master data operations. When this I2C master is generating\r
+ * Acknowledge bits in Master Receiver mode, the acknowledge is generated automatically.\r
*/\r
-#define I2C_MSTCTL_MSTDMA(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTCTL_MSTDMA_SHIFT)) & I2C_MSTCTL_MSTDMA_MASK)\r
+#define I2C_MSTCTL_MSTDMA(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTCTL_MSTDMA_SHIFT)) & I2C_MSTCTL_MSTDMA_MASK)\r
/*! @} */\r
\r
/*! @name MSTTIME - Master timing configuration. */\r
/*! @{ */\r
-#define I2C_MSTTIME_MSTSCLLOW_MASK (0x7U)\r
-#define I2C_MSTTIME_MSTSCLLOW_SHIFT (0U)\r
-/*! MSTSCLLOW - Master SCL Low time. Specifies the minimum low time that will be asserted by this master on SCL. Other devices on the bus (masters or slaves) could lengthen this time. This corresponds to the parameter t LOW in the I2C bus specification. I2C bus specification parameters tBUF and tSU;STA have the same values and are also controlled by MSTSCLLOW.\r
+#define I2C_MSTTIME_MSTSCLLOW_MASK (0x7U)\r
+#define I2C_MSTTIME_MSTSCLLOW_SHIFT (0U)\r
+/*! MSTSCLLOW - Master SCL Low time. Specifies the minimum low time that will be asserted by this\r
+ * master on SCL. Other devices on the bus (masters or slaves) could lengthen this time. This\r
+ * corresponds to the parameter t LOW in the I2C bus specification. I2C bus specification parameters\r
+ * tBUF and tSU;STA have the same values and are also controlled by MSTSCLLOW.\r
* 0b000..2 clocks. Minimum SCL low time is 2 clocks of the I2C clock pre-divider.\r
* 0b001..3 clocks. Minimum SCL low time is 3 clocks of the I2C clock pre-divider.\r
* 0b010..4 clocks. Minimum SCL low time is 4 clocks of the I2C clock pre-divider.\r
* 0b110..8 clocks. Minimum SCL low time is 8 clocks of the I2C clock pre-divider.\r
* 0b111..9 clocks. Minimum SCL low time is 9 clocks of the I2C clock pre-divider.\r
*/\r
-#define I2C_MSTTIME_MSTSCLLOW(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTTIME_MSTSCLLOW_SHIFT)) & I2C_MSTTIME_MSTSCLLOW_MASK)\r
-#define I2C_MSTTIME_MSTSCLHIGH_MASK (0x70U)\r
-#define I2C_MSTTIME_MSTSCLHIGH_SHIFT (4U)\r
-/*! MSTSCLHIGH - Master SCL High time. Specifies the minimum high time that will be asserted by this master on SCL. Other masters in a multi-master system could shorten this time. This corresponds to the parameter tHIGH in the I2C bus specification. I2C bus specification parameters tSU;STO and tHD;STA have the same values and are also controlled by MSTSCLHIGH.\r
+#define I2C_MSTTIME_MSTSCLLOW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_MSTTIME_MSTSCLLOW_SHIFT)) & I2C_MSTTIME_MSTSCLLOW_MASK)\r
+#define I2C_MSTTIME_MSTSCLHIGH_MASK (0x70U)\r
+#define I2C_MSTTIME_MSTSCLHIGH_SHIFT (4U)\r
+/*! MSTSCLHIGH - Master SCL High time. Specifies the minimum high time that will be asserted by this\r
+ * master on SCL. Other masters in a multi-master system could shorten this time. This\r
+ * corresponds to the parameter tHIGH in the I2C bus specification. I2C bus specification parameters\r
+ * tSU;STO and tHD;STA have the same values and are also controlled by MSTSCLHIGH.\r
* 0b000..2 clocks. Minimum SCL high time is 2 clock of the I2C clock pre-divider.\r
* 0b001..3 clocks. Minimum SCL high time is 3 clocks of the I2C clock pre-divider .\r
* 0b010..4 clocks. Minimum SCL high time is 4 clock of the I2C clock pre-divider.\r
* 0b110..8 clocks. Minimum SCL high time is 8 clock of the I2C clock pre-divider.\r
* 0b111..9 clocks. Minimum SCL high time is 9 clocks of the I2C clock pre-divider.\r
*/\r
-#define I2C_MSTTIME_MSTSCLHIGH(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTTIME_MSTSCLHIGH_SHIFT)) & I2C_MSTTIME_MSTSCLHIGH_MASK)\r
+#define I2C_MSTTIME_MSTSCLHIGH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_MSTTIME_MSTSCLHIGH_SHIFT)) & I2C_MSTTIME_MSTSCLHIGH_MASK)\r
/*! @} */\r
\r
/*! @name MSTDAT - Combined Master receiver and transmitter data register. */\r
/*! @{ */\r
-#define I2C_MSTDAT_DATA_MASK (0xFFU)\r
-#define I2C_MSTDAT_DATA_SHIFT (0U)\r
-#define I2C_MSTDAT_DATA(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTDAT_DATA_SHIFT)) & I2C_MSTDAT_DATA_MASK)\r
+#define I2C_MSTDAT_DATA_MASK (0xFFU)\r
+#define I2C_MSTDAT_DATA_SHIFT (0U)\r
+/*! DATA - Master function data register. Read: read the most recently received data for the Master\r
+ * function. Write: transmit data using the Master function.\r
+ */\r
+#define I2C_MSTDAT_DATA(x) (((uint32_t)(((uint32_t)(x)) << I2C_MSTDAT_DATA_SHIFT)) & I2C_MSTDAT_DATA_MASK)\r
/*! @} */\r
\r
/*! @name SLVCTL - Slave control register. */\r
/*! @{ */\r
-#define I2C_SLVCTL_SLVCONTINUE_MASK (0x1U)\r
-#define I2C_SLVCTL_SLVCONTINUE_SHIFT (0U)\r
+#define I2C_SLVCTL_SLVCONTINUE_MASK (0x1U)\r
+#define I2C_SLVCTL_SLVCONTINUE_SHIFT (0U)\r
/*! SLVCONTINUE - Slave Continue.\r
* 0b0..No effect.\r
- * 0b1..Continue. Informs the Slave function to continue to the next operation, by clearing the SLVPENDING flag in the STAT register. This must be done after writing transmit data, reading received data, or any other housekeeping related to the next bus operation. Automatic Operation has different requirements. SLVCONTINUE should not be set unless SLVPENDING = 1.\r
- */\r
-#define I2C_SLVCTL_SLVCONTINUE(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_SLVCONTINUE_SHIFT)) & I2C_SLVCTL_SLVCONTINUE_MASK)\r
-#define I2C_SLVCTL_SLVNACK_MASK (0x2U)\r
-#define I2C_SLVCTL_SLVNACK_SHIFT (1U)\r
+ * 0b1..Continue. Informs the Slave function to continue to the next operation, by clearing the SLVPENDING flag\r
+ * in the STAT register. This must be done after writing transmit data, reading received data, or any other\r
+ * housekeeping related to the next bus operation. Automatic Operation has different requirements. SLVCONTINUE\r
+ * should not be set unless SLVPENDING = 1.\r
+ */\r
+#define I2C_SLVCTL_SLVCONTINUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_SLVCONTINUE_SHIFT)) & I2C_SLVCTL_SLVCONTINUE_MASK)\r
+#define I2C_SLVCTL_SLVNACK_MASK (0x2U)\r
+#define I2C_SLVCTL_SLVNACK_SHIFT (1U)\r
/*! SLVNACK - Slave NACK.\r
* 0b0..No effect.\r
- * 0b1..NACK. Causes the Slave function to NACK the master when the slave is receiving data from the master (Slave Receiver mode).\r
+ * 0b1..NACK. Causes the Slave function to NACK the master when the slave is receiving data from the master (Slave\r
+ * Receiver mode).\r
*/\r
-#define I2C_SLVCTL_SLVNACK(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_SLVNACK_SHIFT)) & I2C_SLVCTL_SLVNACK_MASK)\r
-#define I2C_SLVCTL_SLVDMA_MASK (0x8U)\r
-#define I2C_SLVCTL_SLVDMA_SHIFT (3U)\r
+#define I2C_SLVCTL_SLVNACK(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_SLVNACK_SHIFT)) & I2C_SLVCTL_SLVNACK_MASK)\r
+#define I2C_SLVCTL_SLVDMA_MASK (0x8U)\r
+#define I2C_SLVCTL_SLVDMA_SHIFT (3U)\r
/*! SLVDMA - Slave DMA enable.\r
* 0b0..Disabled. No DMA requests are issued for Slave mode operation.\r
* 0b1..Enabled. DMA requests are issued for I2C slave data transmission and reception.\r
*/\r
-#define I2C_SLVCTL_SLVDMA(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_SLVDMA_SHIFT)) & I2C_SLVCTL_SLVDMA_MASK)\r
-#define I2C_SLVCTL_AUTOACK_MASK (0x100U)\r
-#define I2C_SLVCTL_AUTOACK_SHIFT (8U)\r
-/*! AUTOACK - Automatic Acknowledge.When this bit is set, it will cause an I2C header which matches SLVADR0 and the direction set by AUTOMATCHREAD to be ACKed immediately; this is used with DMA to allow processing of the data without intervention. If this bit is clear and a header matches SLVADR0, the behavior is controlled by AUTONACK in the SLVADR0 register: allowing NACK or interrupt.\r
- * 0b0..Normal, non-automatic operation. If AUTONACK = 0, an SlvPending interrupt is generated when a matching address is received. If AUTONACK = 1, received addresses are NACKed (ignored).\r
- * 0b1..A header with matching SLVADR0 and matching direction as set by AUTOMATCHREAD will be ACKed immediately, allowing the master to move on to the data bytes. If the address matches SLVADR0, but the direction does not match AUTOMATCHREAD, the behavior will depend on the AUTONACK bit in the SLVADR0 register: if AUTONACK is set, then it will be Nacked; else if AUTONACK is clear, then a SlvPending interrupt is generated.\r
- */\r
-#define I2C_SLVCTL_AUTOACK(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_AUTOACK_SHIFT)) & I2C_SLVCTL_AUTOACK_MASK)\r
-#define I2C_SLVCTL_AUTOMATCHREAD_MASK (0x200U)\r
-#define I2C_SLVCTL_AUTOMATCHREAD_SHIFT (9U)\r
-/*! AUTOMATCHREAD - When AUTOACK is set, this bit controls whether it matches a read or write request on the next header with an address matching SLVADR0. Since DMA needs to be configured to match the transfer direction, the direction needs to be specified. This bit allows a direction to be chosen for the next operation.\r
+#define I2C_SLVCTL_SLVDMA(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_SLVDMA_SHIFT)) & I2C_SLVCTL_SLVDMA_MASK)\r
+#define I2C_SLVCTL_AUTOACK_MASK (0x100U)\r
+#define I2C_SLVCTL_AUTOACK_SHIFT (8U)\r
+/*! AUTOACK - Automatic Acknowledge.When this bit is set, it will cause an I2C header which matches\r
+ * SLVADR0 and the direction set by AUTOMATCHREAD to be ACKed immediately; this is used with DMA\r
+ * to allow processing of the data without intervention. If this bit is clear and a header\r
+ * matches SLVADR0, the behavior is controlled by AUTONACK in the SLVADR0 register: allowing NACK or\r
+ * interrupt.\r
+ * 0b0..Normal, non-automatic operation. If AUTONACK = 0, an SlvPending interrupt is generated when a matching\r
+ * address is received. If AUTONACK = 1, received addresses are NACKed (ignored).\r
+ * 0b1..A header with matching SLVADR0 and matching direction as set by AUTOMATCHREAD will be ACKed immediately,\r
+ * allowing the master to move on to the data bytes. If the address matches SLVADR0, but the direction does\r
+ * not match AUTOMATCHREAD, the behavior will depend on the AUTONACK bit in the SLVADR0 register: if AUTONACK\r
+ * is set, then it will be Nacked; else if AUTONACK is clear, then a SlvPending interrupt is generated.\r
+ */\r
+#define I2C_SLVCTL_AUTOACK(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_AUTOACK_SHIFT)) & I2C_SLVCTL_AUTOACK_MASK)\r
+#define I2C_SLVCTL_AUTOMATCHREAD_MASK (0x200U)\r
+#define I2C_SLVCTL_AUTOMATCHREAD_SHIFT (9U)\r
+/*! AUTOMATCHREAD - When AUTOACK is set, this bit controls whether it matches a read or write\r
+ * request on the next header with an address matching SLVADR0. Since DMA needs to be configured to\r
+ * match the transfer direction, the direction needs to be specified. This bit allows a direction to\r
+ * be chosen for the next operation.\r
* 0b0..The expected next operation in Automatic Mode is an I2C write.\r
* 0b1..The expected next operation in Automatic Mode is an I2C read.\r
*/\r
-#define I2C_SLVCTL_AUTOMATCHREAD(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_AUTOMATCHREAD_SHIFT)) & I2C_SLVCTL_AUTOMATCHREAD_MASK)\r
+#define I2C_SLVCTL_AUTOMATCHREAD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_SLVCTL_AUTOMATCHREAD_SHIFT)) & I2C_SLVCTL_AUTOMATCHREAD_MASK)\r
/*! @} */\r
\r
/*! @name SLVDAT - Combined Slave receiver and transmitter data register. */\r
/*! @{ */\r
-#define I2C_SLVDAT_DATA_MASK (0xFFU)\r
-#define I2C_SLVDAT_DATA_SHIFT (0U)\r
-#define I2C_SLVDAT_DATA(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVDAT_DATA_SHIFT)) & I2C_SLVDAT_DATA_MASK)\r
+#define I2C_SLVDAT_DATA_MASK (0xFFU)\r
+#define I2C_SLVDAT_DATA_SHIFT (0U)\r
+/*! DATA - Slave function data register. Read: read the most recently received data for the Slave\r
+ * function. Write: transmit data using the Slave function.\r
+ */\r
+#define I2C_SLVDAT_DATA(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVDAT_DATA_SHIFT)) & I2C_SLVDAT_DATA_MASK)\r
/*! @} */\r
\r
/*! @name SLVADR - Slave address register. */\r
/*! @{ */\r
-#define I2C_SLVADR_SADISABLE_MASK (0x1U)\r
-#define I2C_SLVADR_SADISABLE_SHIFT (0U)\r
+#define I2C_SLVADR_SADISABLE_MASK (0x1U)\r
+#define I2C_SLVADR_SADISABLE_SHIFT (0U)\r
/*! SADISABLE - Slave Address n Disable.\r
* 0b0..Enabled. Slave Address n is enabled.\r
* 0b1..Ignored Slave Address n is ignored.\r
*/\r
-#define I2C_SLVADR_SADISABLE(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVADR_SADISABLE_SHIFT)) & I2C_SLVADR_SADISABLE_MASK)\r
-#define I2C_SLVADR_SLVADR_MASK (0xFEU)\r
-#define I2C_SLVADR_SLVADR_SHIFT (1U)\r
-#define I2C_SLVADR_SLVADR(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVADR_SLVADR_SHIFT)) & I2C_SLVADR_SLVADR_MASK)\r
-#define I2C_SLVADR_AUTONACK_MASK (0x8000U)\r
-#define I2C_SLVADR_AUTONACK_SHIFT (15U)\r
-/*! AUTONACK - Automatic NACK operation. Used in conjunction with AUTOACK and AUTOMATCHREAD, allows software to ignore I2C traffic while handling previous I2C data or other operations.\r
+#define I2C_SLVADR_SADISABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_SLVADR_SADISABLE_SHIFT)) & I2C_SLVADR_SADISABLE_MASK)\r
+#define I2C_SLVADR_SLVADR_MASK (0xFEU)\r
+#define I2C_SLVADR_SLVADR_SHIFT (1U)\r
+/*! SLVADR - Slave Address. Seven bit slave address that is compared to received addresses if enabled.\r
+ */\r
+#define I2C_SLVADR_SLVADR(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVADR_SLVADR_SHIFT)) & I2C_SLVADR_SLVADR_MASK)\r
+#define I2C_SLVADR_AUTONACK_MASK (0x8000U)\r
+#define I2C_SLVADR_AUTONACK_SHIFT (15U)\r
+/*! AUTONACK - Automatic NACK operation. Used in conjunction with AUTOACK and AUTOMATCHREAD, allows\r
+ * software to ignore I2C traffic while handling previous I2C data or other operations.\r
* 0b0..Normal operation, matching I2C addresses are not ignored.\r
- * 0b1..Automatic-only mode. All incoming addresses are ignored (NACKed), unless AUTOACK is set, it matches SLVADRn, and AUTOMATCHREAD matches the direction.\r
+ * 0b1..Automatic-only mode. All incoming addresses are ignored (NACKed), unless AUTOACK is set, it matches\r
+ * SLVADRn, and AUTOMATCHREAD matches the direction.\r
*/\r
-#define I2C_SLVADR_AUTONACK(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVADR_AUTONACK_SHIFT)) & I2C_SLVADR_AUTONACK_MASK)\r
+#define I2C_SLVADR_AUTONACK(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVADR_AUTONACK_SHIFT)) & I2C_SLVADR_AUTONACK_MASK)\r
/*! @} */\r
\r
/* The count of I2C_SLVADR */\r
-#define I2C_SLVADR_COUNT (4U)\r
+#define I2C_SLVADR_COUNT (4U)\r
\r
/*! @name SLVQUAL0 - Slave Qualification for address 0. */\r
/*! @{ */\r
-#define I2C_SLVQUAL0_QUALMODE0_MASK (0x1U)\r
-#define I2C_SLVQUAL0_QUALMODE0_SHIFT (0U)\r
+#define I2C_SLVQUAL0_QUALMODE0_MASK (0x1U)\r
+#define I2C_SLVQUAL0_QUALMODE0_SHIFT (0U)\r
/*! QUALMODE0 - Qualify mode for slave address 0.\r
* 0b0..Mask. The SLVQUAL0 field is used as a logical mask for matching address 0.\r
* 0b1..Extend. The SLVQUAL0 field is used to extend address 0 matching in a range of addresses.\r
*/\r
-#define I2C_SLVQUAL0_QUALMODE0(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVQUAL0_QUALMODE0_SHIFT)) & I2C_SLVQUAL0_QUALMODE0_MASK)\r
-#define I2C_SLVQUAL0_SLVQUAL0_MASK (0xFEU)\r
-#define I2C_SLVQUAL0_SLVQUAL0_SHIFT (1U)\r
-#define I2C_SLVQUAL0_SLVQUAL0(x) (((uint32_t)(((uint32_t)(x)) << I2C_SLVQUAL0_SLVQUAL0_SHIFT)) & I2C_SLVQUAL0_SLVQUAL0_MASK)\r
+#define I2C_SLVQUAL0_QUALMODE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_SLVQUAL0_QUALMODE0_SHIFT)) & I2C_SLVQUAL0_QUALMODE0_MASK)\r
+#define I2C_SLVQUAL0_SLVQUAL0_MASK (0xFEU)\r
+#define I2C_SLVQUAL0_SLVQUAL0_SHIFT (1U)\r
+/*! SLVQUAL0 - Slave address Qualifier for address 0. A value of 0 causes the address in SLVADR0 to\r
+ * be used as-is, assuming that it is enabled. If QUALMODE0 = 0, any bit in this field which is\r
+ * set to 1 will cause an automatic match of the corresponding bit of the received address when it\r
+ * is compared to the SLVADR0 register. If QUALMODE0 = 1, an address range is matched for\r
+ * address 0. This range extends from the value defined by SLVADR0 to the address defined by SLVQUAL0\r
+ * (address matches when SLVADR0[7:1] <= received address <= SLVQUAL0[7:1]).\r
+ */\r
+#define I2C_SLVQUAL0_SLVQUAL0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_SLVQUAL0_SLVQUAL0_SHIFT)) & I2C_SLVQUAL0_SLVQUAL0_MASK)\r
/*! @} */\r
\r
/*! @name MONRXDAT - Monitor receiver data register. */\r
/*! @{ */\r
-#define I2C_MONRXDAT_MONRXDAT_MASK (0xFFU)\r
-#define I2C_MONRXDAT_MONRXDAT_SHIFT (0U)\r
-#define I2C_MONRXDAT_MONRXDAT(x) (((uint32_t)(((uint32_t)(x)) << I2C_MONRXDAT_MONRXDAT_SHIFT)) & I2C_MONRXDAT_MONRXDAT_MASK)\r
-#define I2C_MONRXDAT_MONSTART_MASK (0x100U)\r
-#define I2C_MONRXDAT_MONSTART_SHIFT (8U)\r
+#define I2C_MONRXDAT_MONRXDAT_MASK (0xFFU)\r
+#define I2C_MONRXDAT_MONRXDAT_SHIFT (0U)\r
+/*! MONRXDAT - Monitor function Receiver Data. This reflects every data byte that passes on the I2C pins.\r
+ */\r
+#define I2C_MONRXDAT_MONRXDAT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_MONRXDAT_MONRXDAT_SHIFT)) & I2C_MONRXDAT_MONRXDAT_MASK)\r
+#define I2C_MONRXDAT_MONSTART_MASK (0x100U)\r
+#define I2C_MONRXDAT_MONSTART_SHIFT (8U)\r
/*! MONSTART - Monitor Received Start.\r
* 0b0..No start detected. The Monitor function has not detected a Start event on the I2C bus.\r
* 0b1..Start detected. The Monitor function has detected a Start event on the I2C bus.\r
*/\r
-#define I2C_MONRXDAT_MONSTART(x) (((uint32_t)(((uint32_t)(x)) << I2C_MONRXDAT_MONSTART_SHIFT)) & I2C_MONRXDAT_MONSTART_MASK)\r
-#define I2C_MONRXDAT_MONRESTART_MASK (0x200U)\r
-#define I2C_MONRXDAT_MONRESTART_SHIFT (9U)\r
+#define I2C_MONRXDAT_MONSTART(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_MONRXDAT_MONSTART_SHIFT)) & I2C_MONRXDAT_MONSTART_MASK)\r
+#define I2C_MONRXDAT_MONRESTART_MASK (0x200U)\r
+#define I2C_MONRXDAT_MONRESTART_SHIFT (9U)\r
/*! MONRESTART - Monitor Received Repeated Start.\r
* 0b0..No repeated start detected. The Monitor function has not detected a Repeated Start event on the I2C bus.\r
* 0b1..Repeated start detected. The Monitor function has detected a Repeated Start event on the I2C bus.\r
*/\r
-#define I2C_MONRXDAT_MONRESTART(x) (((uint32_t)(((uint32_t)(x)) << I2C_MONRXDAT_MONRESTART_SHIFT)) & I2C_MONRXDAT_MONRESTART_MASK)\r
-#define I2C_MONRXDAT_MONNACK_MASK (0x400U)\r
-#define I2C_MONRXDAT_MONNACK_SHIFT (10U)\r
+#define I2C_MONRXDAT_MONRESTART(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_MONRXDAT_MONRESTART_SHIFT)) & I2C_MONRXDAT_MONRESTART_MASK)\r
+#define I2C_MONRXDAT_MONNACK_MASK (0x400U)\r
+#define I2C_MONRXDAT_MONNACK_SHIFT (10U)\r
/*! MONNACK - Monitor Received NACK.\r
- * 0b0..Acknowledged. The data currently being provided by the Monitor function was acknowledged by at least one master or slave receiver.\r
- * 0b1..Not acknowledged. The data currently being provided by the Monitor function was not acknowledged by any receiver.\r
+ * 0b0..Acknowledged. The data currently being provided by the Monitor function was acknowledged by at least one master\r
+ * or slave receiver. 0b1..Not acknowledged. The data currently being provided by the Monitor function was not\r
+ * acknowledged by any receiver.\r
*/\r
-#define I2C_MONRXDAT_MONNACK(x) (((uint32_t)(((uint32_t)(x)) << I2C_MONRXDAT_MONNACK_SHIFT)) & I2C_MONRXDAT_MONNACK_MASK)\r
+#define I2C_MONRXDAT_MONNACK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2C_MONRXDAT_MONNACK_SHIFT)) & I2C_MONRXDAT_MONNACK_MASK)\r
/*! @} */\r
\r
/*! @name ID - Peripheral identification register. */\r
/*! @{ */\r
-#define I2C_ID_APERTURE_MASK (0xFFU)\r
-#define I2C_ID_APERTURE_SHIFT (0U)\r
-#define I2C_ID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << I2C_ID_APERTURE_SHIFT)) & I2C_ID_APERTURE_MASK)\r
-#define I2C_ID_MINOR_REV_MASK (0xF00U)\r
-#define I2C_ID_MINOR_REV_SHIFT (8U)\r
-#define I2C_ID_MINOR_REV(x) (((uint32_t)(((uint32_t)(x)) << I2C_ID_MINOR_REV_SHIFT)) & I2C_ID_MINOR_REV_MASK)\r
-#define I2C_ID_MAJOR_REV_MASK (0xF000U)\r
-#define I2C_ID_MAJOR_REV_SHIFT (12U)\r
-#define I2C_ID_MAJOR_REV(x) (((uint32_t)(((uint32_t)(x)) << I2C_ID_MAJOR_REV_SHIFT)) & I2C_ID_MAJOR_REV_MASK)\r
-#define I2C_ID_ID_MASK (0xFFFF0000U)\r
-#define I2C_ID_ID_SHIFT (16U)\r
-#define I2C_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << I2C_ID_ID_SHIFT)) & I2C_ID_ID_MASK)\r
+#define I2C_ID_APERTURE_MASK (0xFFU)\r
+#define I2C_ID_APERTURE_SHIFT (0U)\r
+/*! APERTURE - Aperture: encoded as (aperture size/4K) -1, so 0x00 means a 4K aperture.\r
+ */\r
+#define I2C_ID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << I2C_ID_APERTURE_SHIFT)) & I2C_ID_APERTURE_MASK)\r
+#define I2C_ID_MINOR_REV_MASK (0xF00U)\r
+#define I2C_ID_MINOR_REV_SHIFT (8U)\r
+/*! MINOR_REV - Minor revision of module implementation.\r
+ */\r
+#define I2C_ID_MINOR_REV(x) (((uint32_t)(((uint32_t)(x)) << I2C_ID_MINOR_REV_SHIFT)) & I2C_ID_MINOR_REV_MASK)\r
+#define I2C_ID_MAJOR_REV_MASK (0xF000U)\r
+#define I2C_ID_MAJOR_REV_SHIFT (12U)\r
+/*! MAJOR_REV - Major revision of module implementation.\r
+ */\r
+#define I2C_ID_MAJOR_REV(x) (((uint32_t)(((uint32_t)(x)) << I2C_ID_MAJOR_REV_SHIFT)) & I2C_ID_MAJOR_REV_MASK)\r
+#define I2C_ID_ID_MASK (0xFFFF0000U)\r
+#define I2C_ID_ID_SHIFT (16U)\r
+/*! ID - Module identifier for the selected function.\r
+ */\r
+#define I2C_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << I2C_ID_ID_SHIFT)) & I2C_ID_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group I2C_Register_Masks */\r
\r
-\r
/* I2C - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral I2C0 base address */\r
- #define I2C0_BASE (0x50086000u)\r
- /** Peripheral I2C0 base address */\r
- #define I2C0_BASE_NS (0x40086000u)\r
- /** Peripheral I2C0 base pointer */\r
- #define I2C0 ((I2C_Type *)I2C0_BASE)\r
- /** Peripheral I2C0 base pointer */\r
- #define I2C0_NS ((I2C_Type *)I2C0_BASE_NS)\r
- /** Peripheral I2C1 base address */\r
- #define I2C1_BASE (0x50087000u)\r
- /** Peripheral I2C1 base address */\r
- #define I2C1_BASE_NS (0x40087000u)\r
- /** Peripheral I2C1 base pointer */\r
- #define I2C1 ((I2C_Type *)I2C1_BASE)\r
- /** Peripheral I2C1 base pointer */\r
- #define I2C1_NS ((I2C_Type *)I2C1_BASE_NS)\r
- /** Peripheral I2C2 base address */\r
- #define I2C2_BASE (0x50088000u)\r
- /** Peripheral I2C2 base address */\r
- #define I2C2_BASE_NS (0x40088000u)\r
- /** Peripheral I2C2 base pointer */\r
- #define I2C2 ((I2C_Type *)I2C2_BASE)\r
- /** Peripheral I2C2 base pointer */\r
- #define I2C2_NS ((I2C_Type *)I2C2_BASE_NS)\r
- /** Peripheral I2C3 base address */\r
- #define I2C3_BASE (0x50089000u)\r
- /** Peripheral I2C3 base address */\r
- #define I2C3_BASE_NS (0x40089000u)\r
- /** Peripheral I2C3 base pointer */\r
- #define I2C3 ((I2C_Type *)I2C3_BASE)\r
- /** Peripheral I2C3 base pointer */\r
- #define I2C3_NS ((I2C_Type *)I2C3_BASE_NS)\r
- /** Peripheral I2C4 base address */\r
- #define I2C4_BASE (0x5008A000u)\r
- /** Peripheral I2C4 base address */\r
- #define I2C4_BASE_NS (0x4008A000u)\r
- /** Peripheral I2C4 base pointer */\r
- #define I2C4 ((I2C_Type *)I2C4_BASE)\r
- /** Peripheral I2C4 base pointer */\r
- #define I2C4_NS ((I2C_Type *)I2C4_BASE_NS)\r
- /** Peripheral I2C5 base address */\r
- #define I2C5_BASE (0x50096000u)\r
- /** Peripheral I2C5 base address */\r
- #define I2C5_BASE_NS (0x40096000u)\r
- /** Peripheral I2C5 base pointer */\r
- #define I2C5 ((I2C_Type *)I2C5_BASE)\r
- /** Peripheral I2C5 base pointer */\r
- #define I2C5_NS ((I2C_Type *)I2C5_BASE_NS)\r
- /** Peripheral I2C6 base address */\r
- #define I2C6_BASE (0x50097000u)\r
- /** Peripheral I2C6 base address */\r
- #define I2C6_BASE_NS (0x40097000u)\r
- /** Peripheral I2C6 base pointer */\r
- #define I2C6 ((I2C_Type *)I2C6_BASE)\r
- /** Peripheral I2C6 base pointer */\r
- #define I2C6_NS ((I2C_Type *)I2C6_BASE_NS)\r
- /** Peripheral I2C7 base address */\r
- #define I2C7_BASE (0x50098000u)\r
- /** Peripheral I2C7 base address */\r
- #define I2C7_BASE_NS (0x40098000u)\r
- /** Peripheral I2C7 base pointer */\r
- #define I2C7 ((I2C_Type *)I2C7_BASE)\r
- /** Peripheral I2C7 base pointer */\r
- #define I2C7_NS ((I2C_Type *)I2C7_BASE_NS)\r
- /** Array initializer of I2C peripheral base addresses */\r
- #define I2C_BASE_ADDRS { I2C0_BASE, I2C1_BASE, I2C2_BASE, I2C3_BASE, I2C4_BASE, I2C5_BASE, I2C6_BASE, I2C7_BASE }\r
- /** Array initializer of I2C peripheral base pointers */\r
- #define I2C_BASE_PTRS { I2C0, I2C1, I2C2, I2C3, I2C4, I2C5, I2C6, I2C7 }\r
- /** Array initializer of I2C peripheral base addresses */\r
- #define I2C_BASE_ADDRS_NS { I2C0_BASE_NS, I2C1_BASE_NS, I2C2_BASE_NS, I2C3_BASE_NS, I2C4_BASE_NS, I2C5_BASE_NS, I2C6_BASE_NS, I2C7_BASE_NS }\r
- /** Array initializer of I2C peripheral base pointers */\r
- #define I2C_BASE_PTRS_NS { I2C0_NS, I2C1_NS, I2C2_NS, I2C3_NS, I2C4_NS, I2C5_NS, I2C6_NS, I2C7_NS }\r
+/** Peripheral I2C0 base address */\r
+#define I2C0_BASE (0x50086000u)\r
+/** Peripheral I2C0 base address */\r
+#define I2C0_BASE_NS (0x40086000u)\r
+/** Peripheral I2C0 base pointer */\r
+#define I2C0 ((I2C_Type *)I2C0_BASE)\r
+/** Peripheral I2C0 base pointer */\r
+#define I2C0_NS ((I2C_Type *)I2C0_BASE_NS)\r
+/** Peripheral I2C1 base address */\r
+#define I2C1_BASE (0x50087000u)\r
+/** Peripheral I2C1 base address */\r
+#define I2C1_BASE_NS (0x40087000u)\r
+/** Peripheral I2C1 base pointer */\r
+#define I2C1 ((I2C_Type *)I2C1_BASE)\r
+/** Peripheral I2C1 base pointer */\r
+#define I2C1_NS ((I2C_Type *)I2C1_BASE_NS)\r
+/** Peripheral I2C2 base address */\r
+#define I2C2_BASE (0x50088000u)\r
+/** Peripheral I2C2 base address */\r
+#define I2C2_BASE_NS (0x40088000u)\r
+/** Peripheral I2C2 base pointer */\r
+#define I2C2 ((I2C_Type *)I2C2_BASE)\r
+/** Peripheral I2C2 base pointer */\r
+#define I2C2_NS ((I2C_Type *)I2C2_BASE_NS)\r
+/** Peripheral I2C3 base address */\r
+#define I2C3_BASE (0x50089000u)\r
+/** Peripheral I2C3 base address */\r
+#define I2C3_BASE_NS (0x40089000u)\r
+/** Peripheral I2C3 base pointer */\r
+#define I2C3 ((I2C_Type *)I2C3_BASE)\r
+/** Peripheral I2C3 base pointer */\r
+#define I2C3_NS ((I2C_Type *)I2C3_BASE_NS)\r
+/** Peripheral I2C4 base address */\r
+#define I2C4_BASE (0x5008A000u)\r
+/** Peripheral I2C4 base address */\r
+#define I2C4_BASE_NS (0x4008A000u)\r
+/** Peripheral I2C4 base pointer */\r
+#define I2C4 ((I2C_Type *)I2C4_BASE)\r
+/** Peripheral I2C4 base pointer */\r
+#define I2C4_NS ((I2C_Type *)I2C4_BASE_NS)\r
+/** Peripheral I2C5 base address */\r
+#define I2C5_BASE (0x50096000u)\r
+/** Peripheral I2C5 base address */\r
+#define I2C5_BASE_NS (0x40096000u)\r
+/** Peripheral I2C5 base pointer */\r
+#define I2C5 ((I2C_Type *)I2C5_BASE)\r
+/** Peripheral I2C5 base pointer */\r
+#define I2C5_NS ((I2C_Type *)I2C5_BASE_NS)\r
+/** Peripheral I2C6 base address */\r
+#define I2C6_BASE (0x50097000u)\r
+/** Peripheral I2C6 base address */\r
+#define I2C6_BASE_NS (0x40097000u)\r
+/** Peripheral I2C6 base pointer */\r
+#define I2C6 ((I2C_Type *)I2C6_BASE)\r
+/** Peripheral I2C6 base pointer */\r
+#define I2C6_NS ((I2C_Type *)I2C6_BASE_NS)\r
+/** Peripheral I2C7 base address */\r
+#define I2C7_BASE (0x50098000u)\r
+/** Peripheral I2C7 base address */\r
+#define I2C7_BASE_NS (0x40098000u)\r
+/** Peripheral I2C7 base pointer */\r
+#define I2C7 ((I2C_Type *)I2C7_BASE)\r
+/** Peripheral I2C7 base pointer */\r
+#define I2C7_NS ((I2C_Type *)I2C7_BASE_NS)\r
+/** Array initializer of I2C peripheral base addresses */\r
+#define I2C_BASE_ADDRS \\r
+ { \\r
+ I2C0_BASE, I2C1_BASE, I2C2_BASE, I2C3_BASE, I2C4_BASE, I2C5_BASE, I2C6_BASE, I2C7_BASE \\r
+ }\r
+/** Array initializer of I2C peripheral base pointers */\r
+#define I2C_BASE_PTRS \\r
+ { \\r
+ I2C0, I2C1, I2C2, I2C3, I2C4, I2C5, I2C6, I2C7 \\r
+ }\r
+/** Array initializer of I2C peripheral base addresses */\r
+#define I2C_BASE_ADDRS_NS \\r
+ { \\r
+ I2C0_BASE_NS, I2C1_BASE_NS, I2C2_BASE_NS, I2C3_BASE_NS, I2C4_BASE_NS, I2C5_BASE_NS, I2C6_BASE_NS, I2C7_BASE_NS \\r
+ }\r
+/** Array initializer of I2C peripheral base pointers */\r
+#define I2C_BASE_PTRS_NS \\r
+ { \\r
+ I2C0_NS, I2C1_NS, I2C2_NS, I2C3_NS, I2C4_NS, I2C5_NS, I2C6_NS, I2C7_NS \\r
+ }\r
#else\r
- /** Peripheral I2C0 base address */\r
- #define I2C0_BASE (0x40086000u)\r
- /** Peripheral I2C0 base pointer */\r
- #define I2C0 ((I2C_Type *)I2C0_BASE)\r
- /** Peripheral I2C1 base address */\r
- #define I2C1_BASE (0x40087000u)\r
- /** Peripheral I2C1 base pointer */\r
- #define I2C1 ((I2C_Type *)I2C1_BASE)\r
- /** Peripheral I2C2 base address */\r
- #define I2C2_BASE (0x40088000u)\r
- /** Peripheral I2C2 base pointer */\r
- #define I2C2 ((I2C_Type *)I2C2_BASE)\r
- /** Peripheral I2C3 base address */\r
- #define I2C3_BASE (0x40089000u)\r
- /** Peripheral I2C3 base pointer */\r
- #define I2C3 ((I2C_Type *)I2C3_BASE)\r
- /** Peripheral I2C4 base address */\r
- #define I2C4_BASE (0x4008A000u)\r
- /** Peripheral I2C4 base pointer */\r
- #define I2C4 ((I2C_Type *)I2C4_BASE)\r
- /** Peripheral I2C5 base address */\r
- #define I2C5_BASE (0x40096000u)\r
- /** Peripheral I2C5 base pointer */\r
- #define I2C5 ((I2C_Type *)I2C5_BASE)\r
- /** Peripheral I2C6 base address */\r
- #define I2C6_BASE (0x40097000u)\r
- /** Peripheral I2C6 base pointer */\r
- #define I2C6 ((I2C_Type *)I2C6_BASE)\r
- /** Peripheral I2C7 base address */\r
- #define I2C7_BASE (0x40098000u)\r
- /** Peripheral I2C7 base pointer */\r
- #define I2C7 ((I2C_Type *)I2C7_BASE)\r
- /** Array initializer of I2C peripheral base addresses */\r
- #define I2C_BASE_ADDRS { I2C0_BASE, I2C1_BASE, I2C2_BASE, I2C3_BASE, I2C4_BASE, I2C5_BASE, I2C6_BASE, I2C7_BASE }\r
- /** Array initializer of I2C peripheral base pointers */\r
- #define I2C_BASE_PTRS { I2C0, I2C1, I2C2, I2C3, I2C4, I2C5, I2C6, I2C7 }\r
+/** Peripheral I2C0 base address */\r
+#define I2C0_BASE (0x40086000u)\r
+/** Peripheral I2C0 base pointer */\r
+#define I2C0 ((I2C_Type *)I2C0_BASE)\r
+/** Peripheral I2C1 base address */\r
+#define I2C1_BASE (0x40087000u)\r
+/** Peripheral I2C1 base pointer */\r
+#define I2C1 ((I2C_Type *)I2C1_BASE)\r
+/** Peripheral I2C2 base address */\r
+#define I2C2_BASE (0x40088000u)\r
+/** Peripheral I2C2 base pointer */\r
+#define I2C2 ((I2C_Type *)I2C2_BASE)\r
+/** Peripheral I2C3 base address */\r
+#define I2C3_BASE (0x40089000u)\r
+/** Peripheral I2C3 base pointer */\r
+#define I2C3 ((I2C_Type *)I2C3_BASE)\r
+/** Peripheral I2C4 base address */\r
+#define I2C4_BASE (0x4008A000u)\r
+/** Peripheral I2C4 base pointer */\r
+#define I2C4 ((I2C_Type *)I2C4_BASE)\r
+/** Peripheral I2C5 base address */\r
+#define I2C5_BASE (0x40096000u)\r
+/** Peripheral I2C5 base pointer */\r
+#define I2C5 ((I2C_Type *)I2C5_BASE)\r
+/** Peripheral I2C6 base address */\r
+#define I2C6_BASE (0x40097000u)\r
+/** Peripheral I2C6 base pointer */\r
+#define I2C6 ((I2C_Type *)I2C6_BASE)\r
+/** Peripheral I2C7 base address */\r
+#define I2C7_BASE (0x40098000u)\r
+/** Peripheral I2C7 base pointer */\r
+#define I2C7 ((I2C_Type *)I2C7_BASE)\r
+/** Array initializer of I2C peripheral base addresses */\r
+#define I2C_BASE_ADDRS \\r
+ { \\r
+ I2C0_BASE, I2C1_BASE, I2C2_BASE, I2C3_BASE, I2C4_BASE, I2C5_BASE, I2C6_BASE, I2C7_BASE \\r
+ }\r
+/** Array initializer of I2C peripheral base pointers */\r
+#define I2C_BASE_PTRS \\r
+ { \\r
+ I2C0, I2C1, I2C2, I2C3, I2C4, I2C5, I2C6, I2C7 \\r
+ }\r
#endif\r
/** Interrupt vectors for the I2C peripheral type */\r
-#define I2C_IRQS { FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, FLEXCOMM6_IRQn, FLEXCOMM7_IRQn }\r
+#define I2C_IRQS \\r
+ { \\r
+ FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, \\r
+ FLEXCOMM6_IRQn, FLEXCOMM7_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group I2C_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- I2S Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** I2S - Register Layout Typedef */\r
-typedef struct {\r
- uint8_t RESERVED_0[3072];\r
- __IO uint32_t CFG1; /**< Configuration register 1 for the primary channel pair., offset: 0xC00 */\r
- __IO uint32_t CFG2; /**< Configuration register 2 for the primary channel pair., offset: 0xC04 */\r
- __IO uint32_t STAT; /**< Status register for the primary channel pair., offset: 0xC08 */\r
- uint8_t RESERVED_1[16];\r
- __IO uint32_t DIV; /**< Clock divider, used by all channel pairs., offset: 0xC1C */\r
- struct { /* offset: 0xC20, array step: 0x20 */\r
- __IO uint32_t PCFG1; /**< Configuration register 1 for channel pair, array offset: 0xC20, array step: 0x20 */\r
- __IO uint32_t PCFG2; /**< Configuration register 2 for channel pair, array offset: 0xC24, array step: 0x20 */\r
- __IO uint32_t PSTAT; /**< Status register for channel pair, array offset: 0xC28, array step: 0x20 */\r
- uint8_t RESERVED_0[20];\r
- } SECCHANNEL[3];\r
- uint8_t RESERVED_2[384];\r
- __IO uint32_t FIFOCFG; /**< FIFO configuration and enable register., offset: 0xE00 */\r
- __IO uint32_t FIFOSTAT; /**< FIFO status register., offset: 0xE04 */\r
- __IO uint32_t FIFOTRIG; /**< FIFO trigger settings for interrupt and DMA request., offset: 0xE08 */\r
- uint8_t RESERVED_3[4];\r
- __IO uint32_t FIFOINTENSET; /**< FIFO interrupt enable set (enable) and read register., offset: 0xE10 */\r
- __IO uint32_t FIFOINTENCLR; /**< FIFO interrupt enable clear (disable) and read register., offset: 0xE14 */\r
- __I uint32_t FIFOINTSTAT; /**< FIFO interrupt status register., offset: 0xE18 */\r
- uint8_t RESERVED_4[4];\r
- __O uint32_t FIFOWR; /**< FIFO write data., offset: 0xE20 */\r
- __O uint32_t FIFOWR48H; /**< FIFO write data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data and not using DMA., offset: 0xE24 */\r
- uint8_t RESERVED_5[8];\r
- __I uint32_t FIFORD; /**< FIFO read data., offset: 0xE30 */\r
- __I uint32_t FIFORD48H; /**< FIFO read data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data and not using DMA., offset: 0xE34 */\r
- uint8_t RESERVED_6[8];\r
- __I uint32_t FIFORDNOPOP; /**< FIFO data read with no FIFO pop., offset: 0xE40 */\r
- __I uint32_t FIFORD48HNOPOP; /**< FIFO data read for upper data bits with no FIFO pop. May only be used if the I2S is configured for 2x 24-bit data and not using DMA., offset: 0xE44 */\r
- uint8_t RESERVED_7[436];\r
- __I uint32_t ID; /**< I2S Module identification, offset: 0xFFC */\r
+typedef struct\r
+{\r
+ uint8_t RESERVED_0[3072];\r
+ __IO uint32_t CFG1; /**< Configuration register 1 for the primary channel pair., offset: 0xC00 */\r
+ __IO uint32_t CFG2; /**< Configuration register 2 for the primary channel pair., offset: 0xC04 */\r
+ __IO uint32_t STAT; /**< Status register for the primary channel pair., offset: 0xC08 */\r
+ uint8_t RESERVED_1[16];\r
+ __IO uint32_t DIV; /**< Clock divider, used by all channel pairs., offset: 0xC1C */\r
+ uint8_t RESERVED_2[480];\r
+ __IO uint32_t FIFOCFG; /**< FIFO configuration and enable register., offset: 0xE00 */\r
+ __IO uint32_t FIFOSTAT; /**< FIFO status register., offset: 0xE04 */\r
+ __IO uint32_t FIFOTRIG; /**< FIFO trigger settings for interrupt and DMA request., offset: 0xE08 */\r
+ uint8_t RESERVED_3[4];\r
+ __IO uint32_t FIFOINTENSET; /**< FIFO interrupt enable set (enable) and read register., offset: 0xE10 */\r
+ __IO uint32_t FIFOINTENCLR; /**< FIFO interrupt enable clear (disable) and read register., offset: 0xE14 */\r
+ __I uint32_t FIFOINTSTAT; /**< FIFO interrupt status register., offset: 0xE18 */\r
+ uint8_t RESERVED_4[4];\r
+ __O uint32_t FIFOWR; /**< FIFO write data., offset: 0xE20 */\r
+ __O uint32_t FIFOWR48H; /**< FIFO write data for upper data bits. May only be used if the I2S is configured for 2x\r
+ 24-bit data and not using DMA., offset: 0xE24 */\r
+ uint8_t RESERVED_5[8];\r
+ __I uint32_t FIFORD; /**< FIFO read data., offset: 0xE30 */\r
+ __I uint32_t FIFORD48H; /**< FIFO read data for upper data bits. May only be used if the I2S is configured for 2x\r
+ 24-bit data and not using DMA., offset: 0xE34 */\r
+ uint8_t RESERVED_6[8];\r
+ __I uint32_t FIFORDNOPOP; /**< FIFO data read with no FIFO pop., offset: 0xE40 */\r
+ __I uint32_t FIFORD48HNOPOP; /**< FIFO data read for upper data bits with no FIFO pop. May only be used if the I2S\r
+ is configured for 2x 24-bit data and not using DMA., offset: 0xE44 */\r
+ uint8_t RESERVED_7[436];\r
+ __I uint32_t ID; /**< I2S Module identification, offset: 0xFFC */\r
} I2S_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CFG1 - Configuration register 1 for the primary channel pair. */\r
/*! @{ */\r
-#define I2S_CFG1_MAINENABLE_MASK (0x1U)\r
-#define I2S_CFG1_MAINENABLE_SHIFT (0U)\r
+#define I2S_CFG1_MAINENABLE_MASK (0x1U)\r
+#define I2S_CFG1_MAINENABLE_SHIFT (0U)\r
/*! MAINENABLE - Main enable for I 2S function in this Flexcomm\r
- * 0b0..All I 2S channel pairs in this Flexcomm are disabled and the internal state machines, counters, and flags are reset. No other channel pairs can be enabled.\r
- * 0b1..This I 2S channel pair is enabled. Other channel pairs in this Flexcomm may be enabled in their individual PAIRENABLE bits.\r
- */\r
-#define I2S_CFG1_MAINENABLE(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_MAINENABLE_SHIFT)) & I2S_CFG1_MAINENABLE_MASK)\r
-#define I2S_CFG1_DATAPAUSE_MASK (0x2U)\r
-#define I2S_CFG1_DATAPAUSE_SHIFT (1U)\r
-/*! DATAPAUSE - Data flow Pause. Allows pausing data flow between the I2S serializer/deserializer and the FIFO. This could be done in order to change streams, or while restarting after a data underflow or overflow. When paused, FIFO operations can be done without corrupting data that is in the process of being sent or received. Once a data pause has been requested, the interface may need to complete sending data that was in progress before interrupting the flow of data. Software must check that the pause is actually in effect before taking action. This is done by monitoring the DATAPAUSED flag in the STAT register. When DATAPAUSE is cleared, data transfer will resume at the beginning of the next frame.\r
+ * 0b0..All I 2S channel pairs in this Flexcomm are disabled and the internal state machines, counters, and flags\r
+ * are reset. No other channel pairs can be enabled.\r
+ * 0b1..This I 2S channel pair is enabled. Other channel pairs in this Flexcomm may be enabled in their individual\r
+ * PAIRENABLE bits.\r
+ */\r
+#define I2S_CFG1_MAINENABLE(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_MAINENABLE_SHIFT)) & I2S_CFG1_MAINENABLE_MASK)\r
+#define I2S_CFG1_DATAPAUSE_MASK (0x2U)\r
+#define I2S_CFG1_DATAPAUSE_SHIFT (1U)\r
+/*! DATAPAUSE - Data flow Pause. Allows pausing data flow between the I2S serializer/deserializer\r
+ * and the FIFO. This could be done in order to change streams, or while restarting after a data\r
+ * underflow or overflow. When paused, FIFO operations can be done without corrupting data that is\r
+ * in the process of being sent or received. Once a data pause has been requested, the interface\r
+ * may need to complete sending data that was in progress before interrupting the flow of data.\r
+ * Software must check that the pause is actually in effect before taking action. This is done by\r
+ * monitoring the DATAPAUSED flag in the STAT register. When DATAPAUSE is cleared, data transfer\r
+ * will resume at the beginning of the next frame.\r
* 0b0..Normal operation, or resuming normal operation at the next frame if the I2S has already been paused.\r
* 0b1..A pause in the data flow is being requested. It is in effect when DATAPAUSED in STAT = 1.\r
*/\r
-#define I2S_CFG1_DATAPAUSE(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_DATAPAUSE_SHIFT)) & I2S_CFG1_DATAPAUSE_MASK)\r
-#define I2S_CFG1_PAIRCOUNT_MASK (0xCU)\r
-#define I2S_CFG1_PAIRCOUNT_SHIFT (2U)\r
-/*! PAIRCOUNT - Provides the number of I2S channel pairs in this Flexcomm This is a read-only field whose value may be different in other Flexcomms. 00 = there is 1 I2S channel pair in this Flexcomm. 01 = there are 2 I2S channel pairs in this Flexcomm. 10 = there are 3 I2S channel pairs in this Flexcomm. 11 = there are 4 I2S channel pairs in this Flexcomm.\r
+#define I2S_CFG1_DATAPAUSE(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_DATAPAUSE_SHIFT)) & I2S_CFG1_DATAPAUSE_MASK)\r
+#define I2S_CFG1_PAIRCOUNT_MASK (0xCU)\r
+#define I2S_CFG1_PAIRCOUNT_SHIFT (2U)\r
+/*! PAIRCOUNT - Provides the number of I2S channel pairs in this Flexcomm This is a read-only field\r
+ * whose value may be different in other Flexcomms. 00 = there is 1 I2S channel pair in this\r
+ * Flexcomm. 01 = there are 2 I2S channel pairs in this Flexcomm. 10 = there are 3 I2S channel pairs\r
+ * in this Flexcomm. 11 = there are 4 I2S channel pairs in this Flexcomm.\r
* 0b00..1 I2S channel pairs in this flexcomm\r
* 0b01..2 I2S channel pairs in this flexcomm\r
* 0b10..3 I2S channel pairs in this flexcomm\r
* 0b11..4 I2S channel pairs in this flexcomm\r
*/\r
-#define I2S_CFG1_PAIRCOUNT(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_PAIRCOUNT_SHIFT)) & I2S_CFG1_PAIRCOUNT_MASK)\r
-#define I2S_CFG1_MSTSLVCFG_MASK (0x30U)\r
-#define I2S_CFG1_MSTSLVCFG_SHIFT (4U)\r
-/*! MSTSLVCFG - Master / slave configuration selection, determining how SCK and WS are used by all channel pairs in this Flexcomm.\r
- * 0b00..Normal slave mode, the default mode. SCK and WS are received from a master and used to transmit or receive data.\r
- * 0b01..WS synchronized master. WS is received from another master and used to synchronize the generation of SCK, when divided from the Flexcomm function clock.\r
- * 0b10..Master using an existing SCK. SCK is received and used directly to generate WS, as well as transmitting or receiving data.\r
- * 0b11..Normal master mode. SCK and WS are generated so they can be sent to one or more slave devices.\r
- */\r
-#define I2S_CFG1_MSTSLVCFG(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_MSTSLVCFG_SHIFT)) & I2S_CFG1_MSTSLVCFG_MASK)\r
-#define I2S_CFG1_MODE_MASK (0xC0U)\r
-#define I2S_CFG1_MODE_SHIFT (6U)\r
-/*! MODE - Selects the basic I2S operating mode. Other configurations modify this to obtain all supported cases. See Formats and modes for examples.\r
- * 0b00..I2S mode a.k.a. 'classic' mode. WS has a 50% duty cycle, with (for each enabled channel pair) one piece of left channel data occurring during the first phase, and one pieces of right channel data occurring during the second phase. In this mode, the data region begins one clock after the leading WS edge for the frame. For a 50% WS duty cycle, FRAMELEN must define an even number of I2S clocks for the frame. If FRAMELEN defines an odd number of clocks per frame, the extra clock will occur on the right.\r
+#define I2S_CFG1_PAIRCOUNT(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_PAIRCOUNT_SHIFT)) & I2S_CFG1_PAIRCOUNT_MASK)\r
+#define I2S_CFG1_MSTSLVCFG_MASK (0x30U)\r
+#define I2S_CFG1_MSTSLVCFG_SHIFT (4U)\r
+/*! MSTSLVCFG - Master / slave configuration selection, determining how SCK and WS are used by all channel pairs in this\r
+ * Flexcomm. 0b00..Normal slave mode, the default mode. SCK and WS are received from a master and used to transmit or\r
+ * receive data. 0b01..WS synchronized master. WS is received from another master and used to synchronize the generation\r
+ * of SCK, when divided from the Flexcomm function clock. 0b10..Master using an existing SCK. SCK is received and used\r
+ * directly to generate WS, as well as transmitting or receiving data. 0b11..Normal master mode. SCK and WS are\r
+ * generated so they can be sent to one or more slave devices.\r
+ */\r
+#define I2S_CFG1_MSTSLVCFG(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_MSTSLVCFG_SHIFT)) & I2S_CFG1_MSTSLVCFG_MASK)\r
+#define I2S_CFG1_MODE_MASK (0xC0U)\r
+#define I2S_CFG1_MODE_SHIFT (6U)\r
+/*! MODE - Selects the basic I2S operating mode. Other configurations modify this to obtain all\r
+ * supported cases. See Formats and modes for examples.\r
+ * 0b00..I2S mode a.k.a. 'classic' mode. WS has a 50% duty cycle, with (for each enabled channel pair) one piece\r
+ * of left channel data occurring during the first phase, and one pieces of right channel data occurring\r
+ * during the second phase. In this mode, the data region begins one clock after the leading WS edge for the\r
+ * frame. For a 50% WS duty cycle, FRAMELEN must define an even number of I2S clocks for the frame. If\r
+ * FRAMELEN defines an odd number of clocks per frame, the extra clock will occur on the right.\r
* 0b01..DSP mode where WS has a 50% duty cycle. See remark for mode 0.\r
* 0b10..DSP mode where WS has a one clock long pulse at the beginning of each data frame.\r
* 0b11..DSP mode where WS has a one data slot long pulse at the beginning of each data frame.\r
*/\r
-#define I2S_CFG1_MODE(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_MODE_SHIFT)) & I2S_CFG1_MODE_MASK)\r
-#define I2S_CFG1_RIGHTLOW_MASK (0x100U)\r
-#define I2S_CFG1_RIGHTLOW_SHIFT (8U)\r
-/*! RIGHTLOW - Right channel data is in the Low portion of FIFO data. Essentially, this swaps left and right channel data as it is transferred to or from the FIFO. This bit is not used if the data width is greater than 24 bits or if PDMDATA = 1. Note that if the ONECHANNEL field (bit 10 of this register) = 1, the one channel to be used is the nominally the left channel. POSITION can still place that data in the frame where right channel data is normally located. if all enabled channel pairs have ONECHANNEL = 1, then RIGHTLOW = 1 is not allowed.\r
- * 0b0..The right channel is taken from the high part of the FIFO data. For example, when data is 16 bits, FIFO bits 31:16 are used for the right channel.\r
- * 0b1..The right channel is taken from the low part of the FIFO data. For example, when data is 16 bits, FIFO bits 15:0 are used for the right channel.\r
- */\r
-#define I2S_CFG1_RIGHTLOW(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_RIGHTLOW_SHIFT)) & I2S_CFG1_RIGHTLOW_MASK)\r
-#define I2S_CFG1_LEFTJUST_MASK (0x200U)\r
-#define I2S_CFG1_LEFTJUST_SHIFT (9U)\r
+#define I2S_CFG1_MODE(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_MODE_SHIFT)) & I2S_CFG1_MODE_MASK)\r
+#define I2S_CFG1_RIGHTLOW_MASK (0x100U)\r
+#define I2S_CFG1_RIGHTLOW_SHIFT (8U)\r
+/*! RIGHTLOW - Right channel data is in the Low portion of FIFO data. Essentially, this swaps left\r
+ * and right channel data as it is transferred to or from the FIFO. This bit is not used if the\r
+ * data width is greater than 24 bits or if PDMDATA = 1. Note that if the ONECHANNEL field (bit 10\r
+ * of this register) = 1, the one channel to be used is the nominally the left channel. POSITION\r
+ * can still place that data in the frame where right channel data is normally located. if all\r
+ * enabled channel pairs have ONECHANNEL = 1, then RIGHTLOW = 1 is not allowed.\r
+ * 0b0..The right channel is taken from the high part of the FIFO data. For example, when data is 16 bits, FIFO\r
+ * bits 31:16 are used for the right channel.\r
+ * 0b1..The right channel is taken from the low part of the FIFO data. For example, when data is 16 bits, FIFO\r
+ * bits 15:0 are used for the right channel.\r
+ */\r
+#define I2S_CFG1_RIGHTLOW(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_RIGHTLOW_SHIFT)) & I2S_CFG1_RIGHTLOW_MASK)\r
+#define I2S_CFG1_LEFTJUST_MASK (0x200U)\r
+#define I2S_CFG1_LEFTJUST_SHIFT (9U)\r
/*! LEFTJUST - Left Justify data.\r
- * 0b0..Data is transferred between the FIFO and the I2S serializer/deserializer right justified, i.e. starting from bit 0 and continuing to the position defined by DATALEN. This would correspond to right justified data in the stream on the data bus.\r
- * 0b1..Data is transferred between the FIFO and the I2S serializer/deserializer left justified, i.e. starting from the MSB of the FIFO entry and continuing for the number of bits defined by DATALEN. This would correspond to left justified data in the stream on the data bus.\r
- */\r
-#define I2S_CFG1_LEFTJUST(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_LEFTJUST_SHIFT)) & I2S_CFG1_LEFTJUST_MASK)\r
-#define I2S_CFG1_ONECHANNEL_MASK (0x400U)\r
-#define I2S_CFG1_ONECHANNEL_SHIFT (10U)\r
-/*! ONECHANNEL - Single channel mode. Applies to both transmit and receive. This configuration bit applies only to the first I2S channel pair. Other channel pairs may select this mode independently in their separate CFG1 registers.\r
+ * 0b0..Data is transferred between the FIFO and the I2S serializer/deserializer right justified, i.e. starting\r
+ * from bit 0 and continuing to the position defined by DATALEN. This would correspond to right justified data\r
+ * in the stream on the data bus.\r
+ * 0b1..Data is transferred between the FIFO and the I2S serializer/deserializer left justified, i.e. starting\r
+ * from the MSB of the FIFO entry and continuing for the number of bits defined by DATALEN. This would\r
+ * correspond to left justified data in the stream on the data bus.\r
+ */\r
+#define I2S_CFG1_LEFTJUST(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_LEFTJUST_SHIFT)) & I2S_CFG1_LEFTJUST_MASK)\r
+#define I2S_CFG1_ONECHANNEL_MASK (0x400U)\r
+#define I2S_CFG1_ONECHANNEL_SHIFT (10U)\r
+/*! ONECHANNEL - Single channel mode. Applies to both transmit and receive. This configuration bit\r
+ * applies only to the first I2S channel pair. Other channel pairs may select this mode\r
+ * independently in their separate CFG1 registers.\r
* 0b0..I2S data for this channel pair is treated as left and right channels.\r
- * 0b1..I2S data for this channel pair is treated as a single channel, functionally the left channel for this pair. In mode 0 only, the right side of the frame begins at POSITION = 0x100. This is because mode 0 makes a clear distinction between the left and right sides of the frame. When ONECHANNEL = 1, the single channel of data may be placed on the right by setting POSITION to 0x100 + the data position within the right side (e.g. 0x108 would place data starting at the 8th clock after the middle of the frame). In other modes, data for the single channel of data is placed at the clock defined by POSITION.\r
- */\r
-#define I2S_CFG1_ONECHANNEL(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_ONECHANNEL_SHIFT)) & I2S_CFG1_ONECHANNEL_MASK)\r
-#define I2S_CFG1_PDMDATA_MASK (0x800U)\r
-#define I2S_CFG1_PDMDATA_SHIFT (11U)\r
-/*! PDMDATA - PDM Data selection. This bit controls the data source for I2S transmit, and cannot be set in Rx mode. This bit only has an effect if the device the Flexcomm resides in includes a D-Mic subsystem. For the LPC55xx, this bit applies only to Flexcomm 6,7.\r
- * 0b0..Normal operation, data is transferred to or from the Flexcomm FIFO.\r
- * 0b1..The data source is the D-Mic subsystem. When PDMDATA = 1, only the primary channel pair can be used in this Flexcomm. If ONECHANNEL = 1, only the PDM left data is used. the WS rate must match the Fs (sample rate) of the D-Mic decimator. A rate mismatch will at some point cause the I2S to overrun or underrun.\r
- */\r
-#define I2S_CFG1_PDMDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_PDMDATA_SHIFT)) & I2S_CFG1_PDMDATA_MASK)\r
-#define I2S_CFG1_SCK_POL_MASK (0x1000U)\r
-#define I2S_CFG1_SCK_POL_SHIFT (12U)\r
+ * 0b1..I2S data for this channel pair is treated as a single channel, functionally the left channel for this\r
+ * pair. In mode 0 only, the right side of the frame begins at POSITION = 0x100. This is because mode 0 makes a\r
+ * clear distinction between the left and right sides of the frame. When ONECHANNEL = 1, the single channel\r
+ * of data may be placed on the right by setting POSITION to 0x100 + the data position within the right side\r
+ * (e.g. 0x108 would place data starting at the 8th clock after the middle of the frame). In other modes, data\r
+ * for the single channel of data is placed at the clock defined by POSITION.\r
+ */\r
+#define I2S_CFG1_ONECHANNEL(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_ONECHANNEL_SHIFT)) & I2S_CFG1_ONECHANNEL_MASK)\r
+#define I2S_CFG1_SCK_POL_MASK (0x1000U)\r
+#define I2S_CFG1_SCK_POL_SHIFT (12U)\r
/*! SCK_POL - SCK polarity.\r
* 0b0..Data is launched on SCK falling edges and sampled on SCK rising edges (standard for I2S).\r
* 0b1..Data is launched on SCK rising edges and sampled on SCK falling edges.\r
*/\r
-#define I2S_CFG1_SCK_POL(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_SCK_POL_SHIFT)) & I2S_CFG1_SCK_POL_MASK)\r
-#define I2S_CFG1_WS_POL_MASK (0x2000U)\r
-#define I2S_CFG1_WS_POL_SHIFT (13U)\r
+#define I2S_CFG1_SCK_POL(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_SCK_POL_SHIFT)) & I2S_CFG1_SCK_POL_MASK)\r
+#define I2S_CFG1_WS_POL_MASK (0x2000U)\r
+#define I2S_CFG1_WS_POL_SHIFT (13U)\r
/*! WS_POL - WS polarity.\r
* 0b0..Data frames begin at a falling edge of WS (standard for classic I2S).\r
- * 0b1..WS is inverted, resulting in a data frame beginning at a rising edge of WS (standard for most 'non-classic' variations of I2S).\r
+ * 0b1..WS is inverted, resulting in a data frame beginning at a rising edge of WS (standard for most 'non-classic'\r
+ * variations of I2S).\r
*/\r
-#define I2S_CFG1_WS_POL(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_WS_POL_SHIFT)) & I2S_CFG1_WS_POL_MASK)\r
-#define I2S_CFG1_DATALEN_MASK (0x1F0000U)\r
-#define I2S_CFG1_DATALEN_SHIFT (16U)\r
-#define I2S_CFG1_DATALEN(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_DATALEN_SHIFT)) & I2S_CFG1_DATALEN_MASK)\r
+#define I2S_CFG1_WS_POL(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_WS_POL_SHIFT)) & I2S_CFG1_WS_POL_MASK)\r
+#define I2S_CFG1_DATALEN_MASK (0x1F0000U)\r
+#define I2S_CFG1_DATALEN_SHIFT (16U)\r
+/*! DATALEN - Data Length, minus 1 encoded, defines the number of data bits to be transmitted or\r
+ * received for all I2S channel pairs in this Flexcomm. Note that data is only driven to or received\r
+ * from SDA for the number of bits defined by DATALEN. DATALEN is also used in these ways by the\r
+ * I2S: Determines the size of data transfers between the FIFO and the I2S\r
+ * serializer/deserializer. See FIFO buffer configurations and usage In mode 1, 2, and 3, determines the location of\r
+ * right data following left data in the frame. In mode 3 (where WS has a one data slot long pulse\r
+ * at the beginning of each data frame) determines the duration of the WS pulse. Values: 0x00 to\r
+ * 0x02 = not supported 0x03 = data is 4 bits in length 0x04 = data is 5 bits in length 0x1F =\r
+ * data is 32 bits in length\r
+ */\r
+#define I2S_CFG1_DATALEN(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG1_DATALEN_SHIFT)) & I2S_CFG1_DATALEN_MASK)\r
/*! @} */\r
\r
/*! @name CFG2 - Configuration register 2 for the primary channel pair. */\r
/*! @{ */\r
-#define I2S_CFG2_FRAMELEN_MASK (0x1FFU)\r
-#define I2S_CFG2_FRAMELEN_SHIFT (0U)\r
-#define I2S_CFG2_FRAMELEN(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG2_FRAMELEN_SHIFT)) & I2S_CFG2_FRAMELEN_MASK)\r
-#define I2S_CFG2_POSITION_MASK (0x1FF0000U)\r
-#define I2S_CFG2_POSITION_SHIFT (16U)\r
-#define I2S_CFG2_POSITION(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG2_POSITION_SHIFT)) & I2S_CFG2_POSITION_MASK)\r
+#define I2S_CFG2_FRAMELEN_MASK (0x1FFU)\r
+#define I2S_CFG2_FRAMELEN_SHIFT (0U)\r
+/*! FRAMELEN - Frame Length, minus 1 encoded, defines the number of clocks and data bits in the\r
+ * frames that this channel pair participates in. See Frame format. 0x000 to 0x002 = not supported\r
+ * 0x003 = frame is 4 bits in total length 0x004 = frame is 5 bits in total length 0x1FF = frame is\r
+ * 512 bits in total length if FRAMELEN is an defines an odd length frame (e.g. 33 clocks) in\r
+ * mode 0 or 1, the extra clock appears in the right half. When MODE = 3, FRAMELEN must be larger\r
+ * than DATALEN in order for the WS pulse to be generated correctly.\r
+ */\r
+#define I2S_CFG2_FRAMELEN(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG2_FRAMELEN_SHIFT)) & I2S_CFG2_FRAMELEN_MASK)\r
+#define I2S_CFG2_POSITION_MASK (0x1FF0000U)\r
+#define I2S_CFG2_POSITION_SHIFT (16U)\r
+/*! POSITION - Data Position. Defines the location within the frame of the data for this channel\r
+ * pair. POSITION + DATALEN must be less than FRAMELEN. See Frame format. When MODE = 0, POSITION\r
+ * defines the location of data in both the left phase and right phase, starting one clock after\r
+ * the WS edge. In other modes, POSITION defines the location of data within the entire frame.\r
+ * ONECHANNEL = 1 while MODE = 0 is a special case, see the description of ONECHANNEL. The\r
+ * combination of DATALEN and the POSITION fields of all channel pairs must be made such that the channels\r
+ * do not overlap within the frame. 0x000 = data begins at bit position 0 (the first bit\r
+ * position) within the frame or WS phase. 0x001 = data begins at bit position 1 within the frame or WS\r
+ * phase. 0x002 = data begins at bit position 2 within the frame or WS phase.\r
+ */\r
+#define I2S_CFG2_POSITION(x) (((uint32_t)(((uint32_t)(x)) << I2S_CFG2_POSITION_SHIFT)) & I2S_CFG2_POSITION_MASK)\r
/*! @} */\r
\r
/*! @name STAT - Status register for the primary channel pair. */\r
/*! @{ */\r
-#define I2S_STAT_BUSY_MASK (0x1U)\r
-#define I2S_STAT_BUSY_SHIFT (0U)\r
-/*! BUSY - Busy status for the primary channel pair. Other BUSY flags may be found in the STAT register for each channel pair.\r
- * 0b0..The transmitter/receiver for channel pair is currently idle.\r
- * 0b1..The transmitter/receiver for channel pair is currently processing data.\r
- */\r
-#define I2S_STAT_BUSY(x) (((uint32_t)(((uint32_t)(x)) << I2S_STAT_BUSY_SHIFT)) & I2S_STAT_BUSY_MASK)\r
-#define I2S_STAT_SLVFRMERR_MASK (0x2U)\r
-#define I2S_STAT_SLVFRMERR_SHIFT (1U)\r
-/*! SLVFRMERR - Slave Frame Error flag. This applies when at least one channel pair is operating as a slave. An error indicates that the incoming WS signal did not transition as expected due to a mismatch between FRAMELEN and the actual incoming I2S stream.\r
+#define I2S_STAT_BUSY_MASK (0x1U)\r
+#define I2S_STAT_BUSY_SHIFT (0U)\r
+/*! BUSY - Busy status for the primary channel pair. Other BUSY flags may be found in the STAT register for each channel\r
+ * pair. 0b0..The transmitter/receiver for channel pair is currently idle. 0b1..The transmitter/receiver for channel\r
+ * pair is currently processing data.\r
+ */\r
+#define I2S_STAT_BUSY(x) (((uint32_t)(((uint32_t)(x)) << I2S_STAT_BUSY_SHIFT)) & I2S_STAT_BUSY_MASK)\r
+#define I2S_STAT_SLVFRMERR_MASK (0x2U)\r
+#define I2S_STAT_SLVFRMERR_SHIFT (1U)\r
+/*! SLVFRMERR - Slave Frame Error flag. This applies when at least one channel pair is operating as\r
+ * a slave. An error indicates that the incoming WS signal did not transition as expected due to\r
+ * a mismatch between FRAMELEN and the actual incoming I2S stream.\r
* 0b0..No error has been recorded.\r
- * 0b1..An error has been recorded for some channel pair that is operating in slave mode. ERROR is cleared by writing a 1 to this bit position.\r
- */\r
-#define I2S_STAT_SLVFRMERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_STAT_SLVFRMERR_SHIFT)) & I2S_STAT_SLVFRMERR_MASK)\r
-#define I2S_STAT_LR_MASK (0x4U)\r
-#define I2S_STAT_LR_SHIFT (2U)\r
-/*! LR - Left/Right indication. This flag is considered to be a debugging aid and is not expected to be used by an I2S driver. Valid when one channel pair is busy. Indicates left or right data being processed for the currently busy channel pair.\r
+ * 0b1..An error has been recorded for some channel pair that is operating in slave mode. ERROR is cleared by writing a\r
+ * 1 to this bit position.\r
+ */\r
+#define I2S_STAT_SLVFRMERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_STAT_SLVFRMERR_SHIFT)) & I2S_STAT_SLVFRMERR_MASK)\r
+#define I2S_STAT_LR_MASK (0x4U)\r
+#define I2S_STAT_LR_SHIFT (2U)\r
+/*! LR - Left/Right indication. This flag is considered to be a debugging aid and is not expected to\r
+ * be used by an I2S driver. Valid when one channel pair is busy. Indicates left or right data\r
+ * being processed for the currently busy channel pair.\r
* 0b0..Left channel.\r
* 0b1..Right channel.\r
*/\r
-#define I2S_STAT_LR(x) (((uint32_t)(((uint32_t)(x)) << I2S_STAT_LR_SHIFT)) & I2S_STAT_LR_MASK)\r
-#define I2S_STAT_DATAPAUSED_MASK (0x8U)\r
-#define I2S_STAT_DATAPAUSED_SHIFT (3U)\r
+#define I2S_STAT_LR(x) (((uint32_t)(((uint32_t)(x)) << I2S_STAT_LR_SHIFT)) & I2S_STAT_LR_MASK)\r
+#define I2S_STAT_DATAPAUSED_MASK (0x8U)\r
+#define I2S_STAT_DATAPAUSED_SHIFT (3U)\r
/*! DATAPAUSED - Data Paused status flag. Applies to all I2S channels\r
- * 0b0..Data is not currently paused. A data pause may have been requested but is not yet in force, waiting for an allowed pause point. Refer to the description of the DATAPAUSE control bit in the CFG1 register.\r
+ * 0b0..Data is not currently paused. A data pause may have been requested but is not yet in force, waiting for\r
+ * an allowed pause point. Refer to the description of the DATAPAUSE control bit in the CFG1 register.\r
* 0b1..A data pause has been requested and is now in force.\r
*/\r
-#define I2S_STAT_DATAPAUSED(x) (((uint32_t)(((uint32_t)(x)) << I2S_STAT_DATAPAUSED_SHIFT)) & I2S_STAT_DATAPAUSED_MASK)\r
+#define I2S_STAT_DATAPAUSED(x) (((uint32_t)(((uint32_t)(x)) << I2S_STAT_DATAPAUSED_SHIFT)) & I2S_STAT_DATAPAUSED_MASK)\r
/*! @} */\r
\r
/*! @name DIV - Clock divider, used by all channel pairs. */\r
/*! @{ */\r
-#define I2S_DIV_DIV_MASK (0xFFFU)\r
-#define I2S_DIV_DIV_SHIFT (0U)\r
-#define I2S_DIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << I2S_DIV_DIV_SHIFT)) & I2S_DIV_DIV_MASK)\r
-/*! @} */\r
-\r
-/*! @name SECCHANNEL_PCFG1 - Configuration register 1 for channel pair */\r
-/*! @{ */\r
-#define I2S_SECCHANNEL_PCFG1_PAIRENABLE_MASK (0x1U)\r
-#define I2S_SECCHANNEL_PCFG1_PAIRENABLE_SHIFT (0U)\r
-#define I2S_SECCHANNEL_PCFG1_PAIRENABLE(x) (((uint32_t)(((uint32_t)(x)) << I2S_SECCHANNEL_PCFG1_PAIRENABLE_SHIFT)) & I2S_SECCHANNEL_PCFG1_PAIRENABLE_MASK)\r
-#define I2S_SECCHANNEL_PCFG1_ONECHANNEL_MASK (0x400U)\r
-#define I2S_SECCHANNEL_PCFG1_ONECHANNEL_SHIFT (10U)\r
-#define I2S_SECCHANNEL_PCFG1_ONECHANNEL(x) (((uint32_t)(((uint32_t)(x)) << I2S_SECCHANNEL_PCFG1_ONECHANNEL_SHIFT)) & I2S_SECCHANNEL_PCFG1_ONECHANNEL_MASK)\r
-/*! @} */\r
-\r
-/* The count of I2S_SECCHANNEL_PCFG1 */\r
-#define I2S_SECCHANNEL_PCFG1_COUNT (3U)\r
-\r
-/*! @name SECCHANNEL_PCFG2 - Configuration register 2 for channel pair */\r
-/*! @{ */\r
-#define I2S_SECCHANNEL_PCFG2_POSITION_MASK (0x1FF0000U)\r
-#define I2S_SECCHANNEL_PCFG2_POSITION_SHIFT (16U)\r
-#define I2S_SECCHANNEL_PCFG2_POSITION(x) (((uint32_t)(((uint32_t)(x)) << I2S_SECCHANNEL_PCFG2_POSITION_SHIFT)) & I2S_SECCHANNEL_PCFG2_POSITION_MASK)\r
-/*! @} */\r
-\r
-/* The count of I2S_SECCHANNEL_PCFG2 */\r
-#define I2S_SECCHANNEL_PCFG2_COUNT (3U)\r
-\r
-/*! @name SECCHANNEL_PSTAT - Status register for channel pair */\r
-/*! @{ */\r
-#define I2S_SECCHANNEL_PSTAT_BUSY_MASK (0x1U)\r
-#define I2S_SECCHANNEL_PSTAT_BUSY_SHIFT (0U)\r
-#define I2S_SECCHANNEL_PSTAT_BUSY(x) (((uint32_t)(((uint32_t)(x)) << I2S_SECCHANNEL_PSTAT_BUSY_SHIFT)) & I2S_SECCHANNEL_PSTAT_BUSY_MASK)\r
-#define I2S_SECCHANNEL_PSTAT_SLVFRMERR_MASK (0x2U)\r
-#define I2S_SECCHANNEL_PSTAT_SLVFRMERR_SHIFT (1U)\r
-#define I2S_SECCHANNEL_PSTAT_SLVFRMERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_SECCHANNEL_PSTAT_SLVFRMERR_SHIFT)) & I2S_SECCHANNEL_PSTAT_SLVFRMERR_MASK)\r
-#define I2S_SECCHANNEL_PSTAT_LR_MASK (0x4U)\r
-#define I2S_SECCHANNEL_PSTAT_LR_SHIFT (2U)\r
-#define I2S_SECCHANNEL_PSTAT_LR(x) (((uint32_t)(((uint32_t)(x)) << I2S_SECCHANNEL_PSTAT_LR_SHIFT)) & I2S_SECCHANNEL_PSTAT_LR_MASK)\r
-#define I2S_SECCHANNEL_PSTAT_DATAPAUSED_MASK (0x8U)\r
-#define I2S_SECCHANNEL_PSTAT_DATAPAUSED_SHIFT (3U)\r
-#define I2S_SECCHANNEL_PSTAT_DATAPAUSED(x) (((uint32_t)(((uint32_t)(x)) << I2S_SECCHANNEL_PSTAT_DATAPAUSED_SHIFT)) & I2S_SECCHANNEL_PSTAT_DATAPAUSED_MASK)\r
+#define I2S_DIV_DIV_MASK (0xFFFU)\r
+#define I2S_DIV_DIV_SHIFT (0U)\r
+/*! DIV - This field controls how this I2S block uses the Flexcomm function clock. 0x000 = The\r
+ * Flexcomm function clock is used directly. 0x001 = The Flexcomm function clock is divided by 2.\r
+ * 0x002 = The Flexcomm function clock is divided by 3. 0xFFF = The Flexcomm function clock is\r
+ * divided by 4,096.\r
+ */\r
+#define I2S_DIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << I2S_DIV_DIV_SHIFT)) & I2S_DIV_DIV_MASK)\r
/*! @} */\r
\r
-/* The count of I2S_SECCHANNEL_PSTAT */\r
-#define I2S_SECCHANNEL_PSTAT_COUNT (3U)\r
-\r
/*! @name FIFOCFG - FIFO configuration and enable register. */\r
/*! @{ */\r
-#define I2S_FIFOCFG_ENABLETX_MASK (0x1U)\r
-#define I2S_FIFOCFG_ENABLETX_SHIFT (0U)\r
+#define I2S_FIFOCFG_ENABLETX_MASK (0x1U)\r
+#define I2S_FIFOCFG_ENABLETX_SHIFT (0U)\r
/*! ENABLETX - Enable the transmit FIFO.\r
* 0b0..The transmit FIFO is not enabled.\r
* 0b1..The transmit FIFO is enabled.\r
*/\r
-#define I2S_FIFOCFG_ENABLETX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_ENABLETX_SHIFT)) & I2S_FIFOCFG_ENABLETX_MASK)\r
-#define I2S_FIFOCFG_ENABLERX_MASK (0x2U)\r
-#define I2S_FIFOCFG_ENABLERX_SHIFT (1U)\r
+#define I2S_FIFOCFG_ENABLETX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_ENABLETX_SHIFT)) & I2S_FIFOCFG_ENABLETX_MASK)\r
+#define I2S_FIFOCFG_ENABLERX_MASK (0x2U)\r
+#define I2S_FIFOCFG_ENABLERX_SHIFT (1U)\r
/*! ENABLERX - Enable the receive FIFO.\r
* 0b0..The receive FIFO is not enabled.\r
* 0b1..The receive FIFO is enabled.\r
*/\r
-#define I2S_FIFOCFG_ENABLERX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_ENABLERX_SHIFT)) & I2S_FIFOCFG_ENABLERX_MASK)\r
-#define I2S_FIFOCFG_TXI2SE0_MASK (0x4U)\r
-#define I2S_FIFOCFG_TXI2SE0_SHIFT (2U)\r
-/*! TXI2SE0 - Transmit I2S empty 0. Determines the value sent by the I2S in transmit mode if the TX FIFO becomes empty. This value is sent repeatedly until the I2S is paused, the error is cleared, new data is provided, and the I2S is un-paused.\r
- * 0b0..If the TX FIFO becomes empty, the last value is sent. This setting may be used when the data length is 24 bits or less, or when MONO = 1 for this channel pair.\r
- * 0b1..If the TX FIFO becomes empty, 0 is sent. Use if the data length is greater than 24 bits or if zero fill is preferred.\r
- */\r
-#define I2S_FIFOCFG_TXI2SE0(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_TXI2SE0_SHIFT)) & I2S_FIFOCFG_TXI2SE0_MASK)\r
-#define I2S_FIFOCFG_PACK48_MASK (0x8U)\r
-#define I2S_FIFOCFG_PACK48_SHIFT (3U)\r
-/*! PACK48 - Packing format for 48-bit data. This relates to how data is entered into or taken from the FIFO by software or DMA.\r
- * 0b0..48-bit I2S FIFO entries are handled as all 24-bit values.\r
- * 0b1..48-bit I2S FIFO entries are handled as alternating 32-bit and 16-bit values.\r
- */\r
-#define I2S_FIFOCFG_PACK48(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_PACK48_SHIFT)) & I2S_FIFOCFG_PACK48_MASK)\r
-#define I2S_FIFOCFG_SIZE_MASK (0x30U)\r
-#define I2S_FIFOCFG_SIZE_SHIFT (4U)\r
-#define I2S_FIFOCFG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_SIZE_SHIFT)) & I2S_FIFOCFG_SIZE_MASK)\r
-#define I2S_FIFOCFG_DMATX_MASK (0x1000U)\r
-#define I2S_FIFOCFG_DMATX_SHIFT (12U)\r
+#define I2S_FIFOCFG_ENABLERX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_ENABLERX_SHIFT)) & I2S_FIFOCFG_ENABLERX_MASK)\r
+#define I2S_FIFOCFG_TXI2SE0_MASK (0x4U)\r
+#define I2S_FIFOCFG_TXI2SE0_SHIFT (2U)\r
+/*! TXI2SE0 - Transmit I2S empty 0. Determines the value sent by the I2S in transmit mode if the TX\r
+ * FIFO becomes empty. This value is sent repeatedly until the I2S is paused, the error is\r
+ * cleared, new data is provided, and the I2S is un-paused.\r
+ * 0b0..If the TX FIFO becomes empty, the last value is sent. This setting may be used when the data length is 24\r
+ * bits or less, or when MONO = 1 for this channel pair.\r
+ * 0b1..If the TX FIFO becomes empty, 0 is sent. Use if the data length is greater than 24 bits or if zero fill is\r
+ * preferred.\r
+ */\r
+#define I2S_FIFOCFG_TXI2SE0(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_TXI2SE0_SHIFT)) & I2S_FIFOCFG_TXI2SE0_MASK)\r
+#define I2S_FIFOCFG_PACK48_MASK (0x8U)\r
+#define I2S_FIFOCFG_PACK48_SHIFT (3U)\r
+/*! PACK48 - Packing format for 48-bit data. This relates to how data is entered into or taken from the FIFO by software\r
+ * or DMA. 0b0..48-bit I2S FIFO entries are handled as all 24-bit values. 0b1..48-bit I2S FIFO entries are handled as\r
+ * alternating 32-bit and 16-bit values.\r
+ */\r
+#define I2S_FIFOCFG_PACK48(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_PACK48_SHIFT)) & I2S_FIFOCFG_PACK48_MASK)\r
+#define I2S_FIFOCFG_SIZE_MASK (0x30U)\r
+#define I2S_FIFOCFG_SIZE_SHIFT (4U)\r
+/*! SIZE - FIFO size configuration. This is a read-only field. 0x0 = FIFO is configured as 16\r
+ * entries of 8 bits. 0x1, 0x2, 0x3 = not applicable to USART.\r
+ */\r
+#define I2S_FIFOCFG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_SIZE_SHIFT)) & I2S_FIFOCFG_SIZE_MASK)\r
+#define I2S_FIFOCFG_DMATX_MASK (0x1000U)\r
+#define I2S_FIFOCFG_DMATX_SHIFT (12U)\r
/*! DMATX - DMA configuration for transmit.\r
* 0b0..DMA is not used for the transmit function.\r
- * 0b1..Trigger DMA for the transmit function if the FIFO is not full. Generally, data interrupts would be disabled if DMA is enabled.\r
+ * 0b1..Trigger DMA for the transmit function if the FIFO is not full. Generally, data interrupts would be disabled if\r
+ * DMA is enabled.\r
*/\r
-#define I2S_FIFOCFG_DMATX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_DMATX_SHIFT)) & I2S_FIFOCFG_DMATX_MASK)\r
-#define I2S_FIFOCFG_DMARX_MASK (0x2000U)\r
-#define I2S_FIFOCFG_DMARX_SHIFT (13U)\r
+#define I2S_FIFOCFG_DMATX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_DMATX_SHIFT)) & I2S_FIFOCFG_DMATX_MASK)\r
+#define I2S_FIFOCFG_DMARX_MASK (0x2000U)\r
+#define I2S_FIFOCFG_DMARX_SHIFT (13U)\r
/*! DMARX - DMA configuration for receive.\r
* 0b0..DMA is not used for the receive function.\r
- * 0b1..Trigger DMA for the receive function if the FIFO is not empty. Generally, data interrupts would be disabled if DMA is enabled.\r
- */\r
-#define I2S_FIFOCFG_DMARX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_DMARX_SHIFT)) & I2S_FIFOCFG_DMARX_MASK)\r
-#define I2S_FIFOCFG_WAKETX_MASK (0x4000U)\r
-#define I2S_FIFOCFG_WAKETX_SHIFT (14U)\r
-/*! WAKETX - Wake-up for transmit FIFO level. This allows the device to be woken from reduced power modes (up to power-down, as long as the peripheral function works in that power mode) without enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware Wake-up control register.\r
+ * 0b1..Trigger DMA for the receive function if the FIFO is not empty. Generally, data interrupts would be disabled if\r
+ * DMA is enabled.\r
+ */\r
+#define I2S_FIFOCFG_DMARX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_DMARX_SHIFT)) & I2S_FIFOCFG_DMARX_MASK)\r
+#define I2S_FIFOCFG_WAKETX_MASK (0x4000U)\r
+#define I2S_FIFOCFG_WAKETX_SHIFT (14U)\r
+/*! WAKETX - Wake-up for transmit FIFO level. This allows the device to be woken from reduced power\r
+ * modes (up to power-down, as long as the peripheral function works in that power mode) without\r
+ * enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The\r
+ * CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware\r
+ * Wake-up control register.\r
* 0b0..Only enabled interrupts will wake up the device form reduced power modes.\r
- * 0b1..A device wake-up for DMA will occur if the transmit FIFO level reaches the value specified by TXLVL in FIFOTRIG, even when the TXLVL interrupt is not enabled.\r
- */\r
-#define I2S_FIFOCFG_WAKETX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_WAKETX_SHIFT)) & I2S_FIFOCFG_WAKETX_MASK)\r
-#define I2S_FIFOCFG_WAKERX_MASK (0x8000U)\r
-#define I2S_FIFOCFG_WAKERX_SHIFT (15U)\r
-/*! WAKERX - Wake-up for receive FIFO level. This allows the device to be woken from reduced power modes (up to power-down, as long as the peripheral function works in that power mode) without enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware Wake-up control register.\r
+ * 0b1..A device wake-up for DMA will occur if the transmit FIFO level reaches the value specified by TXLVL in\r
+ * FIFOTRIG, even when the TXLVL interrupt is not enabled.\r
+ */\r
+#define I2S_FIFOCFG_WAKETX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_WAKETX_SHIFT)) & I2S_FIFOCFG_WAKETX_MASK)\r
+#define I2S_FIFOCFG_WAKERX_MASK (0x8000U)\r
+#define I2S_FIFOCFG_WAKERX_SHIFT (15U)\r
+/*! WAKERX - Wake-up for receive FIFO level. This allows the device to be woken from reduced power\r
+ * modes (up to power-down, as long as the peripheral function works in that power mode) without\r
+ * enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The\r
+ * CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware\r
+ * Wake-up control register.\r
* 0b0..Only enabled interrupts will wake up the device form reduced power modes.\r
- * 0b1..A device wake-up for DMA will occur if the receive FIFO level reaches the value specified by RXLVL in FIFOTRIG, even when the RXLVL interrupt is not enabled.\r
+ * 0b1..A device wake-up for DMA will occur if the receive FIFO level reaches the value specified by RXLVL in\r
+ * FIFOTRIG, even when the RXLVL interrupt is not enabled.\r
*/\r
-#define I2S_FIFOCFG_WAKERX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_WAKERX_SHIFT)) & I2S_FIFOCFG_WAKERX_MASK)\r
-#define I2S_FIFOCFG_EMPTYTX_MASK (0x10000U)\r
-#define I2S_FIFOCFG_EMPTYTX_SHIFT (16U)\r
-#define I2S_FIFOCFG_EMPTYTX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_EMPTYTX_SHIFT)) & I2S_FIFOCFG_EMPTYTX_MASK)\r
-#define I2S_FIFOCFG_EMPTYRX_MASK (0x20000U)\r
-#define I2S_FIFOCFG_EMPTYRX_SHIFT (17U)\r
-#define I2S_FIFOCFG_EMPTYRX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_EMPTYRX_SHIFT)) & I2S_FIFOCFG_EMPTYRX_MASK)\r
-#define I2S_FIFOCFG_POPDBG_MASK (0x40000U)\r
-#define I2S_FIFOCFG_POPDBG_SHIFT (18U)\r
-/*! POPDBG - Pop FIFO for debug reads.\r
- * 0b0..Debug reads of the FIFO do not pop the FIFO.\r
- * 0b1..A debug read will cause the FIFO to pop.\r
+#define I2S_FIFOCFG_WAKERX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_WAKERX_SHIFT)) & I2S_FIFOCFG_WAKERX_MASK)\r
+#define I2S_FIFOCFG_EMPTYTX_MASK (0x10000U)\r
+#define I2S_FIFOCFG_EMPTYTX_SHIFT (16U)\r
+/*! EMPTYTX - Empty command for the transmit FIFO. When a 1 is written to this bit, the TX FIFO is emptied.\r
*/\r
-#define I2S_FIFOCFG_POPDBG(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_POPDBG_SHIFT)) & I2S_FIFOCFG_POPDBG_MASK)\r
+#define I2S_FIFOCFG_EMPTYTX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_EMPTYTX_SHIFT)) & I2S_FIFOCFG_EMPTYTX_MASK)\r
+#define I2S_FIFOCFG_EMPTYRX_MASK (0x20000U)\r
+#define I2S_FIFOCFG_EMPTYRX_SHIFT (17U)\r
+/*! EMPTYRX - Empty command for the receive FIFO. When a 1 is written to this bit, the RX FIFO is emptied.\r
+ */\r
+#define I2S_FIFOCFG_EMPTYRX(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOCFG_EMPTYRX_SHIFT)) & I2S_FIFOCFG_EMPTYRX_MASK)\r
/*! @} */\r
\r
/*! @name FIFOSTAT - FIFO status register. */\r
/*! @{ */\r
-#define I2S_FIFOSTAT_TXERR_MASK (0x1U)\r
-#define I2S_FIFOSTAT_TXERR_SHIFT (0U)\r
-#define I2S_FIFOSTAT_TXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_TXERR_SHIFT)) & I2S_FIFOSTAT_TXERR_MASK)\r
-#define I2S_FIFOSTAT_RXERR_MASK (0x2U)\r
-#define I2S_FIFOSTAT_RXERR_SHIFT (1U)\r
-#define I2S_FIFOSTAT_RXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_RXERR_SHIFT)) & I2S_FIFOSTAT_RXERR_MASK)\r
-#define I2S_FIFOSTAT_PERINT_MASK (0x8U)\r
-#define I2S_FIFOSTAT_PERINT_SHIFT (3U)\r
-#define I2S_FIFOSTAT_PERINT(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_PERINT_SHIFT)) & I2S_FIFOSTAT_PERINT_MASK)\r
-#define I2S_FIFOSTAT_TXEMPTY_MASK (0x10U)\r
-#define I2S_FIFOSTAT_TXEMPTY_SHIFT (4U)\r
-#define I2S_FIFOSTAT_TXEMPTY(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_TXEMPTY_SHIFT)) & I2S_FIFOSTAT_TXEMPTY_MASK)\r
-#define I2S_FIFOSTAT_TXNOTFULL_MASK (0x20U)\r
-#define I2S_FIFOSTAT_TXNOTFULL_SHIFT (5U)\r
-#define I2S_FIFOSTAT_TXNOTFULL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_TXNOTFULL_SHIFT)) & I2S_FIFOSTAT_TXNOTFULL_MASK)\r
-#define I2S_FIFOSTAT_RXNOTEMPTY_MASK (0x40U)\r
-#define I2S_FIFOSTAT_RXNOTEMPTY_SHIFT (6U)\r
-#define I2S_FIFOSTAT_RXNOTEMPTY(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_RXNOTEMPTY_SHIFT)) & I2S_FIFOSTAT_RXNOTEMPTY_MASK)\r
-#define I2S_FIFOSTAT_RXFULL_MASK (0x80U)\r
-#define I2S_FIFOSTAT_RXFULL_SHIFT (7U)\r
-#define I2S_FIFOSTAT_RXFULL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_RXFULL_SHIFT)) & I2S_FIFOSTAT_RXFULL_MASK)\r
-#define I2S_FIFOSTAT_TXLVL_MASK (0x1F00U)\r
-#define I2S_FIFOSTAT_TXLVL_SHIFT (8U)\r
-#define I2S_FIFOSTAT_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_TXLVL_SHIFT)) & I2S_FIFOSTAT_TXLVL_MASK)\r
-#define I2S_FIFOSTAT_RXLVL_MASK (0x1F0000U)\r
-#define I2S_FIFOSTAT_RXLVL_SHIFT (16U)\r
-#define I2S_FIFOSTAT_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_RXLVL_SHIFT)) & I2S_FIFOSTAT_RXLVL_MASK)\r
+#define I2S_FIFOSTAT_TXERR_MASK (0x1U)\r
+#define I2S_FIFOSTAT_TXERR_SHIFT (0U)\r
+/*! TXERR - TX FIFO error. Will be set if a transmit FIFO error occurs. This could be an overflow\r
+ * caused by pushing data into a full FIFO, or by an underflow if the FIFO is empty when data is\r
+ * needed. Cleared by writing a 1 to this bit.\r
+ */\r
+#define I2S_FIFOSTAT_TXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_TXERR_SHIFT)) & I2S_FIFOSTAT_TXERR_MASK)\r
+#define I2S_FIFOSTAT_RXERR_MASK (0x2U)\r
+#define I2S_FIFOSTAT_RXERR_SHIFT (1U)\r
+/*! RXERR - RX FIFO error. Will be set if a receive FIFO overflow occurs, caused by software or DMA\r
+ * not emptying the FIFO fast enough. Cleared by writing a 1 to this bit.\r
+ */\r
+#define I2S_FIFOSTAT_RXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_RXERR_SHIFT)) & I2S_FIFOSTAT_RXERR_MASK)\r
+#define I2S_FIFOSTAT_PERINT_MASK (0x8U)\r
+#define I2S_FIFOSTAT_PERINT_SHIFT (3U)\r
+/*! PERINT - Peripheral interrupt. When 1, this indicates that the peripheral function has asserted\r
+ * an interrupt. The details can be found by reading the peripheral's STAT register.\r
+ */\r
+#define I2S_FIFOSTAT_PERINT(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_PERINT_SHIFT)) & I2S_FIFOSTAT_PERINT_MASK)\r
+#define I2S_FIFOSTAT_TXEMPTY_MASK (0x10U)\r
+#define I2S_FIFOSTAT_TXEMPTY_SHIFT (4U)\r
+/*! TXEMPTY - Transmit FIFO empty. When 1, the transmit FIFO is empty. The peripheral may still be processing the last\r
+ * piece of data.\r
+ */\r
+#define I2S_FIFOSTAT_TXEMPTY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_TXEMPTY_SHIFT)) & I2S_FIFOSTAT_TXEMPTY_MASK)\r
+#define I2S_FIFOSTAT_TXNOTFULL_MASK (0x20U)\r
+#define I2S_FIFOSTAT_TXNOTFULL_SHIFT (5U)\r
+/*! TXNOTFULL - Transmit FIFO not full. When 1, the transmit FIFO is not full, so more data can be\r
+ * written. When 0, the transmit FIFO is full and another write would cause it to overflow.\r
+ */\r
+#define I2S_FIFOSTAT_TXNOTFULL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_TXNOTFULL_SHIFT)) & I2S_FIFOSTAT_TXNOTFULL_MASK)\r
+#define I2S_FIFOSTAT_RXNOTEMPTY_MASK (0x40U)\r
+#define I2S_FIFOSTAT_RXNOTEMPTY_SHIFT (6U)\r
+/*! RXNOTEMPTY - Receive FIFO not empty. When 1, the receive FIFO is not empty, so data can be read. When 0, the receive\r
+ * FIFO is empty.\r
+ */\r
+#define I2S_FIFOSTAT_RXNOTEMPTY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_RXNOTEMPTY_SHIFT)) & I2S_FIFOSTAT_RXNOTEMPTY_MASK)\r
+#define I2S_FIFOSTAT_RXFULL_MASK (0x80U)\r
+#define I2S_FIFOSTAT_RXFULL_SHIFT (7U)\r
+/*! RXFULL - Receive FIFO full. When 1, the receive FIFO is full. Data needs to be read out to\r
+ * prevent the peripheral from causing an overflow.\r
+ */\r
+#define I2S_FIFOSTAT_RXFULL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_RXFULL_SHIFT)) & I2S_FIFOSTAT_RXFULL_MASK)\r
+#define I2S_FIFOSTAT_TXLVL_MASK (0x1F00U)\r
+#define I2S_FIFOSTAT_TXLVL_SHIFT (8U)\r
+/*! TXLVL - Transmit FIFO current level. A 0 means the TX FIFO is currently empty, and the TXEMPTY\r
+ * and TXNOTFULL flags will be 1. Other values tell how much data is actually in the TX FIFO at\r
+ * the point where the read occurs. If the TX FIFO is full, the TXEMPTY and TXNOTFULL flags will be\r
+ * 0.\r
+ */\r
+#define I2S_FIFOSTAT_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_TXLVL_SHIFT)) & I2S_FIFOSTAT_TXLVL_MASK)\r
+#define I2S_FIFOSTAT_RXLVL_MASK (0x1F0000U)\r
+#define I2S_FIFOSTAT_RXLVL_SHIFT (16U)\r
+/*! RXLVL - Receive FIFO current level. A 0 means the RX FIFO is currently empty, and the RXFULL and\r
+ * RXNOTEMPTY flags will be 0. Other values tell how much data is actually in the RX FIFO at the\r
+ * point where the read occurs. If the RX FIFO is full, the RXFULL and RXNOTEMPTY flags will be\r
+ * 1.\r
+ */\r
+#define I2S_FIFOSTAT_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOSTAT_RXLVL_SHIFT)) & I2S_FIFOSTAT_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOTRIG - FIFO trigger settings for interrupt and DMA request. */\r
/*! @{ */\r
-#define I2S_FIFOTRIG_TXLVLENA_MASK (0x1U)\r
-#define I2S_FIFOTRIG_TXLVLENA_SHIFT (0U)\r
-/*! TXLVLENA - Transmit FIFO level trigger enable. This trigger will become an interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMATX in FIFOCFG is set.\r
+#define I2S_FIFOTRIG_TXLVLENA_MASK (0x1U)\r
+#define I2S_FIFOTRIG_TXLVLENA_SHIFT (0U)\r
+/*! TXLVLENA - Transmit FIFO level trigger enable. This trigger will become an interrupt if enabled\r
+ * in FIFOINTENSET, or a DMA trigger if DMATX in FIFOCFG is set.\r
* 0b0..Transmit FIFO level does not generate a FIFO level trigger.\r
- * 0b1..An trigger will be generated if the transmit FIFO level reaches the value specified by the TXLVL field in this register.\r
- */\r
-#define I2S_FIFOTRIG_TXLVLENA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOTRIG_TXLVLENA_SHIFT)) & I2S_FIFOTRIG_TXLVLENA_MASK)\r
-#define I2S_FIFOTRIG_RXLVLENA_MASK (0x2U)\r
-#define I2S_FIFOTRIG_RXLVLENA_SHIFT (1U)\r
-/*! RXLVLENA - Receive FIFO level trigger enable. This trigger will become an interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMARX in FIFOCFG is set.\r
+ * 0b1..An trigger will be generated if the transmit FIFO level reaches the value specified by the TXLVL field in this\r
+ * register.\r
+ */\r
+#define I2S_FIFOTRIG_TXLVLENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOTRIG_TXLVLENA_SHIFT)) & I2S_FIFOTRIG_TXLVLENA_MASK)\r
+#define I2S_FIFOTRIG_RXLVLENA_MASK (0x2U)\r
+#define I2S_FIFOTRIG_RXLVLENA_SHIFT (1U)\r
+/*! RXLVLENA - Receive FIFO level trigger enable. This trigger will become an interrupt if enabled\r
+ * in FIFOINTENSET, or a DMA trigger if DMARX in FIFOCFG is set.\r
* 0b0..Receive FIFO level does not generate a FIFO level trigger.\r
- * 0b1..An trigger will be generated if the receive FIFO level reaches the value specified by the RXLVL field in this register.\r
- */\r
-#define I2S_FIFOTRIG_RXLVLENA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOTRIG_RXLVLENA_SHIFT)) & I2S_FIFOTRIG_RXLVLENA_MASK)\r
-#define I2S_FIFOTRIG_TXLVL_MASK (0xF00U)\r
-#define I2S_FIFOTRIG_TXLVL_SHIFT (8U)\r
-#define I2S_FIFOTRIG_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOTRIG_TXLVL_SHIFT)) & I2S_FIFOTRIG_TXLVL_MASK)\r
-#define I2S_FIFOTRIG_RXLVL_MASK (0xF0000U)\r
-#define I2S_FIFOTRIG_RXLVL_SHIFT (16U)\r
-#define I2S_FIFOTRIG_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOTRIG_RXLVL_SHIFT)) & I2S_FIFOTRIG_RXLVL_MASK)\r
+ * 0b1..An trigger will be generated if the receive FIFO level reaches the value specified by the RXLVL field in this\r
+ * register.\r
+ */\r
+#define I2S_FIFOTRIG_RXLVLENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOTRIG_RXLVLENA_SHIFT)) & I2S_FIFOTRIG_RXLVLENA_MASK)\r
+#define I2S_FIFOTRIG_TXLVL_MASK (0xF00U)\r
+#define I2S_FIFOTRIG_TXLVL_SHIFT (8U)\r
+/*! TXLVL - Transmit FIFO level trigger point. This field is used only when TXLVLENA = 1. If enabled\r
+ * to do so, the FIFO level can wake up the device just enough to perform DMA, then return to\r
+ * the reduced power mode. See Hardware Wake-up control register. 0 = trigger when the TX FIFO\r
+ * becomes empty. 1 = trigger when the TX FIFO level decreases to one entry. 15 = trigger when the TX\r
+ * FIFO level decreases to 15 entries (is no longer full).\r
+ */\r
+#define I2S_FIFOTRIG_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOTRIG_TXLVL_SHIFT)) & I2S_FIFOTRIG_TXLVL_MASK)\r
+#define I2S_FIFOTRIG_RXLVL_MASK (0xF0000U)\r
+#define I2S_FIFOTRIG_RXLVL_SHIFT (16U)\r
+/*! RXLVL - Receive FIFO level trigger point. The RX FIFO level is checked when a new piece of data\r
+ * is received. This field is used only when RXLVLENA = 1. If enabled to do so, the FIFO level\r
+ * can wake up the device just enough to perform DMA, then return to the reduced power mode. See\r
+ * Hardware Wake-up control register. 0 = trigger when the RX FIFO has received one entry (is no\r
+ * longer empty). 1 = trigger when the RX FIFO has received two entries. 15 = trigger when the RX\r
+ * FIFO has received 16 entries (has become full).\r
+ */\r
+#define I2S_FIFOTRIG_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOTRIG_RXLVL_SHIFT)) & I2S_FIFOTRIG_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTENSET - FIFO interrupt enable set (enable) and read register. */\r
/*! @{ */\r
-#define I2S_FIFOINTENSET_TXERR_MASK (0x1U)\r
-#define I2S_FIFOINTENSET_TXERR_SHIFT (0U)\r
-/*! TXERR - Determines whether an interrupt occurs when a transmit error occurs, based on the TXERR flag in the FIFOSTAT register.\r
- * 0b0..No interrupt will be generated for a transmit error.\r
- * 0b1..An interrupt will be generated when a transmit error occurs.\r
- */\r
-#define I2S_FIFOINTENSET_TXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENSET_TXERR_SHIFT)) & I2S_FIFOINTENSET_TXERR_MASK)\r
-#define I2S_FIFOINTENSET_RXERR_MASK (0x2U)\r
-#define I2S_FIFOINTENSET_RXERR_SHIFT (1U)\r
-/*! RXERR - Determines whether an interrupt occurs when a receive error occurs, based on the RXERR flag in the FIFOSTAT register.\r
- * 0b0..No interrupt will be generated for a receive error.\r
- * 0b1..An interrupt will be generated when a receive error occurs.\r
- */\r
-#define I2S_FIFOINTENSET_RXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENSET_RXERR_SHIFT)) & I2S_FIFOINTENSET_RXERR_MASK)\r
-#define I2S_FIFOINTENSET_TXLVL_MASK (0x4U)\r
-#define I2S_FIFOINTENSET_TXLVL_SHIFT (2U)\r
-/*! TXLVL - Determines whether an interrupt occurs when a the transmit FIFO reaches the level specified by the TXLVL field in the FIFOTRIG register.\r
+#define I2S_FIFOINTENSET_TXERR_MASK (0x1U)\r
+#define I2S_FIFOINTENSET_TXERR_SHIFT (0U)\r
+/*! TXERR - Determines whether an interrupt occurs when a transmit error occurs, based on the TXERR flag in the FIFOSTAT\r
+ * register. 0b0..No interrupt will be generated for a transmit error. 0b1..An interrupt will be generated when a\r
+ * transmit error occurs.\r
+ */\r
+#define I2S_FIFOINTENSET_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENSET_TXERR_SHIFT)) & I2S_FIFOINTENSET_TXERR_MASK)\r
+#define I2S_FIFOINTENSET_RXERR_MASK (0x2U)\r
+#define I2S_FIFOINTENSET_RXERR_SHIFT (1U)\r
+/*! RXERR - Determines whether an interrupt occurs when a receive error occurs, based on the RXERR flag in the FIFOSTAT\r
+ * register. 0b0..No interrupt will be generated for a receive error. 0b1..An interrupt will be generated when a receive\r
+ * error occurs.\r
+ */\r
+#define I2S_FIFOINTENSET_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENSET_RXERR_SHIFT)) & I2S_FIFOINTENSET_RXERR_MASK)\r
+#define I2S_FIFOINTENSET_TXLVL_MASK (0x4U)\r
+#define I2S_FIFOINTENSET_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Determines whether an interrupt occurs when a the transmit FIFO reaches the level\r
+ * specified by the TXLVL field in the FIFOTRIG register.\r
* 0b0..No interrupt will be generated based on the TX FIFO level.\r
- * 0b1..If TXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the TX FIFO level decreases to the level specified by TXLVL in the FIFOTRIG register.\r
- */\r
-#define I2S_FIFOINTENSET_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENSET_TXLVL_SHIFT)) & I2S_FIFOINTENSET_TXLVL_MASK)\r
-#define I2S_FIFOINTENSET_RXLVL_MASK (0x8U)\r
-#define I2S_FIFOINTENSET_RXLVL_SHIFT (3U)\r
-/*! RXLVL - Determines whether an interrupt occurs when a the receive FIFO reaches the level specified by the TXLVL field in the FIFOTRIG register.\r
+ * 0b1..If TXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the TX FIFO level decreases\r
+ * to the level specified by TXLVL in the FIFOTRIG register.\r
+ */\r
+#define I2S_FIFOINTENSET_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENSET_TXLVL_SHIFT)) & I2S_FIFOINTENSET_TXLVL_MASK)\r
+#define I2S_FIFOINTENSET_RXLVL_MASK (0x8U)\r
+#define I2S_FIFOINTENSET_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Determines whether an interrupt occurs when a the receive FIFO reaches the level\r
+ * specified by the TXLVL field in the FIFOTRIG register.\r
* 0b0..No interrupt will be generated based on the RX FIFO level.\r
- * 0b1..If RXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the when the RX FIFO level increases to the level specified by RXLVL in the FIFOTRIG register.\r
+ * 0b1..If RXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the when the RX FIFO level\r
+ * increases to the level specified by RXLVL in the FIFOTRIG register.\r
*/\r
-#define I2S_FIFOINTENSET_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENSET_RXLVL_SHIFT)) & I2S_FIFOINTENSET_RXLVL_MASK)\r
+#define I2S_FIFOINTENSET_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENSET_RXLVL_SHIFT)) & I2S_FIFOINTENSET_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTENCLR - FIFO interrupt enable clear (disable) and read register. */\r
/*! @{ */\r
-#define I2S_FIFOINTENCLR_TXERR_MASK (0x1U)\r
-#define I2S_FIFOINTENCLR_TXERR_SHIFT (0U)\r
-#define I2S_FIFOINTENCLR_TXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENCLR_TXERR_SHIFT)) & I2S_FIFOINTENCLR_TXERR_MASK)\r
-#define I2S_FIFOINTENCLR_RXERR_MASK (0x2U)\r
-#define I2S_FIFOINTENCLR_RXERR_SHIFT (1U)\r
-#define I2S_FIFOINTENCLR_RXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENCLR_RXERR_SHIFT)) & I2S_FIFOINTENCLR_RXERR_MASK)\r
-#define I2S_FIFOINTENCLR_TXLVL_MASK (0x4U)\r
-#define I2S_FIFOINTENCLR_TXLVL_SHIFT (2U)\r
-#define I2S_FIFOINTENCLR_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENCLR_TXLVL_SHIFT)) & I2S_FIFOINTENCLR_TXLVL_MASK)\r
-#define I2S_FIFOINTENCLR_RXLVL_MASK (0x8U)\r
-#define I2S_FIFOINTENCLR_RXLVL_SHIFT (3U)\r
-#define I2S_FIFOINTENCLR_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENCLR_RXLVL_SHIFT)) & I2S_FIFOINTENCLR_RXLVL_MASK)\r
+#define I2S_FIFOINTENCLR_TXERR_MASK (0x1U)\r
+#define I2S_FIFOINTENCLR_TXERR_SHIFT (0U)\r
+/*! TXERR - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define I2S_FIFOINTENCLR_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENCLR_TXERR_SHIFT)) & I2S_FIFOINTENCLR_TXERR_MASK)\r
+#define I2S_FIFOINTENCLR_RXERR_MASK (0x2U)\r
+#define I2S_FIFOINTENCLR_RXERR_SHIFT (1U)\r
+/*! RXERR - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define I2S_FIFOINTENCLR_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENCLR_RXERR_SHIFT)) & I2S_FIFOINTENCLR_RXERR_MASK)\r
+#define I2S_FIFOINTENCLR_TXLVL_MASK (0x4U)\r
+#define I2S_FIFOINTENCLR_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define I2S_FIFOINTENCLR_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENCLR_TXLVL_SHIFT)) & I2S_FIFOINTENCLR_TXLVL_MASK)\r
+#define I2S_FIFOINTENCLR_RXLVL_MASK (0x8U)\r
+#define I2S_FIFOINTENCLR_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define I2S_FIFOINTENCLR_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTENCLR_RXLVL_SHIFT)) & I2S_FIFOINTENCLR_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTSTAT - FIFO interrupt status register. */\r
/*! @{ */\r
-#define I2S_FIFOINTSTAT_TXERR_MASK (0x1U)\r
-#define I2S_FIFOINTSTAT_TXERR_SHIFT (0U)\r
-#define I2S_FIFOINTSTAT_TXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_TXERR_SHIFT)) & I2S_FIFOINTSTAT_TXERR_MASK)\r
-#define I2S_FIFOINTSTAT_RXERR_MASK (0x2U)\r
-#define I2S_FIFOINTSTAT_RXERR_SHIFT (1U)\r
-#define I2S_FIFOINTSTAT_RXERR(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_RXERR_SHIFT)) & I2S_FIFOINTSTAT_RXERR_MASK)\r
-#define I2S_FIFOINTSTAT_TXLVL_MASK (0x4U)\r
-#define I2S_FIFOINTSTAT_TXLVL_SHIFT (2U)\r
-#define I2S_FIFOINTSTAT_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_TXLVL_SHIFT)) & I2S_FIFOINTSTAT_TXLVL_MASK)\r
-#define I2S_FIFOINTSTAT_RXLVL_MASK (0x8U)\r
-#define I2S_FIFOINTSTAT_RXLVL_SHIFT (3U)\r
-#define I2S_FIFOINTSTAT_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_RXLVL_SHIFT)) & I2S_FIFOINTSTAT_RXLVL_MASK)\r
-#define I2S_FIFOINTSTAT_PERINT_MASK (0x10U)\r
-#define I2S_FIFOINTSTAT_PERINT_SHIFT (4U)\r
-#define I2S_FIFOINTSTAT_PERINT(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_PERINT_SHIFT)) & I2S_FIFOINTSTAT_PERINT_MASK)\r
+#define I2S_FIFOINTSTAT_TXERR_MASK (0x1U)\r
+#define I2S_FIFOINTSTAT_TXERR_SHIFT (0U)\r
+/*! TXERR - TX FIFO error.\r
+ */\r
+#define I2S_FIFOINTSTAT_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_TXERR_SHIFT)) & I2S_FIFOINTSTAT_TXERR_MASK)\r
+#define I2S_FIFOINTSTAT_RXERR_MASK (0x2U)\r
+#define I2S_FIFOINTSTAT_RXERR_SHIFT (1U)\r
+/*! RXERR - RX FIFO error.\r
+ */\r
+#define I2S_FIFOINTSTAT_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_RXERR_SHIFT)) & I2S_FIFOINTSTAT_RXERR_MASK)\r
+#define I2S_FIFOINTSTAT_TXLVL_MASK (0x4U)\r
+#define I2S_FIFOINTSTAT_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Transmit FIFO level interrupt.\r
+ */\r
+#define I2S_FIFOINTSTAT_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_TXLVL_SHIFT)) & I2S_FIFOINTSTAT_TXLVL_MASK)\r
+#define I2S_FIFOINTSTAT_RXLVL_MASK (0x8U)\r
+#define I2S_FIFOINTSTAT_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Receive FIFO level interrupt.\r
+ */\r
+#define I2S_FIFOINTSTAT_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_RXLVL_SHIFT)) & I2S_FIFOINTSTAT_RXLVL_MASK)\r
+#define I2S_FIFOINTSTAT_PERINT_MASK (0x10U)\r
+#define I2S_FIFOINTSTAT_PERINT_SHIFT (4U)\r
+/*! PERINT - Peripheral interrupt.\r
+ */\r
+#define I2S_FIFOINTSTAT_PERINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOINTSTAT_PERINT_SHIFT)) & I2S_FIFOINTSTAT_PERINT_MASK)\r
/*! @} */\r
\r
/*! @name FIFOWR - FIFO write data. */\r
/*! @{ */\r
-#define I2S_FIFOWR_TXDATA_MASK (0xFFFFFFFFU)\r
-#define I2S_FIFOWR_TXDATA_SHIFT (0U)\r
-#define I2S_FIFOWR_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOWR_TXDATA_SHIFT)) & I2S_FIFOWR_TXDATA_MASK)\r
+#define I2S_FIFOWR_TXDATA_MASK (0xFFFFFFFFU)\r
+#define I2S_FIFOWR_TXDATA_SHIFT (0U)\r
+/*! TXDATA - Transmit data to the FIFO. The number of bits used depends on configuration details.\r
+ */\r
+#define I2S_FIFOWR_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOWR_TXDATA_SHIFT)) & I2S_FIFOWR_TXDATA_MASK)\r
/*! @} */\r
\r
-/*! @name FIFOWR48H - FIFO write data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data and not using DMA. */\r
+/*! @name FIFOWR48H - FIFO write data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data\r
+ * and not using DMA. */\r
/*! @{ */\r
-#define I2S_FIFOWR48H_TXDATA_MASK (0xFFFFFFU)\r
-#define I2S_FIFOWR48H_TXDATA_SHIFT (0U)\r
-#define I2S_FIFOWR48H_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFOWR48H_TXDATA_SHIFT)) & I2S_FIFOWR48H_TXDATA_MASK)\r
+#define I2S_FIFOWR48H_TXDATA_MASK (0xFFFFFFU)\r
+#define I2S_FIFOWR48H_TXDATA_SHIFT (0U)\r
+/*! TXDATA - Transmit data to the FIFO. Whether this register is used and the number of bits used depends on\r
+ * configuration details.\r
+ */\r
+#define I2S_FIFOWR48H_TXDATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFOWR48H_TXDATA_SHIFT)) & I2S_FIFOWR48H_TXDATA_MASK)\r
/*! @} */\r
\r
/*! @name FIFORD - FIFO read data. */\r
/*! @{ */\r
-#define I2S_FIFORD_RXDATA_MASK (0xFFFFFFFFU)\r
-#define I2S_FIFORD_RXDATA_SHIFT (0U)\r
-#define I2S_FIFORD_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFORD_RXDATA_SHIFT)) & I2S_FIFORD_RXDATA_MASK)\r
+#define I2S_FIFORD_RXDATA_MASK (0xFFFFFFFFU)\r
+#define I2S_FIFORD_RXDATA_SHIFT (0U)\r
+/*! RXDATA - Received data from the FIFO. The number of bits used depends on configuration details.\r
+ */\r
+#define I2S_FIFORD_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFORD_RXDATA_SHIFT)) & I2S_FIFORD_RXDATA_MASK)\r
/*! @} */\r
\r
-/*! @name FIFORD48H - FIFO read data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data and not using DMA. */\r
+/*! @name FIFORD48H - FIFO read data for upper data bits. May only be used if the I2S is configured for 2x 24-bit data\r
+ * and not using DMA. */\r
/*! @{ */\r
-#define I2S_FIFORD48H_RXDATA_MASK (0xFFFFFFU)\r
-#define I2S_FIFORD48H_RXDATA_SHIFT (0U)\r
-#define I2S_FIFORD48H_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFORD48H_RXDATA_SHIFT)) & I2S_FIFORD48H_RXDATA_MASK)\r
+#define I2S_FIFORD48H_RXDATA_MASK (0xFFFFFFU)\r
+#define I2S_FIFORD48H_RXDATA_SHIFT (0U)\r
+/*! RXDATA - Received data from the FIFO. Whether this register is used and the number of bits used depends on\r
+ * configuration details.\r
+ */\r
+#define I2S_FIFORD48H_RXDATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFORD48H_RXDATA_SHIFT)) & I2S_FIFORD48H_RXDATA_MASK)\r
/*! @} */\r
\r
/*! @name FIFORDNOPOP - FIFO data read with no FIFO pop. */\r
/*! @{ */\r
-#define I2S_FIFORDNOPOP_RXDATA_MASK (0xFFFFFFFFU)\r
-#define I2S_FIFORDNOPOP_RXDATA_SHIFT (0U)\r
-#define I2S_FIFORDNOPOP_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFORDNOPOP_RXDATA_SHIFT)) & I2S_FIFORDNOPOP_RXDATA_MASK)\r
+#define I2S_FIFORDNOPOP_RXDATA_MASK (0xFFFFFFFFU)\r
+#define I2S_FIFORDNOPOP_RXDATA_SHIFT (0U)\r
+/*! RXDATA - Received data from the FIFO.\r
+ */\r
+#define I2S_FIFORDNOPOP_RXDATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFORDNOPOP_RXDATA_SHIFT)) & I2S_FIFORDNOPOP_RXDATA_MASK)\r
/*! @} */\r
\r
-/*! @name FIFORD48HNOPOP - FIFO data read for upper data bits with no FIFO pop. May only be used if the I2S is configured for 2x 24-bit data and not using DMA. */\r
+/*! @name FIFORD48HNOPOP - FIFO data read for upper data bits with no FIFO pop. May only be used if the I2S is\r
+ * configured for 2x 24-bit data and not using DMA. */\r
/*! @{ */\r
-#define I2S_FIFORD48HNOPOP_RXDATA_MASK (0xFFFFFFU)\r
-#define I2S_FIFORD48HNOPOP_RXDATA_SHIFT (0U)\r
-#define I2S_FIFORD48HNOPOP_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << I2S_FIFORD48HNOPOP_RXDATA_SHIFT)) & I2S_FIFORD48HNOPOP_RXDATA_MASK)\r
+#define I2S_FIFORD48HNOPOP_RXDATA_MASK (0xFFFFFFU)\r
+#define I2S_FIFORD48HNOPOP_RXDATA_SHIFT (0U)\r
+/*! RXDATA - Received data from the FIFO. Whether this register is used and the number of bits used depends on\r
+ * configuration details.\r
+ */\r
+#define I2S_FIFORD48HNOPOP_RXDATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << I2S_FIFORD48HNOPOP_RXDATA_SHIFT)) & I2S_FIFORD48HNOPOP_RXDATA_MASK)\r
/*! @} */\r
\r
/*! @name ID - I2S Module identification */\r
/*! @{ */\r
-#define I2S_ID_Aperture_MASK (0xFFU)\r
-#define I2S_ID_Aperture_SHIFT (0U)\r
-#define I2S_ID_Aperture(x) (((uint32_t)(((uint32_t)(x)) << I2S_ID_Aperture_SHIFT)) & I2S_ID_Aperture_MASK)\r
-#define I2S_ID_Minor_Rev_MASK (0xF00U)\r
-#define I2S_ID_Minor_Rev_SHIFT (8U)\r
-#define I2S_ID_Minor_Rev(x) (((uint32_t)(((uint32_t)(x)) << I2S_ID_Minor_Rev_SHIFT)) & I2S_ID_Minor_Rev_MASK)\r
-#define I2S_ID_Major_Rev_MASK (0xF000U)\r
-#define I2S_ID_Major_Rev_SHIFT (12U)\r
-#define I2S_ID_Major_Rev(x) (((uint32_t)(((uint32_t)(x)) << I2S_ID_Major_Rev_SHIFT)) & I2S_ID_Major_Rev_MASK)\r
-#define I2S_ID_ID_MASK (0xFFFF0000U)\r
-#define I2S_ID_ID_SHIFT (16U)\r
-#define I2S_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << I2S_ID_ID_SHIFT)) & I2S_ID_ID_MASK)\r
+#define I2S_ID_APERTURE_MASK (0xFFU)\r
+#define I2S_ID_APERTURE_SHIFT (0U)\r
+/*! APERTURE - Aperture: encoded as (aperture size/4K) -1, so 0x00 means a 4K aperture.\r
+ */\r
+#define I2S_ID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << I2S_ID_APERTURE_SHIFT)) & I2S_ID_APERTURE_MASK)\r
+#define I2S_ID_MINOR_REV_MASK (0xF00U)\r
+#define I2S_ID_MINOR_REV_SHIFT (8U)\r
+/*! MINOR_REV - Minor revision of module implementation, starting at 0.\r
+ */\r
+#define I2S_ID_MINOR_REV(x) (((uint32_t)(((uint32_t)(x)) << I2S_ID_MINOR_REV_SHIFT)) & I2S_ID_MINOR_REV_MASK)\r
+#define I2S_ID_MAJOR_REV_MASK (0xF000U)\r
+#define I2S_ID_MAJOR_REV_SHIFT (12U)\r
+/*! MAJOR_REV - Major revision of module implementation, starting at 0.\r
+ */\r
+#define I2S_ID_MAJOR_REV(x) (((uint32_t)(((uint32_t)(x)) << I2S_ID_MAJOR_REV_SHIFT)) & I2S_ID_MAJOR_REV_MASK)\r
+#define I2S_ID_ID_MASK (0xFFFF0000U)\r
+#define I2S_ID_ID_SHIFT (16U)\r
+/*! ID - Unique module identifier for this IP block.\r
+ */\r
+#define I2S_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << I2S_ID_ID_SHIFT)) & I2S_ID_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group I2S_Register_Masks */\r
\r
-\r
/* I2S - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral I2S0 base address */\r
- #define I2S0_BASE (0x50086000u)\r
- /** Peripheral I2S0 base address */\r
- #define I2S0_BASE_NS (0x40086000u)\r
- /** Peripheral I2S0 base pointer */\r
- #define I2S0 ((I2S_Type *)I2S0_BASE)\r
- /** Peripheral I2S0 base pointer */\r
- #define I2S0_NS ((I2S_Type *)I2S0_BASE_NS)\r
- /** Peripheral I2S1 base address */\r
- #define I2S1_BASE (0x50087000u)\r
- /** Peripheral I2S1 base address */\r
- #define I2S1_BASE_NS (0x40087000u)\r
- /** Peripheral I2S1 base pointer */\r
- #define I2S1 ((I2S_Type *)I2S1_BASE)\r
- /** Peripheral I2S1 base pointer */\r
- #define I2S1_NS ((I2S_Type *)I2S1_BASE_NS)\r
- /** Peripheral I2S2 base address */\r
- #define I2S2_BASE (0x50088000u)\r
- /** Peripheral I2S2 base address */\r
- #define I2S2_BASE_NS (0x40088000u)\r
- /** Peripheral I2S2 base pointer */\r
- #define I2S2 ((I2S_Type *)I2S2_BASE)\r
- /** Peripheral I2S2 base pointer */\r
- #define I2S2_NS ((I2S_Type *)I2S2_BASE_NS)\r
- /** Peripheral I2S3 base address */\r
- #define I2S3_BASE (0x50089000u)\r
- /** Peripheral I2S3 base address */\r
- #define I2S3_BASE_NS (0x40089000u)\r
- /** Peripheral I2S3 base pointer */\r
- #define I2S3 ((I2S_Type *)I2S3_BASE)\r
- /** Peripheral I2S3 base pointer */\r
- #define I2S3_NS ((I2S_Type *)I2S3_BASE_NS)\r
- /** Peripheral I2S4 base address */\r
- #define I2S4_BASE (0x5008A000u)\r
- /** Peripheral I2S4 base address */\r
- #define I2S4_BASE_NS (0x4008A000u)\r
- /** Peripheral I2S4 base pointer */\r
- #define I2S4 ((I2S_Type *)I2S4_BASE)\r
- /** Peripheral I2S4 base pointer */\r
- #define I2S4_NS ((I2S_Type *)I2S4_BASE_NS)\r
- /** Peripheral I2S5 base address */\r
- #define I2S5_BASE (0x50096000u)\r
- /** Peripheral I2S5 base address */\r
- #define I2S5_BASE_NS (0x40096000u)\r
- /** Peripheral I2S5 base pointer */\r
- #define I2S5 ((I2S_Type *)I2S5_BASE)\r
- /** Peripheral I2S5 base pointer */\r
- #define I2S5_NS ((I2S_Type *)I2S5_BASE_NS)\r
- /** Peripheral I2S6 base address */\r
- #define I2S6_BASE (0x50097000u)\r
- /** Peripheral I2S6 base address */\r
- #define I2S6_BASE_NS (0x40097000u)\r
- /** Peripheral I2S6 base pointer */\r
- #define I2S6 ((I2S_Type *)I2S6_BASE)\r
- /** Peripheral I2S6 base pointer */\r
- #define I2S6_NS ((I2S_Type *)I2S6_BASE_NS)\r
- /** Peripheral I2S7 base address */\r
- #define I2S7_BASE (0x50098000u)\r
- /** Peripheral I2S7 base address */\r
- #define I2S7_BASE_NS (0x40098000u)\r
- /** Peripheral I2S7 base pointer */\r
- #define I2S7 ((I2S_Type *)I2S7_BASE)\r
- /** Peripheral I2S7 base pointer */\r
- #define I2S7_NS ((I2S_Type *)I2S7_BASE_NS)\r
- /** Array initializer of I2S peripheral base addresses */\r
- #define I2S_BASE_ADDRS { I2S0_BASE, I2S1_BASE, I2S2_BASE, I2S3_BASE, I2S4_BASE, I2S5_BASE, I2S6_BASE, I2S7_BASE }\r
- /** Array initializer of I2S peripheral base pointers */\r
- #define I2S_BASE_PTRS { I2S0, I2S1, I2S2, I2S3, I2S4, I2S5, I2S6, I2S7 }\r
- /** Array initializer of I2S peripheral base addresses */\r
- #define I2S_BASE_ADDRS_NS { I2S0_BASE_NS, I2S1_BASE_NS, I2S2_BASE_NS, I2S3_BASE_NS, I2S4_BASE_NS, I2S5_BASE_NS, I2S6_BASE_NS, I2S7_BASE_NS }\r
- /** Array initializer of I2S peripheral base pointers */\r
- #define I2S_BASE_PTRS_NS { I2S0_NS, I2S1_NS, I2S2_NS, I2S3_NS, I2S4_NS, I2S5_NS, I2S6_NS, I2S7_NS }\r
+/** Peripheral I2S0 base address */\r
+#define I2S0_BASE (0x50086000u)\r
+/** Peripheral I2S0 base address */\r
+#define I2S0_BASE_NS (0x40086000u)\r
+/** Peripheral I2S0 base pointer */\r
+#define I2S0 ((I2S_Type *)I2S0_BASE)\r
+/** Peripheral I2S0 base pointer */\r
+#define I2S0_NS ((I2S_Type *)I2S0_BASE_NS)\r
+/** Peripheral I2S1 base address */\r
+#define I2S1_BASE (0x50087000u)\r
+/** Peripheral I2S1 base address */\r
+#define I2S1_BASE_NS (0x40087000u)\r
+/** Peripheral I2S1 base pointer */\r
+#define I2S1 ((I2S_Type *)I2S1_BASE)\r
+/** Peripheral I2S1 base pointer */\r
+#define I2S1_NS ((I2S_Type *)I2S1_BASE_NS)\r
+/** Peripheral I2S2 base address */\r
+#define I2S2_BASE (0x50088000u)\r
+/** Peripheral I2S2 base address */\r
+#define I2S2_BASE_NS (0x40088000u)\r
+/** Peripheral I2S2 base pointer */\r
+#define I2S2 ((I2S_Type *)I2S2_BASE)\r
+/** Peripheral I2S2 base pointer */\r
+#define I2S2_NS ((I2S_Type *)I2S2_BASE_NS)\r
+/** Peripheral I2S3 base address */\r
+#define I2S3_BASE (0x50089000u)\r
+/** Peripheral I2S3 base address */\r
+#define I2S3_BASE_NS (0x40089000u)\r
+/** Peripheral I2S3 base pointer */\r
+#define I2S3 ((I2S_Type *)I2S3_BASE)\r
+/** Peripheral I2S3 base pointer */\r
+#define I2S3_NS ((I2S_Type *)I2S3_BASE_NS)\r
+/** Peripheral I2S4 base address */\r
+#define I2S4_BASE (0x5008A000u)\r
+/** Peripheral I2S4 base address */\r
+#define I2S4_BASE_NS (0x4008A000u)\r
+/** Peripheral I2S4 base pointer */\r
+#define I2S4 ((I2S_Type *)I2S4_BASE)\r
+/** Peripheral I2S4 base pointer */\r
+#define I2S4_NS ((I2S_Type *)I2S4_BASE_NS)\r
+/** Peripheral I2S5 base address */\r
+#define I2S5_BASE (0x50096000u)\r
+/** Peripheral I2S5 base address */\r
+#define I2S5_BASE_NS (0x40096000u)\r
+/** Peripheral I2S5 base pointer */\r
+#define I2S5 ((I2S_Type *)I2S5_BASE)\r
+/** Peripheral I2S5 base pointer */\r
+#define I2S5_NS ((I2S_Type *)I2S5_BASE_NS)\r
+/** Peripheral I2S6 base address */\r
+#define I2S6_BASE (0x50097000u)\r
+/** Peripheral I2S6 base address */\r
+#define I2S6_BASE_NS (0x40097000u)\r
+/** Peripheral I2S6 base pointer */\r
+#define I2S6 ((I2S_Type *)I2S6_BASE)\r
+/** Peripheral I2S6 base pointer */\r
+#define I2S6_NS ((I2S_Type *)I2S6_BASE_NS)\r
+/** Peripheral I2S7 base address */\r
+#define I2S7_BASE (0x50098000u)\r
+/** Peripheral I2S7 base address */\r
+#define I2S7_BASE_NS (0x40098000u)\r
+/** Peripheral I2S7 base pointer */\r
+#define I2S7 ((I2S_Type *)I2S7_BASE)\r
+/** Peripheral I2S7 base pointer */\r
+#define I2S7_NS ((I2S_Type *)I2S7_BASE_NS)\r
+/** Array initializer of I2S peripheral base addresses */\r
+#define I2S_BASE_ADDRS \\r
+ { \\r
+ I2S0_BASE, I2S1_BASE, I2S2_BASE, I2S3_BASE, I2S4_BASE, I2S5_BASE, I2S6_BASE, I2S7_BASE \\r
+ }\r
+/** Array initializer of I2S peripheral base pointers */\r
+#define I2S_BASE_PTRS \\r
+ { \\r
+ I2S0, I2S1, I2S2, I2S3, I2S4, I2S5, I2S6, I2S7 \\r
+ }\r
+/** Array initializer of I2S peripheral base addresses */\r
+#define I2S_BASE_ADDRS_NS \\r
+ { \\r
+ I2S0_BASE_NS, I2S1_BASE_NS, I2S2_BASE_NS, I2S3_BASE_NS, I2S4_BASE_NS, I2S5_BASE_NS, I2S6_BASE_NS, I2S7_BASE_NS \\r
+ }\r
+/** Array initializer of I2S peripheral base pointers */\r
+#define I2S_BASE_PTRS_NS \\r
+ { \\r
+ I2S0_NS, I2S1_NS, I2S2_NS, I2S3_NS, I2S4_NS, I2S5_NS, I2S6_NS, I2S7_NS \\r
+ }\r
#else\r
- /** Peripheral I2S0 base address */\r
- #define I2S0_BASE (0x40086000u)\r
- /** Peripheral I2S0 base pointer */\r
- #define I2S0 ((I2S_Type *)I2S0_BASE)\r
- /** Peripheral I2S1 base address */\r
- #define I2S1_BASE (0x40087000u)\r
- /** Peripheral I2S1 base pointer */\r
- #define I2S1 ((I2S_Type *)I2S1_BASE)\r
- /** Peripheral I2S2 base address */\r
- #define I2S2_BASE (0x40088000u)\r
- /** Peripheral I2S2 base pointer */\r
- #define I2S2 ((I2S_Type *)I2S2_BASE)\r
- /** Peripheral I2S3 base address */\r
- #define I2S3_BASE (0x40089000u)\r
- /** Peripheral I2S3 base pointer */\r
- #define I2S3 ((I2S_Type *)I2S3_BASE)\r
- /** Peripheral I2S4 base address */\r
- #define I2S4_BASE (0x4008A000u)\r
- /** Peripheral I2S4 base pointer */\r
- #define I2S4 ((I2S_Type *)I2S4_BASE)\r
- /** Peripheral I2S5 base address */\r
- #define I2S5_BASE (0x40096000u)\r
- /** Peripheral I2S5 base pointer */\r
- #define I2S5 ((I2S_Type *)I2S5_BASE)\r
- /** Peripheral I2S6 base address */\r
- #define I2S6_BASE (0x40097000u)\r
- /** Peripheral I2S6 base pointer */\r
- #define I2S6 ((I2S_Type *)I2S6_BASE)\r
- /** Peripheral I2S7 base address */\r
- #define I2S7_BASE (0x40098000u)\r
- /** Peripheral I2S7 base pointer */\r
- #define I2S7 ((I2S_Type *)I2S7_BASE)\r
- /** Array initializer of I2S peripheral base addresses */\r
- #define I2S_BASE_ADDRS { I2S0_BASE, I2S1_BASE, I2S2_BASE, I2S3_BASE, I2S4_BASE, I2S5_BASE, I2S6_BASE, I2S7_BASE }\r
- /** Array initializer of I2S peripheral base pointers */\r
- #define I2S_BASE_PTRS { I2S0, I2S1, I2S2, I2S3, I2S4, I2S5, I2S6, I2S7 }\r
+/** Peripheral I2S0 base address */\r
+#define I2S0_BASE (0x40086000u)\r
+/** Peripheral I2S0 base pointer */\r
+#define I2S0 ((I2S_Type *)I2S0_BASE)\r
+/** Peripheral I2S1 base address */\r
+#define I2S1_BASE (0x40087000u)\r
+/** Peripheral I2S1 base pointer */\r
+#define I2S1 ((I2S_Type *)I2S1_BASE)\r
+/** Peripheral I2S2 base address */\r
+#define I2S2_BASE (0x40088000u)\r
+/** Peripheral I2S2 base pointer */\r
+#define I2S2 ((I2S_Type *)I2S2_BASE)\r
+/** Peripheral I2S3 base address */\r
+#define I2S3_BASE (0x40089000u)\r
+/** Peripheral I2S3 base pointer */\r
+#define I2S3 ((I2S_Type *)I2S3_BASE)\r
+/** Peripheral I2S4 base address */\r
+#define I2S4_BASE (0x4008A000u)\r
+/** Peripheral I2S4 base pointer */\r
+#define I2S4 ((I2S_Type *)I2S4_BASE)\r
+/** Peripheral I2S5 base address */\r
+#define I2S5_BASE (0x40096000u)\r
+/** Peripheral I2S5 base pointer */\r
+#define I2S5 ((I2S_Type *)I2S5_BASE)\r
+/** Peripheral I2S6 base address */\r
+#define I2S6_BASE (0x40097000u)\r
+/** Peripheral I2S6 base pointer */\r
+#define I2S6 ((I2S_Type *)I2S6_BASE)\r
+/** Peripheral I2S7 base address */\r
+#define I2S7_BASE (0x40098000u)\r
+/** Peripheral I2S7 base pointer */\r
+#define I2S7 ((I2S_Type *)I2S7_BASE)\r
+/** Array initializer of I2S peripheral base addresses */\r
+#define I2S_BASE_ADDRS \\r
+ { \\r
+ I2S0_BASE, I2S1_BASE, I2S2_BASE, I2S3_BASE, I2S4_BASE, I2S5_BASE, I2S6_BASE, I2S7_BASE \\r
+ }\r
+/** Array initializer of I2S peripheral base pointers */\r
+#define I2S_BASE_PTRS \\r
+ { \\r
+ I2S0, I2S1, I2S2, I2S3, I2S4, I2S5, I2S6, I2S7 \\r
+ }\r
#endif\r
/** Interrupt vectors for the I2S peripheral type */\r
-#define I2S_IRQS { FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, FLEXCOMM6_IRQn, FLEXCOMM7_IRQn }\r
+#define I2S_IRQS \\r
+ { \\r
+ FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, \\r
+ FLEXCOMM6_IRQn, FLEXCOMM7_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group I2S_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- INPUTMUX Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** INPUTMUX - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t SCT0_INMUX[7]; /**< Input mux register for SCT0 input, array offset: 0x0, array step: 0x4 */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t TIMER0CAPTSEL[4]; /**< Capture select registers for TIMER0 inputs, array offset: 0x20, array step: 0x4 */\r
- uint8_t RESERVED_1[16];\r
- __IO uint32_t TIMER1CAPTSEL[4]; /**< Capture select registers for TIMER1 inputs, array offset: 0x40, array step: 0x4 */\r
- uint8_t RESERVED_2[16];\r
- __IO uint32_t TIMER2CAPTSEL[4]; /**< Capture select registers for TIMER2 inputs, array offset: 0x60, array step: 0x4 */\r
- uint8_t RESERVED_3[80];\r
- __IO uint32_t PINTSEL[8]; /**< Pin interrupt select register, array offset: 0xC0, array step: 0x4 */\r
- __IO uint32_t DMA0_ITRIG_INMUX[23]; /**< Trigger select register for DMA0 channel, array offset: 0xE0, array step: 0x4 */\r
- uint8_t RESERVED_4[36];\r
- __IO uint32_t DMA0_OTRIG_INMUX[4]; /**< DMA0 output trigger selection to become DMA0 trigger, array offset: 0x160, array step: 0x4 */\r
- uint8_t RESERVED_5[16];\r
- __IO uint32_t FREQMEAS_REF; /**< Selection for frequency measurement reference clock, offset: 0x180 */\r
- __IO uint32_t FREQMEAS_TARGET; /**< Selection for frequency measurement target clock, offset: 0x184 */\r
- uint8_t RESERVED_6[24];\r
- __IO uint32_t TIMER3CAPTSEL[4]; /**< Capture select registers for TIMER3 inputs, array offset: 0x1A0, array step: 0x4 */\r
- uint8_t RESERVED_7[16];\r
- __IO uint32_t TIMER4CAPTSEL[4]; /**< Capture select registers for TIMER4 inputs, array offset: 0x1C0, array step: 0x4 */\r
- uint8_t RESERVED_8[16];\r
- __IO uint32_t PINTSECSEL[2]; /**< Pin interrupt secure select register, array offset: 0x1E0, array step: 0x4 */\r
- uint8_t RESERVED_9[24];\r
- __IO uint32_t DMA1_ITRIG_INMUX[10]; /**< Trigger select register for DMA1 channel, array offset: 0x200, array step: 0x4 */\r
- uint8_t RESERVED_10[24];\r
- __IO uint32_t DMA1_OTRIG_INMUX[4]; /**< DMA1 output trigger selection to become DMA1 trigger, array offset: 0x240, array step: 0x4 */\r
- uint8_t RESERVED_11[1264];\r
- __IO uint32_t DMA0_REQ_ENA; /**< Enable DMA0 requests, offset: 0x740 */\r
- uint8_t RESERVED_12[4];\r
- __O uint32_t DMA0_REQ_ENA_SET; /**< Set one or several bits in DMA0_REQ_ENA register, offset: 0x748 */\r
- uint8_t RESERVED_13[4];\r
- __O uint32_t DMA0_REQ_ENA_CLR; /**< Clear one or several bits in DMA0_REQ_ENA register, offset: 0x750 */\r
- uint8_t RESERVED_14[12];\r
- __IO uint32_t DMA1_REQ_ENA; /**< Enable DMA1 requests, offset: 0x760 */\r
- uint8_t RESERVED_15[4];\r
- __O uint32_t DMA1_REQ_ENA_SET; /**< Set one or several bits in DMA1_REQ_ENA register, offset: 0x768 */\r
- uint8_t RESERVED_16[4];\r
- __O uint32_t DMA1_REQ_ENA_CLR; /**< Clear one or several bits in DMA1_REQ_ENA register, offset: 0x770 */\r
- uint8_t RESERVED_17[12];\r
- __IO uint32_t DMA0_ITRIG_ENA; /**< Enable DMA0 triggers, offset: 0x780 */\r
- uint8_t RESERVED_18[4];\r
- __O uint32_t DMA0_ITRIG_ENA_SET; /**< Set one or several bits in DMA0_ITRIG_ENA register, offset: 0x788 */\r
- uint8_t RESERVED_19[4];\r
- __O uint32_t DMA0_ITRIG_ENA_CLR; /**< Clear one or several bits in DMA0_ITRIG_ENA register, offset: 0x790 */\r
- uint8_t RESERVED_20[12];\r
- __IO uint32_t DMA1_ITRIG_ENA; /**< Enable DMA1 triggers, offset: 0x7A0 */\r
- uint8_t RESERVED_21[4];\r
- __O uint32_t DMA1_ITRIG_ENA_SET; /**< Set one or several bits in DMA1_ITRIG_ENA register, offset: 0x7A8 */\r
- uint8_t RESERVED_22[4];\r
- __O uint32_t DMA1_ITRIG_ENA_CLR; /**< Clear one or several bits in DMA1_ITRIG_ENA register, offset: 0x7B0 */\r
+typedef struct\r
+{\r
+ __IO uint32_t SCT0_INMUX[7]; /**< Input mux register for SCT0 input, array offset: 0x0, array step: 0x4 */\r
+ uint8_t RESERVED_0[4];\r
+ __IO uint32_t\r
+ TIMER0CAPTSEL[4]; /**< Capture select registers for TIMER0 inputs, array offset: 0x20, array step: 0x4 */\r
+ uint8_t RESERVED_1[16];\r
+ __IO uint32_t\r
+ TIMER1CAPTSEL[4]; /**< Capture select registers for TIMER1 inputs, array offset: 0x40, array step: 0x4 */\r
+ uint8_t RESERVED_2[16];\r
+ __IO uint32_t\r
+ TIMER2CAPTSEL[4]; /**< Capture select registers for TIMER2 inputs, array offset: 0x60, array step: 0x4 */\r
+ uint8_t RESERVED_3[80];\r
+ __IO uint32_t PINTSEL[8]; /**< Pin interrupt select register, array offset: 0xC0, array step: 0x4 */\r
+ __IO uint32_t\r
+ DMA0_ITRIG_INMUX[23]; /**< Trigger select register for DMA0 channel, array offset: 0xE0, array step: 0x4 */\r
+ uint8_t RESERVED_4[36];\r
+ __IO uint32_t DMA0_OTRIG_INMUX[4]; /**< DMA0 output trigger selection to become DMA0 trigger, array offset: 0x160,\r
+ array step: 0x4 */\r
+ uint8_t RESERVED_5[16];\r
+ __IO uint32_t FREQMEAS_REF; /**< Selection for frequency measurement reference clock, offset: 0x180 */\r
+ __IO uint32_t FREQMEAS_TARGET; /**< Selection for frequency measurement target clock, offset: 0x184 */\r
+ uint8_t RESERVED_6[24];\r
+ __IO uint32_t\r
+ TIMER3CAPTSEL[4]; /**< Capture select registers for TIMER3 inputs, array offset: 0x1A0, array step: 0x4 */\r
+ uint8_t RESERVED_7[16];\r
+ __IO uint32_t\r
+ TIMER4CAPTSEL[4]; /**< Capture select registers for TIMER4 inputs, array offset: 0x1C0, array step: 0x4 */\r
+ uint8_t RESERVED_8[16];\r
+ __IO uint32_t PINTSECSEL[2]; /**< Pin interrupt secure select register, array offset: 0x1E0, array step: 0x4 */\r
+ uint8_t RESERVED_9[24];\r
+ __IO uint32_t\r
+ DMA1_ITRIG_INMUX[10]; /**< Trigger select register for DMA1 channel, array offset: 0x200, array step: 0x4 */\r
+ uint8_t RESERVED_10[24];\r
+ __IO uint32_t DMA1_OTRIG_INMUX[4]; /**< DMA1 output trigger selection to become DMA1 trigger, array offset: 0x240,\r
+ array step: 0x4 */\r
+ uint8_t RESERVED_11[1264];\r
+ __IO uint32_t DMA0_REQ_ENA; /**< Enable DMA0 requests, offset: 0x740 */\r
+ uint8_t RESERVED_12[4];\r
+ __O uint32_t DMA0_REQ_ENA_SET; /**< Set one or several bits in DMA0_REQ_ENA register, offset: 0x748 */\r
+ uint8_t RESERVED_13[4];\r
+ __O uint32_t DMA0_REQ_ENA_CLR; /**< Clear one or several bits in DMA0_REQ_ENA register, offset: 0x750 */\r
+ uint8_t RESERVED_14[12];\r
+ __IO uint32_t DMA1_REQ_ENA; /**< Enable DMA1 requests, offset: 0x760 */\r
+ uint8_t RESERVED_15[4];\r
+ __O uint32_t DMA1_REQ_ENA_SET; /**< Set one or several bits in DMA1_REQ_ENA register, offset: 0x768 */\r
+ uint8_t RESERVED_16[4];\r
+ __O uint32_t DMA1_REQ_ENA_CLR; /**< Clear one or several bits in DMA1_REQ_ENA register, offset: 0x770 */\r
+ uint8_t RESERVED_17[12];\r
+ __IO uint32_t DMA0_ITRIG_ENA; /**< Enable DMA0 triggers, offset: 0x780 */\r
+ uint8_t RESERVED_18[4];\r
+ __O uint32_t DMA0_ITRIG_ENA_SET; /**< Set one or several bits in DMA0_ITRIG_ENA register, offset: 0x788 */\r
+ uint8_t RESERVED_19[4];\r
+ __O uint32_t DMA0_ITRIG_ENA_CLR; /**< Clear one or several bits in DMA0_ITRIG_ENA register, offset: 0x790 */\r
+ uint8_t RESERVED_20[12];\r
+ __IO uint32_t DMA1_ITRIG_ENA; /**< Enable DMA1 triggers, offset: 0x7A0 */\r
+ uint8_t RESERVED_21[4];\r
+ __O uint32_t DMA1_ITRIG_ENA_SET; /**< Set one or several bits in DMA1_ITRIG_ENA register, offset: 0x7A8 */\r
+ uint8_t RESERVED_22[4];\r
+ __O uint32_t DMA1_ITRIG_ENA_CLR; /**< Clear one or several bits in DMA1_ITRIG_ENA register, offset: 0x7B0 */\r
} INPUTMUX_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name SCT0_INMUX - Input mux register for SCT0 input */\r
/*! @{ */\r
-#define INPUTMUX_SCT0_INMUX_INP_N_MASK (0x1FU)\r
-#define INPUTMUX_SCT0_INMUX_INP_N_SHIFT (0U)\r
+#define INPUTMUX_SCT0_INMUX_INP_N_MASK (0x1FU)\r
+#define INPUTMUX_SCT0_INMUX_INP_N_SHIFT (0U)\r
/*! INP_N - Input number to SCT0 inputs 0 to 6..\r
* 0b00000..SCT_GPI0 function selected from IOCON register\r
* 0b00001..SCT_GPI1 function selected from IOCON register\r
* 0b10111..DEBUG_HALTED from cpu0 or cpu1\r
* 0b11000-0b11111..None\r
*/\r
-#define INPUTMUX_SCT0_INMUX_INP_N(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_SCT0_INMUX_INP_N_SHIFT)) & INPUTMUX_SCT0_INMUX_INP_N_MASK)\r
+#define INPUTMUX_SCT0_INMUX_INP_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_SCT0_INMUX_INP_N_SHIFT)) & INPUTMUX_SCT0_INMUX_INP_N_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_SCT0_INMUX */\r
-#define INPUTMUX_SCT0_INMUX_COUNT (7U)\r
+#define INPUTMUX_SCT0_INMUX_COUNT (7U)\r
\r
/*! @name TIMER0CAPTSEL - Capture select registers for TIMER0 inputs */\r
/*! @{ */\r
-#define INPUTMUX_TIMER0CAPTSEL_CAPTSEL_MASK (0x1FU)\r
-#define INPUTMUX_TIMER0CAPTSEL_CAPTSEL_SHIFT (0U)\r
+#define INPUTMUX_TIMER0CAPTSEL_CAPTSEL_MASK (0x1FU)\r
+#define INPUTMUX_TIMER0CAPTSEL_CAPTSEL_SHIFT (0U)\r
/*! CAPTSEL - Input number to TIMER0 capture inputs 0 to 4\r
* 0b00000..CT_INP0 function selected from IOCON register\r
* 0b00001..CT_INP1 function selected from IOCON register\r
* 0b01110..CT_INP14 function selected from IOCON register\r
* 0b01111..CT_INP15 function selected from IOCON register\r
* 0b10000..CT_INP16 function selected from IOCON register\r
- * 0b10001..CT_INP17 function selected from IOCON register\r
- * 0b10010..CT_INP18 function selected from IOCON register\r
- * 0b10011..CT_INP19 function selected from IOCON register\r
+ * 0b10001..None\r
+ * 0b10010..None\r
+ * 0b10011..None\r
* 0b10100..USB0_FRAME_TOGGLE\r
* 0b10101..USB1_FRAME_TOGGLE\r
* 0b10110..COMP_OUTPUT output from analog comparator\r
* 0b11000..I2S_SHARED_WS[1] output from I2S pin sharing\r
* 0b11001-0b11111..None\r
*/\r
-#define INPUTMUX_TIMER0CAPTSEL_CAPTSEL(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER0CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER0CAPTSEL_CAPTSEL_MASK)\r
+#define INPUTMUX_TIMER0CAPTSEL_CAPTSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER0CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER0CAPTSEL_CAPTSEL_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_TIMER0CAPTSEL */\r
-#define INPUTMUX_TIMER0CAPTSEL_COUNT (4U)\r
+#define INPUTMUX_TIMER0CAPTSEL_COUNT (4U)\r
\r
/*! @name TIMER1CAPTSEL - Capture select registers for TIMER1 inputs */\r
/*! @{ */\r
-#define INPUTMUX_TIMER1CAPTSEL_CAPTSEL_MASK (0x1FU)\r
-#define INPUTMUX_TIMER1CAPTSEL_CAPTSEL_SHIFT (0U)\r
+#define INPUTMUX_TIMER1CAPTSEL_CAPTSEL_MASK (0x1FU)\r
+#define INPUTMUX_TIMER1CAPTSEL_CAPTSEL_SHIFT (0U)\r
/*! CAPTSEL - Input number to TIMER1 capture inputs 0 to 4\r
* 0b00000..CT_INP0 function selected from IOCON register\r
* 0b00001..CT_INP1 function selected from IOCON register\r
* 0b01110..CT_INP14 function selected from IOCON register\r
* 0b01111..CT_INP15 function selected from IOCON register\r
* 0b10000..CT_INP16 function selected from IOCON register\r
- * 0b10001..CT_INP17 function selected from IOCON register\r
- * 0b10010..CT_INP18 function selected from IOCON register\r
- * 0b10011..CT_INP19 function selected from IOCON register\r
+ * 0b10001..None\r
+ * 0b10010..None\r
+ * 0b10011..None\r
* 0b10100..USB0_FRAME_TOGGLE\r
* 0b10101..USB1_FRAME_TOGGLE\r
* 0b10110..COMP_OUTPUT output from analog comparator\r
* 0b11000..I2S_SHARED_WS[1] output from I2S pin sharing\r
* 0b11001-0b11111..None\r
*/\r
-#define INPUTMUX_TIMER1CAPTSEL_CAPTSEL(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER1CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER1CAPTSEL_CAPTSEL_MASK)\r
+#define INPUTMUX_TIMER1CAPTSEL_CAPTSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER1CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER1CAPTSEL_CAPTSEL_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_TIMER1CAPTSEL */\r
-#define INPUTMUX_TIMER1CAPTSEL_COUNT (4U)\r
+#define INPUTMUX_TIMER1CAPTSEL_COUNT (4U)\r
\r
/*! @name TIMER2CAPTSEL - Capture select registers for TIMER2 inputs */\r
/*! @{ */\r
-#define INPUTMUX_TIMER2CAPTSEL_CAPTSEL_MASK (0x1FU)\r
-#define INPUTMUX_TIMER2CAPTSEL_CAPTSEL_SHIFT (0U)\r
+#define INPUTMUX_TIMER2CAPTSEL_CAPTSEL_MASK (0x1FU)\r
+#define INPUTMUX_TIMER2CAPTSEL_CAPTSEL_SHIFT (0U)\r
/*! CAPTSEL - Input number to TIMER2 capture inputs 0 to 4\r
* 0b00000..CT_INP0 function selected from IOCON register\r
* 0b00001..CT_INP1 function selected from IOCON register\r
* 0b01110..CT_INP14 function selected from IOCON register\r
* 0b01111..CT_INP15 function selected from IOCON register\r
* 0b10000..CT_INP16 function selected from IOCON register\r
- * 0b10001..CT_INP17 function selected from IOCON register\r
- * 0b10010..CT_INP18 function selected from IOCON register\r
- * 0b10011..CT_INP19 function selected from IOCON register\r
+ * 0b10001..None\r
+ * 0b10010..None\r
+ * 0b10011..None\r
* 0b10100..USB0_FRAME_TOGGLE\r
* 0b10101..USB1_FRAME_TOGGLE\r
* 0b10110..COMP_OUTPUT output from analog comparator\r
* 0b11000..I2S_SHARED_WS[1] output from I2S pin sharing\r
* 0b11001-0b11111..None\r
*/\r
-#define INPUTMUX_TIMER2CAPTSEL_CAPTSEL(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER2CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER2CAPTSEL_CAPTSEL_MASK)\r
+#define INPUTMUX_TIMER2CAPTSEL_CAPTSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER2CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER2CAPTSEL_CAPTSEL_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_TIMER2CAPTSEL */\r
-#define INPUTMUX_TIMER2CAPTSEL_COUNT (4U)\r
+#define INPUTMUX_TIMER2CAPTSEL_COUNT (4U)\r
\r
/*! @name PINTSEL - Pin interrupt select register */\r
/*! @{ */\r
-#define INPUTMUX_PINTSEL_INTPIN_MASK (0x7FU)\r
-#define INPUTMUX_PINTSEL_INTPIN_SHIFT (0U)\r
-#define INPUTMUX_PINTSEL_INTPIN(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_PINTSEL_INTPIN_SHIFT)) & INPUTMUX_PINTSEL_INTPIN_MASK)\r
+#define INPUTMUX_PINTSEL_INTPIN_MASK (0x7FU)\r
+#define INPUTMUX_PINTSEL_INTPIN_SHIFT (0U)\r
+/*! INTPIN - Pin number select for pin interrupt or pattern match engine input. For PIOx_y: INTPIN =\r
+ * (x * 32) + y. PIO0_0 to PIO1_31 correspond to numbers 0 to 63.\r
+ */\r
+#define INPUTMUX_PINTSEL_INTPIN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_PINTSEL_INTPIN_SHIFT)) & INPUTMUX_PINTSEL_INTPIN_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_PINTSEL */\r
-#define INPUTMUX_PINTSEL_COUNT (8U)\r
+#define INPUTMUX_PINTSEL_COUNT (8U)\r
\r
/*! @name DMA0_ITRIG_INMUX - Trigger select register for DMA0 channel */\r
/*! @{ */\r
-#define INPUTMUX_DMA0_ITRIG_INMUX_INP_MASK (0x1FU)\r
-#define INPUTMUX_DMA0_ITRIG_INMUX_INP_SHIFT (0U)\r
+#define INPUTMUX_DMA0_ITRIG_INMUX_INP_MASK (0x1FU)\r
+#define INPUTMUX_DMA0_ITRIG_INMUX_INP_SHIFT (0U)\r
/*! INP - Trigger input number (decimal value) for DMA channel n (n = 0 to 22).\r
* 0b00000..Pin interrupt 0\r
* 0b00001..Pin interrupt 1\r
* 0b10101..HASH DMA RX trigger\r
* 0b10110-0b11111..None\r
*/\r
-#define INPUTMUX_DMA0_ITRIG_INMUX_INP(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_ITRIG_INMUX_INP_SHIFT)) & INPUTMUX_DMA0_ITRIG_INMUX_INP_MASK)\r
+#define INPUTMUX_DMA0_ITRIG_INMUX_INP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_ITRIG_INMUX_INP_SHIFT)) & INPUTMUX_DMA0_ITRIG_INMUX_INP_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_DMA0_ITRIG_INMUX */\r
-#define INPUTMUX_DMA0_ITRIG_INMUX_COUNT (23U)\r
+#define INPUTMUX_DMA0_ITRIG_INMUX_COUNT (23U)\r
\r
/*! @name DMA0_OTRIG_INMUX - DMA0 output trigger selection to become DMA0 trigger */\r
/*! @{ */\r
-#define INPUTMUX_DMA0_OTRIG_INMUX_INP_MASK (0x1FU)\r
-#define INPUTMUX_DMA0_OTRIG_INMUX_INP_SHIFT (0U)\r
-#define INPUTMUX_DMA0_OTRIG_INMUX_INP(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_OTRIG_INMUX_INP_SHIFT)) & INPUTMUX_DMA0_OTRIG_INMUX_INP_MASK)\r
+#define INPUTMUX_DMA0_OTRIG_INMUX_INP_MASK (0x1FU)\r
+#define INPUTMUX_DMA0_OTRIG_INMUX_INP_SHIFT (0U)\r
+/*! INP - DMA trigger output number (decimal value) for DMA channel n (n = 0 to 22).\r
+ */\r
+#define INPUTMUX_DMA0_OTRIG_INMUX_INP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_OTRIG_INMUX_INP_SHIFT)) & INPUTMUX_DMA0_OTRIG_INMUX_INP_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_DMA0_OTRIG_INMUX */\r
-#define INPUTMUX_DMA0_OTRIG_INMUX_COUNT (4U)\r
+#define INPUTMUX_DMA0_OTRIG_INMUX_COUNT (4U)\r
\r
/*! @name FREQMEAS_REF - Selection for frequency measurement reference clock */\r
/*! @{ */\r
-#define INPUTMUX_FREQMEAS_REF_CLKIN_MASK (0x1FU)\r
-#define INPUTMUX_FREQMEAS_REF_CLKIN_SHIFT (0U)\r
-#define INPUTMUX_FREQMEAS_REF_CLKIN(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_FREQMEAS_REF_CLKIN_SHIFT)) & INPUTMUX_FREQMEAS_REF_CLKIN_MASK)\r
+#define INPUTMUX_FREQMEAS_REF_CLKIN_MASK (0x1FU)\r
+#define INPUTMUX_FREQMEAS_REF_CLKIN_SHIFT (0U)\r
+/*! CLKIN - Clock source number (decimal value) for frequency measure function target clock: 0 =\r
+ * CLK_IN 1 = FRO 12 MHz oscillator 2 = Watchdog oscillator 3 = 32 kHz RTC oscillator 4 = Main clock\r
+ * (see Section 4.5.23) 5 = PIO0_4 6 = PIO0_20 7 = PIO0_24 8 = PIO1_4\r
+ */\r
+#define INPUTMUX_FREQMEAS_REF_CLKIN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_FREQMEAS_REF_CLKIN_SHIFT)) & INPUTMUX_FREQMEAS_REF_CLKIN_MASK)\r
/*! @} */\r
\r
/*! @name FREQMEAS_TARGET - Selection for frequency measurement target clock */\r
/*! @{ */\r
-#define INPUTMUX_FREQMEAS_TARGET_CLKIN_MASK (0x1FU)\r
-#define INPUTMUX_FREQMEAS_TARGET_CLKIN_SHIFT (0U)\r
-#define INPUTMUX_FREQMEAS_TARGET_CLKIN(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_FREQMEAS_TARGET_CLKIN_SHIFT)) & INPUTMUX_FREQMEAS_TARGET_CLKIN_MASK)\r
+#define INPUTMUX_FREQMEAS_TARGET_CLKIN_MASK (0x1FU)\r
+#define INPUTMUX_FREQMEAS_TARGET_CLKIN_SHIFT (0U)\r
+/*! CLKIN - Clock source number (decimal value) for frequency measure function target clock: 0 =\r
+ * CLK_IN 1 = FRO 12 MHz oscillator 2 = Watchdog oscillator 3 = 32 kHz RTC oscillator 4 = Main clock\r
+ * (see Section 4.5.23) 5 = PIO0_4 6 = PIO0_20 7 = PIO0_24 8 = PIO1_4\r
+ */\r
+#define INPUTMUX_FREQMEAS_TARGET_CLKIN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_FREQMEAS_TARGET_CLKIN_SHIFT)) & INPUTMUX_FREQMEAS_TARGET_CLKIN_MASK)\r
/*! @} */\r
\r
/*! @name TIMER3CAPTSEL - Capture select registers for TIMER3 inputs */\r
/*! @{ */\r
-#define INPUTMUX_TIMER3CAPTSEL_CAPTSEL_MASK (0x1FU)\r
-#define INPUTMUX_TIMER3CAPTSEL_CAPTSEL_SHIFT (0U)\r
+#define INPUTMUX_TIMER3CAPTSEL_CAPTSEL_MASK (0x1FU)\r
+#define INPUTMUX_TIMER3CAPTSEL_CAPTSEL_SHIFT (0U)\r
/*! CAPTSEL - Input number to TIMER3 capture inputs 0 to 4\r
* 0b00000..CT_INP0 function selected from IOCON register\r
* 0b00001..CT_INP1 function selected from IOCON register\r
* 0b11000..I2S_SHARED_WS[1] output from I2S pin sharing\r
* 0b11001-0b11111..None\r
*/\r
-#define INPUTMUX_TIMER3CAPTSEL_CAPTSEL(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER3CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER3CAPTSEL_CAPTSEL_MASK)\r
+#define INPUTMUX_TIMER3CAPTSEL_CAPTSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER3CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER3CAPTSEL_CAPTSEL_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_TIMER3CAPTSEL */\r
-#define INPUTMUX_TIMER3CAPTSEL_COUNT (4U)\r
+#define INPUTMUX_TIMER3CAPTSEL_COUNT (4U)\r
\r
/*! @name TIMER4CAPTSEL - Capture select registers for TIMER4 inputs */\r
/*! @{ */\r
-#define INPUTMUX_TIMER4CAPTSEL_CAPTSEL_MASK (0x1FU)\r
-#define INPUTMUX_TIMER4CAPTSEL_CAPTSEL_SHIFT (0U)\r
+#define INPUTMUX_TIMER4CAPTSEL_CAPTSEL_MASK (0x1FU)\r
+#define INPUTMUX_TIMER4CAPTSEL_CAPTSEL_SHIFT (0U)\r
/*! CAPTSEL - Input number to TIMER4 capture inputs 0 to 4\r
* 0b00000..CT_INP0 function selected from IOCON register\r
* 0b00001..CT_INP1 function selected from IOCON register\r
* 0b11000..I2S_SHARED_WS[1] output from I2S pin sharing\r
* 0b11001-0b11111..None\r
*/\r
-#define INPUTMUX_TIMER4CAPTSEL_CAPTSEL(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER4CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER4CAPTSEL_CAPTSEL_MASK)\r
+#define INPUTMUX_TIMER4CAPTSEL_CAPTSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_TIMER4CAPTSEL_CAPTSEL_SHIFT)) & INPUTMUX_TIMER4CAPTSEL_CAPTSEL_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_TIMER4CAPTSEL */\r
-#define INPUTMUX_TIMER4CAPTSEL_COUNT (4U)\r
+#define INPUTMUX_TIMER4CAPTSEL_COUNT (4U)\r
\r
/*! @name PINTSECSEL - Pin interrupt secure select register */\r
/*! @{ */\r
-#define INPUTMUX_PINTSECSEL_INTPIN_MASK (0x3FU)\r
-#define INPUTMUX_PINTSECSEL_INTPIN_SHIFT (0U)\r
-#define INPUTMUX_PINTSECSEL_INTPIN(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_PINTSECSEL_INTPIN_SHIFT)) & INPUTMUX_PINTSECSEL_INTPIN_MASK)\r
+#define INPUTMUX_PINTSECSEL_INTPIN_MASK (0x3FU)\r
+#define INPUTMUX_PINTSECSEL_INTPIN_SHIFT (0U)\r
+/*! INTPIN - Pin number select for pin interrupt secure or pattern match engine input. For PIO0_x:\r
+ * INTPIN = x. PIO0_0 to PIO0_31 correspond to numbers 0 to 31.\r
+ */\r
+#define INPUTMUX_PINTSECSEL_INTPIN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_PINTSECSEL_INTPIN_SHIFT)) & INPUTMUX_PINTSECSEL_INTPIN_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_PINTSECSEL */\r
-#define INPUTMUX_PINTSECSEL_COUNT (2U)\r
+#define INPUTMUX_PINTSECSEL_COUNT (2U)\r
\r
/*! @name DMA1_ITRIG_INMUX - Trigger select register for DMA1 channel */\r
/*! @{ */\r
-#define INPUTMUX_DMA1_ITRIG_INMUX_INP_MASK (0xFU)\r
-#define INPUTMUX_DMA1_ITRIG_INMUX_INP_SHIFT (0U)\r
+#define INPUTMUX_DMA1_ITRIG_INMUX_INP_MASK (0xFU)\r
+#define INPUTMUX_DMA1_ITRIG_INMUX_INP_SHIFT (0U)\r
/*! INP - Trigger input number (decimal value) for DMA channel n (n = 0 to 9).\r
* 0b0000..Pin interrupt 0\r
* 0b0001..Pin interrupt 1\r
* 0b1110..HASH DMA RX trigger\r
* 0b1111..None\r
*/\r
-#define INPUTMUX_DMA1_ITRIG_INMUX_INP(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_ITRIG_INMUX_INP_SHIFT)) & INPUTMUX_DMA1_ITRIG_INMUX_INP_MASK)\r
+#define INPUTMUX_DMA1_ITRIG_INMUX_INP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_ITRIG_INMUX_INP_SHIFT)) & INPUTMUX_DMA1_ITRIG_INMUX_INP_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_DMA1_ITRIG_INMUX */\r
-#define INPUTMUX_DMA1_ITRIG_INMUX_COUNT (10U)\r
+#define INPUTMUX_DMA1_ITRIG_INMUX_COUNT (10U)\r
\r
/*! @name DMA1_OTRIG_INMUX - DMA1 output trigger selection to become DMA1 trigger */\r
/*! @{ */\r
-#define INPUTMUX_DMA1_OTRIG_INMUX_INP_MASK (0xFU)\r
-#define INPUTMUX_DMA1_OTRIG_INMUX_INP_SHIFT (0U)\r
-#define INPUTMUX_DMA1_OTRIG_INMUX_INP(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_OTRIG_INMUX_INP_SHIFT)) & INPUTMUX_DMA1_OTRIG_INMUX_INP_MASK)\r
+#define INPUTMUX_DMA1_OTRIG_INMUX_INP_MASK (0xFU)\r
+#define INPUTMUX_DMA1_OTRIG_INMUX_INP_SHIFT (0U)\r
+/*! INP - DMA trigger output number (decimal value) for DMA channel n (n = 0 to 9).\r
+ */\r
+#define INPUTMUX_DMA1_OTRIG_INMUX_INP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_OTRIG_INMUX_INP_SHIFT)) & INPUTMUX_DMA1_OTRIG_INMUX_INP_MASK)\r
/*! @} */\r
\r
/* The count of INPUTMUX_DMA1_OTRIG_INMUX */\r
-#define INPUTMUX_DMA1_OTRIG_INMUX_COUNT (4U)\r
+#define INPUTMUX_DMA1_OTRIG_INMUX_COUNT (4U)\r
\r
/*! @name DMA0_REQ_ENA - Enable DMA0 requests */\r
/*! @{ */\r
-#define INPUTMUX_DMA0_REQ_ENA_REQ_ENA_MASK (0x7FFFFFU)\r
-#define INPUTMUX_DMA0_REQ_ENA_REQ_ENA_SHIFT (0U)\r
-#define INPUTMUX_DMA0_REQ_ENA_REQ_ENA(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_REQ_ENA_REQ_ENA_SHIFT)) & INPUTMUX_DMA0_REQ_ENA_REQ_ENA_MASK)\r
+#define INPUTMUX_DMA0_REQ_ENA_REQ_ENA_MASK (0x7FFFFFU)\r
+#define INPUTMUX_DMA0_REQ_ENA_REQ_ENA_SHIFT (0U)\r
+/*! REQ_ENA - Controls the 23 request inputs of DMA0. If bit i is '1' the DMA request input #i is enabled.\r
+ */\r
+#define INPUTMUX_DMA0_REQ_ENA_REQ_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_REQ_ENA_REQ_ENA_SHIFT)) & INPUTMUX_DMA0_REQ_ENA_REQ_ENA_MASK)\r
/*! @} */\r
\r
/*! @name DMA0_REQ_ENA_SET - Set one or several bits in DMA0_REQ_ENA register */\r
/*! @{ */\r
-#define INPUTMUX_DMA0_REQ_ENA_SET_SET_MASK (0x7FFFFFU)\r
-#define INPUTMUX_DMA0_REQ_ENA_SET_SET_SHIFT (0U)\r
-#define INPUTMUX_DMA0_REQ_ENA_SET_SET(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_REQ_ENA_SET_SET_SHIFT)) & INPUTMUX_DMA0_REQ_ENA_SET_SET_MASK)\r
+#define INPUTMUX_DMA0_REQ_ENA_SET_SET_MASK (0x7FFFFFU)\r
+#define INPUTMUX_DMA0_REQ_ENA_SET_SET_SHIFT (0U)\r
+/*! SET - Write : If bit #i = 1, bit #i in DMA0_REQ_ENA register is set to 1; if bit #i = 0 , no change in DMA0_REQ_ENA\r
+ * register\r
+ */\r
+#define INPUTMUX_DMA0_REQ_ENA_SET_SET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_REQ_ENA_SET_SET_SHIFT)) & INPUTMUX_DMA0_REQ_ENA_SET_SET_MASK)\r
/*! @} */\r
\r
/*! @name DMA0_REQ_ENA_CLR - Clear one or several bits in DMA0_REQ_ENA register */\r
/*! @{ */\r
-#define INPUTMUX_DMA0_REQ_ENA_CLR_CLR_MASK (0x7FFFFFU)\r
-#define INPUTMUX_DMA0_REQ_ENA_CLR_CLR_SHIFT (0U)\r
-#define INPUTMUX_DMA0_REQ_ENA_CLR_CLR(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_REQ_ENA_CLR_CLR_SHIFT)) & INPUTMUX_DMA0_REQ_ENA_CLR_CLR_MASK)\r
+#define INPUTMUX_DMA0_REQ_ENA_CLR_CLR_MASK (0x7FFFFFU)\r
+#define INPUTMUX_DMA0_REQ_ENA_CLR_CLR_SHIFT (0U)\r
+/*! CLR - Write : If bit #i = 1, bit #i in DMA0_REQ_ENA register is reset to 0; if bit #i = 0 , no change in\r
+ * DMA0_REQ_ENA register\r
+ */\r
+#define INPUTMUX_DMA0_REQ_ENA_CLR_CLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_REQ_ENA_CLR_CLR_SHIFT)) & INPUTMUX_DMA0_REQ_ENA_CLR_CLR_MASK)\r
/*! @} */\r
\r
/*! @name DMA1_REQ_ENA - Enable DMA1 requests */\r
/*! @{ */\r
-#define INPUTMUX_DMA1_REQ_ENA_REQ_ENA_MASK (0x3FFU)\r
-#define INPUTMUX_DMA1_REQ_ENA_REQ_ENA_SHIFT (0U)\r
-#define INPUTMUX_DMA1_REQ_ENA_REQ_ENA(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_REQ_ENA_REQ_ENA_SHIFT)) & INPUTMUX_DMA1_REQ_ENA_REQ_ENA_MASK)\r
+#define INPUTMUX_DMA1_REQ_ENA_REQ_ENA_MASK (0x3FFU)\r
+#define INPUTMUX_DMA1_REQ_ENA_REQ_ENA_SHIFT (0U)\r
+/*! REQ_ENA - Controls the 10 request inputs of DMA1. If bit i is '1' the DMA request input #i is enabled.\r
+ */\r
+#define INPUTMUX_DMA1_REQ_ENA_REQ_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_REQ_ENA_REQ_ENA_SHIFT)) & INPUTMUX_DMA1_REQ_ENA_REQ_ENA_MASK)\r
/*! @} */\r
\r
/*! @name DMA1_REQ_ENA_SET - Set one or several bits in DMA1_REQ_ENA register */\r
/*! @{ */\r
-#define INPUTMUX_DMA1_REQ_ENA_SET_SET_MASK (0x3FFU)\r
-#define INPUTMUX_DMA1_REQ_ENA_SET_SET_SHIFT (0U)\r
-#define INPUTMUX_DMA1_REQ_ENA_SET_SET(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_REQ_ENA_SET_SET_SHIFT)) & INPUTMUX_DMA1_REQ_ENA_SET_SET_MASK)\r
+#define INPUTMUX_DMA1_REQ_ENA_SET_SET_MASK (0x3FFU)\r
+#define INPUTMUX_DMA1_REQ_ENA_SET_SET_SHIFT (0U)\r
+/*! SET - Write : If bit #i = 1, bit #i in DMA1_REQ_ENA register is set to 1; if bit #i = 0 , no change in DMA1_REQ_ENA\r
+ * register\r
+ */\r
+#define INPUTMUX_DMA1_REQ_ENA_SET_SET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_REQ_ENA_SET_SET_SHIFT)) & INPUTMUX_DMA1_REQ_ENA_SET_SET_MASK)\r
/*! @} */\r
\r
/*! @name DMA1_REQ_ENA_CLR - Clear one or several bits in DMA1_REQ_ENA register */\r
/*! @{ */\r
-#define INPUTMUX_DMA1_REQ_ENA_CLR_CLR_MASK (0x3FFU)\r
-#define INPUTMUX_DMA1_REQ_ENA_CLR_CLR_SHIFT (0U)\r
-#define INPUTMUX_DMA1_REQ_ENA_CLR_CLR(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_REQ_ENA_CLR_CLR_SHIFT)) & INPUTMUX_DMA1_REQ_ENA_CLR_CLR_MASK)\r
+#define INPUTMUX_DMA1_REQ_ENA_CLR_CLR_MASK (0x3FFU)\r
+#define INPUTMUX_DMA1_REQ_ENA_CLR_CLR_SHIFT (0U)\r
+/*! CLR - Write : If bit #i = 1, bit #i in DMA1_REQ_ENA register is reset to 0; if bit #i = 0 , no change in\r
+ * DMA1_REQ_ENA register\r
+ */\r
+#define INPUTMUX_DMA1_REQ_ENA_CLR_CLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_REQ_ENA_CLR_CLR_SHIFT)) & INPUTMUX_DMA1_REQ_ENA_CLR_CLR_MASK)\r
/*! @} */\r
\r
/*! @name DMA0_ITRIG_ENA - Enable DMA0 triggers */\r
/*! @{ */\r
-#define INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA_MASK (0x3FFFFFU)\r
-#define INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA_SHIFT (0U)\r
-#define INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA_SHIFT)) & INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA_MASK)\r
+#define INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA_MASK (0x3FFFFFU)\r
+#define INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA_SHIFT (0U)\r
+/*! ITRIG_ENA - Controls the 22 trigger inputs of DMA0. If bit i is '1' the DMA trigger input #i is enabled.\r
+ */\r
+#define INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA_SHIFT)) & INPUTMUX_DMA0_ITRIG_ENA_ITRIG_ENA_MASK)\r
/*! @} */\r
\r
/*! @name DMA0_ITRIG_ENA_SET - Set one or several bits in DMA0_ITRIG_ENA register */\r
/*! @{ */\r
-#define INPUTMUX_DMA0_ITRIG_ENA_SET_SET_MASK (0x3FFFFFU)\r
-#define INPUTMUX_DMA0_ITRIG_ENA_SET_SET_SHIFT (0U)\r
-#define INPUTMUX_DMA0_ITRIG_ENA_SET_SET(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_ITRIG_ENA_SET_SET_SHIFT)) & INPUTMUX_DMA0_ITRIG_ENA_SET_SET_MASK)\r
+#define INPUTMUX_DMA0_ITRIG_ENA_SET_SET_MASK (0x3FFFFFU)\r
+#define INPUTMUX_DMA0_ITRIG_ENA_SET_SET_SHIFT (0U)\r
+/*! SET - Write : If bit #i = 1, bit #i in DMA0_ITRIG_ENA register is set to 1; if bit #i = 0 , no\r
+ * change in DMA0_ITRIG_ENA register\r
+ */\r
+#define INPUTMUX_DMA0_ITRIG_ENA_SET_SET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_ITRIG_ENA_SET_SET_SHIFT)) & INPUTMUX_DMA0_ITRIG_ENA_SET_SET_MASK)\r
/*! @} */\r
\r
/*! @name DMA0_ITRIG_ENA_CLR - Clear one or several bits in DMA0_ITRIG_ENA register */\r
/*! @{ */\r
-#define INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR_MASK (0x3FFFFFU)\r
-#define INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR_SHIFT (0U)\r
-#define INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR_SHIFT)) & INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR_MASK)\r
+#define INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR_MASK (0x3FFFFFU)\r
+#define INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR_SHIFT (0U)\r
+/*! CLR - Write : If bit #i = 1, bit #i in DMA0_ITRIG_ENA register is reset to 0; if bit #i = 0 , no\r
+ * change in DMA0_ITRIG_ENA register\r
+ */\r
+#define INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR_SHIFT)) & INPUTMUX_DMA0_ITRIG_ENA_CLR_CLR_MASK)\r
/*! @} */\r
\r
/*! @name DMA1_ITRIG_ENA - Enable DMA1 triggers */\r
/*! @{ */\r
-#define INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA_MASK (0x7FFFU)\r
-#define INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA_SHIFT (0U)\r
-#define INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA_SHIFT)) & INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA_MASK)\r
+#define INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA_MASK (0x7FFFU)\r
+#define INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA_SHIFT (0U)\r
+/*! ITRIG_ENA - Controls the 15 trigger inputs of DMA1. If bit i is '1' the DMA trigger input #i is enabled.\r
+ */\r
+#define INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA_SHIFT)) & INPUTMUX_DMA1_ITRIG_ENA_ITRIG_ENA_MASK)\r
/*! @} */\r
\r
/*! @name DMA1_ITRIG_ENA_SET - Set one or several bits in DMA1_ITRIG_ENA register */\r
/*! @{ */\r
-#define INPUTMUX_DMA1_ITRIG_ENA_SET_SET_MASK (0x7FFFU)\r
-#define INPUTMUX_DMA1_ITRIG_ENA_SET_SET_SHIFT (0U)\r
-#define INPUTMUX_DMA1_ITRIG_ENA_SET_SET(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_ITRIG_ENA_SET_SET_SHIFT)) & INPUTMUX_DMA1_ITRIG_ENA_SET_SET_MASK)\r
+#define INPUTMUX_DMA1_ITRIG_ENA_SET_SET_MASK (0x7FFFU)\r
+#define INPUTMUX_DMA1_ITRIG_ENA_SET_SET_SHIFT (0U)\r
+/*! SET - Write : If bit #i = 1, bit #i in DMA1_ITRIG_ENA register is set to 1; if bit #i = 0 , no\r
+ * change in DMA1_ITRIG_ENA register\r
+ */\r
+#define INPUTMUX_DMA1_ITRIG_ENA_SET_SET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_ITRIG_ENA_SET_SET_SHIFT)) & INPUTMUX_DMA1_ITRIG_ENA_SET_SET_MASK)\r
/*! @} */\r
\r
/*! @name DMA1_ITRIG_ENA_CLR - Clear one or several bits in DMA1_ITRIG_ENA register */\r
/*! @{ */\r
-#define INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR_MASK (0x7FFFU)\r
-#define INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR_SHIFT (0U)\r
-#define INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR(x) (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR_SHIFT)) & INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR_MASK)\r
+#define INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR_MASK (0x7FFFU)\r
+#define INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR_SHIFT (0U)\r
+/*! CLR - Write : If bit #i = 1, bit #i in DMA1_ITRIG_ENA register is reset to 0; if bit #i = 0 , no\r
+ * change in DMA1_ITRIG_ENA register\r
+ */\r
+#define INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR_SHIFT)) & INPUTMUX_DMA1_ITRIG_ENA_CLR_CLR_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group INPUTMUX_Register_Masks */\r
\r
-\r
/* INPUTMUX - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral INPUTMUX base address */\r
- #define INPUTMUX_BASE (0x50006000u)\r
- /** Peripheral INPUTMUX base address */\r
- #define INPUTMUX_BASE_NS (0x40006000u)\r
- /** Peripheral INPUTMUX base pointer */\r
- #define INPUTMUX ((INPUTMUX_Type *)INPUTMUX_BASE)\r
- /** Peripheral INPUTMUX base pointer */\r
- #define INPUTMUX_NS ((INPUTMUX_Type *)INPUTMUX_BASE_NS)\r
- /** Array initializer of INPUTMUX peripheral base addresses */\r
- #define INPUTMUX_BASE_ADDRS { INPUTMUX_BASE }\r
- /** Array initializer of INPUTMUX peripheral base pointers */\r
- #define INPUTMUX_BASE_PTRS { INPUTMUX }\r
- /** Array initializer of INPUTMUX peripheral base addresses */\r
- #define INPUTMUX_BASE_ADDRS_NS { INPUTMUX_BASE_NS }\r
- /** Array initializer of INPUTMUX peripheral base pointers */\r
- #define INPUTMUX_BASE_PTRS_NS { INPUTMUX_NS }\r
+/** Peripheral INPUTMUX base address */\r
+#define INPUTMUX_BASE (0x50006000u)\r
+/** Peripheral INPUTMUX base address */\r
+#define INPUTMUX_BASE_NS (0x40006000u)\r
+/** Peripheral INPUTMUX base pointer */\r
+#define INPUTMUX ((INPUTMUX_Type *)INPUTMUX_BASE)\r
+/** Peripheral INPUTMUX base pointer */\r
+#define INPUTMUX_NS ((INPUTMUX_Type *)INPUTMUX_BASE_NS)\r
+/** Array initializer of INPUTMUX peripheral base addresses */\r
+#define INPUTMUX_BASE_ADDRS \\r
+ { \\r
+ INPUTMUX_BASE \\r
+ }\r
+/** Array initializer of INPUTMUX peripheral base pointers */\r
+#define INPUTMUX_BASE_PTRS \\r
+ { \\r
+ INPUTMUX \\r
+ }\r
+/** Array initializer of INPUTMUX peripheral base addresses */\r
+#define INPUTMUX_BASE_ADDRS_NS \\r
+ { \\r
+ INPUTMUX_BASE_NS \\r
+ }\r
+/** Array initializer of INPUTMUX peripheral base pointers */\r
+#define INPUTMUX_BASE_PTRS_NS \\r
+ { \\r
+ INPUTMUX_NS \\r
+ }\r
#else\r
- /** Peripheral INPUTMUX base address */\r
- #define INPUTMUX_BASE (0x40006000u)\r
- /** Peripheral INPUTMUX base pointer */\r
- #define INPUTMUX ((INPUTMUX_Type *)INPUTMUX_BASE)\r
- /** Array initializer of INPUTMUX peripheral base addresses */\r
- #define INPUTMUX_BASE_ADDRS { INPUTMUX_BASE }\r
- /** Array initializer of INPUTMUX peripheral base pointers */\r
- #define INPUTMUX_BASE_PTRS { INPUTMUX }\r
+/** Peripheral INPUTMUX base address */\r
+#define INPUTMUX_BASE (0x40006000u)\r
+/** Peripheral INPUTMUX base pointer */\r
+#define INPUTMUX ((INPUTMUX_Type *)INPUTMUX_BASE)\r
+/** Array initializer of INPUTMUX peripheral base addresses */\r
+#define INPUTMUX_BASE_ADDRS \\r
+ { \\r
+ INPUTMUX_BASE \\r
+ }\r
+/** Array initializer of INPUTMUX peripheral base pointers */\r
+#define INPUTMUX_BASE_PTRS \\r
+ { \\r
+ INPUTMUX \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group INPUTMUX_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- IOCON Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** IOCON - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t PIO[2][32]; /**< Digital I/O control for port 0 pins PIO0_0..Digital I/O control for port 1 pins PIO1_31, array offset: 0x0, array step: index*0x80, index2*0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t PIO[2][32]; /**< Digital I/O control for port 0 pins PIO0_0..Digital I/O control for port 1 pins\r
+ PIO1_31, array offset: 0x0, array step: index*0x80, index2*0x4 */\r
} IOCON_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name PIO - Digital I/O control for port 0 pins PIO0_0..Digital I/O control for port 1 pins PIO1_31 */\r
/*! @{ */\r
-#define IOCON_PIO_FUNC_MASK (0xFU)\r
-#define IOCON_PIO_FUNC_SHIFT (0U)\r
+#define IOCON_PIO_FUNC_MASK (0xFU)\r
+#define IOCON_PIO_FUNC_SHIFT (0U)\r
/*! FUNC - Selects pin function.\r
* 0b0000..Alternative connection 0.\r
* 0b0001..Alternative connection 1.\r
* 0b0110..Alternative connection 6.\r
* 0b0111..Alternative connection 7.\r
*/\r
-#define IOCON_PIO_FUNC(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_FUNC_SHIFT)) & IOCON_PIO_FUNC_MASK)\r
-#define IOCON_PIO_MODE_MASK (0x30U)\r
-#define IOCON_PIO_MODE_SHIFT (4U)\r
+#define IOCON_PIO_FUNC(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_FUNC_SHIFT)) & IOCON_PIO_FUNC_MASK)\r
+#define IOCON_PIO_MODE_MASK (0x30U)\r
+#define IOCON_PIO_MODE_SHIFT (4U)\r
/*! MODE - Selects function mode (on-chip pull-up/pull-down resistor control).\r
* 0b00..Inactive. Inactive (no pull-down/pull-up resistor enabled).\r
* 0b01..Pull-down. Pull-down resistor enabled.\r
* 0b10..Pull-up. Pull-up resistor enabled.\r
* 0b11..Repeater. Repeater mode.\r
*/\r
-#define IOCON_PIO_MODE(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_MODE_SHIFT)) & IOCON_PIO_MODE_MASK)\r
-#define IOCON_PIO_SLEW_MASK (0x40U)\r
-#define IOCON_PIO_SLEW_SHIFT (6U)\r
+#define IOCON_PIO_MODE(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_MODE_SHIFT)) & IOCON_PIO_MODE_MASK)\r
+#define IOCON_PIO_SLEW_MASK (0x40U)\r
+#define IOCON_PIO_SLEW_SHIFT (6U)\r
/*! SLEW - Driver slew rate.\r
- * 0b0..Standard mode, output slew rate control is enabled. More outputs can be switched simultaneously.\r
- * 0b1..Fast mode, slew rate control is disabled. Refer to the appropriate specific device data sheet for details.\r
+ * 0b0..Standard-mode, output slew rate is slower. More outputs can be switched simultaneously.\r
+ * 0b1..Fast-mode, output slew rate is faster. Refer to the appropriate specific device data sheet for details.\r
*/\r
-#define IOCON_PIO_SLEW(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_SLEW_SHIFT)) & IOCON_PIO_SLEW_MASK)\r
-#define IOCON_PIO_INVERT_MASK (0x80U)\r
-#define IOCON_PIO_INVERT_SHIFT (7U)\r
+#define IOCON_PIO_SLEW(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_SLEW_SHIFT)) & IOCON_PIO_SLEW_MASK)\r
+#define IOCON_PIO_INVERT_MASK (0x80U)\r
+#define IOCON_PIO_INVERT_SHIFT (7U)\r
/*! INVERT - Input polarity.\r
* 0b0..Disabled. Input function is not inverted.\r
* 0b1..Enabled. Input is function inverted.\r
*/\r
-#define IOCON_PIO_INVERT(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_INVERT_SHIFT)) & IOCON_PIO_INVERT_MASK)\r
-#define IOCON_PIO_DIGIMODE_MASK (0x100U)\r
-#define IOCON_PIO_DIGIMODE_SHIFT (8U)\r
+#define IOCON_PIO_INVERT(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_INVERT_SHIFT)) & IOCON_PIO_INVERT_MASK)\r
+#define IOCON_PIO_DIGIMODE_MASK (0x100U)\r
+#define IOCON_PIO_DIGIMODE_SHIFT (8U)\r
/*! DIGIMODE - Select Digital mode.\r
- * 0b0..Analog mode, digital input is disabled.\r
- * 0b1..Digital mode, digital input is enabled.\r
+ * 0b0..Disable digital mode. Digital input set to 0.\r
+ * 0b1..Enable Digital mode. Digital input is enabled.\r
*/\r
-#define IOCON_PIO_DIGIMODE(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_DIGIMODE_SHIFT)) & IOCON_PIO_DIGIMODE_MASK)\r
-#define IOCON_PIO_OD_MASK (0x200U)\r
-#define IOCON_PIO_OD_SHIFT (9U)\r
-/*! OD - Controls open-drain mode.\r
+#define IOCON_PIO_DIGIMODE(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_DIGIMODE_SHIFT)) & IOCON_PIO_DIGIMODE_MASK)\r
+#define IOCON_PIO_OD_MASK (0x200U)\r
+#define IOCON_PIO_OD_SHIFT (9U)\r
+/*! OD - Controls open-drain mode in standard GPIO mode (EGP = 1). This bit has no effect in I2C mode (EGP=0).\r
* 0b0..Normal. Normal push-pull output\r
* 0b1..Open-drain. Simulated open-drain output (high drive disabled).\r
*/\r
-#define IOCON_PIO_OD(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_OD_SHIFT)) & IOCON_PIO_OD_MASK)\r
-#define IOCON_PIO_ASW_MASK (0x400U)\r
-#define IOCON_PIO_ASW_SHIFT (10U)\r
-/*! ASW - Analog switch input control. Usable only if DIGIMODE = 0b0\r
- * 0b0..Analog switch is open.\r
- * 0b1..Analog switch is closed.\r
- */\r
-#define IOCON_PIO_ASW(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_ASW_SHIFT)) & IOCON_PIO_ASW_MASK)\r
-#define IOCON_PIO_SSEL_MASK (0x800U)\r
-#define IOCON_PIO_SSEL_SHIFT (11U)\r
+#define IOCON_PIO_OD(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_OD_SHIFT)) & IOCON_PIO_OD_MASK)\r
+#define IOCON_PIO_ASW_MASK (0x400U)\r
+#define IOCON_PIO_ASW_SHIFT (10U)\r
+/*! ASW - Analog switch input control.\r
+ * 0b0..For pins PIO0_9, PIO0_11, PIO0_12, PIO0_15, PIO0_18, PIO0_31, PIO1_0 and PIO1_9, analog switch is closed\r
+ * (enabled). For the other pins, analog switch is open (disabled).\r
+ * 0b1..For all pins except PIO0_9, PIO0_11, PIO0_12, PIO0_15, PIO0_18, PIO0_31, PIO1_0 and PIO1_9 analog switch is\r
+ * closed (enabled)\r
+ */\r
+#define IOCON_PIO_ASW(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_ASW_SHIFT)) & IOCON_PIO_ASW_MASK)\r
+#define IOCON_PIO_SSEL_MASK (0x800U)\r
+#define IOCON_PIO_SSEL_SHIFT (11U)\r
/*! SSEL - Supply Selection bit.\r
* 0b0..3V3 Signaling in I2C Mode.\r
* 0b1..1V8 Signaling in I2C Mode.\r
*/\r
-#define IOCON_PIO_SSEL(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_SSEL_SHIFT)) & IOCON_PIO_SSEL_MASK)\r
-#define IOCON_PIO_FILTEROFF_MASK (0x1000U)\r
-#define IOCON_PIO_FILTEROFF_SHIFT (12U)\r
+#define IOCON_PIO_SSEL(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_SSEL_SHIFT)) & IOCON_PIO_SSEL_MASK)\r
+#define IOCON_PIO_FILTEROFF_MASK (0x1000U)\r
+#define IOCON_PIO_FILTEROFF_SHIFT (12U)\r
/*! FILTEROFF - Controls input glitch filter.\r
- * 0b0..Filter enabled. Noise pulses below approximately 10 ns are filtered out.\r
- * 0b1..Filter disabled. No input filtering is done.\r
+ * 0b0..Filter enabled.\r
+ * 0b1..Filter disabled.\r
*/\r
-#define IOCON_PIO_FILTEROFF(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_FILTEROFF_SHIFT)) & IOCON_PIO_FILTEROFF_MASK)\r
-#define IOCON_PIO_ECS_MASK (0x2000U)\r
-#define IOCON_PIO_ECS_SHIFT (13U)\r
-/*! ECS - Pull-up current source enable in IIC mode.\r
+#define IOCON_PIO_FILTEROFF(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_FILTEROFF_SHIFT)) & IOCON_PIO_FILTEROFF_MASK)\r
+#define IOCON_PIO_ECS_MASK (0x2000U)\r
+#define IOCON_PIO_ECS_SHIFT (13U)\r
+/*! ECS - Pull-up current source enable in I2C mode.\r
* 0b1..Enabled. Pull resistor is conencted.\r
- * 0b0..Disabled. IO is in open drain.\r
+ * 0b0..Disabled. IO is in open drain cell.\r
*/\r
-#define IOCON_PIO_ECS(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_ECS_SHIFT)) & IOCON_PIO_ECS_MASK)\r
-#define IOCON_PIO_EGP_MASK (0x4000U)\r
-#define IOCON_PIO_EGP_SHIFT (14U)\r
-/*! EGP - Controls slew rate of I2C pad.\r
+#define IOCON_PIO_ECS(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_ECS_SHIFT)) & IOCON_PIO_ECS_MASK)\r
+#define IOCON_PIO_EGP_MASK (0x4000U)\r
+#define IOCON_PIO_EGP_SHIFT (14U)\r
+/*! EGP - Switch between GPIO mode and I2C mode.\r
* 0b0..I2C mode.\r
* 0b1..GPIO mode.\r
*/\r
-#define IOCON_PIO_EGP(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_EGP_SHIFT)) & IOCON_PIO_EGP_MASK)\r
-#define IOCON_PIO_I2CFILTER_MASK (0x8000U)\r
-#define IOCON_PIO_I2CFILTER_SHIFT (15U)\r
-/*! I2CFILTER - Configures I2C features for standard mode, fast mode, and Fast Mode Plus operation.\r
- * 0b0..I2C 50 ns glitch filter enabled. Typically used for Fast-mode and Fast-mode Plus I2C.\r
- * 0b1..I2C 10 ns glitch filter enabled. Typically used for Standard-mode I2C.\r
+#define IOCON_PIO_EGP(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_EGP_SHIFT)) & IOCON_PIO_EGP_MASK)\r
+#define IOCON_PIO_I2CFILTER_MASK (0x8000U)\r
+#define IOCON_PIO_I2CFILTER_SHIFT (15U)\r
+/*! I2CFILTER - Configures I2C features for standard mode, fast mode, and Fast Mode Plus operation and High-Speed mode\r
+ * operation. 0b0..I2C 50 ns glitch filter enabled. Typically used for Standard-mode, Fast-mode and Fast-mode Plus I2C.\r
+ * 0b1..I2C 10 ns glitch filter enabled. Typically used for High-speed mode I2C.\r
*/\r
-#define IOCON_PIO_I2CFILTER(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_I2CFILTER_SHIFT)) & IOCON_PIO_I2CFILTER_MASK)\r
+#define IOCON_PIO_I2CFILTER(x) (((uint32_t)(((uint32_t)(x)) << IOCON_PIO_I2CFILTER_SHIFT)) & IOCON_PIO_I2CFILTER_MASK)\r
/*! @} */\r
\r
/* The count of IOCON_PIO */\r
-#define IOCON_PIO_COUNT (2U)\r
+#define IOCON_PIO_COUNT (2U)\r
\r
/* The count of IOCON_PIO */\r
-#define IOCON_PIO_COUNT2 (32U)\r
-\r
+#define IOCON_PIO_COUNT2 (32U)\r
\r
/*!\r
* @}\r
*/ /* end of group IOCON_Register_Masks */\r
\r
-\r
/* IOCON - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral IOCON base address */\r
- #define IOCON_BASE (0x50001000u)\r
- /** Peripheral IOCON base address */\r
- #define IOCON_BASE_NS (0x40001000u)\r
- /** Peripheral IOCON base pointer */\r
- #define IOCON ((IOCON_Type *)IOCON_BASE)\r
- /** Peripheral IOCON base pointer */\r
- #define IOCON_NS ((IOCON_Type *)IOCON_BASE_NS)\r
- /** Array initializer of IOCON peripheral base addresses */\r
- #define IOCON_BASE_ADDRS { IOCON_BASE }\r
- /** Array initializer of IOCON peripheral base pointers */\r
- #define IOCON_BASE_PTRS { IOCON }\r
- /** Array initializer of IOCON peripheral base addresses */\r
- #define IOCON_BASE_ADDRS_NS { IOCON_BASE_NS }\r
- /** Array initializer of IOCON peripheral base pointers */\r
- #define IOCON_BASE_PTRS_NS { IOCON_NS }\r
+/** Peripheral IOCON base address */\r
+#define IOCON_BASE (0x50001000u)\r
+/** Peripheral IOCON base address */\r
+#define IOCON_BASE_NS (0x40001000u)\r
+/** Peripheral IOCON base pointer */\r
+#define IOCON ((IOCON_Type *)IOCON_BASE)\r
+/** Peripheral IOCON base pointer */\r
+#define IOCON_NS ((IOCON_Type *)IOCON_BASE_NS)\r
+/** Array initializer of IOCON peripheral base addresses */\r
+#define IOCON_BASE_ADDRS \\r
+ { \\r
+ IOCON_BASE \\r
+ }\r
+/** Array initializer of IOCON peripheral base pointers */\r
+#define IOCON_BASE_PTRS \\r
+ { \\r
+ IOCON \\r
+ }\r
+/** Array initializer of IOCON peripheral base addresses */\r
+#define IOCON_BASE_ADDRS_NS \\r
+ { \\r
+ IOCON_BASE_NS \\r
+ }\r
+/** Array initializer of IOCON peripheral base pointers */\r
+#define IOCON_BASE_PTRS_NS \\r
+ { \\r
+ IOCON_NS \\r
+ }\r
#else\r
- /** Peripheral IOCON base address */\r
- #define IOCON_BASE (0x40001000u)\r
- /** Peripheral IOCON base pointer */\r
- #define IOCON ((IOCON_Type *)IOCON_BASE)\r
- /** Array initializer of IOCON peripheral base addresses */\r
- #define IOCON_BASE_ADDRS { IOCON_BASE }\r
- /** Array initializer of IOCON peripheral base pointers */\r
- #define IOCON_BASE_PTRS { IOCON }\r
+/** Peripheral IOCON base address */\r
+#define IOCON_BASE (0x40001000u)\r
+/** Peripheral IOCON base pointer */\r
+#define IOCON ((IOCON_Type *)IOCON_BASE)\r
+/** Array initializer of IOCON peripheral base addresses */\r
+#define IOCON_BASE_ADDRS \\r
+ { \\r
+ IOCON_BASE \\r
+ }\r
+/** Array initializer of IOCON peripheral base pointers */\r
+#define IOCON_BASE_PTRS \\r
+ { \\r
+ IOCON \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group IOCON_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- MAILBOX Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** MAILBOX - Register Layout Typedef */\r
-typedef struct {\r
- struct { /* offset: 0x0, array step: 0x10 */\r
- __IO uint32_t IRQ; /**< Interrupt request register for the Cortex-M0+ CPU., array offset: 0x0, array step: 0x10 */\r
- __O uint32_t IRQSET; /**< Set bits in IRQ0, array offset: 0x4, array step: 0x10 */\r
- __O uint32_t IRQCLR; /**< Clear bits in IRQ0, array offset: 0x8, array step: 0x10 */\r
- uint8_t RESERVED_0[4];\r
- } MBOXIRQ[2];\r
- uint8_t RESERVED_0[216];\r
- __IO uint32_t MUTEX; /**< Mutual exclusion register[1], offset: 0xF8 */\r
+typedef struct\r
+{\r
+ struct\r
+ { /* offset: 0x0, array step: 0x10 */\r
+ __IO uint32_t\r
+ IRQ; /**< Interrupt request register for the Cortex-M0+ CPU., array offset: 0x0, array step: 0x10 */\r
+ __O uint32_t IRQSET; /**< Set bits in IRQ0, array offset: 0x4, array step: 0x10 */\r
+ __O uint32_t IRQCLR; /**< Clear bits in IRQ0, array offset: 0x8, array step: 0x10 */\r
+ uint8_t RESERVED_0[4];\r
+ } MBOXIRQ[2];\r
+ uint8_t RESERVED_0[216];\r
+ __IO uint32_t MUTEX; /**< Mutual exclusion register[1], offset: 0xF8 */\r
} MAILBOX_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name MBOXIRQ_IRQ - Interrupt request register for the Cortex-M0+ CPU. */\r
/*! @{ */\r
-#define MAILBOX_MBOXIRQ_IRQ_INTREQ_MASK (0xFFFFFFFFU)\r
-#define MAILBOX_MBOXIRQ_IRQ_INTREQ_SHIFT (0U)\r
-#define MAILBOX_MBOXIRQ_IRQ_INTREQ(x) (((uint32_t)(((uint32_t)(x)) << MAILBOX_MBOXIRQ_IRQ_INTREQ_SHIFT)) & MAILBOX_MBOXIRQ_IRQ_INTREQ_MASK)\r
+#define MAILBOX_MBOXIRQ_IRQ_INTREQ_MASK (0xFFFFFFFFU)\r
+#define MAILBOX_MBOXIRQ_IRQ_INTREQ_SHIFT (0U)\r
+/*! INTREQ - If any bit is set, an interrupt request is sent to the Cortex-M0+ interrupt controller.\r
+ */\r
+#define MAILBOX_MBOXIRQ_IRQ_INTREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MAILBOX_MBOXIRQ_IRQ_INTREQ_SHIFT)) & MAILBOX_MBOXIRQ_IRQ_INTREQ_MASK)\r
/*! @} */\r
\r
/* The count of MAILBOX_MBOXIRQ_IRQ */\r
-#define MAILBOX_MBOXIRQ_IRQ_COUNT (2U)\r
+#define MAILBOX_MBOXIRQ_IRQ_COUNT (2U)\r
\r
/*! @name MBOXIRQ_IRQSET - Set bits in IRQ0 */\r
/*! @{ */\r
-#define MAILBOX_MBOXIRQ_IRQSET_INTREQSET_MASK (0xFFFFFFFFU)\r
-#define MAILBOX_MBOXIRQ_IRQSET_INTREQSET_SHIFT (0U)\r
-#define MAILBOX_MBOXIRQ_IRQSET_INTREQSET(x) (((uint32_t)(((uint32_t)(x)) << MAILBOX_MBOXIRQ_IRQSET_INTREQSET_SHIFT)) & MAILBOX_MBOXIRQ_IRQSET_INTREQSET_MASK)\r
+#define MAILBOX_MBOXIRQ_IRQSET_INTREQSET_MASK (0xFFFFFFFFU)\r
+#define MAILBOX_MBOXIRQ_IRQSET_INTREQSET_SHIFT (0U)\r
+/*! INTREQSET - Writing 1 sets the corresponding bit in the IRQ0 register.\r
+ */\r
+#define MAILBOX_MBOXIRQ_IRQSET_INTREQSET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MAILBOX_MBOXIRQ_IRQSET_INTREQSET_SHIFT)) & MAILBOX_MBOXIRQ_IRQSET_INTREQSET_MASK)\r
/*! @} */\r
\r
/* The count of MAILBOX_MBOXIRQ_IRQSET */\r
-#define MAILBOX_MBOXIRQ_IRQSET_COUNT (2U)\r
+#define MAILBOX_MBOXIRQ_IRQSET_COUNT (2U)\r
\r
/*! @name MBOXIRQ_IRQCLR - Clear bits in IRQ0 */\r
/*! @{ */\r
-#define MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR_MASK (0xFFFFFFFFU)\r
-#define MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR_SHIFT (0U)\r
-#define MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR(x) (((uint32_t)(((uint32_t)(x)) << MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR_SHIFT)) & MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR_MASK)\r
+#define MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR_MASK (0xFFFFFFFFU)\r
+#define MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR_SHIFT (0U)\r
+/*! INTREQCLR - Writing 1 clears the corresponding bit in the IRQ0 register.\r
+ */\r
+#define MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR_SHIFT)) & MAILBOX_MBOXIRQ_IRQCLR_INTREQCLR_MASK)\r
/*! @} */\r
\r
/* The count of MAILBOX_MBOXIRQ_IRQCLR */\r
-#define MAILBOX_MBOXIRQ_IRQCLR_COUNT (2U)\r
+#define MAILBOX_MBOXIRQ_IRQCLR_COUNT (2U)\r
\r
/*! @name MUTEX - Mutual exclusion register[1] */\r
/*! @{ */\r
-#define MAILBOX_MUTEX_EX_MASK (0x1U)\r
-#define MAILBOX_MUTEX_EX_SHIFT (0U)\r
-#define MAILBOX_MUTEX_EX(x) (((uint32_t)(((uint32_t)(x)) << MAILBOX_MUTEX_EX_SHIFT)) & MAILBOX_MUTEX_EX_MASK)\r
+#define MAILBOX_MUTEX_EX_MASK (0x1U)\r
+#define MAILBOX_MUTEX_EX_SHIFT (0U)\r
+/*! EX - Cleared when read, set when written. See usage description above.\r
+ */\r
+#define MAILBOX_MUTEX_EX(x) (((uint32_t)(((uint32_t)(x)) << MAILBOX_MUTEX_EX_SHIFT)) & MAILBOX_MUTEX_EX_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group MAILBOX_Register_Masks */\r
\r
-\r
/* MAILBOX - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral MAILBOX base address */\r
- #define MAILBOX_BASE (0x5008B000u)\r
- /** Peripheral MAILBOX base address */\r
- #define MAILBOX_BASE_NS (0x4008B000u)\r
- /** Peripheral MAILBOX base pointer */\r
- #define MAILBOX ((MAILBOX_Type *)MAILBOX_BASE)\r
- /** Peripheral MAILBOX base pointer */\r
- #define MAILBOX_NS ((MAILBOX_Type *)MAILBOX_BASE_NS)\r
- /** Array initializer of MAILBOX peripheral base addresses */\r
- #define MAILBOX_BASE_ADDRS { MAILBOX_BASE }\r
- /** Array initializer of MAILBOX peripheral base pointers */\r
- #define MAILBOX_BASE_PTRS { MAILBOX }\r
- /** Array initializer of MAILBOX peripheral base addresses */\r
- #define MAILBOX_BASE_ADDRS_NS { MAILBOX_BASE_NS }\r
- /** Array initializer of MAILBOX peripheral base pointers */\r
- #define MAILBOX_BASE_PTRS_NS { MAILBOX_NS }\r
+/** Peripheral MAILBOX base address */\r
+#define MAILBOX_BASE (0x5008B000u)\r
+/** Peripheral MAILBOX base address */\r
+#define MAILBOX_BASE_NS (0x4008B000u)\r
+/** Peripheral MAILBOX base pointer */\r
+#define MAILBOX ((MAILBOX_Type *)MAILBOX_BASE)\r
+/** Peripheral MAILBOX base pointer */\r
+#define MAILBOX_NS ((MAILBOX_Type *)MAILBOX_BASE_NS)\r
+/** Array initializer of MAILBOX peripheral base addresses */\r
+#define MAILBOX_BASE_ADDRS \\r
+ { \\r
+ MAILBOX_BASE \\r
+ }\r
+/** Array initializer of MAILBOX peripheral base pointers */\r
+#define MAILBOX_BASE_PTRS \\r
+ { \\r
+ MAILBOX \\r
+ }\r
+/** Array initializer of MAILBOX peripheral base addresses */\r
+#define MAILBOX_BASE_ADDRS_NS \\r
+ { \\r
+ MAILBOX_BASE_NS \\r
+ }\r
+/** Array initializer of MAILBOX peripheral base pointers */\r
+#define MAILBOX_BASE_PTRS_NS \\r
+ { \\r
+ MAILBOX_NS \\r
+ }\r
#else\r
- /** Peripheral MAILBOX base address */\r
- #define MAILBOX_BASE (0x4008B000u)\r
- /** Peripheral MAILBOX base pointer */\r
- #define MAILBOX ((MAILBOX_Type *)MAILBOX_BASE)\r
- /** Array initializer of MAILBOX peripheral base addresses */\r
- #define MAILBOX_BASE_ADDRS { MAILBOX_BASE }\r
- /** Array initializer of MAILBOX peripheral base pointers */\r
- #define MAILBOX_BASE_PTRS { MAILBOX }\r
+/** Peripheral MAILBOX base address */\r
+#define MAILBOX_BASE (0x4008B000u)\r
+/** Peripheral MAILBOX base pointer */\r
+#define MAILBOX ((MAILBOX_Type *)MAILBOX_BASE)\r
+/** Array initializer of MAILBOX peripheral base addresses */\r
+#define MAILBOX_BASE_ADDRS \\r
+ { \\r
+ MAILBOX_BASE \\r
+ }\r
+/** Array initializer of MAILBOX peripheral base pointers */\r
+#define MAILBOX_BASE_PTRS \\r
+ { \\r
+ MAILBOX \\r
+ }\r
#endif\r
/** Interrupt vectors for the MAILBOX peripheral type */\r
-#define MAILBOX_IRQS { MAILBOX_IRQn }\r
+#define MAILBOX_IRQS \\r
+ { \\r
+ MAILBOX_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group MAILBOX_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- MRT Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** MRT - Register Layout Typedef */\r
-typedef struct {\r
- struct { /* offset: 0x0, array step: 0x10 */\r
- __IO uint32_t INTVAL; /**< MRT Time interval value register. This value is loaded into the TIMER register., array offset: 0x0, array step: 0x10 */\r
- __I uint32_t TIMER; /**< MRT Timer register. This register reads the value of the down-counter., array offset: 0x4, array step: 0x10 */\r
- __IO uint32_t CTRL; /**< MRT Control register. This register controls the MRT modes., array offset: 0x8, array step: 0x10 */\r
- __IO uint32_t STAT; /**< MRT Status register., array offset: 0xC, array step: 0x10 */\r
- } CHANNEL[4];\r
- uint8_t RESERVED_0[176];\r
- __IO uint32_t MODCFG; /**< Module Configuration register. This register provides information about this particular MRT instance, and allows choosing an overall mode for the idle channel feature., offset: 0xF0 */\r
- __I uint32_t IDLE_CH; /**< Idle channel register. This register returns the number of the first idle channel., offset: 0xF4 */\r
- __IO uint32_t IRQ_FLAG; /**< Global interrupt flag register, offset: 0xF8 */\r
+typedef struct\r
+{\r
+ struct\r
+ { /* offset: 0x0, array step: 0x10 */\r
+ __IO uint32_t INTVAL; /**< MRT Time interval value register. This value is loaded into the TIMER register.,\r
+ array offset: 0x0, array step: 0x10 */\r
+ __I uint32_t TIMER; /**< MRT Timer register. This register reads the value of the down-counter., array offset:\r
+ 0x4, array step: 0x10 */\r
+ __IO uint32_t CTRL; /**< MRT Control register. This register controls the MRT modes., array offset: 0x8, array\r
+ step: 0x10 */\r
+ __IO uint32_t STAT; /**< MRT Status register., array offset: 0xC, array step: 0x10 */\r
+ } CHANNEL[4];\r
+ uint8_t RESERVED_0[176];\r
+ __IO uint32_t\r
+ MODCFG; /**< Module Configuration register. This register provides information about this particular MRT\r
+ instance, and allows choosing an overall mode for the idle channel feature., offset: 0xF0 */\r
+ __I uint32_t IDLE_CH; /**< Idle channel register. This register returns the number of the first idle channel.,\r
+ offset: 0xF4 */\r
+ __IO uint32_t IRQ_FLAG; /**< Global interrupt flag register, offset: 0xF8 */\r
} MRT_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CHANNEL_INTVAL - MRT Time interval value register. This value is loaded into the TIMER register. */\r
/*! @{ */\r
-#define MRT_CHANNEL_INTVAL_IVALUE_MASK (0xFFFFFFU)\r
-#define MRT_CHANNEL_INTVAL_IVALUE_SHIFT (0U)\r
-#define MRT_CHANNEL_INTVAL_IVALUE(x) (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_INTVAL_IVALUE_SHIFT)) & MRT_CHANNEL_INTVAL_IVALUE_MASK)\r
-#define MRT_CHANNEL_INTVAL_LOAD_MASK (0x80000000U)\r
-#define MRT_CHANNEL_INTVAL_LOAD_SHIFT (31U)\r
-/*! LOAD - Determines how the timer interval value IVALUE -1 is loaded into the TIMERn register. This bit is write-only. Reading this bit always returns 0.\r
- * 0b0..No force load. The load from the INTVALn register to the TIMERn register is processed at the end of the time interval if the repeat mode is selected.\r
- * 0b1..Force load. The INTVALn interval value IVALUE -1 is immediately loaded into the TIMERn register while TIMERn is running.\r
- */\r
-#define MRT_CHANNEL_INTVAL_LOAD(x) (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_INTVAL_LOAD_SHIFT)) & MRT_CHANNEL_INTVAL_LOAD_MASK)\r
+#define MRT_CHANNEL_INTVAL_IVALUE_MASK (0xFFFFFFU)\r
+#define MRT_CHANNEL_INTVAL_IVALUE_SHIFT (0U)\r
+/*! IVALUE - Time interval load value. This value is loaded into the TIMERn register and the MRT\r
+ * channel n starts counting down from IVALUE -1. If the timer is idle, writing a non-zero value to\r
+ * this bit field starts the timer immediately. If the timer is running, writing a zero to this\r
+ * bit field does the following: If LOAD = 1, the timer stops immediately. If LOAD = 0, the timer\r
+ * stops at the end of the time interval.\r
+ */\r
+#define MRT_CHANNEL_INTVAL_IVALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_INTVAL_IVALUE_SHIFT)) & MRT_CHANNEL_INTVAL_IVALUE_MASK)\r
+#define MRT_CHANNEL_INTVAL_LOAD_MASK (0x80000000U)\r
+#define MRT_CHANNEL_INTVAL_LOAD_SHIFT (31U)\r
+/*! LOAD - Determines how the timer interval value IVALUE -1 is loaded into the TIMERn register.\r
+ * This bit is write-only. Reading this bit always returns 0.\r
+ * 0b0..No force load. The load from the INTVALn register to the TIMERn register is processed at the end of the\r
+ * time interval if the repeat mode is selected.\r
+ * 0b1..Force load. The INTVALn interval value IVALUE -1 is immediately loaded into the TIMERn register while TIMERn is\r
+ * running.\r
+ */\r
+#define MRT_CHANNEL_INTVAL_LOAD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_INTVAL_LOAD_SHIFT)) & MRT_CHANNEL_INTVAL_LOAD_MASK)\r
/*! @} */\r
\r
/* The count of MRT_CHANNEL_INTVAL */\r
-#define MRT_CHANNEL_INTVAL_COUNT (4U)\r
+#define MRT_CHANNEL_INTVAL_COUNT (4U)\r
\r
/*! @name CHANNEL_TIMER - MRT Timer register. This register reads the value of the down-counter. */\r
/*! @{ */\r
-#define MRT_CHANNEL_TIMER_VALUE_MASK (0xFFFFFFU)\r
-#define MRT_CHANNEL_TIMER_VALUE_SHIFT (0U)\r
-#define MRT_CHANNEL_TIMER_VALUE(x) (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_TIMER_VALUE_SHIFT)) & MRT_CHANNEL_TIMER_VALUE_MASK)\r
+#define MRT_CHANNEL_TIMER_VALUE_MASK (0xFFFFFFU)\r
+#define MRT_CHANNEL_TIMER_VALUE_SHIFT (0U)\r
+/*! VALUE - Holds the current timer value of the down-counter. The initial value of the TIMERn\r
+ * register is loaded as IVALUE - 1 from the INTVALn register either at the end of the time interval\r
+ * or immediately in the following cases: INTVALn register is updated in the idle state. INTVALn\r
+ * register is updated with LOAD = 1. When the timer is in idle state, reading this bit fields\r
+ * returns -1 (0x00FF FFFF).\r
+ */\r
+#define MRT_CHANNEL_TIMER_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_TIMER_VALUE_SHIFT)) & MRT_CHANNEL_TIMER_VALUE_MASK)\r
/*! @} */\r
\r
/* The count of MRT_CHANNEL_TIMER */\r
-#define MRT_CHANNEL_TIMER_COUNT (4U)\r
+#define MRT_CHANNEL_TIMER_COUNT (4U)\r
\r
/*! @name CHANNEL_CTRL - MRT Control register. This register controls the MRT modes. */\r
/*! @{ */\r
-#define MRT_CHANNEL_CTRL_INTEN_MASK (0x1U)\r
-#define MRT_CHANNEL_CTRL_INTEN_SHIFT (0U)\r
+#define MRT_CHANNEL_CTRL_INTEN_MASK (0x1U)\r
+#define MRT_CHANNEL_CTRL_INTEN_SHIFT (0U)\r
/*! INTEN - Enable the TIMERn interrupt.\r
* 0b0..Disabled. TIMERn interrupt is disabled.\r
* 0b1..Enabled. TIMERn interrupt is enabled.\r
*/\r
-#define MRT_CHANNEL_CTRL_INTEN(x) (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_CTRL_INTEN_SHIFT)) & MRT_CHANNEL_CTRL_INTEN_MASK)\r
-#define MRT_CHANNEL_CTRL_MODE_MASK (0x6U)\r
-#define MRT_CHANNEL_CTRL_MODE_SHIFT (1U)\r
+#define MRT_CHANNEL_CTRL_INTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_CTRL_INTEN_SHIFT)) & MRT_CHANNEL_CTRL_INTEN_MASK)\r
+#define MRT_CHANNEL_CTRL_MODE_MASK (0x6U)\r
+#define MRT_CHANNEL_CTRL_MODE_SHIFT (1U)\r
/*! MODE - Selects timer mode.\r
* 0b00..Repeat interrupt mode.\r
* 0b01..One-shot interrupt mode.\r
* 0b10..One-shot stall mode.\r
* 0b11..Reserved.\r
*/\r
-#define MRT_CHANNEL_CTRL_MODE(x) (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_CTRL_MODE_SHIFT)) & MRT_CHANNEL_CTRL_MODE_MASK)\r
+#define MRT_CHANNEL_CTRL_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_CTRL_MODE_SHIFT)) & MRT_CHANNEL_CTRL_MODE_MASK)\r
/*! @} */\r
\r
/* The count of MRT_CHANNEL_CTRL */\r
-#define MRT_CHANNEL_CTRL_COUNT (4U)\r
+#define MRT_CHANNEL_CTRL_COUNT (4U)\r
\r
/*! @name CHANNEL_STAT - MRT Status register. */\r
/*! @{ */\r
-#define MRT_CHANNEL_STAT_INTFLAG_MASK (0x1U)\r
-#define MRT_CHANNEL_STAT_INTFLAG_SHIFT (0U)\r
+#define MRT_CHANNEL_STAT_INTFLAG_MASK (0x1U)\r
+#define MRT_CHANNEL_STAT_INTFLAG_SHIFT (0U)\r
/*! INTFLAG - Monitors the interrupt flag.\r
* 0b0..No pending interrupt. Writing a zero is equivalent to no operation.\r
- * 0b1..Pending interrupt. The interrupt is pending because TIMERn has reached the end of the time interval. If the INTEN bit in the CONTROLn is also set to 1, the interrupt for timer channel n and the global interrupt are raised. Writing a 1 to this bit clears the interrupt request.\r
- */\r
-#define MRT_CHANNEL_STAT_INTFLAG(x) (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_STAT_INTFLAG_SHIFT)) & MRT_CHANNEL_STAT_INTFLAG_MASK)\r
-#define MRT_CHANNEL_STAT_RUN_MASK (0x2U)\r
-#define MRT_CHANNEL_STAT_RUN_SHIFT (1U)\r
+ * 0b1..Pending interrupt. The interrupt is pending because TIMERn has reached the end of the time interval. If\r
+ * the INTEN bit in the CONTROLn is also set to 1, the interrupt for timer channel n and the global interrupt\r
+ * are raised. Writing a 1 to this bit clears the interrupt request.\r
+ */\r
+#define MRT_CHANNEL_STAT_INTFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_STAT_INTFLAG_SHIFT)) & MRT_CHANNEL_STAT_INTFLAG_MASK)\r
+#define MRT_CHANNEL_STAT_RUN_MASK (0x2U)\r
+#define MRT_CHANNEL_STAT_RUN_SHIFT (1U)\r
/*! RUN - Indicates the state of TIMERn. This bit is read-only.\r
* 0b0..Idle state. TIMERn is stopped.\r
* 0b1..Running. TIMERn is running.\r
*/\r
-#define MRT_CHANNEL_STAT_RUN(x) (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_STAT_RUN_SHIFT)) & MRT_CHANNEL_STAT_RUN_MASK)\r
-#define MRT_CHANNEL_STAT_INUSE_MASK (0x4U)\r
-#define MRT_CHANNEL_STAT_INUSE_SHIFT (2U)\r
-/*! INUSE - Channel In Use flag. Operating details depend on the MULTITASK bit in the MODCFG register, and affects the use of IDLE_CH. See Idle channel register for details of the two operating modes.\r
+#define MRT_CHANNEL_STAT_RUN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_STAT_RUN_SHIFT)) & MRT_CHANNEL_STAT_RUN_MASK)\r
+#define MRT_CHANNEL_STAT_INUSE_MASK (0x4U)\r
+#define MRT_CHANNEL_STAT_INUSE_SHIFT (2U)\r
+/*! INUSE - Channel In Use flag. Operating details depend on the MULTITASK bit in the MODCFG\r
+ * register, and affects the use of IDLE_CH. See Idle channel register for details of the two operating\r
+ * modes.\r
* 0b0..This channel is not in use.\r
* 0b1..This channel is in use.\r
*/\r
-#define MRT_CHANNEL_STAT_INUSE(x) (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_STAT_INUSE_SHIFT)) & MRT_CHANNEL_STAT_INUSE_MASK)\r
+#define MRT_CHANNEL_STAT_INUSE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_CHANNEL_STAT_INUSE_SHIFT)) & MRT_CHANNEL_STAT_INUSE_MASK)\r
/*! @} */\r
\r
/* The count of MRT_CHANNEL_STAT */\r
-#define MRT_CHANNEL_STAT_COUNT (4U)\r
-\r
-/*! @name MODCFG - Module Configuration register. This register provides information about this particular MRT instance, and allows choosing an overall mode for the idle channel feature. */\r
-/*! @{ */\r
-#define MRT_MODCFG_NOC_MASK (0xFU)\r
-#define MRT_MODCFG_NOC_SHIFT (0U)\r
-#define MRT_MODCFG_NOC(x) (((uint32_t)(((uint32_t)(x)) << MRT_MODCFG_NOC_SHIFT)) & MRT_MODCFG_NOC_MASK)\r
-#define MRT_MODCFG_NOB_MASK (0x1F0U)\r
-#define MRT_MODCFG_NOB_SHIFT (4U)\r
-#define MRT_MODCFG_NOB(x) (((uint32_t)(((uint32_t)(x)) << MRT_MODCFG_NOB_SHIFT)) & MRT_MODCFG_NOB_MASK)\r
-#define MRT_MODCFG_MULTITASK_MASK (0x80000000U)\r
-#define MRT_MODCFG_MULTITASK_SHIFT (31U)\r
+#define MRT_CHANNEL_STAT_COUNT (4U)\r
+\r
+/*! @name MODCFG - Module Configuration register. This register provides information about this particular MRT instance,\r
+ * and allows choosing an overall mode for the idle channel feature. */\r
+/*! @{ */\r
+#define MRT_MODCFG_NOC_MASK (0xFU)\r
+#define MRT_MODCFG_NOC_SHIFT (0U)\r
+/*! NOC - Identifies the number of channels in this MRT.(4 channels on this device.)\r
+ */\r
+#define MRT_MODCFG_NOC(x) (((uint32_t)(((uint32_t)(x)) << MRT_MODCFG_NOC_SHIFT)) & MRT_MODCFG_NOC_MASK)\r
+#define MRT_MODCFG_NOB_MASK (0x1F0U)\r
+#define MRT_MODCFG_NOB_SHIFT (4U)\r
+/*! NOB - Identifies the number of timer bits in this MRT. (24 bits wide on this device.)\r
+ */\r
+#define MRT_MODCFG_NOB(x) (((uint32_t)(((uint32_t)(x)) << MRT_MODCFG_NOB_SHIFT)) & MRT_MODCFG_NOB_MASK)\r
+#define MRT_MODCFG_MULTITASK_MASK (0x80000000U)\r
+#define MRT_MODCFG_MULTITASK_SHIFT (31U)\r
/*! MULTITASK - Selects the operating mode for the INUSE flags and the IDLE_CH register.\r
* 0b0..Hardware status mode. In this mode, the INUSE(n) flags for all channels are reset.\r
* 0b1..Multi-task mode.\r
*/\r
-#define MRT_MODCFG_MULTITASK(x) (((uint32_t)(((uint32_t)(x)) << MRT_MODCFG_MULTITASK_SHIFT)) & MRT_MODCFG_MULTITASK_MASK)\r
+#define MRT_MODCFG_MULTITASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << MRT_MODCFG_MULTITASK_SHIFT)) & MRT_MODCFG_MULTITASK_MASK)\r
/*! @} */\r
\r
/*! @name IDLE_CH - Idle channel register. This register returns the number of the first idle channel. */\r
/*! @{ */\r
-#define MRT_IDLE_CH_CHAN_MASK (0xF0U)\r
-#define MRT_IDLE_CH_CHAN_SHIFT (4U)\r
-#define MRT_IDLE_CH_CHAN(x) (((uint32_t)(((uint32_t)(x)) << MRT_IDLE_CH_CHAN_SHIFT)) & MRT_IDLE_CH_CHAN_MASK)\r
+#define MRT_IDLE_CH_CHAN_MASK (0xF0U)\r
+#define MRT_IDLE_CH_CHAN_SHIFT (4U)\r
+/*! CHAN - Idle channel. Reading the CHAN bits, returns the lowest idle timer channel. The number is\r
+ * positioned such that it can be used as an offset from the MRT base address in order to access\r
+ * the registers for the allocated channel. If all timer channels are running, CHAN = 0xF. See\r
+ * text above for more details.\r
+ */\r
+#define MRT_IDLE_CH_CHAN(x) (((uint32_t)(((uint32_t)(x)) << MRT_IDLE_CH_CHAN_SHIFT)) & MRT_IDLE_CH_CHAN_MASK)\r
/*! @} */\r
\r
/*! @name IRQ_FLAG - Global interrupt flag register */\r
/*! @{ */\r
-#define MRT_IRQ_FLAG_GFLAG0_MASK (0x1U)\r
-#define MRT_IRQ_FLAG_GFLAG0_SHIFT (0U)\r
+#define MRT_IRQ_FLAG_GFLAG0_MASK (0x1U)\r
+#define MRT_IRQ_FLAG_GFLAG0_SHIFT (0U)\r
/*! GFLAG0 - Monitors the interrupt flag of TIMER0.\r
* 0b0..No pending interrupt. Writing a zero is equivalent to no operation.\r
- * 0b1..Pending interrupt. The interrupt is pending because TIMER0 has reached the end of the time interval. If the INTEN bit in the CONTROL0 register is also set to 1, the interrupt for timer channel 0 and the global interrupt are raised. Writing a 1 to this bit clears the interrupt request.\r
+ * 0b1..Pending interrupt. The interrupt is pending because TIMER0 has reached the end of the time interval. If\r
+ * the INTEN bit in the CONTROL0 register is also set to 1, the interrupt for timer channel 0 and the global\r
+ * interrupt are raised. Writing a 1 to this bit clears the interrupt request.\r
+ */\r
+#define MRT_IRQ_FLAG_GFLAG0(x) (((uint32_t)(((uint32_t)(x)) << MRT_IRQ_FLAG_GFLAG0_SHIFT)) & MRT_IRQ_FLAG_GFLAG0_MASK)\r
+#define MRT_IRQ_FLAG_GFLAG1_MASK (0x2U)\r
+#define MRT_IRQ_FLAG_GFLAG1_SHIFT (1U)\r
+/*! GFLAG1 - Monitors the interrupt flag of TIMER1. See description of channel 0.\r
+ */\r
+#define MRT_IRQ_FLAG_GFLAG1(x) (((uint32_t)(((uint32_t)(x)) << MRT_IRQ_FLAG_GFLAG1_SHIFT)) & MRT_IRQ_FLAG_GFLAG1_MASK)\r
+#define MRT_IRQ_FLAG_GFLAG2_MASK (0x4U)\r
+#define MRT_IRQ_FLAG_GFLAG2_SHIFT (2U)\r
+/*! GFLAG2 - Monitors the interrupt flag of TIMER2. See description of channel 0.\r
+ */\r
+#define MRT_IRQ_FLAG_GFLAG2(x) (((uint32_t)(((uint32_t)(x)) << MRT_IRQ_FLAG_GFLAG2_SHIFT)) & MRT_IRQ_FLAG_GFLAG2_MASK)\r
+#define MRT_IRQ_FLAG_GFLAG3_MASK (0x8U)\r
+#define MRT_IRQ_FLAG_GFLAG3_SHIFT (3U)\r
+/*! GFLAG3 - Monitors the interrupt flag of TIMER3. See description of channel 0.\r
*/\r
-#define MRT_IRQ_FLAG_GFLAG0(x) (((uint32_t)(((uint32_t)(x)) << MRT_IRQ_FLAG_GFLAG0_SHIFT)) & MRT_IRQ_FLAG_GFLAG0_MASK)\r
-#define MRT_IRQ_FLAG_GFLAG1_MASK (0x2U)\r
-#define MRT_IRQ_FLAG_GFLAG1_SHIFT (1U)\r
-#define MRT_IRQ_FLAG_GFLAG1(x) (((uint32_t)(((uint32_t)(x)) << MRT_IRQ_FLAG_GFLAG1_SHIFT)) & MRT_IRQ_FLAG_GFLAG1_MASK)\r
-#define MRT_IRQ_FLAG_GFLAG2_MASK (0x4U)\r
-#define MRT_IRQ_FLAG_GFLAG2_SHIFT (2U)\r
-#define MRT_IRQ_FLAG_GFLAG2(x) (((uint32_t)(((uint32_t)(x)) << MRT_IRQ_FLAG_GFLAG2_SHIFT)) & MRT_IRQ_FLAG_GFLAG2_MASK)\r
-#define MRT_IRQ_FLAG_GFLAG3_MASK (0x8U)\r
-#define MRT_IRQ_FLAG_GFLAG3_SHIFT (3U)\r
-#define MRT_IRQ_FLAG_GFLAG3(x) (((uint32_t)(((uint32_t)(x)) << MRT_IRQ_FLAG_GFLAG3_SHIFT)) & MRT_IRQ_FLAG_GFLAG3_MASK)\r
+#define MRT_IRQ_FLAG_GFLAG3(x) (((uint32_t)(((uint32_t)(x)) << MRT_IRQ_FLAG_GFLAG3_SHIFT)) & MRT_IRQ_FLAG_GFLAG3_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group MRT_Register_Masks */\r
\r
-\r
/* MRT - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral MRT0 base address */\r
- #define MRT0_BASE (0x5000D000u)\r
- /** Peripheral MRT0 base address */\r
- #define MRT0_BASE_NS (0x4000D000u)\r
- /** Peripheral MRT0 base pointer */\r
- #define MRT0 ((MRT_Type *)MRT0_BASE)\r
- /** Peripheral MRT0 base pointer */\r
- #define MRT0_NS ((MRT_Type *)MRT0_BASE_NS)\r
- /** Array initializer of MRT peripheral base addresses */\r
- #define MRT_BASE_ADDRS { MRT0_BASE }\r
- /** Array initializer of MRT peripheral base pointers */\r
- #define MRT_BASE_PTRS { MRT0 }\r
- /** Array initializer of MRT peripheral base addresses */\r
- #define MRT_BASE_ADDRS_NS { MRT0_BASE_NS }\r
- /** Array initializer of MRT peripheral base pointers */\r
- #define MRT_BASE_PTRS_NS { MRT0_NS }\r
+/** Peripheral MRT0 base address */\r
+#define MRT0_BASE (0x5000D000u)\r
+/** Peripheral MRT0 base address */\r
+#define MRT0_BASE_NS (0x4000D000u)\r
+/** Peripheral MRT0 base pointer */\r
+#define MRT0 ((MRT_Type *)MRT0_BASE)\r
+/** Peripheral MRT0 base pointer */\r
+#define MRT0_NS ((MRT_Type *)MRT0_BASE_NS)\r
+/** Array initializer of MRT peripheral base addresses */\r
+#define MRT_BASE_ADDRS \\r
+ { \\r
+ MRT0_BASE \\r
+ }\r
+/** Array initializer of MRT peripheral base pointers */\r
+#define MRT_BASE_PTRS \\r
+ { \\r
+ MRT0 \\r
+ }\r
+/** Array initializer of MRT peripheral base addresses */\r
+#define MRT_BASE_ADDRS_NS \\r
+ { \\r
+ MRT0_BASE_NS \\r
+ }\r
+/** Array initializer of MRT peripheral base pointers */\r
+#define MRT_BASE_PTRS_NS \\r
+ { \\r
+ MRT0_NS \\r
+ }\r
#else\r
- /** Peripheral MRT0 base address */\r
- #define MRT0_BASE (0x4000D000u)\r
- /** Peripheral MRT0 base pointer */\r
- #define MRT0 ((MRT_Type *)MRT0_BASE)\r
- /** Array initializer of MRT peripheral base addresses */\r
- #define MRT_BASE_ADDRS { MRT0_BASE }\r
- /** Array initializer of MRT peripheral base pointers */\r
- #define MRT_BASE_PTRS { MRT0 }\r
+/** Peripheral MRT0 base address */\r
+#define MRT0_BASE (0x4000D000u)\r
+/** Peripheral MRT0 base pointer */\r
+#define MRT0 ((MRT_Type *)MRT0_BASE)\r
+/** Array initializer of MRT peripheral base addresses */\r
+#define MRT_BASE_ADDRS \\r
+ { \\r
+ MRT0_BASE \\r
+ }\r
+/** Array initializer of MRT peripheral base pointers */\r
+#define MRT_BASE_PTRS \\r
+ { \\r
+ MRT0 \\r
+ }\r
#endif\r
/** Interrupt vectors for the MRT peripheral type */\r
-#define MRT_IRQS { MRT0_IRQn }\r
+#define MRT_IRQS \\r
+ { \\r
+ MRT0_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group MRT_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- OSTIMER Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** OSTIMER - Register Layout Typedef */\r
-typedef struct {\r
- __I uint32_t EVTIMERL; /**< EVTIMER Low Register, offset: 0x0 */\r
- __I uint32_t EVTIMERH; /**< EVTIMER High Register, offset: 0x4 */\r
- __I uint32_t CAPTUREN_L; /**< Local Capture Low Register for CPUn, offset: 0x8 */\r
- __I uint32_t CAPTUREN_H; /**< Local Capture High Register for CPUn, offset: 0xC */\r
- __IO uint32_t MATCHN_L; /**< Local Match Low Register for CPUn, offset: 0x10 */\r
- __IO uint32_t MATCHN_H; /**< Match High Register for CPUn, offset: 0x14 */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t OSEVENT_CTRL; /**< OS_EVENT TIMER Control Register for CPUn, offset: 0x1C */\r
+typedef struct\r
+{\r
+ __I uint32_t EVTIMERL; /**< EVTIMER Low Register, offset: 0x0 */\r
+ __I uint32_t EVTIMERH; /**< EVTIMER High Register, offset: 0x4 */\r
+ __I uint32_t CAPTUREN_L; /**< Local Capture Low Register for CPUn, offset: 0x8 */\r
+ __I uint32_t CAPTUREN_H; /**< Local Capture High Register for CPUn, offset: 0xC */\r
+ __IO uint32_t MATCHN_L; /**< Local Match Low Register for CPUn, offset: 0x10 */\r
+ __IO uint32_t MATCHN_H; /**< Match High Register for CPUn, offset: 0x14 */\r
+ uint8_t RESERVED_0[4];\r
+ __IO uint32_t OSEVENT_CTRL; /**< OS_EVENT TIMER Control Register for CPUn, offset: 0x1C */\r
} OSTIMER_Type;\r
\r
/* ----------------------------------------------------------------------------\r
/*! @{ */\r
#define OSTIMER_EVTIMERL_EVTIMER_COUNT_VALUE_MASK (0xFFFFFFFFU)\r
#define OSTIMER_EVTIMERL_EVTIMER_COUNT_VALUE_SHIFT (0U)\r
-#define OSTIMER_EVTIMERL_EVTIMER_COUNT_VALUE(x) (((uint32_t)(((uint32_t)(x)) << OSTIMER_EVTIMERL_EVTIMER_COUNT_VALUE_SHIFT)) & OSTIMER_EVTIMERL_EVTIMER_COUNT_VALUE_MASK)\r
+/*! EVTIMER_COUNT_VALUE - A read reflects the current value of the lower 32 bits of the EVTIMER.\r
+ * Note there is physically only one EVTimer, readable from all domains.\r
+ */\r
+#define OSTIMER_EVTIMERL_EVTIMER_COUNT_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << OSTIMER_EVTIMERL_EVTIMER_COUNT_VALUE_SHIFT)) & \\r
+ OSTIMER_EVTIMERL_EVTIMER_COUNT_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name EVTIMERH - EVTIMER High Register */\r
/*! @{ */\r
-#define OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE_MASK (0xFFFFFFFFU)\r
+#define OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE_MASK (0x3FFU)\r
#define OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE_SHIFT (0U)\r
-#define OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE(x) (((uint32_t)(((uint32_t)(x)) << OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE_SHIFT)) & OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE_MASK)\r
+/*! EVTIMER_COUNT_VALUE - A read reflects the current value of the upper 32 bits of the EVTIMER.\r
+ * Note there is physically only one EVTimer, readable from all domains.\r
+ */\r
+#define OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE_SHIFT)) & \\r
+ OSTIMER_EVTIMERH_EVTIMER_COUNT_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name CAPTUREN_L - Local Capture Low Register for CPUn */\r
/*! @{ */\r
-#define OSTIMER_CAPTUREN_L_CAPTUREn_VALUE_MASK (0xFFFFFFFFU)\r
-#define OSTIMER_CAPTUREN_L_CAPTUREn_VALUE_SHIFT (0U)\r
-#define OSTIMER_CAPTUREN_L_CAPTUREn_VALUE(x) (((uint32_t)(((uint32_t)(x)) << OSTIMER_CAPTUREN_L_CAPTUREn_VALUE_SHIFT)) & OSTIMER_CAPTUREN_L_CAPTUREn_VALUE_MASK)\r
+#define OSTIMER_CAPTUREN_L_CAPTUREn_VALUE_MASK (0xFFFFFFFFU)\r
+#define OSTIMER_CAPTUREN_L_CAPTUREn_VALUE_SHIFT (0U)\r
+/*! CAPTUREn_VALUE - A read reflects the value of the lower 32 bits of the central EVTIMER at the\r
+ * time the last capture signal was generated by the CPU. A separate pair of CAPTURE registers are\r
+ * implemented for each CPU. Each CPU reads its own capture value at the same pair of addresses.\r
+ */\r
+#define OSTIMER_CAPTUREN_L_CAPTUREn_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << OSTIMER_CAPTUREN_L_CAPTUREn_VALUE_SHIFT)) & OSTIMER_CAPTUREN_L_CAPTUREn_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name CAPTUREN_H - Local Capture High Register for CPUn */\r
/*! @{ */\r
-#define OSTIMER_CAPTUREN_H_CAPTUREn_VALUE_MASK (0xFFFFFFFFU)\r
-#define OSTIMER_CAPTUREN_H_CAPTUREn_VALUE_SHIFT (0U)\r
-#define OSTIMER_CAPTUREN_H_CAPTUREn_VALUE(x) (((uint32_t)(((uint32_t)(x)) << OSTIMER_CAPTUREN_H_CAPTUREn_VALUE_SHIFT)) & OSTIMER_CAPTUREN_H_CAPTUREn_VALUE_MASK)\r
+#define OSTIMER_CAPTUREN_H_CAPTUREn_VALUE_MASK (0x3FFU)\r
+#define OSTIMER_CAPTUREN_H_CAPTUREn_VALUE_SHIFT (0U)\r
+/*! CAPTUREn_VALUE - A read reflects the value of the upper 32 bits of the central EVTIMER at the\r
+ * time the last capture signal was generated by the CPU. A separate pair of CAPTURE registers are\r
+ * implemented for each CPU. Each CPU reads its own capture value at the same pair of addresses.\r
+ */\r
+#define OSTIMER_CAPTUREN_H_CAPTUREn_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << OSTIMER_CAPTUREN_H_CAPTUREn_VALUE_SHIFT)) & OSTIMER_CAPTUREN_H_CAPTUREn_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name MATCHN_L - Local Match Low Register for CPUn */\r
/*! @{ */\r
-#define OSTIMER_MATCHN_L_MATCHn_VALUE_MASK (0xFFFFFFFFU)\r
-#define OSTIMER_MATCHN_L_MATCHn_VALUE_SHIFT (0U)\r
-#define OSTIMER_MATCHN_L_MATCHn_VALUE(x) (((uint32_t)(((uint32_t)(x)) << OSTIMER_MATCHN_L_MATCHn_VALUE_SHIFT)) & OSTIMER_MATCHN_L_MATCHn_VALUE_MASK)\r
+#define OSTIMER_MATCHN_L_MATCHn_VALUE_MASK (0xFFFFFFFFU)\r
+#define OSTIMER_MATCHN_L_MATCHn_VALUE_SHIFT (0U)\r
+/*! MATCHn_VALUE - The value written to the MATCH (L/H) register pair is compared against the\r
+ * central EVTIMER. When a match occurs, an interrupt request is generated if enabled. A separate pair\r
+ * of MATCH registers are implemented for each CPU. Each CPU reads its own local value at the\r
+ * same pair of addresses.\r
+ */\r
+#define OSTIMER_MATCHN_L_MATCHn_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << OSTIMER_MATCHN_L_MATCHn_VALUE_SHIFT)) & OSTIMER_MATCHN_L_MATCHn_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name MATCHN_H - Match High Register for CPUn */\r
/*! @{ */\r
-#define OSTIMER_MATCHN_H_MATCHn_VALUE_MASK (0xFFFFFFFFU)\r
-#define OSTIMER_MATCHN_H_MATCHn_VALUE_SHIFT (0U)\r
-#define OSTIMER_MATCHN_H_MATCHn_VALUE(x) (((uint32_t)(((uint32_t)(x)) << OSTIMER_MATCHN_H_MATCHn_VALUE_SHIFT)) & OSTIMER_MATCHN_H_MATCHn_VALUE_MASK)\r
+#define OSTIMER_MATCHN_H_MATCHn_VALUE_MASK (0x3FFU)\r
+#define OSTIMER_MATCHN_H_MATCHn_VALUE_SHIFT (0U)\r
+/*! MATCHn_VALUE - The value written to the MATCH (L/H) register pair is compared against the\r
+ * central EVTIMER. When a match occurs, an interrupt request is generated if enabled. A separate pair\r
+ * of MATCH registers are implemented for each CPU. Each CPU reads its own local value at the\r
+ * same pair of addresses.\r
+ */\r
+#define OSTIMER_MATCHN_H_MATCHn_VALUE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << OSTIMER_MATCHN_H_MATCHn_VALUE_SHIFT)) & OSTIMER_MATCHN_H_MATCHn_VALUE_MASK)\r
/*! @} */\r
\r
/*! @name OSEVENT_CTRL - OS_EVENT TIMER Control Register for CPUn */\r
/*! @{ */\r
#define OSTIMER_OSEVENT_CTRL_OSTIMER_INTRFLAG_MASK (0x1U)\r
#define OSTIMER_OSEVENT_CTRL_OSTIMER_INTRFLAG_SHIFT (0U)\r
-#define OSTIMER_OSEVENT_CTRL_OSTIMER_INTRFLAG(x) (((uint32_t)(((uint32_t)(x)) << OSTIMER_OSEVENT_CTRL_OSTIMER_INTRFLAG_SHIFT)) & OSTIMER_OSEVENT_CTRL_OSTIMER_INTRFLAG_MASK)\r
+/*! OSTIMER_INTRFLAG - This bit is set when a match occurs between the central 64-bit EVTIMER and\r
+ * the value programmed in the Match-register pair for the associated CPU This bit is cleared by\r
+ * writing a '1'. Writes to clear this bit are asynchronous. This should be done before a new match\r
+ * value is written into the MATCH_L/H registers\r
+ */\r
+#define OSTIMER_OSEVENT_CTRL_OSTIMER_INTRFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << OSTIMER_OSEVENT_CTRL_OSTIMER_INTRFLAG_SHIFT)) & \\r
+ OSTIMER_OSEVENT_CTRL_OSTIMER_INTRFLAG_MASK)\r
#define OSTIMER_OSEVENT_CTRL_OSTIMER_INTENA_MASK (0x2U)\r
#define OSTIMER_OSEVENT_CTRL_OSTIMER_INTENA_SHIFT (1U)\r
-#define OSTIMER_OSEVENT_CTRL_OSTIMER_INTENA(x) (((uint32_t)(((uint32_t)(x)) << OSTIMER_OSEVENT_CTRL_OSTIMER_INTENA_SHIFT)) & OSTIMER_OSEVENT_CTRL_OSTIMER_INTENA_MASK)\r
+/*! OSTIMER_INTENA - When this bit is '1' an interrupt/wakeup request to the Domainn processor will\r
+ * be asserted when the OSTIMER_INTR flag is set. When this bit is '0', interrupt/wakeup requests\r
+ * due to the OSTIMER_INTR flag are blocked.A separate OSEVENT_CTRL register is implemented for\r
+ * each CPU. Each CPU reads its own local value at the same address.\r
+ */\r
+#define OSTIMER_OSEVENT_CTRL_OSTIMER_INTENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << OSTIMER_OSEVENT_CTRL_OSTIMER_INTENA_SHIFT)) & \\r
+ OSTIMER_OSEVENT_CTRL_OSTIMER_INTENA_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group OSTIMER_Register_Masks */\r
\r
-\r
/* OSTIMER - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral OSTIMER base address */\r
- #define OSTIMER_BASE (0x5002D000u)\r
- /** Peripheral OSTIMER base address */\r
- #define OSTIMER_BASE_NS (0x4002D000u)\r
- /** Peripheral OSTIMER base pointer */\r
- #define OSTIMER ((OSTIMER_Type *)OSTIMER_BASE)\r
- /** Peripheral OSTIMER base pointer */\r
- #define OSTIMER_NS ((OSTIMER_Type *)OSTIMER_BASE_NS)\r
- /** Array initializer of OSTIMER peripheral base addresses */\r
- #define OSTIMER_BASE_ADDRS { OSTIMER_BASE }\r
- /** Array initializer of OSTIMER peripheral base pointers */\r
- #define OSTIMER_BASE_PTRS { OSTIMER }\r
- /** Array initializer of OSTIMER peripheral base addresses */\r
- #define OSTIMER_BASE_ADDRS_NS { OSTIMER_BASE_NS }\r
- /** Array initializer of OSTIMER peripheral base pointers */\r
- #define OSTIMER_BASE_PTRS_NS { OSTIMER_NS }\r
+/** Peripheral OSTIMER base address */\r
+#define OSTIMER_BASE (0x5002D000u)\r
+/** Peripheral OSTIMER base address */\r
+#define OSTIMER_BASE_NS (0x4002D000u)\r
+/** Peripheral OSTIMER base pointer */\r
+#define OSTIMER ((OSTIMER_Type *)OSTIMER_BASE)\r
+/** Peripheral OSTIMER base pointer */\r
+#define OSTIMER_NS ((OSTIMER_Type *)OSTIMER_BASE_NS)\r
+/** Array initializer of OSTIMER peripheral base addresses */\r
+#define OSTIMER_BASE_ADDRS \\r
+ { \\r
+ OSTIMER_BASE \\r
+ }\r
+/** Array initializer of OSTIMER peripheral base pointers */\r
+#define OSTIMER_BASE_PTRS \\r
+ { \\r
+ OSTIMER \\r
+ }\r
+/** Array initializer of OSTIMER peripheral base addresses */\r
+#define OSTIMER_BASE_ADDRS_NS \\r
+ { \\r
+ OSTIMER_BASE_NS \\r
+ }\r
+/** Array initializer of OSTIMER peripheral base pointers */\r
+#define OSTIMER_BASE_PTRS_NS \\r
+ { \\r
+ OSTIMER_NS \\r
+ }\r
#else\r
- /** Peripheral OSTIMER base address */\r
- #define OSTIMER_BASE (0x4002D000u)\r
- /** Peripheral OSTIMER base pointer */\r
- #define OSTIMER ((OSTIMER_Type *)OSTIMER_BASE)\r
- /** Array initializer of OSTIMER peripheral base addresses */\r
- #define OSTIMER_BASE_ADDRS { OSTIMER_BASE }\r
- /** Array initializer of OSTIMER peripheral base pointers */\r
- #define OSTIMER_BASE_PTRS { OSTIMER }\r
+/** Peripheral OSTIMER base address */\r
+#define OSTIMER_BASE (0x4002D000u)\r
+/** Peripheral OSTIMER base pointer */\r
+#define OSTIMER ((OSTIMER_Type *)OSTIMER_BASE)\r
+/** Array initializer of OSTIMER peripheral base addresses */\r
+#define OSTIMER_BASE_ADDRS \\r
+ { \\r
+ OSTIMER_BASE \\r
+ }\r
+/** Array initializer of OSTIMER peripheral base pointers */\r
+#define OSTIMER_BASE_PTRS \\r
+ { \\r
+ OSTIMER \\r
+ }\r
#endif\r
/** Interrupt vectors for the OSTIMER peripheral type */\r
-#define OSTIMER_IRQS { OS_EVENT_IRQn }\r
+#define OSTIMER_IRQS \\r
+ { \\r
+ OS_EVENT_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group OSTIMER_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- PINT Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** PINT - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t ISEL; /**< Pin Interrupt Mode register, offset: 0x0 */\r
- __IO uint32_t IENR; /**< Pin interrupt level or rising edge interrupt enable register, offset: 0x4 */\r
- __O uint32_t SIENR; /**< Pin interrupt level or rising edge interrupt set register, offset: 0x8 */\r
- __O uint32_t CIENR; /**< Pin interrupt level (rising edge interrupt) clear register, offset: 0xC */\r
- __IO uint32_t IENF; /**< Pin interrupt active level or falling edge interrupt enable register, offset: 0x10 */\r
- __O uint32_t SIENF; /**< Pin interrupt active level or falling edge interrupt set register, offset: 0x14 */\r
- __O uint32_t CIENF; /**< Pin interrupt active level or falling edge interrupt clear register, offset: 0x18 */\r
- __IO uint32_t RISE; /**< Pin interrupt rising edge register, offset: 0x1C */\r
- __IO uint32_t FALL; /**< Pin interrupt falling edge register, offset: 0x20 */\r
- __IO uint32_t IST; /**< Pin interrupt status register, offset: 0x24 */\r
- __IO uint32_t PMCTRL; /**< Pattern match interrupt control register, offset: 0x28 */\r
- __IO uint32_t PMSRC; /**< Pattern match interrupt bit-slice source register, offset: 0x2C */\r
- __IO uint32_t PMCFG; /**< Pattern match interrupt bit slice configuration register, offset: 0x30 */\r
+typedef struct\r
+{\r
+ __IO uint32_t ISEL; /**< Pin Interrupt Mode register, offset: 0x0 */\r
+ __IO uint32_t IENR; /**< Pin interrupt level or rising edge interrupt enable register, offset: 0x4 */\r
+ __O uint32_t SIENR; /**< Pin interrupt level or rising edge interrupt set register, offset: 0x8 */\r
+ __O uint32_t CIENR; /**< Pin interrupt level (rising edge interrupt) clear register, offset: 0xC */\r
+ __IO uint32_t IENF; /**< Pin interrupt active level or falling edge interrupt enable register, offset: 0x10 */\r
+ __O uint32_t SIENF; /**< Pin interrupt active level or falling edge interrupt set register, offset: 0x14 */\r
+ __O uint32_t CIENF; /**< Pin interrupt active level or falling edge interrupt clear register, offset: 0x18 */\r
+ __IO uint32_t RISE; /**< Pin interrupt rising edge register, offset: 0x1C */\r
+ __IO uint32_t FALL; /**< Pin interrupt falling edge register, offset: 0x20 */\r
+ __IO uint32_t IST; /**< Pin interrupt status register, offset: 0x24 */\r
+ __IO uint32_t PMCTRL; /**< Pattern match interrupt control register, offset: 0x28 */\r
+ __IO uint32_t PMSRC; /**< Pattern match interrupt bit-slice source register, offset: 0x2C */\r
+ __IO uint32_t PMCFG; /**< Pattern match interrupt bit slice configuration register, offset: 0x30 */\r
} PINT_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name ISEL - Pin Interrupt Mode register */\r
/*! @{ */\r
-#define PINT_ISEL_PMODE_MASK (0xFFU)\r
-#define PINT_ISEL_PMODE_SHIFT (0U)\r
-#define PINT_ISEL_PMODE(x) (((uint32_t)(((uint32_t)(x)) << PINT_ISEL_PMODE_SHIFT)) & PINT_ISEL_PMODE_MASK)\r
+#define PINT_ISEL_PMODE_MASK (0xFFU)\r
+#define PINT_ISEL_PMODE_SHIFT (0U)\r
+/*! PMODE - Selects the interrupt mode for each pin interrupt. Bit n configures the pin interrupt\r
+ * selected in PINTSELn. 0 = Edge sensitive 1 = Level sensitive\r
+ */\r
+#define PINT_ISEL_PMODE(x) (((uint32_t)(((uint32_t)(x)) << PINT_ISEL_PMODE_SHIFT)) & PINT_ISEL_PMODE_MASK)\r
/*! @} */\r
\r
/*! @name IENR - Pin interrupt level or rising edge interrupt enable register */\r
/*! @{ */\r
-#define PINT_IENR_ENRL_MASK (0xFFU)\r
-#define PINT_IENR_ENRL_SHIFT (0U)\r
-#define PINT_IENR_ENRL(x) (((uint32_t)(((uint32_t)(x)) << PINT_IENR_ENRL_SHIFT)) & PINT_IENR_ENRL_MASK)\r
+#define PINT_IENR_ENRL_MASK (0xFFU)\r
+#define PINT_IENR_ENRL_SHIFT (0U)\r
+/*! ENRL - Enables the rising edge or level interrupt for each pin interrupt. Bit n configures the\r
+ * pin interrupt selected in PINTSELn. 0 = Disable rising edge or level interrupt. 1 = Enable\r
+ * rising edge or level interrupt.\r
+ */\r
+#define PINT_IENR_ENRL(x) (((uint32_t)(((uint32_t)(x)) << PINT_IENR_ENRL_SHIFT)) & PINT_IENR_ENRL_MASK)\r
/*! @} */\r
\r
/*! @name SIENR - Pin interrupt level or rising edge interrupt set register */\r
/*! @{ */\r
-#define PINT_SIENR_SETENRL_MASK (0xFFU)\r
-#define PINT_SIENR_SETENRL_SHIFT (0U)\r
-#define PINT_SIENR_SETENRL(x) (((uint32_t)(((uint32_t)(x)) << PINT_SIENR_SETENRL_SHIFT)) & PINT_SIENR_SETENRL_MASK)\r
+#define PINT_SIENR_SETENRL_MASK (0xFFU)\r
+#define PINT_SIENR_SETENRL_SHIFT (0U)\r
+/*! SETENRL - Ones written to this address set bits in the IENR, thus enabling interrupts. Bit n\r
+ * sets bit n in the IENR register. 0 = No operation. 1 = Enable rising edge or level interrupt.\r
+ */\r
+#define PINT_SIENR_SETENRL(x) (((uint32_t)(((uint32_t)(x)) << PINT_SIENR_SETENRL_SHIFT)) & PINT_SIENR_SETENRL_MASK)\r
/*! @} */\r
\r
/*! @name CIENR - Pin interrupt level (rising edge interrupt) clear register */\r
/*! @{ */\r
-#define PINT_CIENR_CENRL_MASK (0xFFU)\r
-#define PINT_CIENR_CENRL_SHIFT (0U)\r
-#define PINT_CIENR_CENRL(x) (((uint32_t)(((uint32_t)(x)) << PINT_CIENR_CENRL_SHIFT)) & PINT_CIENR_CENRL_MASK)\r
+#define PINT_CIENR_CENRL_MASK (0xFFU)\r
+#define PINT_CIENR_CENRL_SHIFT (0U)\r
+/*! CENRL - Ones written to this address clear bits in the IENR, thus disabling the interrupts. Bit\r
+ * n clears bit n in the IENR register. 0 = No operation. 1 = Disable rising edge or level\r
+ * interrupt.\r
+ */\r
+#define PINT_CIENR_CENRL(x) (((uint32_t)(((uint32_t)(x)) << PINT_CIENR_CENRL_SHIFT)) & PINT_CIENR_CENRL_MASK)\r
/*! @} */\r
\r
/*! @name IENF - Pin interrupt active level or falling edge interrupt enable register */\r
/*! @{ */\r
-#define PINT_IENF_ENAF_MASK (0xFFU)\r
-#define PINT_IENF_ENAF_SHIFT (0U)\r
-#define PINT_IENF_ENAF(x) (((uint32_t)(((uint32_t)(x)) << PINT_IENF_ENAF_SHIFT)) & PINT_IENF_ENAF_MASK)\r
+#define PINT_IENF_ENAF_MASK (0xFFU)\r
+#define PINT_IENF_ENAF_SHIFT (0U)\r
+/*! ENAF - Enables the falling edge or configures the active level interrupt for each pin interrupt.\r
+ * Bit n configures the pin interrupt selected in PINTSELn. 0 = Disable falling edge interrupt\r
+ * or set active interrupt level LOW. 1 = Enable falling edge interrupt enabled or set active\r
+ * interrupt level HIGH.\r
+ */\r
+#define PINT_IENF_ENAF(x) (((uint32_t)(((uint32_t)(x)) << PINT_IENF_ENAF_SHIFT)) & PINT_IENF_ENAF_MASK)\r
/*! @} */\r
\r
/*! @name SIENF - Pin interrupt active level or falling edge interrupt set register */\r
/*! @{ */\r
-#define PINT_SIENF_SETENAF_MASK (0xFFU)\r
-#define PINT_SIENF_SETENAF_SHIFT (0U)\r
-#define PINT_SIENF_SETENAF(x) (((uint32_t)(((uint32_t)(x)) << PINT_SIENF_SETENAF_SHIFT)) & PINT_SIENF_SETENAF_MASK)\r
+#define PINT_SIENF_SETENAF_MASK (0xFFU)\r
+#define PINT_SIENF_SETENAF_SHIFT (0U)\r
+/*! SETENAF - Ones written to this address set bits in the IENF, thus enabling interrupts. Bit n\r
+ * sets bit n in the IENF register. 0 = No operation. 1 = Select HIGH-active interrupt or enable\r
+ * falling edge interrupt.\r
+ */\r
+#define PINT_SIENF_SETENAF(x) (((uint32_t)(((uint32_t)(x)) << PINT_SIENF_SETENAF_SHIFT)) & PINT_SIENF_SETENAF_MASK)\r
/*! @} */\r
\r
/*! @name CIENF - Pin interrupt active level or falling edge interrupt clear register */\r
/*! @{ */\r
-#define PINT_CIENF_CENAF_MASK (0xFFU)\r
-#define PINT_CIENF_CENAF_SHIFT (0U)\r
-#define PINT_CIENF_CENAF(x) (((uint32_t)(((uint32_t)(x)) << PINT_CIENF_CENAF_SHIFT)) & PINT_CIENF_CENAF_MASK)\r
+#define PINT_CIENF_CENAF_MASK (0xFFU)\r
+#define PINT_CIENF_CENAF_SHIFT (0U)\r
+/*! CENAF - Ones written to this address clears bits in the IENF, thus disabling interrupts. Bit n\r
+ * clears bit n in the IENF register. 0 = No operation. 1 = LOW-active interrupt selected or\r
+ * falling edge interrupt disabled.\r
+ */\r
+#define PINT_CIENF_CENAF(x) (((uint32_t)(((uint32_t)(x)) << PINT_CIENF_CENAF_SHIFT)) & PINT_CIENF_CENAF_MASK)\r
/*! @} */\r
\r
/*! @name RISE - Pin interrupt rising edge register */\r
/*! @{ */\r
-#define PINT_RISE_RDET_MASK (0xFFU)\r
-#define PINT_RISE_RDET_SHIFT (0U)\r
-#define PINT_RISE_RDET(x) (((uint32_t)(((uint32_t)(x)) << PINT_RISE_RDET_SHIFT)) & PINT_RISE_RDET_MASK)\r
+#define PINT_RISE_RDET_MASK (0xFFU)\r
+#define PINT_RISE_RDET_SHIFT (0U)\r
+/*! RDET - Rising edge detect. Bit n detects the rising edge of the pin selected in PINTSELn. Read\r
+ * 0: No rising edge has been detected on this pin since Reset or the last time a one was written\r
+ * to this bit. Write 0: no operation. Read 1: a rising edge has been detected since Reset or the\r
+ * last time a one was written to this bit. Write 1: clear rising edge detection for this pin.\r
+ */\r
+#define PINT_RISE_RDET(x) (((uint32_t)(((uint32_t)(x)) << PINT_RISE_RDET_SHIFT)) & PINT_RISE_RDET_MASK)\r
/*! @} */\r
\r
/*! @name FALL - Pin interrupt falling edge register */\r
/*! @{ */\r
-#define PINT_FALL_FDET_MASK (0xFFU)\r
-#define PINT_FALL_FDET_SHIFT (0U)\r
-#define PINT_FALL_FDET(x) (((uint32_t)(((uint32_t)(x)) << PINT_FALL_FDET_SHIFT)) & PINT_FALL_FDET_MASK)\r
+#define PINT_FALL_FDET_MASK (0xFFU)\r
+#define PINT_FALL_FDET_SHIFT (0U)\r
+/*! FDET - Falling edge detect. Bit n detects the falling edge of the pin selected in PINTSELn. Read\r
+ * 0: No falling edge has been detected on this pin since Reset or the last time a one was\r
+ * written to this bit. Write 0: no operation. Read 1: a falling edge has been detected since Reset or\r
+ * the last time a one was written to this bit. Write 1: clear falling edge detection for this\r
+ * pin.\r
+ */\r
+#define PINT_FALL_FDET(x) (((uint32_t)(((uint32_t)(x)) << PINT_FALL_FDET_SHIFT)) & PINT_FALL_FDET_MASK)\r
/*! @} */\r
\r
/*! @name IST - Pin interrupt status register */\r
/*! @{ */\r
-#define PINT_IST_PSTAT_MASK (0xFFU)\r
-#define PINT_IST_PSTAT_SHIFT (0U)\r
-#define PINT_IST_PSTAT(x) (((uint32_t)(((uint32_t)(x)) << PINT_IST_PSTAT_SHIFT)) & PINT_IST_PSTAT_MASK)\r
+#define PINT_IST_PSTAT_MASK (0xFFU)\r
+#define PINT_IST_PSTAT_SHIFT (0U)\r
+/*! PSTAT - Pin interrupt status. Bit n returns the status, clears the edge interrupt, or inverts\r
+ * the active level of the pin selected in PINTSELn. Read 0: interrupt is not being requested for\r
+ * this interrupt pin. Write 0: no operation. Read 1: interrupt is being requested for this\r
+ * interrupt pin. Write 1 (edge-sensitive): clear rising- and falling-edge detection for this pin.\r
+ * Write 1 (level-sensitive): switch the active level for this pin (in the IENF register).\r
+ */\r
+#define PINT_IST_PSTAT(x) (((uint32_t)(((uint32_t)(x)) << PINT_IST_PSTAT_SHIFT)) & PINT_IST_PSTAT_MASK)\r
/*! @} */\r
\r
/*! @name PMCTRL - Pattern match interrupt control register */\r
/*! @{ */\r
-#define PINT_PMCTRL_SEL_PMATCH_MASK (0x1U)\r
-#define PINT_PMCTRL_SEL_PMATCH_SHIFT (0U)\r
-/*! SEL_PMATCH - Specifies whether the 8 pin interrupts are controlled by the pin interrupt function or by the pattern match function.\r
- * 0b0..Pin interrupt. Interrupts are driven in response to the standard pin interrupt function.\r
+#define PINT_PMCTRL_SEL_PMATCH_MASK (0x1U)\r
+#define PINT_PMCTRL_SEL_PMATCH_SHIFT (0U)\r
+/*! SEL_PMATCH - Specifies whether the 8 pin interrupts are controlled by the pin interrupt function or by the pattern\r
+ * match function. 0b0..Pin interrupt. Interrupts are driven in response to the standard pin interrupt function.\r
* 0b1..Pattern match. Interrupts are driven in response to pattern matches.\r
*/\r
-#define PINT_PMCTRL_SEL_PMATCH(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCTRL_SEL_PMATCH_SHIFT)) & PINT_PMCTRL_SEL_PMATCH_MASK)\r
-#define PINT_PMCTRL_ENA_RXEV_MASK (0x2U)\r
-#define PINT_PMCTRL_ENA_RXEV_SHIFT (1U)\r
-/*! ENA_RXEV - Enables the RXEV output to the CPU and/or to a GPIO output when the specified boolean expression evaluates to true.\r
- * 0b0..Disabled. RXEV output to the CPU is disabled.\r
- * 0b1..Enabled. RXEV output to the CPU is enabled.\r
+#define PINT_PMCTRL_SEL_PMATCH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCTRL_SEL_PMATCH_SHIFT)) & PINT_PMCTRL_SEL_PMATCH_MASK)\r
+#define PINT_PMCTRL_ENA_RXEV_MASK (0x2U)\r
+#define PINT_PMCTRL_ENA_RXEV_SHIFT (1U)\r
+/*! ENA_RXEV - Enables the RXEV output to the CPU and/or to a GPIO output when the specified boolean expression\r
+ * evaluates to true. 0b0..Disabled. RXEV output to the CPU is disabled. 0b1..Enabled. RXEV output to the CPU is\r
+ * enabled.\r
+ */\r
+#define PINT_PMCTRL_ENA_RXEV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCTRL_ENA_RXEV_SHIFT)) & PINT_PMCTRL_ENA_RXEV_MASK)\r
+#define PINT_PMCTRL_PMAT_MASK (0xFF000000U)\r
+#define PINT_PMCTRL_PMAT_SHIFT (24U)\r
+/*! PMAT - This field displays the current state of pattern matches. A 1 in any bit of this field\r
+ * indicates that the corresponding product term is matched by the current state of the appropriate\r
+ * inputs.\r
*/\r
-#define PINT_PMCTRL_ENA_RXEV(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCTRL_ENA_RXEV_SHIFT)) & PINT_PMCTRL_ENA_RXEV_MASK)\r
-#define PINT_PMCTRL_PMAT_MASK (0xFF000000U)\r
-#define PINT_PMCTRL_PMAT_SHIFT (24U)\r
-#define PINT_PMCTRL_PMAT(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCTRL_PMAT_SHIFT)) & PINT_PMCTRL_PMAT_MASK)\r
+#define PINT_PMCTRL_PMAT(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCTRL_PMAT_SHIFT)) & PINT_PMCTRL_PMAT_MASK)\r
/*! @} */\r
\r
/*! @name PMSRC - Pattern match interrupt bit-slice source register */\r
/*! @{ */\r
-#define PINT_PMSRC_SRC0_MASK (0x700U)\r
-#define PINT_PMSRC_SRC0_SHIFT (8U)\r
+#define PINT_PMSRC_SRC0_MASK (0x700U)\r
+#define PINT_PMSRC_SRC0_SHIFT (8U)\r
/*! SRC0 - Selects the input source for bit slice 0\r
* 0b000..Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 0.\r
* 0b001..Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 0.\r
* 0b110..Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 0.\r
* 0b111..Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 0.\r
*/\r
-#define PINT_PMSRC_SRC0(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC0_SHIFT)) & PINT_PMSRC_SRC0_MASK)\r
-#define PINT_PMSRC_SRC1_MASK (0x3800U)\r
-#define PINT_PMSRC_SRC1_SHIFT (11U)\r
+#define PINT_PMSRC_SRC0(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC0_SHIFT)) & PINT_PMSRC_SRC0_MASK)\r
+#define PINT_PMSRC_SRC1_MASK (0x3800U)\r
+#define PINT_PMSRC_SRC1_SHIFT (11U)\r
/*! SRC1 - Selects the input source for bit slice 1\r
* 0b000..Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 1.\r
* 0b001..Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 1.\r
* 0b110..Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 1.\r
* 0b111..Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 1.\r
*/\r
-#define PINT_PMSRC_SRC1(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC1_SHIFT)) & PINT_PMSRC_SRC1_MASK)\r
-#define PINT_PMSRC_SRC2_MASK (0x1C000U)\r
-#define PINT_PMSRC_SRC2_SHIFT (14U)\r
+#define PINT_PMSRC_SRC1(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC1_SHIFT)) & PINT_PMSRC_SRC1_MASK)\r
+#define PINT_PMSRC_SRC2_MASK (0x1C000U)\r
+#define PINT_PMSRC_SRC2_SHIFT (14U)\r
/*! SRC2 - Selects the input source for bit slice 2\r
* 0b000..Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 2.\r
* 0b001..Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 2.\r
* 0b110..Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 2.\r
* 0b111..Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 2.\r
*/\r
-#define PINT_PMSRC_SRC2(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC2_SHIFT)) & PINT_PMSRC_SRC2_MASK)\r
-#define PINT_PMSRC_SRC3_MASK (0xE0000U)\r
-#define PINT_PMSRC_SRC3_SHIFT (17U)\r
+#define PINT_PMSRC_SRC2(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC2_SHIFT)) & PINT_PMSRC_SRC2_MASK)\r
+#define PINT_PMSRC_SRC3_MASK (0xE0000U)\r
+#define PINT_PMSRC_SRC3_SHIFT (17U)\r
/*! SRC3 - Selects the input source for bit slice 3\r
* 0b000..Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 3.\r
* 0b001..Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 3.\r
* 0b110..Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 3.\r
* 0b111..Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 3.\r
*/\r
-#define PINT_PMSRC_SRC3(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC3_SHIFT)) & PINT_PMSRC_SRC3_MASK)\r
-#define PINT_PMSRC_SRC4_MASK (0x700000U)\r
-#define PINT_PMSRC_SRC4_SHIFT (20U)\r
+#define PINT_PMSRC_SRC3(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC3_SHIFT)) & PINT_PMSRC_SRC3_MASK)\r
+#define PINT_PMSRC_SRC4_MASK (0x700000U)\r
+#define PINT_PMSRC_SRC4_SHIFT (20U)\r
/*! SRC4 - Selects the input source for bit slice 4\r
* 0b000..Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 4.\r
* 0b001..Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 4.\r
* 0b110..Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 4.\r
* 0b111..Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 4.\r
*/\r
-#define PINT_PMSRC_SRC4(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC4_SHIFT)) & PINT_PMSRC_SRC4_MASK)\r
-#define PINT_PMSRC_SRC5_MASK (0x3800000U)\r
-#define PINT_PMSRC_SRC5_SHIFT (23U)\r
+#define PINT_PMSRC_SRC4(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC4_SHIFT)) & PINT_PMSRC_SRC4_MASK)\r
+#define PINT_PMSRC_SRC5_MASK (0x3800000U)\r
+#define PINT_PMSRC_SRC5_SHIFT (23U)\r
/*! SRC5 - Selects the input source for bit slice 5\r
* 0b000..Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 5.\r
* 0b001..Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 5.\r
* 0b110..Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 5.\r
* 0b111..Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 5.\r
*/\r
-#define PINT_PMSRC_SRC5(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC5_SHIFT)) & PINT_PMSRC_SRC5_MASK)\r
-#define PINT_PMSRC_SRC6_MASK (0x1C000000U)\r
-#define PINT_PMSRC_SRC6_SHIFT (26U)\r
+#define PINT_PMSRC_SRC5(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC5_SHIFT)) & PINT_PMSRC_SRC5_MASK)\r
+#define PINT_PMSRC_SRC6_MASK (0x1C000000U)\r
+#define PINT_PMSRC_SRC6_SHIFT (26U)\r
/*! SRC6 - Selects the input source for bit slice 6\r
* 0b000..Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 6.\r
* 0b001..Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 6.\r
* 0b110..Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 6.\r
* 0b111..Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 6.\r
*/\r
-#define PINT_PMSRC_SRC6(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC6_SHIFT)) & PINT_PMSRC_SRC6_MASK)\r
-#define PINT_PMSRC_SRC7_MASK (0xE0000000U)\r
-#define PINT_PMSRC_SRC7_SHIFT (29U)\r
+#define PINT_PMSRC_SRC6(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC6_SHIFT)) & PINT_PMSRC_SRC6_MASK)\r
+#define PINT_PMSRC_SRC7_MASK (0xE0000000U)\r
+#define PINT_PMSRC_SRC7_SHIFT (29U)\r
/*! SRC7 - Selects the input source for bit slice 7\r
* 0b000..Input 0. Selects the pin selected in the PINTSEL0 register as the source to bit slice 7.\r
* 0b001..Input 1. Selects the pin selected in the PINTSEL1 register as the source to bit slice 7.\r
* 0b110..Input 6. Selects the pin selected in the PINTSEL6 register as the source to bit slice 7.\r
* 0b111..Input 7. Selects the pin selected in the PINTSEL7 register as the source to bit slice 7.\r
*/\r
-#define PINT_PMSRC_SRC7(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC7_SHIFT)) & PINT_PMSRC_SRC7_MASK)\r
+#define PINT_PMSRC_SRC7(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMSRC_SRC7_SHIFT)) & PINT_PMSRC_SRC7_MASK)\r
/*! @} */\r
\r
/*! @name PMCFG - Pattern match interrupt bit slice configuration register */\r
/*! @{ */\r
-#define PINT_PMCFG_PROD_ENDPTS0_MASK (0x1U)\r
-#define PINT_PMCFG_PROD_ENDPTS0_SHIFT (0U)\r
+#define PINT_PMCFG_PROD_ENDPTS0_MASK (0x1U)\r
+#define PINT_PMCFG_PROD_ENDPTS0_SHIFT (0U)\r
/*! PROD_ENDPTS0 - Determines whether slice 0 is an endpoint.\r
* 0b0..No effect. Slice 0 is not an endpoint.\r
- * 0b1..endpoint. Slice 0 is the endpoint of a product term (minterm). Pin interrupt 0 in the NVIC is raised if the minterm evaluates as true.\r
+ * 0b1..endpoint. Slice 0 is the endpoint of a product term (minterm). Pin interrupt 0 in the NVIC is raised if the\r
+ * minterm evaluates as true.\r
*/\r
-#define PINT_PMCFG_PROD_ENDPTS0(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS0_SHIFT)) & PINT_PMCFG_PROD_ENDPTS0_MASK)\r
-#define PINT_PMCFG_PROD_ENDPTS1_MASK (0x2U)\r
-#define PINT_PMCFG_PROD_ENDPTS1_SHIFT (1U)\r
+#define PINT_PMCFG_PROD_ENDPTS0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS0_SHIFT)) & PINT_PMCFG_PROD_ENDPTS0_MASK)\r
+#define PINT_PMCFG_PROD_ENDPTS1_MASK (0x2U)\r
+#define PINT_PMCFG_PROD_ENDPTS1_SHIFT (1U)\r
/*! PROD_ENDPTS1 - Determines whether slice 1 is an endpoint.\r
* 0b0..No effect. Slice 1 is not an endpoint.\r
- * 0b1..endpoint. Slice 1 is the endpoint of a product term (minterm). Pin interrupt 1 in the NVIC is raised if the minterm evaluates as true.\r
+ * 0b1..endpoint. Slice 1 is the endpoint of a product term (minterm). Pin interrupt 1 in the NVIC is raised if the\r
+ * minterm evaluates as true.\r
*/\r
-#define PINT_PMCFG_PROD_ENDPTS1(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS1_SHIFT)) & PINT_PMCFG_PROD_ENDPTS1_MASK)\r
-#define PINT_PMCFG_PROD_ENDPTS2_MASK (0x4U)\r
-#define PINT_PMCFG_PROD_ENDPTS2_SHIFT (2U)\r
+#define PINT_PMCFG_PROD_ENDPTS1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS1_SHIFT)) & PINT_PMCFG_PROD_ENDPTS1_MASK)\r
+#define PINT_PMCFG_PROD_ENDPTS2_MASK (0x4U)\r
+#define PINT_PMCFG_PROD_ENDPTS2_SHIFT (2U)\r
/*! PROD_ENDPTS2 - Determines whether slice 2 is an endpoint.\r
* 0b0..No effect. Slice 2 is not an endpoint.\r
- * 0b1..endpoint. Slice 2 is the endpoint of a product term (minterm). Pin interrupt 2 in the NVIC is raised if the minterm evaluates as true.\r
+ * 0b1..endpoint. Slice 2 is the endpoint of a product term (minterm). Pin interrupt 2 in the NVIC is raised if the\r
+ * minterm evaluates as true.\r
*/\r
-#define PINT_PMCFG_PROD_ENDPTS2(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS2_SHIFT)) & PINT_PMCFG_PROD_ENDPTS2_MASK)\r
-#define PINT_PMCFG_PROD_ENDPTS3_MASK (0x8U)\r
-#define PINT_PMCFG_PROD_ENDPTS3_SHIFT (3U)\r
+#define PINT_PMCFG_PROD_ENDPTS2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS2_SHIFT)) & PINT_PMCFG_PROD_ENDPTS2_MASK)\r
+#define PINT_PMCFG_PROD_ENDPTS3_MASK (0x8U)\r
+#define PINT_PMCFG_PROD_ENDPTS3_SHIFT (3U)\r
/*! PROD_ENDPTS3 - Determines whether slice 3 is an endpoint.\r
* 0b0..No effect. Slice 3 is not an endpoint.\r
- * 0b1..endpoint. Slice 3 is the endpoint of a product term (minterm). Pin interrupt 3 in the NVIC is raised if the minterm evaluates as true.\r
+ * 0b1..endpoint. Slice 3 is the endpoint of a product term (minterm). Pin interrupt 3 in the NVIC is raised if the\r
+ * minterm evaluates as true.\r
*/\r
-#define PINT_PMCFG_PROD_ENDPTS3(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS3_SHIFT)) & PINT_PMCFG_PROD_ENDPTS3_MASK)\r
-#define PINT_PMCFG_PROD_ENDPTS4_MASK (0x10U)\r
-#define PINT_PMCFG_PROD_ENDPTS4_SHIFT (4U)\r
+#define PINT_PMCFG_PROD_ENDPTS3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS3_SHIFT)) & PINT_PMCFG_PROD_ENDPTS3_MASK)\r
+#define PINT_PMCFG_PROD_ENDPTS4_MASK (0x10U)\r
+#define PINT_PMCFG_PROD_ENDPTS4_SHIFT (4U)\r
/*! PROD_ENDPTS4 - Determines whether slice 4 is an endpoint.\r
* 0b0..No effect. Slice 4 is not an endpoint.\r
- * 0b1..endpoint. Slice 4 is the endpoint of a product term (minterm). Pin interrupt 4 in the NVIC is raised if the minterm evaluates as true.\r
+ * 0b1..endpoint. Slice 4 is the endpoint of a product term (minterm). Pin interrupt 4 in the NVIC is raised if the\r
+ * minterm evaluates as true.\r
*/\r
-#define PINT_PMCFG_PROD_ENDPTS4(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS4_SHIFT)) & PINT_PMCFG_PROD_ENDPTS4_MASK)\r
-#define PINT_PMCFG_PROD_ENDPTS5_MASK (0x20U)\r
-#define PINT_PMCFG_PROD_ENDPTS5_SHIFT (5U)\r
+#define PINT_PMCFG_PROD_ENDPTS4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS4_SHIFT)) & PINT_PMCFG_PROD_ENDPTS4_MASK)\r
+#define PINT_PMCFG_PROD_ENDPTS5_MASK (0x20U)\r
+#define PINT_PMCFG_PROD_ENDPTS5_SHIFT (5U)\r
/*! PROD_ENDPTS5 - Determines whether slice 5 is an endpoint.\r
* 0b0..No effect. Slice 5 is not an endpoint.\r
- * 0b1..endpoint. Slice 5 is the endpoint of a product term (minterm). Pin interrupt 5 in the NVIC is raised if the minterm evaluates as true.\r
+ * 0b1..endpoint. Slice 5 is the endpoint of a product term (minterm). Pin interrupt 5 in the NVIC is raised if the\r
+ * minterm evaluates as true.\r
*/\r
-#define PINT_PMCFG_PROD_ENDPTS5(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS5_SHIFT)) & PINT_PMCFG_PROD_ENDPTS5_MASK)\r
-#define PINT_PMCFG_PROD_ENDPTS6_MASK (0x40U)\r
-#define PINT_PMCFG_PROD_ENDPTS6_SHIFT (6U)\r
+#define PINT_PMCFG_PROD_ENDPTS5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS5_SHIFT)) & PINT_PMCFG_PROD_ENDPTS5_MASK)\r
+#define PINT_PMCFG_PROD_ENDPTS6_MASK (0x40U)\r
+#define PINT_PMCFG_PROD_ENDPTS6_SHIFT (6U)\r
/*! PROD_ENDPTS6 - Determines whether slice 6 is an endpoint.\r
* 0b0..No effect. Slice 6 is not an endpoint.\r
- * 0b1..endpoint. Slice 6 is the endpoint of a product term (minterm). Pin interrupt 6 in the NVIC is raised if the minterm evaluates as true.\r
+ * 0b1..endpoint. Slice 6 is the endpoint of a product term (minterm). Pin interrupt 6 in the NVIC is raised if the\r
+ * minterm evaluates as true.\r
*/\r
-#define PINT_PMCFG_PROD_ENDPTS6(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS6_SHIFT)) & PINT_PMCFG_PROD_ENDPTS6_MASK)\r
-#define PINT_PMCFG_CFG0_MASK (0x700U)\r
-#define PINT_PMCFG_CFG0_SHIFT (8U)\r
+#define PINT_PMCFG_PROD_ENDPTS6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_PROD_ENDPTS6_SHIFT)) & PINT_PMCFG_PROD_ENDPTS6_MASK)\r
+#define PINT_PMCFG_CFG0_MASK (0x700U)\r
+#define PINT_PMCFG_CFG0_SHIFT (8U)\r
/*! CFG0 - Specifies the match contribution condition for bit slice 0.\r
* 0b000..Constant HIGH. This bit slice always contributes to a product term match.\r
- * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.\r
- * 0b101..Low level. Match occurs when there is a low level on the specified input.\r
+ * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input\r
+ * has occurred since the last time the edge detection for this bit slice was cleared. This bit is only\r
+ * cleared when the PMCFG or the PMSRC registers are written to.\r
+ * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit\r
+ * slice in the PMSRC register. 0b101..Low level. Match occurs when there is a low level on the specified input.\r
* 0b110..Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).\r
- * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.\r
+ * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or\r
+ * falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit\r
+ * is cleared after one clock cycle.\r
*/\r
-#define PINT_PMCFG_CFG0(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG0_SHIFT)) & PINT_PMCFG_CFG0_MASK)\r
-#define PINT_PMCFG_CFG1_MASK (0x3800U)\r
-#define PINT_PMCFG_CFG1_SHIFT (11U)\r
+#define PINT_PMCFG_CFG0(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG0_SHIFT)) & PINT_PMCFG_CFG0_MASK)\r
+#define PINT_PMCFG_CFG1_MASK (0x3800U)\r
+#define PINT_PMCFG_CFG1_SHIFT (11U)\r
/*! CFG1 - Specifies the match contribution condition for bit slice 1.\r
* 0b000..Constant HIGH. This bit slice always contributes to a product term match.\r
- * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.\r
- * 0b101..Low level. Match occurs when there is a low level on the specified input.\r
+ * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input\r
+ * has occurred since the last time the edge detection for this bit slice was cleared. This bit is only\r
+ * cleared when the PMCFG or the PMSRC registers are written to.\r
+ * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit\r
+ * slice in the PMSRC register. 0b101..Low level. Match occurs when there is a low level on the specified input.\r
* 0b110..Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).\r
- * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.\r
+ * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or\r
+ * falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit\r
+ * is cleared after one clock cycle.\r
*/\r
-#define PINT_PMCFG_CFG1(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG1_SHIFT)) & PINT_PMCFG_CFG1_MASK)\r
-#define PINT_PMCFG_CFG2_MASK (0x1C000U)\r
-#define PINT_PMCFG_CFG2_SHIFT (14U)\r
+#define PINT_PMCFG_CFG1(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG1_SHIFT)) & PINT_PMCFG_CFG1_MASK)\r
+#define PINT_PMCFG_CFG2_MASK (0x1C000U)\r
+#define PINT_PMCFG_CFG2_SHIFT (14U)\r
/*! CFG2 - Specifies the match contribution condition for bit slice 2.\r
* 0b000..Constant HIGH. This bit slice always contributes to a product term match.\r
- * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.\r
- * 0b101..Low level. Match occurs when there is a low level on the specified input.\r
+ * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input\r
+ * has occurred since the last time the edge detection for this bit slice was cleared. This bit is only\r
+ * cleared when the PMCFG or the PMSRC registers are written to.\r
+ * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit\r
+ * slice in the PMSRC register. 0b101..Low level. Match occurs when there is a low level on the specified input.\r
* 0b110..Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).\r
- * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.\r
+ * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or\r
+ * falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit\r
+ * is cleared after one clock cycle.\r
*/\r
-#define PINT_PMCFG_CFG2(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG2_SHIFT)) & PINT_PMCFG_CFG2_MASK)\r
-#define PINT_PMCFG_CFG3_MASK (0xE0000U)\r
-#define PINT_PMCFG_CFG3_SHIFT (17U)\r
+#define PINT_PMCFG_CFG2(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG2_SHIFT)) & PINT_PMCFG_CFG2_MASK)\r
+#define PINT_PMCFG_CFG3_MASK (0xE0000U)\r
+#define PINT_PMCFG_CFG3_SHIFT (17U)\r
/*! CFG3 - Specifies the match contribution condition for bit slice 3.\r
* 0b000..Constant HIGH. This bit slice always contributes to a product term match.\r
- * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.\r
- * 0b101..Low level. Match occurs when there is a low level on the specified input.\r
+ * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input\r
+ * has occurred since the last time the edge detection for this bit slice was cleared. This bit is only\r
+ * cleared when the PMCFG or the PMSRC registers are written to.\r
+ * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit\r
+ * slice in the PMSRC register. 0b101..Low level. Match occurs when there is a low level on the specified input.\r
* 0b110..Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).\r
- * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.\r
+ * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or\r
+ * falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit\r
+ * is cleared after one clock cycle.\r
*/\r
-#define PINT_PMCFG_CFG3(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG3_SHIFT)) & PINT_PMCFG_CFG3_MASK)\r
-#define PINT_PMCFG_CFG4_MASK (0x700000U)\r
-#define PINT_PMCFG_CFG4_SHIFT (20U)\r
+#define PINT_PMCFG_CFG3(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG3_SHIFT)) & PINT_PMCFG_CFG3_MASK)\r
+#define PINT_PMCFG_CFG4_MASK (0x700000U)\r
+#define PINT_PMCFG_CFG4_SHIFT (20U)\r
/*! CFG4 - Specifies the match contribution condition for bit slice 4.\r
* 0b000..Constant HIGH. This bit slice always contributes to a product term match.\r
- * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.\r
- * 0b101..Low level. Match occurs when there is a low level on the specified input.\r
+ * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input\r
+ * has occurred since the last time the edge detection for this bit slice was cleared. This bit is only\r
+ * cleared when the PMCFG or the PMSRC registers are written to.\r
+ * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit\r
+ * slice in the PMSRC register. 0b101..Low level. Match occurs when there is a low level on the specified input.\r
* 0b110..Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).\r
- * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.\r
+ * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or\r
+ * falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit\r
+ * is cleared after one clock cycle.\r
*/\r
-#define PINT_PMCFG_CFG4(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG4_SHIFT)) & PINT_PMCFG_CFG4_MASK)\r
-#define PINT_PMCFG_CFG5_MASK (0x3800000U)\r
-#define PINT_PMCFG_CFG5_SHIFT (23U)\r
+#define PINT_PMCFG_CFG4(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG4_SHIFT)) & PINT_PMCFG_CFG4_MASK)\r
+#define PINT_PMCFG_CFG5_MASK (0x3800000U)\r
+#define PINT_PMCFG_CFG5_SHIFT (23U)\r
/*! CFG5 - Specifies the match contribution condition for bit slice 5.\r
* 0b000..Constant HIGH. This bit slice always contributes to a product term match.\r
- * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.\r
- * 0b101..Low level. Match occurs when there is a low level on the specified input.\r
+ * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input\r
+ * has occurred since the last time the edge detection for this bit slice was cleared. This bit is only\r
+ * cleared when the PMCFG or the PMSRC registers are written to.\r
+ * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit\r
+ * slice in the PMSRC register. 0b101..Low level. Match occurs when there is a low level on the specified input.\r
* 0b110..Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).\r
- * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.\r
+ * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or\r
+ * falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit\r
+ * is cleared after one clock cycle.\r
*/\r
-#define PINT_PMCFG_CFG5(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG5_SHIFT)) & PINT_PMCFG_CFG5_MASK)\r
-#define PINT_PMCFG_CFG6_MASK (0x1C000000U)\r
-#define PINT_PMCFG_CFG6_SHIFT (26U)\r
+#define PINT_PMCFG_CFG5(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG5_SHIFT)) & PINT_PMCFG_CFG5_MASK)\r
+#define PINT_PMCFG_CFG6_MASK (0x1C000000U)\r
+#define PINT_PMCFG_CFG6_SHIFT (26U)\r
/*! CFG6 - Specifies the match contribution condition for bit slice 6.\r
* 0b000..Constant HIGH. This bit slice always contributes to a product term match.\r
- * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.\r
- * 0b101..Low level. Match occurs when there is a low level on the specified input.\r
+ * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input\r
+ * has occurred since the last time the edge detection for this bit slice was cleared. This bit is only\r
+ * cleared when the PMCFG or the PMSRC registers are written to.\r
+ * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit\r
+ * slice in the PMSRC register. 0b101..Low level. Match occurs when there is a low level on the specified input.\r
* 0b110..Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).\r
- * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.\r
+ * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or\r
+ * falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit\r
+ * is cleared after one clock cycle.\r
*/\r
-#define PINT_PMCFG_CFG6(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG6_SHIFT)) & PINT_PMCFG_CFG6_MASK)\r
-#define PINT_PMCFG_CFG7_MASK (0xE0000000U)\r
-#define PINT_PMCFG_CFG7_SHIFT (29U)\r
+#define PINT_PMCFG_CFG6(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG6_SHIFT)) & PINT_PMCFG_CFG6_MASK)\r
+#define PINT_PMCFG_CFG7_MASK (0xE0000000U)\r
+#define PINT_PMCFG_CFG7_SHIFT (29U)\r
/*! CFG7 - Specifies the match contribution condition for bit slice 7.\r
* 0b000..Constant HIGH. This bit slice always contributes to a product term match.\r
- * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input has occurred since the last time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the PMSRC registers are written to.\r
- * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit slice in the PMSRC register.\r
- * 0b101..Low level. Match occurs when there is a low level on the specified input.\r
+ * 0b001..Sticky rising edge. Match occurs if a rising edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b010..Sticky falling edge. Match occurs if a falling edge on the specified input has occurred since the last\r
+ * time the edge detection for this bit slice was cleared. This bit is only cleared when the PMCFG or the\r
+ * PMSRC registers are written to.\r
+ * 0b011..Sticky rising or falling edge. Match occurs if either a rising or falling edge on the specified input\r
+ * has occurred since the last time the edge detection for this bit slice was cleared. This bit is only\r
+ * cleared when the PMCFG or the PMSRC registers are written to.\r
+ * 0b100..High level. Match (for this bit slice) occurs when there is a high level on the input specified for this bit\r
+ * slice in the PMSRC register. 0b101..Low level. Match occurs when there is a low level on the specified input.\r
* 0b110..Constant 0. This bit slice never contributes to a match (should be used to disable any unused bit slices).\r
- * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit is cleared after one clock cycle.\r
+ * 0b111..Event. Non-sticky rising or falling edge. Match occurs on an event - i.e. when either a rising or\r
+ * falling edge is first detected on the specified input (this is a non-sticky version of value 0x3) . This bit\r
+ * is cleared after one clock cycle.\r
*/\r
-#define PINT_PMCFG_CFG7(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG7_SHIFT)) & PINT_PMCFG_CFG7_MASK)\r
+#define PINT_PMCFG_CFG7(x) (((uint32_t)(((uint32_t)(x)) << PINT_PMCFG_CFG7_SHIFT)) & PINT_PMCFG_CFG7_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group PINT_Register_Masks */\r
\r
-\r
/* PINT - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral PINT base address */\r
- #define PINT_BASE (0x50004000u)\r
- /** Peripheral PINT base address */\r
- #define PINT_BASE_NS (0x40004000u)\r
- /** Peripheral PINT base pointer */\r
- #define PINT ((PINT_Type *)PINT_BASE)\r
- /** Peripheral PINT base pointer */\r
- #define PINT_NS ((PINT_Type *)PINT_BASE_NS)\r
- /** Peripheral SECPINT base address */\r
- #define SECPINT_BASE (0x50005000u)\r
- /** Peripheral SECPINT base address */\r
- #define SECPINT_BASE_NS (0x40005000u)\r
- /** Peripheral SECPINT base pointer */\r
- #define SECPINT ((PINT_Type *)SECPINT_BASE)\r
- /** Peripheral SECPINT base pointer */\r
- #define SECPINT_NS ((PINT_Type *)SECPINT_BASE_NS)\r
- /** Array initializer of PINT peripheral base addresses */\r
- #define PINT_BASE_ADDRS { PINT_BASE, SECPINT_BASE }\r
- /** Array initializer of PINT peripheral base pointers */\r
- #define PINT_BASE_PTRS { PINT, SECPINT }\r
- /** Array initializer of PINT peripheral base addresses */\r
- #define PINT_BASE_ADDRS_NS { PINT_BASE_NS, SECPINT_BASE_NS }\r
- /** Array initializer of PINT peripheral base pointers */\r
- #define PINT_BASE_PTRS_NS { PINT_NS, SECPINT_NS }\r
+/** Peripheral PINT base address */\r
+#define PINT_BASE (0x50004000u)\r
+/** Peripheral PINT base address */\r
+#define PINT_BASE_NS (0x40004000u)\r
+/** Peripheral PINT base pointer */\r
+#define PINT ((PINT_Type *)PINT_BASE)\r
+/** Peripheral PINT base pointer */\r
+#define PINT_NS ((PINT_Type *)PINT_BASE_NS)\r
+/** Peripheral SECPINT base address */\r
+#define SECPINT_BASE (0x50005000u)\r
+/** Peripheral SECPINT base address */\r
+#define SECPINT_BASE_NS (0x40005000u)\r
+/** Peripheral SECPINT base pointer */\r
+#define SECPINT ((PINT_Type *)SECPINT_BASE)\r
+/** Peripheral SECPINT base pointer */\r
+#define SECPINT_NS ((PINT_Type *)SECPINT_BASE_NS)\r
+/** Array initializer of PINT peripheral base addresses */\r
+#define PINT_BASE_ADDRS \\r
+ { \\r
+ PINT_BASE, SECPINT_BASE \\r
+ }\r
+/** Array initializer of PINT peripheral base pointers */\r
+#define PINT_BASE_PTRS \\r
+ { \\r
+ PINT, SECPINT \\r
+ }\r
+/** Array initializer of PINT peripheral base addresses */\r
+#define PINT_BASE_ADDRS_NS \\r
+ { \\r
+ PINT_BASE_NS, SECPINT_BASE_NS \\r
+ }\r
+/** Array initializer of PINT peripheral base pointers */\r
+#define PINT_BASE_PTRS_NS \\r
+ { \\r
+ PINT_NS, SECPINT_NS \\r
+ }\r
#else\r
- /** Peripheral PINT base address */\r
- #define PINT_BASE (0x40004000u)\r
- /** Peripheral PINT base pointer */\r
- #define PINT ((PINT_Type *)PINT_BASE)\r
- /** Peripheral SECPINT base address */\r
- #define SECPINT_BASE (0x40005000u)\r
- /** Peripheral SECPINT base pointer */\r
- #define SECPINT ((PINT_Type *)SECPINT_BASE)\r
- /** Array initializer of PINT peripheral base addresses */\r
- #define PINT_BASE_ADDRS { PINT_BASE, SECPINT_BASE }\r
- /** Array initializer of PINT peripheral base pointers */\r
- #define PINT_BASE_PTRS { PINT, SECPINT }\r
+/** Peripheral PINT base address */\r
+#define PINT_BASE (0x40004000u)\r
+/** Peripheral PINT base pointer */\r
+#define PINT ((PINT_Type *)PINT_BASE)\r
+/** Peripheral SECPINT base address */\r
+#define SECPINT_BASE (0x40005000u)\r
+/** Peripheral SECPINT base pointer */\r
+#define SECPINT ((PINT_Type *)SECPINT_BASE)\r
+/** Array initializer of PINT peripheral base addresses */\r
+#define PINT_BASE_ADDRS \\r
+ { \\r
+ PINT_BASE, SECPINT_BASE \\r
+ }\r
+/** Array initializer of PINT peripheral base pointers */\r
+#define PINT_BASE_PTRS \\r
+ { \\r
+ PINT, SECPINT \\r
+ }\r
#endif\r
/** Interrupt vectors for the PINT peripheral type */\r
-#define PINT_IRQS { PIN_INT0_IRQn, PIN_INT1_IRQn, PIN_INT2_IRQn, PIN_INT3_IRQn, PIN_INT4_IRQn, PIN_INT5_IRQn, PIN_INT6_IRQn, PIN_INT7_IRQn, SEC_GPIO_INT0_IRQ0_IRQn, SEC_GPIO_INT0_IRQ1_IRQn }\r
+#define PINT_IRQS \\r
+ { \\r
+ PIN_INT0_IRQn, PIN_INT1_IRQn, PIN_INT2_IRQn, PIN_INT3_IRQn, PIN_INT4_IRQn, PIN_INT5_IRQn, PIN_INT6_IRQn, \\r
+ PIN_INT7_IRQn, SEC_GPIO_INT0_IRQ0_IRQn, SEC_GPIO_INT0_IRQ1_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group PINT_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- PLU Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** PLU - Register Layout Typedef */\r
-typedef struct {\r
- struct { /* offset: 0x0, array step: 0x20 */\r
- __IO uint32_t INP[5]; /**< LUT0 input 0 MUX..LUT25 input 4 MUX, array offset: 0x0, array step: index*0x20, index2*0x4 */\r
- uint8_t RESERVED_0[12];\r
- } LUT[26];\r
- uint8_t RESERVED_0[1216];\r
- __IO uint32_t LUT_TRUTH[26]; /**< Specifies the Truth Table contents for LUT0..Specifies the Truth Table contents for LUT25, array offset: 0x800, array step: 0x4 */\r
- uint8_t RESERVED_1[152];\r
- __I uint32_t OUTPUTS; /**< Provides the current state of the 8 designated PLU Outputs., offset: 0x900 */\r
- __IO uint32_t WAKEINT; /**< Wakeup interrupt control for PLU, offset: 0x904 */\r
- uint8_t RESERVED_2[760];\r
- __IO uint32_t OUTPUT_MUX[8]; /**< Selects the source to be connected to PLU Output 0..Selects the source to be connected to PLU Output 7, array offset: 0xC00, array step: 0x4 */\r
+typedef struct\r
+{\r
+ struct\r
+ { /* offset: 0x0, array step: 0x20 */\r
+ __IO uint32_t INP_MUX[5]; /**< LUTn input x MUX, array offset: 0x0, array step: index*0x20, index2*0x4 */\r
+ uint8_t RESERVED_0[12];\r
+ } LUT[26];\r
+ uint8_t RESERVED_0[1216];\r
+ __IO uint32_t LUT_TRUTH[26]; /**< Specifies the Truth Table contents for LUT0..Specifies the Truth Table contents\r
+ for LUT25, array offset: 0x800, array step: 0x4 */\r
+ uint8_t RESERVED_1[152];\r
+ __I uint32_t OUTPUTS; /**< Provides the current state of the 8 designated PLU Outputs., offset: 0x900 */\r
+ __IO uint32_t WAKEINT_CTRL; /**< Wakeup interrupt control for PLU, offset: 0x904 */\r
+ uint8_t RESERVED_2[760];\r
+ __IO uint32_t OUTPUT_MUX[8]; /**< Selects the source to be connected to PLU Output 0..Selects the source to be\r
+ connected to PLU Output 7, array offset: 0xC00, array step: 0x4 */\r
} PLU_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name LUT_INP - LUT0 input 0 MUX..LUT25 input 4 MUX */\r
+/*! @name LUT_INP_MUX - LUTn input x MUX */\r
/*! @{ */\r
-#define PLU_LUT_INP_LUT_INP_MASK (0x3FU)\r
-#define PLU_LUT_INP_LUT_INP_SHIFT (0U)\r
-/*! LUT_INP - Selects the input source to be connected to LUT25 input4.\r
+#define PLU_LUT_INP_MUX_LUTn_INPx_MASK (0x3FU)\r
+#define PLU_LUT_INP_MUX_LUTn_INPx_SHIFT (0U)\r
+/*! LUTn_INPx - Selects the input source to be connected to LUT25 input4. For each LUT, the slot\r
+ * associated with the output from LUTn itself is tied low.\r
* 0b000000..The PLU primary inputs 0.\r
* 0b000001..The PLU primary inputs 1.\r
* 0b000010..The PLU primary inputs 2.\r
* 0b000011..The PLU primary inputs 3.\r
* 0b000100..The PLU primary inputs 4.\r
* 0b000101..The PLU primary inputs 5.\r
- * 0b000110..Tie low.\r
+ * 0b000110..The output of LUT0.\r
* 0b000111..The output of LUT1.\r
* 0b001000..The output of LUT2.\r
* 0b001001..The output of LUT3.\r
* 0b100010..state(2).\r
* 0b100011..state(3).\r
*/\r
-#define PLU_LUT_INP_LUT_INP(x) (((uint32_t)(((uint32_t)(x)) << PLU_LUT_INP_LUT_INP_SHIFT)) & PLU_LUT_INP_LUT_INP_MASK)\r
+#define PLU_LUT_INP_MUX_LUTn_INPx(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_LUT_INP_MUX_LUTn_INPx_SHIFT)) & PLU_LUT_INP_MUX_LUTn_INPx_MASK)\r
/*! @} */\r
\r
-/* The count of PLU_LUT_INP */\r
-#define PLU_LUT_INP_COUNT (26U)\r
+/* The count of PLU_LUT_INP_MUX */\r
+#define PLU_LUT_INP_MUX_COUNT (26U)\r
\r
-/* The count of PLU_LUT_INP */\r
-#define PLU_LUT_INP_COUNT2 (5U)\r
+/* The count of PLU_LUT_INP_MUX */\r
+#define PLU_LUT_INP_MUX_COUNT2 (5U)\r
\r
-/*! @name LUT_T_LUT_TRUTH - Specifies the Truth Table contents for LUT0..Specifies the Truth Table contents for LUT25 */\r
+/*! @name LUT_TRUTH - Specifies the Truth Table contents for LUT0..Specifies the Truth Table contents for LUT25 */\r
/*! @{ */\r
-#define PLU_LUT_T_LUT_TRUTH_TRUTH_TABLE_MASK (0xFFFFFFFFU)\r
-#define PLU_LUT_T_LUT_TRUTH_TRUTH_TABLE_SHIFT (0U)\r
-#define PLU_LUT_T_LUT_TRUTH_TRUTH_TABLE(x) (((uint32_t)(((uint32_t)(x)) << PLU_LUT_T_LUT_TRUTH_TRUTH_TABLE_SHIFT)) & PLU_LUT_T_LUT_TRUTH_TRUTH_TABLE_MASK)\r
+#define PLU_LUT_TRUTH_LUTn_TRUTH_MASK (0xFFFFFFFFU)\r
+#define PLU_LUT_TRUTH_LUTn_TRUTH_SHIFT (0U)\r
+/*! LUTn_TRUTH - Specifies the Truth Table contents for LUT25..\r
+ */\r
+#define PLU_LUT_TRUTH_LUTn_TRUTH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_LUT_TRUTH_LUTn_TRUTH_SHIFT)) & PLU_LUT_TRUTH_LUTn_TRUTH_MASK)\r
/*! @} */\r
\r
-/* The count of PLU_LUT_T_LUT_TRUTH */\r
-#define PLU_LUT_T_LUT_TRUTH_COUNT (26U)\r
+/* The count of PLU_LUT_TRUTH */\r
+#define PLU_LUT_TRUTH_COUNT (26U)\r
\r
/*! @name OUTPUTS - Provides the current state of the 8 designated PLU Outputs. */\r
/*! @{ */\r
-#define PLU_OUTPUTS_OUTPUT_STATE_MASK (0xFFU)\r
-#define PLU_OUTPUTS_OUTPUT_STATE_SHIFT (0U)\r
-#define PLU_OUTPUTS_OUTPUT_STATE(x) (((uint32_t)(((uint32_t)(x)) << PLU_OUTPUTS_OUTPUT_STATE_SHIFT)) & PLU_OUTPUTS_OUTPUT_STATE_MASK)\r
+#define PLU_OUTPUTS_OUTPUT_STATE_MASK (0xFFU)\r
+#define PLU_OUTPUTS_OUTPUT_STATE_SHIFT (0U)\r
+/*! OUTPUT_STATE - Provides the current state of the 8 designated PLU Outputs..\r
+ */\r
+#define PLU_OUTPUTS_OUTPUT_STATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_OUTPUTS_OUTPUT_STATE_SHIFT)) & PLU_OUTPUTS_OUTPUT_STATE_MASK)\r
/*! @} */\r
\r
-/*! @name WAKEINT - Wakeup interrupt control for PLU */\r
+/*! @name WAKEINT_CTRL - Wakeup interrupt control for PLU */\r
/*! @{ */\r
-#define PLU_WAKEINT_MASK_MASK (0xFFU)\r
-#define PLU_WAKEINT_MASK_SHIFT (0U)\r
-#define PLU_WAKEINT_MASK(x) (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_MASK_SHIFT)) & PLU_WAKEINT_MASK_MASK)\r
-#define PLU_WAKEINT_FILTER_MODE_MASK (0x300U)\r
-#define PLU_WAKEINT_FILTER_MODE_SHIFT (8U)\r
-/*! FILTER_MODE - control input of the PLU, add filtering for glitch\r
+#define PLU_WAKEINT_CTRL_MASK_MASK (0xFFU)\r
+#define PLU_WAKEINT_CTRL_MASK_SHIFT (0U)\r
+/*! MASK - Interrupt mask (which of the 8 PLU Outputs contribute to interrupt)\r
+ */\r
+#define PLU_WAKEINT_CTRL_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_CTRL_MASK_SHIFT)) & PLU_WAKEINT_CTRL_MASK_MASK)\r
+#define PLU_WAKEINT_CTRL_FILTER_MODE_MASK (0x300U)\r
+#define PLU_WAKEINT_CTRL_FILTER_MODE_SHIFT (8U)\r
+/*! FILTER_MODE - control input of the PLU, add filtering for glitch.\r
* 0b00..Bypass mode.\r
* 0b01..Filter 1 clock period.\r
* 0b10..Filter 2 clock period.\r
* 0b11..Filter 3 clock period.\r
*/\r
-#define PLU_WAKEINT_FILTER_MODE(x) (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_FILTER_MODE_SHIFT)) & PLU_WAKEINT_FILTER_MODE_MASK)\r
-#define PLU_WAKEINT_FILTER_CLKSEL_MASK (0xC00U)\r
-#define PLU_WAKEINT_FILTER_CLKSEL_SHIFT (10U)\r
-#define PLU_WAKEINT_FILTER_CLKSEL(x) (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_FILTER_CLKSEL_SHIFT)) & PLU_WAKEINT_FILTER_CLKSEL_MASK)\r
-#define PLU_WAKEINT_LATCH_ENABLE_MASK (0x1000U)\r
-#define PLU_WAKEINT_LATCH_ENABLE_SHIFT (12U)\r
-#define PLU_WAKEINT_LATCH_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_LATCH_ENABLE_SHIFT)) & PLU_WAKEINT_LATCH_ENABLE_MASK)\r
-#define PLU_WAKEINT_INTR_CLEAR_MASK (0x2000U)\r
-#define PLU_WAKEINT_INTR_CLEAR_SHIFT (13U)\r
-#define PLU_WAKEINT_INTR_CLEAR(x) (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_INTR_CLEAR_SHIFT)) & PLU_WAKEINT_INTR_CLEAR_MASK)\r
+#define PLU_WAKEINT_CTRL_FILTER_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_CTRL_FILTER_MODE_SHIFT)) & PLU_WAKEINT_CTRL_FILTER_MODE_MASK)\r
+#define PLU_WAKEINT_CTRL_FILTER_CLKSEL_MASK (0xC00U)\r
+#define PLU_WAKEINT_CTRL_FILTER_CLKSEL_SHIFT (10U)\r
+/*! FILTER_CLKSEL - hclk is divided by 2**filter_clksel.\r
+ * 0b00..Selects the 1 MHz low-power oscillator as the filter clock.\r
+ * 0b01..Selects the 12 Mhz FRO as the filter clock.\r
+ * 0b10..Selects a third filter clock source, if provided.\r
+ * 0b11..Reserved.\r
+ */\r
+#define PLU_WAKEINT_CTRL_FILTER_CLKSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_CTRL_FILTER_CLKSEL_SHIFT)) & PLU_WAKEINT_CTRL_FILTER_CLKSEL_MASK)\r
+#define PLU_WAKEINT_CTRL_LATCH_ENABLE_MASK (0x1000U)\r
+#define PLU_WAKEINT_CTRL_LATCH_ENABLE_SHIFT (12U)\r
+/*! LATCH_ENABLE - latch the interrupt , then can be cleared with next bit INTR_CLEAR\r
+ */\r
+#define PLU_WAKEINT_CTRL_LATCH_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_CTRL_LATCH_ENABLE_SHIFT)) & PLU_WAKEINT_CTRL_LATCH_ENABLE_MASK)\r
+#define PLU_WAKEINT_CTRL_INTR_CLEAR_MASK (0x2000U)\r
+#define PLU_WAKEINT_CTRL_INTR_CLEAR_SHIFT (13U)\r
+/*! INTR_CLEAR - Write to clear wakeint_latched\r
+ */\r
+#define PLU_WAKEINT_CTRL_INTR_CLEAR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_WAKEINT_CTRL_INTR_CLEAR_SHIFT)) & PLU_WAKEINT_CTRL_INTR_CLEAR_MASK)\r
/*! @} */\r
\r
-/*! @name OUTPUT_MUX - Selects the source to be connected to PLU Output 0..Selects the source to be connected to PLU Output 7 */\r
+/*! @name OUTPUT_MUX - Selects the source to be connected to PLU Output 0..Selects the source to be connected to PLU\r
+ * Output 7 */\r
/*! @{ */\r
-#define PLU_OUTPUT_MUX_OUTPUTn_MASK (0x1FU)\r
-#define PLU_OUTPUT_MUX_OUTPUTn_SHIFT (0U)\r
+#define PLU_OUTPUT_MUX_OUTPUTn_MASK (0x1FU)\r
+#define PLU_OUTPUT_MUX_OUTPUTn_SHIFT (0U)\r
/*! OUTPUTn - Selects the source to be connected to PLU Output 7.\r
* 0b00000..The PLU output 0.\r
* 0b00001..The PLU output 1.\r
* 0b11100..state(2).\r
* 0b11101..state(3).\r
*/\r
-#define PLU_OUTPUT_MUX_OUTPUTn(x) (((uint32_t)(((uint32_t)(x)) << PLU_OUTPUT_MUX_OUTPUTn_SHIFT)) & PLU_OUTPUT_MUX_OUTPUTn_MASK)\r
+#define PLU_OUTPUT_MUX_OUTPUTn(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PLU_OUTPUT_MUX_OUTPUTn_SHIFT)) & PLU_OUTPUT_MUX_OUTPUTn_MASK)\r
/*! @} */\r
\r
/* The count of PLU_OUTPUT_MUX */\r
-#define PLU_OUTPUT_MUX_COUNT (8U)\r
-\r
+#define PLU_OUTPUT_MUX_COUNT (8U)\r
\r
/*!\r
* @}\r
*/ /* end of group PLU_Register_Masks */\r
\r
-\r
/* PLU - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral PLU base address */\r
- #define PLU_BASE (0x5003D000u)\r
- /** Peripheral PLU base address */\r
- #define PLU_BASE_NS (0x4003D000u)\r
- /** Peripheral PLU base pointer */\r
- #define PLU ((PLU_Type *)PLU_BASE)\r
- /** Peripheral PLU base pointer */\r
- #define PLU_NS ((PLU_Type *)PLU_BASE_NS)\r
- /** Array initializer of PLU peripheral base addresses */\r
- #define PLU_BASE_ADDRS { PLU_BASE }\r
- /** Array initializer of PLU peripheral base pointers */\r
- #define PLU_BASE_PTRS { PLU }\r
- /** Array initializer of PLU peripheral base addresses */\r
- #define PLU_BASE_ADDRS_NS { PLU_BASE_NS }\r
- /** Array initializer of PLU peripheral base pointers */\r
- #define PLU_BASE_PTRS_NS { PLU_NS }\r
+/** Peripheral PLU base address */\r
+#define PLU_BASE (0x5003D000u)\r
+/** Peripheral PLU base address */\r
+#define PLU_BASE_NS (0x4003D000u)\r
+/** Peripheral PLU base pointer */\r
+#define PLU ((PLU_Type *)PLU_BASE)\r
+/** Peripheral PLU base pointer */\r
+#define PLU_NS ((PLU_Type *)PLU_BASE_NS)\r
+/** Array initializer of PLU peripheral base addresses */\r
+#define PLU_BASE_ADDRS \\r
+ { \\r
+ PLU_BASE \\r
+ }\r
+/** Array initializer of PLU peripheral base pointers */\r
+#define PLU_BASE_PTRS \\r
+ { \\r
+ PLU \\r
+ }\r
+/** Array initializer of PLU peripheral base addresses */\r
+#define PLU_BASE_ADDRS_NS \\r
+ { \\r
+ PLU_BASE_NS \\r
+ }\r
+/** Array initializer of PLU peripheral base pointers */\r
+#define PLU_BASE_PTRS_NS \\r
+ { \\r
+ PLU_NS \\r
+ }\r
#else\r
- /** Peripheral PLU base address */\r
- #define PLU_BASE (0x4003D000u)\r
- /** Peripheral PLU base pointer */\r
- #define PLU ((PLU_Type *)PLU_BASE)\r
- /** Array initializer of PLU peripheral base addresses */\r
- #define PLU_BASE_ADDRS { PLU_BASE }\r
- /** Array initializer of PLU peripheral base pointers */\r
- #define PLU_BASE_PTRS { PLU }\r
+/** Peripheral PLU base address */\r
+#define PLU_BASE (0x4003D000u)\r
+/** Peripheral PLU base pointer */\r
+#define PLU ((PLU_Type *)PLU_BASE)\r
+/** Array initializer of PLU peripheral base addresses */\r
+#define PLU_BASE_ADDRS \\r
+ { \\r
+ PLU_BASE \\r
+ }\r
+/** Array initializer of PLU peripheral base pointers */\r
+#define PLU_BASE_PTRS \\r
+ { \\r
+ PLU \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group PLU_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- PMC Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** PMC - Register Layout Typedef */\r
-typedef struct {\r
- uint8_t RESERVED_0[8];\r
- __IO uint32_t RESETCTRL; /**< Reset Control [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0x8 */\r
- __IO uint32_t RESETCAUSE; /**< Reset Cause register [Reset by: PoR], offset: 0xC */\r
- uint8_t RESERVED_1[32];\r
- __IO uint32_t BODVBAT; /**< VBAT Brown Out Dectector (BoD) control register [Reset by: PoR, Pin Reset, Software Reset], offset: 0x30 */\r
- uint8_t RESERVED_2[4];\r
- __IO uint32_t BODCORE; /**< Digital Core logic Brown Out Dectector control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0x38 */\r
- uint8_t RESERVED_3[8];\r
- __IO uint32_t FRO1M; /**< 1 MHz Free Running Oscillator control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0x44 */\r
- __IO uint32_t FRO32K; /**< 32 KHz Free Running Oscillator (FRO) control register [Reset by: PoR, Brown Out Detectors Reset], offset: 0x48 */\r
- __IO uint32_t XTAL32K; /**< 32 KHz Crystal oscillator (XTAL) control register [Reset by: PoR, Brown Out Detectors Reset], offset: 0x4C */\r
- __IO uint32_t COMP; /**< Analog Comparator control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0x50 */\r
- uint8_t RESERVED_4[20];\r
- __IO uint32_t WAKEIOCAUSE; /**< Allows to identify the Wake-up I/O source from Deep Power Down mode, offset: 0x68 */\r
- uint8_t RESERVED_5[8];\r
- __IO uint32_t STATUSCLK; /**< FRO and XTAL status register [Reset by: PoR, Brown Out Detectors Reset], offset: 0x74 */\r
- uint8_t RESERVED_6[12];\r
- __IO uint32_t AOREG1; /**< General purpose always on domain data storage [Reset by: PoR, Brown Out Detectors Reset], offset: 0x84 */\r
- uint8_t RESERVED_7[16];\r
- __IO uint32_t RTCOSC32K; /**< RTC 1 KHZ and 1 Hz clocks source control register [Reset by: PoR, Brown Out Detectors Reset], offset: 0x98 */\r
- __IO uint32_t OSTIMERr; /**< OS Timer control register [Reset by: PoR, Brown Out Detectors Reset], offset: 0x9C */\r
- uint8_t RESERVED_8[16];\r
- __IO uint32_t PDSLEEPCFG0; /**< Controls the power to various modules during Low Power modes - DEEP SLEEP, POWER DOWN and DEEP POWER DOWN [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Software Reset], offset: 0xB0 */\r
- uint8_t RESERVED_9[4];\r
- __IO uint32_t PDRUNCFG0; /**< Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0xB8 */\r
- uint8_t RESERVED_10[4];\r
- __O uint32_t PDRUNCFGSET0; /**< Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0xC0 */\r
- uint8_t RESERVED_11[4];\r
- __O uint32_t PDRUNCFGCLR0; /**< Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0xC8 */\r
+typedef struct\r
+{\r
+ uint8_t RESERVED_0[8];\r
+ __IO uint32_t RESETCTRL; /**< Reset Control [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down\r
+ Reset, Software Reset], offset: 0x8 */\r
+ uint8_t RESERVED_1[36];\r
+ __IO uint32_t BODVBAT; /**< VBAT Brown Out Dectector (BoD) control register [Reset by: PoR, Pin Reset, Software\r
+ Reset], offset: 0x30 */\r
+ uint8_t RESERVED_2[28];\r
+ __IO uint32_t COMP; /**< Analog Comparator control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset,\r
+ Deep Power Down Reset, Software Reset], offset: 0x50 */\r
+ uint8_t RESERVED_3[20];\r
+ __IO uint32_t WAKEIOCAUSE; /**< Allows to identify the Wake-up I/O source from Deep Power Down mode, offset: 0x68 */\r
+ uint8_t RESERVED_4[8];\r
+ __IO uint32_t\r
+ STATUSCLK; /**< FRO and XTAL status register [Reset by: PoR, Brown Out Detectors Reset], offset: 0x74 */\r
+ uint8_t RESERVED_5[12];\r
+ __IO uint32_t AOREG1; /**< General purpose always on domain data storage [Reset by: PoR, Brown Out Detectors Reset],\r
+ offset: 0x84 */\r
+ uint8_t RESERVED_6[16];\r
+ __IO uint32_t RTCOSC32K; /**< RTC 1 KHZ and 1 Hz clocks source control register [Reset by: PoR, Brown Out Detectors\r
+ Reset], offset: 0x98 */\r
+ __IO uint32_t OSTIMERr; /**< OS Timer control register [Reset by: PoR, Brown Out Detectors Reset], offset: 0x9C */\r
+ uint8_t RESERVED_7[24];\r
+ __IO uint32_t PDRUNCFG0; /**< Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out\r
+ Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0xB8 */\r
+ uint8_t RESERVED_8[4];\r
+ __O uint32_t PDRUNCFGSET0; /**< Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out\r
+ Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0xC0 */\r
+ uint8_t RESERVED_9[4];\r
+ __O uint32_t PDRUNCFGCLR0; /**< Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out\r
+ Detectors Reset, Deep Power Down Reset, Software Reset], offset: 0xC8 */\r
} PMC_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name RESETCTRL - Reset Control [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset] */\r
+/*! @name RESETCTRL - Reset Control [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset,\r
+ * Software Reset] */\r
/*! @{ */\r
-#define PMC_RESETCTRL_DPDWAKEUPRESETENABLE_MASK (0x1U)\r
+#define PMC_RESETCTRL_DPDWAKEUPRESETENABLE_MASK (0x1U)\r
#define PMC_RESETCTRL_DPDWAKEUPRESETENABLE_SHIFT (0U)\r
/*! DPDWAKEUPRESETENABLE - Wake-up from DEEP POWER DOWN reset event (either from wake up I/O or RTC or OS Event Timer).\r
* 0b0..Reset event from DEEP POWER DOWN mode is disable.\r
* 0b1..Reset event from DEEP POWER DOWN mode is enable.\r
*/\r
-#define PMC_RESETCTRL_DPDWAKEUPRESETENABLE(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCTRL_DPDWAKEUPRESETENABLE_SHIFT)) & PMC_RESETCTRL_DPDWAKEUPRESETENABLE_MASK)\r
-#define PMC_RESETCTRL_BODVBATRESETENABLE_MASK (0x2U)\r
-#define PMC_RESETCTRL_BODVBATRESETENABLE_SHIFT (1U)\r
+#define PMC_RESETCTRL_DPDWAKEUPRESETENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_RESETCTRL_DPDWAKEUPRESETENABLE_SHIFT)) & \\r
+ PMC_RESETCTRL_DPDWAKEUPRESETENABLE_MASK)\r
+#define PMC_RESETCTRL_BODVBATRESETENABLE_MASK (0x2U)\r
+#define PMC_RESETCTRL_BODVBATRESETENABLE_SHIFT (1U)\r
/*! BODVBATRESETENABLE - BOD VBAT reset enable.\r
* 0b0..BOD VBAT reset is disable.\r
* 0b1..BOD VBAT reset is enable.\r
*/\r
-#define PMC_RESETCTRL_BODVBATRESETENABLE(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCTRL_BODVBATRESETENABLE_SHIFT)) & PMC_RESETCTRL_BODVBATRESETENABLE_MASK)\r
-#define PMC_RESETCTRL_BODCORERESETENABLE_MASK (0x4U)\r
-#define PMC_RESETCTRL_BODCORERESETENABLE_SHIFT (2U)\r
-/*! BODCORERESETENABLE - BOD CORE reset enable.\r
- * 0b0..BOD CORE reset is disable.\r
- * 0b1..BOD CORE reset is enable.\r
- */\r
-#define PMC_RESETCTRL_BODCORERESETENABLE(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCTRL_BODCORERESETENABLE_SHIFT)) & PMC_RESETCTRL_BODCORERESETENABLE_MASK)\r
-#define PMC_RESETCTRL_SWRRESETENABLE_MASK (0x8U)\r
-#define PMC_RESETCTRL_SWRRESETENABLE_SHIFT (3U)\r
+#define PMC_RESETCTRL_BODVBATRESETENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_RESETCTRL_BODVBATRESETENABLE_SHIFT)) & PMC_RESETCTRL_BODVBATRESETENABLE_MASK)\r
+#define PMC_RESETCTRL_SWRRESETENABLE_MASK (0x8U)\r
+#define PMC_RESETCTRL_SWRRESETENABLE_SHIFT (3U)\r
/*! SWRRESETENABLE - Software reset enable.\r
* 0b0..Software reset is disable.\r
* 0b1..Software reset is enable.\r
*/\r
-#define PMC_RESETCTRL_SWRRESETENABLE(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCTRL_SWRRESETENABLE_SHIFT)) & PMC_RESETCTRL_SWRRESETENABLE_MASK)\r
-/*! @} */\r
-\r
-/*! @name RESETCAUSE - Reset Cause register [Reset by: PoR] */\r
-/*! @{ */\r
-#define PMC_RESETCAUSE_POR_MASK (0x1U)\r
-#define PMC_RESETCAUSE_POR_SHIFT (0U)\r
-#define PMC_RESETCAUSE_POR(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_POR_SHIFT)) & PMC_RESETCAUSE_POR_MASK)\r
-#define PMC_RESETCAUSE_PADRESET_MASK (0x2U)\r
-#define PMC_RESETCAUSE_PADRESET_SHIFT (1U)\r
-#define PMC_RESETCAUSE_PADRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_PADRESET_SHIFT)) & PMC_RESETCAUSE_PADRESET_MASK)\r
-#define PMC_RESETCAUSE_BODRESET_MASK (0x4U)\r
-#define PMC_RESETCAUSE_BODRESET_SHIFT (2U)\r
-#define PMC_RESETCAUSE_BODRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_BODRESET_SHIFT)) & PMC_RESETCAUSE_BODRESET_MASK)\r
-#define PMC_RESETCAUSE_SYSTEMRESET_MASK (0x8U)\r
-#define PMC_RESETCAUSE_SYSTEMRESET_SHIFT (3U)\r
-#define PMC_RESETCAUSE_SYSTEMRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_SYSTEMRESET_SHIFT)) & PMC_RESETCAUSE_SYSTEMRESET_MASK)\r
-#define PMC_RESETCAUSE_WDTRESET_MASK (0x10U)\r
-#define PMC_RESETCAUSE_WDTRESET_SHIFT (4U)\r
-#define PMC_RESETCAUSE_WDTRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_WDTRESET_SHIFT)) & PMC_RESETCAUSE_WDTRESET_MASK)\r
-#define PMC_RESETCAUSE_SWRRESET_MASK (0x20U)\r
-#define PMC_RESETCAUSE_SWRRESET_SHIFT (5U)\r
-#define PMC_RESETCAUSE_SWRRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_SWRRESET_SHIFT)) & PMC_RESETCAUSE_SWRRESET_MASK)\r
-#define PMC_RESETCAUSE_DPDRESET_WAKEUPIO_MASK (0x40U)\r
-#define PMC_RESETCAUSE_DPDRESET_WAKEUPIO_SHIFT (6U)\r
-#define PMC_RESETCAUSE_DPDRESET_WAKEUPIO(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_DPDRESET_WAKEUPIO_SHIFT)) & PMC_RESETCAUSE_DPDRESET_WAKEUPIO_MASK)\r
-#define PMC_RESETCAUSE_DPDRESET_RTC_MASK (0x80U)\r
-#define PMC_RESETCAUSE_DPDRESET_RTC_SHIFT (7U)\r
-#define PMC_RESETCAUSE_DPDRESET_RTC(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_DPDRESET_RTC_SHIFT)) & PMC_RESETCAUSE_DPDRESET_RTC_MASK)\r
-#define PMC_RESETCAUSE_DPDRESET_OSTIMER_MASK (0x100U)\r
-#define PMC_RESETCAUSE_DPDRESET_OSTIMER_SHIFT (8U)\r
-#define PMC_RESETCAUSE_DPDRESET_OSTIMER(x) (((uint32_t)(((uint32_t)(x)) << PMC_RESETCAUSE_DPDRESET_OSTIMER_SHIFT)) & PMC_RESETCAUSE_DPDRESET_OSTIMER_MASK)\r
+#define PMC_RESETCTRL_SWRRESETENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_RESETCTRL_SWRRESETENABLE_SHIFT)) & PMC_RESETCTRL_SWRRESETENABLE_MASK)\r
/*! @} */\r
\r
/*! @name BODVBAT - VBAT Brown Out Dectector (BoD) control register [Reset by: PoR, Pin Reset, Software Reset] */\r
/*! @{ */\r
-#define PMC_BODVBAT_TRIGLVL_MASK (0x1FU)\r
-#define PMC_BODVBAT_TRIGLVL_SHIFT (0U)\r
+#define PMC_BODVBAT_TRIGLVL_MASK (0x1FU)\r
+#define PMC_BODVBAT_TRIGLVL_SHIFT (0U)\r
/*! TRIGLVL - BoD trigger level.\r
* 0b00000..1.00 V.\r
* 0b00001..1.10 V.\r
* 0b11110..3.30 V.\r
* 0b11111..3.30 V.\r
*/\r
-#define PMC_BODVBAT_TRIGLVL(x) (((uint32_t)(((uint32_t)(x)) << PMC_BODVBAT_TRIGLVL_SHIFT)) & PMC_BODVBAT_TRIGLVL_MASK)\r
-#define PMC_BODVBAT_HYST_MASK (0x60U)\r
-#define PMC_BODVBAT_HYST_SHIFT (5U)\r
+#define PMC_BODVBAT_TRIGLVL(x) (((uint32_t)(((uint32_t)(x)) << PMC_BODVBAT_TRIGLVL_SHIFT)) & PMC_BODVBAT_TRIGLVL_MASK)\r
+#define PMC_BODVBAT_HYST_MASK (0x60U)\r
+#define PMC_BODVBAT_HYST_SHIFT (5U)\r
/*! HYST - BoD Hysteresis control.\r
* 0b00..25 mV.\r
* 0b01..50 mV.\r
* 0b10..75 mV.\r
* 0b11..100 mV.\r
*/\r
-#define PMC_BODVBAT_HYST(x) (((uint32_t)(((uint32_t)(x)) << PMC_BODVBAT_HYST_SHIFT)) & PMC_BODVBAT_HYST_MASK)\r
+#define PMC_BODVBAT_HYST(x) (((uint32_t)(((uint32_t)(x)) << PMC_BODVBAT_HYST_SHIFT)) & PMC_BODVBAT_HYST_MASK)\r
/*! @} */\r
\r
-/*! @name BODCORE - Digital Core logic Brown Out Dectector control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset] */\r
+/*! @name COMP - Analog Comparator control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power\r
+ * Down Reset, Software Reset] */\r
/*! @{ */\r
-#define PMC_BODCORE_TRIGLVL_MASK (0x7U)\r
-#define PMC_BODCORE_TRIGLVL_SHIFT (0U)\r
-/*! TRIGLVL - BoD trigger level.\r
- * 0b000..0.60 V.\r
- * 0b001..0.65 V.\r
- * 0b010..0.70 V.\r
- * 0b011..0.75 V.\r
- * 0b100..0.80 V.\r
- * 0b101..0.85 V.\r
- * 0b110..0.90 V.\r
- * 0b111..0.95 V.\r
- */\r
-#define PMC_BODCORE_TRIGLVL(x) (((uint32_t)(((uint32_t)(x)) << PMC_BODCORE_TRIGLVL_SHIFT)) & PMC_BODCORE_TRIGLVL_MASK)\r
-#define PMC_BODCORE_HYST_MASK (0x30U)\r
-#define PMC_BODCORE_HYST_SHIFT (4U)\r
-/*! HYST - BoD Core Hysteresis control.\r
- * 0b00..25 mV.\r
- * 0b01..50 mV.\r
- * 0b10..75 mV.\r
- * 0b11..100 mV.\r
- */\r
-#define PMC_BODCORE_HYST(x) (((uint32_t)(((uint32_t)(x)) << PMC_BODCORE_HYST_SHIFT)) & PMC_BODCORE_HYST_MASK)\r
-/*! @} */\r
-\r
-/*! @name FRO1M - 1 MHz Free Running Oscillator control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset] */\r
-/*! @{ */\r
-#define PMC_FRO1M_FREQSEL_MASK (0x7FU)\r
-#define PMC_FRO1M_FREQSEL_SHIFT (0U)\r
-#define PMC_FRO1M_FREQSEL(x) (((uint32_t)(((uint32_t)(x)) << PMC_FRO1M_FREQSEL_SHIFT)) & PMC_FRO1M_FREQSEL_MASK)\r
-#define PMC_FRO1M_ATBCTRL_MASK (0x180U)\r
-#define PMC_FRO1M_ATBCTRL_SHIFT (7U)\r
-#define PMC_FRO1M_ATBCTRL(x) (((uint32_t)(((uint32_t)(x)) << PMC_FRO1M_ATBCTRL_SHIFT)) & PMC_FRO1M_ATBCTRL_MASK)\r
-#define PMC_FRO1M_DIVSEL_MASK (0x3E00U)\r
-#define PMC_FRO1M_DIVSEL_SHIFT (9U)\r
-/*! DIVSEL - Divider selection bits.\r
- * 0b00000..2.0.\r
- * 0b00001..4.0.\r
- * 0b00010..6.0.\r
- * 0b00011..8.0.\r
- * 0b00100..10.0.\r
- * 0b00101..12.0.\r
- * 0b00110..14.0.\r
- * 0b00111..16.0.\r
- * 0b01000..18.0.\r
- * 0b01001..20.0.\r
- * 0b01010..22.0.\r
- * 0b01011..24.0.\r
- * 0b01100..26.0.\r
- * 0b01101..28.0.\r
- * 0b01110..30.0.\r
- * 0b01111..32.0.\r
- * 0b10000..34.0.\r
- * 0b10001..36.0.\r
- * 0b10010..38.0.\r
- * 0b10011..40.0.\r
- * 0b10100..42.0.\r
- * 0b10101..44.0.\r
- * 0b10110..46.0.\r
- * 0b10111..48.0.\r
- * 0b11000..50.0.\r
- * 0b11001..52.0.\r
- * 0b11010..54.0.\r
- * 0b11011..56.0.\r
- * 0b11100..58.0.\r
- * 0b11101..60.0.\r
- * 0b11110..62.0.\r
- * 0b11111..1.0.\r
- */\r
-#define PMC_FRO1M_DIVSEL(x) (((uint32_t)(((uint32_t)(x)) << PMC_FRO1M_DIVSEL_SHIFT)) & PMC_FRO1M_DIVSEL_MASK)\r
-/*! @} */\r
-\r
-/*! @name FRO32K - 32 KHz Free Running Oscillator (FRO) control register [Reset by: PoR, Brown Out Detectors Reset] */\r
-/*! @{ */\r
-#define PMC_FRO32K_NTAT_MASK (0xEU)\r
-#define PMC_FRO32K_NTAT_SHIFT (1U)\r
-#define PMC_FRO32K_NTAT(x) (((uint32_t)(((uint32_t)(x)) << PMC_FRO32K_NTAT_SHIFT)) & PMC_FRO32K_NTAT_MASK)\r
-#define PMC_FRO32K_PTAT_MASK (0x70U)\r
-#define PMC_FRO32K_PTAT_SHIFT (4U)\r
-#define PMC_FRO32K_PTAT(x) (((uint32_t)(((uint32_t)(x)) << PMC_FRO32K_PTAT_SHIFT)) & PMC_FRO32K_PTAT_MASK)\r
-#define PMC_FRO32K_CAPCAL_MASK (0xFF80U)\r
-#define PMC_FRO32K_CAPCAL_SHIFT (7U)\r
-#define PMC_FRO32K_CAPCAL(x) (((uint32_t)(((uint32_t)(x)) << PMC_FRO32K_CAPCAL_SHIFT)) & PMC_FRO32K_CAPCAL_MASK)\r
-#define PMC_FRO32K_ATBCTRL_MASK (0x30000U)\r
-#define PMC_FRO32K_ATBCTRL_SHIFT (16U)\r
-#define PMC_FRO32K_ATBCTRL(x) (((uint32_t)(((uint32_t)(x)) << PMC_FRO32K_ATBCTRL_SHIFT)) & PMC_FRO32K_ATBCTRL_MASK)\r
-/*! @} */\r
-\r
-/*! @name XTAL32K - 32 KHz Crystal oscillator (XTAL) control register [Reset by: PoR, Brown Out Detectors Reset] */\r
-/*! @{ */\r
-#define PMC_XTAL32K_IREF_MASK (0x6U)\r
-#define PMC_XTAL32K_IREF_SHIFT (1U)\r
-#define PMC_XTAL32K_IREF(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_IREF_SHIFT)) & PMC_XTAL32K_IREF_MASK)\r
-#define PMC_XTAL32K_TEST_MASK (0x8U)\r
-#define PMC_XTAL32K_TEST_SHIFT (3U)\r
-#define PMC_XTAL32K_TEST(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_TEST_SHIFT)) & PMC_XTAL32K_TEST_MASK)\r
-#define PMC_XTAL32K_IBIAS_MASK (0x30U)\r
-#define PMC_XTAL32K_IBIAS_SHIFT (4U)\r
-#define PMC_XTAL32K_IBIAS(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_IBIAS_SHIFT)) & PMC_XTAL32K_IBIAS_MASK)\r
-#define PMC_XTAL32K_AMPL_MASK (0xC0U)\r
-#define PMC_XTAL32K_AMPL_SHIFT (6U)\r
-#define PMC_XTAL32K_AMPL(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_AMPL_SHIFT)) & PMC_XTAL32K_AMPL_MASK)\r
-#define PMC_XTAL32K_CAPBANKIN_MASK (0x7F00U)\r
-#define PMC_XTAL32K_CAPBANKIN_SHIFT (8U)\r
-#define PMC_XTAL32K_CAPBANKIN(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_CAPBANKIN_SHIFT)) & PMC_XTAL32K_CAPBANKIN_MASK)\r
-#define PMC_XTAL32K_CAPBANKOUT_MASK (0x3F8000U)\r
-#define PMC_XTAL32K_CAPBANKOUT_SHIFT (15U)\r
-#define PMC_XTAL32K_CAPBANKOUT(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_CAPBANKOUT_SHIFT)) & PMC_XTAL32K_CAPBANKOUT_MASK)\r
-#define PMC_XTAL32K_CAPTESTSTARTSRCSEL_MASK (0x400000U)\r
-#define PMC_XTAL32K_CAPTESTSTARTSRCSEL_SHIFT (22U)\r
-/*! CAPTESTSTARTSRCSEL - Source selection for xo32k_captest_start_ao_set.\r
- * 0b0..Sourced from CAPTESTSTART.\r
- * 0b1..Sourced from calibration.\r
- */\r
-#define PMC_XTAL32K_CAPTESTSTARTSRCSEL(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_CAPTESTSTARTSRCSEL_SHIFT)) & PMC_XTAL32K_CAPTESTSTARTSRCSEL_MASK)\r
-#define PMC_XTAL32K_CAPTESTSTART_MASK (0x800000U)\r
-#define PMC_XTAL32K_CAPTESTSTART_SHIFT (23U)\r
-#define PMC_XTAL32K_CAPTESTSTART(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_CAPTESTSTART_SHIFT)) & PMC_XTAL32K_CAPTESTSTART_MASK)\r
-#define PMC_XTAL32K_CAPTESTENABLE_MASK (0x1000000U)\r
-#define PMC_XTAL32K_CAPTESTENABLE_SHIFT (24U)\r
-#define PMC_XTAL32K_CAPTESTENABLE(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_CAPTESTENABLE_SHIFT)) & PMC_XTAL32K_CAPTESTENABLE_MASK)\r
-#define PMC_XTAL32K_CAPTESTOSCINSEL_MASK (0x2000000U)\r
-#define PMC_XTAL32K_CAPTESTOSCINSEL_SHIFT (25U)\r
-/*! CAPTESTOSCINSEL - Select the input for test.\r
- * 0b0..Oscillator output pin (osc_out).\r
- * 0b1..Oscillator input pin (osc_in).\r
- */\r
-#define PMC_XTAL32K_CAPTESTOSCINSEL(x) (((uint32_t)(((uint32_t)(x)) << PMC_XTAL32K_CAPTESTOSCINSEL_SHIFT)) & PMC_XTAL32K_CAPTESTOSCINSEL_MASK)\r
-/*! @} */\r
-\r
-/*! @name COMP - Analog Comparator control register [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset] */\r
-/*! @{ */\r
-#define PMC_COMP_HYST_MASK (0x2U)\r
-#define PMC_COMP_HYST_SHIFT (1U)\r
+#define PMC_COMP_HYST_MASK (0x2U)\r
+#define PMC_COMP_HYST_SHIFT (1U)\r
/*! HYST - Hysteris when hyst = '1'.\r
* 0b0..Hysteresis is disable.\r
* 0b1..Hysteresis is enable.\r
*/\r
-#define PMC_COMP_HYST(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_HYST_SHIFT)) & PMC_COMP_HYST_MASK)\r
-#define PMC_COMP_VREFINPUT_MASK (0x4U)\r
-#define PMC_COMP_VREFINPUT_SHIFT (2U)\r
+#define PMC_COMP_HYST(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_HYST_SHIFT)) & PMC_COMP_HYST_MASK)\r
+#define PMC_COMP_VREFINPUT_MASK (0x4U)\r
+#define PMC_COMP_VREFINPUT_SHIFT (2U)\r
/*! VREFINPUT - Dedicated control bit to select between internal VREF and VDDA (for the resistive ladder).\r
* 0b0..Select internal VREF.\r
* 0b1..Select VDDA.\r
*/\r
-#define PMC_COMP_VREFINPUT(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_VREFINPUT_SHIFT)) & PMC_COMP_VREFINPUT_MASK)\r
-#define PMC_COMP_LOWPOWER_MASK (0x8U)\r
-#define PMC_COMP_LOWPOWER_SHIFT (3U)\r
+#define PMC_COMP_VREFINPUT(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_VREFINPUT_SHIFT)) & PMC_COMP_VREFINPUT_MASK)\r
+#define PMC_COMP_LOWPOWER_MASK (0x8U)\r
+#define PMC_COMP_LOWPOWER_SHIFT (3U)\r
/*! LOWPOWER - Low power mode.\r
* 0b0..High speed mode.\r
* 0b1..Low power mode (Low speed).\r
*/\r
-#define PMC_COMP_LOWPOWER(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_LOWPOWER_SHIFT)) & PMC_COMP_LOWPOWER_MASK)\r
-#define PMC_COMP_PMUX_MASK (0x70U)\r
-#define PMC_COMP_PMUX_SHIFT (4U)\r
+#define PMC_COMP_LOWPOWER(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_LOWPOWER_SHIFT)) & PMC_COMP_LOWPOWER_MASK)\r
+#define PMC_COMP_PMUX_MASK (0x70U)\r
+#define PMC_COMP_PMUX_SHIFT (4U)\r
/*! PMUX - Control word for P multiplexer:.\r
* 0b000..VREF (See fiedl VREFINPUT).\r
* 0b001..Pin P0_0.\r
* 0b100..Pin P1_14.\r
* 0b101..Pin P2_23.\r
*/\r
-#define PMC_COMP_PMUX(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_PMUX_SHIFT)) & PMC_COMP_PMUX_MASK)\r
-#define PMC_COMP_NMUX_MASK (0x380U)\r
-#define PMC_COMP_NMUX_SHIFT (7U)\r
+#define PMC_COMP_PMUX(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_PMUX_SHIFT)) & PMC_COMP_PMUX_MASK)\r
+#define PMC_COMP_NMUX_MASK (0x380U)\r
+#define PMC_COMP_NMUX_SHIFT (7U)\r
/*! NMUX - Control word for N multiplexer:.\r
* 0b000..VREF (See field VREFINPUT).\r
* 0b001..Pin P0_0.\r
* 0b100..Pin P1_14.\r
* 0b101..Pin P2_23.\r
*/\r
-#define PMC_COMP_NMUX(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_NMUX_SHIFT)) & PMC_COMP_NMUX_MASK)\r
-#define PMC_COMP_VREF_MASK (0x7C00U)\r
-#define PMC_COMP_VREF_SHIFT (10U)\r
-#define PMC_COMP_VREF(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_VREF_SHIFT)) & PMC_COMP_VREF_MASK)\r
-#define PMC_COMP_FILTERCGF_SAMPLEMODE_MASK (0x30000U)\r
-#define PMC_COMP_FILTERCGF_SAMPLEMODE_SHIFT (16U)\r
-#define PMC_COMP_FILTERCGF_SAMPLEMODE(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_FILTERCGF_SAMPLEMODE_SHIFT)) & PMC_COMP_FILTERCGF_SAMPLEMODE_MASK)\r
-#define PMC_COMP_FILTERCGF_CLKDIV_MASK (0x1C0000U)\r
-#define PMC_COMP_FILTERCGF_CLKDIV_SHIFT (18U)\r
-#define PMC_COMP_FILTERCGF_CLKDIV(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_FILTERCGF_CLKDIV_SHIFT)) & PMC_COMP_FILTERCGF_CLKDIV_MASK)\r
-#define PMC_COMP_PMUXCAPT_MASK (0xE00000U)\r
-#define PMC_COMP_PMUXCAPT_SHIFT (21U)\r
-#define PMC_COMP_PMUXCAPT(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_PMUXCAPT_SHIFT)) & PMC_COMP_PMUXCAPT_MASK)\r
+#define PMC_COMP_NMUX(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_NMUX_SHIFT)) & PMC_COMP_NMUX_MASK)\r
+#define PMC_COMP_VREF_MASK (0x7C00U)\r
+#define PMC_COMP_VREF_SHIFT (10U)\r
+/*! VREF - Control reference voltage step, per steps of (VREFINPUT/31).\r
+ */\r
+#define PMC_COMP_VREF(x) (((uint32_t)(((uint32_t)(x)) << PMC_COMP_VREF_SHIFT)) & PMC_COMP_VREF_MASK)\r
+#define PMC_COMP_FILTERCGF_SAMPLEMODE_MASK (0x30000U)\r
+#define PMC_COMP_FILTERCGF_SAMPLEMODE_SHIFT (16U)\r
+/*! FILTERCGF_SAMPLEMODE - Control the filtering of the Analog Comparator output.\r
+ * 0b00..Bypass mode.\r
+ * 0b01..Filter 1 clock period.\r
+ * 0b10..Filter 2 clock period.\r
+ * 0b11..Filter 3 clock period.\r
+ */\r
+#define PMC_COMP_FILTERCGF_SAMPLEMODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_COMP_FILTERCGF_SAMPLEMODE_SHIFT)) & PMC_COMP_FILTERCGF_SAMPLEMODE_MASK)\r
+#define PMC_COMP_FILTERCGF_CLKDIV_MASK (0x1C0000U)\r
+#define PMC_COMP_FILTERCGF_CLKDIV_SHIFT (18U)\r
+/*! FILTERCGF_CLKDIV - Filter Clock divider.\r
+ * 0b000..Filter clock period duration equals 1 Analog Comparator clock period.\r
+ * 0b001..Filter clock period duration equals 2 Analog Comparator clock period.\r
+ * 0b010..Filter clock period duration equals 4 Analog Comparator clock period.\r
+ * 0b011..Filter clock period duration equals 8 Analog Comparator clock period.\r
+ * 0b100..Filter clock period duration equals 16 Analog Comparator clock period.\r
+ * 0b101..Filter clock period duration equals 32 Analog Comparator clock period.\r
+ * 0b110..Filter clock period duration equals 64 Analog Comparator clock period.\r
+ * 0b111..Filter clock period duration equals 128 Analog Comparator clock period.\r
+ */\r
+#define PMC_COMP_FILTERCGF_CLKDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_COMP_FILTERCGF_CLKDIV_SHIFT)) & PMC_COMP_FILTERCGF_CLKDIV_MASK)\r
/*! @} */\r
\r
/*! @name WAKEIOCAUSE - Allows to identify the Wake-up I/O source from Deep Power Down mode */\r
/*! @{ */\r
-#define PMC_WAKEIOCAUSE_WAKEUP0_MASK (0x1U)\r
-#define PMC_WAKEIOCAUSE_WAKEUP0_SHIFT (0U)\r
+#define PMC_WAKEIOCAUSE_WAKEUP0_MASK (0x1U)\r
+#define PMC_WAKEIOCAUSE_WAKEUP0_SHIFT (0U)\r
/*! WAKEUP0 - Allows to identify Wake up I/O 0 as the wake-up source from Deep Power Down mode.\r
* 0b0..Last wake up from Deep Power down mode was NOT triggred by wake up I/O 0.\r
* 0b1..Last wake up from Deep Power down mode was triggred by wake up I/O 0.\r
*/\r
-#define PMC_WAKEIOCAUSE_WAKEUP0(x) (((uint32_t)(((uint32_t)(x)) << PMC_WAKEIOCAUSE_WAKEUP0_SHIFT)) & PMC_WAKEIOCAUSE_WAKEUP0_MASK)\r
-#define PMC_WAKEIOCAUSE_WAKEUP1_MASK (0x2U)\r
-#define PMC_WAKEIOCAUSE_WAKEUP1_SHIFT (1U)\r
+#define PMC_WAKEIOCAUSE_WAKEUP0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_WAKEIOCAUSE_WAKEUP0_SHIFT)) & PMC_WAKEIOCAUSE_WAKEUP0_MASK)\r
+#define PMC_WAKEIOCAUSE_WAKEUP1_MASK (0x2U)\r
+#define PMC_WAKEIOCAUSE_WAKEUP1_SHIFT (1U)\r
/*! WAKEUP1 - Allows to identify Wake up I/O 1 as the wake-up source from Deep Power Down mode.\r
* 0b0..Last wake up from Deep Power down mode was NOT triggred by wake up I/O 1.\r
* 0b1..Last wake up from Deep Power down mode was triggred by wake up I/O 1.\r
*/\r
-#define PMC_WAKEIOCAUSE_WAKEUP1(x) (((uint32_t)(((uint32_t)(x)) << PMC_WAKEIOCAUSE_WAKEUP1_SHIFT)) & PMC_WAKEIOCAUSE_WAKEUP1_MASK)\r
-#define PMC_WAKEIOCAUSE_WAKEUP2_MASK (0x4U)\r
-#define PMC_WAKEIOCAUSE_WAKEUP2_SHIFT (2U)\r
+#define PMC_WAKEIOCAUSE_WAKEUP1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_WAKEIOCAUSE_WAKEUP1_SHIFT)) & PMC_WAKEIOCAUSE_WAKEUP1_MASK)\r
+#define PMC_WAKEIOCAUSE_WAKEUP2_MASK (0x4U)\r
+#define PMC_WAKEIOCAUSE_WAKEUP2_SHIFT (2U)\r
/*! WAKEUP2 - Allows to identify Wake up I/O 2 as the wake-up source from Deep Power Down mode.\r
* 0b0..Last wake up from Deep Power down mode was NOT triggred by wake up I/O 2.\r
* 0b1..Last wake up from Deep Power down mode was triggred by wake up I/O 2.\r
*/\r
-#define PMC_WAKEIOCAUSE_WAKEUP2(x) (((uint32_t)(((uint32_t)(x)) << PMC_WAKEIOCAUSE_WAKEUP2_SHIFT)) & PMC_WAKEIOCAUSE_WAKEUP2_MASK)\r
-#define PMC_WAKEIOCAUSE_WAKEUP3_MASK (0x8U)\r
-#define PMC_WAKEIOCAUSE_WAKEUP3_SHIFT (3U)\r
+#define PMC_WAKEIOCAUSE_WAKEUP2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_WAKEIOCAUSE_WAKEUP2_SHIFT)) & PMC_WAKEIOCAUSE_WAKEUP2_MASK)\r
+#define PMC_WAKEIOCAUSE_WAKEUP3_MASK (0x8U)\r
+#define PMC_WAKEIOCAUSE_WAKEUP3_SHIFT (3U)\r
/*! WAKEUP3 - Allows to identify Wake up I/O 3 as the wake-up source from Deep Power Down mode.\r
* 0b0..Last wake up from Deep Power down mode was NOT triggred by wake up I/O 3.\r
* 0b1..Last wake up from Deep Power down mode was triggred by wake up I/O 3.\r
*/\r
-#define PMC_WAKEIOCAUSE_WAKEUP3(x) (((uint32_t)(((uint32_t)(x)) << PMC_WAKEIOCAUSE_WAKEUP3_SHIFT)) & PMC_WAKEIOCAUSE_WAKEUP3_MASK)\r
+#define PMC_WAKEIOCAUSE_WAKEUP3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_WAKEIOCAUSE_WAKEUP3_SHIFT)) & PMC_WAKEIOCAUSE_WAKEUP3_MASK)\r
/*! @} */\r
\r
/*! @name STATUSCLK - FRO and XTAL status register [Reset by: PoR, Brown Out Detectors Reset] */\r
/*! @{ */\r
-#define PMC_STATUSCLK_XTAL32KOK_MASK (0x1U)\r
-#define PMC_STATUSCLK_XTAL32KOK_SHIFT (0U)\r
-#define PMC_STATUSCLK_XTAL32KOK(x) (((uint32_t)(((uint32_t)(x)) << PMC_STATUSCLK_XTAL32KOK_SHIFT)) & PMC_STATUSCLK_XTAL32KOK_MASK)\r
-#define PMC_STATUSCLK_FRO1MCLKVALID_MASK (0x2U)\r
-#define PMC_STATUSCLK_FRO1MCLKVALID_SHIFT (1U)\r
-#define PMC_STATUSCLK_FRO1MCLKVALID(x) (((uint32_t)(((uint32_t)(x)) << PMC_STATUSCLK_FRO1MCLKVALID_SHIFT)) & PMC_STATUSCLK_FRO1MCLKVALID_MASK)\r
-#define PMC_STATUSCLK_XTAL32KOSCFAILURE_MASK (0x4U)\r
-#define PMC_STATUSCLK_XTAL32KOSCFAILURE_SHIFT (2U)\r
+#define PMC_STATUSCLK_XTAL32KOK_MASK (0x1U)\r
+#define PMC_STATUSCLK_XTAL32KOK_SHIFT (0U)\r
+/*! XTAL32KOK - XTAL oscillator 32 K OK signal.\r
+ */\r
+#define PMC_STATUSCLK_XTAL32KOK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_STATUSCLK_XTAL32KOK_SHIFT)) & PMC_STATUSCLK_XTAL32KOK_MASK)\r
+#define PMC_STATUSCLK_XTAL32KOSCFAILURE_MASK (0x4U)\r
+#define PMC_STATUSCLK_XTAL32KOSCFAILURE_SHIFT (2U)\r
/*! XTAL32KOSCFAILURE - XTAL32 KHZ oscillator oscillation failure detection indicator.\r
* 0b0..No oscillation failure has been detetced since the last time this bit has been cleared..\r
* 0b1..At least one oscillation failure has been detetced since the last time this bit has been cleared..\r
*/\r
-#define PMC_STATUSCLK_XTAL32KOSCFAILURE(x) (((uint32_t)(((uint32_t)(x)) << PMC_STATUSCLK_XTAL32KOSCFAILURE_SHIFT)) & PMC_STATUSCLK_XTAL32KOSCFAILURE_MASK)\r
+#define PMC_STATUSCLK_XTAL32KOSCFAILURE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_STATUSCLK_XTAL32KOSCFAILURE_SHIFT)) & PMC_STATUSCLK_XTAL32KOSCFAILURE_MASK)\r
/*! @} */\r
\r
/*! @name AOREG1 - General purpose always on domain data storage [Reset by: PoR, Brown Out Detectors Reset] */\r
/*! @{ */\r
-#define PMC_AOREG1_DATA31_0_MASK (0xFFFFFFFFU)\r
-#define PMC_AOREG1_DATA31_0_SHIFT (0U)\r
-#define PMC_AOREG1_DATA31_0(x) (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_DATA31_0_SHIFT)) & PMC_AOREG1_DATA31_0_MASK)\r
+#define PMC_AOREG1_POR_MASK (0x10U)\r
+#define PMC_AOREG1_POR_SHIFT (4U)\r
+/*! POR - The last chip reset was caused by a Power On Reset.\r
+ */\r
+#define PMC_AOREG1_POR(x) (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_POR_SHIFT)) & PMC_AOREG1_POR_MASK)\r
+#define PMC_AOREG1_PADRESET_MASK (0x20U)\r
+#define PMC_AOREG1_PADRESET_SHIFT (5U)\r
+/*! PADRESET - The last chip reset was caused by a Pin Reset.\r
+ */\r
+#define PMC_AOREG1_PADRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_PADRESET_SHIFT)) & PMC_AOREG1_PADRESET_MASK)\r
+#define PMC_AOREG1_BODRESET_MASK (0x40U)\r
+#define PMC_AOREG1_BODRESET_SHIFT (6U)\r
+/*! BODRESET - The last chip reset was caused by a Brown Out Detector (BoD), either VBAT BoD or Core Logic BoD.\r
+ */\r
+#define PMC_AOREG1_BODRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_BODRESET_SHIFT)) & PMC_AOREG1_BODRESET_MASK)\r
+#define PMC_AOREG1_SYSTEMRESET_MASK (0x80U)\r
+#define PMC_AOREG1_SYSTEMRESET_SHIFT (7U)\r
+/*! SYSTEMRESET - The last chip reset was caused by a System Reset requested by the ARM CPU.\r
+ */\r
+#define PMC_AOREG1_SYSTEMRESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_SYSTEMRESET_SHIFT)) & PMC_AOREG1_SYSTEMRESET_MASK)\r
+#define PMC_AOREG1_WDTRESET_MASK (0x100U)\r
+#define PMC_AOREG1_WDTRESET_SHIFT (8U)\r
+/*! WDTRESET - The last chip reset was caused by the Watchdog Timer.\r
+ */\r
+#define PMC_AOREG1_WDTRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_WDTRESET_SHIFT)) & PMC_AOREG1_WDTRESET_MASK)\r
+#define PMC_AOREG1_SWRRESET_MASK (0x200U)\r
+#define PMC_AOREG1_SWRRESET_SHIFT (9U)\r
+/*! SWRRESET - The last chip reset was caused by a Software event.\r
+ */\r
+#define PMC_AOREG1_SWRRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_SWRRESET_SHIFT)) & PMC_AOREG1_SWRRESET_MASK)\r
+#define PMC_AOREG1_DPDRESET_WAKEUPIO_MASK (0x400U)\r
+#define PMC_AOREG1_DPDRESET_WAKEUPIO_SHIFT (10U)\r
+/*! DPDRESET_WAKEUPIO - The last chip reset was caused by a Wake-up I/O reset event during a Deep Power-Down mode.\r
+ */\r
+#define PMC_AOREG1_DPDRESET_WAKEUPIO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_DPDRESET_WAKEUPIO_SHIFT)) & PMC_AOREG1_DPDRESET_WAKEUPIO_MASK)\r
+#define PMC_AOREG1_DPDRESET_RTC_MASK (0x800U)\r
+#define PMC_AOREG1_DPDRESET_RTC_SHIFT (11U)\r
+/*! DPDRESET_RTC - The last chip reset was caused by an RTC (either RTC Alarm or RTC wake up) reset event during a Deep\r
+ * Power-Down mode.\r
+ */\r
+#define PMC_AOREG1_DPDRESET_RTC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_DPDRESET_RTC_SHIFT)) & PMC_AOREG1_DPDRESET_RTC_MASK)\r
+#define PMC_AOREG1_DPDRESET_OSTIMER_MASK (0x1000U)\r
+#define PMC_AOREG1_DPDRESET_OSTIMER_SHIFT (12U)\r
+/*! DPDRESET_OSTIMER - The last chip reset was caused by an OS Event Timer reset event during a Deep Power-Down mode.\r
+ */\r
+#define PMC_AOREG1_DPDRESET_OSTIMER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_DPDRESET_OSTIMER_SHIFT)) & PMC_AOREG1_DPDRESET_OSTIMER_MASK)\r
+#define PMC_AOREG1_BOOTERRORCOUNTER_MASK (0xF0000U)\r
+#define PMC_AOREG1_BOOTERRORCOUNTER_SHIFT (16U)\r
+/*! BOOTERRORCOUNTER - ROM Boot Fatal Error Counter.\r
+ */\r
+#define PMC_AOREG1_BOOTERRORCOUNTER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_AOREG1_BOOTERRORCOUNTER_SHIFT)) & PMC_AOREG1_BOOTERRORCOUNTER_MASK)\r
/*! @} */\r
\r
/*! @name RTCOSC32K - RTC 1 KHZ and 1 Hz clocks source control register [Reset by: PoR, Brown Out Detectors Reset] */\r
/*! @{ */\r
-#define PMC_RTCOSC32K_SEL_MASK (0x1U)\r
-#define PMC_RTCOSC32K_SEL_SHIFT (0U)\r
+#define PMC_RTCOSC32K_SEL_MASK (0x1U)\r
+#define PMC_RTCOSC32K_SEL_SHIFT (0U)\r
/*! SEL - Select the 32K oscillator to be used in Deep Power Down Mode for the RTC (either XTAL32KHz or FRO32KHz) .\r
* 0b0..FRO 32 KHz.\r
* 0b1..XTAL 32KHz.\r
*/\r
-#define PMC_RTCOSC32K_SEL(x) (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_SEL_SHIFT)) & PMC_RTCOSC32K_SEL_MASK)\r
-#define PMC_RTCOSC32K_CLK1KHZDIV_MASK (0xEU)\r
-#define PMC_RTCOSC32K_CLK1KHZDIV_SHIFT (1U)\r
-#define PMC_RTCOSC32K_CLK1KHZDIV(x) (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1KHZDIV_SHIFT)) & PMC_RTCOSC32K_CLK1KHZDIV_MASK)\r
-#define PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ_MASK (0x8000U)\r
-#define PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ_SHIFT (15U)\r
-#define PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ(x) (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ_SHIFT)) & PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ_MASK)\r
-#define PMC_RTCOSC32K_CLK1HZDIV_MASK (0x7FF0000U)\r
-#define PMC_RTCOSC32K_CLK1HZDIV_SHIFT (16U)\r
-#define PMC_RTCOSC32K_CLK1HZDIV(x) (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1HZDIV_SHIFT)) & PMC_RTCOSC32K_CLK1HZDIV_MASK)\r
-#define PMC_RTCOSC32K_CLK1HZDIVHALT_MASK (0x40000000U)\r
-#define PMC_RTCOSC32K_CLK1HZDIVHALT_SHIFT (30U)\r
-#define PMC_RTCOSC32K_CLK1HZDIVHALT(x) (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1HZDIVHALT_SHIFT)) & PMC_RTCOSC32K_CLK1HZDIVHALT_MASK)\r
-#define PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ_MASK (0x80000000U)\r
-#define PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ_SHIFT (31U)\r
-#define PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ(x) (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ_SHIFT)) & PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ_MASK)\r
+#define PMC_RTCOSC32K_SEL(x) (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_SEL_SHIFT)) & PMC_RTCOSC32K_SEL_MASK)\r
+#define PMC_RTCOSC32K_CLK1KHZDIV_MASK (0xEU)\r
+#define PMC_RTCOSC32K_CLK1KHZDIV_SHIFT (1U)\r
+/*! CLK1KHZDIV - Actual division ratio is : 28 + CLK1KHZDIV.\r
+ */\r
+#define PMC_RTCOSC32K_CLK1KHZDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1KHZDIV_SHIFT)) & PMC_RTCOSC32K_CLK1KHZDIV_MASK)\r
+#define PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ_MASK (0x8000U)\r
+#define PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ_SHIFT (15U)\r
+/*! CLK1KHZDIVUPDATEREQ - RTC 1KHz clock Divider status flag.\r
+ */\r
+#define PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ_SHIFT)) & PMC_RTCOSC32K_CLK1KHZDIVUPDATEREQ_MASK)\r
+#define PMC_RTCOSC32K_CLK1HZDIV_MASK (0x7FF0000U)\r
+#define PMC_RTCOSC32K_CLK1HZDIV_SHIFT (16U)\r
+/*! CLK1HZDIV - Actual division ratio is : 31744 + CLK1HZDIV.\r
+ */\r
+#define PMC_RTCOSC32K_CLK1HZDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1HZDIV_SHIFT)) & PMC_RTCOSC32K_CLK1HZDIV_MASK)\r
+#define PMC_RTCOSC32K_CLK1HZDIVHALT_MASK (0x40000000U)\r
+#define PMC_RTCOSC32K_CLK1HZDIVHALT_SHIFT (30U)\r
+/*! CLK1HZDIVHALT - Halts the divider counter.\r
+ */\r
+#define PMC_RTCOSC32K_CLK1HZDIVHALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1HZDIVHALT_SHIFT)) & PMC_RTCOSC32K_CLK1HZDIVHALT_MASK)\r
+#define PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ_MASK (0x80000000U)\r
+#define PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ_SHIFT (31U)\r
+/*! CLK1HZDIVUPDATEREQ - RTC 1Hz Divider status flag.\r
+ */\r
+#define PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ_SHIFT)) & PMC_RTCOSC32K_CLK1HZDIVUPDATEREQ_MASK)\r
/*! @} */\r
\r
/*! @name OSTIMER - OS Timer control register [Reset by: PoR, Brown Out Detectors Reset] */\r
/*! @{ */\r
-#define PMC_OSTIMER_SOFTRESET_MASK (0x1U)\r
-#define PMC_OSTIMER_SOFTRESET_SHIFT (0U)\r
-#define PMC_OSTIMER_SOFTRESET(x) (((uint32_t)(((uint32_t)(x)) << PMC_OSTIMER_SOFTRESET_SHIFT)) & PMC_OSTIMER_SOFTRESET_MASK)\r
-#define PMC_OSTIMER_CLOCKENABLE_MASK (0x2U)\r
-#define PMC_OSTIMER_CLOCKENABLE_SHIFT (1U)\r
-#define PMC_OSTIMER_CLOCKENABLE(x) (((uint32_t)(((uint32_t)(x)) << PMC_OSTIMER_CLOCKENABLE_SHIFT)) & PMC_OSTIMER_CLOCKENABLE_MASK)\r
-#define PMC_OSTIMER_DPDWAKEUPENABLE_MASK (0x4U)\r
-#define PMC_OSTIMER_DPDWAKEUPENABLE_SHIFT (2U)\r
-#define PMC_OSTIMER_DPDWAKEUPENABLE(x) (((uint32_t)(((uint32_t)(x)) << PMC_OSTIMER_DPDWAKEUPENABLE_SHIFT)) & PMC_OSTIMER_DPDWAKEUPENABLE_MASK)\r
-#define PMC_OSTIMER_OSC32KPD_MASK (0x8U)\r
-#define PMC_OSTIMER_OSC32KPD_SHIFT (3U)\r
-#define PMC_OSTIMER_OSC32KPD(x) (((uint32_t)(((uint32_t)(x)) << PMC_OSTIMER_OSC32KPD_SHIFT)) & PMC_OSTIMER_OSC32KPD_MASK)\r
-/*! @} */\r
-\r
-/*! @name PDSLEEPCFG0 - Controls the power to various modules during Low Power modes - DEEP SLEEP, POWER DOWN and DEEP POWER DOWN [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Software Reset] */\r
-/*! @{ */\r
-#define PMC_PDSLEEPCFG0_PDEN_DCDC_MASK (0x1U)\r
-#define PMC_PDSLEEPCFG0_PDEN_DCDC_SHIFT (0U)\r
-/*! PDEN_DCDC - Controls DCDC power during DEEP SLEEP (DCDC is always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..DCDC is powered on during low power mode..\r
- * 0b1..DCDC is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_DCDC(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_DCDC_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_DCDC_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_BIAS_MASK (0x2U)\r
-#define PMC_PDSLEEPCFG0_PDEN_BIAS_SHIFT (1U)\r
-/*! PDEN_BIAS - Controls Analog Bias power during DEEP SLEEP and POWER DOWN (always shut down during DEEP POWER DOWN).\r
- * 0b0..Analog Bias is powered on during low power mode..\r
- * 0b1..Analog Bias is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_BIAS(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_BIAS_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_BIAS_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_BODCORE_MASK (0x4U)\r
-#define PMC_PDSLEEPCFG0_PDEN_BODCORE_SHIFT (2U)\r
-/*! PDEN_BODCORE - Controls Core Logic BoD power during DEEP SLEEP and POWER DOWN (always shut down during DEEP POWER DOWN).\r
- * 0b0..BOD CORE is powered on during low power mode..\r
- * 0b1..BOD CORE is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_BODCORE(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_BODCORE_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_BODCORE_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_BODVBAT_MASK (0x8U)\r
-#define PMC_PDSLEEPCFG0_PDEN_BODVBAT_SHIFT (3U)\r
-/*! PDEN_BODVBAT - Controls VBAT BoD power during DEEP SLEEP and POWER DOWN (always shut down during DEEP POWER DOWN).\r
- * 0b0..BOD VBAT is powered on during low power mode..\r
- * 0b1..BOD VBAT is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_BODVBAT(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_BODVBAT_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_BODVBAT_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO1M_MASK (0x10U)\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO1M_SHIFT (4U)\r
-/*! PDEN_FRO1M - Controls 1 MHz Free Running Oscillator power during DEEP SLEEP, POWER DOWN and DEEP POWER DOWN.\r
- * 0b0..FRO 1MHz is powered on during low power mode..\r
- * 0b1..FRO 1MHz is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO1M(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_FRO1M_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_FRO1M_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO192M_MASK (0x20U)\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO192M_SHIFT (5U)\r
-/*! PDEN_FRO192M - Controls 192MHz Free Running Oscillator power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..FRO 192 MHz is powered on during low power mode..\r
- * 0b1..FRO 192 MHz is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO192M(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_FRO192M_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_FRO192M_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO32K_MASK (0x40U)\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO32K_SHIFT (6U)\r
-/*! PDEN_FRO32K - Controls power during DEEP SLEEP, POWER DOWN and DEEP POWER DOWN.\r
- * 0b0..FRO 32 KHz is powered on during low power mode..\r
- * 0b1..FRO 32 KHz is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_FRO32K(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_FRO32K_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_FRO32K_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_XTAL32K_MASK (0x80U)\r
-#define PMC_PDSLEEPCFG0_PDEN_XTAL32K_SHIFT (7U)\r
-/*! PDEN_XTAL32K - Controls crystal 32 KHz power during DEEP SLEEP, POWER DOWN and DEEP POWER DOWN.\r
- * 0b0..crystal 32 KHz is powered on during low power mode..\r
- * 0b1..crystal 32 KHz is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_XTAL32K(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_XTAL32K_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_XTAL32K_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_XTAL32M_MASK (0x100U)\r
-#define PMC_PDSLEEPCFG0_PDEN_XTAL32M_SHIFT (8U)\r
-/*! PDEN_XTAL32M - Controls crystal 32 MHz power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..crystal 32 MHz is powered on during low power mode..\r
- * 0b1..crystal 32 MHz is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_XTAL32M(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_XTAL32M_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_XTAL32M_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL0_MASK (0x200U)\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL0_SHIFT (9U)\r
-/*! PDEN_PLL0 - Controls System PLL (also refered as PLL0) power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..System PLL (also refered as PLL0) is powered on during low power mode..\r
- * 0b1..System PLL (also refered as PLL0) is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL0(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_PLL0_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_PLL0_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL1_MASK (0x400U)\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL1_SHIFT (10U)\r
-/*! PDEN_PLL1 - Controls USB PLL (also refered as PLL1) power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..USB PLL (also refered as PLL1) is powered on during low power mode..\r
- * 0b1..USB PLL (also refered as PLL1) is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL1(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_PLL1_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_PLL1_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_USBFSPHY_MASK (0x800U)\r
-#define PMC_PDSLEEPCFG0_PDEN_USBFSPHY_SHIFT (11U)\r
-/*! PDEN_USBFSPHY - Controls USB Full Speed phy power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..USB Full Speed phy is powered on during low power mode..\r
- * 0b1..USB Full Speed phy is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_USBFSPHY(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_USBFSPHY_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_USBFSPHY_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_USBHSPHY_MASK (0x1000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_USBHSPHY_SHIFT (12U)\r
-/*! PDEN_USBHSPHY - Controls USB High Speed Phy power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..USB High Speed Phy is powered on during low power mode..\r
- * 0b1..USB High Speed Phy is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_USBHSPHY(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_USBHSPHY_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_USBHSPHY_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_COMP_MASK (0x2000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_COMP_SHIFT (13U)\r
-/*! PDEN_COMP - Controls Analog Comparator power during DEEP SLEEP and POWER DOWN (always shut down during DEEP POWER DOWN).\r
- * 0b0..Analog Comparator is powered on during low power mode..\r
- * 0b1..Analog Comparator is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_COMP(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_COMP_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_COMP_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_TEMPSENS_MASK (0x4000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_TEMPSENS_SHIFT (14U)\r
-/*! PDEN_TEMPSENS - Controls Temperature Sensor power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..Temperature Sensor is powered on during low power mode..\r
- * 0b1..Temperature Sensor is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_TEMPSENS(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_TEMPSENS_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_TEMPSENS_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_GPADC_MASK (0x8000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_GPADC_SHIFT (15U)\r
-/*! PDEN_GPADC - Controls General Purpose ADC (GPADC) power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..General Purpose ADC (GPADC) is powered on during low power mode..\r
- * 0b1..General Purpose ADC (GPADC) is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_GPADC(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_GPADC_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_GPADC_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOMEM_MASK (0x10000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOMEM_SHIFT (16U)\r
-/*! PDEN_LDOMEM - Controls Memories LDO power during DEEP SLEEP, POWER DOWN and DEEP POWER DOWN.\r
- * 0b0..Memories LDO is powered on during low power mode..\r
- * 0b1..Memories LDO is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOMEM(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_LDOMEM_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_LDOMEM_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDODEEPSLEEP_MASK (0x20000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDODEEPSLEEP_SHIFT (17U)\r
-/*! PDEN_LDODEEPSLEEP - Controls Deep Sleep LDO power during DEEP SLEEP and POWER DOWN (always shut down during DEEP POWER DOWN).\r
- * 0b0..Deep Sleep LDO is powered on during low power mode..\r
- * 0b1..Deep Sleep LDO is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_LDODEEPSLEEP(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_LDODEEPSLEEP_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_LDODEEPSLEEP_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOUSBHS_MASK (0x40000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOUSBHS_SHIFT (18U)\r
-/*! PDEN_LDOUSBHS - Controls USB high speed LDO power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..USB high speed LDO is powered on during low power mode..\r
- * 0b1..USB high speed LDO is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOUSBHS(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_LDOUSBHS_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_LDOUSBHS_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_AUXBIAS_MASK (0x80000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_AUXBIAS_SHIFT (19U)\r
-/*! PDEN_AUXBIAS - during DEEP SLEEP and POWER DOWN (always shut down during DEEP POWER DOWN).\r
- * 0b0..is powered on during low power mode..\r
- * 0b1..is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_AUXBIAS(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_AUXBIAS_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_AUXBIAS_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOXO32M_MASK (0x100000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOXO32M_SHIFT (20U)\r
-/*! PDEN_LDOXO32M - Controls crystal 32 MHz LDO power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..crystal 32 MHz LDO is powered on during low power mode..\r
- * 0b1..crystal 32 MHz LDO is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOXO32M(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_LDOXO32M_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_LDOXO32M_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOFLASHNV_MASK (0x200000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOFLASHNV_SHIFT (21U)\r
-/*! PDEN_LDOFLASHNV - Controls Flash NV (high voltage) LDO power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..Flash NV (high voltage) is powered on during low power mode..\r
- * 0b1..Flash NV (high voltage) is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_LDOFLASHNV(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_LDOFLASHNV_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_LDOFLASHNV_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_RNG_MASK (0x400000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_RNG_SHIFT (22U)\r
-/*! PDEN_RNG - Controls True Random Number Genetaor (TRNG) clock sources power during DEEP SLEEP (always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..True Random Number Genetaor (TRNG) clock sources are powered on during low power mode..\r
- * 0b1..True Random Number Genetaor (TRNG) clock sources are powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_RNG(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_RNG_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_RNG_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL0_SSCG_MASK (0x800000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL0_SSCG_SHIFT (23U)\r
-/*! PDEN_PLL0_SSCG - Controls PLL0 Spread Sprectrum module power during DEEP SLEEP (PLL0 Spread Spectrum is always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..PLL0 Spread Sprectrum module is powered on during low power mode..\r
- * 0b1..PLL0 Spread Sprectrum module is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_PLL0_SSCG(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_PLL0_SSCG_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_PLL0_SSCG_MASK)\r
-#define PMC_PDSLEEPCFG0_PDEN_ROM_MASK (0x1000000U)\r
-#define PMC_PDSLEEPCFG0_PDEN_ROM_SHIFT (24U)\r
-/*! PDEN_ROM - Controls ROM power during DEEP SLEEP (ROM is always shut down during POWER DOWN and DEEP POWER DOWN).\r
- * 0b0..ROM is powered on during low power mode..\r
- * 0b1..ROM is powered off during low power mode..\r
- */\r
-#define PMC_PDSLEEPCFG0_PDEN_ROM(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDSLEEPCFG0_PDEN_ROM_SHIFT)) & PMC_PDSLEEPCFG0_PDEN_ROM_MASK)\r
-/*! @} */\r
-\r
-/*! @name PDRUNCFG0 - Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset] */\r
-/*! @{ */\r
-#define PMC_PDRUNCFG0_PDEN_DCDC_MASK (0x1U)\r
-#define PMC_PDRUNCFG0_PDEN_DCDC_SHIFT (0U)\r
-/*! PDEN_DCDC - Controls power to Bulk DCDC Converter.\r
- * 0b0..DCDC is powered.\r
- * 0b1..DCDC is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_DCDC(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_DCDC_SHIFT)) & PMC_PDRUNCFG0_PDEN_DCDC_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_BIAS_MASK (0x2U)\r
-#define PMC_PDRUNCFG0_PDEN_BIAS_SHIFT (1U)\r
-/*! PDEN_BIAS - Controls power to .\r
- * 0b0..Analog Bias is powered.\r
- * 0b1..Analog Bias is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_BIAS(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_BIAS_SHIFT)) & PMC_PDRUNCFG0_PDEN_BIAS_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_BODCORE_MASK (0x4U)\r
-#define PMC_PDRUNCFG0_PDEN_BODCORE_SHIFT (2U)\r
-/*! PDEN_BODCORE - Controls power to Core Brown Out Detector (BOD).\r
- * 0b0..BOD CORE is powered.\r
- * 0b1..BOD CORE is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_BODCORE(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_BODCORE_SHIFT)) & PMC_PDRUNCFG0_PDEN_BODCORE_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_BODVBAT_MASK (0x8U)\r
-#define PMC_PDRUNCFG0_PDEN_BODVBAT_SHIFT (3U)\r
+#define PMC_OSTIMER_SOFTRESET_MASK (0x1U)\r
+#define PMC_OSTIMER_SOFTRESET_SHIFT (0U)\r
+/*! SOFTRESET - Active high reset.\r
+ */\r
+#define PMC_OSTIMER_SOFTRESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_OSTIMER_SOFTRESET_SHIFT)) & PMC_OSTIMER_SOFTRESET_MASK)\r
+#define PMC_OSTIMER_CLOCKENABLE_MASK (0x2U)\r
+#define PMC_OSTIMER_CLOCKENABLE_SHIFT (1U)\r
+/*! CLOCKENABLE - Enable OSTIMER 32 KHz clock.\r
+ */\r
+#define PMC_OSTIMER_CLOCKENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_OSTIMER_CLOCKENABLE_SHIFT)) & PMC_OSTIMER_CLOCKENABLE_MASK)\r
+#define PMC_OSTIMER_DPDWAKEUPENABLE_MASK (0x4U)\r
+#define PMC_OSTIMER_DPDWAKEUPENABLE_SHIFT (2U)\r
+/*! DPDWAKEUPENABLE - Wake up enable in Deep Power Down mode (To be used in Enable Deep Power Down mode).\r
+ */\r
+#define PMC_OSTIMER_DPDWAKEUPENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_OSTIMER_DPDWAKEUPENABLE_SHIFT)) & PMC_OSTIMER_DPDWAKEUPENABLE_MASK)\r
+#define PMC_OSTIMER_OSC32KPD_MASK (0x8U)\r
+#define PMC_OSTIMER_OSC32KPD_SHIFT (3U)\r
+/*! OSC32KPD - Oscilator 32KHz (either FRO32KHz or XTAL32KHz according to RTCOSC32K.\r
+ */\r
+#define PMC_OSTIMER_OSC32KPD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_OSTIMER_OSC32KPD_SHIFT)) & PMC_OSTIMER_OSC32KPD_MASK)\r
+/*! @} */\r
+\r
+/*! @name PDRUNCFG0 - Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors Reset,\r
+ * Deep Power Down Reset, Software Reset] */\r
+/*! @{ */\r
+#define PMC_PDRUNCFG0_PDEN_BODVBAT_MASK (0x8U)\r
+#define PMC_PDRUNCFG0_PDEN_BODVBAT_SHIFT (3U)\r
/*! PDEN_BODVBAT - Controls power to VBAT Brown Out Detector (BOD).\r
* 0b0..BOD VBAT is powered.\r
* 0b1..BOD VBAT is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_BODVBAT(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_BODVBAT_SHIFT)) & PMC_PDRUNCFG0_PDEN_BODVBAT_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_FRO192M_MASK (0x20U)\r
-#define PMC_PDRUNCFG0_PDEN_FRO192M_SHIFT (5U)\r
-/*! PDEN_FRO192M - Controls power to the Free Running Oscillator (FRO) 192 MHz; The 12MHz, 48 MHz and 96 MHz clocks are derived from this FRO.\r
- * 0b0..FRO 192MHz is powered.\r
- * 0b1..FRO 192MHz is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_FRO192M(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_FRO192M_SHIFT)) & PMC_PDRUNCFG0_PDEN_FRO192M_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_FRO32K_MASK (0x40U)\r
-#define PMC_PDRUNCFG0_PDEN_FRO32K_SHIFT (6U)\r
+#define PMC_PDRUNCFG0_PDEN_BODVBAT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_BODVBAT_SHIFT)) & PMC_PDRUNCFG0_PDEN_BODVBAT_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_FRO32K_MASK (0x40U)\r
+#define PMC_PDRUNCFG0_PDEN_FRO32K_SHIFT (6U)\r
/*! PDEN_FRO32K - Controls power to the Free Running Oscillator (FRO) 32 KHz.\r
* 0b0..FRO32KHz is powered.\r
* 0b1..FRO32KHz is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_FRO32K(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_FRO32K_SHIFT)) & PMC_PDRUNCFG0_PDEN_FRO32K_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_XTAL32K_MASK (0x80U)\r
-#define PMC_PDRUNCFG0_PDEN_XTAL32K_SHIFT (7U)\r
+#define PMC_PDRUNCFG0_PDEN_FRO32K(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_FRO32K_SHIFT)) & PMC_PDRUNCFG0_PDEN_FRO32K_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_XTAL32K_MASK (0x80U)\r
+#define PMC_PDRUNCFG0_PDEN_XTAL32K_SHIFT (7U)\r
/*! PDEN_XTAL32K - Controls power to crystal 32 KHz.\r
* 0b0..Crystal 32KHz is powered.\r
* 0b1..Crystal 32KHz is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_XTAL32K(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_XTAL32K_SHIFT)) & PMC_PDRUNCFG0_PDEN_XTAL32K_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_XTAL32M_MASK (0x100U)\r
-#define PMC_PDRUNCFG0_PDEN_XTAL32M_SHIFT (8U)\r
+#define PMC_PDRUNCFG0_PDEN_XTAL32K(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_XTAL32K_SHIFT)) & PMC_PDRUNCFG0_PDEN_XTAL32K_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_XTAL32M_MASK (0x100U)\r
+#define PMC_PDRUNCFG0_PDEN_XTAL32M_SHIFT (8U)\r
/*! PDEN_XTAL32M - Controls power to crystal 32 MHz.\r
* 0b0..Crystal 32MHz is powered.\r
* 0b1..Crystal 32MHz is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_XTAL32M(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_XTAL32M_SHIFT)) & PMC_PDRUNCFG0_PDEN_XTAL32M_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_PLL0_MASK (0x200U)\r
-#define PMC_PDRUNCFG0_PDEN_PLL0_SHIFT (9U)\r
+#define PMC_PDRUNCFG0_PDEN_XTAL32M(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_XTAL32M_SHIFT)) & PMC_PDRUNCFG0_PDEN_XTAL32M_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_PLL0_MASK (0x200U)\r
+#define PMC_PDRUNCFG0_PDEN_PLL0_SHIFT (9U)\r
/*! PDEN_PLL0 - Controls power to System PLL (also refered as PLL0).\r
* 0b0..PLL0 is powered.\r
* 0b1..PLL0 is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_PLL0(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_PLL0_SHIFT)) & PMC_PDRUNCFG0_PDEN_PLL0_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_PLL1_MASK (0x400U)\r
-#define PMC_PDRUNCFG0_PDEN_PLL1_SHIFT (10U)\r
+#define PMC_PDRUNCFG0_PDEN_PLL0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_PLL0_SHIFT)) & PMC_PDRUNCFG0_PDEN_PLL0_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_PLL1_MASK (0x400U)\r
+#define PMC_PDRUNCFG0_PDEN_PLL1_SHIFT (10U)\r
/*! PDEN_PLL1 - Controls power to USB PLL (also refered as PLL1).\r
* 0b0..PLL1 is powered.\r
* 0b1..PLL1 is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_PLL1(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_PLL1_SHIFT)) & PMC_PDRUNCFG0_PDEN_PLL1_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_USBFSPHY_MASK (0x800U)\r
-#define PMC_PDRUNCFG0_PDEN_USBFSPHY_SHIFT (11U)\r
+#define PMC_PDRUNCFG0_PDEN_PLL1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_PLL1_SHIFT)) & PMC_PDRUNCFG0_PDEN_PLL1_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_USBFSPHY_MASK (0x800U)\r
+#define PMC_PDRUNCFG0_PDEN_USBFSPHY_SHIFT (11U)\r
/*! PDEN_USBFSPHY - Controls power to USB Full Speed phy.\r
* 0b0..USB Full Speed phy is powered.\r
* 0b1..USB Full Speed phy is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_USBFSPHY(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_USBFSPHY_SHIFT)) & PMC_PDRUNCFG0_PDEN_USBFSPHY_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_USBHSPHY_MASK (0x1000U)\r
-#define PMC_PDRUNCFG0_PDEN_USBHSPHY_SHIFT (12U)\r
+#define PMC_PDRUNCFG0_PDEN_USBFSPHY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_USBFSPHY_SHIFT)) & PMC_PDRUNCFG0_PDEN_USBFSPHY_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_USBHSPHY_MASK (0x1000U)\r
+#define PMC_PDRUNCFG0_PDEN_USBHSPHY_SHIFT (12U)\r
/*! PDEN_USBHSPHY - Controls power to USB High Speed Phy.\r
* 0b0..USB HS phy is powered.\r
* 0b1..USB HS phy is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_USBHSPHY(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_USBHSPHY_SHIFT)) & PMC_PDRUNCFG0_PDEN_USBHSPHY_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_COMP_MASK (0x2000U)\r
-#define PMC_PDRUNCFG0_PDEN_COMP_SHIFT (13U)\r
+#define PMC_PDRUNCFG0_PDEN_USBHSPHY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_USBHSPHY_SHIFT)) & PMC_PDRUNCFG0_PDEN_USBHSPHY_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_COMP_MASK (0x2000U)\r
+#define PMC_PDRUNCFG0_PDEN_COMP_SHIFT (13U)\r
/*! PDEN_COMP - Controls power to Analog Comparator.\r
* 0b0..Analog Comparator is powered.\r
* 0b1..Analog Comparator is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_COMP(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_COMP_SHIFT)) & PMC_PDRUNCFG0_PDEN_COMP_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_TEMPSENS_MASK (0x4000U)\r
-#define PMC_PDRUNCFG0_PDEN_TEMPSENS_SHIFT (14U)\r
-/*! PDEN_TEMPSENS - Controls power to Temperature Sensor.\r
- * 0b0..Temperature Sensor is powered.\r
- * 0b1..Temperature Sensor is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_TEMPSENS(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_TEMPSENS_SHIFT)) & PMC_PDRUNCFG0_PDEN_TEMPSENS_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_GPADC_MASK (0x8000U)\r
-#define PMC_PDRUNCFG0_PDEN_GPADC_SHIFT (15U)\r
-/*! PDEN_GPADC - Controls power to General Purpose ADC (GPADC).\r
- * 0b0..GPADC is powered.\r
- * 0b1..GPADC is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_GPADC(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_GPADC_SHIFT)) & PMC_PDRUNCFG0_PDEN_GPADC_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_LDOMEM_MASK (0x10000U)\r
-#define PMC_PDRUNCFG0_PDEN_LDOMEM_SHIFT (16U)\r
-/*! PDEN_LDOMEM - Controls power to Memories LDO.\r
- * 0b0..Memories LDO is powered.\r
- * 0b1..Memories LDO is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_LDOMEM(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_LDOMEM_SHIFT)) & PMC_PDRUNCFG0_PDEN_LDOMEM_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_LDODEEPSLEEP_MASK (0x20000U)\r
-#define PMC_PDRUNCFG0_PDEN_LDODEEPSLEEP_SHIFT (17U)\r
-/*! PDEN_LDODEEPSLEEP - Controls power to Deep Sleep LDO.\r
- * 0b0..Deep Sleep LDO is powered.\r
- * 0b1..Deep Sleep LDO is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_LDODEEPSLEEP(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_LDODEEPSLEEP_SHIFT)) & PMC_PDRUNCFG0_PDEN_LDODEEPSLEEP_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_LDOUSBHS_MASK (0x40000U)\r
-#define PMC_PDRUNCFG0_PDEN_LDOUSBHS_SHIFT (18U)\r
+#define PMC_PDRUNCFG0_PDEN_COMP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_COMP_SHIFT)) & PMC_PDRUNCFG0_PDEN_COMP_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_LDOUSBHS_MASK (0x40000U)\r
+#define PMC_PDRUNCFG0_PDEN_LDOUSBHS_SHIFT (18U)\r
/*! PDEN_LDOUSBHS - Controls power to USB high speed LDO.\r
* 0b0..USB high speed LDO is powered.\r
* 0b1..USB high speed LDO is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_LDOUSBHS(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_LDOUSBHS_SHIFT)) & PMC_PDRUNCFG0_PDEN_LDOUSBHS_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_AUXBIAS_MASK (0x80000U)\r
-#define PMC_PDRUNCFG0_PDEN_AUXBIAS_SHIFT (19U)\r
+#define PMC_PDRUNCFG0_PDEN_LDOUSBHS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_LDOUSBHS_SHIFT)) & PMC_PDRUNCFG0_PDEN_LDOUSBHS_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_AUXBIAS_MASK (0x80000U)\r
+#define PMC_PDRUNCFG0_PDEN_AUXBIAS_SHIFT (19U)\r
/*! PDEN_AUXBIAS - Controls power to auxiliary biasing (AUXBIAS)\r
* 0b0..auxiliary biasing is powered.\r
* 0b1..auxiliary biasing is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_AUXBIAS(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_AUXBIAS_SHIFT)) & PMC_PDRUNCFG0_PDEN_AUXBIAS_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_LDOXO32M_MASK (0x100000U)\r
-#define PMC_PDRUNCFG0_PDEN_LDOXO32M_SHIFT (20U)\r
+#define PMC_PDRUNCFG0_PDEN_AUXBIAS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_AUXBIAS_SHIFT)) & PMC_PDRUNCFG0_PDEN_AUXBIAS_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_LDOXO32M_MASK (0x100000U)\r
+#define PMC_PDRUNCFG0_PDEN_LDOXO32M_SHIFT (20U)\r
/*! PDEN_LDOXO32M - Controls power to crystal 32 MHz LDO.\r
* 0b0..crystal 32 MHz LDO is powered.\r
* 0b1..crystal 32 MHz LDO is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_LDOXO32M(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_LDOXO32M_SHIFT)) & PMC_PDRUNCFG0_PDEN_LDOXO32M_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_LDOFLASHNV_MASK (0x200000U)\r
-#define PMC_PDRUNCFG0_PDEN_LDOFLASHNV_SHIFT (21U)\r
-/*! PDEN_LDOFLASHNV - Controls power to Flasn NV (high voltage) LDO.\r
- * 0b0..Flash NV LDO is powered.\r
- * 0b1..Flash NV LDO is powered down.\r
- */\r
-#define PMC_PDRUNCFG0_PDEN_LDOFLASHNV(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_LDOFLASHNV_SHIFT)) & PMC_PDRUNCFG0_PDEN_LDOFLASHNV_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_RNG_MASK (0x400000U)\r
-#define PMC_PDRUNCFG0_PDEN_RNG_SHIFT (22U)\r
+#define PMC_PDRUNCFG0_PDEN_LDOXO32M(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_LDOXO32M_SHIFT)) & PMC_PDRUNCFG0_PDEN_LDOXO32M_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_RNG_MASK (0x400000U)\r
+#define PMC_PDRUNCFG0_PDEN_RNG_SHIFT (22U)\r
/*! PDEN_RNG - Controls power to all True Random Number Genetaor (TRNG) clock sources.\r
* 0b0..TRNG clocks are powered.\r
* 0b1..TRNG clocks are powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_RNG(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_RNG_SHIFT)) & PMC_PDRUNCFG0_PDEN_RNG_MASK)\r
-#define PMC_PDRUNCFG0_PDEN_PLL0_SSCG_MASK (0x800000U)\r
-#define PMC_PDRUNCFG0_PDEN_PLL0_SSCG_SHIFT (23U)\r
+#define PMC_PDRUNCFG0_PDEN_RNG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_RNG_SHIFT)) & PMC_PDRUNCFG0_PDEN_RNG_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_PLL0_SSCG_MASK (0x800000U)\r
+#define PMC_PDRUNCFG0_PDEN_PLL0_SSCG_SHIFT (23U)\r
/*! PDEN_PLL0_SSCG - Controls power to System PLL (PLL0) Spread Spectrum module.\r
* 0b0..PLL0 Sread spectrum module is powered.\r
* 0b1..PLL0 Sread spectrum module is powered down.\r
*/\r
-#define PMC_PDRUNCFG0_PDEN_PLL0_SSCG(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_PLL0_SSCG_SHIFT)) & PMC_PDRUNCFG0_PDEN_PLL0_SSCG_MASK)\r
+#define PMC_PDRUNCFG0_PDEN_PLL0_SSCG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFG0_PDEN_PLL0_SSCG_SHIFT)) & PMC_PDRUNCFG0_PDEN_PLL0_SSCG_MASK)\r
/*! @} */\r
\r
-/*! @name PDRUNCFGSET0 - Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset] */\r
+/*! @name PDRUNCFGSET0 - Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors\r
+ * Reset, Deep Power Down Reset, Software Reset] */\r
/*! @{ */\r
-#define PMC_PDRUNCFGSET0_PDRUNCFGSET0_MASK (0xFFFFFFFFU)\r
-#define PMC_PDRUNCFGSET0_PDRUNCFGSET0_SHIFT (0U)\r
-#define PMC_PDRUNCFGSET0_PDRUNCFGSET0(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFGSET0_PDRUNCFGSET0_SHIFT)) & PMC_PDRUNCFGSET0_PDRUNCFGSET0_MASK)\r
+#define PMC_PDRUNCFGSET0_PDRUNCFGSET0_MASK (0xFFFFFFFFU)\r
+#define PMC_PDRUNCFGSET0_PDRUNCFGSET0_SHIFT (0U)\r
+/*! PDRUNCFGSET0 - Writing ones to this register sets the corresponding bit or bits in the PDRUNCFG0 register, if they\r
+ * are implemented.\r
+ */\r
+#define PMC_PDRUNCFGSET0_PDRUNCFGSET0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFGSET0_PDRUNCFGSET0_SHIFT)) & PMC_PDRUNCFGSET0_PDRUNCFGSET0_MASK)\r
/*! @} */\r
\r
-/*! @name PDRUNCFGCLR0 - Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors Reset, Deep Power Down Reset, Software Reset] */\r
+/*! @name PDRUNCFGCLR0 - Controls the power to various analog blocks [Reset by: PoR, Pin Reset, Brown Out Detectors\r
+ * Reset, Deep Power Down Reset, Software Reset] */\r
/*! @{ */\r
-#define PMC_PDRUNCFGCLR0_PDRUNCFGCLR0_MASK (0xFFFFFFFFU)\r
-#define PMC_PDRUNCFGCLR0_PDRUNCFGCLR0_SHIFT (0U)\r
-#define PMC_PDRUNCFGCLR0_PDRUNCFGCLR0(x) (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFGCLR0_PDRUNCFGCLR0_SHIFT)) & PMC_PDRUNCFGCLR0_PDRUNCFGCLR0_MASK)\r
+#define PMC_PDRUNCFGCLR0_PDRUNCFGCLR0_MASK (0xFFFFFFFFU)\r
+#define PMC_PDRUNCFGCLR0_PDRUNCFGCLR0_SHIFT (0U)\r
+/*! PDRUNCFGCLR0 - Writing ones to this register clears the corresponding bit or bits in the PDRUNCFG0 register, if they\r
+ * are implemented.\r
+ */\r
+#define PMC_PDRUNCFGCLR0_PDRUNCFGCLR0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PMC_PDRUNCFGCLR0_PDRUNCFGCLR0_SHIFT)) & PMC_PDRUNCFGCLR0_PDRUNCFGCLR0_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group PMC_Register_Masks */\r
\r
-\r
/* PMC - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral PMC base address */\r
- #define PMC_BASE (0x50020000u)\r
- /** Peripheral PMC base address */\r
- #define PMC_BASE_NS (0x40020000u)\r
- /** Peripheral PMC base pointer */\r
- #define PMC ((PMC_Type *)PMC_BASE)\r
- /** Peripheral PMC base pointer */\r
- #define PMC_NS ((PMC_Type *)PMC_BASE_NS)\r
- /** Array initializer of PMC peripheral base addresses */\r
- #define PMC_BASE_ADDRS { PMC_BASE }\r
- /** Array initializer of PMC peripheral base pointers */\r
- #define PMC_BASE_PTRS { PMC }\r
- /** Array initializer of PMC peripheral base addresses */\r
- #define PMC_BASE_ADDRS_NS { PMC_BASE_NS }\r
- /** Array initializer of PMC peripheral base pointers */\r
- #define PMC_BASE_PTRS_NS { PMC_NS }\r
+/** Peripheral PMC base address */\r
+#define PMC_BASE (0x50020000u)\r
+/** Peripheral PMC base address */\r
+#define PMC_BASE_NS (0x40020000u)\r
+/** Peripheral PMC base pointer */\r
+#define PMC ((PMC_Type *)PMC_BASE)\r
+/** Peripheral PMC base pointer */\r
+#define PMC_NS ((PMC_Type *)PMC_BASE_NS)\r
+/** Array initializer of PMC peripheral base addresses */\r
+#define PMC_BASE_ADDRS \\r
+ { \\r
+ PMC_BASE \\r
+ }\r
+/** Array initializer of PMC peripheral base pointers */\r
+#define PMC_BASE_PTRS \\r
+ { \\r
+ PMC \\r
+ }\r
+/** Array initializer of PMC peripheral base addresses */\r
+#define PMC_BASE_ADDRS_NS \\r
+ { \\r
+ PMC_BASE_NS \\r
+ }\r
+/** Array initializer of PMC peripheral base pointers */\r
+#define PMC_BASE_PTRS_NS \\r
+ { \\r
+ PMC_NS \\r
+ }\r
#else\r
- /** Peripheral PMC base address */\r
- #define PMC_BASE (0x40020000u)\r
- /** Peripheral PMC base pointer */\r
- #define PMC ((PMC_Type *)PMC_BASE)\r
- /** Array initializer of PMC peripheral base addresses */\r
- #define PMC_BASE_ADDRS { PMC_BASE }\r
- /** Array initializer of PMC peripheral base pointers */\r
- #define PMC_BASE_PTRS { PMC }\r
+/** Peripheral PMC base address */\r
+#define PMC_BASE (0x40020000u)\r
+/** Peripheral PMC base pointer */\r
+#define PMC ((PMC_Type *)PMC_BASE)\r
+/** Array initializer of PMC peripheral base addresses */\r
+#define PMC_BASE_ADDRS \\r
+ { \\r
+ PMC_BASE \\r
+ }\r
+/** Array initializer of PMC peripheral base pointers */\r
+#define PMC_BASE_PTRS \\r
+ { \\r
+ PMC \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group PMC_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- POWERQUAD Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** POWERQUAD - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t OUTBASE; /**< Base address register for output region, offset: 0x0 */\r
- __IO uint32_t OUTFORMAT; /**< Output format, offset: 0x4 */\r
- __IO uint32_t TMPBASE; /**< Base address register for temp region, offset: 0x8 */\r
- __IO uint32_t TMPFORMAT; /**< Temp format, offset: 0xC */\r
- __IO uint32_t INABASE; /**< Base address register for input A region, offset: 0x10 */\r
- __IO uint32_t INAFORMAT; /**< Input A format, offset: 0x14 */\r
- __IO uint32_t INBBASE; /**< Base address register for input B region, offset: 0x18 */\r
- __IO uint32_t INBFORMAT; /**< Input B format, offset: 0x1C */\r
- uint8_t RESERVED_0[224];\r
- __IO uint32_t CONTROL; /**< PowerQuad Control register, offset: 0x100 */\r
- __IO uint32_t LENGTH; /**< Length register, offset: 0x104 */\r
- __IO uint32_t CPPRE; /**< Pre-scale register, offset: 0x108 */\r
- __IO uint32_t MISC; /**< Misc register, offset: 0x10C */\r
- __IO uint32_t CURSORY; /**< Cursory register, offset: 0x110 */\r
- uint8_t RESERVED_1[108];\r
- __IO uint32_t CORDIC_X; /**< Cordic input X register, offset: 0x180 */\r
- __IO uint32_t CORDIC_Y; /**< Cordic input Y register, offset: 0x184 */\r
- __IO uint32_t CORDIC_Z; /**< Cordic input Z register, offset: 0x188 */\r
- __IO uint32_t ERRSTAT; /**< Read/Write register where error statuses are captured (sticky), offset: 0x18C */\r
- __IO uint32_t INTREN; /**< INTERRUPT enable register, offset: 0x190 */\r
- __IO uint32_t EVENTEN; /**< Event Enable register, offset: 0x194 */\r
- __IO uint32_t INTRSTAT; /**< INTERRUPT STATUS register, offset: 0x198 */\r
- uint8_t RESERVED_2[100];\r
- __IO uint32_t GPREG[16]; /**< General purpose register bank N., array offset: 0x200, array step: 0x4 */\r
- __IO uint32_t COMPREG[8]; /**< Compute register bank, array offset: 0x240, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t OUTBASE; /**< Base address register for output region, offset: 0x0 */\r
+ __IO uint32_t OUTFORMAT; /**< Output format, offset: 0x4 */\r
+ __IO uint32_t TMPBASE; /**< Base address register for temp region, offset: 0x8 */\r
+ __IO uint32_t TMPFORMAT; /**< Temp format, offset: 0xC */\r
+ __IO uint32_t INABASE; /**< Base address register for input A region, offset: 0x10 */\r
+ __IO uint32_t INAFORMAT; /**< Input A format, offset: 0x14 */\r
+ __IO uint32_t INBBASE; /**< Base address register for input B region, offset: 0x18 */\r
+ __IO uint32_t INBFORMAT; /**< Input B format, offset: 0x1C */\r
+ uint8_t RESERVED_0[224];\r
+ __IO uint32_t CONTROL; /**< PowerQuad Control register, offset: 0x100 */\r
+ __IO uint32_t LENGTH; /**< Length register, offset: 0x104 */\r
+ __IO uint32_t CPPRE; /**< Pre-scale register, offset: 0x108 */\r
+ __IO uint32_t MISC; /**< Misc register, offset: 0x10C */\r
+ __IO uint32_t CURSORY; /**< Cursory register, offset: 0x110 */\r
+ uint8_t RESERVED_1[108];\r
+ __IO uint32_t CORDIC_X; /**< Cordic input X register, offset: 0x180 */\r
+ __IO uint32_t CORDIC_Y; /**< Cordic input Y register, offset: 0x184 */\r
+ __IO uint32_t CORDIC_Z; /**< Cordic input Z register, offset: 0x188 */\r
+ __IO uint32_t ERRSTAT; /**< Read/Write register where error statuses are captured (sticky), offset: 0x18C */\r
+ __IO uint32_t INTREN; /**< INTERRUPT enable register, offset: 0x190 */\r
+ __IO uint32_t EVENTEN; /**< Event Enable register, offset: 0x194 */\r
+ __IO uint32_t INTRSTAT; /**< INTERRUPT STATUS register, offset: 0x198 */\r
+ uint8_t RESERVED_2[100];\r
+ __IO uint32_t GPREG[16]; /**< General purpose register bank N., array offset: 0x200, array step: 0x4 */\r
+ __IO uint32_t COMPREG[8]; /**< Compute register bank, array offset: 0x240, array step: 0x4 */\r
} POWERQUAD_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name OUTBASE - Base address register for output region */\r
/*! @{ */\r
-#define POWERQUAD_OUTBASE_OUTBASE_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_OUTBASE_OUTBASE_SHIFT (0U)\r
-#define POWERQUAD_OUTBASE_OUTBASE(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_OUTBASE_OUTBASE_SHIFT)) & POWERQUAD_OUTBASE_OUTBASE_MASK)\r
+#define POWERQUAD_OUTBASE_OUTBASE_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_OUTBASE_OUTBASE_SHIFT (0U)\r
+/*! outbase - Base address register for the output region\r
+ */\r
+#define POWERQUAD_OUTBASE_OUTBASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_OUTBASE_OUTBASE_SHIFT)) & POWERQUAD_OUTBASE_OUTBASE_MASK)\r
/*! @} */\r
\r
/*! @name OUTFORMAT - Output format */\r
/*! @{ */\r
-#define POWERQUAD_OUTFORMAT_OUT_FORMATINT_MASK (0x3U)\r
-#define POWERQUAD_OUTFORMAT_OUT_FORMATINT_SHIFT (0U)\r
-#define POWERQUAD_OUTFORMAT_OUT_FORMATINT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_OUTFORMAT_OUT_FORMATINT_SHIFT)) & POWERQUAD_OUTFORMAT_OUT_FORMATINT_MASK)\r
-#define POWERQUAD_OUTFORMAT_OUT_FORMATEXT_MASK (0x30U)\r
-#define POWERQUAD_OUTFORMAT_OUT_FORMATEXT_SHIFT (4U)\r
-#define POWERQUAD_OUTFORMAT_OUT_FORMATEXT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_OUTFORMAT_OUT_FORMATEXT_SHIFT)) & POWERQUAD_OUTFORMAT_OUT_FORMATEXT_MASK)\r
-#define POWERQUAD_OUTFORMAT_OUT_SCALER_MASK (0xFF00U)\r
-#define POWERQUAD_OUTFORMAT_OUT_SCALER_SHIFT (8U)\r
-#define POWERQUAD_OUTFORMAT_OUT_SCALER(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_OUTFORMAT_OUT_SCALER_SHIFT)) & POWERQUAD_OUTFORMAT_OUT_SCALER_MASK)\r
+#define POWERQUAD_OUTFORMAT_OUT_FORMATINT_MASK (0x3U)\r
+#define POWERQUAD_OUTFORMAT_OUT_FORMATINT_SHIFT (0U)\r
+/*! out_formatint - Output Internal format (00: q15; 01:q31; 10:float)\r
+ */\r
+#define POWERQUAD_OUTFORMAT_OUT_FORMATINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_OUTFORMAT_OUT_FORMATINT_SHIFT)) & POWERQUAD_OUTFORMAT_OUT_FORMATINT_MASK)\r
+#define POWERQUAD_OUTFORMAT_OUT_FORMATEXT_MASK (0x30U)\r
+#define POWERQUAD_OUTFORMAT_OUT_FORMATEXT_SHIFT (4U)\r
+/*! out_formatext - Output External format (00: q15; 01:q31; 10:float)\r
+ */\r
+#define POWERQUAD_OUTFORMAT_OUT_FORMATEXT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_OUTFORMAT_OUT_FORMATEXT_SHIFT)) & POWERQUAD_OUTFORMAT_OUT_FORMATEXT_MASK)\r
+#define POWERQUAD_OUTFORMAT_OUT_SCALER_MASK (0xFF00U)\r
+#define POWERQUAD_OUTFORMAT_OUT_SCALER_SHIFT (8U)\r
+/*! out_scaler - Output Scaler value (for scaled 'q31' formats)\r
+ */\r
+#define POWERQUAD_OUTFORMAT_OUT_SCALER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_OUTFORMAT_OUT_SCALER_SHIFT)) & POWERQUAD_OUTFORMAT_OUT_SCALER_MASK)\r
/*! @} */\r
\r
/*! @name TMPBASE - Base address register for temp region */\r
/*! @{ */\r
-#define POWERQUAD_TMPBASE_TMPBASE_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_TMPBASE_TMPBASE_SHIFT (0U)\r
-#define POWERQUAD_TMPBASE_TMPBASE(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_TMPBASE_TMPBASE_SHIFT)) & POWERQUAD_TMPBASE_TMPBASE_MASK)\r
+#define POWERQUAD_TMPBASE_TMPBASE_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_TMPBASE_TMPBASE_SHIFT (0U)\r
+/*! tmpbase - Base address register for the temporary region\r
+ */\r
+#define POWERQUAD_TMPBASE_TMPBASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_TMPBASE_TMPBASE_SHIFT)) & POWERQUAD_TMPBASE_TMPBASE_MASK)\r
/*! @} */\r
\r
/*! @name TMPFORMAT - Temp format */\r
/*! @{ */\r
-#define POWERQUAD_TMPFORMAT_TMP_FORMATINT_MASK (0x3U)\r
-#define POWERQUAD_TMPFORMAT_TMP_FORMATINT_SHIFT (0U)\r
-#define POWERQUAD_TMPFORMAT_TMP_FORMATINT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_TMPFORMAT_TMP_FORMATINT_SHIFT)) & POWERQUAD_TMPFORMAT_TMP_FORMATINT_MASK)\r
-#define POWERQUAD_TMPFORMAT_TMP_FORMATEXT_MASK (0x30U)\r
-#define POWERQUAD_TMPFORMAT_TMP_FORMATEXT_SHIFT (4U)\r
-#define POWERQUAD_TMPFORMAT_TMP_FORMATEXT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_TMPFORMAT_TMP_FORMATEXT_SHIFT)) & POWERQUAD_TMPFORMAT_TMP_FORMATEXT_MASK)\r
-#define POWERQUAD_TMPFORMAT_TMP_SCALER_MASK (0xFF00U)\r
-#define POWERQUAD_TMPFORMAT_TMP_SCALER_SHIFT (8U)\r
-#define POWERQUAD_TMPFORMAT_TMP_SCALER(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_TMPFORMAT_TMP_SCALER_SHIFT)) & POWERQUAD_TMPFORMAT_TMP_SCALER_MASK)\r
+#define POWERQUAD_TMPFORMAT_TMP_FORMATINT_MASK (0x3U)\r
+#define POWERQUAD_TMPFORMAT_TMP_FORMATINT_SHIFT (0U)\r
+/*! tmp_formatint - Temp Internal format (00: q15; 01:q31; 10:float)\r
+ */\r
+#define POWERQUAD_TMPFORMAT_TMP_FORMATINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_TMPFORMAT_TMP_FORMATINT_SHIFT)) & POWERQUAD_TMPFORMAT_TMP_FORMATINT_MASK)\r
+#define POWERQUAD_TMPFORMAT_TMP_FORMATEXT_MASK (0x30U)\r
+#define POWERQUAD_TMPFORMAT_TMP_FORMATEXT_SHIFT (4U)\r
+/*! tmp_formatext - Temp External format (00: q15; 01:q31; 10:float)\r
+ */\r
+#define POWERQUAD_TMPFORMAT_TMP_FORMATEXT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_TMPFORMAT_TMP_FORMATEXT_SHIFT)) & POWERQUAD_TMPFORMAT_TMP_FORMATEXT_MASK)\r
+#define POWERQUAD_TMPFORMAT_TMP_SCALER_MASK (0xFF00U)\r
+#define POWERQUAD_TMPFORMAT_TMP_SCALER_SHIFT (8U)\r
+/*! tmp_scaler - Temp Scaler value (for scaled 'q31' formats)\r
+ */\r
+#define POWERQUAD_TMPFORMAT_TMP_SCALER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_TMPFORMAT_TMP_SCALER_SHIFT)) & POWERQUAD_TMPFORMAT_TMP_SCALER_MASK)\r
/*! @} */\r
\r
/*! @name INABASE - Base address register for input A region */\r
/*! @{ */\r
-#define POWERQUAD_INABASE_INABASE_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_INABASE_INABASE_SHIFT (0U)\r
-#define POWERQUAD_INABASE_INABASE(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INABASE_INABASE_SHIFT)) & POWERQUAD_INABASE_INABASE_MASK)\r
+#define POWERQUAD_INABASE_INABASE_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_INABASE_INABASE_SHIFT (0U)\r
+/*! inabase - Base address register for the input A region\r
+ */\r
+#define POWERQUAD_INABASE_INABASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INABASE_INABASE_SHIFT)) & POWERQUAD_INABASE_INABASE_MASK)\r
/*! @} */\r
\r
/*! @name INAFORMAT - Input A format */\r
/*! @{ */\r
-#define POWERQUAD_INAFORMAT_INA_FORMATINT_MASK (0x3U)\r
-#define POWERQUAD_INAFORMAT_INA_FORMATINT_SHIFT (0U)\r
-#define POWERQUAD_INAFORMAT_INA_FORMATINT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INAFORMAT_INA_FORMATINT_SHIFT)) & POWERQUAD_INAFORMAT_INA_FORMATINT_MASK)\r
-#define POWERQUAD_INAFORMAT_INA_FORMATEXT_MASK (0x30U)\r
-#define POWERQUAD_INAFORMAT_INA_FORMATEXT_SHIFT (4U)\r
-#define POWERQUAD_INAFORMAT_INA_FORMATEXT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INAFORMAT_INA_FORMATEXT_SHIFT)) & POWERQUAD_INAFORMAT_INA_FORMATEXT_MASK)\r
-#define POWERQUAD_INAFORMAT_INA_SCALER_MASK (0xFF00U)\r
-#define POWERQUAD_INAFORMAT_INA_SCALER_SHIFT (8U)\r
-#define POWERQUAD_INAFORMAT_INA_SCALER(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INAFORMAT_INA_SCALER_SHIFT)) & POWERQUAD_INAFORMAT_INA_SCALER_MASK)\r
+#define POWERQUAD_INAFORMAT_INA_FORMATINT_MASK (0x3U)\r
+#define POWERQUAD_INAFORMAT_INA_FORMATINT_SHIFT (0U)\r
+/*! ina_formatint - Input A Internal format (00: q15; 01:q31; 10:float)\r
+ */\r
+#define POWERQUAD_INAFORMAT_INA_FORMATINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INAFORMAT_INA_FORMATINT_SHIFT)) & POWERQUAD_INAFORMAT_INA_FORMATINT_MASK)\r
+#define POWERQUAD_INAFORMAT_INA_FORMATEXT_MASK (0x30U)\r
+#define POWERQUAD_INAFORMAT_INA_FORMATEXT_SHIFT (4U)\r
+/*! ina_formatext - Input A External format (00: q15; 01:q31; 10:float)\r
+ */\r
+#define POWERQUAD_INAFORMAT_INA_FORMATEXT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INAFORMAT_INA_FORMATEXT_SHIFT)) & POWERQUAD_INAFORMAT_INA_FORMATEXT_MASK)\r
+#define POWERQUAD_INAFORMAT_INA_SCALER_MASK (0xFF00U)\r
+#define POWERQUAD_INAFORMAT_INA_SCALER_SHIFT (8U)\r
+/*! ina_scaler - Input A Scaler value (for scaled 'q31' formats)\r
+ */\r
+#define POWERQUAD_INAFORMAT_INA_SCALER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INAFORMAT_INA_SCALER_SHIFT)) & POWERQUAD_INAFORMAT_INA_SCALER_MASK)\r
/*! @} */\r
\r
/*! @name INBBASE - Base address register for input B region */\r
/*! @{ */\r
-#define POWERQUAD_INBBASE_INBBASE_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_INBBASE_INBBASE_SHIFT (0U)\r
-#define POWERQUAD_INBBASE_INBBASE(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INBBASE_INBBASE_SHIFT)) & POWERQUAD_INBBASE_INBBASE_MASK)\r
+#define POWERQUAD_INBBASE_INBBASE_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_INBBASE_INBBASE_SHIFT (0U)\r
+/*! inbbase - Base address register for the input B region\r
+ */\r
+#define POWERQUAD_INBBASE_INBBASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INBBASE_INBBASE_SHIFT)) & POWERQUAD_INBBASE_INBBASE_MASK)\r
/*! @} */\r
\r
/*! @name INBFORMAT - Input B format */\r
/*! @{ */\r
-#define POWERQUAD_INBFORMAT_INB_FORMATINT_MASK (0x3U)\r
-#define POWERQUAD_INBFORMAT_INB_FORMATINT_SHIFT (0U)\r
-#define POWERQUAD_INBFORMAT_INB_FORMATINT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INBFORMAT_INB_FORMATINT_SHIFT)) & POWERQUAD_INBFORMAT_INB_FORMATINT_MASK)\r
-#define POWERQUAD_INBFORMAT_INB_FORMATEXT_MASK (0x30U)\r
-#define POWERQUAD_INBFORMAT_INB_FORMATEXT_SHIFT (4U)\r
-#define POWERQUAD_INBFORMAT_INB_FORMATEXT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INBFORMAT_INB_FORMATEXT_SHIFT)) & POWERQUAD_INBFORMAT_INB_FORMATEXT_MASK)\r
-#define POWERQUAD_INBFORMAT_INB_SCALER_MASK (0xFF00U)\r
-#define POWERQUAD_INBFORMAT_INB_SCALER_SHIFT (8U)\r
-#define POWERQUAD_INBFORMAT_INB_SCALER(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INBFORMAT_INB_SCALER_SHIFT)) & POWERQUAD_INBFORMAT_INB_SCALER_MASK)\r
+#define POWERQUAD_INBFORMAT_INB_FORMATINT_MASK (0x3U)\r
+#define POWERQUAD_INBFORMAT_INB_FORMATINT_SHIFT (0U)\r
+/*! inb_formatint - Input B Internal format (00: q15; 01:q31; 10:float)\r
+ */\r
+#define POWERQUAD_INBFORMAT_INB_FORMATINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INBFORMAT_INB_FORMATINT_SHIFT)) & POWERQUAD_INBFORMAT_INB_FORMATINT_MASK)\r
+#define POWERQUAD_INBFORMAT_INB_FORMATEXT_MASK (0x30U)\r
+#define POWERQUAD_INBFORMAT_INB_FORMATEXT_SHIFT (4U)\r
+/*! inb_formatext - Input B External format (00: q15; 01:q31; 10:float)\r
+ */\r
+#define POWERQUAD_INBFORMAT_INB_FORMATEXT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INBFORMAT_INB_FORMATEXT_SHIFT)) & POWERQUAD_INBFORMAT_INB_FORMATEXT_MASK)\r
+#define POWERQUAD_INBFORMAT_INB_SCALER_MASK (0xFF00U)\r
+#define POWERQUAD_INBFORMAT_INB_SCALER_SHIFT (8U)\r
+/*! inb_scaler - Input B Scaler value (for scaled 'q31' formats)\r
+ */\r
+#define POWERQUAD_INBFORMAT_INB_SCALER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INBFORMAT_INB_SCALER_SHIFT)) & POWERQUAD_INBFORMAT_INB_SCALER_MASK)\r
/*! @} */\r
\r
/*! @name CONTROL - PowerQuad Control register */\r
/*! @{ */\r
-#define POWERQUAD_CONTROL_DECODE_OPCODE_MASK (0xFU)\r
-#define POWERQUAD_CONTROL_DECODE_OPCODE_SHIFT (0U)\r
-#define POWERQUAD_CONTROL_DECODE_OPCODE(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CONTROL_DECODE_OPCODE_SHIFT)) & POWERQUAD_CONTROL_DECODE_OPCODE_MASK)\r
-#define POWERQUAD_CONTROL_DECODE_MACHINE_MASK (0xF0U)\r
-#define POWERQUAD_CONTROL_DECODE_MACHINE_SHIFT (4U)\r
-#define POWERQUAD_CONTROL_DECODE_MACHINE(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CONTROL_DECODE_MACHINE_SHIFT)) & POWERQUAD_CONTROL_DECODE_MACHINE_MASK)\r
-#define POWERQUAD_CONTROL_INST_BUSY_MASK (0x80000000U)\r
-#define POWERQUAD_CONTROL_INST_BUSY_SHIFT (31U)\r
-#define POWERQUAD_CONTROL_INST_BUSY(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CONTROL_INST_BUSY_SHIFT)) & POWERQUAD_CONTROL_INST_BUSY_MASK)\r
+#define POWERQUAD_CONTROL_DECODE_OPCODE_MASK (0xFU)\r
+#define POWERQUAD_CONTROL_DECODE_OPCODE_SHIFT (0U)\r
+/*! decode_opcode - opcode specific to decode_machine\r
+ */\r
+#define POWERQUAD_CONTROL_DECODE_OPCODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CONTROL_DECODE_OPCODE_SHIFT)) & POWERQUAD_CONTROL_DECODE_OPCODE_MASK)\r
+#define POWERQUAD_CONTROL_DECODE_MACHINE_MASK (0xF0U)\r
+#define POWERQUAD_CONTROL_DECODE_MACHINE_SHIFT (4U)\r
+/*! decode_machine - 0 : Coprocessor , 1 : matrix , 2 : fft , 3 : fir , 4 : stat , 5 : cordic , 6 -15 : NA\r
+ */\r
+#define POWERQUAD_CONTROL_DECODE_MACHINE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CONTROL_DECODE_MACHINE_SHIFT)) & POWERQUAD_CONTROL_DECODE_MACHINE_MASK)\r
+#define POWERQUAD_CONTROL_INST_BUSY_MASK (0x80000000U)\r
+#define POWERQUAD_CONTROL_INST_BUSY_SHIFT (31U)\r
+/*! inst_busy - Instruction busy signal when high indicates processing is on\r
+ */\r
+#define POWERQUAD_CONTROL_INST_BUSY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CONTROL_INST_BUSY_SHIFT)) & POWERQUAD_CONTROL_INST_BUSY_MASK)\r
/*! @} */\r
\r
/*! @name LENGTH - Length register */\r
/*! @{ */\r
-#define POWERQUAD_LENGTH_INST_LENGTH_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_LENGTH_INST_LENGTH_SHIFT (0U)\r
-#define POWERQUAD_LENGTH_INST_LENGTH(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_LENGTH_INST_LENGTH_SHIFT)) & POWERQUAD_LENGTH_INST_LENGTH_MASK)\r
+#define POWERQUAD_LENGTH_INST_LENGTH_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_LENGTH_INST_LENGTH_SHIFT (0U)\r
+/*! inst_length - Length register. When FIR : fir_xlength = inst_length[15:0] , fir_tlength =\r
+ * inst_len[31:16]. When MTX : rows_a = inst_length[4:0] , cols_a = inst_length[12:8] , cols_b =\r
+ * inst_length[20:16]\r
+ */\r
+#define POWERQUAD_LENGTH_INST_LENGTH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_LENGTH_INST_LENGTH_SHIFT)) & POWERQUAD_LENGTH_INST_LENGTH_MASK)\r
/*! @} */\r
\r
/*! @name CPPRE - Pre-scale register */\r
/*! @{ */\r
-#define POWERQUAD_CPPRE_CPPRE_IN_MASK (0xFFU)\r
-#define POWERQUAD_CPPRE_CPPRE_IN_SHIFT (0U)\r
-#define POWERQUAD_CPPRE_CPPRE_IN(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CPPRE_CPPRE_IN_SHIFT)) & POWERQUAD_CPPRE_CPPRE_IN_MASK)\r
-#define POWERQUAD_CPPRE_CPPRE_OUT_MASK (0xFF00U)\r
-#define POWERQUAD_CPPRE_CPPRE_OUT_SHIFT (8U)\r
-#define POWERQUAD_CPPRE_CPPRE_OUT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CPPRE_CPPRE_OUT_SHIFT)) & POWERQUAD_CPPRE_CPPRE_OUT_MASK)\r
-#define POWERQUAD_CPPRE_CPPRE_SAT_MASK (0x10000U)\r
-#define POWERQUAD_CPPRE_CPPRE_SAT_SHIFT (16U)\r
-#define POWERQUAD_CPPRE_CPPRE_SAT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CPPRE_CPPRE_SAT_SHIFT)) & POWERQUAD_CPPRE_CPPRE_SAT_MASK)\r
-#define POWERQUAD_CPPRE_CPPRE_SAT8_MASK (0x20000U)\r
-#define POWERQUAD_CPPRE_CPPRE_SAT8_SHIFT (17U)\r
-#define POWERQUAD_CPPRE_CPPRE_SAT8(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CPPRE_CPPRE_SAT8_SHIFT)) & POWERQUAD_CPPRE_CPPRE_SAT8_MASK)\r
+#define POWERQUAD_CPPRE_CPPRE_IN_MASK (0xFFU)\r
+#define POWERQUAD_CPPRE_CPPRE_IN_SHIFT (0U)\r
+/*! cppre_in - co-processor scaling of input\r
+ */\r
+#define POWERQUAD_CPPRE_CPPRE_IN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CPPRE_CPPRE_IN_SHIFT)) & POWERQUAD_CPPRE_CPPRE_IN_MASK)\r
+#define POWERQUAD_CPPRE_CPPRE_OUT_MASK (0xFF00U)\r
+#define POWERQUAD_CPPRE_CPPRE_OUT_SHIFT (8U)\r
+/*! cppre_out - co-processor fixed point output\r
+ */\r
+#define POWERQUAD_CPPRE_CPPRE_OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CPPRE_CPPRE_OUT_SHIFT)) & POWERQUAD_CPPRE_CPPRE_OUT_MASK)\r
+#define POWERQUAD_CPPRE_CPPRE_SAT_MASK (0x10000U)\r
+#define POWERQUAD_CPPRE_CPPRE_SAT_SHIFT (16U)\r
+/*! cppre_sat - 1 : forces sub-32 bit saturation\r
+ */\r
+#define POWERQUAD_CPPRE_CPPRE_SAT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CPPRE_CPPRE_SAT_SHIFT)) & POWERQUAD_CPPRE_CPPRE_SAT_MASK)\r
+#define POWERQUAD_CPPRE_CPPRE_SAT8_MASK (0x20000U)\r
+#define POWERQUAD_CPPRE_CPPRE_SAT8_SHIFT (17U)\r
+/*! cppre_sat8 - 0 = 8bits, 1 = 16bits\r
+ */\r
+#define POWERQUAD_CPPRE_CPPRE_SAT8(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CPPRE_CPPRE_SAT8_SHIFT)) & POWERQUAD_CPPRE_CPPRE_SAT8_MASK)\r
/*! @} */\r
\r
/*! @name MISC - Misc register */\r
/*! @{ */\r
-#define POWERQUAD_MISC_INST_MISC_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_MISC_INST_MISC_SHIFT (0U)\r
-#define POWERQUAD_MISC_INST_MISC(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_MISC_INST_MISC_SHIFT)) & POWERQUAD_MISC_INST_MISC_MASK)\r
+#define POWERQUAD_MISC_INST_MISC_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_MISC_INST_MISC_SHIFT (0U)\r
+/*! inst_misc - Misc register. For Matrix : Used for scale factor\r
+ */\r
+#define POWERQUAD_MISC_INST_MISC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_MISC_INST_MISC_SHIFT)) & POWERQUAD_MISC_INST_MISC_MASK)\r
/*! @} */\r
\r
/*! @name CURSORY - Cursory register */\r
/*! @{ */\r
-#define POWERQUAD_CURSORY_CURSORY_MASK (0x1U)\r
-#define POWERQUAD_CURSORY_CURSORY_SHIFT (0U)\r
-#define POWERQUAD_CURSORY_CURSORY(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CURSORY_CURSORY_SHIFT)) & POWERQUAD_CURSORY_CURSORY_MASK)\r
+#define POWERQUAD_CURSORY_CURSORY_MASK (0x1U)\r
+#define POWERQUAD_CURSORY_CURSORY_SHIFT (0U)\r
+/*! cursory - 1 : Enable cursory mode\r
+ */\r
+#define POWERQUAD_CURSORY_CURSORY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CURSORY_CURSORY_SHIFT)) & POWERQUAD_CURSORY_CURSORY_MASK)\r
/*! @} */\r
\r
/*! @name CORDIC_X - Cordic input X register */\r
/*! @{ */\r
-#define POWERQUAD_CORDIC_X_CORDIC_X_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_CORDIC_X_CORDIC_X_SHIFT (0U)\r
-#define POWERQUAD_CORDIC_X_CORDIC_X(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CORDIC_X_CORDIC_X_SHIFT)) & POWERQUAD_CORDIC_X_CORDIC_X_MASK)\r
+#define POWERQUAD_CORDIC_X_CORDIC_X_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_CORDIC_X_CORDIC_X_SHIFT (0U)\r
+/*! cordic_x - Cordic input x\r
+ */\r
+#define POWERQUAD_CORDIC_X_CORDIC_X(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CORDIC_X_CORDIC_X_SHIFT)) & POWERQUAD_CORDIC_X_CORDIC_X_MASK)\r
/*! @} */\r
\r
/*! @name CORDIC_Y - Cordic input Y register */\r
/*! @{ */\r
-#define POWERQUAD_CORDIC_Y_CORDIC_Y_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_CORDIC_Y_CORDIC_Y_SHIFT (0U)\r
-#define POWERQUAD_CORDIC_Y_CORDIC_Y(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CORDIC_Y_CORDIC_Y_SHIFT)) & POWERQUAD_CORDIC_Y_CORDIC_Y_MASK)\r
+#define POWERQUAD_CORDIC_Y_CORDIC_Y_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_CORDIC_Y_CORDIC_Y_SHIFT (0U)\r
+/*! cordic_y - Cordic input y\r
+ */\r
+#define POWERQUAD_CORDIC_Y_CORDIC_Y(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CORDIC_Y_CORDIC_Y_SHIFT)) & POWERQUAD_CORDIC_Y_CORDIC_Y_MASK)\r
/*! @} */\r
\r
/*! @name CORDIC_Z - Cordic input Z register */\r
/*! @{ */\r
-#define POWERQUAD_CORDIC_Z_CORDIC_Z_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_CORDIC_Z_CORDIC_Z_SHIFT (0U)\r
-#define POWERQUAD_CORDIC_Z_CORDIC_Z(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CORDIC_Z_CORDIC_Z_SHIFT)) & POWERQUAD_CORDIC_Z_CORDIC_Z_MASK)\r
+#define POWERQUAD_CORDIC_Z_CORDIC_Z_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_CORDIC_Z_CORDIC_Z_SHIFT (0U)\r
+/*! cordic_z - Cordic input z\r
+ */\r
+#define POWERQUAD_CORDIC_Z_CORDIC_Z(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_CORDIC_Z_CORDIC_Z_SHIFT)) & POWERQUAD_CORDIC_Z_CORDIC_Z_MASK)\r
/*! @} */\r
\r
/*! @name ERRSTAT - Read/Write register where error statuses are captured (sticky) */\r
/*! @{ */\r
-#define POWERQUAD_ERRSTAT_OVERFLOW_MASK (0x1U)\r
-#define POWERQUAD_ERRSTAT_OVERFLOW_SHIFT (0U)\r
-#define POWERQUAD_ERRSTAT_OVERFLOW(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_OVERFLOW_SHIFT)) & POWERQUAD_ERRSTAT_OVERFLOW_MASK)\r
-#define POWERQUAD_ERRSTAT_NAN_MASK (0x2U)\r
-#define POWERQUAD_ERRSTAT_NAN_SHIFT (1U)\r
-#define POWERQUAD_ERRSTAT_NAN(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_NAN_SHIFT)) & POWERQUAD_ERRSTAT_NAN_MASK)\r
-#define POWERQUAD_ERRSTAT_FIXEDOVERFLOW_MASK (0x4U)\r
-#define POWERQUAD_ERRSTAT_FIXEDOVERFLOW_SHIFT (2U)\r
-#define POWERQUAD_ERRSTAT_FIXEDOVERFLOW(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_FIXEDOVERFLOW_SHIFT)) & POWERQUAD_ERRSTAT_FIXEDOVERFLOW_MASK)\r
-#define POWERQUAD_ERRSTAT_UNDERFLOW_MASK (0x8U)\r
-#define POWERQUAD_ERRSTAT_UNDERFLOW_SHIFT (3U)\r
-#define POWERQUAD_ERRSTAT_UNDERFLOW(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_UNDERFLOW_SHIFT)) & POWERQUAD_ERRSTAT_UNDERFLOW_MASK)\r
-#define POWERQUAD_ERRSTAT_BUSERROR_MASK (0x10U)\r
-#define POWERQUAD_ERRSTAT_BUSERROR_SHIFT (4U)\r
-#define POWERQUAD_ERRSTAT_BUSERROR(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_BUSERROR_SHIFT)) & POWERQUAD_ERRSTAT_BUSERROR_MASK)\r
+#define POWERQUAD_ERRSTAT_OVERFLOW_MASK (0x1U)\r
+#define POWERQUAD_ERRSTAT_OVERFLOW_SHIFT (0U)\r
+/*! OVERFLOW - overflow\r
+ */\r
+#define POWERQUAD_ERRSTAT_OVERFLOW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_OVERFLOW_SHIFT)) & POWERQUAD_ERRSTAT_OVERFLOW_MASK)\r
+#define POWERQUAD_ERRSTAT_NAN_MASK (0x2U)\r
+#define POWERQUAD_ERRSTAT_NAN_SHIFT (1U)\r
+/*! NAN - nan\r
+ */\r
+#define POWERQUAD_ERRSTAT_NAN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_NAN_SHIFT)) & POWERQUAD_ERRSTAT_NAN_MASK)\r
+#define POWERQUAD_ERRSTAT_FIXEDOVERFLOW_MASK (0x4U)\r
+#define POWERQUAD_ERRSTAT_FIXEDOVERFLOW_SHIFT (2U)\r
+/*! FIXEDOVERFLOW - fixed_pt_overflow\r
+ */\r
+#define POWERQUAD_ERRSTAT_FIXEDOVERFLOW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_FIXEDOVERFLOW_SHIFT)) & POWERQUAD_ERRSTAT_FIXEDOVERFLOW_MASK)\r
+#define POWERQUAD_ERRSTAT_UNDERFLOW_MASK (0x8U)\r
+#define POWERQUAD_ERRSTAT_UNDERFLOW_SHIFT (3U)\r
+/*! UNDERFLOW - underflow\r
+ */\r
+#define POWERQUAD_ERRSTAT_UNDERFLOW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_UNDERFLOW_SHIFT)) & POWERQUAD_ERRSTAT_UNDERFLOW_MASK)\r
+#define POWERQUAD_ERRSTAT_BUSERROR_MASK (0x10U)\r
+#define POWERQUAD_ERRSTAT_BUSERROR_SHIFT (4U)\r
+/*! BUSERROR - bus_error\r
+ */\r
+#define POWERQUAD_ERRSTAT_BUSERROR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_ERRSTAT_BUSERROR_SHIFT)) & POWERQUAD_ERRSTAT_BUSERROR_MASK)\r
/*! @} */\r
\r
/*! @name INTREN - INTERRUPT enable register */\r
/*! @{ */\r
-#define POWERQUAD_INTREN_INTR_OFLOW_MASK (0x1U)\r
-#define POWERQUAD_INTREN_INTR_OFLOW_SHIFT (0U)\r
-#define POWERQUAD_INTREN_INTR_OFLOW(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_OFLOW_SHIFT)) & POWERQUAD_INTREN_INTR_OFLOW_MASK)\r
-#define POWERQUAD_INTREN_INTR_NAN_MASK (0x2U)\r
-#define POWERQUAD_INTREN_INTR_NAN_SHIFT (1U)\r
-#define POWERQUAD_INTREN_INTR_NAN(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_NAN_SHIFT)) & POWERQUAD_INTREN_INTR_NAN_MASK)\r
-#define POWERQUAD_INTREN_INTR_FIXED_MASK (0x4U)\r
-#define POWERQUAD_INTREN_INTR_FIXED_SHIFT (2U)\r
-#define POWERQUAD_INTREN_INTR_FIXED(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_FIXED_SHIFT)) & POWERQUAD_INTREN_INTR_FIXED_MASK)\r
-#define POWERQUAD_INTREN_INTR_UFLOW_MASK (0x8U)\r
-#define POWERQUAD_INTREN_INTR_UFLOW_SHIFT (3U)\r
-#define POWERQUAD_INTREN_INTR_UFLOW(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_UFLOW_SHIFT)) & POWERQUAD_INTREN_INTR_UFLOW_MASK)\r
-#define POWERQUAD_INTREN_INTR_BERR_MASK (0x10U)\r
-#define POWERQUAD_INTREN_INTR_BERR_SHIFT (4U)\r
-#define POWERQUAD_INTREN_INTR_BERR(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_BERR_SHIFT)) & POWERQUAD_INTREN_INTR_BERR_MASK)\r
-#define POWERQUAD_INTREN_INTR_COMP_MASK (0x80U)\r
-#define POWERQUAD_INTREN_INTR_COMP_SHIFT (7U)\r
-#define POWERQUAD_INTREN_INTR_COMP(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_COMP_SHIFT)) & POWERQUAD_INTREN_INTR_COMP_MASK)\r
+#define POWERQUAD_INTREN_INTR_OFLOW_MASK (0x1U)\r
+#define POWERQUAD_INTREN_INTR_OFLOW_SHIFT (0U)\r
+/*! intr_oflow - 1 : Enable interrupt on Floating point overflow\r
+ */\r
+#define POWERQUAD_INTREN_INTR_OFLOW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_OFLOW_SHIFT)) & POWERQUAD_INTREN_INTR_OFLOW_MASK)\r
+#define POWERQUAD_INTREN_INTR_NAN_MASK (0x2U)\r
+#define POWERQUAD_INTREN_INTR_NAN_SHIFT (1U)\r
+/*! intr_nan - 1 : Enable interrupt on Floating point NaN\r
+ */\r
+#define POWERQUAD_INTREN_INTR_NAN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_NAN_SHIFT)) & POWERQUAD_INTREN_INTR_NAN_MASK)\r
+#define POWERQUAD_INTREN_INTR_FIXED_MASK (0x4U)\r
+#define POWERQUAD_INTREN_INTR_FIXED_SHIFT (2U)\r
+/*! intr_fixed - 1: Enable interrupt on Fixed point Overflow\r
+ */\r
+#define POWERQUAD_INTREN_INTR_FIXED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_FIXED_SHIFT)) & POWERQUAD_INTREN_INTR_FIXED_MASK)\r
+#define POWERQUAD_INTREN_INTR_UFLOW_MASK (0x8U)\r
+#define POWERQUAD_INTREN_INTR_UFLOW_SHIFT (3U)\r
+/*! intr_uflow - 1 : Enable interrupt on Subnormal truncation\r
+ */\r
+#define POWERQUAD_INTREN_INTR_UFLOW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_UFLOW_SHIFT)) & POWERQUAD_INTREN_INTR_UFLOW_MASK)\r
+#define POWERQUAD_INTREN_INTR_BERR_MASK (0x10U)\r
+#define POWERQUAD_INTREN_INTR_BERR_SHIFT (4U)\r
+/*! intr_berr - 1: Enable interrupt on AHBM Buss Error\r
+ */\r
+#define POWERQUAD_INTREN_INTR_BERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_BERR_SHIFT)) & POWERQUAD_INTREN_INTR_BERR_MASK)\r
+#define POWERQUAD_INTREN_INTR_COMP_MASK (0x80U)\r
+#define POWERQUAD_INTREN_INTR_COMP_SHIFT (7U)\r
+/*! intr_comp - 1: Enable interrupt on instruction completion\r
+ */\r
+#define POWERQUAD_INTREN_INTR_COMP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTREN_INTR_COMP_SHIFT)) & POWERQUAD_INTREN_INTR_COMP_MASK)\r
/*! @} */\r
\r
/*! @name EVENTEN - Event Enable register */\r
/*! @{ */\r
-#define POWERQUAD_EVENTEN_EVENT_OFLOW_MASK (0x1U)\r
-#define POWERQUAD_EVENTEN_EVENT_OFLOW_SHIFT (0U)\r
-#define POWERQUAD_EVENTEN_EVENT_OFLOW(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_OFLOW_SHIFT)) & POWERQUAD_EVENTEN_EVENT_OFLOW_MASK)\r
-#define POWERQUAD_EVENTEN_EVENT_NAN_MASK (0x2U)\r
-#define POWERQUAD_EVENTEN_EVENT_NAN_SHIFT (1U)\r
-#define POWERQUAD_EVENTEN_EVENT_NAN(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_NAN_SHIFT)) & POWERQUAD_EVENTEN_EVENT_NAN_MASK)\r
-#define POWERQUAD_EVENTEN_EVENT_FIXED_MASK (0x4U)\r
-#define POWERQUAD_EVENTEN_EVENT_FIXED_SHIFT (2U)\r
-#define POWERQUAD_EVENTEN_EVENT_FIXED(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_FIXED_SHIFT)) & POWERQUAD_EVENTEN_EVENT_FIXED_MASK)\r
-#define POWERQUAD_EVENTEN_EVENT_UFLOW_MASK (0x8U)\r
-#define POWERQUAD_EVENTEN_EVENT_UFLOW_SHIFT (3U)\r
-#define POWERQUAD_EVENTEN_EVENT_UFLOW(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_UFLOW_SHIFT)) & POWERQUAD_EVENTEN_EVENT_UFLOW_MASK)\r
-#define POWERQUAD_EVENTEN_EVENT_BERR_MASK (0x10U)\r
-#define POWERQUAD_EVENTEN_EVENT_BERR_SHIFT (4U)\r
-#define POWERQUAD_EVENTEN_EVENT_BERR(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_BERR_SHIFT)) & POWERQUAD_EVENTEN_EVENT_BERR_MASK)\r
-#define POWERQUAD_EVENTEN_EVENT_COMP_MASK (0x80U)\r
-#define POWERQUAD_EVENTEN_EVENT_COMP_SHIFT (7U)\r
-#define POWERQUAD_EVENTEN_EVENT_COMP(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_COMP_SHIFT)) & POWERQUAD_EVENTEN_EVENT_COMP_MASK)\r
+#define POWERQUAD_EVENTEN_EVENT_OFLOW_MASK (0x1U)\r
+#define POWERQUAD_EVENTEN_EVENT_OFLOW_SHIFT (0U)\r
+/*! event_oflow - 1 : Enable event trigger on Floating point overflow\r
+ */\r
+#define POWERQUAD_EVENTEN_EVENT_OFLOW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_OFLOW_SHIFT)) & POWERQUAD_EVENTEN_EVENT_OFLOW_MASK)\r
+#define POWERQUAD_EVENTEN_EVENT_NAN_MASK (0x2U)\r
+#define POWERQUAD_EVENTEN_EVENT_NAN_SHIFT (1U)\r
+/*! event_nan - 1 : Enable event trigger on Floating point NaN\r
+ */\r
+#define POWERQUAD_EVENTEN_EVENT_NAN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_NAN_SHIFT)) & POWERQUAD_EVENTEN_EVENT_NAN_MASK)\r
+#define POWERQUAD_EVENTEN_EVENT_FIXED_MASK (0x4U)\r
+#define POWERQUAD_EVENTEN_EVENT_FIXED_SHIFT (2U)\r
+/*! event_fixed - 1: Enable event trigger on Fixed point Overflow\r
+ */\r
+#define POWERQUAD_EVENTEN_EVENT_FIXED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_FIXED_SHIFT)) & POWERQUAD_EVENTEN_EVENT_FIXED_MASK)\r
+#define POWERQUAD_EVENTEN_EVENT_UFLOW_MASK (0x8U)\r
+#define POWERQUAD_EVENTEN_EVENT_UFLOW_SHIFT (3U)\r
+/*! event_uflow - 1 : Enable event trigger on Subnormal truncation\r
+ */\r
+#define POWERQUAD_EVENTEN_EVENT_UFLOW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_UFLOW_SHIFT)) & POWERQUAD_EVENTEN_EVENT_UFLOW_MASK)\r
+#define POWERQUAD_EVENTEN_EVENT_BERR_MASK (0x10U)\r
+#define POWERQUAD_EVENTEN_EVENT_BERR_SHIFT (4U)\r
+/*! event_berr - 1: Enable event trigger on AHBM Buss Error\r
+ */\r
+#define POWERQUAD_EVENTEN_EVENT_BERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_BERR_SHIFT)) & POWERQUAD_EVENTEN_EVENT_BERR_MASK)\r
+#define POWERQUAD_EVENTEN_EVENT_COMP_MASK (0x80U)\r
+#define POWERQUAD_EVENTEN_EVENT_COMP_SHIFT (7U)\r
+/*! event_comp - 1: Enable event trigger on instruction completion\r
+ */\r
+#define POWERQUAD_EVENTEN_EVENT_COMP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_EVENTEN_EVENT_COMP_SHIFT)) & POWERQUAD_EVENTEN_EVENT_COMP_MASK)\r
/*! @} */\r
\r
/*! @name INTRSTAT - INTERRUPT STATUS register */\r
/*! @{ */\r
-#define POWERQUAD_INTRSTAT_INTR_STAT_MASK (0x1U)\r
-#define POWERQUAD_INTRSTAT_INTR_STAT_SHIFT (0U)\r
-#define POWERQUAD_INTRSTAT_INTR_STAT(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTRSTAT_INTR_STAT_SHIFT)) & POWERQUAD_INTRSTAT_INTR_STAT_MASK)\r
+#define POWERQUAD_INTRSTAT_INTR_STAT_MASK (0x1U)\r
+#define POWERQUAD_INTRSTAT_INTR_STAT_SHIFT (0U)\r
+/*! intr_stat - Intr status ( 1 bit to indicate interrupt captured, 0 means no new interrupt), write any value will\r
+ * clear this bit\r
+ */\r
+#define POWERQUAD_INTRSTAT_INTR_STAT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_INTRSTAT_INTR_STAT_SHIFT)) & POWERQUAD_INTRSTAT_INTR_STAT_MASK)\r
/*! @} */\r
\r
/*! @name GPREG - General purpose register bank N. */\r
/*! @{ */\r
-#define POWERQUAD_GPREG_GPREG_MASK (0xFFFFFFFFU)\r
-#define POWERQUAD_GPREG_GPREG_SHIFT (0U)\r
-#define POWERQUAD_GPREG_GPREG(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_GPREG_GPREG_SHIFT)) & POWERQUAD_GPREG_GPREG_MASK)\r
+#define POWERQUAD_GPREG_GPREG_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_GPREG_GPREG_SHIFT (0U)\r
+/*! gpreg - General purpose register bank\r
+ */\r
+#define POWERQUAD_GPREG_GPREG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_GPREG_GPREG_SHIFT)) & POWERQUAD_GPREG_GPREG_MASK)\r
/*! @} */\r
\r
/* The count of POWERQUAD_GPREG */\r
-#define POWERQUAD_GPREG_COUNT (16U)\r
+#define POWERQUAD_GPREG_COUNT (16U)\r
\r
/*! @name COMPREGS_COMPREG - Compute register bank */\r
/*! @{ */\r
-#define POWERQUAD_COMPREGS_COMPREG_COMPREG_MASK (0xFFFFFFFFU)\r
+#define POWERQUAD_COMPREGS_COMPREG_COMPREG_MASK (0xFFFFFFFFU)\r
#define POWERQUAD_COMPREGS_COMPREG_COMPREG_SHIFT (0U)\r
-#define POWERQUAD_COMPREGS_COMPREG_COMPREG(x) (((uint32_t)(((uint32_t)(x)) << POWERQUAD_COMPREGS_COMPREG_COMPREG_SHIFT)) & POWERQUAD_COMPREGS_COMPREG_COMPREG_MASK)\r
+/*! compreg - Compute register bank\r
+ */\r
+#define POWERQUAD_COMPREGS_COMPREG_COMPREG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << POWERQUAD_COMPREGS_COMPREG_COMPREG_SHIFT)) & \\r
+ POWERQUAD_COMPREGS_COMPREG_COMPREG_MASK)\r
/*! @} */\r
\r
/* The count of POWERQUAD_COMPREGS_COMPREG */\r
-#define POWERQUAD_COMPREGS_COMPREG_COUNT (8U)\r
-\r
+#define POWERQUAD_COMPREGS_COMPREG_COUNT (8U)\r
\r
/*!\r
* @}\r
*/ /* end of group POWERQUAD_Register_Masks */\r
\r
-\r
/* POWERQUAD - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral POWERQUAD base address */\r
- #define POWERQUAD_BASE (0x500A6000u)\r
- /** Peripheral POWERQUAD base address */\r
- #define POWERQUAD_BASE_NS (0x400A6000u)\r
- /** Peripheral POWERQUAD base pointer */\r
- #define POWERQUAD ((POWERQUAD_Type *)POWERQUAD_BASE)\r
- /** Peripheral POWERQUAD base pointer */\r
- #define POWERQUAD_NS ((POWERQUAD_Type *)POWERQUAD_BASE_NS)\r
- /** Array initializer of POWERQUAD peripheral base addresses */\r
- #define POWERQUAD_BASE_ADDRS { POWERQUAD_BASE }\r
- /** Array initializer of POWERQUAD peripheral base pointers */\r
- #define POWERQUAD_BASE_PTRS { POWERQUAD }\r
- /** Array initializer of POWERQUAD peripheral base addresses */\r
- #define POWERQUAD_BASE_ADDRS_NS { POWERQUAD_BASE_NS }\r
- /** Array initializer of POWERQUAD peripheral base pointers */\r
- #define POWERQUAD_BASE_PTRS_NS { POWERQUAD_NS }\r
+/** Peripheral POWERQUAD base address */\r
+#define POWERQUAD_BASE (0x500A6000u)\r
+/** Peripheral POWERQUAD base address */\r
+#define POWERQUAD_BASE_NS (0x400A6000u)\r
+/** Peripheral POWERQUAD base pointer */\r
+#define POWERQUAD ((POWERQUAD_Type *)POWERQUAD_BASE)\r
+/** Peripheral POWERQUAD base pointer */\r
+#define POWERQUAD_NS ((POWERQUAD_Type *)POWERQUAD_BASE_NS)\r
+/** Array initializer of POWERQUAD peripheral base addresses */\r
+#define POWERQUAD_BASE_ADDRS \\r
+ { \\r
+ POWERQUAD_BASE \\r
+ }\r
+/** Array initializer of POWERQUAD peripheral base pointers */\r
+#define POWERQUAD_BASE_PTRS \\r
+ { \\r
+ POWERQUAD \\r
+ }\r
+/** Array initializer of POWERQUAD peripheral base addresses */\r
+#define POWERQUAD_BASE_ADDRS_NS \\r
+ { \\r
+ POWERQUAD_BASE_NS \\r
+ }\r
+/** Array initializer of POWERQUAD peripheral base pointers */\r
+#define POWERQUAD_BASE_PTRS_NS \\r
+ { \\r
+ POWERQUAD_NS \\r
+ }\r
#else\r
- /** Peripheral POWERQUAD base address */\r
- #define POWERQUAD_BASE (0x400A6000u)\r
- /** Peripheral POWERQUAD base pointer */\r
- #define POWERQUAD ((POWERQUAD_Type *)POWERQUAD_BASE)\r
- /** Array initializer of POWERQUAD peripheral base addresses */\r
- #define POWERQUAD_BASE_ADDRS { POWERQUAD_BASE }\r
- /** Array initializer of POWERQUAD peripheral base pointers */\r
- #define POWERQUAD_BASE_PTRS { POWERQUAD }\r
+/** Peripheral POWERQUAD base address */\r
+#define POWERQUAD_BASE (0x400A6000u)\r
+/** Peripheral POWERQUAD base pointer */\r
+#define POWERQUAD ((POWERQUAD_Type *)POWERQUAD_BASE)\r
+/** Array initializer of POWERQUAD peripheral base addresses */\r
+#define POWERQUAD_BASE_ADDRS \\r
+ { \\r
+ POWERQUAD_BASE \\r
+ }\r
+/** Array initializer of POWERQUAD peripheral base pointers */\r
+#define POWERQUAD_BASE_PTRS \\r
+ { \\r
+ POWERQUAD \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group POWERQUAD_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- PRINCE Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** PRINCE - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t ENC_ENABLE; /**< Encryption Enable register, offset: 0x0 */\r
- __O uint32_t MASK_LSB; /**< Data Mask register, 32 Least Significant Bits, offset: 0x4 */\r
- __O uint32_t MASK_MSB; /**< Data Mask register, 32 Most Significant Bits, offset: 0x8 */\r
- __IO uint32_t LOCK; /**< Lock register, offset: 0xC */\r
- __O uint32_t IV_LSB0; /**< Initial Vector register for region 0, Least Significant Bits, offset: 0x10 */\r
- __O uint32_t IV_MSB0; /**< Initial Vector register for region 0, Most Significant Bits, offset: 0x14 */\r
- __IO uint32_t BASE_ADDR0; /**< Base Address for region 0 register, offset: 0x18 */\r
- __IO uint32_t SR_ENABLE0; /**< Sub-Region Enable register for region 0, offset: 0x1C */\r
- __O uint32_t IV_LSB1; /**< Initial Vector register for region 1, Least Significant Bits, offset: 0x20 */\r
- __O uint32_t IV_MSB1; /**< Initial Vector register for region 1, Most Significant Bits, offset: 0x24 */\r
- __IO uint32_t BASE_ADDR1; /**< Base Address for region 1 register, offset: 0x28 */\r
- __IO uint32_t SR_ENABLE1; /**< Sub-Region Enable register for region 1, offset: 0x2C */\r
- __O uint32_t IV_LSB2; /**< Initial Vector register for region 2, Least Significant Bits, offset: 0x30 */\r
- __O uint32_t IV_MSB2; /**< Initial Vector register for region 2, Most Significant Bits, offset: 0x34 */\r
- __IO uint32_t BASE_ADDR2; /**< Base Address for region 2 register, offset: 0x38 */\r
- __IO uint32_t SR_ENABLE2; /**< Sub-Region Enable register for region 2, offset: 0x3C */\r
+typedef struct\r
+{\r
+ __IO uint32_t ENC_ENABLE; /**< Encryption Enable register, offset: 0x0 */\r
+ __O uint32_t MASK_LSB; /**< Data Mask register, 32 Least Significant Bits, offset: 0x4 */\r
+ __O uint32_t MASK_MSB; /**< Data Mask register, 32 Most Significant Bits, offset: 0x8 */\r
+ __IO uint32_t LOCK; /**< Lock register, offset: 0xC */\r
+ __O uint32_t IV_LSB0; /**< Initial Vector register for region 0, Least Significant Bits, offset: 0x10 */\r
+ __O uint32_t IV_MSB0; /**< Initial Vector register for region 0, Most Significant Bits, offset: 0x14 */\r
+ __IO uint32_t BASE_ADDR0; /**< Base Address for region 0 register, offset: 0x18 */\r
+ __IO uint32_t SR_ENABLE0; /**< Sub-Region Enable register for region 0, offset: 0x1C */\r
+ __O uint32_t IV_LSB1; /**< Initial Vector register for region 1, Least Significant Bits, offset: 0x20 */\r
+ __O uint32_t IV_MSB1; /**< Initial Vector register for region 1, Most Significant Bits, offset: 0x24 */\r
+ __IO uint32_t BASE_ADDR1; /**< Base Address for region 1 register, offset: 0x28 */\r
+ __IO uint32_t SR_ENABLE1; /**< Sub-Region Enable register for region 1, offset: 0x2C */\r
+ __O uint32_t IV_LSB2; /**< Initial Vector register for region 2, Least Significant Bits, offset: 0x30 */\r
+ __O uint32_t IV_MSB2; /**< Initial Vector register for region 2, Most Significant Bits, offset: 0x34 */\r
+ __IO uint32_t BASE_ADDR2; /**< Base Address for region 2 register, offset: 0x38 */\r
+ __IO uint32_t SR_ENABLE2; /**< Sub-Region Enable register for region 2, offset: 0x3C */\r
} PRINCE_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name ENC_ENABLE - Encryption Enable register */\r
/*! @{ */\r
-#define PRINCE_ENC_ENABLE_EN_MASK (0x1U)\r
-#define PRINCE_ENC_ENABLE_EN_SHIFT (0U)\r
+#define PRINCE_ENC_ENABLE_EN_MASK (0x1U)\r
+#define PRINCE_ENC_ENABLE_EN_SHIFT (0U)\r
/*! EN - Encryption Enable.\r
- * 0b0..Encryption of writes to the flash controller DATAW* registers is disabled..\r
- * 0b1..Encryption of writes to the flash controller DATAW* registers is enabled..\r
+ * 0b0..Encryption of writes to the flash controller DATAW* registers is disabled.\r
+ * 0b1..Encryption of writes to the flash controller DATAW* registers is enabled.\r
*/\r
-#define PRINCE_ENC_ENABLE_EN(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_ENC_ENABLE_EN_SHIFT)) & PRINCE_ENC_ENABLE_EN_MASK)\r
+#define PRINCE_ENC_ENABLE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_ENC_ENABLE_EN_SHIFT)) & PRINCE_ENC_ENABLE_EN_MASK)\r
/*! @} */\r
\r
/*! @name MASK_LSB - Data Mask register, 32 Least Significant Bits */\r
/*! @{ */\r
-#define PRINCE_MASK_LSB_MASKVAL_MASK (0xFFFFFFFFU)\r
-#define PRINCE_MASK_LSB_MASKVAL_SHIFT (0U)\r
-#define PRINCE_MASK_LSB_MASKVAL(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_MASK_LSB_MASKVAL_SHIFT)) & PRINCE_MASK_LSB_MASKVAL_MASK)\r
+#define PRINCE_MASK_LSB_MASKVAL_MASK (0xFFFFFFFFU)\r
+#define PRINCE_MASK_LSB_MASKVAL_SHIFT (0U)\r
+/*! MASKVAL - Value of the 32 Least Significant Bits of the 64-bit data mask.\r
+ */\r
+#define PRINCE_MASK_LSB_MASKVAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_MASK_LSB_MASKVAL_SHIFT)) & PRINCE_MASK_LSB_MASKVAL_MASK)\r
/*! @} */\r
\r
/*! @name MASK_MSB - Data Mask register, 32 Most Significant Bits */\r
/*! @{ */\r
-#define PRINCE_MASK_MSB_MASKVAL_MASK (0xFFFFFFFFU)\r
-#define PRINCE_MASK_MSB_MASKVAL_SHIFT (0U)\r
-#define PRINCE_MASK_MSB_MASKVAL(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_MASK_MSB_MASKVAL_SHIFT)) & PRINCE_MASK_MSB_MASKVAL_MASK)\r
+#define PRINCE_MASK_MSB_MASKVAL_MASK (0xFFFFFFFFU)\r
+#define PRINCE_MASK_MSB_MASKVAL_SHIFT (0U)\r
+/*! MASKVAL - Value of the 32 Most Significant Bits of the 64-bit data mask.\r
+ */\r
+#define PRINCE_MASK_MSB_MASKVAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_MASK_MSB_MASKVAL_SHIFT)) & PRINCE_MASK_MSB_MASKVAL_MASK)\r
/*! @} */\r
\r
/*! @name LOCK - Lock register */\r
/*! @{ */\r
-#define PRINCE_LOCK_LOCKREG0_MASK (0x1U)\r
-#define PRINCE_LOCK_LOCKREG0_SHIFT (0U)\r
+#define PRINCE_LOCK_LOCKREG0_MASK (0x1U)\r
+#define PRINCE_LOCK_LOCKREG0_SHIFT (0U)\r
/*! LOCKREG0 - Lock Region 0 registers.\r
* 0b0..Disabled. IV_LSB0, IV_MSB0, BASE_ADDR0, and SR_ENABLE0 are writable..\r
* 0b1..Enabled. IV_LSB0, IV_MSB0, BASE_ADDR0, and SR_ENABLE0 are not writable..\r
*/\r
-#define PRINCE_LOCK_LOCKREG0(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_LOCK_LOCKREG0_SHIFT)) & PRINCE_LOCK_LOCKREG0_MASK)\r
-#define PRINCE_LOCK_LOCKREG1_MASK (0x2U)\r
-#define PRINCE_LOCK_LOCKREG1_SHIFT (1U)\r
+#define PRINCE_LOCK_LOCKREG0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_LOCK_LOCKREG0_SHIFT)) & PRINCE_LOCK_LOCKREG0_MASK)\r
+#define PRINCE_LOCK_LOCKREG1_MASK (0x2U)\r
+#define PRINCE_LOCK_LOCKREG1_SHIFT (1U)\r
/*! LOCKREG1 - Lock Region 1 registers.\r
* 0b0..Disabled. IV_LSB1, IV_MSB1, BASE_ADDR1, and SR_ENABLE1 are writable..\r
* 0b1..Enabled. IV_LSB1, IV_MSB1, BASE_ADDR1, and SR_ENABLE1 are not writable..\r
*/\r
-#define PRINCE_LOCK_LOCKREG1(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_LOCK_LOCKREG1_SHIFT)) & PRINCE_LOCK_LOCKREG1_MASK)\r
-#define PRINCE_LOCK_LOCKREG2_MASK (0x4U)\r
-#define PRINCE_LOCK_LOCKREG2_SHIFT (2U)\r
+#define PRINCE_LOCK_LOCKREG1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_LOCK_LOCKREG1_SHIFT)) & PRINCE_LOCK_LOCKREG1_MASK)\r
+#define PRINCE_LOCK_LOCKREG2_MASK (0x4U)\r
+#define PRINCE_LOCK_LOCKREG2_SHIFT (2U)\r
/*! LOCKREG2 - Lock Region 2 registers.\r
* 0b0..Disabled. IV_LSB2, IV_MSB2, BASE_ADDR2, and SR_ENABLE2 are writable..\r
* 0b1..Enabled. IV_LSB2, IV_MSB2, BASE_ADDR2, and SR_ENABLE2 are not writable..\r
*/\r
-#define PRINCE_LOCK_LOCKREG2(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_LOCK_LOCKREG2_SHIFT)) & PRINCE_LOCK_LOCKREG2_MASK)\r
-#define PRINCE_LOCK_LOCKMASK_MASK (0x100U)\r
-#define PRINCE_LOCK_LOCKMASK_SHIFT (8U)\r
+#define PRINCE_LOCK_LOCKREG2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_LOCK_LOCKREG2_SHIFT)) & PRINCE_LOCK_LOCKREG2_MASK)\r
+#define PRINCE_LOCK_LOCKMASK_MASK (0x100U)\r
+#define PRINCE_LOCK_LOCKMASK_SHIFT (8U)\r
/*! LOCKMASK - Lock the Mask registers.\r
* 0b0..Disabled. MASK_LSB, and MASK_MSB are writable..\r
* 0b1..Enabled. MASK_LSB, and MASK_MSB are not writable..\r
*/\r
-#define PRINCE_LOCK_LOCKMASK(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_LOCK_LOCKMASK_SHIFT)) & PRINCE_LOCK_LOCKMASK_MASK)\r
+#define PRINCE_LOCK_LOCKMASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_LOCK_LOCKMASK_SHIFT)) & PRINCE_LOCK_LOCKMASK_MASK)\r
/*! @} */\r
\r
/*! @name IV_LSB0 - Initial Vector register for region 0, Least Significant Bits */\r
/*! @{ */\r
-#define PRINCE_IV_LSB0_IVVAL_MASK (0xFFFFFFFFU)\r
-#define PRINCE_IV_LSB0_IVVAL_SHIFT (0U)\r
-#define PRINCE_IV_LSB0_IVVAL(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_LSB0_IVVAL_SHIFT)) & PRINCE_IV_LSB0_IVVAL_MASK)\r
+#define PRINCE_IV_LSB0_IVVAL_MASK (0xFFFFFFFFU)\r
+#define PRINCE_IV_LSB0_IVVAL_SHIFT (0U)\r
+/*! IVVAL - Initial Vector value for the 32 Least Significant Bits of the 64-bit Initial Vector.\r
+ */\r
+#define PRINCE_IV_LSB0_IVVAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_LSB0_IVVAL_SHIFT)) & PRINCE_IV_LSB0_IVVAL_MASK)\r
/*! @} */\r
\r
/*! @name IV_MSB0 - Initial Vector register for region 0, Most Significant Bits */\r
/*! @{ */\r
-#define PRINCE_IV_MSB0_IVVAL_MASK (0xFFFFFFFFU)\r
-#define PRINCE_IV_MSB0_IVVAL_SHIFT (0U)\r
-#define PRINCE_IV_MSB0_IVVAL(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_MSB0_IVVAL_SHIFT)) & PRINCE_IV_MSB0_IVVAL_MASK)\r
+#define PRINCE_IV_MSB0_IVVAL_MASK (0xFFFFFFFFU)\r
+#define PRINCE_IV_MSB0_IVVAL_SHIFT (0U)\r
+/*! IVVAL - Initial Vector value for the 32 Most Significant Bits of the 64-bit Initial Vector.\r
+ */\r
+#define PRINCE_IV_MSB0_IVVAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_MSB0_IVVAL_SHIFT)) & PRINCE_IV_MSB0_IVVAL_MASK)\r
/*! @} */\r
\r
/*! @name BASE_ADDR0 - Base Address for region 0 register */\r
/*! @{ */\r
-#define PRINCE_BASE_ADDR0_ADDR_FIXED_MASK (0x3FFFFU)\r
-#define PRINCE_BASE_ADDR0_ADDR_FIXED_SHIFT (0U)\r
-#define PRINCE_BASE_ADDR0_ADDR_FIXED(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR0_ADDR_FIXED_SHIFT)) & PRINCE_BASE_ADDR0_ADDR_FIXED_MASK)\r
-#define PRINCE_BASE_ADDR0_ADDR_PRG_MASK (0xC0000U)\r
-#define PRINCE_BASE_ADDR0_ADDR_PRG_SHIFT (18U)\r
-#define PRINCE_BASE_ADDR0_ADDR_PRG(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR0_ADDR_PRG_SHIFT)) & PRINCE_BASE_ADDR0_ADDR_PRG_MASK)\r
+#define PRINCE_BASE_ADDR0_ADDR_FIXED_MASK (0x3FFFFU)\r
+#define PRINCE_BASE_ADDR0_ADDR_FIXED_SHIFT (0U)\r
+/*! ADDR_FIXED - Fixed portion of the base address of region 0.\r
+ */\r
+#define PRINCE_BASE_ADDR0_ADDR_FIXED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR0_ADDR_FIXED_SHIFT)) & PRINCE_BASE_ADDR0_ADDR_FIXED_MASK)\r
+#define PRINCE_BASE_ADDR0_ADDR_PRG_MASK (0xC0000U)\r
+#define PRINCE_BASE_ADDR0_ADDR_PRG_SHIFT (18U)\r
+/*! ADDR_PRG - Programmable portion of the base address of region 0.\r
+ */\r
+#define PRINCE_BASE_ADDR0_ADDR_PRG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR0_ADDR_PRG_SHIFT)) & PRINCE_BASE_ADDR0_ADDR_PRG_MASK)\r
/*! @} */\r
\r
/*! @name SR_ENABLE0 - Sub-Region Enable register for region 0 */\r
/*! @{ */\r
-#define PRINCE_SR_ENABLE0_EN_MASK (0xFFFFFFFFU)\r
-#define PRINCE_SR_ENABLE0_EN_SHIFT (0U)\r
-#define PRINCE_SR_ENABLE0_EN(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_SR_ENABLE0_EN_SHIFT)) & PRINCE_SR_ENABLE0_EN_MASK)\r
+#define PRINCE_SR_ENABLE0_EN_MASK (0xFFFFFFFFU)\r
+#define PRINCE_SR_ENABLE0_EN_SHIFT (0U)\r
+/*! EN - Each bit in this field enables an 8KB subregion for encryption at offset 8KB*bitnum of region 0.\r
+ */\r
+#define PRINCE_SR_ENABLE0_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_SR_ENABLE0_EN_SHIFT)) & PRINCE_SR_ENABLE0_EN_MASK)\r
/*! @} */\r
\r
/*! @name IV_LSB1 - Initial Vector register for region 1, Least Significant Bits */\r
/*! @{ */\r
-#define PRINCE_IV_LSB1_IVVAL_MASK (0xFFFFFFFFU)\r
-#define PRINCE_IV_LSB1_IVVAL_SHIFT (0U)\r
-#define PRINCE_IV_LSB1_IVVAL(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_LSB1_IVVAL_SHIFT)) & PRINCE_IV_LSB1_IVVAL_MASK)\r
+#define PRINCE_IV_LSB1_IVVAL_MASK (0xFFFFFFFFU)\r
+#define PRINCE_IV_LSB1_IVVAL_SHIFT (0U)\r
+/*! IVVAL - Initial Vector value for the 32 Least Significant Bits of the 64-bit Initial Vector.\r
+ */\r
+#define PRINCE_IV_LSB1_IVVAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_LSB1_IVVAL_SHIFT)) & PRINCE_IV_LSB1_IVVAL_MASK)\r
/*! @} */\r
\r
/*! @name IV_MSB1 - Initial Vector register for region 1, Most Significant Bits */\r
/*! @{ */\r
-#define PRINCE_IV_MSB1_IVVAL_MASK (0xFFFFFFFFU)\r
-#define PRINCE_IV_MSB1_IVVAL_SHIFT (0U)\r
-#define PRINCE_IV_MSB1_IVVAL(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_MSB1_IVVAL_SHIFT)) & PRINCE_IV_MSB1_IVVAL_MASK)\r
+#define PRINCE_IV_MSB1_IVVAL_MASK (0xFFFFFFFFU)\r
+#define PRINCE_IV_MSB1_IVVAL_SHIFT (0U)\r
+/*! IVVAL - Initial Vector value for the 32 Most Significant Bits of the 64-bit Initial Vector.\r
+ */\r
+#define PRINCE_IV_MSB1_IVVAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_MSB1_IVVAL_SHIFT)) & PRINCE_IV_MSB1_IVVAL_MASK)\r
/*! @} */\r
\r
/*! @name BASE_ADDR1 - Base Address for region 1 register */\r
/*! @{ */\r
-#define PRINCE_BASE_ADDR1_ADDR_FIXED_MASK (0x3FFFFU)\r
-#define PRINCE_BASE_ADDR1_ADDR_FIXED_SHIFT (0U)\r
-#define PRINCE_BASE_ADDR1_ADDR_FIXED(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR1_ADDR_FIXED_SHIFT)) & PRINCE_BASE_ADDR1_ADDR_FIXED_MASK)\r
-#define PRINCE_BASE_ADDR1_ADDR_PRG_MASK (0xC0000U)\r
-#define PRINCE_BASE_ADDR1_ADDR_PRG_SHIFT (18U)\r
-#define PRINCE_BASE_ADDR1_ADDR_PRG(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR1_ADDR_PRG_SHIFT)) & PRINCE_BASE_ADDR1_ADDR_PRG_MASK)\r
+#define PRINCE_BASE_ADDR1_ADDR_FIXED_MASK (0x3FFFFU)\r
+#define PRINCE_BASE_ADDR1_ADDR_FIXED_SHIFT (0U)\r
+/*! ADDR_FIXED - Fixed portion of the base address of region 1.\r
+ */\r
+#define PRINCE_BASE_ADDR1_ADDR_FIXED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR1_ADDR_FIXED_SHIFT)) & PRINCE_BASE_ADDR1_ADDR_FIXED_MASK)\r
+#define PRINCE_BASE_ADDR1_ADDR_PRG_MASK (0xC0000U)\r
+#define PRINCE_BASE_ADDR1_ADDR_PRG_SHIFT (18U)\r
+/*! ADDR_PRG - Programmable portion of the base address of region 1.\r
+ */\r
+#define PRINCE_BASE_ADDR1_ADDR_PRG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR1_ADDR_PRG_SHIFT)) & PRINCE_BASE_ADDR1_ADDR_PRG_MASK)\r
/*! @} */\r
\r
/*! @name SR_ENABLE1 - Sub-Region Enable register for region 1 */\r
/*! @{ */\r
-#define PRINCE_SR_ENABLE1_EN_MASK (0xFFFFFFFFU)\r
-#define PRINCE_SR_ENABLE1_EN_SHIFT (0U)\r
-#define PRINCE_SR_ENABLE1_EN(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_SR_ENABLE1_EN_SHIFT)) & PRINCE_SR_ENABLE1_EN_MASK)\r
+#define PRINCE_SR_ENABLE1_EN_MASK (0xFFFFFFFFU)\r
+#define PRINCE_SR_ENABLE1_EN_SHIFT (0U)\r
+/*! EN - Each bit in this field enables an 8KB subregion for encryption at offset 8KB*bitnum of region 1.\r
+ */\r
+#define PRINCE_SR_ENABLE1_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_SR_ENABLE1_EN_SHIFT)) & PRINCE_SR_ENABLE1_EN_MASK)\r
/*! @} */\r
\r
/*! @name IV_LSB2 - Initial Vector register for region 2, Least Significant Bits */\r
/*! @{ */\r
-#define PRINCE_IV_LSB2_IVVAL_MASK (0xFFFFFFFFU)\r
-#define PRINCE_IV_LSB2_IVVAL_SHIFT (0U)\r
-#define PRINCE_IV_LSB2_IVVAL(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_LSB2_IVVAL_SHIFT)) & PRINCE_IV_LSB2_IVVAL_MASK)\r
+#define PRINCE_IV_LSB2_IVVAL_MASK (0xFFFFFFFFU)\r
+#define PRINCE_IV_LSB2_IVVAL_SHIFT (0U)\r
+/*! IVVAL - Initial Vector value for the 32 Least Significant Bits of the 64-bit Initial Vector.\r
+ */\r
+#define PRINCE_IV_LSB2_IVVAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_LSB2_IVVAL_SHIFT)) & PRINCE_IV_LSB2_IVVAL_MASK)\r
/*! @} */\r
\r
/*! @name IV_MSB2 - Initial Vector register for region 2, Most Significant Bits */\r
/*! @{ */\r
-#define PRINCE_IV_MSB2_IVVAL_MASK (0xFFFFFFFFU)\r
-#define PRINCE_IV_MSB2_IVVAL_SHIFT (0U)\r
-#define PRINCE_IV_MSB2_IVVAL(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_MSB2_IVVAL_SHIFT)) & PRINCE_IV_MSB2_IVVAL_MASK)\r
+#define PRINCE_IV_MSB2_IVVAL_MASK (0xFFFFFFFFU)\r
+#define PRINCE_IV_MSB2_IVVAL_SHIFT (0U)\r
+/*! IVVAL - Initial Vector value for the 32 Most Significant Bits of the 64-bit Initial Vector.\r
+ */\r
+#define PRINCE_IV_MSB2_IVVAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_IV_MSB2_IVVAL_SHIFT)) & PRINCE_IV_MSB2_IVVAL_MASK)\r
/*! @} */\r
\r
/*! @name BASE_ADDR2 - Base Address for region 2 register */\r
/*! @{ */\r
-#define PRINCE_BASE_ADDR2_ADDR_FIXED_MASK (0x3FFFFU)\r
-#define PRINCE_BASE_ADDR2_ADDR_FIXED_SHIFT (0U)\r
-#define PRINCE_BASE_ADDR2_ADDR_FIXED(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR2_ADDR_FIXED_SHIFT)) & PRINCE_BASE_ADDR2_ADDR_FIXED_MASK)\r
-#define PRINCE_BASE_ADDR2_ADDR_PRG_MASK (0xC0000U)\r
-#define PRINCE_BASE_ADDR2_ADDR_PRG_SHIFT (18U)\r
-#define PRINCE_BASE_ADDR2_ADDR_PRG(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR2_ADDR_PRG_SHIFT)) & PRINCE_BASE_ADDR2_ADDR_PRG_MASK)\r
+#define PRINCE_BASE_ADDR2_ADDR_FIXED_MASK (0x3FFFFU)\r
+#define PRINCE_BASE_ADDR2_ADDR_FIXED_SHIFT (0U)\r
+/*! ADDR_FIXED - Fixed portion of the base address of region 2.\r
+ */\r
+#define PRINCE_BASE_ADDR2_ADDR_FIXED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR2_ADDR_FIXED_SHIFT)) & PRINCE_BASE_ADDR2_ADDR_FIXED_MASK)\r
+#define PRINCE_BASE_ADDR2_ADDR_PRG_MASK (0xC0000U)\r
+#define PRINCE_BASE_ADDR2_ADDR_PRG_SHIFT (18U)\r
+/*! ADDR_PRG - Programmable portion of the base address of region 2.\r
+ */\r
+#define PRINCE_BASE_ADDR2_ADDR_PRG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_BASE_ADDR2_ADDR_PRG_SHIFT)) & PRINCE_BASE_ADDR2_ADDR_PRG_MASK)\r
/*! @} */\r
\r
/*! @name SR_ENABLE2 - Sub-Region Enable register for region 2 */\r
/*! @{ */\r
-#define PRINCE_SR_ENABLE2_EN_MASK (0xFFFFFFFFU)\r
-#define PRINCE_SR_ENABLE2_EN_SHIFT (0U)\r
-#define PRINCE_SR_ENABLE2_EN(x) (((uint32_t)(((uint32_t)(x)) << PRINCE_SR_ENABLE2_EN_SHIFT)) & PRINCE_SR_ENABLE2_EN_MASK)\r
+#define PRINCE_SR_ENABLE2_EN_MASK (0xFFFFFFFFU)\r
+#define PRINCE_SR_ENABLE2_EN_SHIFT (0U)\r
+/*! EN - Each bit in this field enables an 8KB subregion for encryption at offset 8KB*bitnum of region 2.\r
+ */\r
+#define PRINCE_SR_ENABLE2_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PRINCE_SR_ENABLE2_EN_SHIFT)) & PRINCE_SR_ENABLE2_EN_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group PRINCE_Register_Masks */\r
\r
-\r
/* PRINCE - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral PRINCE base address */\r
- #define PRINCE_BASE (0x50035000u)\r
- /** Peripheral PRINCE base address */\r
- #define PRINCE_BASE_NS (0x40035000u)\r
- /** Peripheral PRINCE base pointer */\r
- #define PRINCE ((PRINCE_Type *)PRINCE_BASE)\r
- /** Peripheral PRINCE base pointer */\r
- #define PRINCE_NS ((PRINCE_Type *)PRINCE_BASE_NS)\r
- /** Array initializer of PRINCE peripheral base addresses */\r
- #define PRINCE_BASE_ADDRS { PRINCE_BASE }\r
- /** Array initializer of PRINCE peripheral base pointers */\r
- #define PRINCE_BASE_PTRS { PRINCE }\r
- /** Array initializer of PRINCE peripheral base addresses */\r
- #define PRINCE_BASE_ADDRS_NS { PRINCE_BASE_NS }\r
- /** Array initializer of PRINCE peripheral base pointers */\r
- #define PRINCE_BASE_PTRS_NS { PRINCE_NS }\r
+/** Peripheral PRINCE base address */\r
+#define PRINCE_BASE (0x50035000u)\r
+/** Peripheral PRINCE base address */\r
+#define PRINCE_BASE_NS (0x40035000u)\r
+/** Peripheral PRINCE base pointer */\r
+#define PRINCE ((PRINCE_Type *)PRINCE_BASE)\r
+/** Peripheral PRINCE base pointer */\r
+#define PRINCE_NS ((PRINCE_Type *)PRINCE_BASE_NS)\r
+/** Array initializer of PRINCE peripheral base addresses */\r
+#define PRINCE_BASE_ADDRS \\r
+ { \\r
+ PRINCE_BASE \\r
+ }\r
+/** Array initializer of PRINCE peripheral base pointers */\r
+#define PRINCE_BASE_PTRS \\r
+ { \\r
+ PRINCE \\r
+ }\r
+/** Array initializer of PRINCE peripheral base addresses */\r
+#define PRINCE_BASE_ADDRS_NS \\r
+ { \\r
+ PRINCE_BASE_NS \\r
+ }\r
+/** Array initializer of PRINCE peripheral base pointers */\r
+#define PRINCE_BASE_PTRS_NS \\r
+ { \\r
+ PRINCE_NS \\r
+ }\r
#else\r
- /** Peripheral PRINCE base address */\r
- #define PRINCE_BASE (0x40035000u)\r
- /** Peripheral PRINCE base pointer */\r
- #define PRINCE ((PRINCE_Type *)PRINCE_BASE)\r
- /** Array initializer of PRINCE peripheral base addresses */\r
- #define PRINCE_BASE_ADDRS { PRINCE_BASE }\r
- /** Array initializer of PRINCE peripheral base pointers */\r
- #define PRINCE_BASE_PTRS { PRINCE }\r
+/** Peripheral PRINCE base address */\r
+#define PRINCE_BASE (0x40035000u)\r
+/** Peripheral PRINCE base pointer */\r
+#define PRINCE ((PRINCE_Type *)PRINCE_BASE)\r
+/** Array initializer of PRINCE peripheral base addresses */\r
+#define PRINCE_BASE_ADDRS \\r
+ { \\r
+ PRINCE_BASE \\r
+ }\r
+/** Array initializer of PRINCE peripheral base pointers */\r
+#define PRINCE_BASE_PTRS \\r
+ { \\r
+ PRINCE \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group PRINCE_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- PUF Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** PUF - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CTRL; /**< PUF Control register, offset: 0x0 */\r
- __IO uint32_t KEYINDEX; /**< PUF Key Index register, offset: 0x4 */\r
- __IO uint32_t KEYSIZE; /**< PUF Key Size register, offset: 0x8 */\r
- uint8_t RESERVED_0[20];\r
- __I uint32_t STAT; /**< PUF Status register, offset: 0x20 */\r
- uint8_t RESERVED_1[4];\r
- __I uint32_t ALLOW; /**< PUF Allow register, offset: 0x28 */\r
- uint8_t RESERVED_2[20];\r
- __O uint32_t KEYINPUT; /**< PUF Key Input register, offset: 0x40 */\r
- __O uint32_t CODEINPUT; /**< PUF Code Input register, offset: 0x44 */\r
- __I uint32_t CODEOUTPUT; /**< PUF Code Output register, offset: 0x48 */\r
- uint8_t RESERVED_3[20];\r
- __I uint32_t KEYOUTINDEX; /**< PUF Key Output Index register, offset: 0x60 */\r
- __I uint32_t KEYOUTPUT; /**< PUF Key Output register, offset: 0x64 */\r
- uint8_t RESERVED_4[116];\r
- __IO uint32_t IFSTAT; /**< PUF Interface Status and clear register, offset: 0xDC */\r
- uint8_t RESERVED_5[28];\r
- __I uint32_t VERSION; /**< PUF version register., offset: 0xFC */\r
- __IO uint32_t INTEN; /**< PUF Interrupt Enable, offset: 0x100 */\r
- __IO uint32_t INTSTAT; /**< PUF interrupt status, offset: 0x104 */\r
- __IO uint32_t PWRCTRL; /**< PUF RAM Power Control, offset: 0x108 */\r
- __IO uint32_t CFG; /**< PUF config register for block bits, offset: 0x10C */\r
- uint8_t RESERVED_6[240];\r
- __IO uint32_t KEYLOCK; /**< Only reset in case of full IC reset, offset: 0x200 */\r
- __IO uint32_t KEYENABLE; /**< , offset: 0x204 */\r
- __O uint32_t KEYRESET; /**< Reinitialize Keys shift registers counters, offset: 0x208 */\r
- __IO uint32_t IDXBLK_L; /**< , offset: 0x20C */\r
- __IO uint32_t IDXBLK_H_DP; /**< , offset: 0x210 */\r
- __O uint32_t KEYMASK[4]; /**< Only reset in case of full IC reset, array offset: 0x214, array step: 0x4 */\r
- uint8_t RESERVED_7[48];\r
- __IO uint32_t IDXBLK_H; /**< , offset: 0x254 */\r
- __IO uint32_t IDXBLK_L_DP; /**< , offset: 0x258 */\r
- __I uint32_t SHIFT_STATUS; /**< , offset: 0x25C */\r
+typedef struct\r
+{\r
+ __IO uint32_t CTRL; /**< PUF Control register, offset: 0x0 */\r
+ __IO uint32_t KEYINDEX; /**< PUF Key Index register, offset: 0x4 */\r
+ __IO uint32_t KEYSIZE; /**< PUF Key Size register, offset: 0x8 */\r
+ uint8_t RESERVED_0[20];\r
+ __I uint32_t STAT; /**< PUF Status register, offset: 0x20 */\r
+ uint8_t RESERVED_1[4];\r
+ __I uint32_t ALLOW; /**< PUF Allow register, offset: 0x28 */\r
+ uint8_t RESERVED_2[20];\r
+ __O uint32_t KEYINPUT; /**< PUF Key Input register, offset: 0x40 */\r
+ __O uint32_t CODEINPUT; /**< PUF Code Input register, offset: 0x44 */\r
+ __I uint32_t CODEOUTPUT; /**< PUF Code Output register, offset: 0x48 */\r
+ uint8_t RESERVED_3[20];\r
+ __I uint32_t KEYOUTINDEX; /**< PUF Key Output Index register, offset: 0x60 */\r
+ __I uint32_t KEYOUTPUT; /**< PUF Key Output register, offset: 0x64 */\r
+ uint8_t RESERVED_4[116];\r
+ __IO uint32_t IFSTAT; /**< PUF Interface Status and clear register, offset: 0xDC */\r
+ uint8_t RESERVED_5[28];\r
+ __I uint32_t VERSION; /**< PUF version register., offset: 0xFC */\r
+ __IO uint32_t INTEN; /**< PUF Interrupt Enable, offset: 0x100 */\r
+ __IO uint32_t INTSTAT; /**< PUF interrupt status, offset: 0x104 */\r
+ __IO uint32_t PWRCTRL; /**< PUF RAM Power Control, offset: 0x108 */\r
+ __IO uint32_t CFG; /**< PUF config register for block bits, offset: 0x10C */\r
+ uint8_t RESERVED_6[240];\r
+ __IO uint32_t KEYLOCK; /**< Only reset in case of full IC reset, offset: 0x200 */\r
+ __IO uint32_t KEYENABLE; /**< , offset: 0x204 */\r
+ __O uint32_t KEYRESET; /**< Reinitialize Keys shift registers counters, offset: 0x208 */\r
+ __IO uint32_t IDXBLK_L; /**< , offset: 0x20C */\r
+ __IO uint32_t IDXBLK_H_DP; /**< , offset: 0x210 */\r
+ __O uint32_t KEYMASK[4]; /**< Only reset in case of full IC reset, array offset: 0x214, array step: 0x4 */\r
+ uint8_t RESERVED_7[48];\r
+ __IO uint32_t IDXBLK_H; /**< , offset: 0x254 */\r
+ __IO uint32_t IDXBLK_L_DP; /**< , offset: 0x258 */\r
+ __I uint32_t SHIFT_STATUS; /**< , offset: 0x25C */\r
} PUF_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CTRL - PUF Control register */\r
/*! @{ */\r
-#define PUF_CTRL_ZEROIZE_MASK (0x1U)\r
-#define PUF_CTRL_ZEROIZE_SHIFT (0U)\r
-#define PUF_CTRL_ZEROIZE(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_ZEROIZE_SHIFT)) & PUF_CTRL_ZEROIZE_MASK)\r
-#define PUF_CTRL_ENROLL_MASK (0x2U)\r
-#define PUF_CTRL_ENROLL_SHIFT (1U)\r
-#define PUF_CTRL_ENROLL(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_ENROLL_SHIFT)) & PUF_CTRL_ENROLL_MASK)\r
-#define PUF_CTRL_START_MASK (0x4U)\r
-#define PUF_CTRL_START_SHIFT (2U)\r
-#define PUF_CTRL_START(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_START_SHIFT)) & PUF_CTRL_START_MASK)\r
-#define PUF_CTRL_GENERATEKEY_MASK (0x8U)\r
-#define PUF_CTRL_GENERATEKEY_SHIFT (3U)\r
-#define PUF_CTRL_GENERATEKEY(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_GENERATEKEY_SHIFT)) & PUF_CTRL_GENERATEKEY_MASK)\r
-#define PUF_CTRL_SETKEY_MASK (0x10U)\r
-#define PUF_CTRL_SETKEY_SHIFT (4U)\r
-#define PUF_CTRL_SETKEY(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_SETKEY_SHIFT)) & PUF_CTRL_SETKEY_MASK)\r
-#define PUF_CTRL_GETKEY_MASK (0x40U)\r
-#define PUF_CTRL_GETKEY_SHIFT (6U)\r
-#define PUF_CTRL_GETKEY(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_GETKEY_SHIFT)) & PUF_CTRL_GETKEY_MASK)\r
+#define PUF_CTRL_ZEROIZE_MASK (0x1U)\r
+#define PUF_CTRL_ZEROIZE_SHIFT (0U)\r
+/*! zeroize - Begin Zeroize operation for PUF and go to Error state\r
+ */\r
+#define PUF_CTRL_ZEROIZE(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_ZEROIZE_SHIFT)) & PUF_CTRL_ZEROIZE_MASK)\r
+#define PUF_CTRL_ENROLL_MASK (0x2U)\r
+#define PUF_CTRL_ENROLL_SHIFT (1U)\r
+/*! enroll - Begin Enroll operation\r
+ */\r
+#define PUF_CTRL_ENROLL(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_ENROLL_SHIFT)) & PUF_CTRL_ENROLL_MASK)\r
+#define PUF_CTRL_START_MASK (0x4U)\r
+#define PUF_CTRL_START_SHIFT (2U)\r
+/*! start - Begin Start operation\r
+ */\r
+#define PUF_CTRL_START(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_START_SHIFT)) & PUF_CTRL_START_MASK)\r
+#define PUF_CTRL_GENERATEKEY_MASK (0x8U)\r
+#define PUF_CTRL_GENERATEKEY_SHIFT (3U)\r
+/*! GENERATEKEY - Begin Set Intrinsic Key operation\r
+ */\r
+#define PUF_CTRL_GENERATEKEY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_GENERATEKEY_SHIFT)) & PUF_CTRL_GENERATEKEY_MASK)\r
+#define PUF_CTRL_SETKEY_MASK (0x10U)\r
+#define PUF_CTRL_SETKEY_SHIFT (4U)\r
+/*! SETKEY - Begin Set User Key operation\r
+ */\r
+#define PUF_CTRL_SETKEY(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_SETKEY_SHIFT)) & PUF_CTRL_SETKEY_MASK)\r
+#define PUF_CTRL_GETKEY_MASK (0x40U)\r
+#define PUF_CTRL_GETKEY_SHIFT (6U)\r
+/*! GETKEY - Begin Get Key operation\r
+ */\r
+#define PUF_CTRL_GETKEY(x) (((uint32_t)(((uint32_t)(x)) << PUF_CTRL_GETKEY_SHIFT)) & PUF_CTRL_GETKEY_MASK)\r
/*! @} */\r
\r
/*! @name KEYINDEX - PUF Key Index register */\r
/*! @{ */\r
-#define PUF_KEYINDEX_KEYIDX_MASK (0xFU)\r
-#define PUF_KEYINDEX_KEYIDX_SHIFT (0U)\r
-#define PUF_KEYINDEX_KEYIDX(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYINDEX_KEYIDX_SHIFT)) & PUF_KEYINDEX_KEYIDX_MASK)\r
+#define PUF_KEYINDEX_KEYIDX_MASK (0xFU)\r
+#define PUF_KEYINDEX_KEYIDX_SHIFT (0U)\r
+/*! KEYIDX - Key index for Set Key operations\r
+ */\r
+#define PUF_KEYINDEX_KEYIDX(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYINDEX_KEYIDX_SHIFT)) & PUF_KEYINDEX_KEYIDX_MASK)\r
/*! @} */\r
\r
/*! @name KEYSIZE - PUF Key Size register */\r
/*! @{ */\r
-#define PUF_KEYSIZE_KEYSIZE_MASK (0x3FU)\r
-#define PUF_KEYSIZE_KEYSIZE_SHIFT (0U)\r
-#define PUF_KEYSIZE_KEYSIZE(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYSIZE_KEYSIZE_SHIFT)) & PUF_KEYSIZE_KEYSIZE_MASK)\r
+#define PUF_KEYSIZE_KEYSIZE_MASK (0x3FU)\r
+#define PUF_KEYSIZE_KEYSIZE_SHIFT (0U)\r
+/*! KEYSIZE - Key size for Set Key operations\r
+ */\r
+#define PUF_KEYSIZE_KEYSIZE(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYSIZE_KEYSIZE_SHIFT)) & PUF_KEYSIZE_KEYSIZE_MASK)\r
/*! @} */\r
\r
/*! @name STAT - PUF Status register */\r
/*! @{ */\r
-#define PUF_STAT_BUSY_MASK (0x1U)\r
-#define PUF_STAT_BUSY_SHIFT (0U)\r
-#define PUF_STAT_BUSY(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_BUSY_SHIFT)) & PUF_STAT_BUSY_MASK)\r
-#define PUF_STAT_SUCCESS_MASK (0x2U)\r
-#define PUF_STAT_SUCCESS_SHIFT (1U)\r
-#define PUF_STAT_SUCCESS(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_SUCCESS_SHIFT)) & PUF_STAT_SUCCESS_MASK)\r
-#define PUF_STAT_ERROR_MASK (0x4U)\r
-#define PUF_STAT_ERROR_SHIFT (2U)\r
-#define PUF_STAT_ERROR(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_ERROR_SHIFT)) & PUF_STAT_ERROR_MASK)\r
-#define PUF_STAT_KEYINREQ_MASK (0x10U)\r
-#define PUF_STAT_KEYINREQ_SHIFT (4U)\r
-#define PUF_STAT_KEYINREQ(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_KEYINREQ_SHIFT)) & PUF_STAT_KEYINREQ_MASK)\r
-#define PUF_STAT_KEYOUTAVAIL_MASK (0x20U)\r
-#define PUF_STAT_KEYOUTAVAIL_SHIFT (5U)\r
-#define PUF_STAT_KEYOUTAVAIL(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_KEYOUTAVAIL_SHIFT)) & PUF_STAT_KEYOUTAVAIL_MASK)\r
-#define PUF_STAT_CODEINREQ_MASK (0x40U)\r
-#define PUF_STAT_CODEINREQ_SHIFT (6U)\r
-#define PUF_STAT_CODEINREQ(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_CODEINREQ_SHIFT)) & PUF_STAT_CODEINREQ_MASK)\r
-#define PUF_STAT_CODEOUTAVAIL_MASK (0x80U)\r
-#define PUF_STAT_CODEOUTAVAIL_SHIFT (7U)\r
-#define PUF_STAT_CODEOUTAVAIL(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_CODEOUTAVAIL_SHIFT)) & PUF_STAT_CODEOUTAVAIL_MASK)\r
+#define PUF_STAT_BUSY_MASK (0x1U)\r
+#define PUF_STAT_BUSY_SHIFT (0U)\r
+/*! busy - Indicates that operation is in progress\r
+ */\r
+#define PUF_STAT_BUSY(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_BUSY_SHIFT)) & PUF_STAT_BUSY_MASK)\r
+#define PUF_STAT_SUCCESS_MASK (0x2U)\r
+#define PUF_STAT_SUCCESS_SHIFT (1U)\r
+/*! SUCCESS - Last operation was successful\r
+ */\r
+#define PUF_STAT_SUCCESS(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_SUCCESS_SHIFT)) & PUF_STAT_SUCCESS_MASK)\r
+#define PUF_STAT_ERROR_MASK (0x4U)\r
+#define PUF_STAT_ERROR_SHIFT (2U)\r
+/*! error - PUF is in the Error state and no operations can be performed\r
+ */\r
+#define PUF_STAT_ERROR(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_ERROR_SHIFT)) & PUF_STAT_ERROR_MASK)\r
+#define PUF_STAT_KEYINREQ_MASK (0x10U)\r
+#define PUF_STAT_KEYINREQ_SHIFT (4U)\r
+/*! KEYINREQ - Request for next part of key\r
+ */\r
+#define PUF_STAT_KEYINREQ(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_KEYINREQ_SHIFT)) & PUF_STAT_KEYINREQ_MASK)\r
+#define PUF_STAT_KEYOUTAVAIL_MASK (0x20U)\r
+#define PUF_STAT_KEYOUTAVAIL_SHIFT (5U)\r
+/*! KEYOUTAVAIL - Next part of key is available\r
+ */\r
+#define PUF_STAT_KEYOUTAVAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_STAT_KEYOUTAVAIL_SHIFT)) & PUF_STAT_KEYOUTAVAIL_MASK)\r
+#define PUF_STAT_CODEINREQ_MASK (0x40U)\r
+#define PUF_STAT_CODEINREQ_SHIFT (6U)\r
+/*! CODEINREQ - Request for next part of AC/KC\r
+ */\r
+#define PUF_STAT_CODEINREQ(x) (((uint32_t)(((uint32_t)(x)) << PUF_STAT_CODEINREQ_SHIFT)) & PUF_STAT_CODEINREQ_MASK)\r
+#define PUF_STAT_CODEOUTAVAIL_MASK (0x80U)\r
+#define PUF_STAT_CODEOUTAVAIL_SHIFT (7U)\r
+/*! CODEOUTAVAIL - Next part of AC/KC is available\r
+ */\r
+#define PUF_STAT_CODEOUTAVAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_STAT_CODEOUTAVAIL_SHIFT)) & PUF_STAT_CODEOUTAVAIL_MASK)\r
/*! @} */\r
\r
/*! @name ALLOW - PUF Allow register */\r
/*! @{ */\r
-#define PUF_ALLOW_ALLOWENROLL_MASK (0x1U)\r
-#define PUF_ALLOW_ALLOWENROLL_SHIFT (0U)\r
-#define PUF_ALLOW_ALLOWENROLL(x) (((uint32_t)(((uint32_t)(x)) << PUF_ALLOW_ALLOWENROLL_SHIFT)) & PUF_ALLOW_ALLOWENROLL_MASK)\r
-#define PUF_ALLOW_ALLOWSTART_MASK (0x2U)\r
-#define PUF_ALLOW_ALLOWSTART_SHIFT (1U)\r
-#define PUF_ALLOW_ALLOWSTART(x) (((uint32_t)(((uint32_t)(x)) << PUF_ALLOW_ALLOWSTART_SHIFT)) & PUF_ALLOW_ALLOWSTART_MASK)\r
-#define PUF_ALLOW_ALLOWSETKEY_MASK (0x4U)\r
-#define PUF_ALLOW_ALLOWSETKEY_SHIFT (2U)\r
-#define PUF_ALLOW_ALLOWSETKEY(x) (((uint32_t)(((uint32_t)(x)) << PUF_ALLOW_ALLOWSETKEY_SHIFT)) & PUF_ALLOW_ALLOWSETKEY_MASK)\r
-#define PUF_ALLOW_ALLOWGETKEY_MASK (0x8U)\r
-#define PUF_ALLOW_ALLOWGETKEY_SHIFT (3U)\r
-#define PUF_ALLOW_ALLOWGETKEY(x) (((uint32_t)(((uint32_t)(x)) << PUF_ALLOW_ALLOWGETKEY_SHIFT)) & PUF_ALLOW_ALLOWGETKEY_MASK)\r
+#define PUF_ALLOW_ALLOWENROLL_MASK (0x1U)\r
+#define PUF_ALLOW_ALLOWENROLL_SHIFT (0U)\r
+/*! ALLOWENROLL - Enroll operation is allowed\r
+ */\r
+#define PUF_ALLOW_ALLOWENROLL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_ALLOW_ALLOWENROLL_SHIFT)) & PUF_ALLOW_ALLOWENROLL_MASK)\r
+#define PUF_ALLOW_ALLOWSTART_MASK (0x2U)\r
+#define PUF_ALLOW_ALLOWSTART_SHIFT (1U)\r
+/*! ALLOWSTART - Start operation is allowed\r
+ */\r
+#define PUF_ALLOW_ALLOWSTART(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_ALLOW_ALLOWSTART_SHIFT)) & PUF_ALLOW_ALLOWSTART_MASK)\r
+#define PUF_ALLOW_ALLOWSETKEY_MASK (0x4U)\r
+#define PUF_ALLOW_ALLOWSETKEY_SHIFT (2U)\r
+/*! ALLOWSETKEY - Set Key operations are allowed\r
+ */\r
+#define PUF_ALLOW_ALLOWSETKEY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_ALLOW_ALLOWSETKEY_SHIFT)) & PUF_ALLOW_ALLOWSETKEY_MASK)\r
+#define PUF_ALLOW_ALLOWGETKEY_MASK (0x8U)\r
+#define PUF_ALLOW_ALLOWGETKEY_SHIFT (3U)\r
+/*! ALLOWGETKEY - Get Key operation is allowed\r
+ */\r
+#define PUF_ALLOW_ALLOWGETKEY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_ALLOW_ALLOWGETKEY_SHIFT)) & PUF_ALLOW_ALLOWGETKEY_MASK)\r
/*! @} */\r
\r
/*! @name KEYINPUT - PUF Key Input register */\r
/*! @{ */\r
-#define PUF_KEYINPUT_KEYIN_MASK (0xFFFFFFFFU)\r
-#define PUF_KEYINPUT_KEYIN_SHIFT (0U)\r
-#define PUF_KEYINPUT_KEYIN(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYINPUT_KEYIN_SHIFT)) & PUF_KEYINPUT_KEYIN_MASK)\r
+#define PUF_KEYINPUT_KEYIN_MASK (0xFFFFFFFFU)\r
+#define PUF_KEYINPUT_KEYIN_SHIFT (0U)\r
+/*! KEYIN - Key input data\r
+ */\r
+#define PUF_KEYINPUT_KEYIN(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYINPUT_KEYIN_SHIFT)) & PUF_KEYINPUT_KEYIN_MASK)\r
/*! @} */\r
\r
/*! @name CODEINPUT - PUF Code Input register */\r
/*! @{ */\r
-#define PUF_CODEINPUT_CODEIN_MASK (0xFFFFFFFFU)\r
-#define PUF_CODEINPUT_CODEIN_SHIFT (0U)\r
-#define PUF_CODEINPUT_CODEIN(x) (((uint32_t)(((uint32_t)(x)) << PUF_CODEINPUT_CODEIN_SHIFT)) & PUF_CODEINPUT_CODEIN_MASK)\r
+#define PUF_CODEINPUT_CODEIN_MASK (0xFFFFFFFFU)\r
+#define PUF_CODEINPUT_CODEIN_SHIFT (0U)\r
+/*! CODEIN - AC/KC input data\r
+ */\r
+#define PUF_CODEINPUT_CODEIN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_CODEINPUT_CODEIN_SHIFT)) & PUF_CODEINPUT_CODEIN_MASK)\r
/*! @} */\r
\r
/*! @name CODEOUTPUT - PUF Code Output register */\r
/*! @{ */\r
-#define PUF_CODEOUTPUT_CODEOUT_MASK (0xFFFFFFFFU)\r
-#define PUF_CODEOUTPUT_CODEOUT_SHIFT (0U)\r
-#define PUF_CODEOUTPUT_CODEOUT(x) (((uint32_t)(((uint32_t)(x)) << PUF_CODEOUTPUT_CODEOUT_SHIFT)) & PUF_CODEOUTPUT_CODEOUT_MASK)\r
+#define PUF_CODEOUTPUT_CODEOUT_MASK (0xFFFFFFFFU)\r
+#define PUF_CODEOUTPUT_CODEOUT_SHIFT (0U)\r
+/*! CODEOUT - AC/KC output data\r
+ */\r
+#define PUF_CODEOUTPUT_CODEOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_CODEOUTPUT_CODEOUT_SHIFT)) & PUF_CODEOUTPUT_CODEOUT_MASK)\r
/*! @} */\r
\r
/*! @name KEYOUTINDEX - PUF Key Output Index register */\r
/*! @{ */\r
-#define PUF_KEYOUTINDEX_KEYOUTIDX_MASK (0xFU)\r
-#define PUF_KEYOUTINDEX_KEYOUTIDX_SHIFT (0U)\r
-#define PUF_KEYOUTINDEX_KEYOUTIDX(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYOUTINDEX_KEYOUTIDX_SHIFT)) & PUF_KEYOUTINDEX_KEYOUTIDX_MASK)\r
+#define PUF_KEYOUTINDEX_KEYOUTIDX_MASK (0xFU)\r
+#define PUF_KEYOUTINDEX_KEYOUTIDX_SHIFT (0U)\r
+/*! KEYOUTIDX - Key index for the key that is currently output via the Key Output register\r
+ */\r
+#define PUF_KEYOUTINDEX_KEYOUTIDX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_KEYOUTINDEX_KEYOUTIDX_SHIFT)) & PUF_KEYOUTINDEX_KEYOUTIDX_MASK)\r
/*! @} */\r
\r
/*! @name KEYOUTPUT - PUF Key Output register */\r
/*! @{ */\r
-#define PUF_KEYOUTPUT_KEYOUT_MASK (0xFFFFFFFFU)\r
-#define PUF_KEYOUTPUT_KEYOUT_SHIFT (0U)\r
-#define PUF_KEYOUTPUT_KEYOUT(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYOUTPUT_KEYOUT_SHIFT)) & PUF_KEYOUTPUT_KEYOUT_MASK)\r
+#define PUF_KEYOUTPUT_KEYOUT_MASK (0xFFFFFFFFU)\r
+#define PUF_KEYOUTPUT_KEYOUT_SHIFT (0U)\r
+/*! KEYOUT - Key output data\r
+ */\r
+#define PUF_KEYOUTPUT_KEYOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_KEYOUTPUT_KEYOUT_SHIFT)) & PUF_KEYOUTPUT_KEYOUT_MASK)\r
/*! @} */\r
\r
/*! @name IFSTAT - PUF Interface Status and clear register */\r
/*! @{ */\r
-#define PUF_IFSTAT_ERROR_MASK (0x1U)\r
-#define PUF_IFSTAT_ERROR_SHIFT (0U)\r
-#define PUF_IFSTAT_ERROR(x) (((uint32_t)(((uint32_t)(x)) << PUF_IFSTAT_ERROR_SHIFT)) & PUF_IFSTAT_ERROR_MASK)\r
+#define PUF_IFSTAT_ERROR_MASK (0x1U)\r
+#define PUF_IFSTAT_ERROR_SHIFT (0U)\r
+/*! ERROR - Indicates that an APB error has occurred,Writing logic1 clears the if_error bit\r
+ */\r
+#define PUF_IFSTAT_ERROR(x) (((uint32_t)(((uint32_t)(x)) << PUF_IFSTAT_ERROR_SHIFT)) & PUF_IFSTAT_ERROR_MASK)\r
/*! @} */\r
\r
/*! @name VERSION - PUF version register. */\r
/*! @{ */\r
-#define PUF_VERSION_KEYOUT_MASK (0xFFFFFFFFU)\r
-#define PUF_VERSION_KEYOUT_SHIFT (0U)\r
-#define PUF_VERSION_KEYOUT(x) (((uint32_t)(((uint32_t)(x)) << PUF_VERSION_KEYOUT_SHIFT)) & PUF_VERSION_KEYOUT_MASK)\r
+#define PUF_VERSION_VERSION_MASK (0xFFFFFFFFU)\r
+#define PUF_VERSION_VERSION_SHIFT (0U)\r
+/*! VERSION - Version of the PUF module.\r
+ */\r
+#define PUF_VERSION_VERSION(x) (((uint32_t)(((uint32_t)(x)) << PUF_VERSION_VERSION_SHIFT)) & PUF_VERSION_VERSION_MASK)\r
/*! @} */\r
\r
/*! @name INTEN - PUF Interrupt Enable */\r
/*! @{ */\r
-#define PUF_INTEN_READYEN_MASK (0x1U)\r
-#define PUF_INTEN_READYEN_SHIFT (0U)\r
-#define PUF_INTEN_READYEN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_READYEN_SHIFT)) & PUF_INTEN_READYEN_MASK)\r
-#define PUF_INTEN_SUCCESEN_MASK (0x2U)\r
-#define PUF_INTEN_SUCCESEN_SHIFT (1U)\r
-#define PUF_INTEN_SUCCESEN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_SUCCESEN_SHIFT)) & PUF_INTEN_SUCCESEN_MASK)\r
-#define PUF_INTEN_ERROREN_MASK (0x4U)\r
-#define PUF_INTEN_ERROREN_SHIFT (2U)\r
-#define PUF_INTEN_ERROREN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_ERROREN_SHIFT)) & PUF_INTEN_ERROREN_MASK)\r
-#define PUF_INTEN_KEYINREQEN_MASK (0x10U)\r
-#define PUF_INTEN_KEYINREQEN_SHIFT (4U)\r
-#define PUF_INTEN_KEYINREQEN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_KEYINREQEN_SHIFT)) & PUF_INTEN_KEYINREQEN_MASK)\r
-#define PUF_INTEN_KEYOUTAVAILEN_MASK (0x20U)\r
-#define PUF_INTEN_KEYOUTAVAILEN_SHIFT (5U)\r
-#define PUF_INTEN_KEYOUTAVAILEN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_KEYOUTAVAILEN_SHIFT)) & PUF_INTEN_KEYOUTAVAILEN_MASK)\r
-#define PUF_INTEN_CODEINREQEN_MASK (0x40U)\r
-#define PUF_INTEN_CODEINREQEN_SHIFT (6U)\r
-#define PUF_INTEN_CODEINREQEN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_CODEINREQEN_SHIFT)) & PUF_INTEN_CODEINREQEN_MASK)\r
-#define PUF_INTEN_CODEOUTAVAILEN_MASK (0x80U)\r
-#define PUF_INTEN_CODEOUTAVAILEN_SHIFT (7U)\r
-#define PUF_INTEN_CODEOUTAVAILEN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_CODEOUTAVAILEN_SHIFT)) & PUF_INTEN_CODEOUTAVAILEN_MASK)\r
+#define PUF_INTEN_READYEN_MASK (0x1U)\r
+#define PUF_INTEN_READYEN_SHIFT (0U)\r
+/*! READYEN - Enable corresponding interrupt. Note that bit numbers match those assigned in QK_SR (Quiddikey Status\r
+ * Register)\r
+ */\r
+#define PUF_INTEN_READYEN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_READYEN_SHIFT)) & PUF_INTEN_READYEN_MASK)\r
+#define PUF_INTEN_SUCCESEN_MASK (0x2U)\r
+#define PUF_INTEN_SUCCESEN_SHIFT (1U)\r
+/*! SUCCESEN - Enable corresponding interrupt. Note that bit numbers match those assigned in QK_SR (Quiddikey Status\r
+ * Register)\r
+ */\r
+#define PUF_INTEN_SUCCESEN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_SUCCESEN_SHIFT)) & PUF_INTEN_SUCCESEN_MASK)\r
+#define PUF_INTEN_ERROREN_MASK (0x4U)\r
+#define PUF_INTEN_ERROREN_SHIFT (2U)\r
+/*! ERROREN - Enable corresponding interrupt. Note that bit numbers match those assigned in QK_SR (Quiddikey Status\r
+ * Register)\r
+ */\r
+#define PUF_INTEN_ERROREN(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_ERROREN_SHIFT)) & PUF_INTEN_ERROREN_MASK)\r
+#define PUF_INTEN_KEYINREQEN_MASK (0x10U)\r
+#define PUF_INTEN_KEYINREQEN_SHIFT (4U)\r
+/*! KEYINREQEN - Enable corresponding interrupt. Note that bit numbers match those assigned in QK_SR (Quiddikey Status\r
+ * Register)\r
+ */\r
+#define PUF_INTEN_KEYINREQEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_KEYINREQEN_SHIFT)) & PUF_INTEN_KEYINREQEN_MASK)\r
+#define PUF_INTEN_KEYOUTAVAILEN_MASK (0x20U)\r
+#define PUF_INTEN_KEYOUTAVAILEN_SHIFT (5U)\r
+/*! KEYOUTAVAILEN - Enable corresponding interrupt. Note that bit numbers match those assigned in QK_SR (Quiddikey\r
+ * Status Register)\r
+ */\r
+#define PUF_INTEN_KEYOUTAVAILEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_KEYOUTAVAILEN_SHIFT)) & PUF_INTEN_KEYOUTAVAILEN_MASK)\r
+#define PUF_INTEN_CODEINREQEN_MASK (0x40U)\r
+#define PUF_INTEN_CODEINREQEN_SHIFT (6U)\r
+/*! CODEINREQEN - Enable corresponding interrupt. Note that bit numbers match those assigned in QK_SR (Quiddikey Status\r
+ * Register)\r
+ */\r
+#define PUF_INTEN_CODEINREQEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_CODEINREQEN_SHIFT)) & PUF_INTEN_CODEINREQEN_MASK)\r
+#define PUF_INTEN_CODEOUTAVAILEN_MASK (0x80U)\r
+#define PUF_INTEN_CODEOUTAVAILEN_SHIFT (7U)\r
+/*! CODEOUTAVAILEN - Enable corresponding interrupt. Note that bit numbers match those assigned in QK_SR (Quiddikey\r
+ * Status Register)\r
+ */\r
+#define PUF_INTEN_CODEOUTAVAILEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_INTEN_CODEOUTAVAILEN_SHIFT)) & PUF_INTEN_CODEOUTAVAILEN_MASK)\r
/*! @} */\r
\r
/*! @name INTSTAT - PUF interrupt status */\r
/*! @{ */\r
-#define PUF_INTSTAT_READY_MASK (0x1U)\r
-#define PUF_INTSTAT_READY_SHIFT (0U)\r
-#define PUF_INTSTAT_READY(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_READY_SHIFT)) & PUF_INTSTAT_READY_MASK)\r
-#define PUF_INTSTAT_SUCCESS_MASK (0x2U)\r
-#define PUF_INTSTAT_SUCCESS_SHIFT (1U)\r
-#define PUF_INTSTAT_SUCCESS(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_SUCCESS_SHIFT)) & PUF_INTSTAT_SUCCESS_MASK)\r
-#define PUF_INTSTAT_ERROR_MASK (0x4U)\r
-#define PUF_INTSTAT_ERROR_SHIFT (2U)\r
-#define PUF_INTSTAT_ERROR(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_ERROR_SHIFT)) & PUF_INTSTAT_ERROR_MASK)\r
-#define PUF_INTSTAT_KEYINREQ_MASK (0x10U)\r
-#define PUF_INTSTAT_KEYINREQ_SHIFT (4U)\r
-#define PUF_INTSTAT_KEYINREQ(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_KEYINREQ_SHIFT)) & PUF_INTSTAT_KEYINREQ_MASK)\r
-#define PUF_INTSTAT_KEYOUTAVAIL_MASK (0x20U)\r
-#define PUF_INTSTAT_KEYOUTAVAIL_SHIFT (5U)\r
-#define PUF_INTSTAT_KEYOUTAVAIL(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_KEYOUTAVAIL_SHIFT)) & PUF_INTSTAT_KEYOUTAVAIL_MASK)\r
-#define PUF_INTSTAT_CODEINREQ_MASK (0x40U)\r
-#define PUF_INTSTAT_CODEINREQ_SHIFT (6U)\r
-#define PUF_INTSTAT_CODEINREQ(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_CODEINREQ_SHIFT)) & PUF_INTSTAT_CODEINREQ_MASK)\r
-#define PUF_INTSTAT_CODEOUTAVAIL_MASK (0x80U)\r
-#define PUF_INTSTAT_CODEOUTAVAIL_SHIFT (7U)\r
-#define PUF_INTSTAT_CODEOUTAVAIL(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_CODEOUTAVAIL_SHIFT)) & PUF_INTSTAT_CODEOUTAVAIL_MASK)\r
+#define PUF_INTSTAT_READY_MASK (0x1U)\r
+#define PUF_INTSTAT_READY_SHIFT (0U)\r
+/*! READY - Triggers on falling edge of busy, write 1 to clear\r
+ */\r
+#define PUF_INTSTAT_READY(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_READY_SHIFT)) & PUF_INTSTAT_READY_MASK)\r
+#define PUF_INTSTAT_SUCCESS_MASK (0x2U)\r
+#define PUF_INTSTAT_SUCCESS_SHIFT (1U)\r
+/*! SUCCESS - Level sensitive interrupt, cleared when interrupt source clears\r
+ */\r
+#define PUF_INTSTAT_SUCCESS(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_SUCCESS_SHIFT)) & PUF_INTSTAT_SUCCESS_MASK)\r
+#define PUF_INTSTAT_ERROR_MASK (0x4U)\r
+#define PUF_INTSTAT_ERROR_SHIFT (2U)\r
+/*! ERROR - Level sensitive interrupt, cleared when interrupt source clears\r
+ */\r
+#define PUF_INTSTAT_ERROR(x) (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_ERROR_SHIFT)) & PUF_INTSTAT_ERROR_MASK)\r
+#define PUF_INTSTAT_KEYINREQ_MASK (0x10U)\r
+#define PUF_INTSTAT_KEYINREQ_SHIFT (4U)\r
+/*! KEYINREQ - Level sensitive interrupt, cleared when interrupt source clears\r
+ */\r
+#define PUF_INTSTAT_KEYINREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_KEYINREQ_SHIFT)) & PUF_INTSTAT_KEYINREQ_MASK)\r
+#define PUF_INTSTAT_KEYOUTAVAIL_MASK (0x20U)\r
+#define PUF_INTSTAT_KEYOUTAVAIL_SHIFT (5U)\r
+/*! KEYOUTAVAIL - Level sensitive interrupt, cleared when interrupt source clears\r
+ */\r
+#define PUF_INTSTAT_KEYOUTAVAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_KEYOUTAVAIL_SHIFT)) & PUF_INTSTAT_KEYOUTAVAIL_MASK)\r
+#define PUF_INTSTAT_CODEINREQ_MASK (0x40U)\r
+#define PUF_INTSTAT_CODEINREQ_SHIFT (6U)\r
+/*! CODEINREQ - Level sensitive interrupt, cleared when interrupt source clears\r
+ */\r
+#define PUF_INTSTAT_CODEINREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_CODEINREQ_SHIFT)) & PUF_INTSTAT_CODEINREQ_MASK)\r
+#define PUF_INTSTAT_CODEOUTAVAIL_MASK (0x80U)\r
+#define PUF_INTSTAT_CODEOUTAVAIL_SHIFT (7U)\r
+/*! CODEOUTAVAIL - Level sensitive interrupt, cleared when interrupt source clears\r
+ */\r
+#define PUF_INTSTAT_CODEOUTAVAIL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_INTSTAT_CODEOUTAVAIL_SHIFT)) & PUF_INTSTAT_CODEOUTAVAIL_MASK)\r
/*! @} */\r
\r
/*! @name PWRCTRL - PUF RAM Power Control */\r
/*! @{ */\r
-#define PUF_PWRCTRL_RAMON_MASK (0x1U)\r
-#define PUF_PWRCTRL_RAMON_SHIFT (0U)\r
-#define PUF_PWRCTRL_RAMON(x) (((uint32_t)(((uint32_t)(x)) << PUF_PWRCTRL_RAMON_SHIFT)) & PUF_PWRCTRL_RAMON_MASK)\r
-#define PUF_PWRCTRL_RAMSTAT_MASK (0x2U)\r
-#define PUF_PWRCTRL_RAMSTAT_SHIFT (1U)\r
-#define PUF_PWRCTRL_RAMSTAT(x) (((uint32_t)(((uint32_t)(x)) << PUF_PWRCTRL_RAMSTAT_SHIFT)) & PUF_PWRCTRL_RAMSTAT_MASK)\r
+#define PUF_PWRCTRL_RAMON_MASK (0x1U)\r
+#define PUF_PWRCTRL_RAMON_SHIFT (0U)\r
+/*! RAMON - Power on the PUF RAM.\r
+ */\r
+#define PUF_PWRCTRL_RAMON(x) (((uint32_t)(((uint32_t)(x)) << PUF_PWRCTRL_RAMON_SHIFT)) & PUF_PWRCTRL_RAMON_MASK)\r
+#define PUF_PWRCTRL_RAMSTAT_MASK (0x2U)\r
+#define PUF_PWRCTRL_RAMSTAT_SHIFT (1U)\r
+/*! RAMSTAT - PUF RAM status.\r
+ */\r
+#define PUF_PWRCTRL_RAMSTAT(x) (((uint32_t)(((uint32_t)(x)) << PUF_PWRCTRL_RAMSTAT_SHIFT)) & PUF_PWRCTRL_RAMSTAT_MASK)\r
/*! @} */\r
\r
/*! @name CFG - PUF config register for block bits */\r
/*! @{ */\r
-#define PUF_CFG_BLOCKENROLL_SETKEY_MASK (0x1U)\r
-#define PUF_CFG_BLOCKENROLL_SETKEY_SHIFT (0U)\r
-#define PUF_CFG_BLOCKENROLL_SETKEY(x) (((uint32_t)(((uint32_t)(x)) << PUF_CFG_BLOCKENROLL_SETKEY_SHIFT)) & PUF_CFG_BLOCKENROLL_SETKEY_MASK)\r
-#define PUF_CFG_BLOCKKEYOUTPUT_MASK (0x2U)\r
-#define PUF_CFG_BLOCKKEYOUTPUT_SHIFT (1U)\r
-#define PUF_CFG_BLOCKKEYOUTPUT(x) (((uint32_t)(((uint32_t)(x)) << PUF_CFG_BLOCKKEYOUTPUT_SHIFT)) & PUF_CFG_BLOCKKEYOUTPUT_MASK)\r
+#define PUF_CFG_BLOCKENROLL_SETKEY_MASK (0x1U)\r
+#define PUF_CFG_BLOCKENROLL_SETKEY_SHIFT (0U)\r
+/*! BLOCKENROLL_SETKEY - Block enroll operation. Write 1 to set, cleared on reset.\r
+ */\r
+#define PUF_CFG_BLOCKENROLL_SETKEY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_CFG_BLOCKENROLL_SETKEY_SHIFT)) & PUF_CFG_BLOCKENROLL_SETKEY_MASK)\r
+#define PUF_CFG_BLOCKKEYOUTPUT_MASK (0x2U)\r
+#define PUF_CFG_BLOCKKEYOUTPUT_SHIFT (1U)\r
+/*! BLOCKKEYOUTPUT - Block set key operation. Write 1 to set, cleared on reset.\r
+ */\r
+#define PUF_CFG_BLOCKKEYOUTPUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_CFG_BLOCKKEYOUTPUT_SHIFT)) & PUF_CFG_BLOCKKEYOUTPUT_MASK)\r
/*! @} */\r
\r
/*! @name KEYLOCK - Only reset in case of full IC reset */\r
/*! @{ */\r
-#define PUF_KEYLOCK_KEY0_MASK (0x3U)\r
-#define PUF_KEYLOCK_KEY0_SHIFT (0U)\r
-#define PUF_KEYLOCK_KEY0(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYLOCK_KEY0_SHIFT)) & PUF_KEYLOCK_KEY0_MASK)\r
-#define PUF_KEYLOCK_KEY1_MASK (0xCU)\r
-#define PUF_KEYLOCK_KEY1_SHIFT (2U)\r
-#define PUF_KEYLOCK_KEY1(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYLOCK_KEY1_SHIFT)) & PUF_KEYLOCK_KEY1_MASK)\r
-#define PUF_KEYLOCK_KEY2_MASK (0x30U)\r
-#define PUF_KEYLOCK_KEY2_SHIFT (4U)\r
-#define PUF_KEYLOCK_KEY2(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYLOCK_KEY2_SHIFT)) & PUF_KEYLOCK_KEY2_MASK)\r
-#define PUF_KEYLOCK_KEY3_MASK (0xC0U)\r
-#define PUF_KEYLOCK_KEY3_SHIFT (6U)\r
-#define PUF_KEYLOCK_KEY3(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYLOCK_KEY3_SHIFT)) & PUF_KEYLOCK_KEY3_MASK)\r
+#define PUF_KEYLOCK_KEY0_MASK (0x3U)\r
+#define PUF_KEYLOCK_KEY0_SHIFT (0U)\r
+/*! KEY0 - "10:Write access to KEY0MASK, KEYENABLE.KEY0 and KEYRESET.KEY0 is allowed. 00, 01,\r
+ * 11:Write access to KEY0MASK, KEYENABLE.KEY0 and KEYRESET.KEY0 is NOT allowed. Important Note : Once\r
+ * this field is written with a value different from '10', its value can no longer be modified\r
+ * until un Power On Reset occurs."\r
+ */\r
+#define PUF_KEYLOCK_KEY0(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYLOCK_KEY0_SHIFT)) & PUF_KEYLOCK_KEY0_MASK)\r
+#define PUF_KEYLOCK_KEY1_MASK (0xCU)\r
+#define PUF_KEYLOCK_KEY1_SHIFT (2U)\r
+/*! KEY1 - "10:Write access to KEY1MASK, KEYENABLE.KEY1 and KEYRESET.KEY1 is allowed. 00, 01,\r
+ * 11:Write access to KEY1MASK, KEYENABLE.KEY1 and KEYRESET.KEY1 is NOT allowed. Important Note : Once\r
+ * this field is written with a value different from '10', its value can no longer be modified\r
+ * until un Power On Reset occurs."\r
+ */\r
+#define PUF_KEYLOCK_KEY1(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYLOCK_KEY1_SHIFT)) & PUF_KEYLOCK_KEY1_MASK)\r
+#define PUF_KEYLOCK_KEY2_MASK (0x30U)\r
+#define PUF_KEYLOCK_KEY2_SHIFT (4U)\r
+/*! KEY2 - "10:Write access to KEY2MASK, KEYENABLE.KEY2 and KEYRESET.KEY2 is allowed. 00, 01,\r
+ * 11:Write access to KEY2MASK, KEYENABLE.KEY2 and KEYRESET.KEY2 is NOT allowed. Important Note : Once\r
+ * this field is written with a value different from '10', its value can no longer be modified\r
+ * until un Power On Reset occurs."\r
+ */\r
+#define PUF_KEYLOCK_KEY2(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYLOCK_KEY2_SHIFT)) & PUF_KEYLOCK_KEY2_MASK)\r
+#define PUF_KEYLOCK_KEY3_MASK (0xC0U)\r
+#define PUF_KEYLOCK_KEY3_SHIFT (6U)\r
+/*! KEY3 - "10:Write access to KEY3MASK, KEYENABLE.KEY3 and KEYRESET.KEY3 is allowed. 00, 01,\r
+ * 11:Write access to KEY3MASK, KEYENABLE.KEY3 and KEYRESET.KEY3 is NOT allowed. Important Note : Once\r
+ * this field is written with a value different from '10', its value can no longer be modified\r
+ * until un Power On Reset occurs."\r
+ */\r
+#define PUF_KEYLOCK_KEY3(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYLOCK_KEY3_SHIFT)) & PUF_KEYLOCK_KEY3_MASK)\r
/*! @} */\r
\r
/*! @name KEYENABLE - */\r
/*! @{ */\r
-#define PUF_KEYENABLE_KEY0_MASK (0x3U)\r
-#define PUF_KEYENABLE_KEY0_SHIFT (0U)\r
-#define PUF_KEYENABLE_KEY0(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYENABLE_KEY0_SHIFT)) & PUF_KEYENABLE_KEY0_MASK)\r
-#define PUF_KEYENABLE_KEY1_MASK (0xCU)\r
-#define PUF_KEYENABLE_KEY1_SHIFT (2U)\r
-#define PUF_KEYENABLE_KEY1(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYENABLE_KEY1_SHIFT)) & PUF_KEYENABLE_KEY1_MASK)\r
-#define PUF_KEYENABLE_KEY2_MASK (0x30U)\r
-#define PUF_KEYENABLE_KEY2_SHIFT (4U)\r
-#define PUF_KEYENABLE_KEY2(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYENABLE_KEY2_SHIFT)) & PUF_KEYENABLE_KEY2_MASK)\r
-#define PUF_KEYENABLE_KEY3_MASK (0xC0U)\r
-#define PUF_KEYENABLE_KEY3_SHIFT (6U)\r
-#define PUF_KEYENABLE_KEY3(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYENABLE_KEY3_SHIFT)) & PUF_KEYENABLE_KEY3_MASK)\r
+#define PUF_KEYENABLE_KEY0_MASK (0x3U)\r
+#define PUF_KEYENABLE_KEY0_SHIFT (0U)\r
+/*! KEY0 - "10: Data coming out from PUF Index 0 interface are shifted in KEY0 register. 00, 01, 11\r
+ * : Data coming out from PUF Index 0 interface are NOT shifted in KEY0 register."\r
+ */\r
+#define PUF_KEYENABLE_KEY0(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYENABLE_KEY0_SHIFT)) & PUF_KEYENABLE_KEY0_MASK)\r
+#define PUF_KEYENABLE_KEY1_MASK (0xCU)\r
+#define PUF_KEYENABLE_KEY1_SHIFT (2U)\r
+/*! KEY1 - "10: Data coming out from PUF Index 0 interface are shifted in KEY1 register. 00, 01, 11\r
+ * : Data coming out from PUF Index 0 interface are NOT shifted in KEY1 register."\r
+ */\r
+#define PUF_KEYENABLE_KEY1(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYENABLE_KEY1_SHIFT)) & PUF_KEYENABLE_KEY1_MASK)\r
+#define PUF_KEYENABLE_KEY2_MASK (0x30U)\r
+#define PUF_KEYENABLE_KEY2_SHIFT (4U)\r
+/*! KEY2 - "10: Data coming out from PUF Index 0 interface are shifted in KEY2 register. 00, 01, 11\r
+ * : Data coming out from PUF Index 0 interface are NOT shifted in KEY2 register."\r
+ */\r
+#define PUF_KEYENABLE_KEY2(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYENABLE_KEY2_SHIFT)) & PUF_KEYENABLE_KEY2_MASK)\r
+#define PUF_KEYENABLE_KEY3_MASK (0xC0U)\r
+#define PUF_KEYENABLE_KEY3_SHIFT (6U)\r
+/*! KEY3 - "10: Data coming out from PUF Index 0 interface are shifted in KEY3 register. 00, 01, 11\r
+ * : Data coming out from PUF Index 0 interface are NOT shifted in KEY3 register."\r
+ */\r
+#define PUF_KEYENABLE_KEY3(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYENABLE_KEY3_SHIFT)) & PUF_KEYENABLE_KEY3_MASK)\r
/*! @} */\r
\r
/*! @name KEYRESET - Reinitialize Keys shift registers counters */\r
/*! @{ */\r
-#define PUF_KEYRESET_KEY0_MASK (0x3U)\r
-#define PUF_KEYRESET_KEY0_SHIFT (0U)\r
-#define PUF_KEYRESET_KEY0(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYRESET_KEY0_SHIFT)) & PUF_KEYRESET_KEY0_MASK)\r
-#define PUF_KEYRESET_KEY1_MASK (0xCU)\r
-#define PUF_KEYRESET_KEY1_SHIFT (2U)\r
-#define PUF_KEYRESET_KEY1(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYRESET_KEY1_SHIFT)) & PUF_KEYRESET_KEY1_MASK)\r
-#define PUF_KEYRESET_KEY2_MASK (0x30U)\r
-#define PUF_KEYRESET_KEY2_SHIFT (4U)\r
-#define PUF_KEYRESET_KEY2(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYRESET_KEY2_SHIFT)) & PUF_KEYRESET_KEY2_MASK)\r
-#define PUF_KEYRESET_KEY3_MASK (0xC0U)\r
-#define PUF_KEYRESET_KEY3_SHIFT (6U)\r
-#define PUF_KEYRESET_KEY3(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYRESET_KEY3_SHIFT)) & PUF_KEYRESET_KEY3_MASK)\r
+#define PUF_KEYRESET_KEY0_MASK (0x3U)\r
+#define PUF_KEYRESET_KEY0_SHIFT (0U)\r
+/*! KEY0 - 10: Reset KEY0 shift register. Self clearing. Must be done before loading any new key.\r
+ */\r
+#define PUF_KEYRESET_KEY0(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYRESET_KEY0_SHIFT)) & PUF_KEYRESET_KEY0_MASK)\r
+#define PUF_KEYRESET_KEY1_MASK (0xCU)\r
+#define PUF_KEYRESET_KEY1_SHIFT (2U)\r
+/*! KEY1 - 10: Reset KEY1 shift register. Self clearing. Must be done before loading any new key.\r
+ */\r
+#define PUF_KEYRESET_KEY1(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYRESET_KEY1_SHIFT)) & PUF_KEYRESET_KEY1_MASK)\r
+#define PUF_KEYRESET_KEY2_MASK (0x30U)\r
+#define PUF_KEYRESET_KEY2_SHIFT (4U)\r
+/*! KEY2 - 10: Reset KEY2 shift register. Self clearing. Must be done before loading any new key.\r
+ */\r
+#define PUF_KEYRESET_KEY2(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYRESET_KEY2_SHIFT)) & PUF_KEYRESET_KEY2_MASK)\r
+#define PUF_KEYRESET_KEY3_MASK (0xC0U)\r
+#define PUF_KEYRESET_KEY3_SHIFT (6U)\r
+/*! KEY3 - 10: Reset KEY3 shift register. Self clearing. Must be done before loading any new key.\r
+ */\r
+#define PUF_KEYRESET_KEY3(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYRESET_KEY3_SHIFT)) & PUF_KEYRESET_KEY3_MASK)\r
/*! @} */\r
\r
/*! @name IDXBLK_L - */\r
/*! @{ */\r
-#define PUF_IDXBLK_L_IDX0_MASK (0x3U)\r
-#define PUF_IDXBLK_L_IDX0_SHIFT (0U)\r
-#define PUF_IDXBLK_L_IDX0(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX0_SHIFT)) & PUF_IDXBLK_L_IDX0_MASK)\r
-#define PUF_IDXBLK_L_IDX1_MASK (0xCU)\r
-#define PUF_IDXBLK_L_IDX1_SHIFT (2U)\r
-#define PUF_IDXBLK_L_IDX1(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX1_SHIFT)) & PUF_IDXBLK_L_IDX1_MASK)\r
-#define PUF_IDXBLK_L_IDX2_MASK (0x30U)\r
-#define PUF_IDXBLK_L_IDX2_SHIFT (4U)\r
-#define PUF_IDXBLK_L_IDX2(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX2_SHIFT)) & PUF_IDXBLK_L_IDX2_MASK)\r
-#define PUF_IDXBLK_L_IDX3_MASK (0xC0U)\r
-#define PUF_IDXBLK_L_IDX3_SHIFT (6U)\r
-#define PUF_IDXBLK_L_IDX3(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX3_SHIFT)) & PUF_IDXBLK_L_IDX3_MASK)\r
-#define PUF_IDXBLK_L_IDX4_MASK (0x300U)\r
-#define PUF_IDXBLK_L_IDX4_SHIFT (8U)\r
-#define PUF_IDXBLK_L_IDX4(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX4_SHIFT)) & PUF_IDXBLK_L_IDX4_MASK)\r
-#define PUF_IDXBLK_L_IDX5_MASK (0xC00U)\r
-#define PUF_IDXBLK_L_IDX5_SHIFT (10U)\r
-#define PUF_IDXBLK_L_IDX5(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX5_SHIFT)) & PUF_IDXBLK_L_IDX5_MASK)\r
-#define PUF_IDXBLK_L_IDX6_MASK (0x3000U)\r
-#define PUF_IDXBLK_L_IDX6_SHIFT (12U)\r
-#define PUF_IDXBLK_L_IDX6(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX6_SHIFT)) & PUF_IDXBLK_L_IDX6_MASK)\r
-#define PUF_IDXBLK_L_IDX7_MASK (0xC000U)\r
-#define PUF_IDXBLK_L_IDX7_SHIFT (14U)\r
-#define PUF_IDXBLK_L_IDX7(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX7_SHIFT)) & PUF_IDXBLK_L_IDX7_MASK)\r
-#define PUF_IDXBLK_L_LOCK_IDX_MASK (0xC0000000U)\r
-#define PUF_IDXBLK_L_LOCK_IDX_SHIFT (30U)\r
-#define PUF_IDXBLK_L_LOCK_IDX(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_LOCK_IDX_SHIFT)) & PUF_IDXBLK_L_LOCK_IDX_MASK)\r
+#define PUF_IDXBLK_L_IDX1_MASK (0xCU)\r
+#define PUF_IDXBLK_L_IDX1_SHIFT (2U)\r
+/*! IDX1 - Use to block PUF index 1\r
+ */\r
+#define PUF_IDXBLK_L_IDX1(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX1_SHIFT)) & PUF_IDXBLK_L_IDX1_MASK)\r
+#define PUF_IDXBLK_L_IDX2_MASK (0x30U)\r
+#define PUF_IDXBLK_L_IDX2_SHIFT (4U)\r
+/*! IDX2 - Use to block PUF index 2\r
+ */\r
+#define PUF_IDXBLK_L_IDX2(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX2_SHIFT)) & PUF_IDXBLK_L_IDX2_MASK)\r
+#define PUF_IDXBLK_L_IDX3_MASK (0xC0U)\r
+#define PUF_IDXBLK_L_IDX3_SHIFT (6U)\r
+/*! IDX3 - Use to block PUF index 3\r
+ */\r
+#define PUF_IDXBLK_L_IDX3(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX3_SHIFT)) & PUF_IDXBLK_L_IDX3_MASK)\r
+#define PUF_IDXBLK_L_IDX4_MASK (0x300U)\r
+#define PUF_IDXBLK_L_IDX4_SHIFT (8U)\r
+/*! IDX4 - Use to block PUF index 4\r
+ */\r
+#define PUF_IDXBLK_L_IDX4(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX4_SHIFT)) & PUF_IDXBLK_L_IDX4_MASK)\r
+#define PUF_IDXBLK_L_IDX5_MASK (0xC00U)\r
+#define PUF_IDXBLK_L_IDX5_SHIFT (10U)\r
+/*! IDX5 - Use to block PUF index 5\r
+ */\r
+#define PUF_IDXBLK_L_IDX5(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX5_SHIFT)) & PUF_IDXBLK_L_IDX5_MASK)\r
+#define PUF_IDXBLK_L_IDX6_MASK (0x3000U)\r
+#define PUF_IDXBLK_L_IDX6_SHIFT (12U)\r
+/*! IDX6 - Use to block PUF index 6\r
+ */\r
+#define PUF_IDXBLK_L_IDX6(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX6_SHIFT)) & PUF_IDXBLK_L_IDX6_MASK)\r
+#define PUF_IDXBLK_L_IDX7_MASK (0xC000U)\r
+#define PUF_IDXBLK_L_IDX7_SHIFT (14U)\r
+/*! IDX7 - Use to block PUF index 7\r
+ */\r
+#define PUF_IDXBLK_L_IDX7(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_IDX7_SHIFT)) & PUF_IDXBLK_L_IDX7_MASK)\r
+#define PUF_IDXBLK_L_LOCK_IDX_MASK (0xC0000000U)\r
+#define PUF_IDXBLK_L_LOCK_IDX_SHIFT (30U)\r
+/*! LOCK_IDX - Lock 0 to 7 PUF key indexes\r
+ */\r
+#define PUF_IDXBLK_L_LOCK_IDX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_LOCK_IDX_SHIFT)) & PUF_IDXBLK_L_LOCK_IDX_MASK)\r
/*! @} */\r
\r
/*! @name IDXBLK_H_DP - */\r
/*! @{ */\r
-#define PUF_IDXBLK_H_DP_IDX8_MASK (0x3U)\r
-#define PUF_IDXBLK_H_DP_IDX8_SHIFT (0U)\r
-#define PUF_IDXBLK_H_DP_IDX8(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX8_SHIFT)) & PUF_IDXBLK_H_DP_IDX8_MASK)\r
-#define PUF_IDXBLK_H_DP_IDX9_MASK (0xCU)\r
-#define PUF_IDXBLK_H_DP_IDX9_SHIFT (2U)\r
-#define PUF_IDXBLK_H_DP_IDX9(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX9_SHIFT)) & PUF_IDXBLK_H_DP_IDX9_MASK)\r
-#define PUF_IDXBLK_H_DP_IDX10_MASK (0x30U)\r
-#define PUF_IDXBLK_H_DP_IDX10_SHIFT (4U)\r
-#define PUF_IDXBLK_H_DP_IDX10(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX10_SHIFT)) & PUF_IDXBLK_H_DP_IDX10_MASK)\r
-#define PUF_IDXBLK_H_DP_IDX11_MASK (0xC0U)\r
-#define PUF_IDXBLK_H_DP_IDX11_SHIFT (6U)\r
-#define PUF_IDXBLK_H_DP_IDX11(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX11_SHIFT)) & PUF_IDXBLK_H_DP_IDX11_MASK)\r
-#define PUF_IDXBLK_H_DP_IDX12_MASK (0x300U)\r
-#define PUF_IDXBLK_H_DP_IDX12_SHIFT (8U)\r
-#define PUF_IDXBLK_H_DP_IDX12(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX12_SHIFT)) & PUF_IDXBLK_H_DP_IDX12_MASK)\r
-#define PUF_IDXBLK_H_DP_IDX13_MASK (0xC00U)\r
-#define PUF_IDXBLK_H_DP_IDX13_SHIFT (10U)\r
-#define PUF_IDXBLK_H_DP_IDX13(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX13_SHIFT)) & PUF_IDXBLK_H_DP_IDX13_MASK)\r
-#define PUF_IDXBLK_H_DP_IDX14_MASK (0x3000U)\r
-#define PUF_IDXBLK_H_DP_IDX14_SHIFT (12U)\r
-#define PUF_IDXBLK_H_DP_IDX14(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX14_SHIFT)) & PUF_IDXBLK_H_DP_IDX14_MASK)\r
-#define PUF_IDXBLK_H_DP_IDX15_MASK (0xC000U)\r
-#define PUF_IDXBLK_H_DP_IDX15_SHIFT (14U)\r
-#define PUF_IDXBLK_H_DP_IDX15(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX15_SHIFT)) & PUF_IDXBLK_H_DP_IDX15_MASK)\r
+#define PUF_IDXBLK_H_DP_IDX8_MASK (0x3U)\r
+#define PUF_IDXBLK_H_DP_IDX8_SHIFT (0U)\r
+/*! IDX8 - Use to block PUF index 8\r
+ */\r
+#define PUF_IDXBLK_H_DP_IDX8(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX8_SHIFT)) & PUF_IDXBLK_H_DP_IDX8_MASK)\r
+#define PUF_IDXBLK_H_DP_IDX9_MASK (0xCU)\r
+#define PUF_IDXBLK_H_DP_IDX9_SHIFT (2U)\r
+/*! IDX9 - Use to block PUF index 9\r
+ */\r
+#define PUF_IDXBLK_H_DP_IDX9(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX9_SHIFT)) & PUF_IDXBLK_H_DP_IDX9_MASK)\r
+#define PUF_IDXBLK_H_DP_IDX10_MASK (0x30U)\r
+#define PUF_IDXBLK_H_DP_IDX10_SHIFT (4U)\r
+/*! IDX10 - Use to block PUF index 10\r
+ */\r
+#define PUF_IDXBLK_H_DP_IDX10(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX10_SHIFT)) & PUF_IDXBLK_H_DP_IDX10_MASK)\r
+#define PUF_IDXBLK_H_DP_IDX11_MASK (0xC0U)\r
+#define PUF_IDXBLK_H_DP_IDX11_SHIFT (6U)\r
+/*! IDX11 - Use to block PUF index 11\r
+ */\r
+#define PUF_IDXBLK_H_DP_IDX11(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX11_SHIFT)) & PUF_IDXBLK_H_DP_IDX11_MASK)\r
+#define PUF_IDXBLK_H_DP_IDX12_MASK (0x300U)\r
+#define PUF_IDXBLK_H_DP_IDX12_SHIFT (8U)\r
+/*! IDX12 - Use to block PUF index 12\r
+ */\r
+#define PUF_IDXBLK_H_DP_IDX12(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX12_SHIFT)) & PUF_IDXBLK_H_DP_IDX12_MASK)\r
+#define PUF_IDXBLK_H_DP_IDX13_MASK (0xC00U)\r
+#define PUF_IDXBLK_H_DP_IDX13_SHIFT (10U)\r
+/*! IDX13 - Use to block PUF index 13\r
+ */\r
+#define PUF_IDXBLK_H_DP_IDX13(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX13_SHIFT)) & PUF_IDXBLK_H_DP_IDX13_MASK)\r
+#define PUF_IDXBLK_H_DP_IDX14_MASK (0x3000U)\r
+#define PUF_IDXBLK_H_DP_IDX14_SHIFT (12U)\r
+/*! IDX14 - Use to block PUF index 14\r
+ */\r
+#define PUF_IDXBLK_H_DP_IDX14(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX14_SHIFT)) & PUF_IDXBLK_H_DP_IDX14_MASK)\r
+#define PUF_IDXBLK_H_DP_IDX15_MASK (0xC000U)\r
+#define PUF_IDXBLK_H_DP_IDX15_SHIFT (14U)\r
+/*! IDX15 - Use to block PUF index 15\r
+ */\r
+#define PUF_IDXBLK_H_DP_IDX15(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_DP_IDX15_SHIFT)) & PUF_IDXBLK_H_DP_IDX15_MASK)\r
/*! @} */\r
\r
/*! @name KEYMASK - Only reset in case of full IC reset */\r
/*! @{ */\r
-#define PUF_KEYMASK_KEYMASK_MASK (0xFFFFFFFFU)\r
-#define PUF_KEYMASK_KEYMASK_SHIFT (0U)\r
-#define PUF_KEYMASK_KEYMASK(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYMASK_KEYMASK_SHIFT)) & PUF_KEYMASK_KEYMASK_MASK)\r
+#define PUF_KEYMASK_KEYMASK_MASK (0xFFFFFFFFU)\r
+#define PUF_KEYMASK_KEYMASK_SHIFT (0U)\r
+#define PUF_KEYMASK_KEYMASK(x) (((uint32_t)(((uint32_t)(x)) << PUF_KEYMASK_KEYMASK_SHIFT)) & PUF_KEYMASK_KEYMASK_MASK)\r
/*! @} */\r
\r
/* The count of PUF_KEYMASK */\r
-#define PUF_KEYMASK_COUNT (4U)\r
+#define PUF_KEYMASK_COUNT (4U)\r
\r
/*! @name IDXBLK_H - */\r
/*! @{ */\r
-#define PUF_IDXBLK_H_IDX8_MASK (0x3U)\r
-#define PUF_IDXBLK_H_IDX8_SHIFT (0U)\r
-#define PUF_IDXBLK_H_IDX8(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX8_SHIFT)) & PUF_IDXBLK_H_IDX8_MASK)\r
-#define PUF_IDXBLK_H_IDX9_MASK (0xCU)\r
-#define PUF_IDXBLK_H_IDX9_SHIFT (2U)\r
-#define PUF_IDXBLK_H_IDX9(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX9_SHIFT)) & PUF_IDXBLK_H_IDX9_MASK)\r
-#define PUF_IDXBLK_H_IDX10_MASK (0x30U)\r
-#define PUF_IDXBLK_H_IDX10_SHIFT (4U)\r
-#define PUF_IDXBLK_H_IDX10(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX10_SHIFT)) & PUF_IDXBLK_H_IDX10_MASK)\r
-#define PUF_IDXBLK_H_IDX11_MASK (0xC0U)\r
-#define PUF_IDXBLK_H_IDX11_SHIFT (6U)\r
-#define PUF_IDXBLK_H_IDX11(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX11_SHIFT)) & PUF_IDXBLK_H_IDX11_MASK)\r
-#define PUF_IDXBLK_H_IDX12_MASK (0x300U)\r
-#define PUF_IDXBLK_H_IDX12_SHIFT (8U)\r
-#define PUF_IDXBLK_H_IDX12(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX12_SHIFT)) & PUF_IDXBLK_H_IDX12_MASK)\r
-#define PUF_IDXBLK_H_IDX13_MASK (0xC00U)\r
-#define PUF_IDXBLK_H_IDX13_SHIFT (10U)\r
-#define PUF_IDXBLK_H_IDX13(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX13_SHIFT)) & PUF_IDXBLK_H_IDX13_MASK)\r
-#define PUF_IDXBLK_H_IDX14_MASK (0x3000U)\r
-#define PUF_IDXBLK_H_IDX14_SHIFT (12U)\r
-#define PUF_IDXBLK_H_IDX14(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX14_SHIFT)) & PUF_IDXBLK_H_IDX14_MASK)\r
-#define PUF_IDXBLK_H_IDX15_MASK (0xC000U)\r
-#define PUF_IDXBLK_H_IDX15_SHIFT (14U)\r
-#define PUF_IDXBLK_H_IDX15(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX15_SHIFT)) & PUF_IDXBLK_H_IDX15_MASK)\r
-#define PUF_IDXBLK_H_LOCK_IDX_MASK (0xC0000000U)\r
-#define PUF_IDXBLK_H_LOCK_IDX_SHIFT (30U)\r
-#define PUF_IDXBLK_H_LOCK_IDX(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_LOCK_IDX_SHIFT)) & PUF_IDXBLK_H_LOCK_IDX_MASK)\r
+#define PUF_IDXBLK_H_IDX8_MASK (0x3U)\r
+#define PUF_IDXBLK_H_IDX8_SHIFT (0U)\r
+/*! IDX8 - Use to block PUF index 8\r
+ */\r
+#define PUF_IDXBLK_H_IDX8(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX8_SHIFT)) & PUF_IDXBLK_H_IDX8_MASK)\r
+#define PUF_IDXBLK_H_IDX9_MASK (0xCU)\r
+#define PUF_IDXBLK_H_IDX9_SHIFT (2U)\r
+/*! IDX9 - Use to block PUF index 9\r
+ */\r
+#define PUF_IDXBLK_H_IDX9(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX9_SHIFT)) & PUF_IDXBLK_H_IDX9_MASK)\r
+#define PUF_IDXBLK_H_IDX10_MASK (0x30U)\r
+#define PUF_IDXBLK_H_IDX10_SHIFT (4U)\r
+/*! IDX10 - Use to block PUF index 10\r
+ */\r
+#define PUF_IDXBLK_H_IDX10(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX10_SHIFT)) & PUF_IDXBLK_H_IDX10_MASK)\r
+#define PUF_IDXBLK_H_IDX11_MASK (0xC0U)\r
+#define PUF_IDXBLK_H_IDX11_SHIFT (6U)\r
+/*! IDX11 - Use to block PUF index 11\r
+ */\r
+#define PUF_IDXBLK_H_IDX11(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX11_SHIFT)) & PUF_IDXBLK_H_IDX11_MASK)\r
+#define PUF_IDXBLK_H_IDX12_MASK (0x300U)\r
+#define PUF_IDXBLK_H_IDX12_SHIFT (8U)\r
+/*! IDX12 - Use to block PUF index 12\r
+ */\r
+#define PUF_IDXBLK_H_IDX12(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX12_SHIFT)) & PUF_IDXBLK_H_IDX12_MASK)\r
+#define PUF_IDXBLK_H_IDX13_MASK (0xC00U)\r
+#define PUF_IDXBLK_H_IDX13_SHIFT (10U)\r
+/*! IDX13 - Use to block PUF index 13\r
+ */\r
+#define PUF_IDXBLK_H_IDX13(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX13_SHIFT)) & PUF_IDXBLK_H_IDX13_MASK)\r
+#define PUF_IDXBLK_H_IDX14_MASK (0x3000U)\r
+#define PUF_IDXBLK_H_IDX14_SHIFT (12U)\r
+/*! IDX14 - Use to block PUF index 14\r
+ */\r
+#define PUF_IDXBLK_H_IDX14(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX14_SHIFT)) & PUF_IDXBLK_H_IDX14_MASK)\r
+#define PUF_IDXBLK_H_IDX15_MASK (0xC000U)\r
+#define PUF_IDXBLK_H_IDX15_SHIFT (14U)\r
+/*! IDX15 - Use to block PUF index 15\r
+ */\r
+#define PUF_IDXBLK_H_IDX15(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_IDX15_SHIFT)) & PUF_IDXBLK_H_IDX15_MASK)\r
+#define PUF_IDXBLK_H_LOCK_IDX_MASK (0xC0000000U)\r
+#define PUF_IDXBLK_H_LOCK_IDX_SHIFT (30U)\r
+/*! LOCK_IDX - Lock 8 to 15 PUF key indexes\r
+ */\r
+#define PUF_IDXBLK_H_LOCK_IDX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_H_LOCK_IDX_SHIFT)) & PUF_IDXBLK_H_LOCK_IDX_MASK)\r
/*! @} */\r
\r
/*! @name IDXBLK_L_DP - */\r
/*! @{ */\r
-#define PUF_IDXBLK_L_DP_IDX0_MASK (0x3U)\r
-#define PUF_IDXBLK_L_DP_IDX0_SHIFT (0U)\r
-#define PUF_IDXBLK_L_DP_IDX0(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX0_SHIFT)) & PUF_IDXBLK_L_DP_IDX0_MASK)\r
-#define PUF_IDXBLK_L_DP_IDX1_MASK (0xCU)\r
-#define PUF_IDXBLK_L_DP_IDX1_SHIFT (2U)\r
-#define PUF_IDXBLK_L_DP_IDX1(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX1_SHIFT)) & PUF_IDXBLK_L_DP_IDX1_MASK)\r
-#define PUF_IDXBLK_L_DP_IDX2_MASK (0x30U)\r
-#define PUF_IDXBLK_L_DP_IDX2_SHIFT (4U)\r
-#define PUF_IDXBLK_L_DP_IDX2(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX2_SHIFT)) & PUF_IDXBLK_L_DP_IDX2_MASK)\r
-#define PUF_IDXBLK_L_DP_IDX3_MASK (0xC0U)\r
-#define PUF_IDXBLK_L_DP_IDX3_SHIFT (6U)\r
-#define PUF_IDXBLK_L_DP_IDX3(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX3_SHIFT)) & PUF_IDXBLK_L_DP_IDX3_MASK)\r
-#define PUF_IDXBLK_L_DP_IDX4_MASK (0x300U)\r
-#define PUF_IDXBLK_L_DP_IDX4_SHIFT (8U)\r
-#define PUF_IDXBLK_L_DP_IDX4(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX4_SHIFT)) & PUF_IDXBLK_L_DP_IDX4_MASK)\r
-#define PUF_IDXBLK_L_DP_IDX5_MASK (0xC00U)\r
-#define PUF_IDXBLK_L_DP_IDX5_SHIFT (10U)\r
-#define PUF_IDXBLK_L_DP_IDX5(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX5_SHIFT)) & PUF_IDXBLK_L_DP_IDX5_MASK)\r
-#define PUF_IDXBLK_L_DP_IDX6_MASK (0x3000U)\r
-#define PUF_IDXBLK_L_DP_IDX6_SHIFT (12U)\r
-#define PUF_IDXBLK_L_DP_IDX6(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX6_SHIFT)) & PUF_IDXBLK_L_DP_IDX6_MASK)\r
-#define PUF_IDXBLK_L_DP_IDX7_MASK (0xC000U)\r
-#define PUF_IDXBLK_L_DP_IDX7_SHIFT (14U)\r
-#define PUF_IDXBLK_L_DP_IDX7(x) (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX7_SHIFT)) & PUF_IDXBLK_L_DP_IDX7_MASK)\r
+#define PUF_IDXBLK_L_DP_IDX1_MASK (0xCU)\r
+#define PUF_IDXBLK_L_DP_IDX1_SHIFT (2U)\r
+/*! IDX1 - Use to block PUF index 1\r
+ */\r
+#define PUF_IDXBLK_L_DP_IDX1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX1_SHIFT)) & PUF_IDXBLK_L_DP_IDX1_MASK)\r
+#define PUF_IDXBLK_L_DP_IDX2_MASK (0x30U)\r
+#define PUF_IDXBLK_L_DP_IDX2_SHIFT (4U)\r
+/*! IDX2 - Use to block PUF index 2\r
+ */\r
+#define PUF_IDXBLK_L_DP_IDX2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX2_SHIFT)) & PUF_IDXBLK_L_DP_IDX2_MASK)\r
+#define PUF_IDXBLK_L_DP_IDX3_MASK (0xC0U)\r
+#define PUF_IDXBLK_L_DP_IDX3_SHIFT (6U)\r
+/*! IDX3 - Use to block PUF index 3\r
+ */\r
+#define PUF_IDXBLK_L_DP_IDX3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX3_SHIFT)) & PUF_IDXBLK_L_DP_IDX3_MASK)\r
+#define PUF_IDXBLK_L_DP_IDX4_MASK (0x300U)\r
+#define PUF_IDXBLK_L_DP_IDX4_SHIFT (8U)\r
+/*! IDX4 - Use to block PUF index 4\r
+ */\r
+#define PUF_IDXBLK_L_DP_IDX4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX4_SHIFT)) & PUF_IDXBLK_L_DP_IDX4_MASK)\r
+#define PUF_IDXBLK_L_DP_IDX5_MASK (0xC00U)\r
+#define PUF_IDXBLK_L_DP_IDX5_SHIFT (10U)\r
+/*! IDX5 - Use to block PUF index 5\r
+ */\r
+#define PUF_IDXBLK_L_DP_IDX5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX5_SHIFT)) & PUF_IDXBLK_L_DP_IDX5_MASK)\r
+#define PUF_IDXBLK_L_DP_IDX6_MASK (0x3000U)\r
+#define PUF_IDXBLK_L_DP_IDX6_SHIFT (12U)\r
+/*! IDX6 - Use to block PUF index 6\r
+ */\r
+#define PUF_IDXBLK_L_DP_IDX6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX6_SHIFT)) & PUF_IDXBLK_L_DP_IDX6_MASK)\r
+#define PUF_IDXBLK_L_DP_IDX7_MASK (0xC000U)\r
+#define PUF_IDXBLK_L_DP_IDX7_SHIFT (14U)\r
+/*! IDX7 - Use to block PUF index 7\r
+ */\r
+#define PUF_IDXBLK_L_DP_IDX7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_IDXBLK_L_DP_IDX7_SHIFT)) & PUF_IDXBLK_L_DP_IDX7_MASK)\r
/*! @} */\r
\r
/*! @name SHIFT_STATUS - */\r
/*! @{ */\r
-#define PUF_SHIFT_STATUS_KEY0_MASK (0xFU)\r
-#define PUF_SHIFT_STATUS_KEY0_SHIFT (0U)\r
-#define PUF_SHIFT_STATUS_KEY0(x) (((uint32_t)(((uint32_t)(x)) << PUF_SHIFT_STATUS_KEY0_SHIFT)) & PUF_SHIFT_STATUS_KEY0_MASK)\r
-#define PUF_SHIFT_STATUS_KEY1_MASK (0xF0U)\r
-#define PUF_SHIFT_STATUS_KEY1_SHIFT (4U)\r
-#define PUF_SHIFT_STATUS_KEY1(x) (((uint32_t)(((uint32_t)(x)) << PUF_SHIFT_STATUS_KEY1_SHIFT)) & PUF_SHIFT_STATUS_KEY1_MASK)\r
-#define PUF_SHIFT_STATUS_KEY2_MASK (0xF00U)\r
-#define PUF_SHIFT_STATUS_KEY2_SHIFT (8U)\r
-#define PUF_SHIFT_STATUS_KEY2(x) (((uint32_t)(((uint32_t)(x)) << PUF_SHIFT_STATUS_KEY2_SHIFT)) & PUF_SHIFT_STATUS_KEY2_MASK)\r
-#define PUF_SHIFT_STATUS_KEY3_MASK (0xF000U)\r
-#define PUF_SHIFT_STATUS_KEY3_SHIFT (12U)\r
-#define PUF_SHIFT_STATUS_KEY3(x) (((uint32_t)(((uint32_t)(x)) << PUF_SHIFT_STATUS_KEY3_SHIFT)) & PUF_SHIFT_STATUS_KEY3_MASK)\r
+#define PUF_SHIFT_STATUS_KEY0_MASK (0xFU)\r
+#define PUF_SHIFT_STATUS_KEY0_SHIFT (0U)\r
+/*! KEY0 - Index counter from key 0 shift register\r
+ */\r
+#define PUF_SHIFT_STATUS_KEY0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_SHIFT_STATUS_KEY0_SHIFT)) & PUF_SHIFT_STATUS_KEY0_MASK)\r
+#define PUF_SHIFT_STATUS_KEY1_MASK (0xF0U)\r
+#define PUF_SHIFT_STATUS_KEY1_SHIFT (4U)\r
+/*! KEY1 - Index counter from key 1 shift register\r
+ */\r
+#define PUF_SHIFT_STATUS_KEY1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_SHIFT_STATUS_KEY1_SHIFT)) & PUF_SHIFT_STATUS_KEY1_MASK)\r
+#define PUF_SHIFT_STATUS_KEY2_MASK (0xF00U)\r
+#define PUF_SHIFT_STATUS_KEY2_SHIFT (8U)\r
+/*! KEY2 - Index counter from key 2 shift register\r
+ */\r
+#define PUF_SHIFT_STATUS_KEY2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_SHIFT_STATUS_KEY2_SHIFT)) & PUF_SHIFT_STATUS_KEY2_MASK)\r
+#define PUF_SHIFT_STATUS_KEY3_MASK (0xF000U)\r
+#define PUF_SHIFT_STATUS_KEY3_SHIFT (12U)\r
+/*! KEY3 - Index counter from key 3 shift register\r
+ */\r
+#define PUF_SHIFT_STATUS_KEY3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << PUF_SHIFT_STATUS_KEY3_SHIFT)) & PUF_SHIFT_STATUS_KEY3_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group PUF_Register_Masks */\r
\r
-\r
/* PUF - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral PUF base address */\r
- #define PUF_BASE (0x5003B000u)\r
- /** Peripheral PUF base address */\r
- #define PUF_BASE_NS (0x4003B000u)\r
- /** Peripheral PUF base pointer */\r
- #define PUF ((PUF_Type *)PUF_BASE)\r
- /** Peripheral PUF base pointer */\r
- #define PUF_NS ((PUF_Type *)PUF_BASE_NS)\r
- /** Array initializer of PUF peripheral base addresses */\r
- #define PUF_BASE_ADDRS { PUF_BASE }\r
- /** Array initializer of PUF peripheral base pointers */\r
- #define PUF_BASE_PTRS { PUF }\r
- /** Array initializer of PUF peripheral base addresses */\r
- #define PUF_BASE_ADDRS_NS { PUF_BASE_NS }\r
- /** Array initializer of PUF peripheral base pointers */\r
- #define PUF_BASE_PTRS_NS { PUF_NS }\r
+/** Peripheral PUF base address */\r
+#define PUF_BASE (0x5003B000u)\r
+/** Peripheral PUF base address */\r
+#define PUF_BASE_NS (0x4003B000u)\r
+/** Peripheral PUF base pointer */\r
+#define PUF ((PUF_Type *)PUF_BASE)\r
+/** Peripheral PUF base pointer */\r
+#define PUF_NS ((PUF_Type *)PUF_BASE_NS)\r
+/** Array initializer of PUF peripheral base addresses */\r
+#define PUF_BASE_ADDRS \\r
+ { \\r
+ PUF_BASE \\r
+ }\r
+/** Array initializer of PUF peripheral base pointers */\r
+#define PUF_BASE_PTRS \\r
+ { \\r
+ PUF \\r
+ }\r
+/** Array initializer of PUF peripheral base addresses */\r
+#define PUF_BASE_ADDRS_NS \\r
+ { \\r
+ PUF_BASE_NS \\r
+ }\r
+/** Array initializer of PUF peripheral base pointers */\r
+#define PUF_BASE_PTRS_NS \\r
+ { \\r
+ PUF_NS \\r
+ }\r
#else\r
- /** Peripheral PUF base address */\r
- #define PUF_BASE (0x4003B000u)\r
- /** Peripheral PUF base pointer */\r
- #define PUF ((PUF_Type *)PUF_BASE)\r
- /** Array initializer of PUF peripheral base addresses */\r
- #define PUF_BASE_ADDRS { PUF_BASE }\r
- /** Array initializer of PUF peripheral base pointers */\r
- #define PUF_BASE_PTRS { PUF }\r
+/** Peripheral PUF base address */\r
+#define PUF_BASE (0x4003B000u)\r
+/** Peripheral PUF base pointer */\r
+#define PUF ((PUF_Type *)PUF_BASE)\r
+/** Array initializer of PUF peripheral base addresses */\r
+#define PUF_BASE_ADDRS \\r
+ { \\r
+ PUF_BASE \\r
+ }\r
+/** Array initializer of PUF peripheral base pointers */\r
+#define PUF_BASE_PTRS \\r
+ { \\r
+ PUF \\r
+ }\r
#endif\r
/** Interrupt vectors for the PUF peripheral type */\r
-#define PUF_IRQS { PUF_IRQn }\r
+#define PUF_IRQS \\r
+ { \\r
+ PUF_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group PUF_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- RNG Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** RNG - Register Layout Typedef */\r
-typedef struct {\r
- __I uint32_t RANDOM_NUMBER; /**< This register contains a random 32 bit number which is computed on demand, at each time it is read, offset: 0x0 */\r
- __I uint32_t ENCRYPTED_NUMBER; /**< This register contains a random 32 bit number which is pre-computed, offset: 0x4 */\r
- __I uint32_t COUNTER_VAL; /**< , offset: 0x8 */\r
- __IO uint32_t COUNTER_CFG; /**< , offset: 0xC */\r
- __IO uint32_t ONLINE_TEST_CFG; /**< , offset: 0x10 */\r
- __I uint32_t ONLINE_TEST_VAL; /**< , offset: 0x14 */\r
- __IO uint32_t MISC_CFG; /**< , offset: 0x18 */\r
- uint8_t RESERVED_0[4056];\r
- __IO uint32_t POWERDOWN; /**< Powerdown mode (standard but certainly useless here), offset: 0xFF4 */\r
- uint8_t RESERVED_1[4];\r
- __I uint32_t MODULEID; /**< IP identifier, offset: 0xFFC */\r
+typedef struct\r
+{\r
+ __I uint32_t RANDOM_NUMBER; /**< This register contains a random 32 bit number which is computed on demand, at each\r
+ time it is read, offset: 0x0 */\r
+ uint8_t RESERVED_0[4];\r
+ __I uint32_t COUNTER_VAL; /**< , offset: 0x8 */\r
+ __IO uint32_t COUNTER_CFG; /**< , offset: 0xC */\r
+ __IO uint32_t ONLINE_TEST_CFG; /**< , offset: 0x10 */\r
+ __I uint32_t ONLINE_TEST_VAL; /**< , offset: 0x14 */\r
+ uint8_t RESERVED_1[4068];\r
+ __I uint32_t MODULEID; /**< IP identifier, offset: 0xFFC */\r
} RNG_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name RANDOM_NUMBER - This register contains a random 32 bit number which is computed on demand, at each time it is read */\r
-/*! @{ */\r
-#define RNG_RANDOM_NUMBER_RANDOM_NUMBER_MASK (0xFFFFFFFFU)\r
-#define RNG_RANDOM_NUMBER_RANDOM_NUMBER_SHIFT (0U)\r
-#define RNG_RANDOM_NUMBER_RANDOM_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << RNG_RANDOM_NUMBER_RANDOM_NUMBER_SHIFT)) & RNG_RANDOM_NUMBER_RANDOM_NUMBER_MASK)\r
-/*! @} */\r
-\r
-/*! @name ENCRYPTED_NUMBER - This register contains a random 32 bit number which is pre-computed */\r
+/*! @name RANDOM_NUMBER - This register contains a random 32 bit number which is computed on demand, at each time it is\r
+ * read */\r
/*! @{ */\r
-#define RNG_ENCRYPTED_NUMBER_ENCRYPTED_NUMBER_MASK (0xFFFFFFFFU)\r
-#define RNG_ENCRYPTED_NUMBER_ENCRYPTED_NUMBER_SHIFT (0U)\r
-#define RNG_ENCRYPTED_NUMBER_ENCRYPTED_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << RNG_ENCRYPTED_NUMBER_ENCRYPTED_NUMBER_SHIFT)) & RNG_ENCRYPTED_NUMBER_ENCRYPTED_NUMBER_MASK)\r
+#define RNG_RANDOM_NUMBER_RANDOM_NUMBER_MASK (0xFFFFFFFFU)\r
+#define RNG_RANDOM_NUMBER_RANDOM_NUMBER_SHIFT (0U)\r
+/*! RANDOM_NUMBER - This register contains a random 32 bit number which is computed on demand, at each time it is read.\r
+ */\r
+#define RNG_RANDOM_NUMBER_RANDOM_NUMBER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_RANDOM_NUMBER_RANDOM_NUMBER_SHIFT)) & RNG_RANDOM_NUMBER_RANDOM_NUMBER_MASK)\r
/*! @} */\r
\r
/*! @name COUNTER_VAL - */\r
/*! @{ */\r
-#define RNG_COUNTER_VAL_CLK_RATIO_MASK (0xFFU)\r
-#define RNG_COUNTER_VAL_CLK_RATIO_SHIFT (0U)\r
-#define RNG_COUNTER_VAL_CLK_RATIO(x) (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_VAL_CLK_RATIO_SHIFT)) & RNG_COUNTER_VAL_CLK_RATIO_MASK)\r
-#define RNG_COUNTER_VAL_REFRESH_CNT_MASK (0x1F00U)\r
-#define RNG_COUNTER_VAL_REFRESH_CNT_SHIFT (8U)\r
-#define RNG_COUNTER_VAL_REFRESH_CNT(x) (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_VAL_REFRESH_CNT_SHIFT)) & RNG_COUNTER_VAL_REFRESH_CNT_MASK)\r
+#define RNG_COUNTER_VAL_CLK_RATIO_MASK (0xFFU)\r
+#define RNG_COUNTER_VAL_CLK_RATIO_SHIFT (0U)\r
+/*! CLK_RATIO - Gives the ratio between the internal clocks frequencies and the register clock\r
+ * frequency for evaluation and certification purposes.\r
+ */\r
+#define RNG_COUNTER_VAL_CLK_RATIO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_VAL_CLK_RATIO_SHIFT)) & RNG_COUNTER_VAL_CLK_RATIO_MASK)\r
+#define RNG_COUNTER_VAL_REFRESH_CNT_MASK (0x1F00U)\r
+#define RNG_COUNTER_VAL_REFRESH_CNT_SHIFT (8U)\r
+/*! REFRESH_CNT - Incremented (till max possible value) each time COUNTER was updated since last reading to any\r
+ * *_NUMBER.\r
+ */\r
+#define RNG_COUNTER_VAL_REFRESH_CNT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_VAL_REFRESH_CNT_SHIFT)) & RNG_COUNTER_VAL_REFRESH_CNT_MASK)\r
/*! @} */\r
\r
/*! @name COUNTER_CFG - */\r
/*! @{ */\r
-#define RNG_COUNTER_CFG_MODE_MASK (0x3U)\r
-#define RNG_COUNTER_CFG_MODE_SHIFT (0U)\r
-#define RNG_COUNTER_CFG_MODE(x) (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_CFG_MODE_SHIFT)) & RNG_COUNTER_CFG_MODE_MASK)\r
-#define RNG_COUNTER_CFG_CLOCK_SEL_MASK (0x1CU)\r
-#define RNG_COUNTER_CFG_CLOCK_SEL_SHIFT (2U)\r
-#define RNG_COUNTER_CFG_CLOCK_SEL(x) (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_CFG_CLOCK_SEL_SHIFT)) & RNG_COUNTER_CFG_CLOCK_SEL_MASK)\r
-#define RNG_COUNTER_CFG_SHIFT4X_MASK (0xE0U)\r
-#define RNG_COUNTER_CFG_SHIFT4X_SHIFT (5U)\r
-#define RNG_COUNTER_CFG_SHIFT4X(x) (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_CFG_SHIFT4X_SHIFT)) & RNG_COUNTER_CFG_SHIFT4X_MASK)\r
-#define RNG_COUNTER_CFG_DIS_ENH_ENTR_REFILL_MASK (0x100U)\r
-#define RNG_COUNTER_CFG_DIS_ENH_ENTR_REFILL_SHIFT (8U)\r
-#define RNG_COUNTER_CFG_DIS_ENH_ENTR_REFILL(x) (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_CFG_DIS_ENH_ENTR_REFILL_SHIFT)) & RNG_COUNTER_CFG_DIS_ENH_ENTR_REFILL_MASK)\r
-#define RNG_COUNTER_CFG_FORCE_ENTR_SPREADING_MASK (0x200U)\r
-#define RNG_COUNTER_CFG_FORCE_ENTR_SPREADING_SHIFT (9U)\r
-#define RNG_COUNTER_CFG_FORCE_ENTR_SPREADING(x) (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_CFG_FORCE_ENTR_SPREADING_SHIFT)) & RNG_COUNTER_CFG_FORCE_ENTR_SPREADING_MASK)\r
+#define RNG_COUNTER_CFG_MODE_MASK (0x3U)\r
+#define RNG_COUNTER_CFG_MODE_SHIFT (0U)\r
+/*! MODE - 00: disabled 01: update once.\r
+ */\r
+#define RNG_COUNTER_CFG_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_CFG_MODE_SHIFT)) & RNG_COUNTER_CFG_MODE_MASK)\r
+#define RNG_COUNTER_CFG_CLOCK_SEL_MASK (0x1CU)\r
+#define RNG_COUNTER_CFG_CLOCK_SEL_SHIFT (2U)\r
+/*! CLOCK_SEL - Selects the internal clock on which to compute statistics.\r
+ */\r
+#define RNG_COUNTER_CFG_CLOCK_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_CFG_CLOCK_SEL_SHIFT)) & RNG_COUNTER_CFG_CLOCK_SEL_MASK)\r
+#define RNG_COUNTER_CFG_SHIFT4X_MASK (0xE0U)\r
+#define RNG_COUNTER_CFG_SHIFT4X_SHIFT (5U)\r
+/*! SHIFT4X - To be used to add precision to clock_ratio and determine 'entropy refill'.\r
+ */\r
+#define RNG_COUNTER_CFG_SHIFT4X(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_COUNTER_CFG_SHIFT4X_SHIFT)) & RNG_COUNTER_CFG_SHIFT4X_MASK)\r
/*! @} */\r
\r
/*! @name ONLINE_TEST_CFG - */\r
/*! @{ */\r
-#define RNG_ONLINE_TEST_CFG_ACTIVATE_MASK (0x1U)\r
-#define RNG_ONLINE_TEST_CFG_ACTIVATE_SHIFT (0U)\r
-#define RNG_ONLINE_TEST_CFG_ACTIVATE(x) (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_CFG_ACTIVATE_SHIFT)) & RNG_ONLINE_TEST_CFG_ACTIVATE_MASK)\r
-#define RNG_ONLINE_TEST_CFG_DATA_SEL_MASK (0x6U)\r
-#define RNG_ONLINE_TEST_CFG_DATA_SEL_SHIFT (1U)\r
-#define RNG_ONLINE_TEST_CFG_DATA_SEL(x) (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_CFG_DATA_SEL_SHIFT)) & RNG_ONLINE_TEST_CFG_DATA_SEL_MASK)\r
+#define RNG_ONLINE_TEST_CFG_ACTIVATE_MASK (0x1U)\r
+#define RNG_ONLINE_TEST_CFG_ACTIVATE_SHIFT (0U)\r
+/*! ACTIVATE - 0: disabled 1: activated Update rythm for VAL depends on COUNTER_CFG if data_sel is set to COUNTER.\r
+ */\r
+#define RNG_ONLINE_TEST_CFG_ACTIVATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_CFG_ACTIVATE_SHIFT)) & RNG_ONLINE_TEST_CFG_ACTIVATE_MASK)\r
+#define RNG_ONLINE_TEST_CFG_DATA_SEL_MASK (0x6U)\r
+#define RNG_ONLINE_TEST_CFG_DATA_SEL_SHIFT (1U)\r
+/*! DATA_SEL - Selects source on which to apply online test: 00: LSB of COUNTER: raw data from one\r
+ * or all sources of entropy 01: MSB of COUNTER: raw data from one or all sources of entropy 10:\r
+ * RANDOM_NUMBER 11: ENCRYPTED_NUMBER 'activate' should be set to 'disabled' before changing this\r
+ * field.\r
+ */\r
+#define RNG_ONLINE_TEST_CFG_DATA_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_CFG_DATA_SEL_SHIFT)) & RNG_ONLINE_TEST_CFG_DATA_SEL_MASK)\r
/*! @} */\r
\r
/*! @name ONLINE_TEST_VAL - */\r
/*! @{ */\r
#define RNG_ONLINE_TEST_VAL_LIVE_CHI_SQUARED_MASK (0xFU)\r
#define RNG_ONLINE_TEST_VAL_LIVE_CHI_SQUARED_SHIFT (0U)\r
-#define RNG_ONLINE_TEST_VAL_LIVE_CHI_SQUARED(x) (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_VAL_LIVE_CHI_SQUARED_SHIFT)) & RNG_ONLINE_TEST_VAL_LIVE_CHI_SQUARED_MASK)\r
+/*! LIVE_CHI_SQUARED - This value is updated as described in field 'activate'.\r
+ */\r
+#define RNG_ONLINE_TEST_VAL_LIVE_CHI_SQUARED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_VAL_LIVE_CHI_SQUARED_SHIFT)) & \\r
+ RNG_ONLINE_TEST_VAL_LIVE_CHI_SQUARED_MASK)\r
#define RNG_ONLINE_TEST_VAL_MIN_CHI_SQUARED_MASK (0xF0U)\r
#define RNG_ONLINE_TEST_VAL_MIN_CHI_SQUARED_SHIFT (4U)\r
-#define RNG_ONLINE_TEST_VAL_MIN_CHI_SQUARED(x) (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_VAL_MIN_CHI_SQUARED_SHIFT)) & RNG_ONLINE_TEST_VAL_MIN_CHI_SQUARED_MASK)\r
+/*! MIN_CHI_SQUARED - This field is reset when 'activate'==0.\r
+ */\r
+#define RNG_ONLINE_TEST_VAL_MIN_CHI_SQUARED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_VAL_MIN_CHI_SQUARED_SHIFT)) & \\r
+ RNG_ONLINE_TEST_VAL_MIN_CHI_SQUARED_MASK)\r
#define RNG_ONLINE_TEST_VAL_MAX_CHI_SQUARED_MASK (0xF00U)\r
#define RNG_ONLINE_TEST_VAL_MAX_CHI_SQUARED_SHIFT (8U)\r
-#define RNG_ONLINE_TEST_VAL_MAX_CHI_SQUARED(x) (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_VAL_MAX_CHI_SQUARED_SHIFT)) & RNG_ONLINE_TEST_VAL_MAX_CHI_SQUARED_MASK)\r
-/*! @} */\r
-\r
-/*! @name MISC_CFG - */\r
-/*! @{ */\r
-#define RNG_MISC_CFG_AES_RESEED_MASK (0x1U)\r
-#define RNG_MISC_CFG_AES_RESEED_SHIFT (0U)\r
-#define RNG_MISC_CFG_AES_RESEED(x) (((uint32_t)(((uint32_t)(x)) << RNG_MISC_CFG_AES_RESEED_SHIFT)) & RNG_MISC_CFG_AES_RESEED_MASK)\r
-#define RNG_MISC_CFG_AES_DT_CFG_MASK (0x2U)\r
-#define RNG_MISC_CFG_AES_DT_CFG_SHIFT (1U)\r
-#define RNG_MISC_CFG_AES_DT_CFG(x) (((uint32_t)(((uint32_t)(x)) << RNG_MISC_CFG_AES_DT_CFG_SHIFT)) & RNG_MISC_CFG_AES_DT_CFG_MASK)\r
-/*! @} */\r
-\r
-/*! @name POWERDOWN - Powerdown mode (standard but certainly useless here) */\r
-/*! @{ */\r
-#define RNG_POWERDOWN_SOFT_RESET_MASK (0x1U)\r
-#define RNG_POWERDOWN_SOFT_RESET_SHIFT (0U)\r
-#define RNG_POWERDOWN_SOFT_RESET(x) (((uint32_t)(((uint32_t)(x)) << RNG_POWERDOWN_SOFT_RESET_SHIFT)) & RNG_POWERDOWN_SOFT_RESET_MASK)\r
-#define RNG_POWERDOWN_FORCE_SOFT_RESET_MASK (0x2U)\r
-#define RNG_POWERDOWN_FORCE_SOFT_RESET_SHIFT (1U)\r
-#define RNG_POWERDOWN_FORCE_SOFT_RESET(x) (((uint32_t)(((uint32_t)(x)) << RNG_POWERDOWN_FORCE_SOFT_RESET_SHIFT)) & RNG_POWERDOWN_FORCE_SOFT_RESET_MASK)\r
-#define RNG_POWERDOWN_POWERDOWN_MASK (0x80000000U)\r
-#define RNG_POWERDOWN_POWERDOWN_SHIFT (31U)\r
-#define RNG_POWERDOWN_POWERDOWN(x) (((uint32_t)(((uint32_t)(x)) << RNG_POWERDOWN_POWERDOWN_SHIFT)) & RNG_POWERDOWN_POWERDOWN_MASK)\r
+/*! MAX_CHI_SQUARED - This field is reset when 'activate'==0.\r
+ */\r
+#define RNG_ONLINE_TEST_VAL_MAX_CHI_SQUARED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_ONLINE_TEST_VAL_MAX_CHI_SQUARED_SHIFT)) & \\r
+ RNG_ONLINE_TEST_VAL_MAX_CHI_SQUARED_MASK)\r
/*! @} */\r
\r
/*! @name MODULEID - IP identifier */\r
/*! @{ */\r
-#define RNG_MODULEID_APERTURE_MASK (0xFFU)\r
-#define RNG_MODULEID_APERTURE_SHIFT (0U)\r
-#define RNG_MODULEID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << RNG_MODULEID_APERTURE_SHIFT)) & RNG_MODULEID_APERTURE_MASK)\r
-#define RNG_MODULEID_MIN_REV_MASK (0xF00U)\r
-#define RNG_MODULEID_MIN_REV_SHIFT (8U)\r
-#define RNG_MODULEID_MIN_REV(x) (((uint32_t)(((uint32_t)(x)) << RNG_MODULEID_MIN_REV_SHIFT)) & RNG_MODULEID_MIN_REV_MASK)\r
-#define RNG_MODULEID_MAJ_REV_MASK (0xF000U)\r
-#define RNG_MODULEID_MAJ_REV_SHIFT (12U)\r
-#define RNG_MODULEID_MAJ_REV(x) (((uint32_t)(((uint32_t)(x)) << RNG_MODULEID_MAJ_REV_SHIFT)) & RNG_MODULEID_MAJ_REV_MASK)\r
-#define RNG_MODULEID_ID_MASK (0xFFFF0000U)\r
-#define RNG_MODULEID_ID_SHIFT (16U)\r
-#define RNG_MODULEID_ID(x) (((uint32_t)(((uint32_t)(x)) << RNG_MODULEID_ID_SHIFT)) & RNG_MODULEID_ID_MASK)\r
+#define RNG_MODULEID_APERTURE_MASK (0xFFU)\r
+#define RNG_MODULEID_APERTURE_SHIFT (0U)\r
+/*! APERTURE - Aperture i.\r
+ */\r
+#define RNG_MODULEID_APERTURE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_MODULEID_APERTURE_SHIFT)) & RNG_MODULEID_APERTURE_MASK)\r
+#define RNG_MODULEID_MIN_REV_MASK (0xF00U)\r
+#define RNG_MODULEID_MIN_REV_SHIFT (8U)\r
+/*! MIN_REV - Minor revision i.\r
+ */\r
+#define RNG_MODULEID_MIN_REV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_MODULEID_MIN_REV_SHIFT)) & RNG_MODULEID_MIN_REV_MASK)\r
+#define RNG_MODULEID_MAJ_REV_MASK (0xF000U)\r
+#define RNG_MODULEID_MAJ_REV_SHIFT (12U)\r
+/*! MAJ_REV - Major revision i.\r
+ */\r
+#define RNG_MODULEID_MAJ_REV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RNG_MODULEID_MAJ_REV_SHIFT)) & RNG_MODULEID_MAJ_REV_MASK)\r
+#define RNG_MODULEID_ID_MASK (0xFFFF0000U)\r
+#define RNG_MODULEID_ID_SHIFT (16U)\r
+/*! ID - Identifier.\r
+ */\r
+#define RNG_MODULEID_ID(x) (((uint32_t)(((uint32_t)(x)) << RNG_MODULEID_ID_SHIFT)) & RNG_MODULEID_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group RNG_Register_Masks */\r
\r
-\r
/* RNG - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral RNG base address */\r
- #define RNG_BASE (0x5003A000u)\r
- /** Peripheral RNG base address */\r
- #define RNG_BASE_NS (0x4003A000u)\r
- /** Peripheral RNG base pointer */\r
- #define RNG ((RNG_Type *)RNG_BASE)\r
- /** Peripheral RNG base pointer */\r
- #define RNG_NS ((RNG_Type *)RNG_BASE_NS)\r
- /** Array initializer of RNG peripheral base addresses */\r
- #define RNG_BASE_ADDRS { RNG_BASE }\r
- /** Array initializer of RNG peripheral base pointers */\r
- #define RNG_BASE_PTRS { RNG }\r
- /** Array initializer of RNG peripheral base addresses */\r
- #define RNG_BASE_ADDRS_NS { RNG_BASE_NS }\r
- /** Array initializer of RNG peripheral base pointers */\r
- #define RNG_BASE_PTRS_NS { RNG_NS }\r
+/** Peripheral RNG base address */\r
+#define RNG_BASE (0x5003A000u)\r
+/** Peripheral RNG base address */\r
+#define RNG_BASE_NS (0x4003A000u)\r
+/** Peripheral RNG base pointer */\r
+#define RNG ((RNG_Type *)RNG_BASE)\r
+/** Peripheral RNG base pointer */\r
+#define RNG_NS ((RNG_Type *)RNG_BASE_NS)\r
+/** Array initializer of RNG peripheral base addresses */\r
+#define RNG_BASE_ADDRS \\r
+ { \\r
+ RNG_BASE \\r
+ }\r
+/** Array initializer of RNG peripheral base pointers */\r
+#define RNG_BASE_PTRS \\r
+ { \\r
+ RNG \\r
+ }\r
+/** Array initializer of RNG peripheral base addresses */\r
+#define RNG_BASE_ADDRS_NS \\r
+ { \\r
+ RNG_BASE_NS \\r
+ }\r
+/** Array initializer of RNG peripheral base pointers */\r
+#define RNG_BASE_PTRS_NS \\r
+ { \\r
+ RNG_NS \\r
+ }\r
#else\r
- /** Peripheral RNG base address */\r
- #define RNG_BASE (0x4003A000u)\r
- /** Peripheral RNG base pointer */\r
- #define RNG ((RNG_Type *)RNG_BASE)\r
- /** Array initializer of RNG peripheral base addresses */\r
- #define RNG_BASE_ADDRS { RNG_BASE }\r
- /** Array initializer of RNG peripheral base pointers */\r
- #define RNG_BASE_PTRS { RNG }\r
+/** Peripheral RNG base address */\r
+#define RNG_BASE (0x4003A000u)\r
+/** Peripheral RNG base pointer */\r
+#define RNG ((RNG_Type *)RNG_BASE)\r
+/** Array initializer of RNG peripheral base addresses */\r
+#define RNG_BASE_ADDRS \\r
+ { \\r
+ RNG_BASE \\r
+ }\r
+/** Array initializer of RNG peripheral base pointers */\r
+#define RNG_BASE_PTRS \\r
+ { \\r
+ RNG \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group RNG_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- RTC Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** RTC - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CTRL; /**< RTC control register, offset: 0x0 */\r
- __IO uint32_t MATCH; /**< RTC match register, offset: 0x4 */\r
- __IO uint32_t COUNT; /**< RTC counter register, offset: 0x8 */\r
- __IO uint32_t WAKE; /**< High-resolution/wake-up timer control register, offset: 0xC */\r
- __I uint32_t SUBSEC; /**< RTC Sub-second Counter register, offset: 0x10 */\r
- uint8_t RESERVED_0[44];\r
- __IO uint32_t GPREG[8]; /**< General Purpose register, array offset: 0x40, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t CTRL; /**< RTC control register, offset: 0x0 */\r
+ __IO uint32_t MATCH; /**< RTC match register, offset: 0x4 */\r
+ __IO uint32_t COUNT; /**< RTC counter register, offset: 0x8 */\r
+ __IO uint32_t WAKE; /**< High-resolution/wake-up timer control register, offset: 0xC */\r
+ __I uint32_t SUBSEC; /**< Sub-second counter register, offset: 0x10 */\r
+ uint8_t RESERVED_0[44];\r
+ __IO uint32_t GPREG[8]; /**< General Purpose register, array offset: 0x40, array step: 0x4 */\r
} RTC_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CTRL - RTC control register */\r
/*! @{ */\r
-#define RTC_CTRL_SWRESET_MASK (0x1U)\r
-#define RTC_CTRL_SWRESET_SHIFT (0U)\r
+#define RTC_CTRL_SWRESET_MASK (0x1U)\r
+#define RTC_CTRL_SWRESET_SHIFT (0U)\r
/*! SWRESET - Software reset control\r
- * 0b0..Not in reset. The RTC is not held in reset. This bit must be cleared prior to configuring or initiating any operation of the RTC.\r
- * 0b1..In reset. The RTC is held in reset. All register bits within the RTC will be forced to their reset value except the OFD bit. This bit must be cleared before writing to any register in the RTC - including writes to set any of the other bits within this register. Do not attempt to write to any bits of this register at the same time that the reset bit is being cleared.\r
- */\r
-#define RTC_CTRL_SWRESET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_SWRESET_SHIFT)) & RTC_CTRL_SWRESET_MASK)\r
-#define RTC_CTRL_ALARM1HZ_MASK (0x4U)\r
-#define RTC_CTRL_ALARM1HZ_SHIFT (2U)\r
+ * 0b0..Not in reset. The RTC is not held in reset. This bit must be cleared prior to configuring or initiating any\r
+ * operation of the RTC. 0b1..In reset. The RTC is held in reset. All register bits within the RTC will be forced to\r
+ * their reset value except the OFD bit. This bit must be cleared before writing to any register in the RTC - including\r
+ * writes to set any of the other bits within this register. Do not attempt to write to any bits of this register at the\r
+ * same time that the reset bit is being cleared.\r
+ */\r
+#define RTC_CTRL_SWRESET(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_SWRESET_SHIFT)) & RTC_CTRL_SWRESET_MASK)\r
+#define RTC_CTRL_ALARM1HZ_MASK (0x4U)\r
+#define RTC_CTRL_ALARM1HZ_SHIFT (2U)\r
/*! ALARM1HZ - RTC 1 Hz timer alarm flag status.\r
* 0b0..No match. No match has occurred on the 1 Hz RTC timer. Writing a 0 has no effect.\r
- * 0b1..Match. A match condition has occurred on the 1 Hz RTC timer. This flag generates an RTC alarm interrupt request RTC_ALARM which can also wake up the part from any low power mode. Writing a 1 clears this bit.\r
+ * 0b1..Match. A match condition has occurred on the 1 Hz RTC timer. This flag generates an RTC alarm interrupt\r
+ * request RTC_ALARM which can also wake up the part from any low power mode. Writing a 1 clears this bit.\r
*/\r
-#define RTC_CTRL_ALARM1HZ(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_ALARM1HZ_SHIFT)) & RTC_CTRL_ALARM1HZ_MASK)\r
-#define RTC_CTRL_WAKE1KHZ_MASK (0x8U)\r
-#define RTC_CTRL_WAKE1KHZ_SHIFT (3U)\r
+#define RTC_CTRL_ALARM1HZ(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_ALARM1HZ_SHIFT)) & RTC_CTRL_ALARM1HZ_MASK)\r
+#define RTC_CTRL_WAKE1KHZ_MASK (0x8U)\r
+#define RTC_CTRL_WAKE1KHZ_SHIFT (3U)\r
/*! WAKE1KHZ - RTC 1 kHz timer wake-up flag status.\r
* 0b0..Run. The RTC 1 kHz timer is running. Writing a 0 has no effect.\r
- * 0b1..Time-out. The 1 kHz high-resolution/wake-up timer has timed out. This flag generates an RTC wake-up interrupt request RTC-WAKE which can also wake up the part from any low power mode. Writing a 1 clears this bit.\r
+ * 0b1..Time-out. The 1 kHz high-resolution/wake-up timer has timed out. This flag generates an RTC wake-up\r
+ * interrupt request RTC-WAKE which can also wake up the part from any low power mode. Writing a 1 clears this\r
+ * bit.\r
*/\r
-#define RTC_CTRL_WAKE1KHZ(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_WAKE1KHZ_SHIFT)) & RTC_CTRL_WAKE1KHZ_MASK)\r
-#define RTC_CTRL_ALARMDPD_EN_MASK (0x10U)\r
-#define RTC_CTRL_ALARMDPD_EN_SHIFT (4U)\r
+#define RTC_CTRL_WAKE1KHZ(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_WAKE1KHZ_SHIFT)) & RTC_CTRL_WAKE1KHZ_MASK)\r
+#define RTC_CTRL_ALARMDPD_EN_MASK (0x10U)\r
+#define RTC_CTRL_ALARMDPD_EN_SHIFT (4U)\r
/*! ALARMDPD_EN - RTC 1 Hz timer alarm enable for Deep power-down.\r
* 0b0..Disable. A match on the 1 Hz RTC timer will not bring the part out of Deep power-down mode.\r
* 0b1..Enable. A match on the 1 Hz RTC timer bring the part out of Deep power-down mode.\r
*/\r
-#define RTC_CTRL_ALARMDPD_EN(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_ALARMDPD_EN_SHIFT)) & RTC_CTRL_ALARMDPD_EN_MASK)\r
-#define RTC_CTRL_WAKEDPD_EN_MASK (0x20U)\r
-#define RTC_CTRL_WAKEDPD_EN_SHIFT (5U)\r
+#define RTC_CTRL_ALARMDPD_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_ALARMDPD_EN_SHIFT)) & RTC_CTRL_ALARMDPD_EN_MASK)\r
+#define RTC_CTRL_WAKEDPD_EN_MASK (0x20U)\r
+#define RTC_CTRL_WAKEDPD_EN_SHIFT (5U)\r
/*! WAKEDPD_EN - RTC 1 kHz timer wake-up enable for Deep power-down.\r
* 0b0..Disable. A match on the 1 kHz RTC timer will not bring the part out of Deep power-down mode.\r
* 0b1..Enable. A match on the 1 kHz RTC timer bring the part out of Deep power-down mode.\r
*/\r
-#define RTC_CTRL_WAKEDPD_EN(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_WAKEDPD_EN_SHIFT)) & RTC_CTRL_WAKEDPD_EN_MASK)\r
-#define RTC_CTRL_RTC1KHZ_EN_MASK (0x40U)\r
-#define RTC_CTRL_RTC1KHZ_EN_SHIFT (6U)\r
-/*! RTC1KHZ_EN - RTC 1 kHz clock enable. This bit can be set to 0 to conserve power if the 1 kHz timer is not used. This bit has no effect when the RTC is disabled (bit 7 of this register is 0).\r
+#define RTC_CTRL_WAKEDPD_EN(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_WAKEDPD_EN_SHIFT)) & RTC_CTRL_WAKEDPD_EN_MASK)\r
+#define RTC_CTRL_RTC1KHZ_EN_MASK (0x40U)\r
+#define RTC_CTRL_RTC1KHZ_EN_SHIFT (6U)\r
+/*! RTC1KHZ_EN - RTC 1 kHz clock enable. This bit can be set to 0 to conserve power if the 1 kHz\r
+ * timer is not used. This bit has no effect when the RTC is disabled (bit 7 of this register is 0).\r
* 0b0..Disable. A match on the 1 kHz RTC timer will not bring the part out of Deep power-down mode.\r
* 0b1..Enable. The 1 kHz RTC timer is enabled.\r
*/\r
-#define RTC_CTRL_RTC1KHZ_EN(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC1KHZ_EN_SHIFT)) & RTC_CTRL_RTC1KHZ_EN_MASK)\r
-#define RTC_CTRL_RTC_EN_MASK (0x80U)\r
-#define RTC_CTRL_RTC_EN_SHIFT (7U)\r
+#define RTC_CTRL_RTC1KHZ_EN(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC1KHZ_EN_SHIFT)) & RTC_CTRL_RTC1KHZ_EN_MASK)\r
+#define RTC_CTRL_RTC_EN_MASK (0x80U)\r
+#define RTC_CTRL_RTC_EN_SHIFT (7U)\r
/*! RTC_EN - RTC enable.\r
- * 0b0..Disable. The RTC 1 Hz and 1 kHz clocks are shut down and the RTC operation is disabled. This bit should be 0 when writing to load a value in the RTC counter register.\r
- * 0b1..Enable. The 1 Hz RTC clock is running and RTC operation is enabled. This bit must be set to initiate operation of the RTC. The first clock to the RTC counter occurs 1 s after this bit is set. To also enable the high-resolution, 1 kHz clock, set bit 6 in this register.\r
- */\r
-#define RTC_CTRL_RTC_EN(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC_EN_SHIFT)) & RTC_CTRL_RTC_EN_MASK)\r
-#define RTC_CTRL_RTC_OSC_PD_MASK (0x100U)\r
-#define RTC_CTRL_RTC_OSC_PD_SHIFT (8U)\r
+ * 0b0..Disable. The RTC 1 Hz and 1 kHz clocks are shut down and the RTC operation is disabled. This bit should\r
+ * be 0 when writing to load a value in the RTC counter register.\r
+ * 0b1..Enable. The 1 Hz RTC clock is running and RTC operation is enabled. This bit must be set to initiate\r
+ * operation of the RTC. The first clock to the RTC counter occurs 1 s after this bit is set. To also enable the\r
+ * high-resolution, 1 kHz clock, set bit 6 in this register.\r
+ */\r
+#define RTC_CTRL_RTC_EN(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC_EN_SHIFT)) & RTC_CTRL_RTC_EN_MASK)\r
+#define RTC_CTRL_RTC_OSC_PD_MASK (0x100U)\r
+#define RTC_CTRL_RTC_OSC_PD_SHIFT (8U)\r
/*! RTC_OSC_PD - RTC oscillator power-down control.\r
* 0b0..See RTC_OSC_BYPASS\r
* 0b1..RTC oscillator is powered-down.\r
*/\r
-#define RTC_CTRL_RTC_OSC_PD(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC_OSC_PD_SHIFT)) & RTC_CTRL_RTC_OSC_PD_MASK)\r
-#define RTC_CTRL_RTC_OSC_BYPASS_MASK (0x200U)\r
-#define RTC_CTRL_RTC_OSC_BYPASS_SHIFT (9U)\r
+#define RTC_CTRL_RTC_OSC_PD(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC_OSC_PD_SHIFT)) & RTC_CTRL_RTC_OSC_PD_MASK)\r
+#define RTC_CTRL_RTC_OSC_BYPASS_MASK (0x200U)\r
+#define RTC_CTRL_RTC_OSC_BYPASS_SHIFT (9U)\r
/*! RTC_OSC_BYPASS - RTC oscillator bypass control.\r
- * 0b0..The RTC Oscillator operates normally as a crystal oscillator with the crystal connected between the RTC_XTALIN and RTC_XTALOUT pins.\r
- * 0b1..The RTC Oscillator is in bypass mode. In this mode a clock can be directly input into the RTC_XTALIN pin.\r
- */\r
-#define RTC_CTRL_RTC_OSC_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC_OSC_BYPASS_SHIFT)) & RTC_CTRL_RTC_OSC_BYPASS_MASK)\r
-#define RTC_CTRL_RTC_SUBSEC_ENA_MASK (0x400U)\r
-#define RTC_CTRL_RTC_SUBSEC_ENA_SHIFT (10U)\r
+ * 0b0..The RTC Oscillator operates normally as a crystal oscillator with the crystal connected between the RTC_XTALIN\r
+ * and RTC_XTALOUT pins. 0b1..The RTC Oscillator is in bypass mode. In this mode a clock can be directly input into the\r
+ * RTC_XTALIN pin.\r
+ */\r
+#define RTC_CTRL_RTC_OSC_BYPASS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC_OSC_BYPASS_SHIFT)) & RTC_CTRL_RTC_OSC_BYPASS_MASK)\r
+#define RTC_CTRL_RTC_SUBSEC_ENA_MASK (0x400U)\r
+#define RTC_CTRL_RTC_SUBSEC_ENA_SHIFT (10U)\r
/*! RTC_SUBSEC_ENA - RTC Sub-second counter control.\r
- * 0b0..The sub-second counter (if implemented) is disabled. This bit is cleared by a system-level POR or BOD reset as well as a by the RTC_ENA bit (bit 7 in this register). On modules not equipped with a sub-second counter, this bit will always read-back as a '0'.\r
- * 0b1..The 32 KHz sub-second counter is enabled (if implemented). Counting commences on the start of the first one-second interval after this bit is set. Note: This bit can only be set after the RTC_ENA bit (bit 7) is set by a previous write operation. Note: The RTC sub-second counter must be re-enabled whenever the chip exits deep power-down mode.\r
+ * 0b0..The sub-second counter (if implemented) is disabled. This bit is cleared by a system-level POR or BOD\r
+ * reset as well as a by the RTC_ENA bit (bit 7 in this register). On modules not equipped with a sub-second\r
+ * counter, this bit will always read-back as a '0'.\r
+ * 0b1..The 32 KHz sub-second counter is enabled (if implemented). Counting commences on the start of the first\r
+ * one-second interval after this bit is set. Note: This bit can only be set after the RTC_ENA bit (bit 7) is\r
+ * set by a previous write operation. Note: The RTC sub-second counter must be re-enabled whenever the chip\r
+ * exits deep power-down mode.\r
*/\r
-#define RTC_CTRL_RTC_SUBSEC_ENA(x) (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC_SUBSEC_ENA_SHIFT)) & RTC_CTRL_RTC_SUBSEC_ENA_MASK)\r
+#define RTC_CTRL_RTC_SUBSEC_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << RTC_CTRL_RTC_SUBSEC_ENA_SHIFT)) & RTC_CTRL_RTC_SUBSEC_ENA_MASK)\r
/*! @} */\r
\r
/*! @name MATCH - RTC match register */\r
/*! @{ */\r
-#define RTC_MATCH_MATVAL_MASK (0xFFFFFFFFU)\r
-#define RTC_MATCH_MATVAL_SHIFT (0U)\r
-#define RTC_MATCH_MATVAL(x) (((uint32_t)(((uint32_t)(x)) << RTC_MATCH_MATVAL_SHIFT)) & RTC_MATCH_MATVAL_MASK)\r
+#define RTC_MATCH_MATVAL_MASK (0xFFFFFFFFU)\r
+#define RTC_MATCH_MATVAL_SHIFT (0U)\r
+/*! MATVAL - Contains the match value against which the 1 Hz RTC timer will be compared to set the\r
+ * alarm flag RTC_ALARM and generate an alarm interrupt/wake-up if enabled.\r
+ */\r
+#define RTC_MATCH_MATVAL(x) (((uint32_t)(((uint32_t)(x)) << RTC_MATCH_MATVAL_SHIFT)) & RTC_MATCH_MATVAL_MASK)\r
/*! @} */\r
\r
/*! @name COUNT - RTC counter register */\r
/*! @{ */\r
-#define RTC_COUNT_VAL_MASK (0xFFFFFFFFU)\r
-#define RTC_COUNT_VAL_SHIFT (0U)\r
-#define RTC_COUNT_VAL(x) (((uint32_t)(((uint32_t)(x)) << RTC_COUNT_VAL_SHIFT)) & RTC_COUNT_VAL_MASK)\r
+#define RTC_COUNT_VAL_MASK (0xFFFFFFFFU)\r
+#define RTC_COUNT_VAL_SHIFT (0U)\r
+/*! VAL - A read reflects the current value of the main, 1 Hz RTC timer. A write loads a new initial\r
+ * value into the timer. The RTC counter will count up continuously at a 1 Hz rate once the RTC\r
+ * Software Reset is removed (by clearing bit 0 of the CTRL register). Only write to this\r
+ * register when the RTC_EN bit in the RTC CTRL Register is 0. The counter increments one second after\r
+ * the RTC_EN bit is set.\r
+ */\r
+#define RTC_COUNT_VAL(x) (((uint32_t)(((uint32_t)(x)) << RTC_COUNT_VAL_SHIFT)) & RTC_COUNT_VAL_MASK)\r
/*! @} */\r
\r
/*! @name WAKE - High-resolution/wake-up timer control register */\r
/*! @{ */\r
-#define RTC_WAKE_VAL_MASK (0xFFFFU)\r
-#define RTC_WAKE_VAL_SHIFT (0U)\r
-#define RTC_WAKE_VAL(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAKE_VAL_SHIFT)) & RTC_WAKE_VAL_MASK)\r
+#define RTC_WAKE_VAL_MASK (0xFFFFU)\r
+#define RTC_WAKE_VAL_SHIFT (0U)\r
+/*! VAL - A read reflects the current value of the high-resolution/wake-up timer. A write pre-loads\r
+ * a start count value into the wake-up timer and initializes a count-down sequence. Do not write\r
+ * to this register while counting is in progress.\r
+ */\r
+#define RTC_WAKE_VAL(x) (((uint32_t)(((uint32_t)(x)) << RTC_WAKE_VAL_SHIFT)) & RTC_WAKE_VAL_MASK)\r
/*! @} */\r
\r
-/*! @name SUBSEC - RTC Sub-second Counter register */\r
+/*! @name SUBSEC - Sub-second counter register */\r
/*! @{ */\r
-#define RTC_SUBSEC_SUBSEC_MASK (0x7FFFU)\r
-#define RTC_SUBSEC_SUBSEC_SHIFT (0U)\r
-#define RTC_SUBSEC_SUBSEC(x) (((uint32_t)(((uint32_t)(x)) << RTC_SUBSEC_SUBSEC_SHIFT)) & RTC_SUBSEC_SUBSEC_MASK)\r
+#define RTC_SUBSEC_SUBSEC_MASK (0x7FFFU)\r
+#define RTC_SUBSEC_SUBSEC_SHIFT (0U)\r
+/*! SUBSEC - A read reflects the current value of the 32KHz sub-second counter. This counter is\r
+ * cleared whenever the SUBSEC_ENA bit in the RTC_CONTROL register is low. Up-counting at a 32KHz\r
+ * rate commences at the start of the next one-second interval after the SUBSEC_ENA bit is set. This\r
+ * counter must be re-enabled after exiting deep power-down mode or after the main RTC module is\r
+ * disabled and re-enabled. On modules not equipped with a sub-second counter, this register\r
+ * will read-back as all zeroes.\r
+ */\r
+#define RTC_SUBSEC_SUBSEC(x) (((uint32_t)(((uint32_t)(x)) << RTC_SUBSEC_SUBSEC_SHIFT)) & RTC_SUBSEC_SUBSEC_MASK)\r
/*! @} */\r
\r
/*! @name GPREG - General Purpose register */\r
/*! @{ */\r
-#define RTC_GPREG_GPDATA_MASK (0xFFFFFFFFU)\r
-#define RTC_GPREG_GPDATA_SHIFT (0U)\r
-#define RTC_GPREG_GPDATA(x) (((uint32_t)(((uint32_t)(x)) << RTC_GPREG_GPDATA_SHIFT)) & RTC_GPREG_GPDATA_MASK)\r
+#define RTC_GPREG_GPDATA_MASK (0xFFFFFFFFU)\r
+#define RTC_GPREG_GPDATA_SHIFT (0U)\r
+/*! GPDATA - Data retained during Deep power-down mode or loss of main power as long as VBAT is supplied.\r
+ */\r
+#define RTC_GPREG_GPDATA(x) (((uint32_t)(((uint32_t)(x)) << RTC_GPREG_GPDATA_SHIFT)) & RTC_GPREG_GPDATA_MASK)\r
/*! @} */\r
\r
/* The count of RTC_GPREG */\r
-#define RTC_GPREG_COUNT (8U)\r
-\r
+#define RTC_GPREG_COUNT (8U)\r
\r
/*!\r
* @}\r
*/ /* end of group RTC_Register_Masks */\r
\r
-\r
/* RTC - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral RTC base address */\r
- #define RTC_BASE (0x5002C000u)\r
- /** Peripheral RTC base address */\r
- #define RTC_BASE_NS (0x4002C000u)\r
- /** Peripheral RTC base pointer */\r
- #define RTC ((RTC_Type *)RTC_BASE)\r
- /** Peripheral RTC base pointer */\r
- #define RTC_NS ((RTC_Type *)RTC_BASE_NS)\r
- /** Array initializer of RTC peripheral base addresses */\r
- #define RTC_BASE_ADDRS { RTC_BASE }\r
- /** Array initializer of RTC peripheral base pointers */\r
- #define RTC_BASE_PTRS { RTC }\r
- /** Array initializer of RTC peripheral base addresses */\r
- #define RTC_BASE_ADDRS_NS { RTC_BASE_NS }\r
- /** Array initializer of RTC peripheral base pointers */\r
- #define RTC_BASE_PTRS_NS { RTC_NS }\r
+/** Peripheral RTC base address */\r
+#define RTC_BASE (0x5002C000u)\r
+/** Peripheral RTC base address */\r
+#define RTC_BASE_NS (0x4002C000u)\r
+/** Peripheral RTC base pointer */\r
+#define RTC ((RTC_Type *)RTC_BASE)\r
+/** Peripheral RTC base pointer */\r
+#define RTC_NS ((RTC_Type *)RTC_BASE_NS)\r
+/** Array initializer of RTC peripheral base addresses */\r
+#define RTC_BASE_ADDRS \\r
+ { \\r
+ RTC_BASE \\r
+ }\r
+/** Array initializer of RTC peripheral base pointers */\r
+#define RTC_BASE_PTRS \\r
+ { \\r
+ RTC \\r
+ }\r
+/** Array initializer of RTC peripheral base addresses */\r
+#define RTC_BASE_ADDRS_NS \\r
+ { \\r
+ RTC_BASE_NS \\r
+ }\r
+/** Array initializer of RTC peripheral base pointers */\r
+#define RTC_BASE_PTRS_NS \\r
+ { \\r
+ RTC_NS \\r
+ }\r
#else\r
- /** Peripheral RTC base address */\r
- #define RTC_BASE (0x4002C000u)\r
- /** Peripheral RTC base pointer */\r
- #define RTC ((RTC_Type *)RTC_BASE)\r
- /** Array initializer of RTC peripheral base addresses */\r
- #define RTC_BASE_ADDRS { RTC_BASE }\r
- /** Array initializer of RTC peripheral base pointers */\r
- #define RTC_BASE_PTRS { RTC }\r
+/** Peripheral RTC base address */\r
+#define RTC_BASE (0x4002C000u)\r
+/** Peripheral RTC base pointer */\r
+#define RTC ((RTC_Type *)RTC_BASE)\r
+/** Array initializer of RTC peripheral base addresses */\r
+#define RTC_BASE_ADDRS \\r
+ { \\r
+ RTC_BASE \\r
+ }\r
+/** Array initializer of RTC peripheral base pointers */\r
+#define RTC_BASE_PTRS \\r
+ { \\r
+ RTC \\r
+ }\r
#endif\r
/** Interrupt vectors for the RTC peripheral type */\r
-#define RTC_IRQS { RTC_IRQn }\r
+#define RTC_IRQS \\r
+ { \\r
+ RTC_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group RTC_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- SCT Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** SCT - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CONFIG; /**< SCT configuration register, offset: 0x0 */\r
- __IO uint32_t CTRL; /**< SCT control register, offset: 0x4 */\r
- __IO uint32_t LIMIT; /**< SCT limit event select register, offset: 0x8 */\r
- __IO uint32_t HALT; /**< SCT halt event select register, offset: 0xC */\r
- __IO uint32_t STOP; /**< SCT stop event select register, offset: 0x10 */\r
- __IO uint32_t START; /**< SCT start event select register, offset: 0x14 */\r
- uint8_t RESERVED_0[40];\r
- __IO uint32_t COUNT; /**< SCT counter register, offset: 0x40 */\r
- __IO uint32_t STATE; /**< SCT state register, offset: 0x44 */\r
- __I uint32_t INPUT; /**< SCT input register, offset: 0x48 */\r
- __IO uint32_t REGMODE; /**< SCT match/capture mode register, offset: 0x4C */\r
- __IO uint32_t OUTPUT; /**< SCT output register, offset: 0x50 */\r
- __IO uint32_t OUTPUTDIRCTRL; /**< SCT output counter direction control register, offset: 0x54 */\r
- __IO uint32_t RES; /**< SCT conflict resolution register, offset: 0x58 */\r
- __IO uint32_t DMA0REQUEST; /**< SCT DMA request 0 register, offset: 0x5C */\r
- __IO uint32_t DMA1REQUEST; /**< SCT DMA request 1 register, offset: 0x60 */\r
- uint8_t RESERVED_1[140];\r
- __IO uint32_t EVEN; /**< SCT event interrupt enable register, offset: 0xF0 */\r
- __IO uint32_t EVFLAG; /**< SCT event flag register, offset: 0xF4 */\r
- __IO uint32_t CONEN; /**< SCT conflict interrupt enable register, offset: 0xF8 */\r
- __IO uint32_t CONFLAG; /**< SCT conflict flag register, offset: 0xFC */\r
- union { /* offset: 0x100 */\r
- __IO uint32_t SCTCAP[10]; /**< SCT capture register of capture channel, array offset: 0x100, array step: 0x4 */\r
- __IO uint32_t SCTMATCH[10]; /**< SCT match value register of match channels, array offset: 0x100, array step: 0x4 */\r
- };\r
- uint8_t RESERVED_2[216];\r
- union { /* offset: 0x200 */\r
- __IO uint32_t SCTCAPCTRL[10]; /**< SCT capture control register, array offset: 0x200, array step: 0x4 */\r
- __IO uint32_t SCTMATCHREL[10]; /**< SCT match reload value register, array offset: 0x200, array step: 0x4 */\r
- };\r
- uint8_t RESERVED_3[216];\r
- struct { /* offset: 0x300, array step: 0x8 */\r
- __IO uint32_t STATE; /**< SCT event state register 0, array offset: 0x300, array step: 0x8 */\r
- __IO uint32_t CTRL; /**< SCT event control register 0, array offset: 0x304, array step: 0x8 */\r
- } EVENT[10];\r
- uint8_t RESERVED_4[432];\r
- struct { /* offset: 0x500, array step: 0x8 */\r
- __IO uint32_t SET; /**< SCT output 0 set register, array offset: 0x500, array step: 0x8 */\r
- __IO uint32_t CLR; /**< SCT output 0 clear register, array offset: 0x504, array step: 0x8 */\r
- } OUT[10];\r
+typedef struct\r
+{\r
+ __IO uint32_t CONFIG; /**< SCT configuration register, offset: 0x0 */\r
+ __IO uint32_t CTRL; /**< SCT control register, offset: 0x4 */\r
+ __IO uint32_t LIMIT; /**< SCT limit event select register, offset: 0x8 */\r
+ __IO uint32_t HALT; /**< SCT halt event select register, offset: 0xC */\r
+ __IO uint32_t STOP; /**< SCT stop event select register, offset: 0x10 */\r
+ __IO uint32_t START; /**< SCT start event select register, offset: 0x14 */\r
+ uint8_t RESERVED_0[40];\r
+ __IO uint32_t COUNT; /**< SCT counter register, offset: 0x40 */\r
+ __IO uint32_t STATE; /**< SCT state register, offset: 0x44 */\r
+ __I uint32_t INPUT; /**< SCT input register, offset: 0x48 */\r
+ __IO uint32_t REGMODE; /**< SCT match/capture mode register, offset: 0x4C */\r
+ __IO uint32_t OUTPUT; /**< SCT output register, offset: 0x50 */\r
+ __IO uint32_t OUTPUTDIRCTRL; /**< SCT output counter direction control register, offset: 0x54 */\r
+ __IO uint32_t RES; /**< SCT conflict resolution register, offset: 0x58 */\r
+ __IO uint32_t DMAREQ0; /**< SCT DMA request 0 register, offset: 0x5C */\r
+ __IO uint32_t DMAREQ1; /**< SCT DMA request 1 register, offset: 0x60 */\r
+ uint8_t RESERVED_1[140];\r
+ __IO uint32_t EVEN; /**< SCT event interrupt enable register, offset: 0xF0 */\r
+ __IO uint32_t EVFLAG; /**< SCT event flag register, offset: 0xF4 */\r
+ __IO uint32_t CONEN; /**< SCT conflict interrupt enable register, offset: 0xF8 */\r
+ __IO uint32_t CONFLAG; /**< SCT conflict flag register, offset: 0xFC */\r
+ union\r
+ { /* offset: 0x100 */\r
+ __IO uint32_t CAP[16]; /**< SCT capture register of capture channel, array offset: 0x100, array step: 0x4 */\r
+ __IO uint32_t\r
+ MATCH[16]; /**< SCT match value register of match channels, array offset: 0x100, array step: 0x4 */\r
+ };\r
+ uint8_t RESERVED_2[192];\r
+ union\r
+ { /* offset: 0x200 */\r
+ __IO uint32_t CAPCTRL[16]; /**< SCT capture control register, array offset: 0x200, array step: 0x4 */\r
+ __IO uint32_t MATCHREL[16]; /**< SCT match reload value register, array offset: 0x200, array step: 0x4 */\r
+ };\r
+ uint8_t RESERVED_3[192];\r
+ struct\r
+ { /* offset: 0x300, array step: 0x8 */\r
+ __IO uint32_t STATE; /**< SCT event state register 0, array offset: 0x300, array step: 0x8 */\r
+ __IO uint32_t CTRL; /**< SCT event control register 0, array offset: 0x304, array step: 0x8 */\r
+ } EV[16];\r
+ uint8_t RESERVED_4[384];\r
+ struct\r
+ { /* offset: 0x500, array step: 0x8 */\r
+ __IO uint32_t SET; /**< SCT output 0 set register, array offset: 0x500, array step: 0x8 */\r
+ __IO uint32_t CLR; /**< SCT output 0 clear register, array offset: 0x504, array step: 0x8 */\r
+ } OUT[10];\r
} SCT_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CONFIG - SCT configuration register */\r
/*! @{ */\r
-#define SCT_CONFIG_UNIFY_MASK (0x1U)\r
-#define SCT_CONFIG_UNIFY_SHIFT (0U)\r
+#define SCT_CONFIG_UNIFY_MASK (0x1U)\r
+#define SCT_CONFIG_UNIFY_SHIFT (0U)\r
/*! UNIFY - SCT operation\r
* 0b0..The SCT operates as two 16-bit counters named COUNTER_L and COUNTER_H.\r
* 0b1..The SCT operates as a unified 32-bit counter.\r
*/\r
-#define SCT_CONFIG_UNIFY(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_UNIFY_SHIFT)) & SCT_CONFIG_UNIFY_MASK)\r
-#define SCT_CONFIG_CLKMODE_MASK (0x6U)\r
-#define SCT_CONFIG_CLKMODE_SHIFT (1U)\r
+#define SCT_CONFIG_UNIFY(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_UNIFY_SHIFT)) & SCT_CONFIG_UNIFY_MASK)\r
+#define SCT_CONFIG_CLKMODE_MASK (0x6U)\r
+#define SCT_CONFIG_CLKMODE_SHIFT (1U)\r
/*! CLKMODE - SCT clock mode\r
- * 0b00..System Clock Mode. The system clock clocks the entire SCT module including the counter(s) and counter prescalers.\r
- * 0b01..Sampled System Clock Mode. The system clock clocks the SCT module, but the counter and prescalers are only enabled to count when the designated edge is detected on the input selected by the CKSEL field. The minimum pulse width on the selected clock-gate input is 1 bus clock period. This mode is the high-performance, sampled-clock mode.\r
- * 0b10..SCT Input Clock Mode. The input/edge selected by the CKSEL field clocks the SCT module, including the counters and prescalers, after first being synchronized to the system clock. The minimum pulse width on the clock input is 1 bus clock period. This mode is the low-power, sampled-clock mode.\r
- * 0b11..Asynchronous Mode. The entire SCT module is clocked directly by the input/edge selected by the CKSEL field. In this mode, the SCT outputs are switched synchronously to the SCT input clock - not the system clock. The input clock rate must be at least half the system clock rate and can be the same or faster than the system clock.\r
- */\r
-#define SCT_CONFIG_CLKMODE(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_CLKMODE_SHIFT)) & SCT_CONFIG_CLKMODE_MASK)\r
-#define SCT_CONFIG_CKSEL_MASK (0x78U)\r
-#define SCT_CONFIG_CKSEL_SHIFT (3U)\r
-/*! CKSEL - SCT clock select. The specific functionality of the designated input/edge is dependent on the CLKMODE bit selection in this register.\r
+ * 0b00..System Clock Mode. The system clock clocks the entire SCT module including the counter(s) and counter\r
+ * prescalers. 0b01..Sampled System Clock Mode. The system clock clocks the SCT module, but the counter and prescalers\r
+ * are only enabled to count when the designated edge is detected on the input selected by the CKSEL field. The minimum\r
+ * pulse width on the selected clock-gate input is 1 bus clock period. This mode is the high-performance, sampled-clock\r
+ * mode. 0b10..SCT Input Clock Mode. The input/edge selected by the CKSEL field clocks the SCT module, including the\r
+ * counters and prescalers, after first being synchronized to the system clock. The minimum pulse width on the\r
+ * clock input is 1 bus clock period. This mode is the low-power, sampled-clock mode.\r
+ * 0b11..Asynchronous Mode. The entire SCT module is clocked directly by the input/edge selected by the CKSEL\r
+ * field. In this mode, the SCT outputs are switched synchronously to the SCT input clock - not the system\r
+ * clock. The input clock rate must be at least half the system clock rate and can be the same or faster than\r
+ * the system clock.\r
+ */\r
+#define SCT_CONFIG_CLKMODE(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_CLKMODE_SHIFT)) & SCT_CONFIG_CLKMODE_MASK)\r
+#define SCT_CONFIG_CKSEL_MASK (0x78U)\r
+#define SCT_CONFIG_CKSEL_SHIFT (3U)\r
+/*! CKSEL - SCT clock select. The specific functionality of the designated input/edge is dependent\r
+ * on the CLKMODE bit selection in this register.\r
* 0b0000..Rising edges on input 0.\r
* 0b0001..Falling edges on input 0.\r
* 0b0010..Rising edges on input 1.\r
* 0b0101..Falling edges on input 2.\r
* 0b0110..Rising edges on input 3.\r
* 0b0111..Falling edges on input 3.\r
- */\r
-#define SCT_CONFIG_CKSEL(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_CKSEL_SHIFT)) & SCT_CONFIG_CKSEL_MASK)\r
-#define SCT_CONFIG_NORELAOD_L_MASK (0x80U)\r
-#define SCT_CONFIG_NORELAOD_L_SHIFT (7U)\r
-#define SCT_CONFIG_NORELAOD_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_NORELAOD_L_SHIFT)) & SCT_CONFIG_NORELAOD_L_MASK)\r
-#define SCT_CONFIG_NORELOAD_H_MASK (0x100U)\r
-#define SCT_CONFIG_NORELOAD_H_SHIFT (8U)\r
-#define SCT_CONFIG_NORELOAD_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_NORELOAD_H_SHIFT)) & SCT_CONFIG_NORELOAD_H_MASK)\r
-#define SCT_CONFIG_INSYNC_MASK (0x1E00U)\r
-#define SCT_CONFIG_INSYNC_SHIFT (9U)\r
-#define SCT_CONFIG_INSYNC(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_INSYNC_SHIFT)) & SCT_CONFIG_INSYNC_MASK)\r
-#define SCT_CONFIG_AUTOLIMIT_L_MASK (0x20000U)\r
-#define SCT_CONFIG_AUTOLIMIT_L_SHIFT (17U)\r
-#define SCT_CONFIG_AUTOLIMIT_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_AUTOLIMIT_L_SHIFT)) & SCT_CONFIG_AUTOLIMIT_L_MASK)\r
-#define SCT_CONFIG_AUTOLIMIT_H_MASK (0x40000U)\r
-#define SCT_CONFIG_AUTOLIMIT_H_SHIFT (18U)\r
-#define SCT_CONFIG_AUTOLIMIT_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_AUTOLIMIT_H_SHIFT)) & SCT_CONFIG_AUTOLIMIT_H_MASK)\r
+ * 0b1000..Rising edges on input 4.\r
+ * 0b1001..Falling edges on input 4.\r
+ * 0b1010..Rising edges on input 5.\r
+ * 0b1011..Falling edges on input 5.\r
+ * 0b1100..Rising edges on input 6.\r
+ * 0b1101..Falling edges on input 6.\r
+ * 0b1110..Rising edges on input 7.\r
+ * 0b1111..Falling edges on input 7.\r
+ */\r
+#define SCT_CONFIG_CKSEL(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_CKSEL_SHIFT)) & SCT_CONFIG_CKSEL_MASK)\r
+#define SCT_CONFIG_NORELOAD_L_MASK (0x80U)\r
+#define SCT_CONFIG_NORELOAD_L_SHIFT (7U)\r
+/*! NORELOAD_L - A 1 in this bit prevents the lower match registers from being reloaded from their\r
+ * respective reload registers. Setting this bit eliminates the need to write to the reload\r
+ * registers MATCHREL if the match values are fixed. Software can write to set or clear this bit at any\r
+ * time. This bit applies to both the higher and lower registers when the UNIFY bit is set.\r
+ */\r
+#define SCT_CONFIG_NORELOAD_L(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_NORELOAD_L_SHIFT)) & SCT_CONFIG_NORELOAD_L_MASK)\r
+#define SCT_CONFIG_NORELOAD_H_MASK (0x100U)\r
+#define SCT_CONFIG_NORELOAD_H_SHIFT (8U)\r
+/*! NORELOAD_H - A 1 in this bit prevents the higher match registers from being reloaded from their\r
+ * respective reload registers. Setting this bit eliminates the need to write to the reload\r
+ * registers MATCHREL if the match values are fixed. Software can write to set or clear this bit at\r
+ * any time. This bit is not used when the UNIFY bit is set.\r
+ */\r
+#define SCT_CONFIG_NORELOAD_H(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_NORELOAD_H_SHIFT)) & SCT_CONFIG_NORELOAD_H_MASK)\r
+#define SCT_CONFIG_INSYNC_MASK (0x1E00U)\r
+#define SCT_CONFIG_INSYNC_SHIFT (9U)\r
+/*! INSYNC - Synchronization for input N (bit 9 = input 0, bit 10 = input 1,, bit 12 = input 3); all\r
+ * other bits are reserved. A 1 in one of these bits subjects the corresponding input to\r
+ * synchronization to the SCT clock, before it is used to create an event. If an input is known to\r
+ * already be synchronous to the SCT clock, this bit may be set to 0 for faster input response. (Note:\r
+ * The SCT clock is the system clock for CKMODEs 0-2. It is the selected, asynchronous SCT input\r
+ * clock for CKMODE3). Note that the INSYNC field only affects inputs used for event generation.\r
+ * It does not apply to the clock input specified in the CKSEL field.\r
+ */\r
+#define SCT_CONFIG_INSYNC(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_INSYNC_SHIFT)) & SCT_CONFIG_INSYNC_MASK)\r
+#define SCT_CONFIG_AUTOLIMIT_L_MASK (0x20000U)\r
+#define SCT_CONFIG_AUTOLIMIT_L_SHIFT (17U)\r
+/*! AUTOLIMIT_L - A one in this bit causes a match on match register 0 to be treated as a de-facto\r
+ * LIMIT condition without the need to define an associated event. As with any LIMIT event, this\r
+ * automatic limit causes the counter to be cleared to zero in unidirectional mode or to change\r
+ * the direction of count in bi-directional mode. Software can write to set or clear this bit at\r
+ * any time. This bit applies to both the higher and lower registers when the UNIFY bit is set.\r
+ */\r
+#define SCT_CONFIG_AUTOLIMIT_L(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_AUTOLIMIT_L_SHIFT)) & SCT_CONFIG_AUTOLIMIT_L_MASK)\r
+#define SCT_CONFIG_AUTOLIMIT_H_MASK (0x40000U)\r
+#define SCT_CONFIG_AUTOLIMIT_H_SHIFT (18U)\r
+/*! AUTOLIMIT_H - A one in this bit will cause a match on match register 0 to be treated as a\r
+ * de-facto LIMIT condition without the need to define an associated event. As with any LIMIT event,\r
+ * this automatic limit causes the counter to be cleared to zero in unidirectional mode or to\r
+ * change the direction of count in bi-directional mode. Software can write to set or clear this bit\r
+ * at any time. This bit is not used when the UNIFY bit is set.\r
+ */\r
+#define SCT_CONFIG_AUTOLIMIT_H(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_CONFIG_AUTOLIMIT_H_SHIFT)) & SCT_CONFIG_AUTOLIMIT_H_MASK)\r
/*! @} */\r
\r
/*! @name CTRL - SCT control register */\r
/*! @{ */\r
-#define SCT_CTRL_DOWN_L_MASK (0x1U)\r
-#define SCT_CTRL_DOWN_L_SHIFT (0U)\r
-#define SCT_CTRL_DOWN_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_DOWN_L_SHIFT)) & SCT_CTRL_DOWN_L_MASK)\r
-#define SCT_CTRL_STOP_L_MASK (0x2U)\r
-#define SCT_CTRL_STOP_L_SHIFT (1U)\r
-#define SCT_CTRL_STOP_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_STOP_L_SHIFT)) & SCT_CTRL_STOP_L_MASK)\r
-#define SCT_CTRL_HALT_L_MASK (0x4U)\r
-#define SCT_CTRL_HALT_L_SHIFT (2U)\r
-#define SCT_CTRL_HALT_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_HALT_L_SHIFT)) & SCT_CTRL_HALT_L_MASK)\r
-#define SCT_CTRL_CLRCTR_L_MASK (0x8U)\r
-#define SCT_CTRL_CLRCTR_L_SHIFT (3U)\r
-#define SCT_CTRL_CLRCTR_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_CLRCTR_L_SHIFT)) & SCT_CTRL_CLRCTR_L_MASK)\r
-#define SCT_CTRL_BIDIR_L_MASK (0x10U)\r
-#define SCT_CTRL_BIDIR_L_SHIFT (4U)\r
+#define SCT_CTRL_DOWN_L_MASK (0x1U)\r
+#define SCT_CTRL_DOWN_L_SHIFT (0U)\r
+/*! DOWN_L - This bit is 1 when the L or unified counter is counting down. Hardware sets this bit\r
+ * when the counter is counting up, counter limit occurs, and BIDIR = 1.Hardware clears this bit\r
+ * when the counter is counting down and a limit condition occurs or when the counter reaches 0.\r
+ */\r
+#define SCT_CTRL_DOWN_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_DOWN_L_SHIFT)) & SCT_CTRL_DOWN_L_MASK)\r
+#define SCT_CTRL_STOP_L_MASK (0x2U)\r
+#define SCT_CTRL_STOP_L_SHIFT (1U)\r
+/*! STOP_L - When this bit is 1 and HALT is 0, the L or unified counter does not run, but I/O events\r
+ * related to the counter can occur. If a designated start event occurs, this bit is cleared and\r
+ * counting resumes.\r
+ */\r
+#define SCT_CTRL_STOP_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_STOP_L_SHIFT)) & SCT_CTRL_STOP_L_MASK)\r
+#define SCT_CTRL_HALT_L_MASK (0x4U)\r
+#define SCT_CTRL_HALT_L_SHIFT (2U)\r
+/*! HALT_L - When this bit is 1, the L or unified counter does not run and no events can occur. A\r
+ * reset sets this bit. When the HALT_L bit is one, the STOP_L bit is cleared. It is possible to\r
+ * remove the halt condition while keeping the SCT in the stop condition (not running) with a\r
+ * single write to this register to simultaneously clear the HALT bit and set the STOP bit. Once set,\r
+ * only software can clear this bit to restore counter operation. This bit is set on reset.\r
+ */\r
+#define SCT_CTRL_HALT_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_HALT_L_SHIFT)) & SCT_CTRL_HALT_L_MASK)\r
+#define SCT_CTRL_CLRCTR_L_MASK (0x8U)\r
+#define SCT_CTRL_CLRCTR_L_SHIFT (3U)\r
+/*! CLRCTR_L - Writing a 1 to this bit clears the L or unified counter. This bit always reads as 0.\r
+ */\r
+#define SCT_CTRL_CLRCTR_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_CLRCTR_L_SHIFT)) & SCT_CTRL_CLRCTR_L_MASK)\r
+#define SCT_CTRL_BIDIR_L_MASK (0x10U)\r
+#define SCT_CTRL_BIDIR_L_SHIFT (4U)\r
/*! BIDIR_L - L or unified counter direction select\r
* 0b0..Up. The counter counts up to a limit condition, then is cleared to zero.\r
* 0b1..Up-down. The counter counts up to a limit, then counts down to a limit condition or to 0.\r
*/\r
-#define SCT_CTRL_BIDIR_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_BIDIR_L_SHIFT)) & SCT_CTRL_BIDIR_L_MASK)\r
-#define SCT_CTRL_PRE_L_MASK (0x1FE0U)\r
-#define SCT_CTRL_PRE_L_SHIFT (5U)\r
-#define SCT_CTRL_PRE_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_PRE_L_SHIFT)) & SCT_CTRL_PRE_L_MASK)\r
-#define SCT_CTRL_DOWN_H_MASK (0x10000U)\r
-#define SCT_CTRL_DOWN_H_SHIFT (16U)\r
-#define SCT_CTRL_DOWN_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_DOWN_H_SHIFT)) & SCT_CTRL_DOWN_H_MASK)\r
-#define SCT_CTRL_STOP_H_MASK (0x20000U)\r
-#define SCT_CTRL_STOP_H_SHIFT (17U)\r
-#define SCT_CTRL_STOP_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_STOP_H_SHIFT)) & SCT_CTRL_STOP_H_MASK)\r
-#define SCT_CTRL_HALT_H_MASK (0x40000U)\r
-#define SCT_CTRL_HALT_H_SHIFT (18U)\r
-#define SCT_CTRL_HALT_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_HALT_H_SHIFT)) & SCT_CTRL_HALT_H_MASK)\r
-#define SCT_CTRL_CLRCTR_H_MASK (0x80000U)\r
-#define SCT_CTRL_CLRCTR_H_SHIFT (19U)\r
-#define SCT_CTRL_CLRCTR_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_CLRCTR_H_SHIFT)) & SCT_CTRL_CLRCTR_H_MASK)\r
-#define SCT_CTRL_BIDIR_H_MASK (0x100000U)\r
-#define SCT_CTRL_BIDIR_H_SHIFT (20U)\r
+#define SCT_CTRL_BIDIR_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_BIDIR_L_SHIFT)) & SCT_CTRL_BIDIR_L_MASK)\r
+#define SCT_CTRL_PRE_L_MASK (0x1FE0U)\r
+#define SCT_CTRL_PRE_L_SHIFT (5U)\r
+/*! PRE_L - Specifies the factor by which the SCT clock is prescaled to produce the L or unified\r
+ * counter clock. The counter clock is clocked at the rate of the SCT clock divided by PRE_L+1.\r
+ * Clear the counter (by writing a 1 to the CLRCTR bit) whenever changing the PRE value.\r
+ */\r
+#define SCT_CTRL_PRE_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_PRE_L_SHIFT)) & SCT_CTRL_PRE_L_MASK)\r
+#define SCT_CTRL_DOWN_H_MASK (0x10000U)\r
+#define SCT_CTRL_DOWN_H_SHIFT (16U)\r
+/*! DOWN_H - This bit is 1 when the H counter is counting down. Hardware sets this bit when the\r
+ * counter is counting, a counter limit condition occurs, and BIDIR is 1. Hardware clears this bit\r
+ * when the counter is counting down and a limit condition occurs or when the counter reaches 0.\r
+ */\r
+#define SCT_CTRL_DOWN_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_DOWN_H_SHIFT)) & SCT_CTRL_DOWN_H_MASK)\r
+#define SCT_CTRL_STOP_H_MASK (0x20000U)\r
+#define SCT_CTRL_STOP_H_SHIFT (17U)\r
+/*! STOP_H - When this bit is 1 and HALT is 0, the H counter does not, run but I/O events related to\r
+ * the counter can occur. If such an event matches the mask in the Start register, this bit is\r
+ * cleared and counting resumes.\r
+ */\r
+#define SCT_CTRL_STOP_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_STOP_H_SHIFT)) & SCT_CTRL_STOP_H_MASK)\r
+#define SCT_CTRL_HALT_H_MASK (0x40000U)\r
+#define SCT_CTRL_HALT_H_SHIFT (18U)\r
+/*! HALT_H - When this bit is 1, the H counter does not run and no events can occur. A reset sets\r
+ * this bit. When the HALT_H bit is one, the STOP_H bit is cleared. It is possible to remove the\r
+ * halt condition while keeping the SCT in the stop condition (not running) with a single write to\r
+ * this register to simultaneously clear the HALT bit and set the STOP bit. Once set, this bit\r
+ * can only be cleared by software to restore counter operation. This bit is set on reset.\r
+ */\r
+#define SCT_CTRL_HALT_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_HALT_H_SHIFT)) & SCT_CTRL_HALT_H_MASK)\r
+#define SCT_CTRL_CLRCTR_H_MASK (0x80000U)\r
+#define SCT_CTRL_CLRCTR_H_SHIFT (19U)\r
+/*! CLRCTR_H - Writing a 1 to this bit clears the H counter. This bit always reads as 0.\r
+ */\r
+#define SCT_CTRL_CLRCTR_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_CLRCTR_H_SHIFT)) & SCT_CTRL_CLRCTR_H_MASK)\r
+#define SCT_CTRL_BIDIR_H_MASK (0x100000U)\r
+#define SCT_CTRL_BIDIR_H_SHIFT (20U)\r
/*! BIDIR_H - Direction select\r
* 0b0..The H counter counts up to its limit condition, then is cleared to zero.\r
* 0b1..The H counter counts up to its limit, then counts down to a limit condition or to 0.\r
*/\r
-#define SCT_CTRL_BIDIR_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_BIDIR_H_SHIFT)) & SCT_CTRL_BIDIR_H_MASK)\r
-#define SCT_CTRL_PRE_H_MASK (0x1FE00000U)\r
-#define SCT_CTRL_PRE_H_SHIFT (21U)\r
-#define SCT_CTRL_PRE_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_PRE_H_SHIFT)) & SCT_CTRL_PRE_H_MASK)\r
+#define SCT_CTRL_BIDIR_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_BIDIR_H_SHIFT)) & SCT_CTRL_BIDIR_H_MASK)\r
+#define SCT_CTRL_PRE_H_MASK (0x1FE00000U)\r
+#define SCT_CTRL_PRE_H_SHIFT (21U)\r
+/*! PRE_H - Specifies the factor by which the SCT clock is prescaled to produce the H counter clock.\r
+ * The counter clock is clocked at the rate of the SCT clock divided by PRELH+1. Clear the\r
+ * counter (by writing a 1 to the CLRCTR bit) whenever changing the PRE value.\r
+ */\r
+#define SCT_CTRL_PRE_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CTRL_PRE_H_SHIFT)) & SCT_CTRL_PRE_H_MASK)\r
/*! @} */\r
\r
/*! @name LIMIT - SCT limit event select register */\r
/*! @{ */\r
-#define SCT_LIMIT_LIMMSK_L_MASK (0xFFFFU)\r
-#define SCT_LIMIT_LIMMSK_L_SHIFT (0U)\r
-#define SCT_LIMIT_LIMMSK_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_LIMIT_LIMMSK_L_SHIFT)) & SCT_LIMIT_LIMMSK_L_MASK)\r
-#define SCT_LIMIT_LIMMSK_H_MASK (0xFFFF0000U)\r
-#define SCT_LIMIT_LIMMSK_H_SHIFT (16U)\r
-#define SCT_LIMIT_LIMMSK_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_LIMIT_LIMMSK_H_SHIFT)) & SCT_LIMIT_LIMMSK_H_MASK)\r
+#define SCT_LIMIT_LIMMSK_L_MASK (0xFFFFU)\r
+#define SCT_LIMIT_LIMMSK_L_SHIFT (0U)\r
+/*! LIMMSK_L - If bit n is one, event n is used as a counter limit for the L or unified counter\r
+ * (event 0 = bit 0, event 1 = bit 1, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_LIMIT_LIMMSK_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_LIMIT_LIMMSK_L_SHIFT)) & SCT_LIMIT_LIMMSK_L_MASK)\r
+#define SCT_LIMIT_LIMMSK_H_MASK (0xFFFF0000U)\r
+#define SCT_LIMIT_LIMMSK_H_SHIFT (16U)\r
+/*! LIMMSK_H - If bit n is one, event n is used as a counter limit for the H counter (event 0 = bit\r
+ * 16, event 1 = bit 17, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_LIMIT_LIMMSK_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_LIMIT_LIMMSK_H_SHIFT)) & SCT_LIMIT_LIMMSK_H_MASK)\r
/*! @} */\r
\r
/*! @name HALT - SCT halt event select register */\r
/*! @{ */\r
-#define SCT_HALT_HALTMSK_L_MASK (0xFFFFU)\r
-#define SCT_HALT_HALTMSK_L_SHIFT (0U)\r
-#define SCT_HALT_HALTMSK_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_HALT_HALTMSK_L_SHIFT)) & SCT_HALT_HALTMSK_L_MASK)\r
-#define SCT_HALT_HALTMSK_H_MASK (0xFFFF0000U)\r
-#define SCT_HALT_HALTMSK_H_SHIFT (16U)\r
-#define SCT_HALT_HALTMSK_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_HALT_HALTMSK_H_SHIFT)) & SCT_HALT_HALTMSK_H_MASK)\r
+#define SCT_HALT_HALTMSK_L_MASK (0xFFFFU)\r
+#define SCT_HALT_HALTMSK_L_SHIFT (0U)\r
+/*! HALTMSK_L - If bit n is one, event n sets the HALT_L bit in the CTRL register (event 0 = bit 0,\r
+ * event 1 = bit 1, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_HALT_HALTMSK_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_HALT_HALTMSK_L_SHIFT)) & SCT_HALT_HALTMSK_L_MASK)\r
+#define SCT_HALT_HALTMSK_H_MASK (0xFFFF0000U)\r
+#define SCT_HALT_HALTMSK_H_SHIFT (16U)\r
+/*! HALTMSK_H - If bit n is one, event n sets the HALT_H bit in the CTRL register (event 0 = bit 16,\r
+ * event 1 = bit 17, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_HALT_HALTMSK_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_HALT_HALTMSK_H_SHIFT)) & SCT_HALT_HALTMSK_H_MASK)\r
/*! @} */\r
\r
/*! @name STOP - SCT stop event select register */\r
/*! @{ */\r
-#define SCT_STOP_STOPMSK_L_MASK (0xFFFFU)\r
-#define SCT_STOP_STOPMSK_L_SHIFT (0U)\r
-#define SCT_STOP_STOPMSK_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_STOP_STOPMSK_L_SHIFT)) & SCT_STOP_STOPMSK_L_MASK)\r
-#define SCT_STOP_STOPMSK_H_MASK (0xFFFF0000U)\r
-#define SCT_STOP_STOPMSK_H_SHIFT (16U)\r
-#define SCT_STOP_STOPMSK_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_STOP_STOPMSK_H_SHIFT)) & SCT_STOP_STOPMSK_H_MASK)\r
+#define SCT_STOP_STOPMSK_L_MASK (0xFFFFU)\r
+#define SCT_STOP_STOPMSK_L_SHIFT (0U)\r
+/*! STOPMSK_L - If bit n is one, event n sets the STOP_L bit in the CTRL register (event 0 = bit 0,\r
+ * event 1 = bit 1, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_STOP_STOPMSK_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_STOP_STOPMSK_L_SHIFT)) & SCT_STOP_STOPMSK_L_MASK)\r
+#define SCT_STOP_STOPMSK_H_MASK (0xFFFF0000U)\r
+#define SCT_STOP_STOPMSK_H_SHIFT (16U)\r
+/*! STOPMSK_H - If bit n is one, event n sets the STOP_H bit in the CTRL register (event 0 = bit 16,\r
+ * event 1 = bit 17, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_STOP_STOPMSK_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_STOP_STOPMSK_H_SHIFT)) & SCT_STOP_STOPMSK_H_MASK)\r
/*! @} */\r
\r
/*! @name START - SCT start event select register */\r
/*! @{ */\r
-#define SCT_START_STARTMSK_L_MASK (0xFFFFU)\r
-#define SCT_START_STARTMSK_L_SHIFT (0U)\r
-#define SCT_START_STARTMSK_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_START_STARTMSK_L_SHIFT)) & SCT_START_STARTMSK_L_MASK)\r
-#define SCT_START_STARTMSK_H_MASK (0xFFFF0000U)\r
-#define SCT_START_STARTMSK_H_SHIFT (16U)\r
-#define SCT_START_STARTMSK_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_START_STARTMSK_H_SHIFT)) & SCT_START_STARTMSK_H_MASK)\r
+#define SCT_START_STARTMSK_L_MASK (0xFFFFU)\r
+#define SCT_START_STARTMSK_L_SHIFT (0U)\r
+/*! STARTMSK_L - If bit n is one, event n clears the STOP_L bit in the CTRL register (event 0 = bit\r
+ * 0, event 1 = bit 1, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_START_STARTMSK_L(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_START_STARTMSK_L_SHIFT)) & SCT_START_STARTMSK_L_MASK)\r
+#define SCT_START_STARTMSK_H_MASK (0xFFFF0000U)\r
+#define SCT_START_STARTMSK_H_SHIFT (16U)\r
+/*! STARTMSK_H - If bit n is one, event n clears the STOP_H bit in the CTRL register (event 0 = bit\r
+ * 16, event 1 = bit 17, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_START_STARTMSK_H(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_START_STARTMSK_H_SHIFT)) & SCT_START_STARTMSK_H_MASK)\r
/*! @} */\r
\r
/*! @name COUNT - SCT counter register */\r
/*! @{ */\r
-#define SCT_COUNT_CTR_L_MASK (0xFFFFU)\r
-#define SCT_COUNT_CTR_L_SHIFT (0U)\r
-#define SCT_COUNT_CTR_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_COUNT_CTR_L_SHIFT)) & SCT_COUNT_CTR_L_MASK)\r
-#define SCT_COUNT_CTR_H_MASK (0xFFFF0000U)\r
-#define SCT_COUNT_CTR_H_SHIFT (16U)\r
-#define SCT_COUNT_CTR_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_COUNT_CTR_H_SHIFT)) & SCT_COUNT_CTR_H_MASK)\r
+#define SCT_COUNT_CTR_L_MASK (0xFFFFU)\r
+#define SCT_COUNT_CTR_L_SHIFT (0U)\r
+/*! CTR_L - When UNIFY = 0, read or write the 16-bit L counter value. When UNIFY = 1, read or write\r
+ * the lower 16 bits of the 32-bit unified counter.\r
+ */\r
+#define SCT_COUNT_CTR_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_COUNT_CTR_L_SHIFT)) & SCT_COUNT_CTR_L_MASK)\r
+#define SCT_COUNT_CTR_H_MASK (0xFFFF0000U)\r
+#define SCT_COUNT_CTR_H_SHIFT (16U)\r
+/*! CTR_H - When UNIFY = 0, read or write the 16-bit H counter value. When UNIFY = 1, read or write\r
+ * the upper 16 bits of the 32-bit unified counter.\r
+ */\r
+#define SCT_COUNT_CTR_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_COUNT_CTR_H_SHIFT)) & SCT_COUNT_CTR_H_MASK)\r
/*! @} */\r
\r
/*! @name STATE - SCT state register */\r
/*! @{ */\r
-#define SCT_STATE_STATE_L_MASK (0x1FU)\r
-#define SCT_STATE_STATE_L_SHIFT (0U)\r
-#define SCT_STATE_STATE_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_STATE_STATE_L_SHIFT)) & SCT_STATE_STATE_L_MASK)\r
-#define SCT_STATE_STATE_H_MASK (0x1F0000U)\r
-#define SCT_STATE_STATE_H_SHIFT (16U)\r
-#define SCT_STATE_STATE_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_STATE_STATE_H_SHIFT)) & SCT_STATE_STATE_H_MASK)\r
+#define SCT_STATE_STATE_L_MASK (0x1FU)\r
+#define SCT_STATE_STATE_L_SHIFT (0U)\r
+/*! STATE_L - State variable.\r
+ */\r
+#define SCT_STATE_STATE_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_STATE_STATE_L_SHIFT)) & SCT_STATE_STATE_L_MASK)\r
+#define SCT_STATE_STATE_H_MASK (0x1F0000U)\r
+#define SCT_STATE_STATE_H_SHIFT (16U)\r
+/*! STATE_H - State variable.\r
+ */\r
+#define SCT_STATE_STATE_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_STATE_STATE_H_SHIFT)) & SCT_STATE_STATE_H_MASK)\r
/*! @} */\r
\r
/*! @name INPUT - SCT input register */\r
/*! @{ */\r
-#define SCT_INPUT_AIN0_MASK (0x1U)\r
-#define SCT_INPUT_AIN0_SHIFT (0U)\r
-#define SCT_INPUT_AIN0(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN0_SHIFT)) & SCT_INPUT_AIN0_MASK)\r
-#define SCT_INPUT_AIN1_MASK (0x2U)\r
-#define SCT_INPUT_AIN1_SHIFT (1U)\r
-#define SCT_INPUT_AIN1(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN1_SHIFT)) & SCT_INPUT_AIN1_MASK)\r
-#define SCT_INPUT_AIN2_MASK (0x4U)\r
-#define SCT_INPUT_AIN2_SHIFT (2U)\r
-#define SCT_INPUT_AIN2(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN2_SHIFT)) & SCT_INPUT_AIN2_MASK)\r
-#define SCT_INPUT_AIN3_MASK (0x8U)\r
-#define SCT_INPUT_AIN3_SHIFT (3U)\r
-#define SCT_INPUT_AIN3(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN3_SHIFT)) & SCT_INPUT_AIN3_MASK)\r
-#define SCT_INPUT_AIN4_MASK (0x10U)\r
-#define SCT_INPUT_AIN4_SHIFT (4U)\r
-#define SCT_INPUT_AIN4(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN4_SHIFT)) & SCT_INPUT_AIN4_MASK)\r
-#define SCT_INPUT_AIN5_MASK (0x20U)\r
-#define SCT_INPUT_AIN5_SHIFT (5U)\r
-#define SCT_INPUT_AIN5(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN5_SHIFT)) & SCT_INPUT_AIN5_MASK)\r
-#define SCT_INPUT_AIN6_MASK (0x40U)\r
-#define SCT_INPUT_AIN6_SHIFT (6U)\r
-#define SCT_INPUT_AIN6(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN6_SHIFT)) & SCT_INPUT_AIN6_MASK)\r
-#define SCT_INPUT_AIN7_MASK (0x80U)\r
-#define SCT_INPUT_AIN7_SHIFT (7U)\r
-#define SCT_INPUT_AIN7(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN7_SHIFT)) & SCT_INPUT_AIN7_MASK)\r
-#define SCT_INPUT_AIN8_MASK (0x100U)\r
-#define SCT_INPUT_AIN8_SHIFT (8U)\r
-#define SCT_INPUT_AIN8(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN8_SHIFT)) & SCT_INPUT_AIN8_MASK)\r
-#define SCT_INPUT_AIN9_MASK (0x200U)\r
-#define SCT_INPUT_AIN9_SHIFT (9U)\r
-#define SCT_INPUT_AIN9(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN9_SHIFT)) & SCT_INPUT_AIN9_MASK)\r
-#define SCT_INPUT_AIN10_MASK (0x400U)\r
-#define SCT_INPUT_AIN10_SHIFT (10U)\r
-#define SCT_INPUT_AIN10(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN10_SHIFT)) & SCT_INPUT_AIN10_MASK)\r
-#define SCT_INPUT_AIN11_MASK (0x800U)\r
-#define SCT_INPUT_AIN11_SHIFT (11U)\r
-#define SCT_INPUT_AIN11(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN11_SHIFT)) & SCT_INPUT_AIN11_MASK)\r
-#define SCT_INPUT_AIN12_MASK (0x1000U)\r
-#define SCT_INPUT_AIN12_SHIFT (12U)\r
-#define SCT_INPUT_AIN12(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN12_SHIFT)) & SCT_INPUT_AIN12_MASK)\r
-#define SCT_INPUT_AIN13_MASK (0x2000U)\r
-#define SCT_INPUT_AIN13_SHIFT (13U)\r
-#define SCT_INPUT_AIN13(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN13_SHIFT)) & SCT_INPUT_AIN13_MASK)\r
-#define SCT_INPUT_AIN14_MASK (0x4000U)\r
-#define SCT_INPUT_AIN14_SHIFT (14U)\r
-#define SCT_INPUT_AIN14(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN14_SHIFT)) & SCT_INPUT_AIN14_MASK)\r
-#define SCT_INPUT_AIN15_MASK (0x8000U)\r
-#define SCT_INPUT_AIN15_SHIFT (15U)\r
-#define SCT_INPUT_AIN15(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN15_SHIFT)) & SCT_INPUT_AIN15_MASK)\r
-#define SCT_INPUT_SIN0_MASK (0x10000U)\r
-#define SCT_INPUT_SIN0_SHIFT (16U)\r
-#define SCT_INPUT_SIN0(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN0_SHIFT)) & SCT_INPUT_SIN0_MASK)\r
-#define SCT_INPUT_SIN1_MASK (0x20000U)\r
-#define SCT_INPUT_SIN1_SHIFT (17U)\r
-#define SCT_INPUT_SIN1(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN1_SHIFT)) & SCT_INPUT_SIN1_MASK)\r
-#define SCT_INPUT_SIN2_MASK (0x40000U)\r
-#define SCT_INPUT_SIN2_SHIFT (18U)\r
-#define SCT_INPUT_SIN2(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN2_SHIFT)) & SCT_INPUT_SIN2_MASK)\r
-#define SCT_INPUT_SIN3_MASK (0x80000U)\r
-#define SCT_INPUT_SIN3_SHIFT (19U)\r
-#define SCT_INPUT_SIN3(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN3_SHIFT)) & SCT_INPUT_SIN3_MASK)\r
-#define SCT_INPUT_SIN4_MASK (0x100000U)\r
-#define SCT_INPUT_SIN4_SHIFT (20U)\r
-#define SCT_INPUT_SIN4(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN4_SHIFT)) & SCT_INPUT_SIN4_MASK)\r
-#define SCT_INPUT_SIN5_MASK (0x200000U)\r
-#define SCT_INPUT_SIN5_SHIFT (21U)\r
-#define SCT_INPUT_SIN5(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN5_SHIFT)) & SCT_INPUT_SIN5_MASK)\r
-#define SCT_INPUT_SIN6_MASK (0x400000U)\r
-#define SCT_INPUT_SIN6_SHIFT (22U)\r
-#define SCT_INPUT_SIN6(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN6_SHIFT)) & SCT_INPUT_SIN6_MASK)\r
-#define SCT_INPUT_SIN7_MASK (0x800000U)\r
-#define SCT_INPUT_SIN7_SHIFT (23U)\r
-#define SCT_INPUT_SIN7(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN7_SHIFT)) & SCT_INPUT_SIN7_MASK)\r
-#define SCT_INPUT_SIN8_MASK (0x1000000U)\r
-#define SCT_INPUT_SIN8_SHIFT (24U)\r
-#define SCT_INPUT_SIN8(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN8_SHIFT)) & SCT_INPUT_SIN8_MASK)\r
-#define SCT_INPUT_SIN9_MASK (0x2000000U)\r
-#define SCT_INPUT_SIN9_SHIFT (25U)\r
-#define SCT_INPUT_SIN9(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN9_SHIFT)) & SCT_INPUT_SIN9_MASK)\r
-#define SCT_INPUT_SIN10_MASK (0x4000000U)\r
-#define SCT_INPUT_SIN10_SHIFT (26U)\r
-#define SCT_INPUT_SIN10(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN10_SHIFT)) & SCT_INPUT_SIN10_MASK)\r
-#define SCT_INPUT_SIN11_MASK (0x8000000U)\r
-#define SCT_INPUT_SIN11_SHIFT (27U)\r
-#define SCT_INPUT_SIN11(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN11_SHIFT)) & SCT_INPUT_SIN11_MASK)\r
-#define SCT_INPUT_SIN12_MASK (0x10000000U)\r
-#define SCT_INPUT_SIN12_SHIFT (28U)\r
-#define SCT_INPUT_SIN12(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN12_SHIFT)) & SCT_INPUT_SIN12_MASK)\r
-#define SCT_INPUT_SIN13_MASK (0x20000000U)\r
-#define SCT_INPUT_SIN13_SHIFT (29U)\r
-#define SCT_INPUT_SIN13(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN13_SHIFT)) & SCT_INPUT_SIN13_MASK)\r
-#define SCT_INPUT_SIN14_MASK (0x40000000U)\r
-#define SCT_INPUT_SIN14_SHIFT (30U)\r
-#define SCT_INPUT_SIN14(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN14_SHIFT)) & SCT_INPUT_SIN14_MASK)\r
-#define SCT_INPUT_SIN15_MASK (0x80000000U)\r
-#define SCT_INPUT_SIN15_SHIFT (31U)\r
-#define SCT_INPUT_SIN15(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN15_SHIFT)) & SCT_INPUT_SIN15_MASK)\r
+#define SCT_INPUT_AIN0_MASK (0x1U)\r
+#define SCT_INPUT_AIN0_SHIFT (0U)\r
+/*! AIN0 - Input 0 state. Input 0 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN0(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN0_SHIFT)) & SCT_INPUT_AIN0_MASK)\r
+#define SCT_INPUT_AIN1_MASK (0x2U)\r
+#define SCT_INPUT_AIN1_SHIFT (1U)\r
+/*! AIN1 - Input 1 state. Input 1 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN1(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN1_SHIFT)) & SCT_INPUT_AIN1_MASK)\r
+#define SCT_INPUT_AIN2_MASK (0x4U)\r
+#define SCT_INPUT_AIN2_SHIFT (2U)\r
+/*! AIN2 - Input 2 state. Input 2 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN2(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN2_SHIFT)) & SCT_INPUT_AIN2_MASK)\r
+#define SCT_INPUT_AIN3_MASK (0x8U)\r
+#define SCT_INPUT_AIN3_SHIFT (3U)\r
+/*! AIN3 - Input 3 state. Input 3 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN3(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN3_SHIFT)) & SCT_INPUT_AIN3_MASK)\r
+#define SCT_INPUT_AIN4_MASK (0x10U)\r
+#define SCT_INPUT_AIN4_SHIFT (4U)\r
+/*! AIN4 - Input 4 state. Input 4 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN4(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN4_SHIFT)) & SCT_INPUT_AIN4_MASK)\r
+#define SCT_INPUT_AIN5_MASK (0x20U)\r
+#define SCT_INPUT_AIN5_SHIFT (5U)\r
+/*! AIN5 - Input 5 state. Input 5 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN5(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN5_SHIFT)) & SCT_INPUT_AIN5_MASK)\r
+#define SCT_INPUT_AIN6_MASK (0x40U)\r
+#define SCT_INPUT_AIN6_SHIFT (6U)\r
+/*! AIN6 - Input 6 state. Input 6 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN6(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN6_SHIFT)) & SCT_INPUT_AIN6_MASK)\r
+#define SCT_INPUT_AIN7_MASK (0x80U)\r
+#define SCT_INPUT_AIN7_SHIFT (7U)\r
+/*! AIN7 - Input 7 state. Input 7 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN7(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN7_SHIFT)) & SCT_INPUT_AIN7_MASK)\r
+#define SCT_INPUT_AIN8_MASK (0x100U)\r
+#define SCT_INPUT_AIN8_SHIFT (8U)\r
+/*! AIN8 - Input 8 state. Input 8 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN8(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN8_SHIFT)) & SCT_INPUT_AIN8_MASK)\r
+#define SCT_INPUT_AIN9_MASK (0x200U)\r
+#define SCT_INPUT_AIN9_SHIFT (9U)\r
+/*! AIN9 - Input 9 state. Input 9 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN9(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN9_SHIFT)) & SCT_INPUT_AIN9_MASK)\r
+#define SCT_INPUT_AIN10_MASK (0x400U)\r
+#define SCT_INPUT_AIN10_SHIFT (10U)\r
+/*! AIN10 - Input 10 state. Input 10 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN10(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN10_SHIFT)) & SCT_INPUT_AIN10_MASK)\r
+#define SCT_INPUT_AIN11_MASK (0x800U)\r
+#define SCT_INPUT_AIN11_SHIFT (11U)\r
+/*! AIN11 - Input 11 state. Input 11 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN11(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN11_SHIFT)) & SCT_INPUT_AIN11_MASK)\r
+#define SCT_INPUT_AIN12_MASK (0x1000U)\r
+#define SCT_INPUT_AIN12_SHIFT (12U)\r
+/*! AIN12 - Input 12 state. Input 12 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN12(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN12_SHIFT)) & SCT_INPUT_AIN12_MASK)\r
+#define SCT_INPUT_AIN13_MASK (0x2000U)\r
+#define SCT_INPUT_AIN13_SHIFT (13U)\r
+/*! AIN13 - Input 13 state. Input 13 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN13(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN13_SHIFT)) & SCT_INPUT_AIN13_MASK)\r
+#define SCT_INPUT_AIN14_MASK (0x4000U)\r
+#define SCT_INPUT_AIN14_SHIFT (14U)\r
+/*! AIN14 - Input 14 state. Input 14 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN14(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN14_SHIFT)) & SCT_INPUT_AIN14_MASK)\r
+#define SCT_INPUT_AIN15_MASK (0x8000U)\r
+#define SCT_INPUT_AIN15_SHIFT (15U)\r
+/*! AIN15 - Input 15 state. Input 15 state on the last SCT clock edge.\r
+ */\r
+#define SCT_INPUT_AIN15(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_AIN15_SHIFT)) & SCT_INPUT_AIN15_MASK)\r
+#define SCT_INPUT_SIN0_MASK (0x10000U)\r
+#define SCT_INPUT_SIN0_SHIFT (16U)\r
+/*! SIN0 - Input 0 state. Input 0 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN0(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN0_SHIFT)) & SCT_INPUT_SIN0_MASK)\r
+#define SCT_INPUT_SIN1_MASK (0x20000U)\r
+#define SCT_INPUT_SIN1_SHIFT (17U)\r
+/*! SIN1 - Input 1 state. Input 1 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN1(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN1_SHIFT)) & SCT_INPUT_SIN1_MASK)\r
+#define SCT_INPUT_SIN2_MASK (0x40000U)\r
+#define SCT_INPUT_SIN2_SHIFT (18U)\r
+/*! SIN2 - Input 2 state. Input 2 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN2(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN2_SHIFT)) & SCT_INPUT_SIN2_MASK)\r
+#define SCT_INPUT_SIN3_MASK (0x80000U)\r
+#define SCT_INPUT_SIN3_SHIFT (19U)\r
+/*! SIN3 - Input 3 state. Input 3 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN3(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN3_SHIFT)) & SCT_INPUT_SIN3_MASK)\r
+#define SCT_INPUT_SIN4_MASK (0x100000U)\r
+#define SCT_INPUT_SIN4_SHIFT (20U)\r
+/*! SIN4 - Input 4 state. Input 4 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN4(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN4_SHIFT)) & SCT_INPUT_SIN4_MASK)\r
+#define SCT_INPUT_SIN5_MASK (0x200000U)\r
+#define SCT_INPUT_SIN5_SHIFT (21U)\r
+/*! SIN5 - Input 5 state. Input 5 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN5(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN5_SHIFT)) & SCT_INPUT_SIN5_MASK)\r
+#define SCT_INPUT_SIN6_MASK (0x400000U)\r
+#define SCT_INPUT_SIN6_SHIFT (22U)\r
+/*! SIN6 - Input 6 state. Input 6 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN6(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN6_SHIFT)) & SCT_INPUT_SIN6_MASK)\r
+#define SCT_INPUT_SIN7_MASK (0x800000U)\r
+#define SCT_INPUT_SIN7_SHIFT (23U)\r
+/*! SIN7 - Input 7 state. Input 7 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN7(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN7_SHIFT)) & SCT_INPUT_SIN7_MASK)\r
+#define SCT_INPUT_SIN8_MASK (0x1000000U)\r
+#define SCT_INPUT_SIN8_SHIFT (24U)\r
+/*! SIN8 - Input 8 state. Input 8 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN8(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN8_SHIFT)) & SCT_INPUT_SIN8_MASK)\r
+#define SCT_INPUT_SIN9_MASK (0x2000000U)\r
+#define SCT_INPUT_SIN9_SHIFT (25U)\r
+/*! SIN9 - Input 9 state. Input 9 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN9(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN9_SHIFT)) & SCT_INPUT_SIN9_MASK)\r
+#define SCT_INPUT_SIN10_MASK (0x4000000U)\r
+#define SCT_INPUT_SIN10_SHIFT (26U)\r
+/*! SIN10 - Input 10 state. Input 10 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN10(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN10_SHIFT)) & SCT_INPUT_SIN10_MASK)\r
+#define SCT_INPUT_SIN11_MASK (0x8000000U)\r
+#define SCT_INPUT_SIN11_SHIFT (27U)\r
+/*! SIN11 - Input 11 state. Input 11 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN11(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN11_SHIFT)) & SCT_INPUT_SIN11_MASK)\r
+#define SCT_INPUT_SIN12_MASK (0x10000000U)\r
+#define SCT_INPUT_SIN12_SHIFT (28U)\r
+/*! SIN12 - Input 12 state. Input 12 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN12(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN12_SHIFT)) & SCT_INPUT_SIN12_MASK)\r
+#define SCT_INPUT_SIN13_MASK (0x20000000U)\r
+#define SCT_INPUT_SIN13_SHIFT (29U)\r
+/*! SIN13 - Input 13 state. Input 13 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN13(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN13_SHIFT)) & SCT_INPUT_SIN13_MASK)\r
+#define SCT_INPUT_SIN14_MASK (0x40000000U)\r
+#define SCT_INPUT_SIN14_SHIFT (30U)\r
+/*! SIN14 - Input 14 state. Input 14 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN14(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN14_SHIFT)) & SCT_INPUT_SIN14_MASK)\r
+#define SCT_INPUT_SIN15_MASK (0x80000000U)\r
+#define SCT_INPUT_SIN15_SHIFT (31U)\r
+/*! SIN15 - Input 15 state. Input 15 state following the synchronization specified by INSYNC.\r
+ */\r
+#define SCT_INPUT_SIN15(x) (((uint32_t)(((uint32_t)(x)) << SCT_INPUT_SIN15_SHIFT)) & SCT_INPUT_SIN15_MASK)\r
/*! @} */\r
\r
/*! @name REGMODE - SCT match/capture mode register */\r
/*! @{ */\r
-#define SCT_REGMODE_REGMOD_L_MASK (0xFFFFU)\r
-#define SCT_REGMODE_REGMOD_L_SHIFT (0U)\r
-#define SCT_REGMODE_REGMOD_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_REGMODE_REGMOD_L_SHIFT)) & SCT_REGMODE_REGMOD_L_MASK)\r
-#define SCT_REGMODE_REGMOD_H_MASK (0xFFFF0000U)\r
-#define SCT_REGMODE_REGMOD_H_SHIFT (16U)\r
-#define SCT_REGMODE_REGMOD_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_REGMODE_REGMOD_H_SHIFT)) & SCT_REGMODE_REGMOD_H_MASK)\r
+#define SCT_REGMODE_REGMOD_L_MASK (0xFFFFU)\r
+#define SCT_REGMODE_REGMOD_L_SHIFT (0U)\r
+/*! REGMOD_L - Each bit controls one match/capture register (register 0 = bit 0, register 1 = bit 1,\r
+ * etc.). The number of bits = number of match/captures in this SCT. 0 = register operates as\r
+ * match register. 1 = register operates as capture register.\r
+ */\r
+#define SCT_REGMODE_REGMOD_L(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_REGMODE_REGMOD_L_SHIFT)) & SCT_REGMODE_REGMOD_L_MASK)\r
+#define SCT_REGMODE_REGMOD_H_MASK (0xFFFF0000U)\r
+#define SCT_REGMODE_REGMOD_H_SHIFT (16U)\r
+/*! REGMOD_H - Each bit controls one match/capture register (register 0 = bit 16, register 1 = bit\r
+ * 17, etc.). The number of bits = number of match/captures in this SCT. 0 = register operates as\r
+ * match registers. 1 = register operates as capture registers.\r
+ */\r
+#define SCT_REGMODE_REGMOD_H(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_REGMODE_REGMOD_H_SHIFT)) & SCT_REGMODE_REGMOD_H_MASK)\r
/*! @} */\r
\r
/*! @name OUTPUT - SCT output register */\r
/*! @{ */\r
-#define SCT_OUTPUT_OUT_MASK (0xFFFFU)\r
-#define SCT_OUTPUT_OUT_SHIFT (0U)\r
-#define SCT_OUTPUT_OUT(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUT_OUT_SHIFT)) & SCT_OUTPUT_OUT_MASK)\r
+#define SCT_OUTPUT_OUT_MASK (0xFFFFU)\r
+#define SCT_OUTPUT_OUT_SHIFT (0U)\r
+/*! OUT - Writing a 1 to bit n forces the corresponding output HIGH. Writing a 0 forces the\r
+ * corresponding output LOW (output 0 = bit 0, output 1 = bit 1, etc.). The number of bits = number of\r
+ * outputs in this SCT.\r
+ */\r
+#define SCT_OUTPUT_OUT(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUT_OUT_SHIFT)) & SCT_OUTPUT_OUT_MASK)\r
/*! @} */\r
\r
/*! @name OUTPUTDIRCTRL - SCT output counter direction control register */\r
/*! @{ */\r
-#define SCT_OUTPUTDIRCTRL_SETCLR0_MASK (0x3U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR0_SHIFT (0U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR0_MASK (0x3U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR0_SHIFT (0U)\r
/*! SETCLR0 - Set/clear operation on output 0. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR0(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR0_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR0_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR1_MASK (0xCU)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR1_SHIFT (2U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR0_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR0_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR1_MASK (0xCU)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR1_SHIFT (2U)\r
/*! SETCLR1 - Set/clear operation on output 1. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR1(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR1_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR1_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR2_MASK (0x30U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR2_SHIFT (4U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR1_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR1_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR2_MASK (0x30U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR2_SHIFT (4U)\r
/*! SETCLR2 - Set/clear operation on output 2. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR2(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR2_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR2_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR3_MASK (0xC0U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR3_SHIFT (6U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR2_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR2_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR3_MASK (0xC0U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR3_SHIFT (6U)\r
/*! SETCLR3 - Set/clear operation on output 3. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR3(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR3_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR3_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR4_MASK (0x300U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR4_SHIFT (8U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR3_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR3_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR4_MASK (0x300U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR4_SHIFT (8U)\r
/*! SETCLR4 - Set/clear operation on output 4. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR4(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR4_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR4_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR5_MASK (0xC00U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR5_SHIFT (10U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR4_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR4_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR5_MASK (0xC00U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR5_SHIFT (10U)\r
/*! SETCLR5 - Set/clear operation on output 5. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR5(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR5_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR5_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR6_MASK (0x3000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR6_SHIFT (12U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR5_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR5_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR6_MASK (0x3000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR6_SHIFT (12U)\r
/*! SETCLR6 - Set/clear operation on output 6. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR6(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR6_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR6_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR7_MASK (0xC000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR7_SHIFT (14U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR6_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR6_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR7_MASK (0xC000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR7_SHIFT (14U)\r
/*! SETCLR7 - Set/clear operation on output 7. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR7(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR7_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR7_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR8_MASK (0x30000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR8_SHIFT (16U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR7_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR7_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR8_MASK (0x30000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR8_SHIFT (16U)\r
/*! SETCLR8 - Set/clear operation on output 8. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR8(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR8_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR8_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR9_MASK (0xC0000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR9_SHIFT (18U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR8(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR8_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR8_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR9_MASK (0xC0000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR9_SHIFT (18U)\r
/*! SETCLR9 - Set/clear operation on output 9. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR9(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR9_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR9_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR10_MASK (0x300000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR10_SHIFT (20U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR9(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR9_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR9_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR10_MASK (0x300000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR10_SHIFT (20U)\r
/*! SETCLR10 - Set/clear operation on output 10. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR10(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR10_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR10_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR11_MASK (0xC00000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR11_SHIFT (22U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR10(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR10_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR10_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR11_MASK (0xC00000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR11_SHIFT (22U)\r
/*! SETCLR11 - Set/clear operation on output 11. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR11(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR11_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR11_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR12_MASK (0x3000000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR12_SHIFT (24U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR11(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR11_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR11_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR12_MASK (0x3000000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR12_SHIFT (24U)\r
/*! SETCLR12 - Set/clear operation on output 12. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR12(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR12_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR12_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR13_MASK (0xC000000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR13_SHIFT (26U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR12(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR12_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR12_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR13_MASK (0xC000000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR13_SHIFT (26U)\r
/*! SETCLR13 - Set/clear operation on output 13. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR13(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR13_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR13_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR14_MASK (0x30000000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR14_SHIFT (28U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR13(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR13_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR13_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR14_MASK (0x30000000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR14_SHIFT (28U)\r
/*! SETCLR14 - Set/clear operation on output 14. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR14(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR14_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR14_MASK)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR15_MASK (0xC0000000U)\r
-#define SCT_OUTPUTDIRCTRL_SETCLR15_SHIFT (30U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR14(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR14_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR14_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR15_MASK (0xC0000000U)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR15_SHIFT (30U)\r
/*! SETCLR15 - Set/clear operation on output 15. Value 0x3 is reserved. Do not program this value.\r
* 0b00..Set and clear do not depend on the direction of any counter.\r
* 0b01..Set and clear are reversed when counter L or the unified counter is counting down.\r
* 0b10..Set and clear are reversed when counter H is counting down. Do not use if UNIFY = 1.\r
*/\r
-#define SCT_OUTPUTDIRCTRL_SETCLR15(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR15_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR15_MASK)\r
+#define SCT_OUTPUTDIRCTRL_SETCLR15(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_OUTPUTDIRCTRL_SETCLR15_SHIFT)) & SCT_OUTPUTDIRCTRL_SETCLR15_MASK)\r
/*! @} */\r
\r
/*! @name RES - SCT conflict resolution register */\r
/*! @{ */\r
-#define SCT_RES_O0RES_MASK (0x3U)\r
-#define SCT_RES_O0RES_SHIFT (0U)\r
+#define SCT_RES_O0RES_MASK (0x3U)\r
+#define SCT_RES_O0RES_SHIFT (0U)\r
/*! O0RES - Effect of simultaneous set and clear on output 0.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR0 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR0 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O0RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O0RES_SHIFT)) & SCT_RES_O0RES_MASK)\r
-#define SCT_RES_O1RES_MASK (0xCU)\r
-#define SCT_RES_O1RES_SHIFT (2U)\r
+#define SCT_RES_O0RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O0RES_SHIFT)) & SCT_RES_O0RES_MASK)\r
+#define SCT_RES_O1RES_MASK (0xCU)\r
+#define SCT_RES_O1RES_SHIFT (2U)\r
/*! O1RES - Effect of simultaneous set and clear on output 1.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR1 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR1 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O1RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O1RES_SHIFT)) & SCT_RES_O1RES_MASK)\r
-#define SCT_RES_O2RES_MASK (0x30U)\r
-#define SCT_RES_O2RES_SHIFT (4U)\r
+#define SCT_RES_O1RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O1RES_SHIFT)) & SCT_RES_O1RES_MASK)\r
+#define SCT_RES_O2RES_MASK (0x30U)\r
+#define SCT_RES_O2RES_SHIFT (4U)\r
/*! O2RES - Effect of simultaneous set and clear on output 2.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR2 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output n (or set based on the SETCLR2 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O2RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O2RES_SHIFT)) & SCT_RES_O2RES_MASK)\r
-#define SCT_RES_O3RES_MASK (0xC0U)\r
-#define SCT_RES_O3RES_SHIFT (6U)\r
+#define SCT_RES_O2RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O2RES_SHIFT)) & SCT_RES_O2RES_MASK)\r
+#define SCT_RES_O3RES_MASK (0xC0U)\r
+#define SCT_RES_O3RES_SHIFT (6U)\r
/*! O3RES - Effect of simultaneous set and clear on output 3.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR3 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR3 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O3RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O3RES_SHIFT)) & SCT_RES_O3RES_MASK)\r
-#define SCT_RES_O4RES_MASK (0x300U)\r
-#define SCT_RES_O4RES_SHIFT (8U)\r
+#define SCT_RES_O3RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O3RES_SHIFT)) & SCT_RES_O3RES_MASK)\r
+#define SCT_RES_O4RES_MASK (0x300U)\r
+#define SCT_RES_O4RES_SHIFT (8U)\r
/*! O4RES - Effect of simultaneous set and clear on output 4.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR4 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR4 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O4RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O4RES_SHIFT)) & SCT_RES_O4RES_MASK)\r
-#define SCT_RES_O5RES_MASK (0xC00U)\r
-#define SCT_RES_O5RES_SHIFT (10U)\r
+#define SCT_RES_O4RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O4RES_SHIFT)) & SCT_RES_O4RES_MASK)\r
+#define SCT_RES_O5RES_MASK (0xC00U)\r
+#define SCT_RES_O5RES_SHIFT (10U)\r
/*! O5RES - Effect of simultaneous set and clear on output 5.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR5 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR5 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O5RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O5RES_SHIFT)) & SCT_RES_O5RES_MASK)\r
-#define SCT_RES_O6RES_MASK (0x3000U)\r
-#define SCT_RES_O6RES_SHIFT (12U)\r
+#define SCT_RES_O5RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O5RES_SHIFT)) & SCT_RES_O5RES_MASK)\r
+#define SCT_RES_O6RES_MASK (0x3000U)\r
+#define SCT_RES_O6RES_SHIFT (12U)\r
/*! O6RES - Effect of simultaneous set and clear on output 6.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR6 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR6 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O6RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O6RES_SHIFT)) & SCT_RES_O6RES_MASK)\r
-#define SCT_RES_O7RES_MASK (0xC000U)\r
-#define SCT_RES_O7RES_SHIFT (14U)\r
+#define SCT_RES_O6RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O6RES_SHIFT)) & SCT_RES_O6RES_MASK)\r
+#define SCT_RES_O7RES_MASK (0xC000U)\r
+#define SCT_RES_O7RES_SHIFT (14U)\r
/*! O7RES - Effect of simultaneous set and clear on output 7.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR7 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output n (or set based on the SETCLR7 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O7RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O7RES_SHIFT)) & SCT_RES_O7RES_MASK)\r
-#define SCT_RES_O8RES_MASK (0x30000U)\r
-#define SCT_RES_O8RES_SHIFT (16U)\r
+#define SCT_RES_O7RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O7RES_SHIFT)) & SCT_RES_O7RES_MASK)\r
+#define SCT_RES_O8RES_MASK (0x30000U)\r
+#define SCT_RES_O8RES_SHIFT (16U)\r
/*! O8RES - Effect of simultaneous set and clear on output 8.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR8 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR8 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O8RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O8RES_SHIFT)) & SCT_RES_O8RES_MASK)\r
-#define SCT_RES_O9RES_MASK (0xC0000U)\r
-#define SCT_RES_O9RES_SHIFT (18U)\r
+#define SCT_RES_O8RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O8RES_SHIFT)) & SCT_RES_O8RES_MASK)\r
+#define SCT_RES_O9RES_MASK (0xC0000U)\r
+#define SCT_RES_O9RES_SHIFT (18U)\r
/*! O9RES - Effect of simultaneous set and clear on output 9.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR9 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR9 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O9RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O9RES_SHIFT)) & SCT_RES_O9RES_MASK)\r
-#define SCT_RES_O10RES_MASK (0x300000U)\r
-#define SCT_RES_O10RES_SHIFT (20U)\r
+#define SCT_RES_O9RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O9RES_SHIFT)) & SCT_RES_O9RES_MASK)\r
+#define SCT_RES_O10RES_MASK (0x300000U)\r
+#define SCT_RES_O10RES_SHIFT (20U)\r
/*! O10RES - Effect of simultaneous set and clear on output 10.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR10 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR10 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O10RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O10RES_SHIFT)) & SCT_RES_O10RES_MASK)\r
-#define SCT_RES_O11RES_MASK (0xC00000U)\r
-#define SCT_RES_O11RES_SHIFT (22U)\r
+#define SCT_RES_O10RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O10RES_SHIFT)) & SCT_RES_O10RES_MASK)\r
+#define SCT_RES_O11RES_MASK (0xC00000U)\r
+#define SCT_RES_O11RES_SHIFT (22U)\r
/*! O11RES - Effect of simultaneous set and clear on output 11.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR11 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR11 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O11RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O11RES_SHIFT)) & SCT_RES_O11RES_MASK)\r
-#define SCT_RES_O12RES_MASK (0x3000000U)\r
-#define SCT_RES_O12RES_SHIFT (24U)\r
+#define SCT_RES_O11RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O11RES_SHIFT)) & SCT_RES_O11RES_MASK)\r
+#define SCT_RES_O12RES_MASK (0x3000000U)\r
+#define SCT_RES_O12RES_SHIFT (24U)\r
/*! O12RES - Effect of simultaneous set and clear on output 12.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR12 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR12 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O12RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O12RES_SHIFT)) & SCT_RES_O12RES_MASK)\r
-#define SCT_RES_O13RES_MASK (0xC000000U)\r
-#define SCT_RES_O13RES_SHIFT (26U)\r
+#define SCT_RES_O12RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O12RES_SHIFT)) & SCT_RES_O12RES_MASK)\r
+#define SCT_RES_O13RES_MASK (0xC000000U)\r
+#define SCT_RES_O13RES_SHIFT (26U)\r
/*! O13RES - Effect of simultaneous set and clear on output 13.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR13 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR13 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O13RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O13RES_SHIFT)) & SCT_RES_O13RES_MASK)\r
-#define SCT_RES_O14RES_MASK (0x30000000U)\r
-#define SCT_RES_O14RES_SHIFT (28U)\r
+#define SCT_RES_O13RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O13RES_SHIFT)) & SCT_RES_O13RES_MASK)\r
+#define SCT_RES_O14RES_MASK (0x30000000U)\r
+#define SCT_RES_O14RES_SHIFT (28U)\r
/*! O14RES - Effect of simultaneous set and clear on output 14.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR14 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR14 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O14RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O14RES_SHIFT)) & SCT_RES_O14RES_MASK)\r
-#define SCT_RES_O15RES_MASK (0xC0000000U)\r
-#define SCT_RES_O15RES_SHIFT (30U)\r
+#define SCT_RES_O14RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O14RES_SHIFT)) & SCT_RES_O14RES_MASK)\r
+#define SCT_RES_O15RES_MASK (0xC0000000U)\r
+#define SCT_RES_O15RES_SHIFT (30U)\r
/*! O15RES - Effect of simultaneous set and clear on output 15.\r
* 0b00..No change.\r
* 0b01..Set output (or clear based on the SETCLR15 field in the OUTPUTDIRCTRL register).\r
* 0b10..Clear output (or set based on the SETCLR15 field).\r
* 0b11..Toggle output.\r
*/\r
-#define SCT_RES_O15RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O15RES_SHIFT)) & SCT_RES_O15RES_MASK)\r
+#define SCT_RES_O15RES(x) (((uint32_t)(((uint32_t)(x)) << SCT_RES_O15RES_SHIFT)) & SCT_RES_O15RES_MASK)\r
/*! @} */\r
\r
-/*! @name DMA0REQUEST - SCT DMA request 0 register */\r
+/*! @name DMAREQ0 - SCT DMA request 0 register */\r
/*! @{ */\r
-#define SCT_DMA0REQUEST_DEV_0_MASK (0xFFFFU)\r
-#define SCT_DMA0REQUEST_DEV_0_SHIFT (0U)\r
-#define SCT_DMA0REQUEST_DEV_0(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMA0REQUEST_DEV_0_SHIFT)) & SCT_DMA0REQUEST_DEV_0_MASK)\r
-#define SCT_DMA0REQUEST_DRL0_MASK (0x40000000U)\r
-#define SCT_DMA0REQUEST_DRL0_SHIFT (30U)\r
-#define SCT_DMA0REQUEST_DRL0(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMA0REQUEST_DRL0_SHIFT)) & SCT_DMA0REQUEST_DRL0_MASK)\r
-#define SCT_DMA0REQUEST_DRQ0_MASK (0x80000000U)\r
-#define SCT_DMA0REQUEST_DRQ0_SHIFT (31U)\r
-#define SCT_DMA0REQUEST_DRQ0(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMA0REQUEST_DRQ0_SHIFT)) & SCT_DMA0REQUEST_DRQ0_MASK)\r
+#define SCT_DMAREQ0_DEV_0_MASK (0xFFFFU)\r
+#define SCT_DMAREQ0_DEV_0_SHIFT (0U)\r
+/*! DEV_0 - If bit n is one, event n triggers DMA request 0 (event 0 = bit 0, event 1 = bit 1,\r
+ * etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_DMAREQ0_DEV_0(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMAREQ0_DEV_0_SHIFT)) & SCT_DMAREQ0_DEV_0_MASK)\r
+#define SCT_DMAREQ0_DRL0_MASK (0x40000000U)\r
+#define SCT_DMAREQ0_DRL0_SHIFT (30U)\r
+/*! DRL0 - A 1 in this bit triggers DMA request 0 when it loads the MATCH_L/Unified registers from the RELOAD_L/Unified\r
+ * registers.\r
+ */\r
+#define SCT_DMAREQ0_DRL0(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMAREQ0_DRL0_SHIFT)) & SCT_DMAREQ0_DRL0_MASK)\r
+#define SCT_DMAREQ0_DRQ0_MASK (0x80000000U)\r
+#define SCT_DMAREQ0_DRQ0_SHIFT (31U)\r
+/*! DRQ0 - This read-only bit indicates the state of DMA Request 0. Note that if the related DMA\r
+ * channel is enabled and properly set up, it is unlikely that software will see this flag, it will\r
+ * be cleared rapidly by the DMA service. The flag remaining set could point to an issue with DMA\r
+ * setup.\r
+ */\r
+#define SCT_DMAREQ0_DRQ0(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMAREQ0_DRQ0_SHIFT)) & SCT_DMAREQ0_DRQ0_MASK)\r
/*! @} */\r
\r
-/*! @name DMA1REQUEST - SCT DMA request 1 register */\r
+/*! @name DMAREQ1 - SCT DMA request 1 register */\r
/*! @{ */\r
-#define SCT_DMA1REQUEST_DEV_1_MASK (0xFFFFU)\r
-#define SCT_DMA1REQUEST_DEV_1_SHIFT (0U)\r
-#define SCT_DMA1REQUEST_DEV_1(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMA1REQUEST_DEV_1_SHIFT)) & SCT_DMA1REQUEST_DEV_1_MASK)\r
-#define SCT_DMA1REQUEST_DRL1_MASK (0x40000000U)\r
-#define SCT_DMA1REQUEST_DRL1_SHIFT (30U)\r
-#define SCT_DMA1REQUEST_DRL1(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMA1REQUEST_DRL1_SHIFT)) & SCT_DMA1REQUEST_DRL1_MASK)\r
-#define SCT_DMA1REQUEST_DRQ1_MASK (0x80000000U)\r
-#define SCT_DMA1REQUEST_DRQ1_SHIFT (31U)\r
-#define SCT_DMA1REQUEST_DRQ1(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMA1REQUEST_DRQ1_SHIFT)) & SCT_DMA1REQUEST_DRQ1_MASK)\r
+#define SCT_DMAREQ1_DEV_1_MASK (0xFFFFU)\r
+#define SCT_DMAREQ1_DEV_1_SHIFT (0U)\r
+/*! DEV_1 - If bit n is one, event n triggers DMA request 1 (event 0 = bit 0, event 1 = bit 1,\r
+ * etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_DMAREQ1_DEV_1(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMAREQ1_DEV_1_SHIFT)) & SCT_DMAREQ1_DEV_1_MASK)\r
+#define SCT_DMAREQ1_DRL1_MASK (0x40000000U)\r
+#define SCT_DMAREQ1_DRL1_SHIFT (30U)\r
+/*! DRL1 - A 1 in this bit triggers DMA request 1 when it loads the Match L/Unified registers from the Reload L/Unified\r
+ * registers.\r
+ */\r
+#define SCT_DMAREQ1_DRL1(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMAREQ1_DRL1_SHIFT)) & SCT_DMAREQ1_DRL1_MASK)\r
+#define SCT_DMAREQ1_DRQ1_MASK (0x80000000U)\r
+#define SCT_DMAREQ1_DRQ1_SHIFT (31U)\r
+/*! DRQ1 - This read-only bit indicates the state of DMA Request 1. Note that if the related DMA\r
+ * channel is enabled and properly set up, it is unlikely that software will see this flag, it will\r
+ * be cleared rapidly by the DMA service. The flag remaining set could point to an issue with DMA\r
+ * setup.\r
+ */\r
+#define SCT_DMAREQ1_DRQ1(x) (((uint32_t)(((uint32_t)(x)) << SCT_DMAREQ1_DRQ1_SHIFT)) & SCT_DMAREQ1_DRQ1_MASK)\r
/*! @} */\r
\r
/*! @name EVEN - SCT event interrupt enable register */\r
/*! @{ */\r
-#define SCT_EVEN_IEN_MASK (0xFFFFU)\r
-#define SCT_EVEN_IEN_SHIFT (0U)\r
-#define SCT_EVEN_IEN(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVEN_IEN_SHIFT)) & SCT_EVEN_IEN_MASK)\r
+#define SCT_EVEN_IEN_MASK (0xFFFFU)\r
+#define SCT_EVEN_IEN_SHIFT (0U)\r
+/*! IEN - The SCT requests an interrupt when bit n of this register and the event flag register are\r
+ * both one (event 0 = bit 0, event 1 = bit 1, etc.). The number of bits = number of events in\r
+ * this SCT.\r
+ */\r
+#define SCT_EVEN_IEN(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVEN_IEN_SHIFT)) & SCT_EVEN_IEN_MASK)\r
/*! @} */\r
\r
/*! @name EVFLAG - SCT event flag register */\r
/*! @{ */\r
-#define SCT_EVFLAG_FLAG_MASK (0xFFFFU)\r
-#define SCT_EVFLAG_FLAG_SHIFT (0U)\r
-#define SCT_EVFLAG_FLAG(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVFLAG_FLAG_SHIFT)) & SCT_EVFLAG_FLAG_MASK)\r
+#define SCT_EVFLAG_FLAG_MASK (0xFFFFU)\r
+#define SCT_EVFLAG_FLAG_SHIFT (0U)\r
+/*! FLAG - Bit n is one if event n has occurred since reset or a 1 was last written to this bit\r
+ * (event 0 = bit 0, event 1 = bit 1, etc.). The number of bits = number of events in this SCT.\r
+ */\r
+#define SCT_EVFLAG_FLAG(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVFLAG_FLAG_SHIFT)) & SCT_EVFLAG_FLAG_MASK)\r
/*! @} */\r
\r
/*! @name CONEN - SCT conflict interrupt enable register */\r
/*! @{ */\r
-#define SCT_CONEN_NCEN_MASK (0xFFFFU)\r
-#define SCT_CONEN_NCEN_SHIFT (0U)\r
-#define SCT_CONEN_NCEN(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONEN_NCEN_SHIFT)) & SCT_CONEN_NCEN_MASK)\r
+#define SCT_CONEN_NCEN_MASK (0xFFFFU)\r
+#define SCT_CONEN_NCEN_SHIFT (0U)\r
+/*! NCEN - The SCT requests an interrupt when bit n of this register and the SCT conflict flag\r
+ * register are both one (output 0 = bit 0, output 1 = bit 1, etc.). The number of bits = number of\r
+ * outputs in this SCT.\r
+ */\r
+#define SCT_CONEN_NCEN(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONEN_NCEN_SHIFT)) & SCT_CONEN_NCEN_MASK)\r
/*! @} */\r
\r
/*! @name CONFLAG - SCT conflict flag register */\r
/*! @{ */\r
-#define SCT_CONFLAG_NCFLAG_MASK (0xFFFFU)\r
-#define SCT_CONFLAG_NCFLAG_SHIFT (0U)\r
-#define SCT_CONFLAG_NCFLAG(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFLAG_NCFLAG_SHIFT)) & SCT_CONFLAG_NCFLAG_MASK)\r
-#define SCT_CONFLAG_BUSERRL_MASK (0x40000000U)\r
-#define SCT_CONFLAG_BUSERRL_SHIFT (30U)\r
-#define SCT_CONFLAG_BUSERRL(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFLAG_BUSERRL_SHIFT)) & SCT_CONFLAG_BUSERRL_MASK)\r
-#define SCT_CONFLAG_BUSERRH_MASK (0x80000000U)\r
-#define SCT_CONFLAG_BUSERRH_SHIFT (31U)\r
-#define SCT_CONFLAG_BUSERRH(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFLAG_BUSERRH_SHIFT)) & SCT_CONFLAG_BUSERRH_MASK)\r
+#define SCT_CONFLAG_NCFLAG_MASK (0xFFFFU)\r
+#define SCT_CONFLAG_NCFLAG_SHIFT (0U)\r
+/*! NCFLAG - Bit n is one if a no-change conflict event occurred on output n since reset or a 1 was\r
+ * last written to this bit (output 0 = bit 0, output 1 = bit 1, etc.). The number of bits =\r
+ * number of outputs in this SCT.\r
+ */\r
+#define SCT_CONFLAG_NCFLAG(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFLAG_NCFLAG_SHIFT)) & SCT_CONFLAG_NCFLAG_MASK)\r
+#define SCT_CONFLAG_BUSERRL_MASK (0x40000000U)\r
+#define SCT_CONFLAG_BUSERRL_SHIFT (30U)\r
+/*! BUSERRL - The most recent bus error from this SCT involved writing CTR L/Unified, STATE\r
+ * L/Unified, MATCH L/Unified, or the Output register when the L/U counter was not halted. A word write\r
+ * to certain L and H registers can be half successful and half unsuccessful.\r
+ */\r
+#define SCT_CONFLAG_BUSERRL(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFLAG_BUSERRL_SHIFT)) & SCT_CONFLAG_BUSERRL_MASK)\r
+#define SCT_CONFLAG_BUSERRH_MASK (0x80000000U)\r
+#define SCT_CONFLAG_BUSERRH_SHIFT (31U)\r
+/*! BUSERRH - The most recent bus error from this SCT involved writing CTR H, STATE H, MATCH H, or\r
+ * the Output register when the H counter was not halted.\r
+ */\r
+#define SCT_CONFLAG_BUSERRH(x) (((uint32_t)(((uint32_t)(x)) << SCT_CONFLAG_BUSERRH_SHIFT)) & SCT_CONFLAG_BUSERRH_MASK)\r
/*! @} */\r
\r
-/*! @name SCTCAP - SCT capture register of capture channel */\r
+/*! @name CAP - SCT capture register of capture channel */\r
/*! @{ */\r
-#define SCT_SCTCAP_CAPn_L_MASK (0xFFFFU)\r
-#define SCT_SCTCAP_CAPn_L_SHIFT (0U)\r
-#define SCT_SCTCAP_CAPn_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_SCTCAP_CAPn_L_SHIFT)) & SCT_SCTCAP_CAPn_L_MASK)\r
-#define SCT_SCTCAP_CAPn_H_MASK (0xFFFF0000U)\r
-#define SCT_SCTCAP_CAPn_H_SHIFT (16U)\r
-#define SCT_SCTCAP_CAPn_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_SCTCAP_CAPn_H_SHIFT)) & SCT_SCTCAP_CAPn_H_MASK)\r
+#define SCT_CAP_CAPn_L_MASK (0xFFFFU)\r
+#define SCT_CAP_CAPn_L_SHIFT (0U)\r
+/*! CAPn_L - When UNIFY = 0, read the 16-bit counter value at which this register was last captured.\r
+ * When UNIFY = 1, read the lower 16 bits of the 32-bit value at which this register was last\r
+ * captured.\r
+ */\r
+#define SCT_CAP_CAPn_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_CAP_CAPn_L_SHIFT)) & SCT_CAP_CAPn_L_MASK)\r
+#define SCT_CAP_CAPn_H_MASK (0xFFFF0000U)\r
+#define SCT_CAP_CAPn_H_SHIFT (16U)\r
+/*! CAPn_H - When UNIFY = 0, read the 16-bit counter value at which this register was last captured.\r
+ * When UNIFY = 1, read the upper 16 bits of the 32-bit value at which this register was last\r
+ * captured.\r
+ */\r
+#define SCT_CAP_CAPn_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_CAP_CAPn_H_SHIFT)) & SCT_CAP_CAPn_H_MASK)\r
/*! @} */\r
\r
-/* The count of SCT_SCTCAP */\r
-#define SCT_SCTCAP_COUNT (10U)\r
+/* The count of SCT_CAP */\r
+#define SCT_CAP_COUNT (16U)\r
\r
-/*! @name SCTMATCH - SCT match value register of match channels */\r
+/*! @name MATCH - SCT match value register of match channels */\r
/*! @{ */\r
-#define SCT_SCTMATCH_MATCHn_L_MASK (0xFFFFU)\r
-#define SCT_SCTMATCH_MATCHn_L_SHIFT (0U)\r
-#define SCT_SCTMATCH_MATCHn_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_SCTMATCH_MATCHn_L_SHIFT)) & SCT_SCTMATCH_MATCHn_L_MASK)\r
-#define SCT_SCTMATCH_MATCHn_H_MASK (0xFFFF0000U)\r
-#define SCT_SCTMATCH_MATCHn_H_SHIFT (16U)\r
-#define SCT_SCTMATCH_MATCHn_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_SCTMATCH_MATCHn_H_SHIFT)) & SCT_SCTMATCH_MATCHn_H_MASK)\r
+#define SCT_MATCH_MATCHn_L_MASK (0xFFFFU)\r
+#define SCT_MATCH_MATCHn_L_SHIFT (0U)\r
+/*! MATCHn_L - When UNIFY = 0, read or write the 16-bit value to be compared to the L counter. When\r
+ * UNIFY = 1, read or write the lower 16 bits of the 32-bit value to be compared to the unified\r
+ * counter.\r
+ */\r
+#define SCT_MATCH_MATCHn_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_MATCH_MATCHn_L_SHIFT)) & SCT_MATCH_MATCHn_L_MASK)\r
+#define SCT_MATCH_MATCHn_H_MASK (0xFFFF0000U)\r
+#define SCT_MATCH_MATCHn_H_SHIFT (16U)\r
+/*! MATCHn_H - When UNIFY = 0, read or write the 16-bit value to be compared to the H counter. When\r
+ * UNIFY = 1, read or write the upper 16 bits of the 32-bit value to be compared to the unified\r
+ * counter.\r
+ */\r
+#define SCT_MATCH_MATCHn_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_MATCH_MATCHn_H_SHIFT)) & SCT_MATCH_MATCHn_H_MASK)\r
/*! @} */\r
\r
-/* The count of SCT_SCTMATCH */\r
-#define SCT_SCTMATCH_COUNT (10U)\r
+/* The count of SCT_MATCH */\r
+#define SCT_MATCH_COUNT (16U)\r
\r
-/*! @name SCTCAPCTRL - SCT capture control register */\r
+/*! @name CAPCTRL - SCT capture control register */\r
/*! @{ */\r
-#define SCT_SCTCAPCTRL_CAPCONn_L_MASK (0xFFFFU)\r
-#define SCT_SCTCAPCTRL_CAPCONn_L_SHIFT (0U)\r
-#define SCT_SCTCAPCTRL_CAPCONn_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_SCTCAPCTRL_CAPCONn_L_SHIFT)) & SCT_SCTCAPCTRL_CAPCONn_L_MASK)\r
-#define SCT_SCTCAPCTRL_CAPCONn_H_MASK (0xFFFF0000U)\r
-#define SCT_SCTCAPCTRL_CAPCONn_H_SHIFT (16U)\r
-#define SCT_SCTCAPCTRL_CAPCONn_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_SCTCAPCTRL_CAPCONn_H_SHIFT)) & SCT_SCTCAPCTRL_CAPCONn_H_MASK)\r
+#define SCT_CAPCTRL_CAPCONn_L_MASK (0xFFFFU)\r
+#define SCT_CAPCTRL_CAPCONn_L_SHIFT (0U)\r
+/*! CAPCONn_L - If bit m is one, event m causes the CAPn_L (UNIFY = 0) or the CAPn (UNIFY = 1)\r
+ * register to be loaded (event 0 = bit 0, event 1 = bit 1, etc.). The number of bits = number of\r
+ * match/captures in this SCT.\r
+ */\r
+#define SCT_CAPCTRL_CAPCONn_L(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_CAPCTRL_CAPCONn_L_SHIFT)) & SCT_CAPCTRL_CAPCONn_L_MASK)\r
+#define SCT_CAPCTRL_CAPCONn_H_MASK (0xFFFF0000U)\r
+#define SCT_CAPCTRL_CAPCONn_H_SHIFT (16U)\r
+/*! CAPCONn_H - If bit m is one, event m causes the CAPn_H (UNIFY = 0) register to be loaded (event\r
+ * 0 = bit 16, event 1 = bit 17, etc.). The number of bits = number of match/captures in this SCT.\r
+ */\r
+#define SCT_CAPCTRL_CAPCONn_H(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_CAPCTRL_CAPCONn_H_SHIFT)) & SCT_CAPCTRL_CAPCONn_H_MASK)\r
/*! @} */\r
\r
-/* The count of SCT_SCTCAPCTRL */\r
-#define SCT_SCTCAPCTRL_COUNT (10U)\r
+/* The count of SCT_CAPCTRL */\r
+#define SCT_CAPCTRL_COUNT (16U)\r
\r
-/*! @name SCTMATCHREL - SCT match reload value register */\r
+/*! @name MATCHREL - SCT match reload value register */\r
/*! @{ */\r
-#define SCT_SCTMATCHREL_RELOADn_L_MASK (0xFFFFU)\r
-#define SCT_SCTMATCHREL_RELOADn_L_SHIFT (0U)\r
-#define SCT_SCTMATCHREL_RELOADn_L(x) (((uint32_t)(((uint32_t)(x)) << SCT_SCTMATCHREL_RELOADn_L_SHIFT)) & SCT_SCTMATCHREL_RELOADn_L_MASK)\r
-#define SCT_SCTMATCHREL_RELOADn_H_MASK (0xFFFF0000U)\r
-#define SCT_SCTMATCHREL_RELOADn_H_SHIFT (16U)\r
-#define SCT_SCTMATCHREL_RELOADn_H(x) (((uint32_t)(((uint32_t)(x)) << SCT_SCTMATCHREL_RELOADn_H_SHIFT)) & SCT_SCTMATCHREL_RELOADn_H_MASK)\r
+#define SCT_MATCHREL_RELOADn_L_MASK (0xFFFFU)\r
+#define SCT_MATCHREL_RELOADn_L_SHIFT (0U)\r
+/*! RELOADn_L - When UNIFY = 0, specifies the 16-bit value to be loaded into the MATCHn_L register.\r
+ * When UNIFY = 1, specifies the lower 16 bits of the 32-bit value to be loaded into the MATCHn\r
+ * register.\r
+ */\r
+#define SCT_MATCHREL_RELOADn_L(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_MATCHREL_RELOADn_L_SHIFT)) & SCT_MATCHREL_RELOADn_L_MASK)\r
+#define SCT_MATCHREL_RELOADn_H_MASK (0xFFFF0000U)\r
+#define SCT_MATCHREL_RELOADn_H_SHIFT (16U)\r
+/*! RELOADn_H - When UNIFY = 0, specifies the 16-bit to be loaded into the MATCHn_H register. When\r
+ * UNIFY = 1, specifies the upper 16 bits of the 32-bit value to be loaded into the MATCHn\r
+ * register.\r
+ */\r
+#define SCT_MATCHREL_RELOADn_H(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_MATCHREL_RELOADn_H_SHIFT)) & SCT_MATCHREL_RELOADn_H_MASK)\r
/*! @} */\r
\r
-/* The count of SCT_SCTMATCHREL */\r
-#define SCT_SCTMATCHREL_COUNT (10U)\r
+/* The count of SCT_MATCHREL */\r
+#define SCT_MATCHREL_COUNT (16U)\r
\r
-/*! @name EVENT_STATE - SCT event state register 0 */\r
+/*! @name EV_STATE - SCT event state register 0 */\r
/*! @{ */\r
-#define SCT_EVENT_STATE_STATEMSKn_MASK (0xFFFFU)\r
-#define SCT_EVENT_STATE_STATEMSKn_SHIFT (0U)\r
-#define SCT_EVENT_STATE_STATEMSKn(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_STATE_STATEMSKn_SHIFT)) & SCT_EVENT_STATE_STATEMSKn_MASK)\r
+#define SCT_EV_STATE_STATEMSKn_MASK (0xFFFFU)\r
+#define SCT_EV_STATE_STATEMSKn_SHIFT (0U)\r
+/*! STATEMSKn - If bit m is one, event n happens in state m of the counter selected by the HEVENT\r
+ * bit (n = event number, m = state number; state 0 = bit 0, state 1= bit 1, etc.). The number of\r
+ * bits = number of states in this SCT.\r
+ */\r
+#define SCT_EV_STATE_STATEMSKn(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_EV_STATE_STATEMSKn_SHIFT)) & SCT_EV_STATE_STATEMSKn_MASK)\r
/*! @} */\r
\r
-/* The count of SCT_EVENT_STATE */\r
-#define SCT_EVENT_STATE_COUNT (10U)\r
+/* The count of SCT_EV_STATE */\r
+#define SCT_EV_STATE_COUNT (16U)\r
\r
-/*! @name EVENT_CTRL - SCT event control register 0 */\r
+/*! @name EV_CTRL - SCT event control register 0 */\r
/*! @{ */\r
-#define SCT_EVENT_CTRL_MATCHSEL_MASK (0xFU)\r
-#define SCT_EVENT_CTRL_MATCHSEL_SHIFT (0U)\r
-#define SCT_EVENT_CTRL_MATCHSEL(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_MATCHSEL_SHIFT)) & SCT_EVENT_CTRL_MATCHSEL_MASK)\r
-#define SCT_EVENT_CTRL_HEVENT_MASK (0x10U)\r
-#define SCT_EVENT_CTRL_HEVENT_SHIFT (4U)\r
+#define SCT_EV_CTRL_MATCHSEL_MASK (0xFU)\r
+#define SCT_EV_CTRL_MATCHSEL_SHIFT (0U)\r
+/*! MATCHSEL - Selects the Match register associated with this event (if any). A match can occur\r
+ * only when the counter selected by the HEVENT bit is running.\r
+ */\r
+#define SCT_EV_CTRL_MATCHSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_MATCHSEL_SHIFT)) & SCT_EV_CTRL_MATCHSEL_MASK)\r
+#define SCT_EV_CTRL_HEVENT_MASK (0x10U)\r
+#define SCT_EV_CTRL_HEVENT_SHIFT (4U)\r
/*! HEVENT - Select L/H counter. Do not set this bit if UNIFY = 1.\r
* 0b0..Selects the L state and the L match register selected by MATCHSEL.\r
* 0b1..Selects the H state and the H match register selected by MATCHSEL.\r
*/\r
-#define SCT_EVENT_CTRL_HEVENT(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_HEVENT_SHIFT)) & SCT_EVENT_CTRL_HEVENT_MASK)\r
-#define SCT_EVENT_CTRL_OUTSEL_MASK (0x20U)\r
-#define SCT_EVENT_CTRL_OUTSEL_SHIFT (5U)\r
+#define SCT_EV_CTRL_HEVENT(x) (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_HEVENT_SHIFT)) & SCT_EV_CTRL_HEVENT_MASK)\r
+#define SCT_EV_CTRL_OUTSEL_MASK (0x20U)\r
+#define SCT_EV_CTRL_OUTSEL_SHIFT (5U)\r
/*! OUTSEL - Input/output select\r
* 0b0..Selects the inputs selected by IOSEL.\r
* 0b1..Selects the outputs selected by IOSEL.\r
*/\r
-#define SCT_EVENT_CTRL_OUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_OUTSEL_SHIFT)) & SCT_EVENT_CTRL_OUTSEL_MASK)\r
-#define SCT_EVENT_CTRL_IOSEL_MASK (0x3C0U)\r
-#define SCT_EVENT_CTRL_IOSEL_SHIFT (6U)\r
-#define SCT_EVENT_CTRL_IOSEL(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_IOSEL_SHIFT)) & SCT_EVENT_CTRL_IOSEL_MASK)\r
-#define SCT_EVENT_CTRL_IOCOND_MASK (0xC00U)\r
-#define SCT_EVENT_CTRL_IOCOND_SHIFT (10U)\r
-/*! IOCOND - Selects the I/O condition for event n. (The detection of edges on outputs lag the conditions that switch the outputs by one SCT clock). In order to guarantee proper edge/state detection, an input must have a minimum pulse width of at least one SCT clock period .\r
+#define SCT_EV_CTRL_OUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_OUTSEL_SHIFT)) & SCT_EV_CTRL_OUTSEL_MASK)\r
+#define SCT_EV_CTRL_IOSEL_MASK (0x3C0U)\r
+#define SCT_EV_CTRL_IOSEL_SHIFT (6U)\r
+/*! IOSEL - Selects the input or output signal number associated with this event (if any). Do not\r
+ * select an input in this register if CKMODE is 1x. In this case the clock input is an implicit\r
+ * ingredient of every event.\r
+ */\r
+#define SCT_EV_CTRL_IOSEL(x) (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_IOSEL_SHIFT)) & SCT_EV_CTRL_IOSEL_MASK)\r
+#define SCT_EV_CTRL_IOCOND_MASK (0xC00U)\r
+#define SCT_EV_CTRL_IOCOND_SHIFT (10U)\r
+/*! IOCOND - Selects the I/O condition for event n. (The detection of edges on outputs lag the\r
+ * conditions that switch the outputs by one SCT clock). In order to guarantee proper edge/state\r
+ * detection, an input must have a minimum pulse width of at least one SCT clock period .\r
* 0b00..LOW\r
* 0b01..Rise\r
* 0b10..Fall\r
* 0b11..HIGH\r
*/\r
-#define SCT_EVENT_CTRL_IOCOND(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_IOCOND_SHIFT)) & SCT_EVENT_CTRL_IOCOND_MASK)\r
-#define SCT_EVENT_CTRL_COMBMODE_MASK (0x3000U)\r
-#define SCT_EVENT_CTRL_COMBMODE_SHIFT (12U)\r
+#define SCT_EV_CTRL_IOCOND(x) (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_IOCOND_SHIFT)) & SCT_EV_CTRL_IOCOND_MASK)\r
+#define SCT_EV_CTRL_COMBMODE_MASK (0x3000U)\r
+#define SCT_EV_CTRL_COMBMODE_SHIFT (12U)\r
/*! COMBMODE - Selects how the specified match and I/O condition are used and combined.\r
* 0b00..OR. The event occurs when either the specified match or I/O condition occurs.\r
* 0b01..MATCH. Uses the specified match only.\r
* 0b10..IO. Uses the specified I/O condition only.\r
* 0b11..AND. The event occurs when the specified match and I/O condition occur simultaneously.\r
*/\r
-#define SCT_EVENT_CTRL_COMBMODE(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_COMBMODE_SHIFT)) & SCT_EVENT_CTRL_COMBMODE_MASK)\r
-#define SCT_EVENT_CTRL_STATELD_MASK (0x4000U)\r
-#define SCT_EVENT_CTRL_STATELD_SHIFT (14U)\r
-/*! STATELD - This bit controls how the STATEV value modifies the state selected by HEVENT when this event is the highest-numbered event occurring for that state.\r
+#define SCT_EV_CTRL_COMBMODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_COMBMODE_SHIFT)) & SCT_EV_CTRL_COMBMODE_MASK)\r
+#define SCT_EV_CTRL_STATELD_MASK (0x4000U)\r
+#define SCT_EV_CTRL_STATELD_SHIFT (14U)\r
+/*! STATELD - This bit controls how the STATEV value modifies the state selected by HEVENT when this\r
+ * event is the highest-numbered event occurring for that state.\r
* 0b0..STATEV value is added into STATE (the carry-out is ignored).\r
* 0b1..STATEV value is loaded into STATE.\r
*/\r
-#define SCT_EVENT_CTRL_STATELD(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_STATELD_SHIFT)) & SCT_EVENT_CTRL_STATELD_MASK)\r
-#define SCT_EVENT_CTRL_STATEV_MASK (0xF8000U)\r
-#define SCT_EVENT_CTRL_STATEV_SHIFT (15U)\r
-#define SCT_EVENT_CTRL_STATEV(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_STATEV_SHIFT)) & SCT_EVENT_CTRL_STATEV_MASK)\r
-#define SCT_EVENT_CTRL_MATCHMEM_MASK (0x100000U)\r
-#define SCT_EVENT_CTRL_MATCHMEM_SHIFT (20U)\r
-#define SCT_EVENT_CTRL_MATCHMEM(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_MATCHMEM_SHIFT)) & SCT_EVENT_CTRL_MATCHMEM_MASK)\r
-#define SCT_EVENT_CTRL_DIRECTION_MASK (0x600000U)\r
-#define SCT_EVENT_CTRL_DIRECTION_SHIFT (21U)\r
-/*! DIRECTION - Direction qualifier for event generation. This field only applies when the counters are operating in BIDIR mode. If BIDIR = 0, the SCT ignores this field. Value 0x3 is reserved.\r
+#define SCT_EV_CTRL_STATELD(x) (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_STATELD_SHIFT)) & SCT_EV_CTRL_STATELD_MASK)\r
+#define SCT_EV_CTRL_STATEV_MASK (0xF8000U)\r
+#define SCT_EV_CTRL_STATEV_SHIFT (15U)\r
+/*! STATEV - This value is loaded into or added to the state selected by HEVENT, depending on\r
+ * STATELD, when this event is the highest-numbered event occurring for that state. If STATELD and\r
+ * STATEV are both zero, there is no change to the STATE value.\r
+ */\r
+#define SCT_EV_CTRL_STATEV(x) (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_STATEV_SHIFT)) & SCT_EV_CTRL_STATEV_MASK)\r
+#define SCT_EV_CTRL_MATCHMEM_MASK (0x100000U)\r
+#define SCT_EV_CTRL_MATCHMEM_SHIFT (20U)\r
+/*! MATCHMEM - If this bit is one and the COMBMODE field specifies a match component to the\r
+ * triggering of this event, then a match is considered to be active whenever the counter value is\r
+ * GREATER THAN OR EQUAL TO the value specified in the match register when counting up, LESS THEN OR\r
+ * EQUAL TO the match value when counting down. If this bit is zero, a match is only be active\r
+ * during the cycle when the counter is equal to the match value.\r
+ */\r
+#define SCT_EV_CTRL_MATCHMEM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_MATCHMEM_SHIFT)) & SCT_EV_CTRL_MATCHMEM_MASK)\r
+#define SCT_EV_CTRL_DIRECTION_MASK (0x600000U)\r
+#define SCT_EV_CTRL_DIRECTION_SHIFT (21U)\r
+/*! DIRECTION - Direction qualifier for event generation. This field only applies when the counters\r
+ * are operating in BIDIR mode. If BIDIR = 0, the SCT ignores this field. Value 0x3 is reserved.\r
* 0b00..Direction independent. This event is triggered regardless of the count direction.\r
* 0b01..Counting up. This event is triggered only during up-counting when BIDIR = 1.\r
* 0b10..Counting down. This event is triggered only during down-counting when BIDIR = 1.\r
*/\r
-#define SCT_EVENT_CTRL_DIRECTION(x) (((uint32_t)(((uint32_t)(x)) << SCT_EVENT_CTRL_DIRECTION_SHIFT)) & SCT_EVENT_CTRL_DIRECTION_MASK)\r
+#define SCT_EV_CTRL_DIRECTION(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SCT_EV_CTRL_DIRECTION_SHIFT)) & SCT_EV_CTRL_DIRECTION_MASK)\r
/*! @} */\r
\r
-/* The count of SCT_EVENT_CTRL */\r
-#define SCT_EVENT_CTRL_COUNT (10U)\r
+/* The count of SCT_EV_CTRL */\r
+#define SCT_EV_CTRL_COUNT (16U)\r
\r
/*! @name OUT_SET - SCT output 0 set register */\r
/*! @{ */\r
-#define SCT_OUT_SET_SET_MASK (0xFFFFU)\r
-#define SCT_OUT_SET_SET_SHIFT (0U)\r
-#define SCT_OUT_SET_SET(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUT_SET_SET_SHIFT)) & SCT_OUT_SET_SET_MASK)\r
+#define SCT_OUT_SET_SET_MASK (0xFFFFU)\r
+#define SCT_OUT_SET_SET_SHIFT (0U)\r
+/*! SET - A 1 in bit m selects event m to set output n (or clear it if SETCLRn = 0x1 or 0x2) output\r
+ * 0 = bit 0, output 1 = bit 1, etc. The number of bits = number of events in this SCT. When the\r
+ * counter is used in bi-directional mode, it is possible to reverse the action specified by the\r
+ * output set and clear registers when counting down, See the OUTPUTCTRL register.\r
+ */\r
+#define SCT_OUT_SET_SET(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUT_SET_SET_SHIFT)) & SCT_OUT_SET_SET_MASK)\r
/*! @} */\r
\r
/* The count of SCT_OUT_SET */\r
-#define SCT_OUT_SET_COUNT (10U)\r
+#define SCT_OUT_SET_COUNT (10U)\r
\r
/*! @name OUT_CLR - SCT output 0 clear register */\r
/*! @{ */\r
-#define SCT_OUT_CLR_CLR_MASK (0xFFFFU)\r
-#define SCT_OUT_CLR_CLR_SHIFT (0U)\r
-#define SCT_OUT_CLR_CLR(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUT_CLR_CLR_SHIFT)) & SCT_OUT_CLR_CLR_MASK)\r
+#define SCT_OUT_CLR_CLR_MASK (0xFFFFU)\r
+#define SCT_OUT_CLR_CLR_SHIFT (0U)\r
+/*! CLR - A 1 in bit m selects event m to clear output n (or set it if SETCLRn = 0x1 or 0x2) event 0\r
+ * = bit 0, event 1 = bit 1, etc. The number of bits = number of events in this SCT. When the\r
+ * counter is used in bi-directional mode, it is possible to reverse the action specified by the\r
+ * output set and clear registers when counting down, See the OUTPUTCTRL register.\r
+ */\r
+#define SCT_OUT_CLR_CLR(x) (((uint32_t)(((uint32_t)(x)) << SCT_OUT_CLR_CLR_SHIFT)) & SCT_OUT_CLR_CLR_MASK)\r
/*! @} */\r
\r
/* The count of SCT_OUT_CLR */\r
-#define SCT_OUT_CLR_COUNT (10U)\r
-\r
+#define SCT_OUT_CLR_COUNT (10U)\r
\r
/*!\r
* @}\r
*/ /* end of group SCT_Register_Masks */\r
\r
-\r
/* SCT - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral SCT0 base address */\r
- #define SCT0_BASE (0x50085000u)\r
- /** Peripheral SCT0 base address */\r
- #define SCT0_BASE_NS (0x40085000u)\r
- /** Peripheral SCT0 base pointer */\r
- #define SCT0 ((SCT_Type *)SCT0_BASE)\r
- /** Peripheral SCT0 base pointer */\r
- #define SCT0_NS ((SCT_Type *)SCT0_BASE_NS)\r
- /** Array initializer of SCT peripheral base addresses */\r
- #define SCT_BASE_ADDRS { SCT0_BASE }\r
- /** Array initializer of SCT peripheral base pointers */\r
- #define SCT_BASE_PTRS { SCT0 }\r
- /** Array initializer of SCT peripheral base addresses */\r
- #define SCT_BASE_ADDRS_NS { SCT0_BASE_NS }\r
- /** Array initializer of SCT peripheral base pointers */\r
- #define SCT_BASE_PTRS_NS { SCT0_NS }\r
+/** Peripheral SCT0 base address */\r
+#define SCT0_BASE (0x50085000u)\r
+/** Peripheral SCT0 base address */\r
+#define SCT0_BASE_NS (0x40085000u)\r
+/** Peripheral SCT0 base pointer */\r
+#define SCT0 ((SCT_Type *)SCT0_BASE)\r
+/** Peripheral SCT0 base pointer */\r
+#define SCT0_NS ((SCT_Type *)SCT0_BASE_NS)\r
+/** Array initializer of SCT peripheral base addresses */\r
+#define SCT_BASE_ADDRS \\r
+ { \\r
+ SCT0_BASE \\r
+ }\r
+/** Array initializer of SCT peripheral base pointers */\r
+#define SCT_BASE_PTRS \\r
+ { \\r
+ SCT0 \\r
+ }\r
+/** Array initializer of SCT peripheral base addresses */\r
+#define SCT_BASE_ADDRS_NS \\r
+ { \\r
+ SCT0_BASE_NS \\r
+ }\r
+/** Array initializer of SCT peripheral base pointers */\r
+#define SCT_BASE_PTRS_NS \\r
+ { \\r
+ SCT0_NS \\r
+ }\r
#else\r
- /** Peripheral SCT0 base address */\r
- #define SCT0_BASE (0x40085000u)\r
- /** Peripheral SCT0 base pointer */\r
- #define SCT0 ((SCT_Type *)SCT0_BASE)\r
- /** Array initializer of SCT peripheral base addresses */\r
- #define SCT_BASE_ADDRS { SCT0_BASE }\r
- /** Array initializer of SCT peripheral base pointers */\r
- #define SCT_BASE_PTRS { SCT0 }\r
+/** Peripheral SCT0 base address */\r
+#define SCT0_BASE (0x40085000u)\r
+/** Peripheral SCT0 base pointer */\r
+#define SCT0 ((SCT_Type *)SCT0_BASE)\r
+/** Array initializer of SCT peripheral base addresses */\r
+#define SCT_BASE_ADDRS \\r
+ { \\r
+ SCT0_BASE \\r
+ }\r
+/** Array initializer of SCT peripheral base pointers */\r
+#define SCT_BASE_PTRS \\r
+ { \\r
+ SCT0 \\r
+ }\r
#endif\r
/** Interrupt vectors for the SCT peripheral type */\r
-#define SCT_IRQS { SCT0_IRQn }\r
+#define SCT_IRQS \\r
+ { \\r
+ SCT0_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group SCT_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- SDIF Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** SDIF - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CTRL; /**< Control register, offset: 0x0 */\r
- __IO uint32_t PWREN; /**< Power Enable register, offset: 0x4 */\r
- __IO uint32_t CLKDIV; /**< Clock Divider register, offset: 0x8 */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t CLKENA; /**< Clock Enable register, offset: 0x10 */\r
- __IO uint32_t TMOUT; /**< Time-out register, offset: 0x14 */\r
- __IO uint32_t CTYPE; /**< Card Type register, offset: 0x18 */\r
- __IO uint32_t BLKSIZ; /**< Block Size register, offset: 0x1C */\r
- __IO uint32_t BYTCNT; /**< Byte Count register, offset: 0x20 */\r
- __IO uint32_t INTMASK; /**< Interrupt Mask register, offset: 0x24 */\r
- __IO uint32_t CMDARG; /**< Command Argument register, offset: 0x28 */\r
- __IO uint32_t CMD; /**< Command register, offset: 0x2C */\r
- __IO uint32_t RESP[4]; /**< Response register, array offset: 0x30, array step: 0x4 */\r
- __IO uint32_t MINTSTS; /**< Masked Interrupt Status register, offset: 0x40 */\r
- __IO uint32_t RINTSTS; /**< Raw Interrupt Status register, offset: 0x44 */\r
- __IO uint32_t STATUS; /**< Status register, offset: 0x48 */\r
- __IO uint32_t FIFOTH; /**< FIFO Threshold Watermark register, offset: 0x4C */\r
- __IO uint32_t CDETECT; /**< Card Detect register, offset: 0x50 */\r
- __IO uint32_t WRTPRT; /**< Write Protect register, offset: 0x54 */\r
- uint8_t RESERVED_1[4];\r
- __IO uint32_t TCBCNT; /**< Transferred CIU Card Byte Count register, offset: 0x5C */\r
- __IO uint32_t TBBCNT; /**< Transferred Host to BIU-FIFO Byte Count register, offset: 0x60 */\r
- __IO uint32_t DEBNCE; /**< Debounce Count register, offset: 0x64 */\r
- uint8_t RESERVED_2[16];\r
- __IO uint32_t RST_N; /**< Hardware Reset, offset: 0x78 */\r
- uint8_t RESERVED_3[4];\r
- __IO uint32_t BMOD; /**< Bus Mode register, offset: 0x80 */\r
- __IO uint32_t PLDMND; /**< Poll Demand register, offset: 0x84 */\r
- __IO uint32_t DBADDR; /**< Descriptor List Base Address register, offset: 0x88 */\r
- __IO uint32_t IDSTS; /**< Internal DMAC Status register, offset: 0x8C */\r
- __IO uint32_t IDINTEN; /**< Internal DMAC Interrupt Enable register, offset: 0x90 */\r
- __IO uint32_t DSCADDR; /**< Current Host Descriptor Address register, offset: 0x94 */\r
- __IO uint32_t BUFADDR; /**< Current Buffer Descriptor Address register, offset: 0x98 */\r
- uint8_t RESERVED_4[100];\r
- __IO uint32_t CARDTHRCTL; /**< Card Threshold Control, offset: 0x100 */\r
- __IO uint32_t BACKENDPWR; /**< Power control, offset: 0x104 */\r
- uint8_t RESERVED_5[248];\r
- __IO uint32_t FIFO[64]; /**< SDIF FIFO, array offset: 0x200, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t CTRL; /**< Control register, offset: 0x0 */\r
+ __IO uint32_t PWREN; /**< Power Enable register, offset: 0x4 */\r
+ __IO uint32_t CLKDIV; /**< Clock Divider register, offset: 0x8 */\r
+ uint8_t RESERVED_0[4];\r
+ __IO uint32_t CLKENA; /**< Clock Enable register, offset: 0x10 */\r
+ __IO uint32_t TMOUT; /**< Time-out register, offset: 0x14 */\r
+ __IO uint32_t CTYPE; /**< Card Type register, offset: 0x18 */\r
+ __IO uint32_t BLKSIZ; /**< Block Size register, offset: 0x1C */\r
+ __IO uint32_t BYTCNT; /**< Byte Count register, offset: 0x20 */\r
+ __IO uint32_t INTMASK; /**< Interrupt Mask register, offset: 0x24 */\r
+ __IO uint32_t CMDARG; /**< Command Argument register, offset: 0x28 */\r
+ __IO uint32_t CMD; /**< Command register, offset: 0x2C */\r
+ __IO uint32_t RESP[4]; /**< Response register, array offset: 0x30, array step: 0x4 */\r
+ __IO uint32_t MINTSTS; /**< Masked Interrupt Status register, offset: 0x40 */\r
+ __IO uint32_t RINTSTS; /**< Raw Interrupt Status register, offset: 0x44 */\r
+ __IO uint32_t STATUS; /**< Status register, offset: 0x48 */\r
+ __IO uint32_t FIFOTH; /**< FIFO Threshold Watermark register, offset: 0x4C */\r
+ __IO uint32_t CDETECT; /**< Card Detect register, offset: 0x50 */\r
+ __IO uint32_t WRTPRT; /**< Write Protect register, offset: 0x54 */\r
+ uint8_t RESERVED_1[4];\r
+ __IO uint32_t TCBCNT; /**< Transferred CIU Card Byte Count register, offset: 0x5C */\r
+ __IO uint32_t TBBCNT; /**< Transferred Host to BIU-FIFO Byte Count register, offset: 0x60 */\r
+ __IO uint32_t DEBNCE; /**< Debounce Count register, offset: 0x64 */\r
+ uint8_t RESERVED_2[16];\r
+ __IO uint32_t RST_N; /**< Hardware Reset, offset: 0x78 */\r
+ uint8_t RESERVED_3[4];\r
+ __IO uint32_t BMOD; /**< Bus Mode register, offset: 0x80 */\r
+ __IO uint32_t PLDMND; /**< Poll Demand register, offset: 0x84 */\r
+ __IO uint32_t DBADDR; /**< Descriptor List Base Address register, offset: 0x88 */\r
+ __IO uint32_t IDSTS; /**< Internal DMAC Status register, offset: 0x8C */\r
+ __IO uint32_t IDINTEN; /**< Internal DMAC Interrupt Enable register, offset: 0x90 */\r
+ __IO uint32_t DSCADDR; /**< Current Host Descriptor Address register, offset: 0x94 */\r
+ __IO uint32_t BUFADDR; /**< Current Buffer Descriptor Address register, offset: 0x98 */\r
+ uint8_t RESERVED_4[100];\r
+ __IO uint32_t CARDTHRCTL; /**< Card Threshold Control, offset: 0x100 */\r
+ __IO uint32_t BACKENDPWR; /**< Power control, offset: 0x104 */\r
+ uint8_t RESERVED_5[248];\r
+ __IO uint32_t FIFO[64]; /**< SDIF FIFO, array offset: 0x200, array step: 0x4 */\r
} SDIF_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CTRL - Control register */\r
/*! @{ */\r
-#define SDIF_CTRL_CONTROLLER_RESET_MASK (0x1U)\r
-#define SDIF_CTRL_CONTROLLER_RESET_SHIFT (0U)\r
-#define SDIF_CTRL_CONTROLLER_RESET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CONTROLLER_RESET_SHIFT)) & SDIF_CTRL_CONTROLLER_RESET_MASK)\r
-#define SDIF_CTRL_FIFO_RESET_MASK (0x2U)\r
-#define SDIF_CTRL_FIFO_RESET_SHIFT (1U)\r
-#define SDIF_CTRL_FIFO_RESET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_FIFO_RESET_SHIFT)) & SDIF_CTRL_FIFO_RESET_MASK)\r
-#define SDIF_CTRL_DMA_RESET_MASK (0x4U)\r
-#define SDIF_CTRL_DMA_RESET_SHIFT (2U)\r
-#define SDIF_CTRL_DMA_RESET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_DMA_RESET_SHIFT)) & SDIF_CTRL_DMA_RESET_MASK)\r
-#define SDIF_CTRL_INT_ENABLE_MASK (0x10U)\r
-#define SDIF_CTRL_INT_ENABLE_SHIFT (4U)\r
-#define SDIF_CTRL_INT_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_INT_ENABLE_SHIFT)) & SDIF_CTRL_INT_ENABLE_MASK)\r
-#define SDIF_CTRL_READ_WAIT_MASK (0x40U)\r
-#define SDIF_CTRL_READ_WAIT_SHIFT (6U)\r
-#define SDIF_CTRL_READ_WAIT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_READ_WAIT_SHIFT)) & SDIF_CTRL_READ_WAIT_MASK)\r
-#define SDIF_CTRL_SEND_IRQ_RESPONSE_MASK (0x80U)\r
-#define SDIF_CTRL_SEND_IRQ_RESPONSE_SHIFT (7U)\r
-#define SDIF_CTRL_SEND_IRQ_RESPONSE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_SEND_IRQ_RESPONSE_SHIFT)) & SDIF_CTRL_SEND_IRQ_RESPONSE_MASK)\r
-#define SDIF_CTRL_ABORT_READ_DATA_MASK (0x100U)\r
-#define SDIF_CTRL_ABORT_READ_DATA_SHIFT (8U)\r
-#define SDIF_CTRL_ABORT_READ_DATA(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_ABORT_READ_DATA_SHIFT)) & SDIF_CTRL_ABORT_READ_DATA_MASK)\r
-#define SDIF_CTRL_SEND_CCSD_MASK (0x200U)\r
-#define SDIF_CTRL_SEND_CCSD_SHIFT (9U)\r
-#define SDIF_CTRL_SEND_CCSD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_SEND_CCSD_SHIFT)) & SDIF_CTRL_SEND_CCSD_MASK)\r
-#define SDIF_CTRL_SEND_AUTO_STOP_CCSD_MASK (0x400U)\r
-#define SDIF_CTRL_SEND_AUTO_STOP_CCSD_SHIFT (10U)\r
-#define SDIF_CTRL_SEND_AUTO_STOP_CCSD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_SEND_AUTO_STOP_CCSD_SHIFT)) & SDIF_CTRL_SEND_AUTO_STOP_CCSD_MASK)\r
+#define SDIF_CTRL_CONTROLLER_RESET_MASK (0x1U)\r
+#define SDIF_CTRL_CONTROLLER_RESET_SHIFT (0U)\r
+/*! CONTROLLER_RESET - Controller reset.\r
+ */\r
+#define SDIF_CTRL_CONTROLLER_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CONTROLLER_RESET_SHIFT)) & SDIF_CTRL_CONTROLLER_RESET_MASK)\r
+#define SDIF_CTRL_FIFO_RESET_MASK (0x2U)\r
+#define SDIF_CTRL_FIFO_RESET_SHIFT (1U)\r
+/*! FIFO_RESET - Fifo reset.\r
+ */\r
+#define SDIF_CTRL_FIFO_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_FIFO_RESET_SHIFT)) & SDIF_CTRL_FIFO_RESET_MASK)\r
+#define SDIF_CTRL_DMA_RESET_MASK (0x4U)\r
+#define SDIF_CTRL_DMA_RESET_SHIFT (2U)\r
+/*! DMA_RESET - DMA reset.\r
+ */\r
+#define SDIF_CTRL_DMA_RESET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_DMA_RESET_SHIFT)) & SDIF_CTRL_DMA_RESET_MASK)\r
+#define SDIF_CTRL_INT_ENABLE_MASK (0x10U)\r
+#define SDIF_CTRL_INT_ENABLE_SHIFT (4U)\r
+/*! INT_ENABLE - Global interrupt enable/disable bit.\r
+ */\r
+#define SDIF_CTRL_INT_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_INT_ENABLE_SHIFT)) & SDIF_CTRL_INT_ENABLE_MASK)\r
+#define SDIF_CTRL_READ_WAIT_MASK (0x40U)\r
+#define SDIF_CTRL_READ_WAIT_SHIFT (6U)\r
+/*! READ_WAIT - Read/wait.\r
+ */\r
+#define SDIF_CTRL_READ_WAIT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_READ_WAIT_SHIFT)) & SDIF_CTRL_READ_WAIT_MASK)\r
+#define SDIF_CTRL_SEND_IRQ_RESPONSE_MASK (0x80U)\r
+#define SDIF_CTRL_SEND_IRQ_RESPONSE_SHIFT (7U)\r
+/*! SEND_IRQ_RESPONSE - Send irq response.\r
+ */\r
+#define SDIF_CTRL_SEND_IRQ_RESPONSE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_SEND_IRQ_RESPONSE_SHIFT)) & SDIF_CTRL_SEND_IRQ_RESPONSE_MASK)\r
+#define SDIF_CTRL_ABORT_READ_DATA_MASK (0x100U)\r
+#define SDIF_CTRL_ABORT_READ_DATA_SHIFT (8U)\r
+/*! ABORT_READ_DATA - Abort read data.\r
+ */\r
+#define SDIF_CTRL_ABORT_READ_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_ABORT_READ_DATA_SHIFT)) & SDIF_CTRL_ABORT_READ_DATA_MASK)\r
+#define SDIF_CTRL_SEND_CCSD_MASK (0x200U)\r
+#define SDIF_CTRL_SEND_CCSD_SHIFT (9U)\r
+/*! SEND_CCSD - Send ccsd.\r
+ */\r
+#define SDIF_CTRL_SEND_CCSD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_SEND_CCSD_SHIFT)) & SDIF_CTRL_SEND_CCSD_MASK)\r
+#define SDIF_CTRL_SEND_AUTO_STOP_CCSD_MASK (0x400U)\r
+#define SDIF_CTRL_SEND_AUTO_STOP_CCSD_SHIFT (10U)\r
+/*! SEND_AUTO_STOP_CCSD - Send auto stop ccsd.\r
+ */\r
+#define SDIF_CTRL_SEND_AUTO_STOP_CCSD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_SEND_AUTO_STOP_CCSD_SHIFT)) & SDIF_CTRL_SEND_AUTO_STOP_CCSD_MASK)\r
#define SDIF_CTRL_CEATA_DEVICE_INTERRUPT_STATUS_MASK (0x800U)\r
#define SDIF_CTRL_CEATA_DEVICE_INTERRUPT_STATUS_SHIFT (11U)\r
-#define SDIF_CTRL_CEATA_DEVICE_INTERRUPT_STATUS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CEATA_DEVICE_INTERRUPT_STATUS_SHIFT)) & SDIF_CTRL_CEATA_DEVICE_INTERRUPT_STATUS_MASK)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A0_MASK (0x10000U)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A0_SHIFT (16U)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A0(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CARD_VOLTAGE_A0_SHIFT)) & SDIF_CTRL_CARD_VOLTAGE_A0_MASK)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A1_MASK (0x20000U)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A1_SHIFT (17U)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A1(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CARD_VOLTAGE_A1_SHIFT)) & SDIF_CTRL_CARD_VOLTAGE_A1_MASK)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A2_MASK (0x40000U)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A2_SHIFT (18U)\r
-#define SDIF_CTRL_CARD_VOLTAGE_A2(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CARD_VOLTAGE_A2_SHIFT)) & SDIF_CTRL_CARD_VOLTAGE_A2_MASK)\r
-#define SDIF_CTRL_USE_INTERNAL_DMAC_MASK (0x2000000U)\r
-#define SDIF_CTRL_USE_INTERNAL_DMAC_SHIFT (25U)\r
-#define SDIF_CTRL_USE_INTERNAL_DMAC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_USE_INTERNAL_DMAC_SHIFT)) & SDIF_CTRL_USE_INTERNAL_DMAC_MASK)\r
+/*! CEATA_DEVICE_INTERRUPT_STATUS - CEATA device interrupt status.\r
+ */\r
+#define SDIF_CTRL_CEATA_DEVICE_INTERRUPT_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CEATA_DEVICE_INTERRUPT_STATUS_SHIFT)) & \\r
+ SDIF_CTRL_CEATA_DEVICE_INTERRUPT_STATUS_MASK)\r
+#define SDIF_CTRL_CARD_VOLTAGE_A0_MASK (0x10000U)\r
+#define SDIF_CTRL_CARD_VOLTAGE_A0_SHIFT (16U)\r
+/*! CARD_VOLTAGE_A0 - Controls the state of the SD_VOLT0 pin.\r
+ */\r
+#define SDIF_CTRL_CARD_VOLTAGE_A0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CARD_VOLTAGE_A0_SHIFT)) & SDIF_CTRL_CARD_VOLTAGE_A0_MASK)\r
+#define SDIF_CTRL_CARD_VOLTAGE_A1_MASK (0x20000U)\r
+#define SDIF_CTRL_CARD_VOLTAGE_A1_SHIFT (17U)\r
+/*! CARD_VOLTAGE_A1 - Controls the state of the SD_VOLT1 pin.\r
+ */\r
+#define SDIF_CTRL_CARD_VOLTAGE_A1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CARD_VOLTAGE_A1_SHIFT)) & SDIF_CTRL_CARD_VOLTAGE_A1_MASK)\r
+#define SDIF_CTRL_CARD_VOLTAGE_A2_MASK (0x40000U)\r
+#define SDIF_CTRL_CARD_VOLTAGE_A2_SHIFT (18U)\r
+/*! CARD_VOLTAGE_A2 - Controls the state of the SD_VOLT2 pin.\r
+ */\r
+#define SDIF_CTRL_CARD_VOLTAGE_A2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_CARD_VOLTAGE_A2_SHIFT)) & SDIF_CTRL_CARD_VOLTAGE_A2_MASK)\r
+#define SDIF_CTRL_USE_INTERNAL_DMAC_MASK (0x2000000U)\r
+#define SDIF_CTRL_USE_INTERNAL_DMAC_SHIFT (25U)\r
+/*! USE_INTERNAL_DMAC - SD/MMC DMA use.\r
+ */\r
+#define SDIF_CTRL_USE_INTERNAL_DMAC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTRL_USE_INTERNAL_DMAC_SHIFT)) & SDIF_CTRL_USE_INTERNAL_DMAC_MASK)\r
/*! @} */\r
\r
/*! @name PWREN - Power Enable register */\r
/*! @{ */\r
-#define SDIF_PWREN_POWER_ENABLE0_MASK (0x1U)\r
-#define SDIF_PWREN_POWER_ENABLE0_SHIFT (0U)\r
-#define SDIF_PWREN_POWER_ENABLE0(x) (((uint32_t)(((uint32_t)(x)) << SDIF_PWREN_POWER_ENABLE0_SHIFT)) & SDIF_PWREN_POWER_ENABLE0_MASK)\r
-#define SDIF_PWREN_POWER_ENABLE1_MASK (0x2U)\r
-#define SDIF_PWREN_POWER_ENABLE1_SHIFT (1U)\r
-#define SDIF_PWREN_POWER_ENABLE1(x) (((uint32_t)(((uint32_t)(x)) << SDIF_PWREN_POWER_ENABLE1_SHIFT)) & SDIF_PWREN_POWER_ENABLE1_MASK)\r
+#define SDIF_PWREN_POWER_ENABLE0_MASK (0x1U)\r
+#define SDIF_PWREN_POWER_ENABLE0_SHIFT (0U)\r
+/*! POWER_ENABLE0 - Power on/off switch for card 0; once power is turned on, software should wait\r
+ * for regulator/switch ramp-up time before trying to initialize card 0.\r
+ */\r
+#define SDIF_PWREN_POWER_ENABLE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_PWREN_POWER_ENABLE0_SHIFT)) & SDIF_PWREN_POWER_ENABLE0_MASK)\r
+#define SDIF_PWREN_POWER_ENABLE1_MASK (0x2U)\r
+#define SDIF_PWREN_POWER_ENABLE1_SHIFT (1U)\r
+/*! POWER_ENABLE1 - Power on/off switch for card 1; once power is turned on, software should wait\r
+ * for regulator/switch ramp-up time before trying to initialize card 1.\r
+ */\r
+#define SDIF_PWREN_POWER_ENABLE1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_PWREN_POWER_ENABLE1_SHIFT)) & SDIF_PWREN_POWER_ENABLE1_MASK)\r
/*! @} */\r
\r
/*! @name CLKDIV - Clock Divider register */\r
/*! @{ */\r
-#define SDIF_CLKDIV_CLK_DIVIDER0_MASK (0xFFU)\r
-#define SDIF_CLKDIV_CLK_DIVIDER0_SHIFT (0U)\r
-#define SDIF_CLKDIV_CLK_DIVIDER0(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CLKDIV_CLK_DIVIDER0_SHIFT)) & SDIF_CLKDIV_CLK_DIVIDER0_MASK)\r
+#define SDIF_CLKDIV_CLK_DIVIDER0_MASK (0xFFU)\r
+#define SDIF_CLKDIV_CLK_DIVIDER0_SHIFT (0U)\r
+/*! CLK_DIVIDER0 - Clock divider-0 value.\r
+ */\r
+#define SDIF_CLKDIV_CLK_DIVIDER0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CLKDIV_CLK_DIVIDER0_SHIFT)) & SDIF_CLKDIV_CLK_DIVIDER0_MASK)\r
/*! @} */\r
\r
/*! @name CLKENA - Clock Enable register */\r
/*! @{ */\r
-#define SDIF_CLKENA_CCLK0_ENABLE_MASK (0x1U)\r
-#define SDIF_CLKENA_CCLK0_ENABLE_SHIFT (0U)\r
-#define SDIF_CLKENA_CCLK0_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CLKENA_CCLK0_ENABLE_SHIFT)) & SDIF_CLKENA_CCLK0_ENABLE_MASK)\r
-#define SDIF_CLKENA_CCLK1_ENABLE_MASK (0x2U)\r
-#define SDIF_CLKENA_CCLK1_ENABLE_SHIFT (1U)\r
-#define SDIF_CLKENA_CCLK1_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CLKENA_CCLK1_ENABLE_SHIFT)) & SDIF_CLKENA_CCLK1_ENABLE_MASK)\r
-#define SDIF_CLKENA_CCLK0_LOW_POWER_MASK (0x10000U)\r
-#define SDIF_CLKENA_CCLK0_LOW_POWER_SHIFT (16U)\r
-#define SDIF_CLKENA_CCLK0_LOW_POWER(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CLKENA_CCLK0_LOW_POWER_SHIFT)) & SDIF_CLKENA_CCLK0_LOW_POWER_MASK)\r
-#define SDIF_CLKENA_CCLK1_LOW_POWER_MASK (0x20000U)\r
-#define SDIF_CLKENA_CCLK1_LOW_POWER_SHIFT (17U)\r
-#define SDIF_CLKENA_CCLK1_LOW_POWER(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CLKENA_CCLK1_LOW_POWER_SHIFT)) & SDIF_CLKENA_CCLK1_LOW_POWER_MASK)\r
+#define SDIF_CLKENA_CCLK0_ENABLE_MASK (0x1U)\r
+#define SDIF_CLKENA_CCLK0_ENABLE_SHIFT (0U)\r
+/*! CCLK0_ENABLE - Clock-enable control for SD card 0 clock.\r
+ */\r
+#define SDIF_CLKENA_CCLK0_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CLKENA_CCLK0_ENABLE_SHIFT)) & SDIF_CLKENA_CCLK0_ENABLE_MASK)\r
+#define SDIF_CLKENA_CCLK1_ENABLE_MASK (0x2U)\r
+#define SDIF_CLKENA_CCLK1_ENABLE_SHIFT (1U)\r
+/*! CCLK1_ENABLE - Clock-enable control for SD card 1 clock.\r
+ */\r
+#define SDIF_CLKENA_CCLK1_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CLKENA_CCLK1_ENABLE_SHIFT)) & SDIF_CLKENA_CCLK1_ENABLE_MASK)\r
+#define SDIF_CLKENA_CCLK0_LOW_POWER_MASK (0x10000U)\r
+#define SDIF_CLKENA_CCLK0_LOW_POWER_SHIFT (16U)\r
+/*! CCLK0_LOW_POWER - Low-power control for SD card 0 clock.\r
+ */\r
+#define SDIF_CLKENA_CCLK0_LOW_POWER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CLKENA_CCLK0_LOW_POWER_SHIFT)) & SDIF_CLKENA_CCLK0_LOW_POWER_MASK)\r
+#define SDIF_CLKENA_CCLK1_LOW_POWER_MASK (0x20000U)\r
+#define SDIF_CLKENA_CCLK1_LOW_POWER_SHIFT (17U)\r
+/*! CCLK1_LOW_POWER - Low-power control for SD card 1 clock.\r
+ */\r
+#define SDIF_CLKENA_CCLK1_LOW_POWER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CLKENA_CCLK1_LOW_POWER_SHIFT)) & SDIF_CLKENA_CCLK1_LOW_POWER_MASK)\r
/*! @} */\r
\r
/*! @name TMOUT - Time-out register */\r
/*! @{ */\r
-#define SDIF_TMOUT_RESPONSE_TIMEOUT_MASK (0xFFU)\r
-#define SDIF_TMOUT_RESPONSE_TIMEOUT_SHIFT (0U)\r
-#define SDIF_TMOUT_RESPONSE_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_TMOUT_RESPONSE_TIMEOUT_SHIFT)) & SDIF_TMOUT_RESPONSE_TIMEOUT_MASK)\r
-#define SDIF_TMOUT_DATA_TIMEOUT_MASK (0xFFFFFF00U)\r
-#define SDIF_TMOUT_DATA_TIMEOUT_SHIFT (8U)\r
-#define SDIF_TMOUT_DATA_TIMEOUT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_TMOUT_DATA_TIMEOUT_SHIFT)) & SDIF_TMOUT_DATA_TIMEOUT_MASK)\r
+#define SDIF_TMOUT_RESPONSE_TIMEOUT_MASK (0xFFU)\r
+#define SDIF_TMOUT_RESPONSE_TIMEOUT_SHIFT (0U)\r
+/*! RESPONSE_TIMEOUT - Response time-out value.\r
+ */\r
+#define SDIF_TMOUT_RESPONSE_TIMEOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_TMOUT_RESPONSE_TIMEOUT_SHIFT)) & SDIF_TMOUT_RESPONSE_TIMEOUT_MASK)\r
+#define SDIF_TMOUT_DATA_TIMEOUT_MASK (0xFFFFFF00U)\r
+#define SDIF_TMOUT_DATA_TIMEOUT_SHIFT (8U)\r
+/*! DATA_TIMEOUT - Value for card Data Read time-out; same value also used for Data Starvation by Host time-out.\r
+ */\r
+#define SDIF_TMOUT_DATA_TIMEOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_TMOUT_DATA_TIMEOUT_SHIFT)) & SDIF_TMOUT_DATA_TIMEOUT_MASK)\r
/*! @} */\r
\r
/*! @name CTYPE - Card Type register */\r
/*! @{ */\r
-#define SDIF_CTYPE_CARD0_WIDTH0_MASK (0x1U)\r
-#define SDIF_CTYPE_CARD0_WIDTH0_SHIFT (0U)\r
-#define SDIF_CTYPE_CARD0_WIDTH0(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTYPE_CARD0_WIDTH0_SHIFT)) & SDIF_CTYPE_CARD0_WIDTH0_MASK)\r
-#define SDIF_CTYPE_CARD1_WIDTH0_MASK (0x2U)\r
-#define SDIF_CTYPE_CARD1_WIDTH0_SHIFT (1U)\r
-#define SDIF_CTYPE_CARD1_WIDTH0(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTYPE_CARD1_WIDTH0_SHIFT)) & SDIF_CTYPE_CARD1_WIDTH0_MASK)\r
-#define SDIF_CTYPE_CARD0_WIDTH1_MASK (0x10000U)\r
-#define SDIF_CTYPE_CARD0_WIDTH1_SHIFT (16U)\r
-#define SDIF_CTYPE_CARD0_WIDTH1(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTYPE_CARD0_WIDTH1_SHIFT)) & SDIF_CTYPE_CARD0_WIDTH1_MASK)\r
-#define SDIF_CTYPE_CARD1_WIDTH1_MASK (0x20000U)\r
-#define SDIF_CTYPE_CARD1_WIDTH1_SHIFT (17U)\r
-#define SDIF_CTYPE_CARD1_WIDTH1(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CTYPE_CARD1_WIDTH1_SHIFT)) & SDIF_CTYPE_CARD1_WIDTH1_MASK)\r
+#define SDIF_CTYPE_CARD0_WIDTH0_MASK (0x1U)\r
+#define SDIF_CTYPE_CARD0_WIDTH0_SHIFT (0U)\r
+/*! CARD0_WIDTH0 - Indicates if card 0 is 1-bit or 4-bit: 0 - 1-bit mode 1 - 4-bit mode 1 and 4-bit\r
+ * modes only work when 8-bit mode in CARD0_WIDTH1 is not enabled (bit 16 in this register is set\r
+ * to 0).\r
+ */\r
+#define SDIF_CTYPE_CARD0_WIDTH0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTYPE_CARD0_WIDTH0_SHIFT)) & SDIF_CTYPE_CARD0_WIDTH0_MASK)\r
+#define SDIF_CTYPE_CARD1_WIDTH0_MASK (0x2U)\r
+#define SDIF_CTYPE_CARD1_WIDTH0_SHIFT (1U)\r
+/*! CARD1_WIDTH0 - Indicates if card 1 is 1-bit or 4-bit: 0 - 1-bit mode 1 - 4-bit mode 1 and 4-bit\r
+ * modes only work when 8-bit mode in CARD1_WIDTH1 is not enabled (bit 16 in this register is set\r
+ * to 0).\r
+ */\r
+#define SDIF_CTYPE_CARD1_WIDTH0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTYPE_CARD1_WIDTH0_SHIFT)) & SDIF_CTYPE_CARD1_WIDTH0_MASK)\r
+#define SDIF_CTYPE_CARD0_WIDTH1_MASK (0x10000U)\r
+#define SDIF_CTYPE_CARD0_WIDTH1_SHIFT (16U)\r
+/*! CARD0_WIDTH1 - Indicates if card 0 is 8-bit: 0 - Non 8-bit mode 1 - 8-bit mode.\r
+ */\r
+#define SDIF_CTYPE_CARD0_WIDTH1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTYPE_CARD0_WIDTH1_SHIFT)) & SDIF_CTYPE_CARD0_WIDTH1_MASK)\r
+#define SDIF_CTYPE_CARD1_WIDTH1_MASK (0x20000U)\r
+#define SDIF_CTYPE_CARD1_WIDTH1_SHIFT (17U)\r
+/*! CARD1_WIDTH1 - Indicates if card 1 is 8-bit: 0 - Non 8-bit mode 1 - 8-bit mode.\r
+ */\r
+#define SDIF_CTYPE_CARD1_WIDTH1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CTYPE_CARD1_WIDTH1_SHIFT)) & SDIF_CTYPE_CARD1_WIDTH1_MASK)\r
/*! @} */\r
\r
/*! @name BLKSIZ - Block Size register */\r
/*! @{ */\r
-#define SDIF_BLKSIZ_BLOCK_SIZE_MASK (0xFFFFU)\r
-#define SDIF_BLKSIZ_BLOCK_SIZE_SHIFT (0U)\r
-#define SDIF_BLKSIZ_BLOCK_SIZE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BLKSIZ_BLOCK_SIZE_SHIFT)) & SDIF_BLKSIZ_BLOCK_SIZE_MASK)\r
+#define SDIF_BLKSIZ_BLOCK_SIZE_MASK (0xFFFFU)\r
+#define SDIF_BLKSIZ_BLOCK_SIZE_SHIFT (0U)\r
+/*! BLOCK_SIZE - Block size.\r
+ */\r
+#define SDIF_BLKSIZ_BLOCK_SIZE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_BLKSIZ_BLOCK_SIZE_SHIFT)) & SDIF_BLKSIZ_BLOCK_SIZE_MASK)\r
/*! @} */\r
\r
/*! @name BYTCNT - Byte Count register */\r
/*! @{ */\r
-#define SDIF_BYTCNT_BYTE_COUNT_MASK (0xFFFFFFFFU)\r
-#define SDIF_BYTCNT_BYTE_COUNT_SHIFT (0U)\r
-#define SDIF_BYTCNT_BYTE_COUNT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BYTCNT_BYTE_COUNT_SHIFT)) & SDIF_BYTCNT_BYTE_COUNT_MASK)\r
+#define SDIF_BYTCNT_BYTE_COUNT_MASK (0xFFFFFFFFU)\r
+#define SDIF_BYTCNT_BYTE_COUNT_SHIFT (0U)\r
+/*! BYTE_COUNT - Number of bytes to be transferred; should be integer multiple of Block Size for block transfers.\r
+ */\r
+#define SDIF_BYTCNT_BYTE_COUNT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_BYTCNT_BYTE_COUNT_SHIFT)) & SDIF_BYTCNT_BYTE_COUNT_MASK)\r
/*! @} */\r
\r
/*! @name INTMASK - Interrupt Mask register */\r
/*! @{ */\r
-#define SDIF_INTMASK_CDET_MASK (0x1U)\r
-#define SDIF_INTMASK_CDET_SHIFT (0U)\r
-#define SDIF_INTMASK_CDET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_CDET_SHIFT)) & SDIF_INTMASK_CDET_MASK)\r
-#define SDIF_INTMASK_RE_MASK (0x2U)\r
-#define SDIF_INTMASK_RE_SHIFT (1U)\r
-#define SDIF_INTMASK_RE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_RE_SHIFT)) & SDIF_INTMASK_RE_MASK)\r
-#define SDIF_INTMASK_CDONE_MASK (0x4U)\r
-#define SDIF_INTMASK_CDONE_SHIFT (2U)\r
-#define SDIF_INTMASK_CDONE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_CDONE_SHIFT)) & SDIF_INTMASK_CDONE_MASK)\r
-#define SDIF_INTMASK_DTO_MASK (0x8U)\r
-#define SDIF_INTMASK_DTO_SHIFT (3U)\r
-#define SDIF_INTMASK_DTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_DTO_SHIFT)) & SDIF_INTMASK_DTO_MASK)\r
-#define SDIF_INTMASK_TXDR_MASK (0x10U)\r
-#define SDIF_INTMASK_TXDR_SHIFT (4U)\r
-#define SDIF_INTMASK_TXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_TXDR_SHIFT)) & SDIF_INTMASK_TXDR_MASK)\r
-#define SDIF_INTMASK_RXDR_MASK (0x20U)\r
-#define SDIF_INTMASK_RXDR_SHIFT (5U)\r
-#define SDIF_INTMASK_RXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_RXDR_SHIFT)) & SDIF_INTMASK_RXDR_MASK)\r
-#define SDIF_INTMASK_RCRC_MASK (0x40U)\r
-#define SDIF_INTMASK_RCRC_SHIFT (6U)\r
-#define SDIF_INTMASK_RCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_RCRC_SHIFT)) & SDIF_INTMASK_RCRC_MASK)\r
-#define SDIF_INTMASK_DCRC_MASK (0x80U)\r
-#define SDIF_INTMASK_DCRC_SHIFT (7U)\r
-#define SDIF_INTMASK_DCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_DCRC_SHIFT)) & SDIF_INTMASK_DCRC_MASK)\r
-#define SDIF_INTMASK_RTO_MASK (0x100U)\r
-#define SDIF_INTMASK_RTO_SHIFT (8U)\r
-#define SDIF_INTMASK_RTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_RTO_SHIFT)) & SDIF_INTMASK_RTO_MASK)\r
-#define SDIF_INTMASK_DRTO_MASK (0x200U)\r
-#define SDIF_INTMASK_DRTO_SHIFT (9U)\r
-#define SDIF_INTMASK_DRTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_DRTO_SHIFT)) & SDIF_INTMASK_DRTO_MASK)\r
-#define SDIF_INTMASK_HTO_MASK (0x400U)\r
-#define SDIF_INTMASK_HTO_SHIFT (10U)\r
-#define SDIF_INTMASK_HTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_HTO_SHIFT)) & SDIF_INTMASK_HTO_MASK)\r
-#define SDIF_INTMASK_FRUN_MASK (0x800U)\r
-#define SDIF_INTMASK_FRUN_SHIFT (11U)\r
-#define SDIF_INTMASK_FRUN(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_FRUN_SHIFT)) & SDIF_INTMASK_FRUN_MASK)\r
-#define SDIF_INTMASK_HLE_MASK (0x1000U)\r
-#define SDIF_INTMASK_HLE_SHIFT (12U)\r
-#define SDIF_INTMASK_HLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_HLE_SHIFT)) & SDIF_INTMASK_HLE_MASK)\r
-#define SDIF_INTMASK_SBE_MASK (0x2000U)\r
-#define SDIF_INTMASK_SBE_SHIFT (13U)\r
-#define SDIF_INTMASK_SBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_SBE_SHIFT)) & SDIF_INTMASK_SBE_MASK)\r
-#define SDIF_INTMASK_ACD_MASK (0x4000U)\r
-#define SDIF_INTMASK_ACD_SHIFT (14U)\r
-#define SDIF_INTMASK_ACD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_ACD_SHIFT)) & SDIF_INTMASK_ACD_MASK)\r
-#define SDIF_INTMASK_EBE_MASK (0x8000U)\r
-#define SDIF_INTMASK_EBE_SHIFT (15U)\r
-#define SDIF_INTMASK_EBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_EBE_SHIFT)) & SDIF_INTMASK_EBE_MASK)\r
-#define SDIF_INTMASK_SDIO_INT_MASK_MASK (0x10000U)\r
-#define SDIF_INTMASK_SDIO_INT_MASK_SHIFT (16U)\r
-#define SDIF_INTMASK_SDIO_INT_MASK(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_SDIO_INT_MASK_SHIFT)) & SDIF_INTMASK_SDIO_INT_MASK_MASK)\r
+#define SDIF_INTMASK_CDET_MASK (0x1U)\r
+#define SDIF_INTMASK_CDET_SHIFT (0U)\r
+/*! CDET - Card detect.\r
+ */\r
+#define SDIF_INTMASK_CDET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_CDET_SHIFT)) & SDIF_INTMASK_CDET_MASK)\r
+#define SDIF_INTMASK_RE_MASK (0x2U)\r
+#define SDIF_INTMASK_RE_SHIFT (1U)\r
+/*! RE - Response error.\r
+ */\r
+#define SDIF_INTMASK_RE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_RE_SHIFT)) & SDIF_INTMASK_RE_MASK)\r
+#define SDIF_INTMASK_CDONE_MASK (0x4U)\r
+#define SDIF_INTMASK_CDONE_SHIFT (2U)\r
+/*! CDONE - Command done.\r
+ */\r
+#define SDIF_INTMASK_CDONE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_CDONE_SHIFT)) & SDIF_INTMASK_CDONE_MASK)\r
+#define SDIF_INTMASK_DTO_MASK (0x8U)\r
+#define SDIF_INTMASK_DTO_SHIFT (3U)\r
+/*! DTO - Data transfer over.\r
+ */\r
+#define SDIF_INTMASK_DTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_DTO_SHIFT)) & SDIF_INTMASK_DTO_MASK)\r
+#define SDIF_INTMASK_TXDR_MASK (0x10U)\r
+#define SDIF_INTMASK_TXDR_SHIFT (4U)\r
+/*! TXDR - Transmit FIFO data request.\r
+ */\r
+#define SDIF_INTMASK_TXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_TXDR_SHIFT)) & SDIF_INTMASK_TXDR_MASK)\r
+#define SDIF_INTMASK_RXDR_MASK (0x20U)\r
+#define SDIF_INTMASK_RXDR_SHIFT (5U)\r
+/*! RXDR - Receive FIFO data request.\r
+ */\r
+#define SDIF_INTMASK_RXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_RXDR_SHIFT)) & SDIF_INTMASK_RXDR_MASK)\r
+#define SDIF_INTMASK_RCRC_MASK (0x40U)\r
+#define SDIF_INTMASK_RCRC_SHIFT (6U)\r
+/*! RCRC - Response CRC error.\r
+ */\r
+#define SDIF_INTMASK_RCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_RCRC_SHIFT)) & SDIF_INTMASK_RCRC_MASK)\r
+#define SDIF_INTMASK_DCRC_MASK (0x80U)\r
+#define SDIF_INTMASK_DCRC_SHIFT (7U)\r
+/*! DCRC - Data CRC error.\r
+ */\r
+#define SDIF_INTMASK_DCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_DCRC_SHIFT)) & SDIF_INTMASK_DCRC_MASK)\r
+#define SDIF_INTMASK_RTO_MASK (0x100U)\r
+#define SDIF_INTMASK_RTO_SHIFT (8U)\r
+/*! RTO - Response time-out.\r
+ */\r
+#define SDIF_INTMASK_RTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_RTO_SHIFT)) & SDIF_INTMASK_RTO_MASK)\r
+#define SDIF_INTMASK_DRTO_MASK (0x200U)\r
+#define SDIF_INTMASK_DRTO_SHIFT (9U)\r
+/*! DRTO - Data read time-out.\r
+ */\r
+#define SDIF_INTMASK_DRTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_DRTO_SHIFT)) & SDIF_INTMASK_DRTO_MASK)\r
+#define SDIF_INTMASK_HTO_MASK (0x400U)\r
+#define SDIF_INTMASK_HTO_SHIFT (10U)\r
+/*! HTO - Data starvation-by-host time-out (HTO).\r
+ */\r
+#define SDIF_INTMASK_HTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_HTO_SHIFT)) & SDIF_INTMASK_HTO_MASK)\r
+#define SDIF_INTMASK_FRUN_MASK (0x800U)\r
+#define SDIF_INTMASK_FRUN_SHIFT (11U)\r
+/*! FRUN - FIFO underrun/overrun error.\r
+ */\r
+#define SDIF_INTMASK_FRUN(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_FRUN_SHIFT)) & SDIF_INTMASK_FRUN_MASK)\r
+#define SDIF_INTMASK_HLE_MASK (0x1000U)\r
+#define SDIF_INTMASK_HLE_SHIFT (12U)\r
+/*! HLE - Hardware locked write error.\r
+ */\r
+#define SDIF_INTMASK_HLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_HLE_SHIFT)) & SDIF_INTMASK_HLE_MASK)\r
+#define SDIF_INTMASK_SBE_MASK (0x2000U)\r
+#define SDIF_INTMASK_SBE_SHIFT (13U)\r
+/*! SBE - Start-bit error.\r
+ */\r
+#define SDIF_INTMASK_SBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_SBE_SHIFT)) & SDIF_INTMASK_SBE_MASK)\r
+#define SDIF_INTMASK_ACD_MASK (0x4000U)\r
+#define SDIF_INTMASK_ACD_SHIFT (14U)\r
+/*! ACD - Auto command done.\r
+ */\r
+#define SDIF_INTMASK_ACD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_ACD_SHIFT)) & SDIF_INTMASK_ACD_MASK)\r
+#define SDIF_INTMASK_EBE_MASK (0x8000U)\r
+#define SDIF_INTMASK_EBE_SHIFT (15U)\r
+/*! EBE - End-bit error (read)/Write no CRC.\r
+ */\r
+#define SDIF_INTMASK_EBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_EBE_SHIFT)) & SDIF_INTMASK_EBE_MASK)\r
+#define SDIF_INTMASK_SDIO_INT_MASK_MASK (0x10000U)\r
+#define SDIF_INTMASK_SDIO_INT_MASK_SHIFT (16U)\r
+/*! SDIO_INT_MASK - Mask SDIO interrupt.\r
+ */\r
+#define SDIF_INTMASK_SDIO_INT_MASK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_INTMASK_SDIO_INT_MASK_SHIFT)) & SDIF_INTMASK_SDIO_INT_MASK_MASK)\r
/*! @} */\r
\r
/*! @name CMDARG - Command Argument register */\r
/*! @{ */\r
-#define SDIF_CMDARG_CMD_ARG_MASK (0xFFFFFFFFU)\r
-#define SDIF_CMDARG_CMD_ARG_SHIFT (0U)\r
-#define SDIF_CMDARG_CMD_ARG(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMDARG_CMD_ARG_SHIFT)) & SDIF_CMDARG_CMD_ARG_MASK)\r
+#define SDIF_CMDARG_CMD_ARG_MASK (0xFFFFFFFFU)\r
+#define SDIF_CMDARG_CMD_ARG_SHIFT (0U)\r
+/*! CMD_ARG - Value indicates command argument to be passed to card.\r
+ */\r
+#define SDIF_CMDARG_CMD_ARG(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMDARG_CMD_ARG_SHIFT)) & SDIF_CMDARG_CMD_ARG_MASK)\r
/*! @} */\r
\r
/*! @name CMD - Command register */\r
/*! @{ */\r
-#define SDIF_CMD_CMD_INDEX_MASK (0x3FU)\r
-#define SDIF_CMD_CMD_INDEX_SHIFT (0U)\r
-#define SDIF_CMD_CMD_INDEX(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_CMD_INDEX_SHIFT)) & SDIF_CMD_CMD_INDEX_MASK)\r
-#define SDIF_CMD_RESPONSE_EXPECT_MASK (0x40U)\r
-#define SDIF_CMD_RESPONSE_EXPECT_SHIFT (6U)\r
-#define SDIF_CMD_RESPONSE_EXPECT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_RESPONSE_EXPECT_SHIFT)) & SDIF_CMD_RESPONSE_EXPECT_MASK)\r
-#define SDIF_CMD_RESPONSE_LENGTH_MASK (0x80U)\r
-#define SDIF_CMD_RESPONSE_LENGTH_SHIFT (7U)\r
-#define SDIF_CMD_RESPONSE_LENGTH(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_RESPONSE_LENGTH_SHIFT)) & SDIF_CMD_RESPONSE_LENGTH_MASK)\r
-#define SDIF_CMD_CHECK_RESPONSE_CRC_MASK (0x100U)\r
-#define SDIF_CMD_CHECK_RESPONSE_CRC_SHIFT (8U)\r
-#define SDIF_CMD_CHECK_RESPONSE_CRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_CHECK_RESPONSE_CRC_SHIFT)) & SDIF_CMD_CHECK_RESPONSE_CRC_MASK)\r
-#define SDIF_CMD_DATA_EXPECTED_MASK (0x200U)\r
-#define SDIF_CMD_DATA_EXPECTED_SHIFT (9U)\r
-#define SDIF_CMD_DATA_EXPECTED(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_DATA_EXPECTED_SHIFT)) & SDIF_CMD_DATA_EXPECTED_MASK)\r
-#define SDIF_CMD_READ_WRITE_MASK (0x400U)\r
-#define SDIF_CMD_READ_WRITE_SHIFT (10U)\r
-#define SDIF_CMD_READ_WRITE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_READ_WRITE_SHIFT)) & SDIF_CMD_READ_WRITE_MASK)\r
-#define SDIF_CMD_TRANSFER_MODE_MASK (0x800U)\r
-#define SDIF_CMD_TRANSFER_MODE_SHIFT (11U)\r
-#define SDIF_CMD_TRANSFER_MODE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_TRANSFER_MODE_SHIFT)) & SDIF_CMD_TRANSFER_MODE_MASK)\r
-#define SDIF_CMD_SEND_AUTO_STOP_MASK (0x1000U)\r
-#define SDIF_CMD_SEND_AUTO_STOP_SHIFT (12U)\r
-#define SDIF_CMD_SEND_AUTO_STOP(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_SEND_AUTO_STOP_SHIFT)) & SDIF_CMD_SEND_AUTO_STOP_MASK)\r
-#define SDIF_CMD_WAIT_PRVDATA_COMPLETE_MASK (0x2000U)\r
-#define SDIF_CMD_WAIT_PRVDATA_COMPLETE_SHIFT (13U)\r
-#define SDIF_CMD_WAIT_PRVDATA_COMPLETE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_WAIT_PRVDATA_COMPLETE_SHIFT)) & SDIF_CMD_WAIT_PRVDATA_COMPLETE_MASK)\r
-#define SDIF_CMD_STOP_ABORT_CMD_MASK (0x4000U)\r
-#define SDIF_CMD_STOP_ABORT_CMD_SHIFT (14U)\r
-#define SDIF_CMD_STOP_ABORT_CMD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_STOP_ABORT_CMD_SHIFT)) & SDIF_CMD_STOP_ABORT_CMD_MASK)\r
-#define SDIF_CMD_SEND_INITIALIZATION_MASK (0x8000U)\r
-#define SDIF_CMD_SEND_INITIALIZATION_SHIFT (15U)\r
-#define SDIF_CMD_SEND_INITIALIZATION(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_SEND_INITIALIZATION_SHIFT)) & SDIF_CMD_SEND_INITIALIZATION_MASK)\r
-#define SDIF_CMD_CARD_NUMBER_MASK (0x1F0000U)\r
-#define SDIF_CMD_CARD_NUMBER_SHIFT (16U)\r
+#define SDIF_CMD_CMD_INDEX_MASK (0x3FU)\r
+#define SDIF_CMD_CMD_INDEX_SHIFT (0U)\r
+/*! CMD_INDEX - Command index.\r
+ */\r
+#define SDIF_CMD_CMD_INDEX(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_CMD_INDEX_SHIFT)) & SDIF_CMD_CMD_INDEX_MASK)\r
+#define SDIF_CMD_RESPONSE_EXPECT_MASK (0x40U)\r
+#define SDIF_CMD_RESPONSE_EXPECT_SHIFT (6U)\r
+/*! RESPONSE_EXPECT - Response expect.\r
+ */\r
+#define SDIF_CMD_RESPONSE_EXPECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_RESPONSE_EXPECT_SHIFT)) & SDIF_CMD_RESPONSE_EXPECT_MASK)\r
+#define SDIF_CMD_RESPONSE_LENGTH_MASK (0x80U)\r
+#define SDIF_CMD_RESPONSE_LENGTH_SHIFT (7U)\r
+/*! RESPONSE_LENGTH - Response length.\r
+ */\r
+#define SDIF_CMD_RESPONSE_LENGTH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_RESPONSE_LENGTH_SHIFT)) & SDIF_CMD_RESPONSE_LENGTH_MASK)\r
+#define SDIF_CMD_CHECK_RESPONSE_CRC_MASK (0x100U)\r
+#define SDIF_CMD_CHECK_RESPONSE_CRC_SHIFT (8U)\r
+/*! CHECK_RESPONSE_CRC - Check response CRC.\r
+ */\r
+#define SDIF_CMD_CHECK_RESPONSE_CRC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_CHECK_RESPONSE_CRC_SHIFT)) & SDIF_CMD_CHECK_RESPONSE_CRC_MASK)\r
+#define SDIF_CMD_DATA_EXPECTED_MASK (0x200U)\r
+#define SDIF_CMD_DATA_EXPECTED_SHIFT (9U)\r
+/*! DATA_EXPECTED - Data expected.\r
+ */\r
+#define SDIF_CMD_DATA_EXPECTED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_DATA_EXPECTED_SHIFT)) & SDIF_CMD_DATA_EXPECTED_MASK)\r
+#define SDIF_CMD_READ_WRITE_MASK (0x400U)\r
+#define SDIF_CMD_READ_WRITE_SHIFT (10U)\r
+/*! READ_WRITE - read/write.\r
+ */\r
+#define SDIF_CMD_READ_WRITE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_READ_WRITE_SHIFT)) & SDIF_CMD_READ_WRITE_MASK)\r
+#define SDIF_CMD_TRANSFER_MODE_MASK (0x800U)\r
+#define SDIF_CMD_TRANSFER_MODE_SHIFT (11U)\r
+/*! TRANSFER_MODE - Transfer mode.\r
+ */\r
+#define SDIF_CMD_TRANSFER_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_TRANSFER_MODE_SHIFT)) & SDIF_CMD_TRANSFER_MODE_MASK)\r
+#define SDIF_CMD_SEND_AUTO_STOP_MASK (0x1000U)\r
+#define SDIF_CMD_SEND_AUTO_STOP_SHIFT (12U)\r
+/*! SEND_AUTO_STOP - Send auto stop.\r
+ */\r
+#define SDIF_CMD_SEND_AUTO_STOP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_SEND_AUTO_STOP_SHIFT)) & SDIF_CMD_SEND_AUTO_STOP_MASK)\r
+#define SDIF_CMD_WAIT_PRVDATA_COMPLETE_MASK (0x2000U)\r
+#define SDIF_CMD_WAIT_PRVDATA_COMPLETE_SHIFT (13U)\r
+/*! WAIT_PRVDATA_COMPLETE - Wait prvdata complete.\r
+ */\r
+#define SDIF_CMD_WAIT_PRVDATA_COMPLETE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_WAIT_PRVDATA_COMPLETE_SHIFT)) & SDIF_CMD_WAIT_PRVDATA_COMPLETE_MASK)\r
+#define SDIF_CMD_STOP_ABORT_CMD_MASK (0x4000U)\r
+#define SDIF_CMD_STOP_ABORT_CMD_SHIFT (14U)\r
+/*! STOP_ABORT_CMD - Stop abort command.\r
+ */\r
+#define SDIF_CMD_STOP_ABORT_CMD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_STOP_ABORT_CMD_SHIFT)) & SDIF_CMD_STOP_ABORT_CMD_MASK)\r
+#define SDIF_CMD_SEND_INITIALIZATION_MASK (0x8000U)\r
+#define SDIF_CMD_SEND_INITIALIZATION_SHIFT (15U)\r
+/*! SEND_INITIALIZATION - Send initialization.\r
+ */\r
+#define SDIF_CMD_SEND_INITIALIZATION(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_SEND_INITIALIZATION_SHIFT)) & SDIF_CMD_SEND_INITIALIZATION_MASK)\r
+#define SDIF_CMD_CARD_NUMBER_MASK (0x1F0000U)\r
+#define SDIF_CMD_CARD_NUMBER_SHIFT (16U)\r
/*! CARD_NUMBER - Specifies the card number of SDCARD for which the current Command is being executed\r
* 0b00000..Command will be execute on SDCARD 0\r
* 0b00001..Command will be execute on SDCARD 1\r
*/\r
-#define SDIF_CMD_CARD_NUMBER(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_CARD_NUMBER_SHIFT)) & SDIF_CMD_CARD_NUMBER_MASK)\r
+#define SDIF_CMD_CARD_NUMBER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_CARD_NUMBER_SHIFT)) & SDIF_CMD_CARD_NUMBER_MASK)\r
#define SDIF_CMD_UPDATE_CLOCK_REGISTERS_ONLY_MASK (0x200000U)\r
#define SDIF_CMD_UPDATE_CLOCK_REGISTERS_ONLY_SHIFT (21U)\r
-#define SDIF_CMD_UPDATE_CLOCK_REGISTERS_ONLY(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_UPDATE_CLOCK_REGISTERS_ONLY_SHIFT)) & SDIF_CMD_UPDATE_CLOCK_REGISTERS_ONLY_MASK)\r
-#define SDIF_CMD_READ_CEATA_DEVICE_MASK (0x400000U)\r
-#define SDIF_CMD_READ_CEATA_DEVICE_SHIFT (22U)\r
-#define SDIF_CMD_READ_CEATA_DEVICE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_READ_CEATA_DEVICE_SHIFT)) & SDIF_CMD_READ_CEATA_DEVICE_MASK)\r
-#define SDIF_CMD_CCS_EXPECTED_MASK (0x800000U)\r
-#define SDIF_CMD_CCS_EXPECTED_SHIFT (23U)\r
-#define SDIF_CMD_CCS_EXPECTED(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_CCS_EXPECTED_SHIFT)) & SDIF_CMD_CCS_EXPECTED_MASK)\r
-#define SDIF_CMD_ENABLE_BOOT_MASK (0x1000000U)\r
-#define SDIF_CMD_ENABLE_BOOT_SHIFT (24U)\r
-#define SDIF_CMD_ENABLE_BOOT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_ENABLE_BOOT_SHIFT)) & SDIF_CMD_ENABLE_BOOT_MASK)\r
-#define SDIF_CMD_EXPECT_BOOT_ACK_MASK (0x2000000U)\r
-#define SDIF_CMD_EXPECT_BOOT_ACK_SHIFT (25U)\r
-#define SDIF_CMD_EXPECT_BOOT_ACK(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_EXPECT_BOOT_ACK_SHIFT)) & SDIF_CMD_EXPECT_BOOT_ACK_MASK)\r
-#define SDIF_CMD_DISABLE_BOOT_MASK (0x4000000U)\r
-#define SDIF_CMD_DISABLE_BOOT_SHIFT (26U)\r
-#define SDIF_CMD_DISABLE_BOOT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_DISABLE_BOOT_SHIFT)) & SDIF_CMD_DISABLE_BOOT_MASK)\r
-#define SDIF_CMD_BOOT_MODE_MASK (0x8000000U)\r
-#define SDIF_CMD_BOOT_MODE_SHIFT (27U)\r
-#define SDIF_CMD_BOOT_MODE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_BOOT_MODE_SHIFT)) & SDIF_CMD_BOOT_MODE_MASK)\r
-#define SDIF_CMD_VOLT_SWITCH_MASK (0x10000000U)\r
-#define SDIF_CMD_VOLT_SWITCH_SHIFT (28U)\r
-#define SDIF_CMD_VOLT_SWITCH(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_VOLT_SWITCH_SHIFT)) & SDIF_CMD_VOLT_SWITCH_MASK)\r
-#define SDIF_CMD_USE_HOLD_REG_MASK (0x20000000U)\r
-#define SDIF_CMD_USE_HOLD_REG_SHIFT (29U)\r
-#define SDIF_CMD_USE_HOLD_REG(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_USE_HOLD_REG_SHIFT)) & SDIF_CMD_USE_HOLD_REG_MASK)\r
-#define SDIF_CMD_START_CMD_MASK (0x80000000U)\r
-#define SDIF_CMD_START_CMD_SHIFT (31U)\r
-#define SDIF_CMD_START_CMD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_START_CMD_SHIFT)) & SDIF_CMD_START_CMD_MASK)\r
+/*! UPDATE_CLOCK_REGISTERS_ONLY - Update clock registers only.\r
+ */\r
+#define SDIF_CMD_UPDATE_CLOCK_REGISTERS_ONLY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_UPDATE_CLOCK_REGISTERS_ONLY_SHIFT)) & \\r
+ SDIF_CMD_UPDATE_CLOCK_REGISTERS_ONLY_MASK)\r
+#define SDIF_CMD_READ_CEATA_DEVICE_MASK (0x400000U)\r
+#define SDIF_CMD_READ_CEATA_DEVICE_SHIFT (22U)\r
+/*! READ_CEATA_DEVICE - Read ceata device.\r
+ */\r
+#define SDIF_CMD_READ_CEATA_DEVICE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_READ_CEATA_DEVICE_SHIFT)) & SDIF_CMD_READ_CEATA_DEVICE_MASK)\r
+#define SDIF_CMD_CCS_EXPECTED_MASK (0x800000U)\r
+#define SDIF_CMD_CCS_EXPECTED_SHIFT (23U)\r
+/*! CCS_EXPECTED - CCS expected.\r
+ */\r
+#define SDIF_CMD_CCS_EXPECTED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_CCS_EXPECTED_SHIFT)) & SDIF_CMD_CCS_EXPECTED_MASK)\r
+#define SDIF_CMD_ENABLE_BOOT_MASK (0x1000000U)\r
+#define SDIF_CMD_ENABLE_BOOT_SHIFT (24U)\r
+/*! ENABLE_BOOT - Enable Boot - this bit should be set only for mandatory boot mode.\r
+ */\r
+#define SDIF_CMD_ENABLE_BOOT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_ENABLE_BOOT_SHIFT)) & SDIF_CMD_ENABLE_BOOT_MASK)\r
+#define SDIF_CMD_EXPECT_BOOT_ACK_MASK (0x2000000U)\r
+#define SDIF_CMD_EXPECT_BOOT_ACK_SHIFT (25U)\r
+/*! EXPECT_BOOT_ACK - Expect Boot Acknowledge.\r
+ */\r
+#define SDIF_CMD_EXPECT_BOOT_ACK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_EXPECT_BOOT_ACK_SHIFT)) & SDIF_CMD_EXPECT_BOOT_ACK_MASK)\r
+#define SDIF_CMD_DISABLE_BOOT_MASK (0x4000000U)\r
+#define SDIF_CMD_DISABLE_BOOT_SHIFT (26U)\r
+/*! DISABLE_BOOT - Disable Boot.\r
+ */\r
+#define SDIF_CMD_DISABLE_BOOT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_DISABLE_BOOT_SHIFT)) & SDIF_CMD_DISABLE_BOOT_MASK)\r
+#define SDIF_CMD_BOOT_MODE_MASK (0x8000000U)\r
+#define SDIF_CMD_BOOT_MODE_SHIFT (27U)\r
+/*! BOOT_MODE - Boot Mode.\r
+ */\r
+#define SDIF_CMD_BOOT_MODE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_BOOT_MODE_SHIFT)) & SDIF_CMD_BOOT_MODE_MASK)\r
+#define SDIF_CMD_VOLT_SWITCH_MASK (0x10000000U)\r
+#define SDIF_CMD_VOLT_SWITCH_SHIFT (28U)\r
+/*! VOLT_SWITCH - Voltage switch bit.\r
+ */\r
+#define SDIF_CMD_VOLT_SWITCH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_VOLT_SWITCH_SHIFT)) & SDIF_CMD_VOLT_SWITCH_MASK)\r
+#define SDIF_CMD_USE_HOLD_REG_MASK (0x20000000U)\r
+#define SDIF_CMD_USE_HOLD_REG_SHIFT (29U)\r
+/*! USE_HOLD_REG - Use Hold Register.\r
+ */\r
+#define SDIF_CMD_USE_HOLD_REG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_USE_HOLD_REG_SHIFT)) & SDIF_CMD_USE_HOLD_REG_MASK)\r
+#define SDIF_CMD_START_CMD_MASK (0x80000000U)\r
+#define SDIF_CMD_START_CMD_SHIFT (31U)\r
+/*! START_CMD - Start command.\r
+ */\r
+#define SDIF_CMD_START_CMD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CMD_START_CMD_SHIFT)) & SDIF_CMD_START_CMD_MASK)\r
/*! @} */\r
\r
/*! @name RESP - Response register */\r
/*! @{ */\r
-#define SDIF_RESP_RESPONSE_MASK (0xFFFFFFFFU)\r
-#define SDIF_RESP_RESPONSE_SHIFT (0U)\r
-#define SDIF_RESP_RESPONSE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RESP_RESPONSE_SHIFT)) & SDIF_RESP_RESPONSE_MASK)\r
+#define SDIF_RESP_RESPONSE_MASK (0xFFFFFFFFU)\r
+#define SDIF_RESP_RESPONSE_SHIFT (0U)\r
+/*! RESPONSE - Bits of response.\r
+ */\r
+#define SDIF_RESP_RESPONSE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RESP_RESPONSE_SHIFT)) & SDIF_RESP_RESPONSE_MASK)\r
/*! @} */\r
\r
/* The count of SDIF_RESP */\r
-#define SDIF_RESP_COUNT (4U)\r
+#define SDIF_RESP_COUNT (4U)\r
\r
/*! @name MINTSTS - Masked Interrupt Status register */\r
/*! @{ */\r
-#define SDIF_MINTSTS_CDET_MASK (0x1U)\r
-#define SDIF_MINTSTS_CDET_SHIFT (0U)\r
-#define SDIF_MINTSTS_CDET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_CDET_SHIFT)) & SDIF_MINTSTS_CDET_MASK)\r
-#define SDIF_MINTSTS_RE_MASK (0x2U)\r
-#define SDIF_MINTSTS_RE_SHIFT (1U)\r
-#define SDIF_MINTSTS_RE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_RE_SHIFT)) & SDIF_MINTSTS_RE_MASK)\r
-#define SDIF_MINTSTS_CDONE_MASK (0x4U)\r
-#define SDIF_MINTSTS_CDONE_SHIFT (2U)\r
-#define SDIF_MINTSTS_CDONE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_CDONE_SHIFT)) & SDIF_MINTSTS_CDONE_MASK)\r
-#define SDIF_MINTSTS_DTO_MASK (0x8U)\r
-#define SDIF_MINTSTS_DTO_SHIFT (3U)\r
-#define SDIF_MINTSTS_DTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_DTO_SHIFT)) & SDIF_MINTSTS_DTO_MASK)\r
-#define SDIF_MINTSTS_TXDR_MASK (0x10U)\r
-#define SDIF_MINTSTS_TXDR_SHIFT (4U)\r
-#define SDIF_MINTSTS_TXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_TXDR_SHIFT)) & SDIF_MINTSTS_TXDR_MASK)\r
-#define SDIF_MINTSTS_RXDR_MASK (0x20U)\r
-#define SDIF_MINTSTS_RXDR_SHIFT (5U)\r
-#define SDIF_MINTSTS_RXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_RXDR_SHIFT)) & SDIF_MINTSTS_RXDR_MASK)\r
-#define SDIF_MINTSTS_RCRC_MASK (0x40U)\r
-#define SDIF_MINTSTS_RCRC_SHIFT (6U)\r
-#define SDIF_MINTSTS_RCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_RCRC_SHIFT)) & SDIF_MINTSTS_RCRC_MASK)\r
-#define SDIF_MINTSTS_DCRC_MASK (0x80U)\r
-#define SDIF_MINTSTS_DCRC_SHIFT (7U)\r
-#define SDIF_MINTSTS_DCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_DCRC_SHIFT)) & SDIF_MINTSTS_DCRC_MASK)\r
-#define SDIF_MINTSTS_RTO_MASK (0x100U)\r
-#define SDIF_MINTSTS_RTO_SHIFT (8U)\r
-#define SDIF_MINTSTS_RTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_RTO_SHIFT)) & SDIF_MINTSTS_RTO_MASK)\r
-#define SDIF_MINTSTS_DRTO_MASK (0x200U)\r
-#define SDIF_MINTSTS_DRTO_SHIFT (9U)\r
-#define SDIF_MINTSTS_DRTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_DRTO_SHIFT)) & SDIF_MINTSTS_DRTO_MASK)\r
-#define SDIF_MINTSTS_HTO_MASK (0x400U)\r
-#define SDIF_MINTSTS_HTO_SHIFT (10U)\r
-#define SDIF_MINTSTS_HTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_HTO_SHIFT)) & SDIF_MINTSTS_HTO_MASK)\r
-#define SDIF_MINTSTS_FRUN_MASK (0x800U)\r
-#define SDIF_MINTSTS_FRUN_SHIFT (11U)\r
-#define SDIF_MINTSTS_FRUN(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_FRUN_SHIFT)) & SDIF_MINTSTS_FRUN_MASK)\r
-#define SDIF_MINTSTS_HLE_MASK (0x1000U)\r
-#define SDIF_MINTSTS_HLE_SHIFT (12U)\r
-#define SDIF_MINTSTS_HLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_HLE_SHIFT)) & SDIF_MINTSTS_HLE_MASK)\r
-#define SDIF_MINTSTS_SBE_MASK (0x2000U)\r
-#define SDIF_MINTSTS_SBE_SHIFT (13U)\r
-#define SDIF_MINTSTS_SBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_SBE_SHIFT)) & SDIF_MINTSTS_SBE_MASK)\r
-#define SDIF_MINTSTS_ACD_MASK (0x4000U)\r
-#define SDIF_MINTSTS_ACD_SHIFT (14U)\r
-#define SDIF_MINTSTS_ACD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_ACD_SHIFT)) & SDIF_MINTSTS_ACD_MASK)\r
-#define SDIF_MINTSTS_EBE_MASK (0x8000U)\r
-#define SDIF_MINTSTS_EBE_SHIFT (15U)\r
-#define SDIF_MINTSTS_EBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_EBE_SHIFT)) & SDIF_MINTSTS_EBE_MASK)\r
-#define SDIF_MINTSTS_SDIO_INTERRUPT_MASK (0x10000U)\r
-#define SDIF_MINTSTS_SDIO_INTERRUPT_SHIFT (16U)\r
-#define SDIF_MINTSTS_SDIO_INTERRUPT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_SDIO_INTERRUPT_SHIFT)) & SDIF_MINTSTS_SDIO_INTERRUPT_MASK)\r
+#define SDIF_MINTSTS_CDET_MASK (0x1U)\r
+#define SDIF_MINTSTS_CDET_SHIFT (0U)\r
+/*! CDET - Card detect.\r
+ */\r
+#define SDIF_MINTSTS_CDET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_CDET_SHIFT)) & SDIF_MINTSTS_CDET_MASK)\r
+#define SDIF_MINTSTS_RE_MASK (0x2U)\r
+#define SDIF_MINTSTS_RE_SHIFT (1U)\r
+/*! RE - Response error.\r
+ */\r
+#define SDIF_MINTSTS_RE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_RE_SHIFT)) & SDIF_MINTSTS_RE_MASK)\r
+#define SDIF_MINTSTS_CDONE_MASK (0x4U)\r
+#define SDIF_MINTSTS_CDONE_SHIFT (2U)\r
+/*! CDONE - Command done.\r
+ */\r
+#define SDIF_MINTSTS_CDONE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_CDONE_SHIFT)) & SDIF_MINTSTS_CDONE_MASK)\r
+#define SDIF_MINTSTS_DTO_MASK (0x8U)\r
+#define SDIF_MINTSTS_DTO_SHIFT (3U)\r
+/*! DTO - Data transfer over.\r
+ */\r
+#define SDIF_MINTSTS_DTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_DTO_SHIFT)) & SDIF_MINTSTS_DTO_MASK)\r
+#define SDIF_MINTSTS_TXDR_MASK (0x10U)\r
+#define SDIF_MINTSTS_TXDR_SHIFT (4U)\r
+/*! TXDR - Transmit FIFO data request.\r
+ */\r
+#define SDIF_MINTSTS_TXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_TXDR_SHIFT)) & SDIF_MINTSTS_TXDR_MASK)\r
+#define SDIF_MINTSTS_RXDR_MASK (0x20U)\r
+#define SDIF_MINTSTS_RXDR_SHIFT (5U)\r
+/*! RXDR - Receive FIFO data request.\r
+ */\r
+#define SDIF_MINTSTS_RXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_RXDR_SHIFT)) & SDIF_MINTSTS_RXDR_MASK)\r
+#define SDIF_MINTSTS_RCRC_MASK (0x40U)\r
+#define SDIF_MINTSTS_RCRC_SHIFT (6U)\r
+/*! RCRC - Response CRC error.\r
+ */\r
+#define SDIF_MINTSTS_RCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_RCRC_SHIFT)) & SDIF_MINTSTS_RCRC_MASK)\r
+#define SDIF_MINTSTS_DCRC_MASK (0x80U)\r
+#define SDIF_MINTSTS_DCRC_SHIFT (7U)\r
+/*! DCRC - Data CRC error.\r
+ */\r
+#define SDIF_MINTSTS_DCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_DCRC_SHIFT)) & SDIF_MINTSTS_DCRC_MASK)\r
+#define SDIF_MINTSTS_RTO_MASK (0x100U)\r
+#define SDIF_MINTSTS_RTO_SHIFT (8U)\r
+/*! RTO - Response time-out.\r
+ */\r
+#define SDIF_MINTSTS_RTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_RTO_SHIFT)) & SDIF_MINTSTS_RTO_MASK)\r
+#define SDIF_MINTSTS_DRTO_MASK (0x200U)\r
+#define SDIF_MINTSTS_DRTO_SHIFT (9U)\r
+/*! DRTO - Data read time-out.\r
+ */\r
+#define SDIF_MINTSTS_DRTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_DRTO_SHIFT)) & SDIF_MINTSTS_DRTO_MASK)\r
+#define SDIF_MINTSTS_HTO_MASK (0x400U)\r
+#define SDIF_MINTSTS_HTO_SHIFT (10U)\r
+/*! HTO - Data starvation-by-host time-out (HTO).\r
+ */\r
+#define SDIF_MINTSTS_HTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_HTO_SHIFT)) & SDIF_MINTSTS_HTO_MASK)\r
+#define SDIF_MINTSTS_FRUN_MASK (0x800U)\r
+#define SDIF_MINTSTS_FRUN_SHIFT (11U)\r
+/*! FRUN - FIFO underrun/overrun error.\r
+ */\r
+#define SDIF_MINTSTS_FRUN(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_FRUN_SHIFT)) & SDIF_MINTSTS_FRUN_MASK)\r
+#define SDIF_MINTSTS_HLE_MASK (0x1000U)\r
+#define SDIF_MINTSTS_HLE_SHIFT (12U)\r
+/*! HLE - Hardware locked write error.\r
+ */\r
+#define SDIF_MINTSTS_HLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_HLE_SHIFT)) & SDIF_MINTSTS_HLE_MASK)\r
+#define SDIF_MINTSTS_SBE_MASK (0x2000U)\r
+#define SDIF_MINTSTS_SBE_SHIFT (13U)\r
+/*! SBE - Start-bit error.\r
+ */\r
+#define SDIF_MINTSTS_SBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_SBE_SHIFT)) & SDIF_MINTSTS_SBE_MASK)\r
+#define SDIF_MINTSTS_ACD_MASK (0x4000U)\r
+#define SDIF_MINTSTS_ACD_SHIFT (14U)\r
+/*! ACD - Auto command done.\r
+ */\r
+#define SDIF_MINTSTS_ACD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_ACD_SHIFT)) & SDIF_MINTSTS_ACD_MASK)\r
+#define SDIF_MINTSTS_EBE_MASK (0x8000U)\r
+#define SDIF_MINTSTS_EBE_SHIFT (15U)\r
+/*! EBE - End-bit error (read)/write no CRC.\r
+ */\r
+#define SDIF_MINTSTS_EBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_EBE_SHIFT)) & SDIF_MINTSTS_EBE_MASK)\r
+#define SDIF_MINTSTS_SDIO_INTERRUPT_MASK (0x10000U)\r
+#define SDIF_MINTSTS_SDIO_INTERRUPT_SHIFT (16U)\r
+/*! SDIO_INTERRUPT - Interrupt from SDIO card.\r
+ */\r
+#define SDIF_MINTSTS_SDIO_INTERRUPT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_MINTSTS_SDIO_INTERRUPT_SHIFT)) & SDIF_MINTSTS_SDIO_INTERRUPT_MASK)\r
/*! @} */\r
\r
/*! @name RINTSTS - Raw Interrupt Status register */\r
/*! @{ */\r
-#define SDIF_RINTSTS_CDET_MASK (0x1U)\r
-#define SDIF_RINTSTS_CDET_SHIFT (0U)\r
-#define SDIF_RINTSTS_CDET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_CDET_SHIFT)) & SDIF_RINTSTS_CDET_MASK)\r
-#define SDIF_RINTSTS_RE_MASK (0x2U)\r
-#define SDIF_RINTSTS_RE_SHIFT (1U)\r
-#define SDIF_RINTSTS_RE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_RE_SHIFT)) & SDIF_RINTSTS_RE_MASK)\r
-#define SDIF_RINTSTS_CDONE_MASK (0x4U)\r
-#define SDIF_RINTSTS_CDONE_SHIFT (2U)\r
-#define SDIF_RINTSTS_CDONE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_CDONE_SHIFT)) & SDIF_RINTSTS_CDONE_MASK)\r
-#define SDIF_RINTSTS_DTO_MASK (0x8U)\r
-#define SDIF_RINTSTS_DTO_SHIFT (3U)\r
-#define SDIF_RINTSTS_DTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_DTO_SHIFT)) & SDIF_RINTSTS_DTO_MASK)\r
-#define SDIF_RINTSTS_TXDR_MASK (0x10U)\r
-#define SDIF_RINTSTS_TXDR_SHIFT (4U)\r
-#define SDIF_RINTSTS_TXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_TXDR_SHIFT)) & SDIF_RINTSTS_TXDR_MASK)\r
-#define SDIF_RINTSTS_RXDR_MASK (0x20U)\r
-#define SDIF_RINTSTS_RXDR_SHIFT (5U)\r
-#define SDIF_RINTSTS_RXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_RXDR_SHIFT)) & SDIF_RINTSTS_RXDR_MASK)\r
-#define SDIF_RINTSTS_RCRC_MASK (0x40U)\r
-#define SDIF_RINTSTS_RCRC_SHIFT (6U)\r
-#define SDIF_RINTSTS_RCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_RCRC_SHIFT)) & SDIF_RINTSTS_RCRC_MASK)\r
-#define SDIF_RINTSTS_DCRC_MASK (0x80U)\r
-#define SDIF_RINTSTS_DCRC_SHIFT (7U)\r
-#define SDIF_RINTSTS_DCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_DCRC_SHIFT)) & SDIF_RINTSTS_DCRC_MASK)\r
-#define SDIF_RINTSTS_RTO_BAR_MASK (0x100U)\r
-#define SDIF_RINTSTS_RTO_BAR_SHIFT (8U)\r
-#define SDIF_RINTSTS_RTO_BAR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_RTO_BAR_SHIFT)) & SDIF_RINTSTS_RTO_BAR_MASK)\r
-#define SDIF_RINTSTS_DRTO_BDS_MASK (0x200U)\r
-#define SDIF_RINTSTS_DRTO_BDS_SHIFT (9U)\r
-#define SDIF_RINTSTS_DRTO_BDS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_DRTO_BDS_SHIFT)) & SDIF_RINTSTS_DRTO_BDS_MASK)\r
-#define SDIF_RINTSTS_HTO_MASK (0x400U)\r
-#define SDIF_RINTSTS_HTO_SHIFT (10U)\r
-#define SDIF_RINTSTS_HTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_HTO_SHIFT)) & SDIF_RINTSTS_HTO_MASK)\r
-#define SDIF_RINTSTS_FRUN_MASK (0x800U)\r
-#define SDIF_RINTSTS_FRUN_SHIFT (11U)\r
-#define SDIF_RINTSTS_FRUN(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_FRUN_SHIFT)) & SDIF_RINTSTS_FRUN_MASK)\r
-#define SDIF_RINTSTS_HLE_MASK (0x1000U)\r
-#define SDIF_RINTSTS_HLE_SHIFT (12U)\r
-#define SDIF_RINTSTS_HLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_HLE_SHIFT)) & SDIF_RINTSTS_HLE_MASK)\r
-#define SDIF_RINTSTS_SBE_MASK (0x2000U)\r
-#define SDIF_RINTSTS_SBE_SHIFT (13U)\r
-#define SDIF_RINTSTS_SBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_SBE_SHIFT)) & SDIF_RINTSTS_SBE_MASK)\r
-#define SDIF_RINTSTS_ACD_MASK (0x4000U)\r
-#define SDIF_RINTSTS_ACD_SHIFT (14U)\r
-#define SDIF_RINTSTS_ACD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_ACD_SHIFT)) & SDIF_RINTSTS_ACD_MASK)\r
-#define SDIF_RINTSTS_EBE_MASK (0x8000U)\r
-#define SDIF_RINTSTS_EBE_SHIFT (15U)\r
-#define SDIF_RINTSTS_EBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_EBE_SHIFT)) & SDIF_RINTSTS_EBE_MASK)\r
-#define SDIF_RINTSTS_SDIO_INTERRUPT_MASK (0x10000U)\r
-#define SDIF_RINTSTS_SDIO_INTERRUPT_SHIFT (16U)\r
-#define SDIF_RINTSTS_SDIO_INTERRUPT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_SDIO_INTERRUPT_SHIFT)) & SDIF_RINTSTS_SDIO_INTERRUPT_MASK)\r
+#define SDIF_RINTSTS_CDET_MASK (0x1U)\r
+#define SDIF_RINTSTS_CDET_SHIFT (0U)\r
+/*! CDET - Card detect.\r
+ */\r
+#define SDIF_RINTSTS_CDET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_CDET_SHIFT)) & SDIF_RINTSTS_CDET_MASK)\r
+#define SDIF_RINTSTS_RE_MASK (0x2U)\r
+#define SDIF_RINTSTS_RE_SHIFT (1U)\r
+/*! RE - Response error.\r
+ */\r
+#define SDIF_RINTSTS_RE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_RE_SHIFT)) & SDIF_RINTSTS_RE_MASK)\r
+#define SDIF_RINTSTS_CDONE_MASK (0x4U)\r
+#define SDIF_RINTSTS_CDONE_SHIFT (2U)\r
+/*! CDONE - Command done.\r
+ */\r
+#define SDIF_RINTSTS_CDONE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_CDONE_SHIFT)) & SDIF_RINTSTS_CDONE_MASK)\r
+#define SDIF_RINTSTS_DTO_MASK (0x8U)\r
+#define SDIF_RINTSTS_DTO_SHIFT (3U)\r
+/*! DTO - Data transfer over.\r
+ */\r
+#define SDIF_RINTSTS_DTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_DTO_SHIFT)) & SDIF_RINTSTS_DTO_MASK)\r
+#define SDIF_RINTSTS_TXDR_MASK (0x10U)\r
+#define SDIF_RINTSTS_TXDR_SHIFT (4U)\r
+/*! TXDR - Transmit FIFO data request.\r
+ */\r
+#define SDIF_RINTSTS_TXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_TXDR_SHIFT)) & SDIF_RINTSTS_TXDR_MASK)\r
+#define SDIF_RINTSTS_RXDR_MASK (0x20U)\r
+#define SDIF_RINTSTS_RXDR_SHIFT (5U)\r
+/*! RXDR - Receive FIFO data request.\r
+ */\r
+#define SDIF_RINTSTS_RXDR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_RXDR_SHIFT)) & SDIF_RINTSTS_RXDR_MASK)\r
+#define SDIF_RINTSTS_RCRC_MASK (0x40U)\r
+#define SDIF_RINTSTS_RCRC_SHIFT (6U)\r
+/*! RCRC - Response CRC error.\r
+ */\r
+#define SDIF_RINTSTS_RCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_RCRC_SHIFT)) & SDIF_RINTSTS_RCRC_MASK)\r
+#define SDIF_RINTSTS_DCRC_MASK (0x80U)\r
+#define SDIF_RINTSTS_DCRC_SHIFT (7U)\r
+/*! DCRC - Data CRC error.\r
+ */\r
+#define SDIF_RINTSTS_DCRC(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_DCRC_SHIFT)) & SDIF_RINTSTS_DCRC_MASK)\r
+#define SDIF_RINTSTS_RTO_BAR_MASK (0x100U)\r
+#define SDIF_RINTSTS_RTO_BAR_SHIFT (8U)\r
+/*! RTO_BAR - Response time-out (RTO)/Boot Ack Received (BAR).\r
+ */\r
+#define SDIF_RINTSTS_RTO_BAR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_RTO_BAR_SHIFT)) & SDIF_RINTSTS_RTO_BAR_MASK)\r
+#define SDIF_RINTSTS_DRTO_BDS_MASK (0x200U)\r
+#define SDIF_RINTSTS_DRTO_BDS_SHIFT (9U)\r
+/*! DRTO_BDS - Data read time-out (DRTO)/Boot Data Start (BDS).\r
+ */\r
+#define SDIF_RINTSTS_DRTO_BDS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_DRTO_BDS_SHIFT)) & SDIF_RINTSTS_DRTO_BDS_MASK)\r
+#define SDIF_RINTSTS_HTO_MASK (0x400U)\r
+#define SDIF_RINTSTS_HTO_SHIFT (10U)\r
+/*! HTO - Data starvation-by-host time-out (HTO).\r
+ */\r
+#define SDIF_RINTSTS_HTO(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_HTO_SHIFT)) & SDIF_RINTSTS_HTO_MASK)\r
+#define SDIF_RINTSTS_FRUN_MASK (0x800U)\r
+#define SDIF_RINTSTS_FRUN_SHIFT (11U)\r
+/*! FRUN - FIFO underrun/overrun error.\r
+ */\r
+#define SDIF_RINTSTS_FRUN(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_FRUN_SHIFT)) & SDIF_RINTSTS_FRUN_MASK)\r
+#define SDIF_RINTSTS_HLE_MASK (0x1000U)\r
+#define SDIF_RINTSTS_HLE_SHIFT (12U)\r
+/*! HLE - Hardware locked write error.\r
+ */\r
+#define SDIF_RINTSTS_HLE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_HLE_SHIFT)) & SDIF_RINTSTS_HLE_MASK)\r
+#define SDIF_RINTSTS_SBE_MASK (0x2000U)\r
+#define SDIF_RINTSTS_SBE_SHIFT (13U)\r
+/*! SBE - Start-bit error.\r
+ */\r
+#define SDIF_RINTSTS_SBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_SBE_SHIFT)) & SDIF_RINTSTS_SBE_MASK)\r
+#define SDIF_RINTSTS_ACD_MASK (0x4000U)\r
+#define SDIF_RINTSTS_ACD_SHIFT (14U)\r
+/*! ACD - Auto command done.\r
+ */\r
+#define SDIF_RINTSTS_ACD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_ACD_SHIFT)) & SDIF_RINTSTS_ACD_MASK)\r
+#define SDIF_RINTSTS_EBE_MASK (0x8000U)\r
+#define SDIF_RINTSTS_EBE_SHIFT (15U)\r
+/*! EBE - End-bit error (read)/write no CRC.\r
+ */\r
+#define SDIF_RINTSTS_EBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_EBE_SHIFT)) & SDIF_RINTSTS_EBE_MASK)\r
+#define SDIF_RINTSTS_SDIO_INTERRUPT_MASK (0x10000U)\r
+#define SDIF_RINTSTS_SDIO_INTERRUPT_SHIFT (16U)\r
+/*! SDIO_INTERRUPT - Interrupt from SDIO card.\r
+ */\r
+#define SDIF_RINTSTS_SDIO_INTERRUPT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_RINTSTS_SDIO_INTERRUPT_SHIFT)) & SDIF_RINTSTS_SDIO_INTERRUPT_MASK)\r
/*! @} */\r
\r
/*! @name STATUS - Status register */\r
/*! @{ */\r
-#define SDIF_STATUS_FIFO_RX_WATERMARK_MASK (0x1U)\r
-#define SDIF_STATUS_FIFO_RX_WATERMARK_SHIFT (0U)\r
-#define SDIF_STATUS_FIFO_RX_WATERMARK(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_RX_WATERMARK_SHIFT)) & SDIF_STATUS_FIFO_RX_WATERMARK_MASK)\r
-#define SDIF_STATUS_FIFO_TX_WATERMARK_MASK (0x2U)\r
-#define SDIF_STATUS_FIFO_TX_WATERMARK_SHIFT (1U)\r
-#define SDIF_STATUS_FIFO_TX_WATERMARK(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_TX_WATERMARK_SHIFT)) & SDIF_STATUS_FIFO_TX_WATERMARK_MASK)\r
-#define SDIF_STATUS_FIFO_EMPTY_MASK (0x4U)\r
-#define SDIF_STATUS_FIFO_EMPTY_SHIFT (2U)\r
-#define SDIF_STATUS_FIFO_EMPTY(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_EMPTY_SHIFT)) & SDIF_STATUS_FIFO_EMPTY_MASK)\r
-#define SDIF_STATUS_FIFO_FULL_MASK (0x8U)\r
-#define SDIF_STATUS_FIFO_FULL_SHIFT (3U)\r
-#define SDIF_STATUS_FIFO_FULL(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_FULL_SHIFT)) & SDIF_STATUS_FIFO_FULL_MASK)\r
-#define SDIF_STATUS_CMDFSMSTATES_MASK (0xF0U)\r
-#define SDIF_STATUS_CMDFSMSTATES_SHIFT (4U)\r
-#define SDIF_STATUS_CMDFSMSTATES(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_CMDFSMSTATES_SHIFT)) & SDIF_STATUS_CMDFSMSTATES_MASK)\r
-#define SDIF_STATUS_DATA_3_STATUS_MASK (0x100U)\r
-#define SDIF_STATUS_DATA_3_STATUS_SHIFT (8U)\r
-#define SDIF_STATUS_DATA_3_STATUS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DATA_3_STATUS_SHIFT)) & SDIF_STATUS_DATA_3_STATUS_MASK)\r
-#define SDIF_STATUS_DATA_BUSY_MASK (0x200U)\r
-#define SDIF_STATUS_DATA_BUSY_SHIFT (9U)\r
-#define SDIF_STATUS_DATA_BUSY(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DATA_BUSY_SHIFT)) & SDIF_STATUS_DATA_BUSY_MASK)\r
-#define SDIF_STATUS_DATA_STATE_MC_BUSY_MASK (0x400U)\r
-#define SDIF_STATUS_DATA_STATE_MC_BUSY_SHIFT (10U)\r
-#define SDIF_STATUS_DATA_STATE_MC_BUSY(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DATA_STATE_MC_BUSY_SHIFT)) & SDIF_STATUS_DATA_STATE_MC_BUSY_MASK)\r
-#define SDIF_STATUS_RESPONSE_INDEX_MASK (0x1F800U)\r
-#define SDIF_STATUS_RESPONSE_INDEX_SHIFT (11U)\r
-#define SDIF_STATUS_RESPONSE_INDEX(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_RESPONSE_INDEX_SHIFT)) & SDIF_STATUS_RESPONSE_INDEX_MASK)\r
-#define SDIF_STATUS_FIFO_COUNT_MASK (0x3FFE0000U)\r
-#define SDIF_STATUS_FIFO_COUNT_SHIFT (17U)\r
-#define SDIF_STATUS_FIFO_COUNT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_COUNT_SHIFT)) & SDIF_STATUS_FIFO_COUNT_MASK)\r
-#define SDIF_STATUS_DMA_ACK_MASK (0x40000000U)\r
-#define SDIF_STATUS_DMA_ACK_SHIFT (30U)\r
-#define SDIF_STATUS_DMA_ACK(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DMA_ACK_SHIFT)) & SDIF_STATUS_DMA_ACK_MASK)\r
-#define SDIF_STATUS_DMA_REQ_MASK (0x80000000U)\r
-#define SDIF_STATUS_DMA_REQ_SHIFT (31U)\r
-#define SDIF_STATUS_DMA_REQ(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DMA_REQ_SHIFT)) & SDIF_STATUS_DMA_REQ_MASK)\r
+#define SDIF_STATUS_FIFO_RX_WATERMARK_MASK (0x1U)\r
+#define SDIF_STATUS_FIFO_RX_WATERMARK_SHIFT (0U)\r
+/*! FIFO_RX_WATERMARK - FIFO reached Receive watermark level; not qualified with data transfer.\r
+ */\r
+#define SDIF_STATUS_FIFO_RX_WATERMARK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_RX_WATERMARK_SHIFT)) & SDIF_STATUS_FIFO_RX_WATERMARK_MASK)\r
+#define SDIF_STATUS_FIFO_TX_WATERMARK_MASK (0x2U)\r
+#define SDIF_STATUS_FIFO_TX_WATERMARK_SHIFT (1U)\r
+/*! FIFO_TX_WATERMARK - FIFO reached Transmit watermark level; not qualified with data transfer.\r
+ */\r
+#define SDIF_STATUS_FIFO_TX_WATERMARK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_TX_WATERMARK_SHIFT)) & SDIF_STATUS_FIFO_TX_WATERMARK_MASK)\r
+#define SDIF_STATUS_FIFO_EMPTY_MASK (0x4U)\r
+#define SDIF_STATUS_FIFO_EMPTY_SHIFT (2U)\r
+/*! FIFO_EMPTY - FIFO is empty status.\r
+ */\r
+#define SDIF_STATUS_FIFO_EMPTY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_EMPTY_SHIFT)) & SDIF_STATUS_FIFO_EMPTY_MASK)\r
+#define SDIF_STATUS_FIFO_FULL_MASK (0x8U)\r
+#define SDIF_STATUS_FIFO_FULL_SHIFT (3U)\r
+/*! FIFO_FULL - FIFO is full status.\r
+ */\r
+#define SDIF_STATUS_FIFO_FULL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_FULL_SHIFT)) & SDIF_STATUS_FIFO_FULL_MASK)\r
+#define SDIF_STATUS_CMDFSMSTATES_MASK (0xF0U)\r
+#define SDIF_STATUS_CMDFSMSTATES_SHIFT (4U)\r
+/*! CMDFSMSTATES - Command FSM states: 0 - Idle 1 - Send init sequence 2 - Tx cmd start bit 3 - Tx\r
+ * cmd tx bit 4 - Tx cmd index + arg 5 - Tx cmd crc7 6 - Tx cmd end bit 7 - Rx resp start bit 8 -\r
+ * Rx resp IRQ response 9 - Rx resp tx bit 10 - Rx resp cmd idx 11 - Rx resp data 12 - Rx resp\r
+ * crc7 13 - Rx resp end bit 14 - Cmd path wait NCC 15 - Wait; CMD-to-response turnaround NOTE: The\r
+ * command FSM state is represented using 19 bits.\r
+ */\r
+#define SDIF_STATUS_CMDFSMSTATES(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_CMDFSMSTATES_SHIFT)) & SDIF_STATUS_CMDFSMSTATES_MASK)\r
+#define SDIF_STATUS_DATA_3_STATUS_MASK (0x100U)\r
+#define SDIF_STATUS_DATA_3_STATUS_SHIFT (8U)\r
+/*! DATA_3_STATUS - Raw selected card_data[3]; checks whether card is present 0 - card not present 1 - card present.\r
+ */\r
+#define SDIF_STATUS_DATA_3_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DATA_3_STATUS_SHIFT)) & SDIF_STATUS_DATA_3_STATUS_MASK)\r
+#define SDIF_STATUS_DATA_BUSY_MASK (0x200U)\r
+#define SDIF_STATUS_DATA_BUSY_SHIFT (9U)\r
+/*! DATA_BUSY - Inverted version of raw selected card_data[0] 0 - card data not busy 1 - card data busy.\r
+ */\r
+#define SDIF_STATUS_DATA_BUSY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DATA_BUSY_SHIFT)) & SDIF_STATUS_DATA_BUSY_MASK)\r
+#define SDIF_STATUS_DATA_STATE_MC_BUSY_MASK (0x400U)\r
+#define SDIF_STATUS_DATA_STATE_MC_BUSY_SHIFT (10U)\r
+/*! DATA_STATE_MC_BUSY - Data transmit or receive state-machine is busy.\r
+ */\r
+#define SDIF_STATUS_DATA_STATE_MC_BUSY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DATA_STATE_MC_BUSY_SHIFT)) & SDIF_STATUS_DATA_STATE_MC_BUSY_MASK)\r
+#define SDIF_STATUS_RESPONSE_INDEX_MASK (0x1F800U)\r
+#define SDIF_STATUS_RESPONSE_INDEX_SHIFT (11U)\r
+/*! RESPONSE_INDEX - Index of previous response, including any auto-stop sent by core.\r
+ */\r
+#define SDIF_STATUS_RESPONSE_INDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_RESPONSE_INDEX_SHIFT)) & SDIF_STATUS_RESPONSE_INDEX_MASK)\r
+#define SDIF_STATUS_FIFO_COUNT_MASK (0x3FFE0000U)\r
+#define SDIF_STATUS_FIFO_COUNT_SHIFT (17U)\r
+/*! FIFO_COUNT - FIFO count - Number of filled locations in FIFO.\r
+ */\r
+#define SDIF_STATUS_FIFO_COUNT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_FIFO_COUNT_SHIFT)) & SDIF_STATUS_FIFO_COUNT_MASK)\r
+#define SDIF_STATUS_DMA_ACK_MASK (0x40000000U)\r
+#define SDIF_STATUS_DMA_ACK_SHIFT (30U)\r
+/*! DMA_ACK - DMA acknowledge signal state.\r
+ */\r
+#define SDIF_STATUS_DMA_ACK(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DMA_ACK_SHIFT)) & SDIF_STATUS_DMA_ACK_MASK)\r
+#define SDIF_STATUS_DMA_REQ_MASK (0x80000000U)\r
+#define SDIF_STATUS_DMA_REQ_SHIFT (31U)\r
+/*! DMA_REQ - DMA request signal state.\r
+ */\r
+#define SDIF_STATUS_DMA_REQ(x) (((uint32_t)(((uint32_t)(x)) << SDIF_STATUS_DMA_REQ_SHIFT)) & SDIF_STATUS_DMA_REQ_MASK)\r
/*! @} */\r
\r
/*! @name FIFOTH - FIFO Threshold Watermark register */\r
/*! @{ */\r
-#define SDIF_FIFOTH_TX_WMARK_MASK (0xFFFU)\r
-#define SDIF_FIFOTH_TX_WMARK_SHIFT (0U)\r
-#define SDIF_FIFOTH_TX_WMARK(x) (((uint32_t)(((uint32_t)(x)) << SDIF_FIFOTH_TX_WMARK_SHIFT)) & SDIF_FIFOTH_TX_WMARK_MASK)\r
-#define SDIF_FIFOTH_RX_WMARK_MASK (0xFFF0000U)\r
-#define SDIF_FIFOTH_RX_WMARK_SHIFT (16U)\r
-#define SDIF_FIFOTH_RX_WMARK(x) (((uint32_t)(((uint32_t)(x)) << SDIF_FIFOTH_RX_WMARK_SHIFT)) & SDIF_FIFOTH_RX_WMARK_MASK)\r
-#define SDIF_FIFOTH_DMA_MTS_MASK (0x70000000U)\r
-#define SDIF_FIFOTH_DMA_MTS_SHIFT (28U)\r
-#define SDIF_FIFOTH_DMA_MTS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_FIFOTH_DMA_MTS_SHIFT)) & SDIF_FIFOTH_DMA_MTS_MASK)\r
+#define SDIF_FIFOTH_TX_WMARK_MASK (0xFFFU)\r
+#define SDIF_FIFOTH_TX_WMARK_SHIFT (0U)\r
+/*! TX_WMARK - FIFO threshold watermark level when transmitting data to card.\r
+ */\r
+#define SDIF_FIFOTH_TX_WMARK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_FIFOTH_TX_WMARK_SHIFT)) & SDIF_FIFOTH_TX_WMARK_MASK)\r
+#define SDIF_FIFOTH_RX_WMARK_MASK (0xFFF0000U)\r
+#define SDIF_FIFOTH_RX_WMARK_SHIFT (16U)\r
+/*! RX_WMARK - FIFO threshold watermark level when receiving data to card.\r
+ */\r
+#define SDIF_FIFOTH_RX_WMARK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_FIFOTH_RX_WMARK_SHIFT)) & SDIF_FIFOTH_RX_WMARK_MASK)\r
+#define SDIF_FIFOTH_DMA_MTS_MASK (0x70000000U)\r
+#define SDIF_FIFOTH_DMA_MTS_SHIFT (28U)\r
+/*! DMA_MTS - Burst size of multiple transaction; should be programmed same as DW-DMA controller\r
+ * multiple-transaction-size SRC/DEST_MSIZE.\r
+ */\r
+#define SDIF_FIFOTH_DMA_MTS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_FIFOTH_DMA_MTS_SHIFT)) & SDIF_FIFOTH_DMA_MTS_MASK)\r
/*! @} */\r
\r
/*! @name CDETECT - Card Detect register */\r
/*! @{ */\r
-#define SDIF_CDETECT_CARD0_DETECT_MASK (0x1U)\r
-#define SDIF_CDETECT_CARD0_DETECT_SHIFT (0U)\r
-#define SDIF_CDETECT_CARD0_DETECT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CDETECT_CARD0_DETECT_SHIFT)) & SDIF_CDETECT_CARD0_DETECT_MASK)\r
-#define SDIF_CDETECT_CARD1_DETECT_MASK (0x2U)\r
-#define SDIF_CDETECT_CARD1_DETECT_SHIFT (1U)\r
-#define SDIF_CDETECT_CARD1_DETECT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CDETECT_CARD1_DETECT_SHIFT)) & SDIF_CDETECT_CARD1_DETECT_MASK)\r
+#define SDIF_CDETECT_CARD0_DETECT_MASK (0x1U)\r
+#define SDIF_CDETECT_CARD0_DETECT_SHIFT (0U)\r
+/*! CARD0_DETECT - Card 0 detect\r
+ */\r
+#define SDIF_CDETECT_CARD0_DETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CDETECT_CARD0_DETECT_SHIFT)) & SDIF_CDETECT_CARD0_DETECT_MASK)\r
+#define SDIF_CDETECT_CARD1_DETECT_MASK (0x2U)\r
+#define SDIF_CDETECT_CARD1_DETECT_SHIFT (1U)\r
+/*! CARD1_DETECT - Card 1 detect\r
+ */\r
+#define SDIF_CDETECT_CARD1_DETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CDETECT_CARD1_DETECT_SHIFT)) & SDIF_CDETECT_CARD1_DETECT_MASK)\r
/*! @} */\r
\r
/*! @name WRTPRT - Write Protect register */\r
/*! @{ */\r
-#define SDIF_WRTPRT_WRITE_PROTECT_MASK (0x1U)\r
-#define SDIF_WRTPRT_WRITE_PROTECT_SHIFT (0U)\r
-#define SDIF_WRTPRT_WRITE_PROTECT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_WRTPRT_WRITE_PROTECT_SHIFT)) & SDIF_WRTPRT_WRITE_PROTECT_MASK)\r
+#define SDIF_WRTPRT_WRITE_PROTECT_MASK (0x1U)\r
+#define SDIF_WRTPRT_WRITE_PROTECT_SHIFT (0U)\r
+/*! WRITE_PROTECT - Write protect.\r
+ */\r
+#define SDIF_WRTPRT_WRITE_PROTECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_WRTPRT_WRITE_PROTECT_SHIFT)) & SDIF_WRTPRT_WRITE_PROTECT_MASK)\r
/*! @} */\r
\r
/*! @name TCBCNT - Transferred CIU Card Byte Count register */\r
/*! @{ */\r
-#define SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT_MASK (0xFFFFFFFFU)\r
-#define SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT_SHIFT (0U)\r
-#define SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT_SHIFT)) & SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT_MASK)\r
+#define SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT_MASK (0xFFFFFFFFU)\r
+#define SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT_SHIFT (0U)\r
+/*! TRANS_CARD_BYTE_COUNT - Number of bytes transferred by CIU unit to card.\r
+ */\r
+#define SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT_SHIFT)) & SDIF_TCBCNT_TRANS_CARD_BYTE_COUNT_MASK)\r
/*! @} */\r
\r
/*! @name TBBCNT - Transferred Host to BIU-FIFO Byte Count register */\r
/*! @{ */\r
-#define SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT_MASK (0xFFFFFFFFU)\r
-#define SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT_SHIFT (0U)\r
-#define SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT_SHIFT)) & SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT_MASK)\r
+#define SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT_MASK (0xFFFFFFFFU)\r
+#define SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT_SHIFT (0U)\r
+/*! TRANS_FIFO_BYTE_COUNT - Number of bytes transferred between Host/DMA memory and BIU FIFO.\r
+ */\r
+#define SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT_SHIFT)) & SDIF_TBBCNT_TRANS_FIFO_BYTE_COUNT_MASK)\r
/*! @} */\r
\r
/*! @name DEBNCE - Debounce Count register */\r
/*! @{ */\r
-#define SDIF_DEBNCE_DEBOUNCE_COUNT_MASK (0xFFFFFFU)\r
-#define SDIF_DEBNCE_DEBOUNCE_COUNT_SHIFT (0U)\r
-#define SDIF_DEBNCE_DEBOUNCE_COUNT(x) (((uint32_t)(((uint32_t)(x)) << SDIF_DEBNCE_DEBOUNCE_COUNT_SHIFT)) & SDIF_DEBNCE_DEBOUNCE_COUNT_MASK)\r
+#define SDIF_DEBNCE_DEBOUNCE_COUNT_MASK (0xFFFFFFU)\r
+#define SDIF_DEBNCE_DEBOUNCE_COUNT_SHIFT (0U)\r
+/*! DEBOUNCE_COUNT - Number of host clocks (SD_CLK) used by debounce filter logic for card detect; typical debounce time\r
+ * is 5-25 ms.\r
+ */\r
+#define SDIF_DEBNCE_DEBOUNCE_COUNT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_DEBNCE_DEBOUNCE_COUNT_SHIFT)) & SDIF_DEBNCE_DEBOUNCE_COUNT_MASK)\r
/*! @} */\r
\r
/*! @name RST_N - Hardware Reset */\r
/*! @{ */\r
-#define SDIF_RST_N_CARD_RESET_MASK (0x1U)\r
-#define SDIF_RST_N_CARD_RESET_SHIFT (0U)\r
-#define SDIF_RST_N_CARD_RESET(x) (((uint32_t)(((uint32_t)(x)) << SDIF_RST_N_CARD_RESET_SHIFT)) & SDIF_RST_N_CARD_RESET_MASK)\r
+#define SDIF_RST_N_CARD_RESET_MASK (0x1U)\r
+#define SDIF_RST_N_CARD_RESET_SHIFT (0U)\r
+/*! CARD_RESET - Hardware reset.\r
+ */\r
+#define SDIF_RST_N_CARD_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_RST_N_CARD_RESET_SHIFT)) & SDIF_RST_N_CARD_RESET_MASK)\r
/*! @} */\r
\r
/*! @name BMOD - Bus Mode register */\r
/*! @{ */\r
-#define SDIF_BMOD_SWR_MASK (0x1U)\r
-#define SDIF_BMOD_SWR_SHIFT (0U)\r
-#define SDIF_BMOD_SWR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_SWR_SHIFT)) & SDIF_BMOD_SWR_MASK)\r
-#define SDIF_BMOD_FB_MASK (0x2U)\r
-#define SDIF_BMOD_FB_SHIFT (1U)\r
-#define SDIF_BMOD_FB(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_FB_SHIFT)) & SDIF_BMOD_FB_MASK)\r
-#define SDIF_BMOD_DSL_MASK (0x7CU)\r
-#define SDIF_BMOD_DSL_SHIFT (2U)\r
-#define SDIF_BMOD_DSL(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_DSL_SHIFT)) & SDIF_BMOD_DSL_MASK)\r
-#define SDIF_BMOD_DE_MASK (0x80U)\r
-#define SDIF_BMOD_DE_SHIFT (7U)\r
-#define SDIF_BMOD_DE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_DE_SHIFT)) & SDIF_BMOD_DE_MASK)\r
-#define SDIF_BMOD_PBL_MASK (0x700U)\r
-#define SDIF_BMOD_PBL_SHIFT (8U)\r
-#define SDIF_BMOD_PBL(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_PBL_SHIFT)) & SDIF_BMOD_PBL_MASK)\r
+#define SDIF_BMOD_SWR_MASK (0x1U)\r
+#define SDIF_BMOD_SWR_SHIFT (0U)\r
+/*! SWR - Software Reset.\r
+ */\r
+#define SDIF_BMOD_SWR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_SWR_SHIFT)) & SDIF_BMOD_SWR_MASK)\r
+#define SDIF_BMOD_FB_MASK (0x2U)\r
+#define SDIF_BMOD_FB_SHIFT (1U)\r
+/*! FB - Fixed Burst.\r
+ */\r
+#define SDIF_BMOD_FB(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_FB_SHIFT)) & SDIF_BMOD_FB_MASK)\r
+#define SDIF_BMOD_DSL_MASK (0x7CU)\r
+#define SDIF_BMOD_DSL_SHIFT (2U)\r
+/*! DSL - Descriptor Skip Length.\r
+ */\r
+#define SDIF_BMOD_DSL(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_DSL_SHIFT)) & SDIF_BMOD_DSL_MASK)\r
+#define SDIF_BMOD_DE_MASK (0x80U)\r
+#define SDIF_BMOD_DE_SHIFT (7U)\r
+/*! DE - SD/MMC DMA Enable.\r
+ */\r
+#define SDIF_BMOD_DE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_DE_SHIFT)) & SDIF_BMOD_DE_MASK)\r
+#define SDIF_BMOD_PBL_MASK (0x700U)\r
+#define SDIF_BMOD_PBL_SHIFT (8U)\r
+/*! PBL - Programmable Burst Length.\r
+ */\r
+#define SDIF_BMOD_PBL(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BMOD_PBL_SHIFT)) & SDIF_BMOD_PBL_MASK)\r
/*! @} */\r
\r
/*! @name PLDMND - Poll Demand register */\r
/*! @{ */\r
-#define SDIF_PLDMND_PD_MASK (0xFFFFFFFFU)\r
-#define SDIF_PLDMND_PD_SHIFT (0U)\r
-#define SDIF_PLDMND_PD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_PLDMND_PD_SHIFT)) & SDIF_PLDMND_PD_MASK)\r
+#define SDIF_PLDMND_PD_MASK (0xFFFFFFFFU)\r
+#define SDIF_PLDMND_PD_SHIFT (0U)\r
+/*! PD - Poll Demand.\r
+ */\r
+#define SDIF_PLDMND_PD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_PLDMND_PD_SHIFT)) & SDIF_PLDMND_PD_MASK)\r
/*! @} */\r
\r
/*! @name DBADDR - Descriptor List Base Address register */\r
/*! @{ */\r
-#define SDIF_DBADDR_SDL_MASK (0xFFFFFFFFU)\r
-#define SDIF_DBADDR_SDL_SHIFT (0U)\r
-#define SDIF_DBADDR_SDL(x) (((uint32_t)(((uint32_t)(x)) << SDIF_DBADDR_SDL_SHIFT)) & SDIF_DBADDR_SDL_MASK)\r
+#define SDIF_DBADDR_SDL_MASK (0xFFFFFFFFU)\r
+#define SDIF_DBADDR_SDL_SHIFT (0U)\r
+/*! SDL - Start of Descriptor List.\r
+ */\r
+#define SDIF_DBADDR_SDL(x) (((uint32_t)(((uint32_t)(x)) << SDIF_DBADDR_SDL_SHIFT)) & SDIF_DBADDR_SDL_MASK)\r
/*! @} */\r
\r
/*! @name IDSTS - Internal DMAC Status register */\r
/*! @{ */\r
-#define SDIF_IDSTS_TI_MASK (0x1U)\r
-#define SDIF_IDSTS_TI_SHIFT (0U)\r
-#define SDIF_IDSTS_TI(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_TI_SHIFT)) & SDIF_IDSTS_TI_MASK)\r
-#define SDIF_IDSTS_RI_MASK (0x2U)\r
-#define SDIF_IDSTS_RI_SHIFT (1U)\r
-#define SDIF_IDSTS_RI(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_RI_SHIFT)) & SDIF_IDSTS_RI_MASK)\r
-#define SDIF_IDSTS_FBE_MASK (0x4U)\r
-#define SDIF_IDSTS_FBE_SHIFT (2U)\r
-#define SDIF_IDSTS_FBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_FBE_SHIFT)) & SDIF_IDSTS_FBE_MASK)\r
-#define SDIF_IDSTS_DU_MASK (0x10U)\r
-#define SDIF_IDSTS_DU_SHIFT (4U)\r
-#define SDIF_IDSTS_DU(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_DU_SHIFT)) & SDIF_IDSTS_DU_MASK)\r
-#define SDIF_IDSTS_CES_MASK (0x20U)\r
-#define SDIF_IDSTS_CES_SHIFT (5U)\r
-#define SDIF_IDSTS_CES(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_CES_SHIFT)) & SDIF_IDSTS_CES_MASK)\r
-#define SDIF_IDSTS_NIS_MASK (0x100U)\r
-#define SDIF_IDSTS_NIS_SHIFT (8U)\r
-#define SDIF_IDSTS_NIS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_NIS_SHIFT)) & SDIF_IDSTS_NIS_MASK)\r
-#define SDIF_IDSTS_AIS_MASK (0x200U)\r
-#define SDIF_IDSTS_AIS_SHIFT (9U)\r
-#define SDIF_IDSTS_AIS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_AIS_SHIFT)) & SDIF_IDSTS_AIS_MASK)\r
-#define SDIF_IDSTS_EB_MASK (0x1C00U)\r
-#define SDIF_IDSTS_EB_SHIFT (10U)\r
-#define SDIF_IDSTS_EB(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_EB_SHIFT)) & SDIF_IDSTS_EB_MASK)\r
-#define SDIF_IDSTS_FSM_MASK (0x1E000U)\r
-#define SDIF_IDSTS_FSM_SHIFT (13U)\r
-#define SDIF_IDSTS_FSM(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_FSM_SHIFT)) & SDIF_IDSTS_FSM_MASK)\r
+#define SDIF_IDSTS_TI_MASK (0x1U)\r
+#define SDIF_IDSTS_TI_SHIFT (0U)\r
+/*! TI - Transmit Interrupt.\r
+ */\r
+#define SDIF_IDSTS_TI(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_TI_SHIFT)) & SDIF_IDSTS_TI_MASK)\r
+#define SDIF_IDSTS_RI_MASK (0x2U)\r
+#define SDIF_IDSTS_RI_SHIFT (1U)\r
+/*! RI - Receive Interrupt.\r
+ */\r
+#define SDIF_IDSTS_RI(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_RI_SHIFT)) & SDIF_IDSTS_RI_MASK)\r
+#define SDIF_IDSTS_FBE_MASK (0x4U)\r
+#define SDIF_IDSTS_FBE_SHIFT (2U)\r
+/*! FBE - Fatal Bus Error Interrupt.\r
+ */\r
+#define SDIF_IDSTS_FBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_FBE_SHIFT)) & SDIF_IDSTS_FBE_MASK)\r
+#define SDIF_IDSTS_DU_MASK (0x10U)\r
+#define SDIF_IDSTS_DU_SHIFT (4U)\r
+/*! DU - Descriptor Unavailable Interrupt.\r
+ */\r
+#define SDIF_IDSTS_DU(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_DU_SHIFT)) & SDIF_IDSTS_DU_MASK)\r
+#define SDIF_IDSTS_CES_MASK (0x20U)\r
+#define SDIF_IDSTS_CES_SHIFT (5U)\r
+/*! CES - Card Error Summary.\r
+ */\r
+#define SDIF_IDSTS_CES(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_CES_SHIFT)) & SDIF_IDSTS_CES_MASK)\r
+#define SDIF_IDSTS_NIS_MASK (0x100U)\r
+#define SDIF_IDSTS_NIS_SHIFT (8U)\r
+/*! NIS - Normal Interrupt Summary.\r
+ */\r
+#define SDIF_IDSTS_NIS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_NIS_SHIFT)) & SDIF_IDSTS_NIS_MASK)\r
+#define SDIF_IDSTS_AIS_MASK (0x200U)\r
+#define SDIF_IDSTS_AIS_SHIFT (9U)\r
+/*! AIS - Abnormal Interrupt Summary.\r
+ */\r
+#define SDIF_IDSTS_AIS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_AIS_SHIFT)) & SDIF_IDSTS_AIS_MASK)\r
+#define SDIF_IDSTS_EB_MASK (0x1C00U)\r
+#define SDIF_IDSTS_EB_SHIFT (10U)\r
+/*! EB - Error Bits.\r
+ */\r
+#define SDIF_IDSTS_EB(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_EB_SHIFT)) & SDIF_IDSTS_EB_MASK)\r
+#define SDIF_IDSTS_FSM_MASK (0x1E000U)\r
+#define SDIF_IDSTS_FSM_SHIFT (13U)\r
+/*! FSM - DMAC state machine present state.\r
+ */\r
+#define SDIF_IDSTS_FSM(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDSTS_FSM_SHIFT)) & SDIF_IDSTS_FSM_MASK)\r
/*! @} */\r
\r
/*! @name IDINTEN - Internal DMAC Interrupt Enable register */\r
/*! @{ */\r
-#define SDIF_IDINTEN_TI_MASK (0x1U)\r
-#define SDIF_IDINTEN_TI_SHIFT (0U)\r
-#define SDIF_IDINTEN_TI(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_TI_SHIFT)) & SDIF_IDINTEN_TI_MASK)\r
-#define SDIF_IDINTEN_RI_MASK (0x2U)\r
-#define SDIF_IDINTEN_RI_SHIFT (1U)\r
-#define SDIF_IDINTEN_RI(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_RI_SHIFT)) & SDIF_IDINTEN_RI_MASK)\r
-#define SDIF_IDINTEN_FBE_MASK (0x4U)\r
-#define SDIF_IDINTEN_FBE_SHIFT (2U)\r
-#define SDIF_IDINTEN_FBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_FBE_SHIFT)) & SDIF_IDINTEN_FBE_MASK)\r
-#define SDIF_IDINTEN_DU_MASK (0x10U)\r
-#define SDIF_IDINTEN_DU_SHIFT (4U)\r
-#define SDIF_IDINTEN_DU(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_DU_SHIFT)) & SDIF_IDINTEN_DU_MASK)\r
-#define SDIF_IDINTEN_CES_MASK (0x20U)\r
-#define SDIF_IDINTEN_CES_SHIFT (5U)\r
-#define SDIF_IDINTEN_CES(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_CES_SHIFT)) & SDIF_IDINTEN_CES_MASK)\r
-#define SDIF_IDINTEN_NIS_MASK (0x100U)\r
-#define SDIF_IDINTEN_NIS_SHIFT (8U)\r
-#define SDIF_IDINTEN_NIS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_NIS_SHIFT)) & SDIF_IDINTEN_NIS_MASK)\r
-#define SDIF_IDINTEN_AIS_MASK (0x200U)\r
-#define SDIF_IDINTEN_AIS_SHIFT (9U)\r
-#define SDIF_IDINTEN_AIS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_AIS_SHIFT)) & SDIF_IDINTEN_AIS_MASK)\r
+#define SDIF_IDINTEN_TI_MASK (0x1U)\r
+#define SDIF_IDINTEN_TI_SHIFT (0U)\r
+/*! TI - Transmit Interrupt Enable.\r
+ */\r
+#define SDIF_IDINTEN_TI(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_TI_SHIFT)) & SDIF_IDINTEN_TI_MASK)\r
+#define SDIF_IDINTEN_RI_MASK (0x2U)\r
+#define SDIF_IDINTEN_RI_SHIFT (1U)\r
+/*! RI - Receive Interrupt Enable.\r
+ */\r
+#define SDIF_IDINTEN_RI(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_RI_SHIFT)) & SDIF_IDINTEN_RI_MASK)\r
+#define SDIF_IDINTEN_FBE_MASK (0x4U)\r
+#define SDIF_IDINTEN_FBE_SHIFT (2U)\r
+/*! FBE - Fatal Bus Error Enable.\r
+ */\r
+#define SDIF_IDINTEN_FBE(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_FBE_SHIFT)) & SDIF_IDINTEN_FBE_MASK)\r
+#define SDIF_IDINTEN_DU_MASK (0x10U)\r
+#define SDIF_IDINTEN_DU_SHIFT (4U)\r
+/*! DU - Descriptor Unavailable Interrupt.\r
+ */\r
+#define SDIF_IDINTEN_DU(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_DU_SHIFT)) & SDIF_IDINTEN_DU_MASK)\r
+#define SDIF_IDINTEN_CES_MASK (0x20U)\r
+#define SDIF_IDINTEN_CES_SHIFT (5U)\r
+/*! CES - Card Error summary Interrupt Enable.\r
+ */\r
+#define SDIF_IDINTEN_CES(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_CES_SHIFT)) & SDIF_IDINTEN_CES_MASK)\r
+#define SDIF_IDINTEN_NIS_MASK (0x100U)\r
+#define SDIF_IDINTEN_NIS_SHIFT (8U)\r
+/*! NIS - Normal Interrupt Summary Enable.\r
+ */\r
+#define SDIF_IDINTEN_NIS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_NIS_SHIFT)) & SDIF_IDINTEN_NIS_MASK)\r
+#define SDIF_IDINTEN_AIS_MASK (0x200U)\r
+#define SDIF_IDINTEN_AIS_SHIFT (9U)\r
+/*! AIS - Abnormal Interrupt Summary Enable.\r
+ */\r
+#define SDIF_IDINTEN_AIS(x) (((uint32_t)(((uint32_t)(x)) << SDIF_IDINTEN_AIS_SHIFT)) & SDIF_IDINTEN_AIS_MASK)\r
/*! @} */\r
\r
/*! @name DSCADDR - Current Host Descriptor Address register */\r
/*! @{ */\r
-#define SDIF_DSCADDR_HDA_MASK (0xFFFFFFFFU)\r
-#define SDIF_DSCADDR_HDA_SHIFT (0U)\r
-#define SDIF_DSCADDR_HDA(x) (((uint32_t)(((uint32_t)(x)) << SDIF_DSCADDR_HDA_SHIFT)) & SDIF_DSCADDR_HDA_MASK)\r
+#define SDIF_DSCADDR_HDA_MASK (0xFFFFFFFFU)\r
+#define SDIF_DSCADDR_HDA_SHIFT (0U)\r
+/*! HDA - Host Descriptor Address Pointer.\r
+ */\r
+#define SDIF_DSCADDR_HDA(x) (((uint32_t)(((uint32_t)(x)) << SDIF_DSCADDR_HDA_SHIFT)) & SDIF_DSCADDR_HDA_MASK)\r
/*! @} */\r
\r
/*! @name BUFADDR - Current Buffer Descriptor Address register */\r
/*! @{ */\r
-#define SDIF_BUFADDR_HBA_MASK (0xFFFFFFFFU)\r
-#define SDIF_BUFADDR_HBA_SHIFT (0U)\r
-#define SDIF_BUFADDR_HBA(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BUFADDR_HBA_SHIFT)) & SDIF_BUFADDR_HBA_MASK)\r
+#define SDIF_BUFADDR_HBA_MASK (0xFFFFFFFFU)\r
+#define SDIF_BUFADDR_HBA_SHIFT (0U)\r
+/*! HBA - Host Buffer Address Pointer.\r
+ */\r
+#define SDIF_BUFADDR_HBA(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BUFADDR_HBA_SHIFT)) & SDIF_BUFADDR_HBA_MASK)\r
/*! @} */\r
\r
/*! @name CARDTHRCTL - Card Threshold Control */\r
/*! @{ */\r
-#define SDIF_CARDTHRCTL_CARDRDTHREN_MASK (0x1U)\r
-#define SDIF_CARDTHRCTL_CARDRDTHREN_SHIFT (0U)\r
-#define SDIF_CARDTHRCTL_CARDRDTHREN(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CARDTHRCTL_CARDRDTHREN_SHIFT)) & SDIF_CARDTHRCTL_CARDRDTHREN_MASK)\r
-#define SDIF_CARDTHRCTL_BSYCLRINTEN_MASK (0x2U)\r
-#define SDIF_CARDTHRCTL_BSYCLRINTEN_SHIFT (1U)\r
-#define SDIF_CARDTHRCTL_BSYCLRINTEN(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CARDTHRCTL_BSYCLRINTEN_SHIFT)) & SDIF_CARDTHRCTL_BSYCLRINTEN_MASK)\r
-#define SDIF_CARDTHRCTL_CARDTHRESHOLD_MASK (0xFF0000U)\r
-#define SDIF_CARDTHRCTL_CARDTHRESHOLD_SHIFT (16U)\r
-#define SDIF_CARDTHRCTL_CARDTHRESHOLD(x) (((uint32_t)(((uint32_t)(x)) << SDIF_CARDTHRCTL_CARDTHRESHOLD_SHIFT)) & SDIF_CARDTHRCTL_CARDTHRESHOLD_MASK)\r
+#define SDIF_CARDTHRCTL_CARDRDTHREN_MASK (0x1U)\r
+#define SDIF_CARDTHRCTL_CARDRDTHREN_SHIFT (0U)\r
+/*! CARDRDTHREN - Card Read Threshold Enable.\r
+ */\r
+#define SDIF_CARDTHRCTL_CARDRDTHREN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CARDTHRCTL_CARDRDTHREN_SHIFT)) & SDIF_CARDTHRCTL_CARDRDTHREN_MASK)\r
+#define SDIF_CARDTHRCTL_BSYCLRINTEN_MASK (0x2U)\r
+#define SDIF_CARDTHRCTL_BSYCLRINTEN_SHIFT (1U)\r
+/*! BSYCLRINTEN - Busy Clear Interrupt Enable.\r
+ */\r
+#define SDIF_CARDTHRCTL_BSYCLRINTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CARDTHRCTL_BSYCLRINTEN_SHIFT)) & SDIF_CARDTHRCTL_BSYCLRINTEN_MASK)\r
+#define SDIF_CARDTHRCTL_CARDTHRESHOLD_MASK (0xFF0000U)\r
+#define SDIF_CARDTHRCTL_CARDTHRESHOLD_SHIFT (16U)\r
+/*! CARDTHRESHOLD - Card Threshold size.\r
+ */\r
+#define SDIF_CARDTHRCTL_CARDTHRESHOLD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_CARDTHRCTL_CARDTHRESHOLD_SHIFT)) & SDIF_CARDTHRCTL_CARDTHRESHOLD_MASK)\r
/*! @} */\r
\r
/*! @name BACKENDPWR - Power control */\r
/*! @{ */\r
-#define SDIF_BACKENDPWR_BACKENDPWR_MASK (0x1U)\r
-#define SDIF_BACKENDPWR_BACKENDPWR_SHIFT (0U)\r
-#define SDIF_BACKENDPWR_BACKENDPWR(x) (((uint32_t)(((uint32_t)(x)) << SDIF_BACKENDPWR_BACKENDPWR_SHIFT)) & SDIF_BACKENDPWR_BACKENDPWR_MASK)\r
+#define SDIF_BACKENDPWR_BACKENDPWR_MASK (0x1U)\r
+#define SDIF_BACKENDPWR_BACKENDPWR_SHIFT (0U)\r
+/*! BACKENDPWR - Back-end Power control for card application.\r
+ */\r
+#define SDIF_BACKENDPWR_BACKENDPWR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SDIF_BACKENDPWR_BACKENDPWR_SHIFT)) & SDIF_BACKENDPWR_BACKENDPWR_MASK)\r
/*! @} */\r
\r
/*! @name FIFO - SDIF FIFO */\r
/*! @{ */\r
-#define SDIF_FIFO_DATA_MASK (0xFFFFFFFFU)\r
-#define SDIF_FIFO_DATA_SHIFT (0U)\r
-#define SDIF_FIFO_DATA(x) (((uint32_t)(((uint32_t)(x)) << SDIF_FIFO_DATA_SHIFT)) & SDIF_FIFO_DATA_MASK)\r
+#define SDIF_FIFO_DATA_MASK (0xFFFFFFFFU)\r
+#define SDIF_FIFO_DATA_SHIFT (0U)\r
+/*! DATA - SDIF FIFO.\r
+ */\r
+#define SDIF_FIFO_DATA(x) (((uint32_t)(((uint32_t)(x)) << SDIF_FIFO_DATA_SHIFT)) & SDIF_FIFO_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SDIF_FIFO */\r
-#define SDIF_FIFO_COUNT (64U)\r
-\r
+#define SDIF_FIFO_COUNT (64U)\r
\r
/*!\r
* @}\r
*/ /* end of group SDIF_Register_Masks */\r
\r
-\r
/* SDIF - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral SDIF base address */\r
- #define SDIF_BASE (0x5009B000u)\r
- /** Peripheral SDIF base address */\r
- #define SDIF_BASE_NS (0x4009B000u)\r
- /** Peripheral SDIF base pointer */\r
- #define SDIF ((SDIF_Type *)SDIF_BASE)\r
- /** Peripheral SDIF base pointer */\r
- #define SDIF_NS ((SDIF_Type *)SDIF_BASE_NS)\r
- /** Array initializer of SDIF peripheral base addresses */\r
- #define SDIF_BASE_ADDRS { SDIF_BASE }\r
- /** Array initializer of SDIF peripheral base pointers */\r
- #define SDIF_BASE_PTRS { SDIF }\r
- /** Array initializer of SDIF peripheral base addresses */\r
- #define SDIF_BASE_ADDRS_NS { SDIF_BASE_NS }\r
- /** Array initializer of SDIF peripheral base pointers */\r
- #define SDIF_BASE_PTRS_NS { SDIF_NS }\r
+/** Peripheral SDIF base address */\r
+#define SDIF_BASE (0x5009B000u)\r
+/** Peripheral SDIF base address */\r
+#define SDIF_BASE_NS (0x4009B000u)\r
+/** Peripheral SDIF base pointer */\r
+#define SDIF ((SDIF_Type *)SDIF_BASE)\r
+/** Peripheral SDIF base pointer */\r
+#define SDIF_NS ((SDIF_Type *)SDIF_BASE_NS)\r
+/** Array initializer of SDIF peripheral base addresses */\r
+#define SDIF_BASE_ADDRS \\r
+ { \\r
+ SDIF_BASE \\r
+ }\r
+/** Array initializer of SDIF peripheral base pointers */\r
+#define SDIF_BASE_PTRS \\r
+ { \\r
+ SDIF \\r
+ }\r
+/** Array initializer of SDIF peripheral base addresses */\r
+#define SDIF_BASE_ADDRS_NS \\r
+ { \\r
+ SDIF_BASE_NS \\r
+ }\r
+/** Array initializer of SDIF peripheral base pointers */\r
+#define SDIF_BASE_PTRS_NS \\r
+ { \\r
+ SDIF_NS \\r
+ }\r
#else\r
- /** Peripheral SDIF base address */\r
- #define SDIF_BASE (0x4009B000u)\r
- /** Peripheral SDIF base pointer */\r
- #define SDIF ((SDIF_Type *)SDIF_BASE)\r
- /** Array initializer of SDIF peripheral base addresses */\r
- #define SDIF_BASE_ADDRS { SDIF_BASE }\r
- /** Array initializer of SDIF peripheral base pointers */\r
- #define SDIF_BASE_PTRS { SDIF }\r
+/** Peripheral SDIF base address */\r
+#define SDIF_BASE (0x4009B000u)\r
+/** Peripheral SDIF base pointer */\r
+#define SDIF ((SDIF_Type *)SDIF_BASE)\r
+/** Array initializer of SDIF peripheral base addresses */\r
+#define SDIF_BASE_ADDRS \\r
+ { \\r
+ SDIF_BASE \\r
+ }\r
+/** Array initializer of SDIF peripheral base pointers */\r
+#define SDIF_BASE_PTRS \\r
+ { \\r
+ SDIF \\r
+ }\r
#endif\r
/** Interrupt vectors for the SDIF peripheral type */\r
-#define SDIF_IRQS { SDIO_IRQn }\r
+#define SDIF_IRQS \\r
+ { \\r
+ SDIO_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group SDIF_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- SPI Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** SPI - Register Layout Typedef */\r
-typedef struct {\r
- uint8_t RESERVED_0[1024];\r
- __IO uint32_t CFG; /**< SPI Configuration register, offset: 0x400 */\r
- __IO uint32_t DLY; /**< SPI Delay register, offset: 0x404 */\r
- __IO uint32_t STAT; /**< SPI Status. Some status flags can be cleared by writing a 1 to that bit position., offset: 0x408 */\r
- __IO uint32_t INTENSET; /**< SPI Interrupt Enable read and Set. A complete value may be read from this register. Writing a 1 to any implemented bit position causes that bit to be set., offset: 0x40C */\r
- __O uint32_t INTENCLR; /**< SPI Interrupt Enable Clear. Writing a 1 to any implemented bit position causes the corresponding bit in INTENSET to be cleared., offset: 0x410 */\r
- uint8_t RESERVED_1[16];\r
- __IO uint32_t DIV; /**< SPI clock Divider, offset: 0x424 */\r
- __I uint32_t INTSTAT; /**< SPI Interrupt Status, offset: 0x428 */\r
- uint8_t RESERVED_2[2516];\r
- __IO uint32_t FIFOCFG; /**< FIFO configuration and enable register., offset: 0xE00 */\r
- __IO uint32_t FIFOSTAT; /**< FIFO status register., offset: 0xE04 */\r
- __IO uint32_t FIFOTRIG; /**< FIFO trigger settings for interrupt and DMA request., offset: 0xE08 */\r
- uint8_t RESERVED_3[4];\r
- __IO uint32_t FIFOINTENSET; /**< FIFO interrupt enable set (enable) and read register., offset: 0xE10 */\r
- __IO uint32_t FIFOINTENCLR; /**< FIFO interrupt enable clear (disable) and read register., offset: 0xE14 */\r
- __I uint32_t FIFOINTSTAT; /**< FIFO interrupt status register., offset: 0xE18 */\r
- uint8_t RESERVED_4[4];\r
- __O uint32_t FIFOWR; /**< FIFO write data., offset: 0xE20 */\r
- uint8_t RESERVED_5[12];\r
- __I uint32_t FIFORD; /**< FIFO read data., offset: 0xE30 */\r
- uint8_t RESERVED_6[12];\r
- __I uint32_t FIFORDNOPOP; /**< FIFO data read with no FIFO pop., offset: 0xE40 */\r
- uint8_t RESERVED_7[440];\r
- __I uint32_t ID; /**< Peripheral identification register., offset: 0xFFC */\r
+typedef struct\r
+{\r
+ uint8_t RESERVED_0[1024];\r
+ __IO uint32_t CFG; /**< SPI Configuration register, offset: 0x400 */\r
+ __IO uint32_t DLY; /**< SPI Delay register, offset: 0x404 */\r
+ __IO uint32_t\r
+ STAT; /**< SPI Status. Some status flags can be cleared by writing a 1 to that bit position., offset: 0x408 */\r
+ __IO uint32_t INTENSET; /**< SPI Interrupt Enable read and Set. A complete value may be read from this register.\r
+ Writing a 1 to any implemented bit position causes that bit to be set., offset: 0x40C */\r
+ __O uint32_t INTENCLR; /**< SPI Interrupt Enable Clear. Writing a 1 to any implemented bit position causes the\r
+ corresponding bit in INTENSET to be cleared., offset: 0x410 */\r
+ uint8_t RESERVED_1[16];\r
+ __IO uint32_t DIV; /**< SPI clock Divider, offset: 0x424 */\r
+ __I uint32_t INTSTAT; /**< SPI Interrupt Status, offset: 0x428 */\r
+ uint8_t RESERVED_2[2516];\r
+ __IO uint32_t FIFOCFG; /**< FIFO configuration and enable register., offset: 0xE00 */\r
+ __IO uint32_t FIFOSTAT; /**< FIFO status register., offset: 0xE04 */\r
+ __IO uint32_t FIFOTRIG; /**< FIFO trigger settings for interrupt and DMA request., offset: 0xE08 */\r
+ uint8_t RESERVED_3[4];\r
+ __IO uint32_t FIFOINTENSET; /**< FIFO interrupt enable set (enable) and read register., offset: 0xE10 */\r
+ __IO uint32_t FIFOINTENCLR; /**< FIFO interrupt enable clear (disable) and read register., offset: 0xE14 */\r
+ __I uint32_t FIFOINTSTAT; /**< FIFO interrupt status register., offset: 0xE18 */\r
+ uint8_t RESERVED_4[4];\r
+ __O uint32_t FIFOWR; /**< FIFO write data., offset: 0xE20 */\r
+ uint8_t RESERVED_5[12];\r
+ __I uint32_t FIFORD; /**< FIFO read data., offset: 0xE30 */\r
+ uint8_t RESERVED_6[12];\r
+ __I uint32_t FIFORDNOPOP; /**< FIFO data read with no FIFO pop., offset: 0xE40 */\r
+ uint8_t RESERVED_7[440];\r
+ __I uint32_t ID; /**< Peripheral identification register., offset: 0xFFC */\r
} SPI_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CFG - SPI Configuration register */\r
/*! @{ */\r
-#define SPI_CFG_ENABLE_MASK (0x1U)\r
-#define SPI_CFG_ENABLE_SHIFT (0U)\r
+#define SPI_CFG_ENABLE_MASK (0x1U)\r
+#define SPI_CFG_ENABLE_SHIFT (0U)\r
/*! ENABLE - SPI enable.\r
* 0b0..Disabled. The SPI is disabled and the internal state machine and counters are reset.\r
* 0b1..Enabled. The SPI is enabled for operation.\r
*/\r
-#define SPI_CFG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_ENABLE_SHIFT)) & SPI_CFG_ENABLE_MASK)\r
-#define SPI_CFG_MASTER_MASK (0x4U)\r
-#define SPI_CFG_MASTER_SHIFT (2U)\r
+#define SPI_CFG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_ENABLE_SHIFT)) & SPI_CFG_ENABLE_MASK)\r
+#define SPI_CFG_MASTER_MASK (0x4U)\r
+#define SPI_CFG_MASTER_SHIFT (2U)\r
/*! MASTER - Master mode select.\r
* 0b0..Slave mode. The SPI will operate in slave mode. SCK, MOSI, and the SSEL signals are inputs, MISO is an output.\r
- * 0b1..Master mode. The SPI will operate in master mode. SCK, MOSI, and the SSEL signals are outputs, MISO is an input.\r
+ * 0b1..Master mode. The SPI will operate in master mode. SCK, MOSI, and the SSEL signals are outputs, MISO is an\r
+ * input.\r
*/\r
-#define SPI_CFG_MASTER(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_MASTER_SHIFT)) & SPI_CFG_MASTER_MASK)\r
-#define SPI_CFG_LSBF_MASK (0x8U)\r
-#define SPI_CFG_LSBF_SHIFT (3U)\r
+#define SPI_CFG_MASTER(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_MASTER_SHIFT)) & SPI_CFG_MASTER_MASK)\r
+#define SPI_CFG_LSBF_MASK (0x8U)\r
+#define SPI_CFG_LSBF_SHIFT (3U)\r
/*! LSBF - LSB First mode enable.\r
* 0b0..Standard. Data is transmitted and received in standard MSB first order.\r
* 0b1..Reverse. Data is transmitted and received in reverse order (LSB first).\r
*/\r
-#define SPI_CFG_LSBF(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_LSBF_SHIFT)) & SPI_CFG_LSBF_MASK)\r
-#define SPI_CFG_CPHA_MASK (0x10U)\r
-#define SPI_CFG_CPHA_SHIFT (4U)\r
+#define SPI_CFG_LSBF(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_LSBF_SHIFT)) & SPI_CFG_LSBF_MASK)\r
+#define SPI_CFG_CPHA_MASK (0x10U)\r
+#define SPI_CFG_CPHA_SHIFT (4U)\r
/*! CPHA - Clock Phase select.\r
- * 0b0..Change. The SPI captures serial data on the first clock transition of the transfer (when the clock changes away from the rest state). Data is changed on the following edge.\r
- * 0b1..Capture. The SPI changes serial data on the first clock transition of the transfer (when the clock changes away from the rest state). Data is captured on the following edge.\r
- */\r
-#define SPI_CFG_CPHA(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_CPHA_SHIFT)) & SPI_CFG_CPHA_MASK)\r
-#define SPI_CFG_CPOL_MASK (0x20U)\r
-#define SPI_CFG_CPOL_SHIFT (5U)\r
+ * 0b0..Change. The SPI captures serial data on the first clock transition of the transfer (when the clock\r
+ * changes away from the rest state). Data is changed on the following edge.\r
+ * 0b1..Capture. The SPI changes serial data on the first clock transition of the transfer (when the clock\r
+ * changes away from the rest state). Data is captured on the following edge.\r
+ */\r
+#define SPI_CFG_CPHA(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_CPHA_SHIFT)) & SPI_CFG_CPHA_MASK)\r
+#define SPI_CFG_CPOL_MASK (0x20U)\r
+#define SPI_CFG_CPOL_SHIFT (5U)\r
/*! CPOL - Clock Polarity select.\r
* 0b0..Low. The rest state of the clock (between transfers) is low.\r
* 0b1..High. The rest state of the clock (between transfers) is high.\r
*/\r
-#define SPI_CFG_CPOL(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_CPOL_SHIFT)) & SPI_CFG_CPOL_MASK)\r
-#define SPI_CFG_LOOP_MASK (0x80U)\r
-#define SPI_CFG_LOOP_SHIFT (7U)\r
-/*! LOOP - Loopback mode enable. Loopback mode applies only to Master mode, and connects transmit and receive data connected together to allow simple software testing.\r
+#define SPI_CFG_CPOL(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_CPOL_SHIFT)) & SPI_CFG_CPOL_MASK)\r
+#define SPI_CFG_LOOP_MASK (0x80U)\r
+#define SPI_CFG_LOOP_SHIFT (7U)\r
+/*! LOOP - Loopback mode enable. Loopback mode applies only to Master mode, and connects transmit\r
+ * and receive data connected together to allow simple software testing.\r
* 0b0..Disabled.\r
* 0b1..Enabled.\r
*/\r
-#define SPI_CFG_LOOP(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_LOOP_SHIFT)) & SPI_CFG_LOOP_MASK)\r
-#define SPI_CFG_SPOL0_MASK (0x100U)\r
-#define SPI_CFG_SPOL0_SHIFT (8U)\r
+#define SPI_CFG_LOOP(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_LOOP_SHIFT)) & SPI_CFG_LOOP_MASK)\r
+#define SPI_CFG_SPOL0_MASK (0x100U)\r
+#define SPI_CFG_SPOL0_SHIFT (8U)\r
/*! SPOL0 - SSEL0 Polarity select.\r
* 0b0..Low. The SSEL0 pin is active low.\r
* 0b1..High. The SSEL0 pin is active high.\r
*/\r
-#define SPI_CFG_SPOL0(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_SPOL0_SHIFT)) & SPI_CFG_SPOL0_MASK)\r
-#define SPI_CFG_SPOL1_MASK (0x200U)\r
-#define SPI_CFG_SPOL1_SHIFT (9U)\r
+#define SPI_CFG_SPOL0(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_SPOL0_SHIFT)) & SPI_CFG_SPOL0_MASK)\r
+#define SPI_CFG_SPOL1_MASK (0x200U)\r
+#define SPI_CFG_SPOL1_SHIFT (9U)\r
/*! SPOL1 - SSEL1 Polarity select.\r
* 0b0..Low. The SSEL1 pin is active low.\r
* 0b1..High. The SSEL1 pin is active high.\r
*/\r
-#define SPI_CFG_SPOL1(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_SPOL1_SHIFT)) & SPI_CFG_SPOL1_MASK)\r
-#define SPI_CFG_SPOL2_MASK (0x400U)\r
-#define SPI_CFG_SPOL2_SHIFT (10U)\r
+#define SPI_CFG_SPOL1(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_SPOL1_SHIFT)) & SPI_CFG_SPOL1_MASK)\r
+#define SPI_CFG_SPOL2_MASK (0x400U)\r
+#define SPI_CFG_SPOL2_SHIFT (10U)\r
/*! SPOL2 - SSEL2 Polarity select.\r
* 0b0..Low. The SSEL2 pin is active low.\r
* 0b1..High. The SSEL2 pin is active high.\r
*/\r
-#define SPI_CFG_SPOL2(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_SPOL2_SHIFT)) & SPI_CFG_SPOL2_MASK)\r
-#define SPI_CFG_SPOL3_MASK (0x800U)\r
-#define SPI_CFG_SPOL3_SHIFT (11U)\r
+#define SPI_CFG_SPOL2(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_SPOL2_SHIFT)) & SPI_CFG_SPOL2_MASK)\r
+#define SPI_CFG_SPOL3_MASK (0x800U)\r
+#define SPI_CFG_SPOL3_SHIFT (11U)\r
/*! SPOL3 - SSEL3 Polarity select.\r
* 0b0..Low. The SSEL3 pin is active low.\r
* 0b1..High. The SSEL3 pin is active high.\r
*/\r
-#define SPI_CFG_SPOL3(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_SPOL3_SHIFT)) & SPI_CFG_SPOL3_MASK)\r
+#define SPI_CFG_SPOL3(x) (((uint32_t)(((uint32_t)(x)) << SPI_CFG_SPOL3_SHIFT)) & SPI_CFG_SPOL3_MASK)\r
/*! @} */\r
\r
/*! @name DLY - SPI Delay register */\r
/*! @{ */\r
-#define SPI_DLY_PRE_DELAY_MASK (0xFU)\r
-#define SPI_DLY_PRE_DELAY_SHIFT (0U)\r
-#define SPI_DLY_PRE_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SPI_DLY_PRE_DELAY_SHIFT)) & SPI_DLY_PRE_DELAY_MASK)\r
-#define SPI_DLY_POST_DELAY_MASK (0xF0U)\r
-#define SPI_DLY_POST_DELAY_SHIFT (4U)\r
-#define SPI_DLY_POST_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SPI_DLY_POST_DELAY_SHIFT)) & SPI_DLY_POST_DELAY_MASK)\r
-#define SPI_DLY_FRAME_DELAY_MASK (0xF00U)\r
-#define SPI_DLY_FRAME_DELAY_SHIFT (8U)\r
-#define SPI_DLY_FRAME_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SPI_DLY_FRAME_DELAY_SHIFT)) & SPI_DLY_FRAME_DELAY_MASK)\r
-#define SPI_DLY_TRANSFER_DELAY_MASK (0xF000U)\r
-#define SPI_DLY_TRANSFER_DELAY_SHIFT (12U)\r
-#define SPI_DLY_TRANSFER_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SPI_DLY_TRANSFER_DELAY_SHIFT)) & SPI_DLY_TRANSFER_DELAY_MASK)\r
+#define SPI_DLY_PRE_DELAY_MASK (0xFU)\r
+#define SPI_DLY_PRE_DELAY_SHIFT (0U)\r
+/*! PRE_DELAY - Controls the amount of time between SSEL assertion and the beginning of a data\r
+ * transfer. There is always one SPI clock time between SSEL assertion and the first clock edge. This\r
+ * is not considered part of the pre-delay. 0x0 = No additional time is inserted. 0x1 = 1 SPI\r
+ * clock time is inserted. 0x2 = 2 SPI clock times are inserted. 0xF = 15 SPI clock times are\r
+ * inserted.\r
+ */\r
+#define SPI_DLY_PRE_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SPI_DLY_PRE_DELAY_SHIFT)) & SPI_DLY_PRE_DELAY_MASK)\r
+#define SPI_DLY_POST_DELAY_MASK (0xF0U)\r
+#define SPI_DLY_POST_DELAY_SHIFT (4U)\r
+/*! POST_DELAY - Controls the amount of time between the end of a data transfer and SSEL\r
+ * deassertion. 0x0 = No additional time is inserted. 0x1 = 1 SPI clock time is inserted. 0x2 = 2 SPI clock\r
+ * times are inserted. 0xF = 15 SPI clock times are inserted.\r
+ */\r
+#define SPI_DLY_POST_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SPI_DLY_POST_DELAY_SHIFT)) & SPI_DLY_POST_DELAY_MASK)\r
+#define SPI_DLY_FRAME_DELAY_MASK (0xF00U)\r
+#define SPI_DLY_FRAME_DELAY_SHIFT (8U)\r
+/*! FRAME_DELAY - If the EOF flag is set, controls the minimum amount of time between the current\r
+ * frame and the next frame (or SSEL deassertion if EOT). 0x0 = No additional time is inserted. 0x1\r
+ * = 1 SPI clock time is inserted. 0x2 = 2 SPI clock times are inserted. 0xF = 15 SPI clock\r
+ * times are inserted.\r
+ */\r
+#define SPI_DLY_FRAME_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SPI_DLY_FRAME_DELAY_SHIFT)) & SPI_DLY_FRAME_DELAY_MASK)\r
+#define SPI_DLY_TRANSFER_DELAY_MASK (0xF000U)\r
+#define SPI_DLY_TRANSFER_DELAY_SHIFT (12U)\r
+/*! TRANSFER_DELAY - Controls the minimum amount of time that the SSEL is deasserted between\r
+ * transfers. 0x0 = The minimum time that SSEL is deasserted is 1 SPI clock time. (Zero added time.) 0x1\r
+ * = The minimum time that SSEL is deasserted is 2 SPI clock times. 0x2 = The minimum time that\r
+ * SSEL is deasserted is 3 SPI clock times. 0xF = The minimum time that SSEL is deasserted is 16\r
+ * SPI clock times.\r
+ */\r
+#define SPI_DLY_TRANSFER_DELAY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_DLY_TRANSFER_DELAY_SHIFT)) & SPI_DLY_TRANSFER_DELAY_MASK)\r
/*! @} */\r
\r
/*! @name STAT - SPI Status. Some status flags can be cleared by writing a 1 to that bit position. */\r
/*! @{ */\r
-#define SPI_STAT_SSA_MASK (0x10U)\r
-#define SPI_STAT_SSA_SHIFT (4U)\r
-#define SPI_STAT_SSA(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_SSA_SHIFT)) & SPI_STAT_SSA_MASK)\r
-#define SPI_STAT_SSD_MASK (0x20U)\r
-#define SPI_STAT_SSD_SHIFT (5U)\r
-#define SPI_STAT_SSD(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_SSD_SHIFT)) & SPI_STAT_SSD_MASK)\r
-#define SPI_STAT_STALLED_MASK (0x40U)\r
-#define SPI_STAT_STALLED_SHIFT (6U)\r
-#define SPI_STAT_STALLED(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_STALLED_SHIFT)) & SPI_STAT_STALLED_MASK)\r
-#define SPI_STAT_ENDTRANSFER_MASK (0x80U)\r
-#define SPI_STAT_ENDTRANSFER_SHIFT (7U)\r
-#define SPI_STAT_ENDTRANSFER(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_ENDTRANSFER_SHIFT)) & SPI_STAT_ENDTRANSFER_MASK)\r
-#define SPI_STAT_MSTIDLE_MASK (0x100U)\r
-#define SPI_STAT_MSTIDLE_SHIFT (8U)\r
-#define SPI_STAT_MSTIDLE(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_MSTIDLE_SHIFT)) & SPI_STAT_MSTIDLE_MASK)\r
-/*! @} */\r
-\r
-/*! @name INTENSET - SPI Interrupt Enable read and Set. A complete value may be read from this register. Writing a 1 to any implemented bit position causes that bit to be set. */\r
-/*! @{ */\r
-#define SPI_INTENSET_SSAEN_MASK (0x10U)\r
-#define SPI_INTENSET_SSAEN_SHIFT (4U)\r
-/*! SSAEN - Slave select assert interrupt enable. Determines whether an interrupt occurs when the Slave Select is asserted.\r
- * 0b0..Disabled. No interrupt will be generated when any Slave Select transitions from deasserted to asserted.\r
- * 0b1..Enabled. An interrupt will be generated when any Slave Select transitions from deasserted to asserted.\r
- */\r
-#define SPI_INTENSET_SSAEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENSET_SSAEN_SHIFT)) & SPI_INTENSET_SSAEN_MASK)\r
-#define SPI_INTENSET_SSDEN_MASK (0x20U)\r
-#define SPI_INTENSET_SSDEN_SHIFT (5U)\r
-/*! SSDEN - Slave select deassert interrupt enable. Determines whether an interrupt occurs when the Slave Select is deasserted.\r
- * 0b0..Disabled. No interrupt will be generated when all asserted Slave Selects transition to deasserted.\r
+#define SPI_STAT_SSA_MASK (0x10U)\r
+#define SPI_STAT_SSA_SHIFT (4U)\r
+/*! SSA - Slave Select Assert. This flag is set whenever any slave select transitions from\r
+ * deasserted to asserted, in both master and slave modes. This allows determining when the SPI\r
+ * transmit/receive functions become busy, and allows waking up the device from reduced power modes when a\r
+ * slave mode access begins. This flag is cleared by software.\r
+ */\r
+#define SPI_STAT_SSA(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_SSA_SHIFT)) & SPI_STAT_SSA_MASK)\r
+#define SPI_STAT_SSD_MASK (0x20U)\r
+#define SPI_STAT_SSD_SHIFT (5U)\r
+/*! SSD - Slave Select Deassert. This flag is set whenever any asserted slave selects transition to\r
+ * deasserted, in both master and slave modes. This allows determining when the SPI\r
+ * transmit/receive functions become idle. This flag is cleared by software.\r
+ */\r
+#define SPI_STAT_SSD(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_SSD_SHIFT)) & SPI_STAT_SSD_MASK)\r
+#define SPI_STAT_STALLED_MASK (0x40U)\r
+#define SPI_STAT_STALLED_SHIFT (6U)\r
+/*! STALLED - Stalled status flag. This indicates whether the SPI is currently in a stall condition.\r
+ */\r
+#define SPI_STAT_STALLED(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_STALLED_SHIFT)) & SPI_STAT_STALLED_MASK)\r
+#define SPI_STAT_ENDTRANSFER_MASK (0x80U)\r
+#define SPI_STAT_ENDTRANSFER_SHIFT (7U)\r
+/*! ENDTRANSFER - End Transfer control bit. Software can set this bit to force an end to the current\r
+ * transfer when the transmitter finishes any activity already in progress, as if the EOT flag\r
+ * had been set prior to the last transmission. This capability is included to support cases where\r
+ * it is not known when transmit data is written that it will be the end of a transfer. The bit\r
+ * is cleared when the transmitter becomes idle as the transfer comes to an end. Forcing an end\r
+ * of transfer in this manner causes any specified FRAME_DELAY and TRANSFER_DELAY to be inserted.\r
+ */\r
+#define SPI_STAT_ENDTRANSFER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_STAT_ENDTRANSFER_SHIFT)) & SPI_STAT_ENDTRANSFER_MASK)\r
+#define SPI_STAT_MSTIDLE_MASK (0x100U)\r
+#define SPI_STAT_MSTIDLE_SHIFT (8U)\r
+/*! MSTIDLE - Master idle status flag. This bit is 1 whenever the SPI master function is fully idle.\r
+ * This means that the transmit holding register is empty and the transmitter is not in the\r
+ * process of sending data.\r
+ */\r
+#define SPI_STAT_MSTIDLE(x) (((uint32_t)(((uint32_t)(x)) << SPI_STAT_MSTIDLE_SHIFT)) & SPI_STAT_MSTIDLE_MASK)\r
+/*! @} */\r
+\r
+/*! @name INTENSET - SPI Interrupt Enable read and Set. A complete value may be read from this register. Writing a 1 to\r
+ * any implemented bit position causes that bit to be set. */\r
+/*! @{ */\r
+#define SPI_INTENSET_SSAEN_MASK (0x10U)\r
+#define SPI_INTENSET_SSAEN_SHIFT (4U)\r
+/*! SSAEN - Slave select assert interrupt enable. Determines whether an interrupt occurs when the Slave Select is\r
+ * asserted. 0b0..Disabled. No interrupt will be generated when any Slave Select transitions from deasserted to\r
+ * asserted. 0b1..Enabled. An interrupt will be generated when any Slave Select transitions from deasserted to asserted.\r
+ */\r
+#define SPI_INTENSET_SSAEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENSET_SSAEN_SHIFT)) & SPI_INTENSET_SSAEN_MASK)\r
+#define SPI_INTENSET_SSDEN_MASK (0x20U)\r
+#define SPI_INTENSET_SSDEN_SHIFT (5U)\r
+/*! SSDEN - Slave select deassert interrupt enable. Determines whether an interrupt occurs when the Slave Select is\r
+ * deasserted. 0b0..Disabled. No interrupt will be generated when all asserted Slave Selects transition to deasserted.\r
* 0b1..Enabled. An interrupt will be generated when all asserted Slave Selects transition to deasserted.\r
*/\r
-#define SPI_INTENSET_SSDEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENSET_SSDEN_SHIFT)) & SPI_INTENSET_SSDEN_MASK)\r
-#define SPI_INTENSET_MSTIDLEEN_MASK (0x100U)\r
-#define SPI_INTENSET_MSTIDLEEN_SHIFT (8U)\r
+#define SPI_INTENSET_SSDEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENSET_SSDEN_SHIFT)) & SPI_INTENSET_SSDEN_MASK)\r
+#define SPI_INTENSET_MSTIDLEEN_MASK (0x100U)\r
+#define SPI_INTENSET_MSTIDLEEN_SHIFT (8U)\r
/*! MSTIDLEEN - Master idle interrupt enable.\r
* 0b0..No interrupt will be generated when the SPI master function is idle.\r
* 0b1..An interrupt will be generated when the SPI master function is fully idle.\r
*/\r
-#define SPI_INTENSET_MSTIDLEEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENSET_MSTIDLEEN_SHIFT)) & SPI_INTENSET_MSTIDLEEN_MASK)\r
+#define SPI_INTENSET_MSTIDLEEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_INTENSET_MSTIDLEEN_SHIFT)) & SPI_INTENSET_MSTIDLEEN_MASK)\r
/*! @} */\r
\r
-/*! @name INTENCLR - SPI Interrupt Enable Clear. Writing a 1 to any implemented bit position causes the corresponding bit in INTENSET to be cleared. */\r
+/*! @name INTENCLR - SPI Interrupt Enable Clear. Writing a 1 to any implemented bit position causes the corresponding\r
+ * bit in INTENSET to be cleared. */\r
/*! @{ */\r
-#define SPI_INTENCLR_SSAEN_MASK (0x10U)\r
-#define SPI_INTENCLR_SSAEN_SHIFT (4U)\r
-#define SPI_INTENCLR_SSAEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENCLR_SSAEN_SHIFT)) & SPI_INTENCLR_SSAEN_MASK)\r
-#define SPI_INTENCLR_SSDEN_MASK (0x20U)\r
-#define SPI_INTENCLR_SSDEN_SHIFT (5U)\r
-#define SPI_INTENCLR_SSDEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENCLR_SSDEN_SHIFT)) & SPI_INTENCLR_SSDEN_MASK)\r
-#define SPI_INTENCLR_MSTIDLE_MASK (0x100U)\r
-#define SPI_INTENCLR_MSTIDLE_SHIFT (8U)\r
-#define SPI_INTENCLR_MSTIDLE(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENCLR_MSTIDLE_SHIFT)) & SPI_INTENCLR_MSTIDLE_MASK)\r
+#define SPI_INTENCLR_SSAEN_MASK (0x10U)\r
+#define SPI_INTENCLR_SSAEN_SHIFT (4U)\r
+/*! SSAEN - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define SPI_INTENCLR_SSAEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENCLR_SSAEN_SHIFT)) & SPI_INTENCLR_SSAEN_MASK)\r
+#define SPI_INTENCLR_SSDEN_MASK (0x20U)\r
+#define SPI_INTENCLR_SSDEN_SHIFT (5U)\r
+/*! SSDEN - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define SPI_INTENCLR_SSDEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTENCLR_SSDEN_SHIFT)) & SPI_INTENCLR_SSDEN_MASK)\r
+#define SPI_INTENCLR_MSTIDLE_MASK (0x100U)\r
+#define SPI_INTENCLR_MSTIDLE_SHIFT (8U)\r
+/*! MSTIDLE - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define SPI_INTENCLR_MSTIDLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_INTENCLR_MSTIDLE_SHIFT)) & SPI_INTENCLR_MSTIDLE_MASK)\r
/*! @} */\r
\r
/*! @name DIV - SPI clock Divider */\r
/*! @{ */\r
-#define SPI_DIV_DIVVAL_MASK (0xFFFFU)\r
-#define SPI_DIV_DIVVAL_SHIFT (0U)\r
-#define SPI_DIV_DIVVAL(x) (((uint32_t)(((uint32_t)(x)) << SPI_DIV_DIVVAL_SHIFT)) & SPI_DIV_DIVVAL_MASK)\r
+#define SPI_DIV_DIVVAL_MASK (0xFFFFU)\r
+#define SPI_DIV_DIVVAL_SHIFT (0U)\r
+/*! DIVVAL - Rate divider value. Specifies how the Flexcomm clock (FCLK) is divided to produce the\r
+ * SPI clock rate in master mode. DIVVAL is -1 encoded such that the value 0 results in FCLK/1,\r
+ * the value 1 results in FCLK/2, up to the maximum possible divide value of 0xFFFF, which results\r
+ * in FCLK/65536.\r
+ */\r
+#define SPI_DIV_DIVVAL(x) (((uint32_t)(((uint32_t)(x)) << SPI_DIV_DIVVAL_SHIFT)) & SPI_DIV_DIVVAL_MASK)\r
/*! @} */\r
\r
/*! @name INTSTAT - SPI Interrupt Status */\r
/*! @{ */\r
-#define SPI_INTSTAT_SSA_MASK (0x10U)\r
-#define SPI_INTSTAT_SSA_SHIFT (4U)\r
-#define SPI_INTSTAT_SSA(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTSTAT_SSA_SHIFT)) & SPI_INTSTAT_SSA_MASK)\r
-#define SPI_INTSTAT_SSD_MASK (0x20U)\r
-#define SPI_INTSTAT_SSD_SHIFT (5U)\r
-#define SPI_INTSTAT_SSD(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTSTAT_SSD_SHIFT)) & SPI_INTSTAT_SSD_MASK)\r
-#define SPI_INTSTAT_MSTIDLE_MASK (0x100U)\r
-#define SPI_INTSTAT_MSTIDLE_SHIFT (8U)\r
-#define SPI_INTSTAT_MSTIDLE(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTSTAT_MSTIDLE_SHIFT)) & SPI_INTSTAT_MSTIDLE_MASK)\r
+#define SPI_INTSTAT_SSA_MASK (0x10U)\r
+#define SPI_INTSTAT_SSA_SHIFT (4U)\r
+/*! SSA - Slave Select Assert.\r
+ */\r
+#define SPI_INTSTAT_SSA(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTSTAT_SSA_SHIFT)) & SPI_INTSTAT_SSA_MASK)\r
+#define SPI_INTSTAT_SSD_MASK (0x20U)\r
+#define SPI_INTSTAT_SSD_SHIFT (5U)\r
+/*! SSD - Slave Select Deassert.\r
+ */\r
+#define SPI_INTSTAT_SSD(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTSTAT_SSD_SHIFT)) & SPI_INTSTAT_SSD_MASK)\r
+#define SPI_INTSTAT_MSTIDLE_MASK (0x100U)\r
+#define SPI_INTSTAT_MSTIDLE_SHIFT (8U)\r
+/*! MSTIDLE - Master Idle status flag.\r
+ */\r
+#define SPI_INTSTAT_MSTIDLE(x) (((uint32_t)(((uint32_t)(x)) << SPI_INTSTAT_MSTIDLE_SHIFT)) & SPI_INTSTAT_MSTIDLE_MASK)\r
/*! @} */\r
\r
/*! @name FIFOCFG - FIFO configuration and enable register. */\r
/*! @{ */\r
-#define SPI_FIFOCFG_ENABLETX_MASK (0x1U)\r
-#define SPI_FIFOCFG_ENABLETX_SHIFT (0U)\r
+#define SPI_FIFOCFG_ENABLETX_MASK (0x1U)\r
+#define SPI_FIFOCFG_ENABLETX_SHIFT (0U)\r
/*! ENABLETX - Enable the transmit FIFO.\r
* 0b0..The transmit FIFO is not enabled.\r
* 0b1..The transmit FIFO is enabled.\r
*/\r
-#define SPI_FIFOCFG_ENABLETX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_ENABLETX_SHIFT)) & SPI_FIFOCFG_ENABLETX_MASK)\r
-#define SPI_FIFOCFG_ENABLERX_MASK (0x2U)\r
-#define SPI_FIFOCFG_ENABLERX_SHIFT (1U)\r
+#define SPI_FIFOCFG_ENABLETX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_ENABLETX_SHIFT)) & SPI_FIFOCFG_ENABLETX_MASK)\r
+#define SPI_FIFOCFG_ENABLERX_MASK (0x2U)\r
+#define SPI_FIFOCFG_ENABLERX_SHIFT (1U)\r
/*! ENABLERX - Enable the receive FIFO.\r
* 0b0..The receive FIFO is not enabled.\r
* 0b1..The receive FIFO is enabled.\r
*/\r
-#define SPI_FIFOCFG_ENABLERX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_ENABLERX_SHIFT)) & SPI_FIFOCFG_ENABLERX_MASK)\r
-#define SPI_FIFOCFG_SIZE_MASK (0x30U)\r
-#define SPI_FIFOCFG_SIZE_SHIFT (4U)\r
-#define SPI_FIFOCFG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_SIZE_SHIFT)) & SPI_FIFOCFG_SIZE_MASK)\r
-#define SPI_FIFOCFG_DMATX_MASK (0x1000U)\r
-#define SPI_FIFOCFG_DMATX_SHIFT (12U)\r
+#define SPI_FIFOCFG_ENABLERX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_ENABLERX_SHIFT)) & SPI_FIFOCFG_ENABLERX_MASK)\r
+#define SPI_FIFOCFG_SIZE_MASK (0x30U)\r
+#define SPI_FIFOCFG_SIZE_SHIFT (4U)\r
+/*! SIZE - FIFO size configuration. This is a read-only field. 0x0 = FIFO is configured as 16\r
+ * entries of 8 bits. 0x1, 0x2, 0x3 = not applicable to USART.\r
+ */\r
+#define SPI_FIFOCFG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_SIZE_SHIFT)) & SPI_FIFOCFG_SIZE_MASK)\r
+#define SPI_FIFOCFG_DMATX_MASK (0x1000U)\r
+#define SPI_FIFOCFG_DMATX_SHIFT (12U)\r
/*! DMATX - DMA configuration for transmit.\r
* 0b0..DMA is not used for the transmit function.\r
- * 0b1..Trigger DMA for the transmit function if the FIFO is not full. Generally, data interrupts would be disabled if DMA is enabled.\r
+ * 0b1..Trigger DMA for the transmit function if the FIFO is not full. Generally, data interrupts would be disabled if\r
+ * DMA is enabled.\r
*/\r
-#define SPI_FIFOCFG_DMATX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_DMATX_SHIFT)) & SPI_FIFOCFG_DMATX_MASK)\r
-#define SPI_FIFOCFG_DMARX_MASK (0x2000U)\r
-#define SPI_FIFOCFG_DMARX_SHIFT (13U)\r
+#define SPI_FIFOCFG_DMATX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_DMATX_SHIFT)) & SPI_FIFOCFG_DMATX_MASK)\r
+#define SPI_FIFOCFG_DMARX_MASK (0x2000U)\r
+#define SPI_FIFOCFG_DMARX_SHIFT (13U)\r
/*! DMARX - DMA configuration for receive.\r
* 0b0..DMA is not used for the receive function.\r
- * 0b1..Trigger DMA for the receive function if the FIFO is not empty. Generally, data interrupts would be disabled if DMA is enabled.\r
- */\r
-#define SPI_FIFOCFG_DMARX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_DMARX_SHIFT)) & SPI_FIFOCFG_DMARX_MASK)\r
-#define SPI_FIFOCFG_WAKETX_MASK (0x4000U)\r
-#define SPI_FIFOCFG_WAKETX_SHIFT (14U)\r
-/*! WAKETX - Wake-up for transmit FIFO level. This allows the device to be woken from reduced power modes (up to power-down, as long as the peripheral function works in that power mode) without enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware Wake-up control register.\r
+ * 0b1..Trigger DMA for the receive function if the FIFO is not empty. Generally, data interrupts would be disabled if\r
+ * DMA is enabled.\r
+ */\r
+#define SPI_FIFOCFG_DMARX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_DMARX_SHIFT)) & SPI_FIFOCFG_DMARX_MASK)\r
+#define SPI_FIFOCFG_WAKETX_MASK (0x4000U)\r
+#define SPI_FIFOCFG_WAKETX_SHIFT (14U)\r
+/*! WAKETX - Wake-up for transmit FIFO level. This allows the device to be woken from reduced power\r
+ * modes (up to power-down, as long as the peripheral function works in that power mode) without\r
+ * enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The\r
+ * CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware\r
+ * Wake-up control register.\r
* 0b0..Only enabled interrupts will wake up the device form reduced power modes.\r
- * 0b1..A device wake-up for DMA will occur if the transmit FIFO level reaches the value specified by TXLVL in FIFOTRIG, even when the TXLVL interrupt is not enabled.\r
- */\r
-#define SPI_FIFOCFG_WAKETX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_WAKETX_SHIFT)) & SPI_FIFOCFG_WAKETX_MASK)\r
-#define SPI_FIFOCFG_WAKERX_MASK (0x8000U)\r
-#define SPI_FIFOCFG_WAKERX_SHIFT (15U)\r
-/*! WAKERX - Wake-up for receive FIFO level. This allows the device to be woken from reduced power modes (up to power-down, as long as the peripheral function works in that power mode) without enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware Wake-up control register.\r
+ * 0b1..A device wake-up for DMA will occur if the transmit FIFO level reaches the value specified by TXLVL in\r
+ * FIFOTRIG, even when the TXLVL interrupt is not enabled.\r
+ */\r
+#define SPI_FIFOCFG_WAKETX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_WAKETX_SHIFT)) & SPI_FIFOCFG_WAKETX_MASK)\r
+#define SPI_FIFOCFG_WAKERX_MASK (0x8000U)\r
+#define SPI_FIFOCFG_WAKERX_SHIFT (15U)\r
+/*! WAKERX - Wake-up for receive FIFO level. This allows the device to be woken from reduced power\r
+ * modes (up to power-down, as long as the peripheral function works in that power mode) without\r
+ * enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The\r
+ * CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware\r
+ * Wake-up control register.\r
* 0b0..Only enabled interrupts will wake up the device form reduced power modes.\r
- * 0b1..A device wake-up for DMA will occur if the receive FIFO level reaches the value specified by RXLVL in FIFOTRIG, even when the RXLVL interrupt is not enabled.\r
+ * 0b1..A device wake-up for DMA will occur if the receive FIFO level reaches the value specified by RXLVL in\r
+ * FIFOTRIG, even when the RXLVL interrupt is not enabled.\r
+ */\r
+#define SPI_FIFOCFG_WAKERX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_WAKERX_SHIFT)) & SPI_FIFOCFG_WAKERX_MASK)\r
+#define SPI_FIFOCFG_EMPTYTX_MASK (0x10000U)\r
+#define SPI_FIFOCFG_EMPTYTX_SHIFT (16U)\r
+/*! EMPTYTX - Empty command for the transmit FIFO. When a 1 is written to this bit, the TX FIFO is emptied.\r
*/\r
-#define SPI_FIFOCFG_WAKERX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_WAKERX_SHIFT)) & SPI_FIFOCFG_WAKERX_MASK)\r
-#define SPI_FIFOCFG_EMPTYTX_MASK (0x10000U)\r
-#define SPI_FIFOCFG_EMPTYTX_SHIFT (16U)\r
-#define SPI_FIFOCFG_EMPTYTX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_EMPTYTX_SHIFT)) & SPI_FIFOCFG_EMPTYTX_MASK)\r
-#define SPI_FIFOCFG_EMPTYRX_MASK (0x20000U)\r
-#define SPI_FIFOCFG_EMPTYRX_SHIFT (17U)\r
-#define SPI_FIFOCFG_EMPTYRX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_EMPTYRX_SHIFT)) & SPI_FIFOCFG_EMPTYRX_MASK)\r
-#define SPI_FIFOCFG_POPDBG_MASK (0x40000U)\r
-#define SPI_FIFOCFG_POPDBG_SHIFT (18U)\r
-/*! POPDBG - Pop FIFO for debug reads.\r
- * 0b0..Debug reads of the FIFO do not pop the FIFO.\r
- * 0b1..A debug read will cause the FIFO to pop.\r
+#define SPI_FIFOCFG_EMPTYTX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_EMPTYTX_SHIFT)) & SPI_FIFOCFG_EMPTYTX_MASK)\r
+#define SPI_FIFOCFG_EMPTYRX_MASK (0x20000U)\r
+#define SPI_FIFOCFG_EMPTYRX_SHIFT (17U)\r
+/*! EMPTYRX - Empty command for the receive FIFO. When a 1 is written to this bit, the RX FIFO is emptied.\r
*/\r
-#define SPI_FIFOCFG_POPDBG(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_POPDBG_SHIFT)) & SPI_FIFOCFG_POPDBG_MASK)\r
+#define SPI_FIFOCFG_EMPTYRX(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOCFG_EMPTYRX_SHIFT)) & SPI_FIFOCFG_EMPTYRX_MASK)\r
/*! @} */\r
\r
/*! @name FIFOSTAT - FIFO status register. */\r
/*! @{ */\r
-#define SPI_FIFOSTAT_TXERR_MASK (0x1U)\r
-#define SPI_FIFOSTAT_TXERR_SHIFT (0U)\r
-#define SPI_FIFOSTAT_TXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_TXERR_SHIFT)) & SPI_FIFOSTAT_TXERR_MASK)\r
-#define SPI_FIFOSTAT_RXERR_MASK (0x2U)\r
-#define SPI_FIFOSTAT_RXERR_SHIFT (1U)\r
-#define SPI_FIFOSTAT_RXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_RXERR_SHIFT)) & SPI_FIFOSTAT_RXERR_MASK)\r
-#define SPI_FIFOSTAT_PERINT_MASK (0x8U)\r
-#define SPI_FIFOSTAT_PERINT_SHIFT (3U)\r
-#define SPI_FIFOSTAT_PERINT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_PERINT_SHIFT)) & SPI_FIFOSTAT_PERINT_MASK)\r
-#define SPI_FIFOSTAT_TXEMPTY_MASK (0x10U)\r
-#define SPI_FIFOSTAT_TXEMPTY_SHIFT (4U)\r
-#define SPI_FIFOSTAT_TXEMPTY(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_TXEMPTY_SHIFT)) & SPI_FIFOSTAT_TXEMPTY_MASK)\r
-#define SPI_FIFOSTAT_TXNOTFULL_MASK (0x20U)\r
-#define SPI_FIFOSTAT_TXNOTFULL_SHIFT (5U)\r
-#define SPI_FIFOSTAT_TXNOTFULL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_TXNOTFULL_SHIFT)) & SPI_FIFOSTAT_TXNOTFULL_MASK)\r
-#define SPI_FIFOSTAT_RXNOTEMPTY_MASK (0x40U)\r
-#define SPI_FIFOSTAT_RXNOTEMPTY_SHIFT (6U)\r
-#define SPI_FIFOSTAT_RXNOTEMPTY(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_RXNOTEMPTY_SHIFT)) & SPI_FIFOSTAT_RXNOTEMPTY_MASK)\r
-#define SPI_FIFOSTAT_RXFULL_MASK (0x80U)\r
-#define SPI_FIFOSTAT_RXFULL_SHIFT (7U)\r
-#define SPI_FIFOSTAT_RXFULL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_RXFULL_SHIFT)) & SPI_FIFOSTAT_RXFULL_MASK)\r
-#define SPI_FIFOSTAT_TXLVL_MASK (0x1F00U)\r
-#define SPI_FIFOSTAT_TXLVL_SHIFT (8U)\r
-#define SPI_FIFOSTAT_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_TXLVL_SHIFT)) & SPI_FIFOSTAT_TXLVL_MASK)\r
-#define SPI_FIFOSTAT_RXLVL_MASK (0x1F0000U)\r
-#define SPI_FIFOSTAT_RXLVL_SHIFT (16U)\r
-#define SPI_FIFOSTAT_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_RXLVL_SHIFT)) & SPI_FIFOSTAT_RXLVL_MASK)\r
+#define SPI_FIFOSTAT_TXERR_MASK (0x1U)\r
+#define SPI_FIFOSTAT_TXERR_SHIFT (0U)\r
+/*! TXERR - TX FIFO error. Will be set if a transmit FIFO error occurs. This could be an overflow\r
+ * caused by pushing data into a full FIFO, or by an underflow if the FIFO is empty when data is\r
+ * needed. Cleared by writing a 1 to this bit.\r
+ */\r
+#define SPI_FIFOSTAT_TXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_TXERR_SHIFT)) & SPI_FIFOSTAT_TXERR_MASK)\r
+#define SPI_FIFOSTAT_RXERR_MASK (0x2U)\r
+#define SPI_FIFOSTAT_RXERR_SHIFT (1U)\r
+/*! RXERR - RX FIFO error. Will be set if a receive FIFO overflow occurs, caused by software or DMA\r
+ * not emptying the FIFO fast enough. Cleared by writing a 1 to this bit.\r
+ */\r
+#define SPI_FIFOSTAT_RXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_RXERR_SHIFT)) & SPI_FIFOSTAT_RXERR_MASK)\r
+#define SPI_FIFOSTAT_PERINT_MASK (0x8U)\r
+#define SPI_FIFOSTAT_PERINT_SHIFT (3U)\r
+/*! PERINT - Peripheral interrupt. When 1, this indicates that the peripheral function has asserted\r
+ * an interrupt. The details can be found by reading the peripheral's STAT register.\r
+ */\r
+#define SPI_FIFOSTAT_PERINT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_PERINT_SHIFT)) & SPI_FIFOSTAT_PERINT_MASK)\r
+#define SPI_FIFOSTAT_TXEMPTY_MASK (0x10U)\r
+#define SPI_FIFOSTAT_TXEMPTY_SHIFT (4U)\r
+/*! TXEMPTY - Transmit FIFO empty. When 1, the transmit FIFO is empty. The peripheral may still be processing the last\r
+ * piece of data.\r
+ */\r
+#define SPI_FIFOSTAT_TXEMPTY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_TXEMPTY_SHIFT)) & SPI_FIFOSTAT_TXEMPTY_MASK)\r
+#define SPI_FIFOSTAT_TXNOTFULL_MASK (0x20U)\r
+#define SPI_FIFOSTAT_TXNOTFULL_SHIFT (5U)\r
+/*! TXNOTFULL - Transmit FIFO not full. When 1, the transmit FIFO is not full, so more data can be\r
+ * written. When 0, the transmit FIFO is full and another write would cause it to overflow.\r
+ */\r
+#define SPI_FIFOSTAT_TXNOTFULL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_TXNOTFULL_SHIFT)) & SPI_FIFOSTAT_TXNOTFULL_MASK)\r
+#define SPI_FIFOSTAT_RXNOTEMPTY_MASK (0x40U)\r
+#define SPI_FIFOSTAT_RXNOTEMPTY_SHIFT (6U)\r
+/*! RXNOTEMPTY - Receive FIFO not empty. When 1, the receive FIFO is not empty, so data can be read. When 0, the receive\r
+ * FIFO is empty.\r
+ */\r
+#define SPI_FIFOSTAT_RXNOTEMPTY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_RXNOTEMPTY_SHIFT)) & SPI_FIFOSTAT_RXNOTEMPTY_MASK)\r
+#define SPI_FIFOSTAT_RXFULL_MASK (0x80U)\r
+#define SPI_FIFOSTAT_RXFULL_SHIFT (7U)\r
+/*! RXFULL - Receive FIFO full. When 1, the receive FIFO is full. Data needs to be read out to\r
+ * prevent the peripheral from causing an overflow.\r
+ */\r
+#define SPI_FIFOSTAT_RXFULL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_RXFULL_SHIFT)) & SPI_FIFOSTAT_RXFULL_MASK)\r
+#define SPI_FIFOSTAT_TXLVL_MASK (0x1F00U)\r
+#define SPI_FIFOSTAT_TXLVL_SHIFT (8U)\r
+/*! TXLVL - Transmit FIFO current level. A 0 means the TX FIFO is currently empty, and the TXEMPTY\r
+ * and TXNOTFULL flags will be 1. Other values tell how much data is actually in the TX FIFO at\r
+ * the point where the read occurs. If the TX FIFO is full, the TXEMPTY and TXNOTFULL flags will be\r
+ * 0.\r
+ */\r
+#define SPI_FIFOSTAT_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_TXLVL_SHIFT)) & SPI_FIFOSTAT_TXLVL_MASK)\r
+#define SPI_FIFOSTAT_RXLVL_MASK (0x1F0000U)\r
+#define SPI_FIFOSTAT_RXLVL_SHIFT (16U)\r
+/*! RXLVL - Receive FIFO current level. A 0 means the RX FIFO is currently empty, and the RXFULL and\r
+ * RXNOTEMPTY flags will be 0. Other values tell how much data is actually in the RX FIFO at the\r
+ * point where the read occurs. If the RX FIFO is full, the RXFULL and RXNOTEMPTY flags will be\r
+ * 1.\r
+ */\r
+#define SPI_FIFOSTAT_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOSTAT_RXLVL_SHIFT)) & SPI_FIFOSTAT_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOTRIG - FIFO trigger settings for interrupt and DMA request. */\r
/*! @{ */\r
-#define SPI_FIFOTRIG_TXLVLENA_MASK (0x1U)\r
-#define SPI_FIFOTRIG_TXLVLENA_SHIFT (0U)\r
-/*! TXLVLENA - Transmit FIFO level trigger enable. This trigger will become an interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMATX in FIFOCFG is set.\r
+#define SPI_FIFOTRIG_TXLVLENA_MASK (0x1U)\r
+#define SPI_FIFOTRIG_TXLVLENA_SHIFT (0U)\r
+/*! TXLVLENA - Transmit FIFO level trigger enable. This trigger will become an interrupt if enabled\r
+ * in FIFOINTENSET, or a DMA trigger if DMATX in FIFOCFG is set.\r
* 0b0..Transmit FIFO level does not generate a FIFO level trigger.\r
- * 0b1..An trigger will be generated if the transmit FIFO level reaches the value specified by the TXLVL field in this register.\r
- */\r
-#define SPI_FIFOTRIG_TXLVLENA(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOTRIG_TXLVLENA_SHIFT)) & SPI_FIFOTRIG_TXLVLENA_MASK)\r
-#define SPI_FIFOTRIG_RXLVLENA_MASK (0x2U)\r
-#define SPI_FIFOTRIG_RXLVLENA_SHIFT (1U)\r
-/*! RXLVLENA - Receive FIFO level trigger enable. This trigger will become an interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMARX in FIFOCFG is set.\r
+ * 0b1..An trigger will be generated if the transmit FIFO level reaches the value specified by the TXLVL field in this\r
+ * register.\r
+ */\r
+#define SPI_FIFOTRIG_TXLVLENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOTRIG_TXLVLENA_SHIFT)) & SPI_FIFOTRIG_TXLVLENA_MASK)\r
+#define SPI_FIFOTRIG_RXLVLENA_MASK (0x2U)\r
+#define SPI_FIFOTRIG_RXLVLENA_SHIFT (1U)\r
+/*! RXLVLENA - Receive FIFO level trigger enable. This trigger will become an interrupt if enabled\r
+ * in FIFOINTENSET, or a DMA trigger if DMARX in FIFOCFG is set.\r
* 0b0..Receive FIFO level does not generate a FIFO level trigger.\r
- * 0b1..An trigger will be generated if the receive FIFO level reaches the value specified by the RXLVL field in this register.\r
- */\r
-#define SPI_FIFOTRIG_RXLVLENA(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOTRIG_RXLVLENA_SHIFT)) & SPI_FIFOTRIG_RXLVLENA_MASK)\r
-#define SPI_FIFOTRIG_TXLVL_MASK (0xF00U)\r
-#define SPI_FIFOTRIG_TXLVL_SHIFT (8U)\r
-#define SPI_FIFOTRIG_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOTRIG_TXLVL_SHIFT)) & SPI_FIFOTRIG_TXLVL_MASK)\r
-#define SPI_FIFOTRIG_RXLVL_MASK (0xF0000U)\r
-#define SPI_FIFOTRIG_RXLVL_SHIFT (16U)\r
-#define SPI_FIFOTRIG_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOTRIG_RXLVL_SHIFT)) & SPI_FIFOTRIG_RXLVL_MASK)\r
+ * 0b1..An trigger will be generated if the receive FIFO level reaches the value specified by the RXLVL field in this\r
+ * register.\r
+ */\r
+#define SPI_FIFOTRIG_RXLVLENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOTRIG_RXLVLENA_SHIFT)) & SPI_FIFOTRIG_RXLVLENA_MASK)\r
+#define SPI_FIFOTRIG_TXLVL_MASK (0xF00U)\r
+#define SPI_FIFOTRIG_TXLVL_SHIFT (8U)\r
+/*! TXLVL - Transmit FIFO level trigger point. This field is used only when TXLVLENA = 1. If enabled\r
+ * to do so, the FIFO level can wake up the device just enough to perform DMA, then return to\r
+ * the reduced power mode. See Hardware Wake-up control register. 0 = trigger when the TX FIFO\r
+ * becomes empty. 1 = trigger when the TX FIFO level decreases to one entry. 15 = trigger when the TX\r
+ * FIFO level decreases to 15 entries (is no longer full).\r
+ */\r
+#define SPI_FIFOTRIG_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOTRIG_TXLVL_SHIFT)) & SPI_FIFOTRIG_TXLVL_MASK)\r
+#define SPI_FIFOTRIG_RXLVL_MASK (0xF0000U)\r
+#define SPI_FIFOTRIG_RXLVL_SHIFT (16U)\r
+/*! RXLVL - Receive FIFO level trigger point. The RX FIFO level is checked when a new piece of data\r
+ * is received. This field is used only when RXLVLENA = 1. If enabled to do so, the FIFO level\r
+ * can wake up the device just enough to perform DMA, then return to the reduced power mode. See\r
+ * Hardware Wake-up control register. 0 = trigger when the RX FIFO has received one entry (is no\r
+ * longer empty). 1 = trigger when the RX FIFO has received two entries. 15 = trigger when the RX\r
+ * FIFO has received 16 entries (has become full).\r
+ */\r
+#define SPI_FIFOTRIG_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOTRIG_RXLVL_SHIFT)) & SPI_FIFOTRIG_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTENSET - FIFO interrupt enable set (enable) and read register. */\r
/*! @{ */\r
-#define SPI_FIFOINTENSET_TXERR_MASK (0x1U)\r
-#define SPI_FIFOINTENSET_TXERR_SHIFT (0U)\r
-/*! TXERR - Determines whether an interrupt occurs when a transmit error occurs, based on the TXERR flag in the FIFOSTAT register.\r
- * 0b0..No interrupt will be generated for a transmit error.\r
- * 0b1..An interrupt will be generated when a transmit error occurs.\r
- */\r
-#define SPI_FIFOINTENSET_TXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENSET_TXERR_SHIFT)) & SPI_FIFOINTENSET_TXERR_MASK)\r
-#define SPI_FIFOINTENSET_RXERR_MASK (0x2U)\r
-#define SPI_FIFOINTENSET_RXERR_SHIFT (1U)\r
-/*! RXERR - Determines whether an interrupt occurs when a receive error occurs, based on the RXERR flag in the FIFOSTAT register.\r
- * 0b0..No interrupt will be generated for a receive error.\r
- * 0b1..An interrupt will be generated when a receive error occurs.\r
- */\r
-#define SPI_FIFOINTENSET_RXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENSET_RXERR_SHIFT)) & SPI_FIFOINTENSET_RXERR_MASK)\r
-#define SPI_FIFOINTENSET_TXLVL_MASK (0x4U)\r
-#define SPI_FIFOINTENSET_TXLVL_SHIFT (2U)\r
-/*! TXLVL - Determines whether an interrupt occurs when a the transmit FIFO reaches the level specified by the TXLVL field in the FIFOTRIG register.\r
+#define SPI_FIFOINTENSET_TXERR_MASK (0x1U)\r
+#define SPI_FIFOINTENSET_TXERR_SHIFT (0U)\r
+/*! TXERR - Determines whether an interrupt occurs when a transmit error occurs, based on the TXERR flag in the FIFOSTAT\r
+ * register. 0b0..No interrupt will be generated for a transmit error. 0b1..An interrupt will be generated when a\r
+ * transmit error occurs.\r
+ */\r
+#define SPI_FIFOINTENSET_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENSET_TXERR_SHIFT)) & SPI_FIFOINTENSET_TXERR_MASK)\r
+#define SPI_FIFOINTENSET_RXERR_MASK (0x2U)\r
+#define SPI_FIFOINTENSET_RXERR_SHIFT (1U)\r
+/*! RXERR - Determines whether an interrupt occurs when a receive error occurs, based on the RXERR flag in the FIFOSTAT\r
+ * register. 0b0..No interrupt will be generated for a receive error. 0b1..An interrupt will be generated when a receive\r
+ * error occurs.\r
+ */\r
+#define SPI_FIFOINTENSET_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENSET_RXERR_SHIFT)) & SPI_FIFOINTENSET_RXERR_MASK)\r
+#define SPI_FIFOINTENSET_TXLVL_MASK (0x4U)\r
+#define SPI_FIFOINTENSET_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Determines whether an interrupt occurs when a the transmit FIFO reaches the level\r
+ * specified by the TXLVL field in the FIFOTRIG register.\r
* 0b0..No interrupt will be generated based on the TX FIFO level.\r
- * 0b1..If TXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the TX FIFO level decreases to the level specified by TXLVL in the FIFOTRIG register.\r
- */\r
-#define SPI_FIFOINTENSET_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENSET_TXLVL_SHIFT)) & SPI_FIFOINTENSET_TXLVL_MASK)\r
-#define SPI_FIFOINTENSET_RXLVL_MASK (0x8U)\r
-#define SPI_FIFOINTENSET_RXLVL_SHIFT (3U)\r
-/*! RXLVL - Determines whether an interrupt occurs when a the receive FIFO reaches the level specified by the TXLVL field in the FIFOTRIG register.\r
+ * 0b1..If TXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the TX FIFO level decreases\r
+ * to the level specified by TXLVL in the FIFOTRIG register.\r
+ */\r
+#define SPI_FIFOINTENSET_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENSET_TXLVL_SHIFT)) & SPI_FIFOINTENSET_TXLVL_MASK)\r
+#define SPI_FIFOINTENSET_RXLVL_MASK (0x8U)\r
+#define SPI_FIFOINTENSET_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Determines whether an interrupt occurs when a the receive FIFO reaches the level\r
+ * specified by the TXLVL field in the FIFOTRIG register.\r
* 0b0..No interrupt will be generated based on the RX FIFO level.\r
- * 0b1..If RXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the when the RX FIFO level increases to the level specified by RXLVL in the FIFOTRIG register.\r
+ * 0b1..If RXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the when the RX FIFO level\r
+ * increases to the level specified by RXLVL in the FIFOTRIG register.\r
*/\r
-#define SPI_FIFOINTENSET_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENSET_RXLVL_SHIFT)) & SPI_FIFOINTENSET_RXLVL_MASK)\r
+#define SPI_FIFOINTENSET_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENSET_RXLVL_SHIFT)) & SPI_FIFOINTENSET_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTENCLR - FIFO interrupt enable clear (disable) and read register. */\r
/*! @{ */\r
-#define SPI_FIFOINTENCLR_TXERR_MASK (0x1U)\r
-#define SPI_FIFOINTENCLR_TXERR_SHIFT (0U)\r
-#define SPI_FIFOINTENCLR_TXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENCLR_TXERR_SHIFT)) & SPI_FIFOINTENCLR_TXERR_MASK)\r
-#define SPI_FIFOINTENCLR_RXERR_MASK (0x2U)\r
-#define SPI_FIFOINTENCLR_RXERR_SHIFT (1U)\r
-#define SPI_FIFOINTENCLR_RXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENCLR_RXERR_SHIFT)) & SPI_FIFOINTENCLR_RXERR_MASK)\r
-#define SPI_FIFOINTENCLR_TXLVL_MASK (0x4U)\r
-#define SPI_FIFOINTENCLR_TXLVL_SHIFT (2U)\r
-#define SPI_FIFOINTENCLR_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENCLR_TXLVL_SHIFT)) & SPI_FIFOINTENCLR_TXLVL_MASK)\r
-#define SPI_FIFOINTENCLR_RXLVL_MASK (0x8U)\r
-#define SPI_FIFOINTENCLR_RXLVL_SHIFT (3U)\r
-#define SPI_FIFOINTENCLR_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENCLR_RXLVL_SHIFT)) & SPI_FIFOINTENCLR_RXLVL_MASK)\r
+#define SPI_FIFOINTENCLR_TXERR_MASK (0x1U)\r
+#define SPI_FIFOINTENCLR_TXERR_SHIFT (0U)\r
+/*! TXERR - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define SPI_FIFOINTENCLR_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENCLR_TXERR_SHIFT)) & SPI_FIFOINTENCLR_TXERR_MASK)\r
+#define SPI_FIFOINTENCLR_RXERR_MASK (0x2U)\r
+#define SPI_FIFOINTENCLR_RXERR_SHIFT (1U)\r
+/*! RXERR - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define SPI_FIFOINTENCLR_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENCLR_RXERR_SHIFT)) & SPI_FIFOINTENCLR_RXERR_MASK)\r
+#define SPI_FIFOINTENCLR_TXLVL_MASK (0x4U)\r
+#define SPI_FIFOINTENCLR_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define SPI_FIFOINTENCLR_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENCLR_TXLVL_SHIFT)) & SPI_FIFOINTENCLR_TXLVL_MASK)\r
+#define SPI_FIFOINTENCLR_RXLVL_MASK (0x8U)\r
+#define SPI_FIFOINTENCLR_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define SPI_FIFOINTENCLR_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTENCLR_RXLVL_SHIFT)) & SPI_FIFOINTENCLR_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTSTAT - FIFO interrupt status register. */\r
/*! @{ */\r
-#define SPI_FIFOINTSTAT_TXERR_MASK (0x1U)\r
-#define SPI_FIFOINTSTAT_TXERR_SHIFT (0U)\r
-#define SPI_FIFOINTSTAT_TXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_TXERR_SHIFT)) & SPI_FIFOINTSTAT_TXERR_MASK)\r
-#define SPI_FIFOINTSTAT_RXERR_MASK (0x2U)\r
-#define SPI_FIFOINTSTAT_RXERR_SHIFT (1U)\r
-#define SPI_FIFOINTSTAT_RXERR(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_RXERR_SHIFT)) & SPI_FIFOINTSTAT_RXERR_MASK)\r
-#define SPI_FIFOINTSTAT_TXLVL_MASK (0x4U)\r
-#define SPI_FIFOINTSTAT_TXLVL_SHIFT (2U)\r
-#define SPI_FIFOINTSTAT_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_TXLVL_SHIFT)) & SPI_FIFOINTSTAT_TXLVL_MASK)\r
-#define SPI_FIFOINTSTAT_RXLVL_MASK (0x8U)\r
-#define SPI_FIFOINTSTAT_RXLVL_SHIFT (3U)\r
-#define SPI_FIFOINTSTAT_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_RXLVL_SHIFT)) & SPI_FIFOINTSTAT_RXLVL_MASK)\r
-#define SPI_FIFOINTSTAT_PERINT_MASK (0x10U)\r
-#define SPI_FIFOINTSTAT_PERINT_SHIFT (4U)\r
-#define SPI_FIFOINTSTAT_PERINT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_PERINT_SHIFT)) & SPI_FIFOINTSTAT_PERINT_MASK)\r
+#define SPI_FIFOINTSTAT_TXERR_MASK (0x1U)\r
+#define SPI_FIFOINTSTAT_TXERR_SHIFT (0U)\r
+/*! TXERR - TX FIFO error.\r
+ */\r
+#define SPI_FIFOINTSTAT_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_TXERR_SHIFT)) & SPI_FIFOINTSTAT_TXERR_MASK)\r
+#define SPI_FIFOINTSTAT_RXERR_MASK (0x2U)\r
+#define SPI_FIFOINTSTAT_RXERR_SHIFT (1U)\r
+/*! RXERR - RX FIFO error.\r
+ */\r
+#define SPI_FIFOINTSTAT_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_RXERR_SHIFT)) & SPI_FIFOINTSTAT_RXERR_MASK)\r
+#define SPI_FIFOINTSTAT_TXLVL_MASK (0x4U)\r
+#define SPI_FIFOINTSTAT_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Transmit FIFO level interrupt.\r
+ */\r
+#define SPI_FIFOINTSTAT_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_TXLVL_SHIFT)) & SPI_FIFOINTSTAT_TXLVL_MASK)\r
+#define SPI_FIFOINTSTAT_RXLVL_MASK (0x8U)\r
+#define SPI_FIFOINTSTAT_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Receive FIFO level interrupt.\r
+ */\r
+#define SPI_FIFOINTSTAT_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_RXLVL_SHIFT)) & SPI_FIFOINTSTAT_RXLVL_MASK)\r
+#define SPI_FIFOINTSTAT_PERINT_MASK (0x10U)\r
+#define SPI_FIFOINTSTAT_PERINT_SHIFT (4U)\r
+/*! PERINT - Peripheral interrupt.\r
+ */\r
+#define SPI_FIFOINTSTAT_PERINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOINTSTAT_PERINT_SHIFT)) & SPI_FIFOINTSTAT_PERINT_MASK)\r
/*! @} */\r
\r
/*! @name FIFOWR - FIFO write data. */\r
/*! @{ */\r
-#define SPI_FIFOWR_TXDATA_MASK (0xFFFFU)\r
-#define SPI_FIFOWR_TXDATA_SHIFT (0U)\r
-#define SPI_FIFOWR_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXDATA_SHIFT)) & SPI_FIFOWR_TXDATA_MASK)\r
-#define SPI_FIFOWR_TXSSEL0_N_MASK (0x10000U)\r
-#define SPI_FIFOWR_TXSSEL0_N_SHIFT (16U)\r
-/*! TXSSEL0_N - Transmit slave select. This field asserts SSEL0 in master mode. The output on the pin is active LOW by default.\r
- * 0b0..SSEL0 asserted.\r
- * 0b1..SSEL0 not asserted.\r
- */\r
-#define SPI_FIFOWR_TXSSEL0_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXSSEL0_N_SHIFT)) & SPI_FIFOWR_TXSSEL0_N_MASK)\r
-#define SPI_FIFOWR_TXSSEL1_N_MASK (0x20000U)\r
-#define SPI_FIFOWR_TXSSEL1_N_SHIFT (17U)\r
-/*! TXSSEL1_N - Transmit slave select. This field asserts SSEL1 in master mode. The output on the pin is active LOW by default.\r
- * 0b0..SSEL1 asserted.\r
- * 0b1..SSEL1 not asserted.\r
- */\r
-#define SPI_FIFOWR_TXSSEL1_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXSSEL1_N_SHIFT)) & SPI_FIFOWR_TXSSEL1_N_MASK)\r
-#define SPI_FIFOWR_TXSSEL2_N_MASK (0x40000U)\r
-#define SPI_FIFOWR_TXSSEL2_N_SHIFT (18U)\r
-/*! TXSSEL2_N - Transmit slave select. This field asserts SSEL2 in master mode. The output on the pin is active LOW by default.\r
- * 0b0..SSEL2 asserted.\r
- * 0b1..SSEL2 not asserted.\r
- */\r
-#define SPI_FIFOWR_TXSSEL2_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXSSEL2_N_SHIFT)) & SPI_FIFOWR_TXSSEL2_N_MASK)\r
-#define SPI_FIFOWR_TXSSEL3_N_MASK (0x80000U)\r
-#define SPI_FIFOWR_TXSSEL3_N_SHIFT (19U)\r
-/*! TXSSEL3_N - Transmit slave select. This field asserts SSEL3 in master mode. The output on the pin is active LOW by default.\r
- * 0b0..SSEL3 asserted.\r
- * 0b1..SSEL3 not asserted.\r
- */\r
-#define SPI_FIFOWR_TXSSEL3_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXSSEL3_N_SHIFT)) & SPI_FIFOWR_TXSSEL3_N_MASK)\r
-#define SPI_FIFOWR_EOT_MASK (0x100000U)\r
-#define SPI_FIFOWR_EOT_SHIFT (20U)\r
-/*! EOT - End of transfer. The asserted SSEL will be deasserted at the end of a transfer and remain so far at least the time specified by the Transfer_delay value in the DLY register.\r
- * 0b0..SSEL not deasserted. This piece of data is not treated as the end of a transfer. SSEL will not be deasserted at the end of this data.\r
- * 0b1..SSEL deasserted. This piece of data is treated as the end of a transfer. SSEL will be deasserted at the end of this piece of data.\r
- */\r
-#define SPI_FIFOWR_EOT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_EOT_SHIFT)) & SPI_FIFOWR_EOT_MASK)\r
-#define SPI_FIFOWR_EOF_MASK (0x200000U)\r
-#define SPI_FIFOWR_EOF_SHIFT (21U)\r
-/*! EOF - End of frame. Between frames, a delay may be inserted, as defined by the Frame_delay value in the DLY register. The end of a frame may not be particularly meaningful if the Frame_delay value = 0. This control can be used as part of the support for frame lengths greater than 16 bits.\r
+#define SPI_FIFOWR_TXDATA_MASK (0xFFFFU)\r
+#define SPI_FIFOWR_TXDATA_SHIFT (0U)\r
+/*! TXDATA - Transmit data to the FIFO.\r
+ */\r
+#define SPI_FIFOWR_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXDATA_SHIFT)) & SPI_FIFOWR_TXDATA_MASK)\r
+#define SPI_FIFOWR_TXSSEL0_N_MASK (0x10000U)\r
+#define SPI_FIFOWR_TXSSEL0_N_SHIFT (16U)\r
+/*! TXSSEL0_N - Transmit slave select. This field asserts SSEL0 in master mode. The output on the pin is active LOW by\r
+ * default. 0b0..SSEL0 asserted. 0b1..SSEL0 not asserted.\r
+ */\r
+#define SPI_FIFOWR_TXSSEL0_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXSSEL0_N_SHIFT)) & SPI_FIFOWR_TXSSEL0_N_MASK)\r
+#define SPI_FIFOWR_TXSSEL1_N_MASK (0x20000U)\r
+#define SPI_FIFOWR_TXSSEL1_N_SHIFT (17U)\r
+/*! TXSSEL1_N - Transmit slave select. This field asserts SSEL1 in master mode. The output on the pin is active LOW by\r
+ * default. 0b0..SSEL1 asserted. 0b1..SSEL1 not asserted.\r
+ */\r
+#define SPI_FIFOWR_TXSSEL1_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXSSEL1_N_SHIFT)) & SPI_FIFOWR_TXSSEL1_N_MASK)\r
+#define SPI_FIFOWR_TXSSEL2_N_MASK (0x40000U)\r
+#define SPI_FIFOWR_TXSSEL2_N_SHIFT (18U)\r
+/*! TXSSEL2_N - Transmit slave select. This field asserts SSEL2 in master mode. The output on the pin is active LOW by\r
+ * default. 0b0..SSEL2 asserted. 0b1..SSEL2 not asserted.\r
+ */\r
+#define SPI_FIFOWR_TXSSEL2_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXSSEL2_N_SHIFT)) & SPI_FIFOWR_TXSSEL2_N_MASK)\r
+#define SPI_FIFOWR_TXSSEL3_N_MASK (0x80000U)\r
+#define SPI_FIFOWR_TXSSEL3_N_SHIFT (19U)\r
+/*! TXSSEL3_N - Transmit slave select. This field asserts SSEL3 in master mode. The output on the pin is active LOW by\r
+ * default. 0b0..SSEL3 asserted. 0b1..SSEL3 not asserted.\r
+ */\r
+#define SPI_FIFOWR_TXSSEL3_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_TXSSEL3_N_SHIFT)) & SPI_FIFOWR_TXSSEL3_N_MASK)\r
+#define SPI_FIFOWR_EOT_MASK (0x100000U)\r
+#define SPI_FIFOWR_EOT_SHIFT (20U)\r
+/*! EOT - End of transfer. The asserted SSEL will be deasserted at the end of a transfer and remain\r
+ * so far at least the time specified by the Transfer_delay value in the DLY register.\r
+ * 0b0..SSEL not deasserted. This piece of data is not treated as the end of a transfer. SSEL will not be deasserted at\r
+ * the end of this data. 0b1..SSEL deasserted. This piece of data is treated as the end of a transfer. SSEL will be\r
+ * deasserted at the end of this piece of data.\r
+ */\r
+#define SPI_FIFOWR_EOT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_EOT_SHIFT)) & SPI_FIFOWR_EOT_MASK)\r
+#define SPI_FIFOWR_EOF_MASK (0x200000U)\r
+#define SPI_FIFOWR_EOF_SHIFT (21U)\r
+/*! EOF - End of frame. Between frames, a delay may be inserted, as defined by the Frame_delay value\r
+ * in the DLY register. The end of a frame may not be particularly meaningful if the Frame_delay\r
+ * value = 0. This control can be used as part of the support for frame lengths greater than 16\r
+ * bits.\r
* 0b0..Data not EOF. This piece of data transmitted is not treated as the end of a frame.\r
- * 0b1..Data EOF. This piece of data is treated as the end of a frame, causing the Frame_delay time to be inserted before subsequent data is transmitted.\r
- */\r
-#define SPI_FIFOWR_EOF(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_EOF_SHIFT)) & SPI_FIFOWR_EOF_MASK)\r
-#define SPI_FIFOWR_RXIGNORE_MASK (0x400000U)\r
-#define SPI_FIFOWR_RXIGNORE_SHIFT (22U)\r
-/*! RXIGNORE - Receive Ignore. This allows data to be transmitted using the SPI without the need to read unneeded data from the receiver. Setting this bit simplifies the transmit process and can be used with the DMA.\r
- * 0b0..Read received data. Received data must be read in order to allow transmission to progress. SPI transmit will halt when the receive data FIFO is full. In slave mode, an overrun error will occur if received data is not read before new data is received.\r
- * 0b1..Ignore received data. Received data is ignored, allowing transmission without reading unneeded received data. No receiver flags are generated.\r
- */\r
-#define SPI_FIFOWR_RXIGNORE(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_RXIGNORE_SHIFT)) & SPI_FIFOWR_RXIGNORE_MASK)\r
-#define SPI_FIFOWR_LEN_MASK (0xF000000U)\r
-#define SPI_FIFOWR_LEN_SHIFT (24U)\r
-#define SPI_FIFOWR_LEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_LEN_SHIFT)) & SPI_FIFOWR_LEN_MASK)\r
+ * 0b1..Data EOF. This piece of data is treated as the end of a frame, causing the Frame_delay time to be\r
+ * inserted before subsequent data is transmitted.\r
+ */\r
+#define SPI_FIFOWR_EOF(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_EOF_SHIFT)) & SPI_FIFOWR_EOF_MASK)\r
+#define SPI_FIFOWR_RXIGNORE_MASK (0x400000U)\r
+#define SPI_FIFOWR_RXIGNORE_SHIFT (22U)\r
+/*! RXIGNORE - Receive Ignore. This allows data to be transmitted using the SPI without the need to\r
+ * read unneeded data from the receiver. Setting this bit simplifies the transmit process and can\r
+ * be used with the DMA.\r
+ * 0b0..Read received data. Received data must be read in order to allow transmission to progress. SPI transmit\r
+ * will halt when the receive data FIFO is full. In slave mode, an overrun error will occur if received data\r
+ * is not read before new data is received.\r
+ * 0b1..Ignore received data. Received data is ignored, allowing transmission without reading unneeded received\r
+ * data. No receiver flags are generated.\r
+ */\r
+#define SPI_FIFOWR_RXIGNORE(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_RXIGNORE_SHIFT)) & SPI_FIFOWR_RXIGNORE_MASK)\r
+#define SPI_FIFOWR_LEN_MASK (0xF000000U)\r
+#define SPI_FIFOWR_LEN_SHIFT (24U)\r
+/*! LEN - Data Length. Specifies the data length from 4 to 16 bits. Note that transfer lengths\r
+ * greater than 16 bits are supported by implementing multiple sequential transmits. 0x0-2 = Reserved.\r
+ * 0x3 = Data transfer is 4 bits in length. 0x4 = Data transfer is 5 bits in length. 0xF = Data\r
+ * transfer is 16 bits in length.\r
+ */\r
+#define SPI_FIFOWR_LEN(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFOWR_LEN_SHIFT)) & SPI_FIFOWR_LEN_MASK)\r
/*! @} */\r
\r
/*! @name FIFORD - FIFO read data. */\r
/*! @{ */\r
-#define SPI_FIFORD_RXDATA_MASK (0xFFFFU)\r
-#define SPI_FIFORD_RXDATA_SHIFT (0U)\r
-#define SPI_FIFORD_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXDATA_SHIFT)) & SPI_FIFORD_RXDATA_MASK)\r
-#define SPI_FIFORD_RXSSEL0_N_MASK (0x10000U)\r
-#define SPI_FIFORD_RXSSEL0_N_SHIFT (16U)\r
-#define SPI_FIFORD_RXSSEL0_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXSSEL0_N_SHIFT)) & SPI_FIFORD_RXSSEL0_N_MASK)\r
-#define SPI_FIFORD_RXSSEL1_N_MASK (0x20000U)\r
-#define SPI_FIFORD_RXSSEL1_N_SHIFT (17U)\r
-#define SPI_FIFORD_RXSSEL1_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXSSEL1_N_SHIFT)) & SPI_FIFORD_RXSSEL1_N_MASK)\r
-#define SPI_FIFORD_RXSSEL2_N_MASK (0x40000U)\r
-#define SPI_FIFORD_RXSSEL2_N_SHIFT (18U)\r
-#define SPI_FIFORD_RXSSEL2_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXSSEL2_N_SHIFT)) & SPI_FIFORD_RXSSEL2_N_MASK)\r
-#define SPI_FIFORD_RXSSEL3_N_MASK (0x80000U)\r
-#define SPI_FIFORD_RXSSEL3_N_SHIFT (19U)\r
-#define SPI_FIFORD_RXSSEL3_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXSSEL3_N_SHIFT)) & SPI_FIFORD_RXSSEL3_N_MASK)\r
-#define SPI_FIFORD_SOT_MASK (0x100000U)\r
-#define SPI_FIFORD_SOT_SHIFT (20U)\r
-#define SPI_FIFORD_SOT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_SOT_SHIFT)) & SPI_FIFORD_SOT_MASK)\r
+#define SPI_FIFORD_RXDATA_MASK (0xFFFFU)\r
+#define SPI_FIFORD_RXDATA_SHIFT (0U)\r
+/*! RXDATA - Received data from the FIFO.\r
+ */\r
+#define SPI_FIFORD_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXDATA_SHIFT)) & SPI_FIFORD_RXDATA_MASK)\r
+#define SPI_FIFORD_RXSSEL0_N_MASK (0x10000U)\r
+#define SPI_FIFORD_RXSSEL0_N_SHIFT (16U)\r
+/*! RXSSEL0_N - Slave Select for receive. This field allows the state of the SSEL0 pin to be saved\r
+ * along with received data. The value will reflect the SSEL0 pin for both master and slave\r
+ * operation. A zero indicates that a slave select is active. The actual polarity of each slave select\r
+ * pin is configured by the related SPOL bit in CFG.\r
+ */\r
+#define SPI_FIFORD_RXSSEL0_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXSSEL0_N_SHIFT)) & SPI_FIFORD_RXSSEL0_N_MASK)\r
+#define SPI_FIFORD_RXSSEL1_N_MASK (0x20000U)\r
+#define SPI_FIFORD_RXSSEL1_N_SHIFT (17U)\r
+/*! RXSSEL1_N - Slave Select for receive. This field allows the state of the SSEL1 pin to be saved\r
+ * along with received data. The value will reflect the SSEL1 pin for both master and slave\r
+ * operation. A zero indicates that a slave select is active. The actual polarity of each slave select\r
+ * pin is configured by the related SPOL bit in CFG.\r
+ */\r
+#define SPI_FIFORD_RXSSEL1_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXSSEL1_N_SHIFT)) & SPI_FIFORD_RXSSEL1_N_MASK)\r
+#define SPI_FIFORD_RXSSEL2_N_MASK (0x40000U)\r
+#define SPI_FIFORD_RXSSEL2_N_SHIFT (18U)\r
+/*! RXSSEL2_N - Slave Select for receive. This field allows the state of the SSEL2 pin to be saved\r
+ * along with received data. The value will reflect the SSEL2 pin for both master and slave\r
+ * operation. A zero indicates that a slave select is active. The actual polarity of each slave select\r
+ * pin is configured by the related SPOL bit in CFG.\r
+ */\r
+#define SPI_FIFORD_RXSSEL2_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXSSEL2_N_SHIFT)) & SPI_FIFORD_RXSSEL2_N_MASK)\r
+#define SPI_FIFORD_RXSSEL3_N_MASK (0x80000U)\r
+#define SPI_FIFORD_RXSSEL3_N_SHIFT (19U)\r
+/*! RXSSEL3_N - Slave Select for receive. This field allows the state of the SSEL3 pin to be saved\r
+ * along with received data. The value will reflect the SSEL3 pin for both master and slave\r
+ * operation. A zero indicates that a slave select is active. The actual polarity of each slave select\r
+ * pin is configured by the related SPOL bit in CFG.\r
+ */\r
+#define SPI_FIFORD_RXSSEL3_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_RXSSEL3_N_SHIFT)) & SPI_FIFORD_RXSSEL3_N_MASK)\r
+#define SPI_FIFORD_SOT_MASK (0x100000U)\r
+#define SPI_FIFORD_SOT_SHIFT (20U)\r
+/*! SOT - Start of Transfer flag. This flag will be 1 if this is the first data after the SSELs went\r
+ * from deasserted to asserted (i.e., any previous transfer has ended). This information can be\r
+ * used to identify the first piece of data in cases where the transfer length is greater than 16\r
+ * bits.\r
+ */\r
+#define SPI_FIFORD_SOT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORD_SOT_SHIFT)) & SPI_FIFORD_SOT_MASK)\r
/*! @} */\r
\r
/*! @name FIFORDNOPOP - FIFO data read with no FIFO pop. */\r
/*! @{ */\r
-#define SPI_FIFORDNOPOP_RXDATA_MASK (0xFFFFU)\r
-#define SPI_FIFORDNOPOP_RXDATA_SHIFT (0U)\r
-#define SPI_FIFORDNOPOP_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXDATA_SHIFT)) & SPI_FIFORDNOPOP_RXDATA_MASK)\r
-#define SPI_FIFORDNOPOP_RXSSEL0_N_MASK (0x10000U)\r
-#define SPI_FIFORDNOPOP_RXSSEL0_N_SHIFT (16U)\r
-#define SPI_FIFORDNOPOP_RXSSEL0_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXSSEL0_N_SHIFT)) & SPI_FIFORDNOPOP_RXSSEL0_N_MASK)\r
-#define SPI_FIFORDNOPOP_RXSSEL1_N_MASK (0x20000U)\r
-#define SPI_FIFORDNOPOP_RXSSEL1_N_SHIFT (17U)\r
-#define SPI_FIFORDNOPOP_RXSSEL1_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXSSEL1_N_SHIFT)) & SPI_FIFORDNOPOP_RXSSEL1_N_MASK)\r
-#define SPI_FIFORDNOPOP_RXSSEL2_N_MASK (0x40000U)\r
-#define SPI_FIFORDNOPOP_RXSSEL2_N_SHIFT (18U)\r
-#define SPI_FIFORDNOPOP_RXSSEL2_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXSSEL2_N_SHIFT)) & SPI_FIFORDNOPOP_RXSSEL2_N_MASK)\r
-#define SPI_FIFORDNOPOP_RXSSEL3_N_MASK (0x80000U)\r
-#define SPI_FIFORDNOPOP_RXSSEL3_N_SHIFT (19U)\r
-#define SPI_FIFORDNOPOP_RXSSEL3_N(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXSSEL3_N_SHIFT)) & SPI_FIFORDNOPOP_RXSSEL3_N_MASK)\r
-#define SPI_FIFORDNOPOP_SOT_MASK (0x100000U)\r
-#define SPI_FIFORDNOPOP_SOT_SHIFT (20U)\r
-#define SPI_FIFORDNOPOP_SOT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_SOT_SHIFT)) & SPI_FIFORDNOPOP_SOT_MASK)\r
+#define SPI_FIFORDNOPOP_RXDATA_MASK (0xFFFFU)\r
+#define SPI_FIFORDNOPOP_RXDATA_SHIFT (0U)\r
+/*! RXDATA - Received data from the FIFO.\r
+ */\r
+#define SPI_FIFORDNOPOP_RXDATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXDATA_SHIFT)) & SPI_FIFORDNOPOP_RXDATA_MASK)\r
+#define SPI_FIFORDNOPOP_RXSSEL0_N_MASK (0x10000U)\r
+#define SPI_FIFORDNOPOP_RXSSEL0_N_SHIFT (16U)\r
+/*! RXSSEL0_N - Slave Select for receive.\r
+ */\r
+#define SPI_FIFORDNOPOP_RXSSEL0_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXSSEL0_N_SHIFT)) & SPI_FIFORDNOPOP_RXSSEL0_N_MASK)\r
+#define SPI_FIFORDNOPOP_RXSSEL1_N_MASK (0x20000U)\r
+#define SPI_FIFORDNOPOP_RXSSEL1_N_SHIFT (17U)\r
+/*! RXSSEL1_N - Slave Select for receive.\r
+ */\r
+#define SPI_FIFORDNOPOP_RXSSEL1_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXSSEL1_N_SHIFT)) & SPI_FIFORDNOPOP_RXSSEL1_N_MASK)\r
+#define SPI_FIFORDNOPOP_RXSSEL2_N_MASK (0x40000U)\r
+#define SPI_FIFORDNOPOP_RXSSEL2_N_SHIFT (18U)\r
+/*! RXSSEL2_N - Slave Select for receive.\r
+ */\r
+#define SPI_FIFORDNOPOP_RXSSEL2_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXSSEL2_N_SHIFT)) & SPI_FIFORDNOPOP_RXSSEL2_N_MASK)\r
+#define SPI_FIFORDNOPOP_RXSSEL3_N_MASK (0x80000U)\r
+#define SPI_FIFORDNOPOP_RXSSEL3_N_SHIFT (19U)\r
+/*! RXSSEL3_N - Slave Select for receive.\r
+ */\r
+#define SPI_FIFORDNOPOP_RXSSEL3_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_RXSSEL3_N_SHIFT)) & SPI_FIFORDNOPOP_RXSSEL3_N_MASK)\r
+#define SPI_FIFORDNOPOP_SOT_MASK (0x100000U)\r
+#define SPI_FIFORDNOPOP_SOT_SHIFT (20U)\r
+/*! SOT - Start of transfer flag.\r
+ */\r
+#define SPI_FIFORDNOPOP_SOT(x) (((uint32_t)(((uint32_t)(x)) << SPI_FIFORDNOPOP_SOT_SHIFT)) & SPI_FIFORDNOPOP_SOT_MASK)\r
/*! @} */\r
\r
/*! @name ID - Peripheral identification register. */\r
/*! @{ */\r
-#define SPI_ID_APERTURE_MASK (0xFFU)\r
-#define SPI_ID_APERTURE_SHIFT (0U)\r
-#define SPI_ID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << SPI_ID_APERTURE_SHIFT)) & SPI_ID_APERTURE_MASK)\r
-#define SPI_ID_MINOR_REV_MASK (0xF00U)\r
-#define SPI_ID_MINOR_REV_SHIFT (8U)\r
-#define SPI_ID_MINOR_REV(x) (((uint32_t)(((uint32_t)(x)) << SPI_ID_MINOR_REV_SHIFT)) & SPI_ID_MINOR_REV_MASK)\r
-#define SPI_ID_MAJOR_REV_MASK (0xF000U)\r
-#define SPI_ID_MAJOR_REV_SHIFT (12U)\r
-#define SPI_ID_MAJOR_REV(x) (((uint32_t)(((uint32_t)(x)) << SPI_ID_MAJOR_REV_SHIFT)) & SPI_ID_MAJOR_REV_MASK)\r
-#define SPI_ID_ID_MASK (0xFFFF0000U)\r
-#define SPI_ID_ID_SHIFT (16U)\r
-#define SPI_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << SPI_ID_ID_SHIFT)) & SPI_ID_ID_MASK)\r
+#define SPI_ID_APERTURE_MASK (0xFFU)\r
+#define SPI_ID_APERTURE_SHIFT (0U)\r
+/*! APERTURE - Aperture: encoded as (aperture size/4K) -1, so 0x00 means a 4K aperture.\r
+ */\r
+#define SPI_ID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << SPI_ID_APERTURE_SHIFT)) & SPI_ID_APERTURE_MASK)\r
+#define SPI_ID_MINOR_REV_MASK (0xF00U)\r
+#define SPI_ID_MINOR_REV_SHIFT (8U)\r
+/*! MINOR_REV - Minor revision of module implementation.\r
+ */\r
+#define SPI_ID_MINOR_REV(x) (((uint32_t)(((uint32_t)(x)) << SPI_ID_MINOR_REV_SHIFT)) & SPI_ID_MINOR_REV_MASK)\r
+#define SPI_ID_MAJOR_REV_MASK (0xF000U)\r
+#define SPI_ID_MAJOR_REV_SHIFT (12U)\r
+/*! MAJOR_REV - Major revision of module implementation.\r
+ */\r
+#define SPI_ID_MAJOR_REV(x) (((uint32_t)(((uint32_t)(x)) << SPI_ID_MAJOR_REV_SHIFT)) & SPI_ID_MAJOR_REV_MASK)\r
+#define SPI_ID_ID_MASK (0xFFFF0000U)\r
+#define SPI_ID_ID_SHIFT (16U)\r
+/*! ID - Module identifier for the selected function.\r
+ */\r
+#define SPI_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << SPI_ID_ID_SHIFT)) & SPI_ID_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group SPI_Register_Masks */\r
\r
-\r
/* SPI - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral SPI0 base address */\r
- #define SPI0_BASE (0x50086000u)\r
- /** Peripheral SPI0 base address */\r
- #define SPI0_BASE_NS (0x40086000u)\r
- /** Peripheral SPI0 base pointer */\r
- #define SPI0 ((SPI_Type *)SPI0_BASE)\r
- /** Peripheral SPI0 base pointer */\r
- #define SPI0_NS ((SPI_Type *)SPI0_BASE_NS)\r
- /** Peripheral SPI1 base address */\r
- #define SPI1_BASE (0x50087000u)\r
- /** Peripheral SPI1 base address */\r
- #define SPI1_BASE_NS (0x40087000u)\r
- /** Peripheral SPI1 base pointer */\r
- #define SPI1 ((SPI_Type *)SPI1_BASE)\r
- /** Peripheral SPI1 base pointer */\r
- #define SPI1_NS ((SPI_Type *)SPI1_BASE_NS)\r
- /** Peripheral SPI2 base address */\r
- #define SPI2_BASE (0x50088000u)\r
- /** Peripheral SPI2 base address */\r
- #define SPI2_BASE_NS (0x40088000u)\r
- /** Peripheral SPI2 base pointer */\r
- #define SPI2 ((SPI_Type *)SPI2_BASE)\r
- /** Peripheral SPI2 base pointer */\r
- #define SPI2_NS ((SPI_Type *)SPI2_BASE_NS)\r
- /** Peripheral SPI3 base address */\r
- #define SPI3_BASE (0x50089000u)\r
- /** Peripheral SPI3 base address */\r
- #define SPI3_BASE_NS (0x40089000u)\r
- /** Peripheral SPI3 base pointer */\r
- #define SPI3 ((SPI_Type *)SPI3_BASE)\r
- /** Peripheral SPI3 base pointer */\r
- #define SPI3_NS ((SPI_Type *)SPI3_BASE_NS)\r
- /** Peripheral SPI4 base address */\r
- #define SPI4_BASE (0x5008A000u)\r
- /** Peripheral SPI4 base address */\r
- #define SPI4_BASE_NS (0x4008A000u)\r
- /** Peripheral SPI4 base pointer */\r
- #define SPI4 ((SPI_Type *)SPI4_BASE)\r
- /** Peripheral SPI4 base pointer */\r
- #define SPI4_NS ((SPI_Type *)SPI4_BASE_NS)\r
- /** Peripheral SPI5 base address */\r
- #define SPI5_BASE (0x50096000u)\r
- /** Peripheral SPI5 base address */\r
- #define SPI5_BASE_NS (0x40096000u)\r
- /** Peripheral SPI5 base pointer */\r
- #define SPI5 ((SPI_Type *)SPI5_BASE)\r
- /** Peripheral SPI5 base pointer */\r
- #define SPI5_NS ((SPI_Type *)SPI5_BASE_NS)\r
- /** Peripheral SPI6 base address */\r
- #define SPI6_BASE (0x50097000u)\r
- /** Peripheral SPI6 base address */\r
- #define SPI6_BASE_NS (0x40097000u)\r
- /** Peripheral SPI6 base pointer */\r
- #define SPI6 ((SPI_Type *)SPI6_BASE)\r
- /** Peripheral SPI6 base pointer */\r
- #define SPI6_NS ((SPI_Type *)SPI6_BASE_NS)\r
- /** Peripheral SPI7 base address */\r
- #define SPI7_BASE (0x50098000u)\r
- /** Peripheral SPI7 base address */\r
- #define SPI7_BASE_NS (0x40098000u)\r
- /** Peripheral SPI7 base pointer */\r
- #define SPI7 ((SPI_Type *)SPI7_BASE)\r
- /** Peripheral SPI7 base pointer */\r
- #define SPI7_NS ((SPI_Type *)SPI7_BASE_NS)\r
- /** Peripheral SPI8 base address */\r
- #define SPI8_BASE (0x5009F000u)\r
- /** Peripheral SPI8 base address */\r
- #define SPI8_BASE_NS (0x4009F000u)\r
- /** Peripheral SPI8 base pointer */\r
- #define SPI8 ((SPI_Type *)SPI8_BASE)\r
- /** Peripheral SPI8 base pointer */\r
- #define SPI8_NS ((SPI_Type *)SPI8_BASE_NS)\r
- /** Array initializer of SPI peripheral base addresses */\r
- #define SPI_BASE_ADDRS { SPI0_BASE, SPI1_BASE, SPI2_BASE, SPI3_BASE, SPI4_BASE, SPI5_BASE, SPI6_BASE, SPI7_BASE, SPI8_BASE }\r
- /** Array initializer of SPI peripheral base pointers */\r
- #define SPI_BASE_PTRS { SPI0, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SPI7, SPI8 }\r
- /** Array initializer of SPI peripheral base addresses */\r
- #define SPI_BASE_ADDRS_NS { SPI0_BASE_NS, SPI1_BASE_NS, SPI2_BASE_NS, SPI3_BASE_NS, SPI4_BASE_NS, SPI5_BASE_NS, SPI6_BASE_NS, SPI7_BASE_NS, SPI8_BASE_NS }\r
- /** Array initializer of SPI peripheral base pointers */\r
- #define SPI_BASE_PTRS_NS { SPI0_NS, SPI1_NS, SPI2_NS, SPI3_NS, SPI4_NS, SPI5_NS, SPI6_NS, SPI7_NS, SPI8_NS }\r
+/** Peripheral SPI0 base address */\r
+#define SPI0_BASE (0x50086000u)\r
+/** Peripheral SPI0 base address */\r
+#define SPI0_BASE_NS (0x40086000u)\r
+/** Peripheral SPI0 base pointer */\r
+#define SPI0 ((SPI_Type *)SPI0_BASE)\r
+/** Peripheral SPI0 base pointer */\r
+#define SPI0_NS ((SPI_Type *)SPI0_BASE_NS)\r
+/** Peripheral SPI1 base address */\r
+#define SPI1_BASE (0x50087000u)\r
+/** Peripheral SPI1 base address */\r
+#define SPI1_BASE_NS (0x40087000u)\r
+/** Peripheral SPI1 base pointer */\r
+#define SPI1 ((SPI_Type *)SPI1_BASE)\r
+/** Peripheral SPI1 base pointer */\r
+#define SPI1_NS ((SPI_Type *)SPI1_BASE_NS)\r
+/** Peripheral SPI2 base address */\r
+#define SPI2_BASE (0x50088000u)\r
+/** Peripheral SPI2 base address */\r
+#define SPI2_BASE_NS (0x40088000u)\r
+/** Peripheral SPI2 base pointer */\r
+#define SPI2 ((SPI_Type *)SPI2_BASE)\r
+/** Peripheral SPI2 base pointer */\r
+#define SPI2_NS ((SPI_Type *)SPI2_BASE_NS)\r
+/** Peripheral SPI3 base address */\r
+#define SPI3_BASE (0x50089000u)\r
+/** Peripheral SPI3 base address */\r
+#define SPI3_BASE_NS (0x40089000u)\r
+/** Peripheral SPI3 base pointer */\r
+#define SPI3 ((SPI_Type *)SPI3_BASE)\r
+/** Peripheral SPI3 base pointer */\r
+#define SPI3_NS ((SPI_Type *)SPI3_BASE_NS)\r
+/** Peripheral SPI4 base address */\r
+#define SPI4_BASE (0x5008A000u)\r
+/** Peripheral SPI4 base address */\r
+#define SPI4_BASE_NS (0x4008A000u)\r
+/** Peripheral SPI4 base pointer */\r
+#define SPI4 ((SPI_Type *)SPI4_BASE)\r
+/** Peripheral SPI4 base pointer */\r
+#define SPI4_NS ((SPI_Type *)SPI4_BASE_NS)\r
+/** Peripheral SPI5 base address */\r
+#define SPI5_BASE (0x50096000u)\r
+/** Peripheral SPI5 base address */\r
+#define SPI5_BASE_NS (0x40096000u)\r
+/** Peripheral SPI5 base pointer */\r
+#define SPI5 ((SPI_Type *)SPI5_BASE)\r
+/** Peripheral SPI5 base pointer */\r
+#define SPI5_NS ((SPI_Type *)SPI5_BASE_NS)\r
+/** Peripheral SPI6 base address */\r
+#define SPI6_BASE (0x50097000u)\r
+/** Peripheral SPI6 base address */\r
+#define SPI6_BASE_NS (0x40097000u)\r
+/** Peripheral SPI6 base pointer */\r
+#define SPI6 ((SPI_Type *)SPI6_BASE)\r
+/** Peripheral SPI6 base pointer */\r
+#define SPI6_NS ((SPI_Type *)SPI6_BASE_NS)\r
+/** Peripheral SPI7 base address */\r
+#define SPI7_BASE (0x50098000u)\r
+/** Peripheral SPI7 base address */\r
+#define SPI7_BASE_NS (0x40098000u)\r
+/** Peripheral SPI7 base pointer */\r
+#define SPI7 ((SPI_Type *)SPI7_BASE)\r
+/** Peripheral SPI7 base pointer */\r
+#define SPI7_NS ((SPI_Type *)SPI7_BASE_NS)\r
+/** Peripheral SPI8 base address */\r
+#define SPI8_BASE (0x5009F000u)\r
+/** Peripheral SPI8 base address */\r
+#define SPI8_BASE_NS (0x4009F000u)\r
+/** Peripheral SPI8 base pointer */\r
+#define SPI8 ((SPI_Type *)SPI8_BASE)\r
+/** Peripheral SPI8 base pointer */\r
+#define SPI8_NS ((SPI_Type *)SPI8_BASE_NS)\r
+/** Array initializer of SPI peripheral base addresses */\r
+#define SPI_BASE_ADDRS \\r
+ { \\r
+ SPI0_BASE, SPI1_BASE, SPI2_BASE, SPI3_BASE, SPI4_BASE, SPI5_BASE, SPI6_BASE, SPI7_BASE, SPI8_BASE \\r
+ }\r
+/** Array initializer of SPI peripheral base pointers */\r
+#define SPI_BASE_PTRS \\r
+ { \\r
+ SPI0, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SPI7, SPI8 \\r
+ }\r
+/** Array initializer of SPI peripheral base addresses */\r
+#define SPI_BASE_ADDRS_NS \\r
+ { \\r
+ SPI0_BASE_NS, SPI1_BASE_NS, SPI2_BASE_NS, SPI3_BASE_NS, SPI4_BASE_NS, SPI5_BASE_NS, SPI6_BASE_NS, \\r
+ SPI7_BASE_NS, SPI8_BASE_NS \\r
+ }\r
+/** Array initializer of SPI peripheral base pointers */\r
+#define SPI_BASE_PTRS_NS \\r
+ { \\r
+ SPI0_NS, SPI1_NS, SPI2_NS, SPI3_NS, SPI4_NS, SPI5_NS, SPI6_NS, SPI7_NS, SPI8_NS \\r
+ }\r
#else\r
- /** Peripheral SPI0 base address */\r
- #define SPI0_BASE (0x40086000u)\r
- /** Peripheral SPI0 base pointer */\r
- #define SPI0 ((SPI_Type *)SPI0_BASE)\r
- /** Peripheral SPI1 base address */\r
- #define SPI1_BASE (0x40087000u)\r
- /** Peripheral SPI1 base pointer */\r
- #define SPI1 ((SPI_Type *)SPI1_BASE)\r
- /** Peripheral SPI2 base address */\r
- #define SPI2_BASE (0x40088000u)\r
- /** Peripheral SPI2 base pointer */\r
- #define SPI2 ((SPI_Type *)SPI2_BASE)\r
- /** Peripheral SPI3 base address */\r
- #define SPI3_BASE (0x40089000u)\r
- /** Peripheral SPI3 base pointer */\r
- #define SPI3 ((SPI_Type *)SPI3_BASE)\r
- /** Peripheral SPI4 base address */\r
- #define SPI4_BASE (0x4008A000u)\r
- /** Peripheral SPI4 base pointer */\r
- #define SPI4 ((SPI_Type *)SPI4_BASE)\r
- /** Peripheral SPI5 base address */\r
- #define SPI5_BASE (0x40096000u)\r
- /** Peripheral SPI5 base pointer */\r
- #define SPI5 ((SPI_Type *)SPI5_BASE)\r
- /** Peripheral SPI6 base address */\r
- #define SPI6_BASE (0x40097000u)\r
- /** Peripheral SPI6 base pointer */\r
- #define SPI6 ((SPI_Type *)SPI6_BASE)\r
- /** Peripheral SPI7 base address */\r
- #define SPI7_BASE (0x40098000u)\r
- /** Peripheral SPI7 base pointer */\r
- #define SPI7 ((SPI_Type *)SPI7_BASE)\r
- /** Peripheral SPI8 base address */\r
- #define SPI8_BASE (0x4009F000u)\r
- /** Peripheral SPI8 base pointer */\r
- #define SPI8 ((SPI_Type *)SPI8_BASE)\r
- /** Array initializer of SPI peripheral base addresses */\r
- #define SPI_BASE_ADDRS { SPI0_BASE, SPI1_BASE, SPI2_BASE, SPI3_BASE, SPI4_BASE, SPI5_BASE, SPI6_BASE, SPI7_BASE, SPI8_BASE }\r
- /** Array initializer of SPI peripheral base pointers */\r
- #define SPI_BASE_PTRS { SPI0, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SPI7, SPI8 }\r
+/** Peripheral SPI0 base address */\r
+#define SPI0_BASE (0x40086000u)\r
+/** Peripheral SPI0 base pointer */\r
+#define SPI0 ((SPI_Type *)SPI0_BASE)\r
+/** Peripheral SPI1 base address */\r
+#define SPI1_BASE (0x40087000u)\r
+/** Peripheral SPI1 base pointer */\r
+#define SPI1 ((SPI_Type *)SPI1_BASE)\r
+/** Peripheral SPI2 base address */\r
+#define SPI2_BASE (0x40088000u)\r
+/** Peripheral SPI2 base pointer */\r
+#define SPI2 ((SPI_Type *)SPI2_BASE)\r
+/** Peripheral SPI3 base address */\r
+#define SPI3_BASE (0x40089000u)\r
+/** Peripheral SPI3 base pointer */\r
+#define SPI3 ((SPI_Type *)SPI3_BASE)\r
+/** Peripheral SPI4 base address */\r
+#define SPI4_BASE (0x4008A000u)\r
+/** Peripheral SPI4 base pointer */\r
+#define SPI4 ((SPI_Type *)SPI4_BASE)\r
+/** Peripheral SPI5 base address */\r
+#define SPI5_BASE (0x40096000u)\r
+/** Peripheral SPI5 base pointer */\r
+#define SPI5 ((SPI_Type *)SPI5_BASE)\r
+/** Peripheral SPI6 base address */\r
+#define SPI6_BASE (0x40097000u)\r
+/** Peripheral SPI6 base pointer */\r
+#define SPI6 ((SPI_Type *)SPI6_BASE)\r
+/** Peripheral SPI7 base address */\r
+#define SPI7_BASE (0x40098000u)\r
+/** Peripheral SPI7 base pointer */\r
+#define SPI7 ((SPI_Type *)SPI7_BASE)\r
+/** Peripheral SPI8 base address */\r
+#define SPI8_BASE (0x4009F000u)\r
+/** Peripheral SPI8 base pointer */\r
+#define SPI8 ((SPI_Type *)SPI8_BASE)\r
+/** Array initializer of SPI peripheral base addresses */\r
+#define SPI_BASE_ADDRS \\r
+ { \\r
+ SPI0_BASE, SPI1_BASE, SPI2_BASE, SPI3_BASE, SPI4_BASE, SPI5_BASE, SPI6_BASE, SPI7_BASE, SPI8_BASE \\r
+ }\r
+/** Array initializer of SPI peripheral base pointers */\r
+#define SPI_BASE_PTRS \\r
+ { \\r
+ SPI0, SPI1, SPI2, SPI3, SPI4, SPI5, SPI6, SPI7, SPI8 \\r
+ }\r
#endif\r
/** Interrupt vectors for the SPI peripheral type */\r
-#define SPI_IRQS { FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, FLEXCOMM6_IRQn, FLEXCOMM7_IRQn, LSPI_HS_IRQn }\r
+#define SPI_IRQS \\r
+ { \\r
+ FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, \\r
+ FLEXCOMM6_IRQn, FLEXCOMM7_IRQn, FLEXCOMM8_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group SPI_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- SYSCON Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** SYSCON - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t MEMORYREMAP; /**< Memory Remap control register, offset: 0x0 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t AHBMATPRIO; /**< AHB Matrix priority control register Priority values are 3 = highest, 0 = lowest, offset: 0x10 */\r
- uint8_t RESERVED_1[36];\r
- __IO uint32_t CPU0STCKCAL; /**< System tick calibration for secure part of CPU0, offset: 0x38 */\r
- __IO uint32_t CPU0NSTCKCAL; /**< System tick calibration for non-secure part of CPU0, offset: 0x3C */\r
- __IO uint32_t CPU1TCKCAL; /**< System tick calibration for CPU1, offset: 0x40 */\r
- uint8_t RESERVED_2[4];\r
- __IO uint32_t NMISRC; /**< NMI Source Select, offset: 0x48 */\r
- uint8_t RESERVED_3[180];\r
- union { /* offset: 0x100 */\r
- struct { /* offset: 0x100 */\r
- __IO uint32_t PRESETCTRL0; /**< Peripheral reset control 0, offset: 0x100 */\r
- __IO uint32_t PRESETCTRL1; /**< Peripheral reset control 1, offset: 0x104 */\r
- __IO uint32_t PRESETCTRL2; /**< Peripheral reset control 2, offset: 0x108 */\r
- } PRESETCTRL;\r
- __IO uint32_t PRESETCTRLX[3]; /**< Peripheral reset control register, array offset: 0x100, array step: 0x4 */\r
- };\r
- uint8_t RESERVED_4[20];\r
- __IO uint32_t PRESETCTRLSET[3]; /**< Peripheral reset control set register, array offset: 0x120, array step: 0x4 */\r
- uint8_t RESERVED_5[20];\r
- __IO uint32_t PRESETCTRLCLR[3]; /**< Peripheral reset contro clearl register, array offset: 0x140, array step: 0x4 */\r
- uint8_t RESERVED_6[20];\r
- __O uint32_t SWR_RESET; /**< generate a software_reset, offset: 0x160 */\r
- uint8_t RESERVED_7[156];\r
- union { /* offset: 0x200 */\r
- struct { /* offset: 0x200 */\r
- __IO uint32_t AHBCLKCTRL0; /**< AHB Clock control 0, offset: 0x200 */\r
- __IO uint32_t AHBCLKCTRL1; /**< AHB Clock control 1, offset: 0x204 */\r
- __IO uint32_t AHBCLKCTRL2; /**< AHB Clock control 2, offset: 0x208 */\r
- } AHBCLKCTRL;\r
- __IO uint32_t AHBCLKCTRLX[3]; /**< Peripheral reset control register, array offset: 0x200, array step: 0x4 */\r
- };\r
- uint8_t RESERVED_8[20];\r
- __IO uint32_t AHBCLKCTRLSET[3]; /**< Peripheral reset control register, array offset: 0x220, array step: 0x4 */\r
- uint8_t RESERVED_9[20];\r
- __IO uint32_t AHBCLKCTRLCLR[3]; /**< Peripheral reset control register, array offset: 0x240, array step: 0x4 */\r
- uint8_t RESERVED_10[20];\r
- union { /* offset: 0x260 */\r
- struct { /* offset: 0x260 */\r
- __IO uint32_t SYSTICKCLKSEL0; /**< System Tick Timer for CPU0 source select, offset: 0x260 */\r
- __IO uint32_t SYSTICKCLKSEL1; /**< System Tick Timer for CPU1 source select, offset: 0x264 */\r
- } SYSTICKCLKSEL;\r
- __IO uint32_t SYSTICKCLKSELX[2]; /**< Peripheral reset control register, array offset: 0x260, array step: 0x4 */\r
- };\r
- __IO uint32_t TRACECLKSEL; /**< Trace clock source select, offset: 0x268 */\r
- union { /* offset: 0x26C */\r
- struct { /* offset: 0x26C */\r
- __IO uint32_t CTIMERCLKSEL0; /**< CTimer 0 clock source select, offset: 0x26C */\r
- __IO uint32_t CTIMERCLKSEL1; /**< CTimer 1 clock source select, offset: 0x270 */\r
- __IO uint32_t CTIMERCLKSEL2; /**< CTimer 2 clock source select, offset: 0x274 */\r
- __IO uint32_t CTIMERCLKSEL3; /**< CTimer 3 clock source select, offset: 0x278 */\r
- __IO uint32_t CTIMERCLKSEL4; /**< CTimer 4 clock source select, offset: 0x27C */\r
- } CTIMERCLKSEL;\r
- __IO uint32_t CTIMERCLKSELX[5]; /**< Peripheral reset control register, array offset: 0x26C, array step: 0x4 */\r
- };\r
- __IO uint32_t MAINCLKSELA; /**< Main clock A source select, offset: 0x280 */\r
- __IO uint32_t MAINCLKSELB; /**< Main clock source select, offset: 0x284 */\r
- __IO uint32_t CLKOUTSEL; /**< CLKOUT clock source select, offset: 0x288 */\r
- uint8_t RESERVED_11[4];\r
- __IO uint32_t PLL0CLKSEL; /**< PLL0 clock source select, offset: 0x290 */\r
- __IO uint32_t PLL1CLKSEL; /**< PLL1 clock source select, offset: 0x294 */\r
- uint8_t RESERVED_12[12];\r
- __IO uint32_t ADCCLKSEL; /**< ADC clock source select, offset: 0x2A4 */\r
- __IO uint32_t USB0CLKSEL; /**< FS USB clock source select, offset: 0x2A8 */\r
- __IO uint32_t USB1CLKSEL; /**< HS USB clock source select - NOT USED, offset: 0x2AC */\r
- union { /* offset: 0x2B0 */\r
- struct { /* offset: 0x2B0 */\r
- __IO uint32_t FCCLKSEL0; /**< Flexcomm Interface 0 clock source select for Fractional Rate Divider, offset: 0x2B0 */\r
- __IO uint32_t FCCLKSEL1; /**< Flexcomm Interface 1 clock source select for Fractional Rate Divider, offset: 0x2B4 */\r
- __IO uint32_t FCCLKSEL2; /**< Flexcomm Interface 2 clock source select for Fractional Rate Divider, offset: 0x2B8 */\r
- __IO uint32_t FCCLKSEL3; /**< Flexcomm Interface 3 clock source select for Fractional Rate Divider, offset: 0x2BC */\r
- __IO uint32_t FCCLKSEL4; /**< Flexcomm Interface 4 clock source select for Fractional Rate Divider, offset: 0x2C0 */\r
- __IO uint32_t FCCLKSEL5; /**< Flexcomm Interface 5 clock source select for Fractional Rate Divider, offset: 0x2C4 */\r
- __IO uint32_t FCCLKSEL6; /**< Flexcomm Interface 6 clock source select for Fractional Rate Divider, offset: 0x2C8 */\r
- __IO uint32_t FCCLKSEL7; /**< Flexcomm Interface 7 clock source select for Fractional Rate Divider, offset: 0x2CC */\r
- } FCCLKSEL;\r
- __IO uint32_t FCCLKSELX[8]; /**< Peripheral reset control register, array offset: 0x2B0, array step: 0x4 */\r
- };\r
- __IO uint32_t HSLSPICLKSEL; /**< HS LSPI clock source select, offset: 0x2D0 */\r
- uint8_t RESERVED_13[12];\r
- __IO uint32_t MCLKCLKSEL; /**< MCLK clock source select, offset: 0x2E0 */\r
- uint8_t RESERVED_14[12];\r
- __IO uint32_t SCTCLKSEL; /**< SCTimer/PWM clock source select, offset: 0x2F0 */\r
- uint8_t RESERVED_15[4];\r
- __IO uint32_t SDIOCLKSEL; /**< SDIO clock source select, offset: 0x2F8 */\r
- uint8_t RESERVED_16[4];\r
- __IO uint32_t SYSTICKCLKDIV0; /**< System Tick Timer divider for CPU0, offset: 0x300 */\r
- __IO uint32_t SYSTICKCLKDIV1; /**< System Tick Timer divider for CPU1, offset: 0x304 */\r
- __IO uint32_t TRACECLKDIV; /**< TRACE clock divider, offset: 0x308 */\r
- uint8_t RESERVED_17[20];\r
- union { /* offset: 0x320 */\r
- struct { /* offset: 0x320 */\r
- __IO uint32_t FLEXFRG0CTRL; /**< Fractional rate divider for flexcomm 0, offset: 0x320 */\r
- __IO uint32_t FLEXFRG1CTRL; /**< Fractional rate divider for flexcomm 1, offset: 0x324 */\r
- __IO uint32_t FLEXFRG2CTRL; /**< Fractional rate divider for flexcomm 2, offset: 0x328 */\r
- __IO uint32_t FLEXFRG3CTRL; /**< Fractional rate divider for flexcomm 3, offset: 0x32C */\r
- __IO uint32_t FLEXFRG4CTRL; /**< Fractional rate divider for flexcomm 4, offset: 0x330 */\r
- __IO uint32_t FLEXFRG5CTRL; /**< Fractional rate divider for flexcomm 5, offset: 0x334 */\r
- __IO uint32_t FLEXFRG6CTRL; /**< Fractional rate divider for flexcomm 6, offset: 0x338 */\r
- __IO uint32_t FLEXFRG7CTRL; /**< Fractional rate divider for flexcomm 7, offset: 0x33C */\r
- } FLEXFRGCTRL;\r
- __IO uint32_t FLEXFRGXCTRL[8]; /**< Peripheral reset control register, array offset: 0x320, array step: 0x4 */\r
- };\r
- uint8_t RESERVED_18[64];\r
- __IO uint32_t AHBCLKDIV; /**< System clock divider, offset: 0x380 */\r
- __IO uint32_t CLKOUTDIV; /**< CLKOUT clock divider, offset: 0x384 */\r
- __IO uint32_t FROHFDIV; /**< FRO_HF (96MHz) clock divider, offset: 0x388 */\r
- __IO uint32_t WDTCLKDIV; /**< WDT clock divider, offset: 0x38C */\r
- uint8_t RESERVED_19[4];\r
- __IO uint32_t ADCCLKDIV; /**< ADC clock divider, offset: 0x394 */\r
- __IO uint32_t USB0CLKDIV; /**< USB0 Clock divider, offset: 0x398 */\r
- uint8_t RESERVED_20[16];\r
- __IO uint32_t MCLKDIV; /**< I2S MCLK clock divider, offset: 0x3AC */\r
- uint8_t RESERVED_21[4];\r
- __IO uint32_t SCTCLKDIV; /**< SCT/PWM clock divider, offset: 0x3B4 */\r
- uint8_t RESERVED_22[4];\r
- __IO uint32_t SDIOCLKDIV; /**< SDIO clock divider, offset: 0x3BC */\r
- uint8_t RESERVED_23[4];\r
- __IO uint32_t PLL0CLKDIV; /**< PLL0 clock divider, offset: 0x3C4 */\r
- uint8_t RESERVED_24[52];\r
- __IO uint32_t CLOCKGENUPDATELOCKOUT; /**< Control clock configuration registers access (like xxxDIV, xxxSEL), offset: 0x3FC */\r
- __IO uint32_t FMCCR; /**< FMC configuration register - INTERNAL USE ONLY, offset: 0x400 */\r
- uint8_t RESERVED_25[8];\r
- __IO uint32_t USB0CLKCTRL; /**< USB0 clock control, offset: 0x40C */\r
- __I uint32_t USB0CLKSTAT; /**< USB0 clock status, offset: 0x410 */\r
- uint8_t RESERVED_26[8];\r
- __O uint32_t FMCFLUSH; /**< FMCflush control, offset: 0x41C */\r
- __IO uint32_t MCLKIO; /**< MCLK control, offset: 0x420 */\r
- __IO uint32_t USB1CLKCTRL; /**< USB1 clock control, offset: 0x424 */\r
- __I uint32_t USB1CLKSTAT; /**< USB1 clock status, offset: 0x428 */\r
- uint8_t RESERVED_27[36];\r
- __IO uint32_t FLASHBANKENABLE; /**< Flash Banks control, offset: 0x450 */\r
- uint8_t RESERVED_28[12];\r
- __IO uint32_t SDIOCLKCTRL; /**< SDIO CCLKIN phase and delay control, offset: 0x460 */\r
- uint8_t RESERVED_29[252];\r
- __IO uint32_t PLL1CTRL; /**< PLL1 550m control, offset: 0x560 */\r
- __I uint32_t PLL1STAT; /**< PLL1 550m status, offset: 0x564 */\r
- __IO uint32_t PLL1NDEC; /**< PLL1 550m N divider, offset: 0x568 */\r
- __IO uint32_t PLL1MDEC; /**< PLL1 550m M divider, offset: 0x56C */\r
- __IO uint32_t PLL1PDEC; /**< PLL1 550m P divider, offset: 0x570 */\r
- uint8_t RESERVED_30[12];\r
- __IO uint32_t PLL0CTRL; /**< PLL0 550m control, offset: 0x580 */\r
- __I uint32_t PLL0STAT; /**< PLL0 550m status, offset: 0x584 */\r
- __IO uint32_t PLL0NDEC; /**< PLL0 550m N divider, offset: 0x588 */\r
- __IO uint32_t PLL0PDEC; /**< PLL0 550m P divider, offset: 0x58C */\r
- __IO uint32_t PLL0SSCG0; /**< PLL0 Spread Spectrum Wrapper control register 0, offset: 0x590 */\r
- __IO uint32_t PLL0SSCG1; /**< PLL0 Spread Spectrum Wrapper control register 1, offset: 0x594 */\r
- uint8_t RESERVED_31[52];\r
- __IO uint32_t EFUSECLKCTRL; /**< eFUSE controller clock enable, offset: 0x5CC */\r
- uint8_t RESERVED_32[176];\r
- __IO uint32_t STARTER[2]; /**< Start logic wake-up enable register, array offset: 0x680, array step: 0x4 */\r
- uint8_t RESERVED_33[24];\r
- __O uint32_t STARTERSET[2]; /**< Set bits in STARTER, array offset: 0x6A0, array step: 0x4 */\r
- uint8_t RESERVED_34[24];\r
- __O uint32_t STARTERCLR[2]; /**< Clear bits in STARTER, array offset: 0x6C0, array step: 0x4 */\r
- uint8_t RESERVED_35[184];\r
- __IO uint32_t HARDWARESLEEP; /**< Hardware Sleep control, offset: 0x780 */\r
- uint8_t RESERVED_36[124];\r
- __IO uint32_t CPUCTRL; /**< CPU Control for multiple processors, offset: 0x800 */\r
- __IO uint32_t CPBOOT; /**< Coprocessor Boot Address, offset: 0x804 */\r
- __IO uint32_t CPSTACK; /**< Coprocessor Stack Address, offset: 0x808 */\r
- __I uint32_t CPSTAT; /**< CPU Status, offset: 0x80C */\r
- uint8_t RESERVED_37[240];\r
- __IO uint32_t DICE_REG0; /**< Composite Device Identifier, offset: 0x900 */\r
- __IO uint32_t DICE_REG1; /**< Composite Device Identifier, offset: 0x904 */\r
- __IO uint32_t DICE_REG2; /**< Composite Device Identifier, offset: 0x908 */\r
- __IO uint32_t DICE_REG3; /**< Composite Device Identifier, offset: 0x90C */\r
- __IO uint32_t DICE_REG4; /**< Composite Device Identifier, offset: 0x910 */\r
- __IO uint32_t DICE_REG5; /**< Composite Device Identifier, offset: 0x914 */\r
- __IO uint32_t DICE_REG6; /**< Composite Device Identifier, offset: 0x918 */\r
- __IO uint32_t DICE_REG7; /**< Composite Device Identifier, offset: 0x91C */\r
- uint8_t RESERVED_38[248];\r
- __IO uint32_t CLOCK_CTRL; /**< Various system clock controls : Flash clock (48 MHz) control, clocks to Frequency Measures, offset: 0xA18 */\r
- uint8_t RESERVED_39[244];\r
- __IO uint32_t COMP_INT_CTRL; /**< Comparator Interrupt control, offset: 0xB10 */\r
- __I uint32_t COMP_INT_STATUS; /**< Comparator Interrupt status, offset: 0xB14 */\r
- uint8_t RESERVED_40[748];\r
- __IO uint32_t AUTOCLKGATEOVERRIDE; /**< Control automatic clock gating, offset: 0xE04 */\r
- __IO uint32_t GPIOPSYNC; /**< Enable bypass of the first stage of synchonization inside GPIO_INT module, offset: 0xE08 */\r
- uint8_t RESERVED_41[404];\r
- __IO uint32_t DEBUG_LOCK_EN; /**< Control write access to security registers -- FOR INTERNAl USE ONLY, offset: 0xFA0 */\r
- __IO uint32_t DEBUG_FEATURES; /**< Cortex M33 (CPU0) and micro Cortex M33 (CPU1) debug features control -- FOR INTERNAl USE ONLY, offset: 0xFA4 */\r
- __IO uint32_t DEBUG_FEATURES_DP; /**< Cortex M33 (CPU0) and micro Cortex M33 (CPU1) debug features control DUPLICATE register -- FOR INTERNAl USE ONLY, offset: 0xFA8 */\r
- uint8_t RESERVED_42[4];\r
- __O uint32_t CODESECURITYPROTTEST; /**< Security code to allow test (Design for Testability) access -- FOR INTERNAl USE ONLY, offset: 0xFB0 */\r
- __O uint32_t CODESECURITYPROTCPU0; /**< Security code to allow CPU0 (CM33) Debug Access Port (DAP) -- FOR INTERNAl USE ONLY, offset: 0xFB4 */\r
- __O uint32_t CODESECURITYPROTCPU1; /**< Security code to allow CPU1 (Micro CM33) Debug Access Port (DAP) -- FOR INTERNAl USE ONLY, offset: 0xFB8 */\r
- __O uint32_t KEY_BLOCK; /**< block quiddikey/PUF all index. -- FOR INTERNAL USE ONLY, offset: 0xFBC */\r
- __IO uint32_t DEBUG_AUTH_SCRATCH; /**< Debug authentication scratch registers -- FOR INTERNAL USE ONLY, offset: 0xFC0 */\r
- uint8_t RESERVED_43[16];\r
- __IO uint32_t CPUCFG; /**< CPUs configuration register, offset: 0xFD4 */\r
- uint8_t RESERVED_44[20];\r
- __IO uint32_t PERIPHENCFG; /**< peripheral enable configuration -- FOR INTERNAL USE ONLY, offset: 0xFEC */\r
- uint8_t RESERVED_45[8];\r
- __I uint32_t DEVICE_ID0; /**< Device ID, offset: 0xFF8 */\r
- __I uint32_t DIEID; /**< Chip revision ID and Number, offset: 0xFFC */\r
+typedef struct\r
+{\r
+ __IO uint32_t MEMORYREMAP; /**< Memory Remap control register, offset: 0x0 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t AHBMATPRIO; /**< AHB Matrix priority control register Priority values are 3 = highest, 0 = lowest,\r
+ offset: 0x10 */\r
+ uint8_t RESERVED_1[36];\r
+ __IO uint32_t CPU0STCKCAL; /**< System tick calibration for secure part of CPU0, offset: 0x38 */\r
+ __IO uint32_t CPU0NSTCKCAL; /**< System tick calibration for non-secure part of CPU0, offset: 0x3C */\r
+ __IO uint32_t CPU1STCKCAL; /**< System tick calibration for CPU1, offset: 0x40 */\r
+ uint8_t RESERVED_2[4];\r
+ __IO uint32_t NMISRC; /**< NMI Source Select, offset: 0x48 */\r
+ uint8_t RESERVED_3[180];\r
+ union\r
+ { /* offset: 0x100 */\r
+ struct\r
+ { /* offset: 0x100 */\r
+ __IO uint32_t PRESETCTRL0; /**< Peripheral reset control 0, offset: 0x100 */\r
+ __IO uint32_t PRESETCTRL1; /**< Peripheral reset control 1, offset: 0x104 */\r
+ __IO uint32_t PRESETCTRL2; /**< Peripheral reset control 2, offset: 0x108 */\r
+ } PRESETCTRL;\r
+ __IO uint32_t PRESETCTRLX[3]; /**< Peripheral reset control register, array offset: 0x100, array step: 0x4 */\r
+ };\r
+ uint8_t RESERVED_4[20];\r
+ __IO uint32_t PRESETCTRLSET[3]; /**< Peripheral reset control set register, array offset: 0x120, array step: 0x4 */\r
+ uint8_t RESERVED_5[20];\r
+ __IO uint32_t\r
+ PRESETCTRLCLR[3]; /**< Peripheral reset control clear register, array offset: 0x140, array step: 0x4 */\r
+ uint8_t RESERVED_6[20];\r
+ __O uint32_t SWR_RESET; /**< generate a software_reset, offset: 0x160 */\r
+ uint8_t RESERVED_7[156];\r
+ union\r
+ { /* offset: 0x200 */\r
+ struct\r
+ { /* offset: 0x200 */\r
+ __IO uint32_t AHBCLKCTRL0; /**< AHB Clock control 0, offset: 0x200 */\r
+ __IO uint32_t AHBCLKCTRL1; /**< AHB Clock control 1, offset: 0x204 */\r
+ __IO uint32_t AHBCLKCTRL2; /**< AHB Clock control 2, offset: 0x208 */\r
+ } AHBCLKCTRL;\r
+ __IO uint32_t AHBCLKCTRLX[3]; /**< Peripheral reset control register, array offset: 0x200, array step: 0x4 */\r
+ };\r
+ uint8_t RESERVED_8[20];\r
+ __IO uint32_t AHBCLKCTRLSET[3]; /**< Peripheral reset control register, array offset: 0x220, array step: 0x4 */\r
+ uint8_t RESERVED_9[20];\r
+ __IO uint32_t AHBCLKCTRLCLR[3]; /**< Peripheral reset control register, array offset: 0x240, array step: 0x4 */\r
+ uint8_t RESERVED_10[20];\r
+ union\r
+ { /* offset: 0x260 */\r
+ struct\r
+ { /* offset: 0x260 */\r
+ __IO uint32_t SYSTICKCLKSEL0; /**< System Tick Timer for CPU0 source select, offset: 0x260 */\r
+ __IO uint32_t SYSTICKCLKSEL1; /**< System Tick Timer for CPU1 source select, offset: 0x264 */\r
+ } SYSTICKCLKSEL;\r
+ __IO uint32_t SYSTICKCLKSELX[2]; /**< Peripheral reset control register, array offset: 0x260, array step: 0x4 */\r
+ };\r
+ __IO uint32_t TRACECLKSEL; /**< Trace clock source select, offset: 0x268 */\r
+ union\r
+ { /* offset: 0x26C */\r
+ struct\r
+ { /* offset: 0x26C */\r
+ __IO uint32_t CTIMERCLKSEL0; /**< CTimer 0 clock source select, offset: 0x26C */\r
+ __IO uint32_t CTIMERCLKSEL1; /**< CTimer 1 clock source select, offset: 0x270 */\r
+ __IO uint32_t CTIMERCLKSEL2; /**< CTimer 2 clock source select, offset: 0x274 */\r
+ __IO uint32_t CTIMERCLKSEL3; /**< CTimer 3 clock source select, offset: 0x278 */\r
+ __IO uint32_t CTIMERCLKSEL4; /**< CTimer 4 clock source select, offset: 0x27C */\r
+ } CTIMERCLKSEL;\r
+ __IO uint32_t CTIMERCLKSELX[5]; /**< Peripheral reset control register, array offset: 0x26C, array step: 0x4 */\r
+ };\r
+ __IO uint32_t MAINCLKSELA; /**< Main clock A source select, offset: 0x280 */\r
+ __IO uint32_t MAINCLKSELB; /**< Main clock source select, offset: 0x284 */\r
+ __IO uint32_t CLKOUTSEL; /**< CLKOUT clock source select, offset: 0x288 */\r
+ uint8_t RESERVED_11[4];\r
+ __IO uint32_t PLL0CLKSEL; /**< PLL0 clock source select, offset: 0x290 */\r
+ __IO uint32_t PLL1CLKSEL; /**< PLL1 clock source select, offset: 0x294 */\r
+ uint8_t RESERVED_12[12];\r
+ __IO uint32_t ADCCLKSEL; /**< ADC clock source select, offset: 0x2A4 */\r
+ __IO uint32_t USB0CLKSEL; /**< FS USB clock source select, offset: 0x2A8 */\r
+ uint8_t RESERVED_13[4];\r
+ union\r
+ { /* offset: 0x2B0 */\r
+ struct\r
+ { /* offset: 0x2B0 */\r
+ __IO uint32_t\r
+ FCCLKSEL0; /**< Flexcomm Interface 0 clock source select for Fractional Rate Divider, offset: 0x2B0 */\r
+ __IO uint32_t\r
+ FCCLKSEL1; /**< Flexcomm Interface 1 clock source select for Fractional Rate Divider, offset: 0x2B4 */\r
+ __IO uint32_t\r
+ FCCLKSEL2; /**< Flexcomm Interface 2 clock source select for Fractional Rate Divider, offset: 0x2B8 */\r
+ __IO uint32_t\r
+ FCCLKSEL3; /**< Flexcomm Interface 3 clock source select for Fractional Rate Divider, offset: 0x2BC */\r
+ __IO uint32_t\r
+ FCCLKSEL4; /**< Flexcomm Interface 4 clock source select for Fractional Rate Divider, offset: 0x2C0 */\r
+ __IO uint32_t\r
+ FCCLKSEL5; /**< Flexcomm Interface 5 clock source select for Fractional Rate Divider, offset: 0x2C4 */\r
+ __IO uint32_t\r
+ FCCLKSEL6; /**< Flexcomm Interface 6 clock source select for Fractional Rate Divider, offset: 0x2C8 */\r
+ __IO uint32_t\r
+ FCCLKSEL7; /**< Flexcomm Interface 7 clock source select for Fractional Rate Divider, offset: 0x2CC */\r
+ } FCCLKSEL;\r
+ __IO uint32_t FCCLKSELX[8]; /**< Peripheral reset control register, array offset: 0x2B0, array step: 0x4 */\r
+ };\r
+ __IO uint32_t HSLSPICLKSEL; /**< HS LSPI clock source select, offset: 0x2D0 */\r
+ uint8_t RESERVED_14[12];\r
+ __IO uint32_t MCLKCLKSEL; /**< MCLK clock source select, offset: 0x2E0 */\r
+ uint8_t RESERVED_15[12];\r
+ __IO uint32_t SCTCLKSEL; /**< SCTimer/PWM clock source select, offset: 0x2F0 */\r
+ uint8_t RESERVED_16[4];\r
+ __IO uint32_t SDIOCLKSEL; /**< SDIO clock source select, offset: 0x2F8 */\r
+ uint8_t RESERVED_17[4];\r
+ __IO uint32_t SYSTICKCLKDIV0; /**< System Tick Timer divider for CPU0, offset: 0x300 */\r
+ __IO uint32_t SYSTICKCLKDIV1; /**< System Tick Timer divider for CPU1, offset: 0x304 */\r
+ __IO uint32_t TRACECLKDIV; /**< TRACE clock divider, offset: 0x308 */\r
+ uint8_t RESERVED_18[20];\r
+ union\r
+ { /* offset: 0x320 */\r
+ struct\r
+ { /* offset: 0x320 */\r
+ __IO uint32_t FLEXFRG0CTRL; /**< Fractional rate divider for flexcomm 0, offset: 0x320 */\r
+ __IO uint32_t FLEXFRG1CTRL; /**< Fractional rate divider for flexcomm 1, offset: 0x324 */\r
+ __IO uint32_t FLEXFRG2CTRL; /**< Fractional rate divider for flexcomm 2, offset: 0x328 */\r
+ __IO uint32_t FLEXFRG3CTRL; /**< Fractional rate divider for flexcomm 3, offset: 0x32C */\r
+ __IO uint32_t FLEXFRG4CTRL; /**< Fractional rate divider for flexcomm 4, offset: 0x330 */\r
+ __IO uint32_t FLEXFRG5CTRL; /**< Fractional rate divider for flexcomm 5, offset: 0x334 */\r
+ __IO uint32_t FLEXFRG6CTRL; /**< Fractional rate divider for flexcomm 6, offset: 0x338 */\r
+ __IO uint32_t FLEXFRG7CTRL; /**< Fractional rate divider for flexcomm 7, offset: 0x33C */\r
+ } FLEXFRGCTRL;\r
+ __IO uint32_t FLEXFRGXCTRL[8]; /**< Peripheral reset control register, array offset: 0x320, array step: 0x4 */\r
+ };\r
+ uint8_t RESERVED_19[64];\r
+ __IO uint32_t AHBCLKDIV; /**< System clock divider, offset: 0x380 */\r
+ __IO uint32_t CLKOUTDIV; /**< CLKOUT clock divider, offset: 0x384 */\r
+ __IO uint32_t FROHFDIV; /**< FRO_HF (96MHz) clock divider, offset: 0x388 */\r
+ __IO uint32_t WDTCLKDIV; /**< WDT clock divider, offset: 0x38C */\r
+ uint8_t RESERVED_20[4];\r
+ __IO uint32_t ADCCLKDIV; /**< ADC clock divider, offset: 0x394 */\r
+ __IO uint32_t USB0CLKDIV; /**< USB0 Clock divider, offset: 0x398 */\r
+ uint8_t RESERVED_21[16];\r
+ __IO uint32_t MCLKDIV; /**< I2S MCLK clock divider, offset: 0x3AC */\r
+ uint8_t RESERVED_22[4];\r
+ __IO uint32_t SCTCLKDIV; /**< SCT/PWM clock divider, offset: 0x3B4 */\r
+ uint8_t RESERVED_23[4];\r
+ __IO uint32_t SDIOCLKDIV; /**< SDIO clock divider, offset: 0x3BC */\r
+ uint8_t RESERVED_24[4];\r
+ __IO uint32_t PLL0CLKDIV; /**< PLL0 clock divider, offset: 0x3C4 */\r
+ uint8_t RESERVED_25[52];\r
+ __IO uint32_t\r
+ CLOCKGENUPDATELOCKOUT; /**< Control clock configuration registers access (like xxxDIV, xxxSEL), offset: 0x3FC */\r
+ __IO uint32_t FMCCR; /**< FMC configuration register, offset: 0x400 */\r
+ uint8_t RESERVED_26[8];\r
+ __IO uint32_t USB0NEEDCLKCTRL; /**< USB0 need clock control, offset: 0x40C */\r
+ __I uint32_t USB0NEEDCLKSTAT; /**< USB0 need clock status, offset: 0x410 */\r
+ uint8_t RESERVED_27[8];\r
+ __O uint32_t FMCFLUSH; /**< FMCflush control, offset: 0x41C */\r
+ __IO uint32_t MCLKIO; /**< MCLK control, offset: 0x420 */\r
+ __IO uint32_t USB1NEEDCLKCTRL; /**< USB1 need clock control, offset: 0x424 */\r
+ __I uint32_t USB1NEEDCLKSTAT; /**< USB1 need clock status, offset: 0x428 */\r
+ uint8_t RESERVED_28[52];\r
+ __IO uint32_t SDIOCLKCTRL; /**< SDIO CCLKIN phase and delay control, offset: 0x460 */\r
+ uint8_t RESERVED_29[252];\r
+ __IO uint32_t PLL1CTRL; /**< PLL1 550m control, offset: 0x560 */\r
+ __I uint32_t PLL1STAT; /**< PLL1 550m status, offset: 0x564 */\r
+ __IO uint32_t PLL1NDEC; /**< PLL1 550m N divider, offset: 0x568 */\r
+ __IO uint32_t PLL1MDEC; /**< PLL1 550m M divider, offset: 0x56C */\r
+ __IO uint32_t PLL1PDEC; /**< PLL1 550m P divider, offset: 0x570 */\r
+ uint8_t RESERVED_30[12];\r
+ __IO uint32_t PLL0CTRL; /**< PLL0 550m control, offset: 0x580 */\r
+ __I uint32_t PLL0STAT; /**< PLL0 550m status, offset: 0x584 */\r
+ __IO uint32_t PLL0NDEC; /**< PLL0 550m N divider, offset: 0x588 */\r
+ __IO uint32_t PLL0PDEC; /**< PLL0 550m P divider, offset: 0x58C */\r
+ __IO uint32_t PLL0SSCG0; /**< PLL0 Spread Spectrum Wrapper control register 0, offset: 0x590 */\r
+ __IO uint32_t PLL0SSCG1; /**< PLL0 Spread Spectrum Wrapper control register 1, offset: 0x594 */\r
+ uint8_t RESERVED_31[616];\r
+ __IO uint32_t CPUCTRL; /**< CPU Control for multiple processors, offset: 0x800 */\r
+ __IO uint32_t CPBOOT; /**< Coprocessor Boot Address, offset: 0x804 */\r
+ uint8_t RESERVED_32[4];\r
+ __I uint32_t CPSTAT; /**< CPU Status, offset: 0x80C */\r
+ uint8_t RESERVED_33[520];\r
+ __IO uint32_t CLOCK_CTRL; /**< Various system clock controls : Flash clock (48 MHz) control, clocks to Frequency\r
+ Measures, offset: 0xA18 */\r
+ uint8_t RESERVED_34[244];\r
+ __IO uint32_t COMP_INT_CTRL; /**< Comparator Interrupt control, offset: 0xB10 */\r
+ __I uint32_t COMP_INT_STATUS; /**< Comparator Interrupt status, offset: 0xB14 */\r
+ uint8_t RESERVED_35[748];\r
+ __IO uint32_t AUTOCLKGATEOVERRIDE; /**< Control automatic clock gating, offset: 0xE04 */\r
+ __IO uint32_t\r
+ GPIOPSYNC; /**< Enable bypass of the first stage of synchonization inside GPIO_INT module, offset: 0xE08 */\r
+ uint8_t RESERVED_36[404];\r
+ __IO uint32_t DEBUG_LOCK_EN; /**< Control write access to security registers., offset: 0xFA0 */\r
+ __IO uint32_t\r
+ DEBUG_FEATURES; /**< Cortex M33 (CPU0) and micro Cortex M33 (CPU1) debug features control., offset: 0xFA4 */\r
+ __IO uint32_t DEBUG_FEATURES_DP; /**< Cortex M33 (CPU0) and micro Cortex M33 (CPU1) debug features control DUPLICATE\r
+ register., offset: 0xFA8 */\r
+ uint8_t RESERVED_37[16];\r
+ __O uint32_t KEY_BLOCK; /**< block quiddikey/PUF all index., offset: 0xFBC */\r
+ __IO uint32_t DEBUG_AUTH_BEACON; /**< Debug authentication BEACON register, offset: 0xFC0 */\r
+ uint8_t RESERVED_38[16];\r
+ __IO uint32_t CPUCFG; /**< CPUs configuration register, offset: 0xFD4 */\r
+ uint8_t RESERVED_39[32];\r
+ __I uint32_t DEVICE_ID0; /**< Device ID, offset: 0xFF8 */\r
+ __I uint32_t DIEID; /**< Chip revision ID and Number, offset: 0xFFC */\r
} SYSCON_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name MEMORYREMAP - Memory Remap control register */\r
/*! @{ */\r
-#define SYSCON_MEMORYREMAP_MAP_MASK (0x3U)\r
-#define SYSCON_MEMORYREMAP_MAP_SHIFT (0U)\r
+#define SYSCON_MEMORYREMAP_MAP_MASK (0x3U)\r
+#define SYSCON_MEMORYREMAP_MAP_SHIFT (0U)\r
/*! MAP - Select the location of the vector table :.\r
* 0b00..Vector Table in ROM.\r
* 0b01..Vector Table in RAM.\r
* 0b10..Vector Table in Flash.\r
* 0b11..Vector Table in Flash.\r
*/\r
-#define SYSCON_MEMORYREMAP_MAP(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MEMORYREMAP_MAP_SHIFT)) & SYSCON_MEMORYREMAP_MAP_MASK)\r
+#define SYSCON_MEMORYREMAP_MAP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_MEMORYREMAP_MAP_SHIFT)) & SYSCON_MEMORYREMAP_MAP_MASK)\r
/*! @} */\r
\r
/*! @name AHBMATPRIO - AHB Matrix priority control register Priority values are 3 = highest, 0 = lowest */\r
/*! @{ */\r
-#define SYSCON_AHBMATPRIO_PRI_TEAL_CBUS_MASK (0x3U)\r
-#define SYSCON_AHBMATPRIO_PRI_TEAL_CBUS_SHIFT (0U)\r
-#define SYSCON_AHBMATPRIO_PRI_TEAL_CBUS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_TEAL_CBUS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_TEAL_CBUS_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_TEAL_SBUS_MASK (0xCU)\r
-#define SYSCON_AHBMATPRIO_PRI_TEAL_SBUS_SHIFT (2U)\r
-#define SYSCON_AHBMATPRIO_PRI_TEAL_SBUS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_TEAL_SBUS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_TEAL_SBUS_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_UTEAL_CBUS_MASK (0x30U)\r
-#define SYSCON_AHBMATPRIO_PRI_UTEAL_CBUS_SHIFT (4U)\r
-#define SYSCON_AHBMATPRIO_PRI_UTEAL_CBUS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_UTEAL_CBUS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_UTEAL_CBUS_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_UTEAL_SBUS_MASK (0xC0U)\r
-#define SYSCON_AHBMATPRIO_PRI_UTEAL_SBUS_SHIFT (6U)\r
-#define SYSCON_AHBMATPRIO_PRI_UTEAL_SBUS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_UTEAL_SBUS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_UTEAL_SBUS_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_USB_FS_MASK (0x300U)\r
-#define SYSCON_AHBMATPRIO_PRI_USB_FS_SHIFT (8U)\r
-#define SYSCON_AHBMATPRIO_PRI_USB_FS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_USB_FS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_USB_FS_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_SDMA0_MASK (0xC00U)\r
-#define SYSCON_AHBMATPRIO_PRI_SDMA0_SHIFT (10U)\r
-#define SYSCON_AHBMATPRIO_PRI_SDMA0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_SDMA0_SHIFT)) & SYSCON_AHBMATPRIO_PRI_SDMA0_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_EZH_B_D_MASK (0x3000U)\r
-#define SYSCON_AHBMATPRIO_PRI_EZH_B_D_SHIFT (12U)\r
-#define SYSCON_AHBMATPRIO_PRI_EZH_B_D(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_EZH_B_D_SHIFT)) & SYSCON_AHBMATPRIO_PRI_EZH_B_D_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_EZH_B_I_MASK (0xC000U)\r
-#define SYSCON_AHBMATPRIO_PRI_EZH_B_I_SHIFT (14U)\r
-#define SYSCON_AHBMATPRIO_PRI_EZH_B_I(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_EZH_B_I_SHIFT)) & SYSCON_AHBMATPRIO_PRI_EZH_B_I_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_SDIO_MASK (0x30000U)\r
-#define SYSCON_AHBMATPRIO_PRI_SDIO_SHIFT (16U)\r
-#define SYSCON_AHBMATPRIO_PRI_SDIO(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_SDIO_SHIFT)) & SYSCON_AHBMATPRIO_PRI_SDIO_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_PQ_MASK (0xC0000U)\r
-#define SYSCON_AHBMATPRIO_PRI_PQ_SHIFT (18U)\r
-#define SYSCON_AHBMATPRIO_PRI_PQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_PQ_SHIFT)) & SYSCON_AHBMATPRIO_PRI_PQ_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_SHA2_MASK (0x300000U)\r
-#define SYSCON_AHBMATPRIO_PRI_SHA2_SHIFT (20U)\r
-#define SYSCON_AHBMATPRIO_PRI_SHA2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_SHA2_SHIFT)) & SYSCON_AHBMATPRIO_PRI_SHA2_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_USB_HS_MASK (0xC00000U)\r
-#define SYSCON_AHBMATPRIO_PRI_USB_HS_SHIFT (22U)\r
-#define SYSCON_AHBMATPRIO_PRI_USB_HS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_USB_HS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_USB_HS_MASK)\r
-#define SYSCON_AHBMATPRIO_PRI_SDMA1_MASK (0x3000000U)\r
-#define SYSCON_AHBMATPRIO_PRI_SDMA1_SHIFT (24U)\r
-#define SYSCON_AHBMATPRIO_PRI_SDMA1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_SDMA1_SHIFT)) & SYSCON_AHBMATPRIO_PRI_SDMA1_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_CPU0_CBUS_MASK (0x3U)\r
+#define SYSCON_AHBMATPRIO_PRI_CPU0_CBUS_SHIFT (0U)\r
+/*! PRI_CPU0_CBUS - CPU0 C-AHB bus.\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_CPU0_CBUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_CPU0_CBUS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_CPU0_CBUS_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_CPU0_SBUS_MASK (0xCU)\r
+#define SYSCON_AHBMATPRIO_PRI_CPU0_SBUS_SHIFT (2U)\r
+/*! PRI_CPU0_SBUS - CPU0 S-AHB bus.\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_CPU0_SBUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_CPU0_SBUS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_CPU0_SBUS_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_CPU1_CBUS_MASK (0x30U)\r
+#define SYSCON_AHBMATPRIO_PRI_CPU1_CBUS_SHIFT (4U)\r
+/*! PRI_CPU1_CBUS - CPU1 C-AHB bus.\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_CPU1_CBUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_CPU1_CBUS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_CPU1_CBUS_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_CPU1_SBUS_MASK (0xC0U)\r
+#define SYSCON_AHBMATPRIO_PRI_CPU1_SBUS_SHIFT (6U)\r
+/*! PRI_CPU1_SBUS - CPU1 S-AHB bus.\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_CPU1_SBUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_CPU1_SBUS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_CPU1_SBUS_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_USB_FS_MASK (0x300U)\r
+#define SYSCON_AHBMATPRIO_PRI_USB_FS_SHIFT (8U)\r
+/*! PRI_USB_FS - USB-FS.(USB0)\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_USB_FS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_USB_FS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_USB_FS_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_SDMA0_MASK (0xC00U)\r
+#define SYSCON_AHBMATPRIO_PRI_SDMA0_SHIFT (10U)\r
+/*! PRI_SDMA0 - DMA0 controller priority.\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_SDMA0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_SDMA0_SHIFT)) & SYSCON_AHBMATPRIO_PRI_SDMA0_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_SDIO_MASK (0x30000U)\r
+#define SYSCON_AHBMATPRIO_PRI_SDIO_SHIFT (16U)\r
+/*! PRI_SDIO - SDIO.\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_SDIO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_SDIO_SHIFT)) & SYSCON_AHBMATPRIO_PRI_SDIO_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_PQ_MASK (0xC0000U)\r
+#define SYSCON_AHBMATPRIO_PRI_PQ_SHIFT (18U)\r
+/*! PRI_PQ - PQ (HW Accelerator).\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_PQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_PQ_SHIFT)) & SYSCON_AHBMATPRIO_PRI_PQ_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_HASH_AES_MASK (0x300000U)\r
+#define SYSCON_AHBMATPRIO_PRI_HASH_AES_SHIFT (20U)\r
+/*! PRI_HASH_AES - HASH_AES.\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_HASH_AES(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_HASH_AES_SHIFT)) & SYSCON_AHBMATPRIO_PRI_HASH_AES_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_USB_HS_MASK (0xC00000U)\r
+#define SYSCON_AHBMATPRIO_PRI_USB_HS_SHIFT (22U)\r
+/*! PRI_USB_HS - USB-HS.(USB1)\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_USB_HS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_USB_HS_SHIFT)) & SYSCON_AHBMATPRIO_PRI_USB_HS_MASK)\r
+#define SYSCON_AHBMATPRIO_PRI_SDMA1_MASK (0x3000000U)\r
+#define SYSCON_AHBMATPRIO_PRI_SDMA1_SHIFT (24U)\r
+/*! PRI_SDMA1 - DMA1 controller priority.\r
+ */\r
+#define SYSCON_AHBMATPRIO_PRI_SDMA1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBMATPRIO_PRI_SDMA1_SHIFT)) & SYSCON_AHBMATPRIO_PRI_SDMA1_MASK)\r
/*! @} */\r
\r
/*! @name CPU0STCKCAL - System tick calibration for secure part of CPU0 */\r
/*! @{ */\r
-#define SYSCON_CPU0STCKCAL_CAL_MASK (0xFFFFFFU)\r
-#define SYSCON_CPU0STCKCAL_CAL_SHIFT (0U)\r
-#define SYSCON_CPU0STCKCAL_CAL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0STCKCAL_CAL_SHIFT)) & SYSCON_CPU0STCKCAL_CAL_MASK)\r
-#define SYSCON_CPU0STCKCAL_SKEW_MASK (0x1000000U)\r
-#define SYSCON_CPU0STCKCAL_SKEW_SHIFT (24U)\r
-#define SYSCON_CPU0STCKCAL_SKEW(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0STCKCAL_SKEW_SHIFT)) & SYSCON_CPU0STCKCAL_SKEW_MASK)\r
-#define SYSCON_CPU0STCKCAL_NOREF_MASK (0x2000000U)\r
-#define SYSCON_CPU0STCKCAL_NOREF_SHIFT (25U)\r
-#define SYSCON_CPU0STCKCAL_NOREF(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0STCKCAL_NOREF_SHIFT)) & SYSCON_CPU0STCKCAL_NOREF_MASK)\r
+#define SYSCON_CPU0STCKCAL_TENMS_MASK (0xFFFFFFU)\r
+#define SYSCON_CPU0STCKCAL_TENMS_SHIFT (0U)\r
+/*! TENMS - Reload value for 10ms (100Hz) timing, subject to system clock skew errors. If the value\r
+ * reads as zero, the calibration value is not known.\r
+ */\r
+#define SYSCON_CPU0STCKCAL_TENMS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0STCKCAL_TENMS_SHIFT)) & SYSCON_CPU0STCKCAL_TENMS_MASK)\r
+#define SYSCON_CPU0STCKCAL_SKEW_MASK (0x1000000U)\r
+#define SYSCON_CPU0STCKCAL_SKEW_SHIFT (24U)\r
+/*! SKEW - Initial value for the Systick timer.\r
+ */\r
+#define SYSCON_CPU0STCKCAL_SKEW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0STCKCAL_SKEW_SHIFT)) & SYSCON_CPU0STCKCAL_SKEW_MASK)\r
+#define SYSCON_CPU0STCKCAL_NOREF_MASK (0x2000000U)\r
+#define SYSCON_CPU0STCKCAL_NOREF_SHIFT (25U)\r
+/*! NOREF - Indicates whether the device provides a reference clock to the processor: 0 = reference\r
+ * clock provided; 1 = no reference clock provided.\r
+ */\r
+#define SYSCON_CPU0STCKCAL_NOREF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0STCKCAL_NOREF_SHIFT)) & SYSCON_CPU0STCKCAL_NOREF_MASK)\r
/*! @} */\r
\r
/*! @name CPU0NSTCKCAL - System tick calibration for non-secure part of CPU0 */\r
/*! @{ */\r
-#define SYSCON_CPU0NSTCKCAL_CAL_MASK (0xFFFFFFU)\r
-#define SYSCON_CPU0NSTCKCAL_CAL_SHIFT (0U)\r
-#define SYSCON_CPU0NSTCKCAL_CAL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0NSTCKCAL_CAL_SHIFT)) & SYSCON_CPU0NSTCKCAL_CAL_MASK)\r
-#define SYSCON_CPU0NSTCKCAL_SKEW_MASK (0x1000000U)\r
-#define SYSCON_CPU0NSTCKCAL_SKEW_SHIFT (24U)\r
-#define SYSCON_CPU0NSTCKCAL_SKEW(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0NSTCKCAL_SKEW_SHIFT)) & SYSCON_CPU0NSTCKCAL_SKEW_MASK)\r
-#define SYSCON_CPU0NSTCKCAL_NOREF_MASK (0x2000000U)\r
-#define SYSCON_CPU0NSTCKCAL_NOREF_SHIFT (25U)\r
-#define SYSCON_CPU0NSTCKCAL_NOREF(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0NSTCKCAL_NOREF_SHIFT)) & SYSCON_CPU0NSTCKCAL_NOREF_MASK)\r
+#define SYSCON_CPU0NSTCKCAL_TENMS_MASK (0xFFFFFFU)\r
+#define SYSCON_CPU0NSTCKCAL_TENMS_SHIFT (0U)\r
+/*! TENMS - Reload value for 10 ms (100 Hz) timing, subject to system clock skew errors. If the\r
+ * value reads as zero, the calibration value is not known.\r
+ */\r
+#define SYSCON_CPU0NSTCKCAL_TENMS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0NSTCKCAL_TENMS_SHIFT)) & SYSCON_CPU0NSTCKCAL_TENMS_MASK)\r
+#define SYSCON_CPU0NSTCKCAL_SKEW_MASK (0x1000000U)\r
+#define SYSCON_CPU0NSTCKCAL_SKEW_SHIFT (24U)\r
+/*! SKEW - Indicates whether the TENMS value is exact: 0 = TENMS value is exact; 1 = TENMS value is inexact, or not\r
+ * given.\r
+ */\r
+#define SYSCON_CPU0NSTCKCAL_SKEW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0NSTCKCAL_SKEW_SHIFT)) & SYSCON_CPU0NSTCKCAL_SKEW_MASK)\r
+#define SYSCON_CPU0NSTCKCAL_NOREF_MASK (0x2000000U)\r
+#define SYSCON_CPU0NSTCKCAL_NOREF_SHIFT (25U)\r
+/*! NOREF - Initial value for the Systick timer.\r
+ */\r
+#define SYSCON_CPU0NSTCKCAL_NOREF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU0NSTCKCAL_NOREF_SHIFT)) & SYSCON_CPU0NSTCKCAL_NOREF_MASK)\r
/*! @} */\r
\r
-/*! @name CPU1TCKCAL - System tick calibration for CPU1 */\r
+/*! @name CPU1STCKCAL - System tick calibration for CPU1 */\r
/*! @{ */\r
-#define SYSCON_CPU1TCKCAL_CAL_MASK (0xFFFFFFU)\r
-#define SYSCON_CPU1TCKCAL_CAL_SHIFT (0U)\r
-#define SYSCON_CPU1TCKCAL_CAL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU1TCKCAL_CAL_SHIFT)) & SYSCON_CPU1TCKCAL_CAL_MASK)\r
-#define SYSCON_CPU1TCKCAL_SKEW_MASK (0x1000000U)\r
-#define SYSCON_CPU1TCKCAL_SKEW_SHIFT (24U)\r
-#define SYSCON_CPU1TCKCAL_SKEW(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU1TCKCAL_SKEW_SHIFT)) & SYSCON_CPU1TCKCAL_SKEW_MASK)\r
-#define SYSCON_CPU1TCKCAL_NOREF_MASK (0x2000000U)\r
-#define SYSCON_CPU1TCKCAL_NOREF_SHIFT (25U)\r
-#define SYSCON_CPU1TCKCAL_NOREF(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU1TCKCAL_NOREF_SHIFT)) & SYSCON_CPU1TCKCAL_NOREF_MASK)\r
+#define SYSCON_CPU1STCKCAL_TENMS_MASK (0xFFFFFFU)\r
+#define SYSCON_CPU1STCKCAL_TENMS_SHIFT (0U)\r
+/*! TENMS - Reload value for 10ms (100Hz) timing, subject to system clock skew errors. If the value\r
+ * reads as zero, the calibration value is not known.\r
+ */\r
+#define SYSCON_CPU1STCKCAL_TENMS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU1STCKCAL_TENMS_SHIFT)) & SYSCON_CPU1STCKCAL_TENMS_MASK)\r
+#define SYSCON_CPU1STCKCAL_SKEW_MASK (0x1000000U)\r
+#define SYSCON_CPU1STCKCAL_SKEW_SHIFT (24U)\r
+/*! SKEW - Indicates whether the TENMS value is exact: 0 = TENMS value is exact; 1 = TENMS value is inexact, or not\r
+ * given.\r
+ */\r
+#define SYSCON_CPU1STCKCAL_SKEW(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU1STCKCAL_SKEW_SHIFT)) & SYSCON_CPU1STCKCAL_SKEW_MASK)\r
+#define SYSCON_CPU1STCKCAL_NOREF_MASK (0x2000000U)\r
+#define SYSCON_CPU1STCKCAL_NOREF_SHIFT (25U)\r
+/*! NOREF - Indicates whether the device provides a reference clock to the processor: 0 = reference\r
+ * clock provided; 1 = no reference clock provided.\r
+ */\r
+#define SYSCON_CPU1STCKCAL_NOREF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPU1STCKCAL_NOREF_SHIFT)) & SYSCON_CPU1STCKCAL_NOREF_MASK)\r
/*! @} */\r
\r
/*! @name NMISRC - NMI Source Select */\r
/*! @{ */\r
-#define SYSCON_NMISRC_IRQCPU0_MASK (0x3FU)\r
-#define SYSCON_NMISRC_IRQCPU0_SHIFT (0U)\r
-#define SYSCON_NMISRC_IRQCPU0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_NMISRC_IRQCPU0_SHIFT)) & SYSCON_NMISRC_IRQCPU0_MASK)\r
-#define SYSCON_NMISRC_IRQCPU1_MASK (0x3F00U)\r
-#define SYSCON_NMISRC_IRQCPU1_SHIFT (8U)\r
-#define SYSCON_NMISRC_IRQCPU1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_NMISRC_IRQCPU1_SHIFT)) & SYSCON_NMISRC_IRQCPU1_MASK)\r
-#define SYSCON_NMISRC_NMIENCPU1_MASK (0x40000000U)\r
-#define SYSCON_NMISRC_NMIENCPU1_SHIFT (30U)\r
-#define SYSCON_NMISRC_NMIENCPU1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_NMISRC_NMIENCPU1_SHIFT)) & SYSCON_NMISRC_NMIENCPU1_MASK)\r
-#define SYSCON_NMISRC_NMIENCPU0_MASK (0x80000000U)\r
-#define SYSCON_NMISRC_NMIENCPU0_SHIFT (31U)\r
-#define SYSCON_NMISRC_NMIENCPU0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_NMISRC_NMIENCPU0_SHIFT)) & SYSCON_NMISRC_NMIENCPU0_MASK)\r
+#define SYSCON_NMISRC_IRQCPU0_MASK (0x3FU)\r
+#define SYSCON_NMISRC_IRQCPU0_SHIFT (0U)\r
+/*! IRQCPU0 - The IRQ number of the interrupt that acts as the Non-Maskable Interrupt (NMI) for the CPU0, if enabled by\r
+ * NMIENCPU0.\r
+ */\r
+#define SYSCON_NMISRC_IRQCPU0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_NMISRC_IRQCPU0_SHIFT)) & SYSCON_NMISRC_IRQCPU0_MASK)\r
+#define SYSCON_NMISRC_IRQCPU1_MASK (0x3F00U)\r
+#define SYSCON_NMISRC_IRQCPU1_SHIFT (8U)\r
+/*! IRQCPU1 - The IRQ number of the interrupt that acts as the Non-Maskable Interrupt (NMI) for the CPU1, if enabled by\r
+ * NMIENCPU1.\r
+ */\r
+#define SYSCON_NMISRC_IRQCPU1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_NMISRC_IRQCPU1_SHIFT)) & SYSCON_NMISRC_IRQCPU1_MASK)\r
+#define SYSCON_NMISRC_NMIENCPU1_MASK (0x40000000U)\r
+#define SYSCON_NMISRC_NMIENCPU1_SHIFT (30U)\r
+/*! NMIENCPU1 - Write a 1 to this bit to enable the Non-Maskable Interrupt (NMI) source selected by IRQCPU1.\r
+ */\r
+#define SYSCON_NMISRC_NMIENCPU1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_NMISRC_NMIENCPU1_SHIFT)) & SYSCON_NMISRC_NMIENCPU1_MASK)\r
+#define SYSCON_NMISRC_NMIENCPU0_MASK (0x80000000U)\r
+#define SYSCON_NMISRC_NMIENCPU0_SHIFT (31U)\r
+/*! NMIENCPU0 - Write a 1 to this bit to enable the Non-Maskable Interrupt (NMI) source selected by IRQCPU0.\r
+ */\r
+#define SYSCON_NMISRC_NMIENCPU0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_NMISRC_NMIENCPU0_SHIFT)) & SYSCON_NMISRC_NMIENCPU0_MASK)\r
/*! @} */\r
\r
/*! @name PRESETCTRL0 - Peripheral reset control 0 */\r
/*! @{ */\r
-#define SYSCON_PRESETCTRL0_ROM_RST_MASK (0x2U)\r
-#define SYSCON_PRESETCTRL0_ROM_RST_SHIFT (1U)\r
+#define SYSCON_PRESETCTRL0_ROM_RST_MASK (0x2U)\r
+#define SYSCON_PRESETCTRL0_ROM_RST_SHIFT (1U)\r
/*! ROM_RST - ROM reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_ROM_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_ROM_RST_SHIFT)) & SYSCON_PRESETCTRL0_ROM_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL1_RST_MASK (0x8U)\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL1_RST_SHIFT (3U)\r
+#define SYSCON_PRESETCTRL0_ROM_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_ROM_RST_SHIFT)) & SYSCON_PRESETCTRL0_ROM_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL1_RST_MASK (0x8U)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL1_RST_SHIFT (3U)\r
/*! SRAM_CTRL1_RST - SRAM Controller 1 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL1_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_SRAM_CTRL1_RST_SHIFT)) & SYSCON_PRESETCTRL0_SRAM_CTRL1_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL2_RST_MASK (0x10U)\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL2_RST_SHIFT (4U)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL1_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_SRAM_CTRL1_RST_SHIFT)) & SYSCON_PRESETCTRL0_SRAM_CTRL1_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL2_RST_MASK (0x10U)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL2_RST_SHIFT (4U)\r
/*! SRAM_CTRL2_RST - SRAM Controller 2 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL2_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_SRAM_CTRL2_RST_SHIFT)) & SYSCON_PRESETCTRL0_SRAM_CTRL2_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL3_RST_MASK (0x20U)\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL3_RST_SHIFT (5U)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL2_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_SRAM_CTRL2_RST_SHIFT)) & SYSCON_PRESETCTRL0_SRAM_CTRL2_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL3_RST_MASK (0x20U)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL3_RST_SHIFT (5U)\r
/*! SRAM_CTRL3_RST - SRAM Controller 3 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL3_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_SRAM_CTRL3_RST_SHIFT)) & SYSCON_PRESETCTRL0_SRAM_CTRL3_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL4_RST_MASK (0x40U)\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL4_RST_SHIFT (6U)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL3_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_SRAM_CTRL3_RST_SHIFT)) & SYSCON_PRESETCTRL0_SRAM_CTRL3_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL4_RST_MASK (0x40U)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL4_RST_SHIFT (6U)\r
/*! SRAM_CTRL4_RST - SRAM Controller 4 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_SRAM_CTRL4_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_SRAM_CTRL4_RST_SHIFT)) & SYSCON_PRESETCTRL0_SRAM_CTRL4_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_FLASH_RST_MASK (0x80U)\r
-#define SYSCON_PRESETCTRL0_FLASH_RST_SHIFT (7U)\r
+#define SYSCON_PRESETCTRL0_SRAM_CTRL4_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_SRAM_CTRL4_RST_SHIFT)) & SYSCON_PRESETCTRL0_SRAM_CTRL4_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_FLASH_RST_MASK (0x80U)\r
+#define SYSCON_PRESETCTRL0_FLASH_RST_SHIFT (7U)\r
/*! FLASH_RST - Flash controller reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_FLASH_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_FLASH_RST_SHIFT)) & SYSCON_PRESETCTRL0_FLASH_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_FMC_RST_MASK (0x100U)\r
-#define SYSCON_PRESETCTRL0_FMC_RST_SHIFT (8U)\r
+#define SYSCON_PRESETCTRL0_FLASH_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_FLASH_RST_SHIFT)) & SYSCON_PRESETCTRL0_FLASH_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_FMC_RST_MASK (0x100U)\r
+#define SYSCON_PRESETCTRL0_FMC_RST_SHIFT (8U)\r
/*! FMC_RST - FMC controller reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_FMC_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_FMC_RST_SHIFT)) & SYSCON_PRESETCTRL0_FMC_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_MUX0_RST_MASK (0x800U)\r
-#define SYSCON_PRESETCTRL0_MUX0_RST_SHIFT (11U)\r
-/*! MUX0_RST - Input Mux 0 reset control.\r
+#define SYSCON_PRESETCTRL0_FMC_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_FMC_RST_SHIFT)) & SYSCON_PRESETCTRL0_FMC_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_MUX_RST_MASK (0x800U)\r
+#define SYSCON_PRESETCTRL0_MUX_RST_SHIFT (11U)\r
+/*! MUX_RST - Input Mux reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_MUX0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_MUX0_RST_SHIFT)) & SYSCON_PRESETCTRL0_MUX0_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_IOCON_RST_MASK (0x2000U)\r
-#define SYSCON_PRESETCTRL0_IOCON_RST_SHIFT (13U)\r
+#define SYSCON_PRESETCTRL0_MUX_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_MUX_RST_SHIFT)) & SYSCON_PRESETCTRL0_MUX_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_IOCON_RST_MASK (0x2000U)\r
+#define SYSCON_PRESETCTRL0_IOCON_RST_SHIFT (13U)\r
/*! IOCON_RST - I/O controller reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_IOCON_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_IOCON_RST_SHIFT)) & SYSCON_PRESETCTRL0_IOCON_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_GPIO0_RST_MASK (0x4000U)\r
-#define SYSCON_PRESETCTRL0_GPIO0_RST_SHIFT (14U)\r
+#define SYSCON_PRESETCTRL0_IOCON_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_IOCON_RST_SHIFT)) & SYSCON_PRESETCTRL0_IOCON_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_GPIO0_RST_MASK (0x4000U)\r
+#define SYSCON_PRESETCTRL0_GPIO0_RST_SHIFT (14U)\r
/*! GPIO0_RST - GPIO0 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_GPIO0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GPIO0_RST_SHIFT)) & SYSCON_PRESETCTRL0_GPIO0_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_GPIO1_RST_MASK (0x8000U)\r
-#define SYSCON_PRESETCTRL0_GPIO1_RST_SHIFT (15U)\r
+#define SYSCON_PRESETCTRL0_GPIO0_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GPIO0_RST_SHIFT)) & SYSCON_PRESETCTRL0_GPIO0_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_GPIO1_RST_MASK (0x8000U)\r
+#define SYSCON_PRESETCTRL0_GPIO1_RST_SHIFT (15U)\r
/*! GPIO1_RST - GPIO1 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_GPIO1_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GPIO1_RST_SHIFT)) & SYSCON_PRESETCTRL0_GPIO1_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_GPIO2_RST_MASK (0x10000U)\r
-#define SYSCON_PRESETCTRL0_GPIO2_RST_SHIFT (16U)\r
+#define SYSCON_PRESETCTRL0_GPIO1_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GPIO1_RST_SHIFT)) & SYSCON_PRESETCTRL0_GPIO1_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_GPIO2_RST_MASK (0x10000U)\r
+#define SYSCON_PRESETCTRL0_GPIO2_RST_SHIFT (16U)\r
/*! GPIO2_RST - GPIO2 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_GPIO2_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GPIO2_RST_SHIFT)) & SYSCON_PRESETCTRL0_GPIO2_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_GPIO3_RST_MASK (0x20000U)\r
-#define SYSCON_PRESETCTRL0_GPIO3_RST_SHIFT (17U)\r
+#define SYSCON_PRESETCTRL0_GPIO2_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GPIO2_RST_SHIFT)) & SYSCON_PRESETCTRL0_GPIO2_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_GPIO3_RST_MASK (0x20000U)\r
+#define SYSCON_PRESETCTRL0_GPIO3_RST_SHIFT (17U)\r
/*! GPIO3_RST - GPIO3 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_GPIO3_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GPIO3_RST_SHIFT)) & SYSCON_PRESETCTRL0_GPIO3_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_PINT_RST_MASK (0x40000U)\r
-#define SYSCON_PRESETCTRL0_PINT_RST_SHIFT (18U)\r
+#define SYSCON_PRESETCTRL0_GPIO3_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GPIO3_RST_SHIFT)) & SYSCON_PRESETCTRL0_GPIO3_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_PINT_RST_MASK (0x40000U)\r
+#define SYSCON_PRESETCTRL0_PINT_RST_SHIFT (18U)\r
/*! PINT_RST - Pin interrupt (PINT) reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_PINT_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_PINT_RST_SHIFT)) & SYSCON_PRESETCTRL0_PINT_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_GINT_RST_MASK (0x80000U)\r
-#define SYSCON_PRESETCTRL0_GINT_RST_SHIFT (19U)\r
+#define SYSCON_PRESETCTRL0_PINT_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_PINT_RST_SHIFT)) & SYSCON_PRESETCTRL0_PINT_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_GINT_RST_MASK (0x80000U)\r
+#define SYSCON_PRESETCTRL0_GINT_RST_SHIFT (19U)\r
/*! GINT_RST - Group interrupt (GINT) reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_GINT_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GINT_RST_SHIFT)) & SYSCON_PRESETCTRL0_GINT_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_DMA0_RST_MASK (0x100000U)\r
-#define SYSCON_PRESETCTRL0_DMA0_RST_SHIFT (20U)\r
+#define SYSCON_PRESETCTRL0_GINT_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_GINT_RST_SHIFT)) & SYSCON_PRESETCTRL0_GINT_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_DMA0_RST_MASK (0x100000U)\r
+#define SYSCON_PRESETCTRL0_DMA0_RST_SHIFT (20U)\r
/*! DMA0_RST - DMA0 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_DMA0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_DMA0_RST_SHIFT)) & SYSCON_PRESETCTRL0_DMA0_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_CRCGEN_RST_MASK (0x200000U)\r
-#define SYSCON_PRESETCTRL0_CRCGEN_RST_SHIFT (21U)\r
+#define SYSCON_PRESETCTRL0_DMA0_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_DMA0_RST_SHIFT)) & SYSCON_PRESETCTRL0_DMA0_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_CRCGEN_RST_MASK (0x200000U)\r
+#define SYSCON_PRESETCTRL0_CRCGEN_RST_SHIFT (21U)\r
/*! CRCGEN_RST - CRCGEN reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_CRCGEN_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_CRCGEN_RST_SHIFT)) & SYSCON_PRESETCTRL0_CRCGEN_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_WWDT_RST_MASK (0x400000U)\r
-#define SYSCON_PRESETCTRL0_WWDT_RST_SHIFT (22U)\r
+#define SYSCON_PRESETCTRL0_CRCGEN_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_CRCGEN_RST_SHIFT)) & SYSCON_PRESETCTRL0_CRCGEN_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_WWDT_RST_MASK (0x400000U)\r
+#define SYSCON_PRESETCTRL0_WWDT_RST_SHIFT (22U)\r
/*! WWDT_RST - Watchdog Timer reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_WWDT_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_WWDT_RST_SHIFT)) & SYSCON_PRESETCTRL0_WWDT_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_RTC_RST_MASK (0x800000U)\r
-#define SYSCON_PRESETCTRL0_RTC_RST_SHIFT (23U)\r
+#define SYSCON_PRESETCTRL0_WWDT_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_WWDT_RST_SHIFT)) & SYSCON_PRESETCTRL0_WWDT_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_RTC_RST_MASK (0x800000U)\r
+#define SYSCON_PRESETCTRL0_RTC_RST_SHIFT (23U)\r
/*! RTC_RST - Real Time Clock (RTC) reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_RTC_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_RTC_RST_SHIFT)) & SYSCON_PRESETCTRL0_RTC_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_MAILBOX_RST_MASK (0x4000000U)\r
-#define SYSCON_PRESETCTRL0_MAILBOX_RST_SHIFT (26U)\r
+#define SYSCON_PRESETCTRL0_RTC_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_RTC_RST_SHIFT)) & SYSCON_PRESETCTRL0_RTC_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_MAILBOX_RST_MASK (0x4000000U)\r
+#define SYSCON_PRESETCTRL0_MAILBOX_RST_SHIFT (26U)\r
/*! MAILBOX_RST - Inter CPU communication Mailbox reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_MAILBOX_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_MAILBOX_RST_SHIFT)) & SYSCON_PRESETCTRL0_MAILBOX_RST_MASK)\r
-#define SYSCON_PRESETCTRL0_ADC_RST_MASK (0x8000000U)\r
-#define SYSCON_PRESETCTRL0_ADC_RST_SHIFT (27U)\r
+#define SYSCON_PRESETCTRL0_MAILBOX_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_MAILBOX_RST_SHIFT)) & SYSCON_PRESETCTRL0_MAILBOX_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_ADC_RST_MASK (0x8000000U)\r
+#define SYSCON_PRESETCTRL0_ADC_RST_SHIFT (27U)\r
/*! ADC_RST - ADC reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL0_ADC_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_ADC_RST_SHIFT)) & SYSCON_PRESETCTRL0_ADC_RST_MASK)\r
+#define SYSCON_PRESETCTRL0_ADC_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL0_ADC_RST_SHIFT)) & SYSCON_PRESETCTRL0_ADC_RST_MASK)\r
/*! @} */\r
\r
/*! @name PRESETCTRL1 - Peripheral reset control 1 */\r
/*! @{ */\r
-#define SYSCON_PRESETCTRL1_MRT_RST_MASK (0x1U)\r
-#define SYSCON_PRESETCTRL1_MRT_RST_SHIFT (0U)\r
+#define SYSCON_PRESETCTRL1_MRT_RST_MASK (0x1U)\r
+#define SYSCON_PRESETCTRL1_MRT_RST_SHIFT (0U)\r
/*! MRT_RST - MRT reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_MRT_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_MRT_RST_SHIFT)) & SYSCON_PRESETCTRL1_MRT_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_OSTIMER0_RST_MASK (0x2U)\r
-#define SYSCON_PRESETCTRL1_OSTIMER0_RST_SHIFT (1U)\r
-/*! OSTIMER0_RST - OS Timer 0 reset control.\r
+#define SYSCON_PRESETCTRL1_MRT_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_MRT_RST_SHIFT)) & SYSCON_PRESETCTRL1_MRT_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_OSTIMER_RST_MASK (0x2U)\r
+#define SYSCON_PRESETCTRL1_OSTIMER_RST_SHIFT (1U)\r
+/*! OSTIMER_RST - OS Event Timer reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_OSTIMER0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_OSTIMER0_RST_SHIFT)) & SYSCON_PRESETCTRL1_OSTIMER0_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_SCT0_RST_MASK (0x4U)\r
-#define SYSCON_PRESETCTRL1_SCT0_RST_SHIFT (2U)\r
-/*! SCT0_RST - SCT0 reset control.\r
+#define SYSCON_PRESETCTRL1_OSTIMER_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_OSTIMER_RST_SHIFT)) & SYSCON_PRESETCTRL1_OSTIMER_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_SCT_RST_MASK (0x4U)\r
+#define SYSCON_PRESETCTRL1_SCT_RST_SHIFT (2U)\r
+/*! SCT_RST - SCT reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_SCT0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_SCT0_RST_SHIFT)) & SYSCON_PRESETCTRL1_SCT0_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_SCTIPU_RST_MASK (0x40U)\r
-#define SYSCON_PRESETCTRL1_SCTIPU_RST_SHIFT (6U)\r
+#define SYSCON_PRESETCTRL1_SCT_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_SCT_RST_SHIFT)) & SYSCON_PRESETCTRL1_SCT_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_SCTIPU_RST_MASK (0x40U)\r
+#define SYSCON_PRESETCTRL1_SCTIPU_RST_SHIFT (6U)\r
/*! SCTIPU_RST - SCTIPU reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_SCTIPU_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_SCTIPU_RST_SHIFT)) & SYSCON_PRESETCTRL1_SCTIPU_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_UTICK0_RST_MASK (0x400U)\r
-#define SYSCON_PRESETCTRL1_UTICK0_RST_SHIFT (10U)\r
-/*! UTICK0_RST - UTICK0 reset control.\r
+#define SYSCON_PRESETCTRL1_SCTIPU_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_SCTIPU_RST_SHIFT)) & SYSCON_PRESETCTRL1_SCTIPU_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_UTICK_RST_MASK (0x400U)\r
+#define SYSCON_PRESETCTRL1_UTICK_RST_SHIFT (10U)\r
+/*! UTICK_RST - UTICK reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_UTICK0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_UTICK0_RST_SHIFT)) & SYSCON_PRESETCTRL1_UTICK0_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_FC0_RST_MASK (0x800U)\r
-#define SYSCON_PRESETCTRL1_FC0_RST_SHIFT (11U)\r
+#define SYSCON_PRESETCTRL1_UTICK_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_UTICK_RST_SHIFT)) & SYSCON_PRESETCTRL1_UTICK_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_FC0_RST_MASK (0x800U)\r
+#define SYSCON_PRESETCTRL1_FC0_RST_SHIFT (11U)\r
/*! FC0_RST - FC0 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_FC0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC0_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC0_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_FC1_RST_MASK (0x1000U)\r
-#define SYSCON_PRESETCTRL1_FC1_RST_SHIFT (12U)\r
+#define SYSCON_PRESETCTRL1_FC0_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC0_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC0_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_FC1_RST_MASK (0x1000U)\r
+#define SYSCON_PRESETCTRL1_FC1_RST_SHIFT (12U)\r
/*! FC1_RST - FC1 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_FC1_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC1_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC1_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_FC2_RST_MASK (0x2000U)\r
-#define SYSCON_PRESETCTRL1_FC2_RST_SHIFT (13U)\r
+#define SYSCON_PRESETCTRL1_FC1_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC1_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC1_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_FC2_RST_MASK (0x2000U)\r
+#define SYSCON_PRESETCTRL1_FC2_RST_SHIFT (13U)\r
/*! FC2_RST - FC2 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_FC2_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC2_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC2_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_FC3_RST_MASK (0x4000U)\r
-#define SYSCON_PRESETCTRL1_FC3_RST_SHIFT (14U)\r
+#define SYSCON_PRESETCTRL1_FC2_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC2_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC2_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_FC3_RST_MASK (0x4000U)\r
+#define SYSCON_PRESETCTRL1_FC3_RST_SHIFT (14U)\r
/*! FC3_RST - FC3 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_FC3_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC3_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC3_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_FC4_RST_MASK (0x8000U)\r
-#define SYSCON_PRESETCTRL1_FC4_RST_SHIFT (15U)\r
+#define SYSCON_PRESETCTRL1_FC3_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC3_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC3_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_FC4_RST_MASK (0x8000U)\r
+#define SYSCON_PRESETCTRL1_FC4_RST_SHIFT (15U)\r
/*! FC4_RST - FC4 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_FC4_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC4_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC4_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_FC5_RST_MASK (0x10000U)\r
-#define SYSCON_PRESETCTRL1_FC5_RST_SHIFT (16U)\r
+#define SYSCON_PRESETCTRL1_FC4_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC4_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC4_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_FC5_RST_MASK (0x10000U)\r
+#define SYSCON_PRESETCTRL1_FC5_RST_SHIFT (16U)\r
/*! FC5_RST - FC5 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_FC5_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC5_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC5_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_FC6_RST_MASK (0x20000U)\r
-#define SYSCON_PRESETCTRL1_FC6_RST_SHIFT (17U)\r
+#define SYSCON_PRESETCTRL1_FC5_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC5_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC5_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_FC6_RST_MASK (0x20000U)\r
+#define SYSCON_PRESETCTRL1_FC6_RST_SHIFT (17U)\r
/*! FC6_RST - FC6 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_FC6_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC6_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC6_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_FC7_RST_MASK (0x40000U)\r
-#define SYSCON_PRESETCTRL1_FC7_RST_SHIFT (18U)\r
+#define SYSCON_PRESETCTRL1_FC6_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC6_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC6_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_FC7_RST_MASK (0x40000U)\r
+#define SYSCON_PRESETCTRL1_FC7_RST_SHIFT (18U)\r
/*! FC7_RST - FC7 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_FC7_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC7_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC7_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_TIMER2_RST_MASK (0x400000U)\r
-#define SYSCON_PRESETCTRL1_TIMER2_RST_SHIFT (22U)\r
+#define SYSCON_PRESETCTRL1_FC7_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_FC7_RST_SHIFT)) & SYSCON_PRESETCTRL1_FC7_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_TIMER2_RST_MASK (0x400000U)\r
+#define SYSCON_PRESETCTRL1_TIMER2_RST_SHIFT (22U)\r
/*! TIMER2_RST - Timer 2 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_TIMER2_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_TIMER2_RST_SHIFT)) & SYSCON_PRESETCTRL1_TIMER2_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_USB0_DEV_RST_MASK (0x2000000U)\r
-#define SYSCON_PRESETCTRL1_USB0_DEV_RST_SHIFT (25U)\r
+#define SYSCON_PRESETCTRL1_TIMER2_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_TIMER2_RST_SHIFT)) & SYSCON_PRESETCTRL1_TIMER2_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_USB0_DEV_RST_MASK (0x2000000U)\r
+#define SYSCON_PRESETCTRL1_USB0_DEV_RST_SHIFT (25U)\r
/*! USB0_DEV_RST - USB0 DEV reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_USB0_DEV_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_USB0_DEV_RST_SHIFT)) & SYSCON_PRESETCTRL1_USB0_DEV_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_TIMER0_RST_MASK (0x4000000U)\r
-#define SYSCON_PRESETCTRL1_TIMER0_RST_SHIFT (26U)\r
+#define SYSCON_PRESETCTRL1_USB0_DEV_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_USB0_DEV_RST_SHIFT)) & SYSCON_PRESETCTRL1_USB0_DEV_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_TIMER0_RST_MASK (0x4000000U)\r
+#define SYSCON_PRESETCTRL1_TIMER0_RST_SHIFT (26U)\r
/*! TIMER0_RST - Timer 0 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_TIMER0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_TIMER0_RST_SHIFT)) & SYSCON_PRESETCTRL1_TIMER0_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_TIMER1_RST_MASK (0x8000000U)\r
-#define SYSCON_PRESETCTRL1_TIMER1_RST_SHIFT (27U)\r
+#define SYSCON_PRESETCTRL1_TIMER0_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_TIMER0_RST_SHIFT)) & SYSCON_PRESETCTRL1_TIMER0_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_TIMER1_RST_MASK (0x8000000U)\r
+#define SYSCON_PRESETCTRL1_TIMER1_RST_SHIFT (27U)\r
/*! TIMER1_RST - Timer 1 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL1_TIMER1_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_TIMER1_RST_SHIFT)) & SYSCON_PRESETCTRL1_TIMER1_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_PVT_RST_MASK (0x10000000U)\r
-#define SYSCON_PRESETCTRL1_PVT_RST_SHIFT (28U)\r
-/*! PVT_RST - PVT reset control.\r
- * 0b1..Bloc is reset.\r
- * 0b0..Bloc is not reset.\r
- */\r
-#define SYSCON_PRESETCTRL1_PVT_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_PVT_RST_SHIFT)) & SYSCON_PRESETCTRL1_PVT_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_EZHA_RST_MASK (0x40000000U)\r
-#define SYSCON_PRESETCTRL1_EZHA_RST_SHIFT (30U)\r
-/*! EZHA_RST - EZH a reset control.\r
- * 0b1..Bloc is reset.\r
- * 0b0..Bloc is not reset.\r
- */\r
-#define SYSCON_PRESETCTRL1_EZHA_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_EZHA_RST_SHIFT)) & SYSCON_PRESETCTRL1_EZHA_RST_MASK)\r
-#define SYSCON_PRESETCTRL1_EZHB_RST_MASK (0x80000000U)\r
-#define SYSCON_PRESETCTRL1_EZHB_RST_SHIFT (31U)\r
-/*! EZHB_RST - EZH b reset control.\r
- * 0b1..Bloc is reset.\r
- * 0b0..Bloc is not reset.\r
- */\r
-#define SYSCON_PRESETCTRL1_EZHB_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_EZHB_RST_SHIFT)) & SYSCON_PRESETCTRL1_EZHB_RST_MASK)\r
+#define SYSCON_PRESETCTRL1_TIMER1_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL1_TIMER1_RST_SHIFT)) & SYSCON_PRESETCTRL1_TIMER1_RST_MASK)\r
/*! @} */\r
\r
/*! @name PRESETCTRL2 - Peripheral reset control 2 */\r
/*! @{ */\r
-#define SYSCON_PRESETCTRL2_DMA1_RST_MASK (0x2U)\r
-#define SYSCON_PRESETCTRL2_DMA1_RST_SHIFT (1U)\r
+#define SYSCON_PRESETCTRL2_DMA1_RST_MASK (0x2U)\r
+#define SYSCON_PRESETCTRL2_DMA1_RST_SHIFT (1U)\r
/*! DMA1_RST - DMA1 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_DMA1_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_DMA1_RST_SHIFT)) & SYSCON_PRESETCTRL2_DMA1_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_COMP_RST_MASK (0x4U)\r
-#define SYSCON_PRESETCTRL2_COMP_RST_SHIFT (2U)\r
+#define SYSCON_PRESETCTRL2_DMA1_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_DMA1_RST_SHIFT)) & SYSCON_PRESETCTRL2_DMA1_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_COMP_RST_MASK (0x4U)\r
+#define SYSCON_PRESETCTRL2_COMP_RST_SHIFT (2U)\r
/*! COMP_RST - Comparator reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_COMP_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_COMP_RST_SHIFT)) & SYSCON_PRESETCTRL2_COMP_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_SDIO_RST_MASK (0x8U)\r
-#define SYSCON_PRESETCTRL2_SDIO_RST_SHIFT (3U)\r
+#define SYSCON_PRESETCTRL2_COMP_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_COMP_RST_SHIFT)) & SYSCON_PRESETCTRL2_COMP_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_SDIO_RST_MASK (0x8U)\r
+#define SYSCON_PRESETCTRL2_SDIO_RST_SHIFT (3U)\r
/*! SDIO_RST - SDIO reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_SDIO_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_SDIO_RST_SHIFT)) & SYSCON_PRESETCTRL2_SDIO_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_USB1_HOST_RST_MASK (0x10U)\r
-#define SYSCON_PRESETCTRL2_USB1_HOST_RST_SHIFT (4U)\r
+#define SYSCON_PRESETCTRL2_SDIO_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_SDIO_RST_SHIFT)) & SYSCON_PRESETCTRL2_SDIO_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_USB1_HOST_RST_MASK (0x10U)\r
+#define SYSCON_PRESETCTRL2_USB1_HOST_RST_SHIFT (4U)\r
/*! USB1_HOST_RST - USB1 Host reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_USB1_HOST_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB1_HOST_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB1_HOST_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_USB1_DEV_RST_MASK (0x20U)\r
-#define SYSCON_PRESETCTRL2_USB1_DEV_RST_SHIFT (5U)\r
+#define SYSCON_PRESETCTRL2_USB1_HOST_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB1_HOST_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB1_HOST_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_USB1_DEV_RST_MASK (0x20U)\r
+#define SYSCON_PRESETCTRL2_USB1_DEV_RST_SHIFT (5U)\r
/*! USB1_DEV_RST - USB1 dev reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_USB1_DEV_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB1_DEV_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB1_DEV_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_USB1_RAM_RST_MASK (0x40U)\r
-#define SYSCON_PRESETCTRL2_USB1_RAM_RST_SHIFT (6U)\r
+#define SYSCON_PRESETCTRL2_USB1_DEV_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB1_DEV_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB1_DEV_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_USB1_RAM_RST_MASK (0x40U)\r
+#define SYSCON_PRESETCTRL2_USB1_RAM_RST_SHIFT (6U)\r
/*! USB1_RAM_RST - USB1 RAM reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_USB1_RAM_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB1_RAM_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB1_RAM_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_USB1_PHY_RST_MASK (0x80U)\r
-#define SYSCON_PRESETCTRL2_USB1_PHY_RST_SHIFT (7U)\r
+#define SYSCON_PRESETCTRL2_USB1_RAM_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB1_RAM_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB1_RAM_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_USB1_PHY_RST_MASK (0x80U)\r
+#define SYSCON_PRESETCTRL2_USB1_PHY_RST_SHIFT (7U)\r
/*! USB1_PHY_RST - USB1 PHY reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_USB1_PHY_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB1_PHY_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB1_PHY_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_FREQME_RST_MASK (0x100U)\r
-#define SYSCON_PRESETCTRL2_FREQME_RST_SHIFT (8U)\r
+#define SYSCON_PRESETCTRL2_USB1_PHY_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB1_PHY_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB1_PHY_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_FREQME_RST_MASK (0x100U)\r
+#define SYSCON_PRESETCTRL2_FREQME_RST_SHIFT (8U)\r
/*! FREQME_RST - Frequency meter reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_FREQME_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_FREQME_RST_SHIFT)) & SYSCON_PRESETCTRL2_FREQME_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_GPIO4_RST_MASK (0x200U)\r
-#define SYSCON_PRESETCTRL2_GPIO4_RST_SHIFT (9U)\r
-/*! GPIO4_RST - GPIO4 reset control.\r
- * 0b1..Bloc is reset.\r
- * 0b0..Bloc is not reset.\r
- */\r
-#define SYSCON_PRESETCTRL2_GPIO4_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_GPIO4_RST_SHIFT)) & SYSCON_PRESETCTRL2_GPIO4_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_GPIO5_RST_MASK (0x400U)\r
-#define SYSCON_PRESETCTRL2_GPIO5_RST_SHIFT (10U)\r
-/*! GPIO5_RST - GPIO5 reset control.\r
- * 0b1..Bloc is reset.\r
- * 0b0..Bloc is not reset.\r
- */\r
-#define SYSCON_PRESETCTRL2_GPIO5_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_GPIO5_RST_SHIFT)) & SYSCON_PRESETCTRL2_GPIO5_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_OTP_RST_MASK (0x1000U)\r
-#define SYSCON_PRESETCTRL2_OTP_RST_SHIFT (12U)\r
-/*! OTP_RST - OTP reset control.\r
- * 0b1..Bloc is reset.\r
- * 0b0..Bloc is not reset.\r
- */\r
-#define SYSCON_PRESETCTRL2_OTP_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_OTP_RST_SHIFT)) & SYSCON_PRESETCTRL2_OTP_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_RNG_RST_MASK (0x2000U)\r
-#define SYSCON_PRESETCTRL2_RNG_RST_SHIFT (13U)\r
+#define SYSCON_PRESETCTRL2_FREQME_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_FREQME_RST_SHIFT)) & SYSCON_PRESETCTRL2_FREQME_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_RNG_RST_MASK (0x2000U)\r
+#define SYSCON_PRESETCTRL2_RNG_RST_SHIFT (13U)\r
/*! RNG_RST - RNG reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_RNG_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_RNG_RST_SHIFT)) & SYSCON_PRESETCTRL2_RNG_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_MUX1_RST_MASK (0x4000U)\r
-#define SYSCON_PRESETCTRL2_MUX1_RST_SHIFT (14U)\r
-/*! MUX1_RST - Peripheral Input Mux 1 reset control.\r
+#define SYSCON_PRESETCTRL2_RNG_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_RNG_RST_SHIFT)) & SYSCON_PRESETCTRL2_RNG_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_SYSCTL_RST_MASK (0x8000U)\r
+#define SYSCON_PRESETCTRL2_SYSCTL_RST_SHIFT (15U)\r
+/*! SYSCTL_RST - SYSCTL Block reset.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_MUX1_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_MUX1_RST_SHIFT)) & SYSCON_PRESETCTRL2_MUX1_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_USB0_HOSTM_RST_MASK (0x10000U)\r
-#define SYSCON_PRESETCTRL2_USB0_HOSTM_RST_SHIFT (16U)\r
+#define SYSCON_PRESETCTRL2_SYSCTL_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_SYSCTL_RST_SHIFT)) & SYSCON_PRESETCTRL2_SYSCTL_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_USB0_HOSTM_RST_MASK (0x10000U)\r
+#define SYSCON_PRESETCTRL2_USB0_HOSTM_RST_SHIFT (16U)\r
/*! USB0_HOSTM_RST - USB0 Host Master reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_USB0_HOSTM_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB0_HOSTM_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB0_HOSTM_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_USB0_HOSTS_RST_MASK (0x20000U)\r
-#define SYSCON_PRESETCTRL2_USB0_HOSTS_RST_SHIFT (17U)\r
+#define SYSCON_PRESETCTRL2_USB0_HOSTM_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB0_HOSTM_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB0_HOSTM_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_USB0_HOSTS_RST_MASK (0x20000U)\r
+#define SYSCON_PRESETCTRL2_USB0_HOSTS_RST_SHIFT (17U)\r
/*! USB0_HOSTS_RST - USB0 Host Slave reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_USB0_HOSTS_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB0_HOSTS_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB0_HOSTS_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_HASH0_RST_MASK (0x40000U)\r
-#define SYSCON_PRESETCTRL2_HASH0_RST_SHIFT (18U)\r
-/*! HASH0_RST - HASH0 reset control.\r
+#define SYSCON_PRESETCTRL2_USB0_HOSTS_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_USB0_HOSTS_RST_SHIFT)) & SYSCON_PRESETCTRL2_USB0_HOSTS_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_HASH_AES_RST_MASK (0x40000U)\r
+#define SYSCON_PRESETCTRL2_HASH_AES_RST_SHIFT (18U)\r
+/*! HASH_AES_RST - HASH_AES reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_HASH0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_HASH0_RST_SHIFT)) & SYSCON_PRESETCTRL2_HASH0_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_PQ_RST_MASK (0x80000U)\r
-#define SYSCON_PRESETCTRL2_PQ_RST_SHIFT (19U)\r
+#define SYSCON_PRESETCTRL2_HASH_AES_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_HASH_AES_RST_SHIFT)) & SYSCON_PRESETCTRL2_HASH_AES_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_PQ_RST_MASK (0x80000U)\r
+#define SYSCON_PRESETCTRL2_PQ_RST_SHIFT (19U)\r
/*! PQ_RST - Power Quad reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_PQ_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_PQ_RST_SHIFT)) & SYSCON_PRESETCTRL2_PQ_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_PLULUT_RST_MASK (0x100000U)\r
-#define SYSCON_PRESETCTRL2_PLULUT_RST_SHIFT (20U)\r
+#define SYSCON_PRESETCTRL2_PQ_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_PQ_RST_SHIFT)) & SYSCON_PRESETCTRL2_PQ_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_PLULUT_RST_MASK (0x100000U)\r
+#define SYSCON_PRESETCTRL2_PLULUT_RST_SHIFT (20U)\r
/*! PLULUT_RST - PLU LUT reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_PLULUT_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_PLULUT_RST_SHIFT)) & SYSCON_PRESETCTRL2_PLULUT_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_TIMER3_RST_MASK (0x200000U)\r
-#define SYSCON_PRESETCTRL2_TIMER3_RST_SHIFT (21U)\r
+#define SYSCON_PRESETCTRL2_PLULUT_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_PLULUT_RST_SHIFT)) & SYSCON_PRESETCTRL2_PLULUT_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_TIMER3_RST_MASK (0x200000U)\r
+#define SYSCON_PRESETCTRL2_TIMER3_RST_SHIFT (21U)\r
/*! TIMER3_RST - Timer 3 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_TIMER3_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_TIMER3_RST_SHIFT)) & SYSCON_PRESETCTRL2_TIMER3_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_TIMER4_RST_MASK (0x400000U)\r
-#define SYSCON_PRESETCTRL2_TIMER4_RST_SHIFT (22U)\r
+#define SYSCON_PRESETCTRL2_TIMER3_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_TIMER3_RST_SHIFT)) & SYSCON_PRESETCTRL2_TIMER3_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_TIMER4_RST_MASK (0x400000U)\r
+#define SYSCON_PRESETCTRL2_TIMER4_RST_SHIFT (22U)\r
/*! TIMER4_RST - Timer 4 reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_TIMER4_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_TIMER4_RST_SHIFT)) & SYSCON_PRESETCTRL2_TIMER4_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_PUF_RST_MASK (0x800000U)\r
-#define SYSCON_PRESETCTRL2_PUF_RST_SHIFT (23U)\r
+#define SYSCON_PRESETCTRL2_TIMER4_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_TIMER4_RST_SHIFT)) & SYSCON_PRESETCTRL2_TIMER4_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_PUF_RST_MASK (0x800000U)\r
+#define SYSCON_PRESETCTRL2_PUF_RST_SHIFT (23U)\r
/*! PUF_RST - PUF reset control reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_PUF_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_PUF_RST_SHIFT)) & SYSCON_PRESETCTRL2_PUF_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_CASPER_RST_MASK (0x1000000U)\r
-#define SYSCON_PRESETCTRL2_CASPER_RST_SHIFT (24U)\r
+#define SYSCON_PRESETCTRL2_PUF_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_PUF_RST_SHIFT)) & SYSCON_PRESETCTRL2_PUF_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_CASPER_RST_MASK (0x1000000U)\r
+#define SYSCON_PRESETCTRL2_CASPER_RST_SHIFT (24U)\r
/*! CASPER_RST - Casper reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_CASPER_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_CASPER_RST_SHIFT)) & SYSCON_PRESETCTRL2_CASPER_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_CAPT0_RST_MASK (0x2000000U)\r
-#define SYSCON_PRESETCTRL2_CAPT0_RST_SHIFT (25U)\r
-/*! CAPT0_RST - CAPT0 reset control.\r
- * 0b1..Bloc is reset.\r
- * 0b0..Bloc is not reset.\r
- */\r
-#define SYSCON_PRESETCTRL2_CAPT0_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_CAPT0_RST_SHIFT)) & SYSCON_PRESETCTRL2_CAPT0_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_ANALOG_CTRL_RST_MASK (0x8000000U)\r
+#define SYSCON_PRESETCTRL2_CASPER_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_CASPER_RST_SHIFT)) & SYSCON_PRESETCTRL2_CASPER_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_ANALOG_CTRL_RST_MASK (0x8000000U)\r
#define SYSCON_PRESETCTRL2_ANALOG_CTRL_RST_SHIFT (27U)\r
/*! ANALOG_CTRL_RST - analog control reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_ANALOG_CTRL_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_ANALOG_CTRL_RST_SHIFT)) & SYSCON_PRESETCTRL2_ANALOG_CTRL_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_HS_LSPI_RST_MASK (0x10000000U)\r
-#define SYSCON_PRESETCTRL2_HS_LSPI_RST_SHIFT (28U)\r
+#define SYSCON_PRESETCTRL2_ANALOG_CTRL_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_ANALOG_CTRL_RST_SHIFT)) & \\r
+ SYSCON_PRESETCTRL2_ANALOG_CTRL_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_HS_LSPI_RST_MASK (0x10000000U)\r
+#define SYSCON_PRESETCTRL2_HS_LSPI_RST_SHIFT (28U)\r
/*! HS_LSPI_RST - HS LSPI reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_HS_LSPI_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_HS_LSPI_RST_SHIFT)) & SYSCON_PRESETCTRL2_HS_LSPI_RST_MASK)\r
-#define SYSCON_PRESETCTRL2_GPIO_SEC_RST_MASK (0x20000000U)\r
-#define SYSCON_PRESETCTRL2_GPIO_SEC_RST_SHIFT (29U)\r
+#define SYSCON_PRESETCTRL2_HS_LSPI_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_HS_LSPI_RST_SHIFT)) & SYSCON_PRESETCTRL2_HS_LSPI_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_GPIO_SEC_RST_MASK (0x20000000U)\r
+#define SYSCON_PRESETCTRL2_GPIO_SEC_RST_SHIFT (29U)\r
/*! GPIO_SEC_RST - GPIO secure reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_GPIO_SEC_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_GPIO_SEC_RST_SHIFT)) & SYSCON_PRESETCTRL2_GPIO_SEC_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_GPIO_SEC_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_GPIO_SEC_RST_SHIFT)) & SYSCON_PRESETCTRL2_GPIO_SEC_RST_MASK)\r
#define SYSCON_PRESETCTRL2_GPIO_SEC_INT_RST_MASK (0x40000000U)\r
#define SYSCON_PRESETCTRL2_GPIO_SEC_INT_RST_SHIFT (30U)\r
/*! GPIO_SEC_INT_RST - GPIO secure int reset control.\r
* 0b1..Bloc is reset.\r
* 0b0..Bloc is not reset.\r
*/\r
-#define SYSCON_PRESETCTRL2_GPIO_SEC_INT_RST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_GPIO_SEC_INT_RST_SHIFT)) & SYSCON_PRESETCTRL2_GPIO_SEC_INT_RST_MASK)\r
+#define SYSCON_PRESETCTRL2_GPIO_SEC_INT_RST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRL2_GPIO_SEC_INT_RST_SHIFT)) & \\r
+ SYSCON_PRESETCTRL2_GPIO_SEC_INT_RST_MASK)\r
/*! @} */\r
\r
/*! @name PRESETCTRLX - Peripheral reset control register */\r
/*! @{ */\r
-#define SYSCON_PRESETCTRLX_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_PRESETCTRLX_DATA_SHIFT (0U)\r
-#define SYSCON_PRESETCTRLX_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRLX_DATA_SHIFT)) & SYSCON_PRESETCTRLX_DATA_MASK)\r
+#define SYSCON_PRESETCTRLX_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_PRESETCTRLX_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_PRESETCTRLX_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRLX_DATA_SHIFT)) & SYSCON_PRESETCTRLX_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_PRESETCTRLX */\r
-#define SYSCON_PRESETCTRLX_COUNT (3U)\r
+#define SYSCON_PRESETCTRLX_COUNT (3U)\r
\r
/*! @name PRESETCTRLSET - Peripheral reset control set register */\r
/*! @{ */\r
-#define SYSCON_PRESETCTRLSET_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_PRESETCTRLSET_DATA_SHIFT (0U)\r
-#define SYSCON_PRESETCTRLSET_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRLSET_DATA_SHIFT)) & SYSCON_PRESETCTRLSET_DATA_MASK)\r
+#define SYSCON_PRESETCTRLSET_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_PRESETCTRLSET_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_PRESETCTRLSET_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRLSET_DATA_SHIFT)) & SYSCON_PRESETCTRLSET_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_PRESETCTRLSET */\r
-#define SYSCON_PRESETCTRLSET_COUNT (3U)\r
+#define SYSCON_PRESETCTRLSET_COUNT (3U)\r
\r
-/*! @name PRESETCTRLCLR - Peripheral reset contro clearl register */\r
+/*! @name PRESETCTRLCLR - Peripheral reset control clear register */\r
/*! @{ */\r
-#define SYSCON_PRESETCTRLCLR_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_PRESETCTRLCLR_DATA_SHIFT (0U)\r
-#define SYSCON_PRESETCTRLCLR_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRLCLR_DATA_SHIFT)) & SYSCON_PRESETCTRLCLR_DATA_MASK)\r
+#define SYSCON_PRESETCTRLCLR_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_PRESETCTRLCLR_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_PRESETCTRLCLR_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PRESETCTRLCLR_DATA_SHIFT)) & SYSCON_PRESETCTRLCLR_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_PRESETCTRLCLR */\r
-#define SYSCON_PRESETCTRLCLR_COUNT (3U)\r
+#define SYSCON_PRESETCTRLCLR_COUNT (3U)\r
\r
/*! @name SWR_RESET - generate a software_reset */\r
/*! @{ */\r
-#define SYSCON_SWR_RESET_SWR_RESET_MASK (0xFFFFFFFFU)\r
-#define SYSCON_SWR_RESET_SWR_RESET_SHIFT (0U)\r
+#define SYSCON_SWR_RESET_SWR_RESET_MASK (0xFFFFFFFFU)\r
+#define SYSCON_SWR_RESET_SWR_RESET_SHIFT (0U)\r
/*! SWR_RESET - Write 0x5A00_0001 to generate a software_reset.\r
* 0b01011010000000000000000000000001..Generate a software reset.\r
* 0b00000000000000000000000000000000..Bloc is not reset.\r
*/\r
-#define SYSCON_SWR_RESET_SWR_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SWR_RESET_SWR_RESET_SHIFT)) & SYSCON_SWR_RESET_SWR_RESET_MASK)\r
+#define SYSCON_SWR_RESET_SWR_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SWR_RESET_SWR_RESET_SHIFT)) & SYSCON_SWR_RESET_SWR_RESET_MASK)\r
/*! @} */\r
\r
/*! @name AHBCLKCTRL0 - AHB Clock control 0 */\r
/*! @{ */\r
-#define SYSCON_AHBCLKCTRL0_ROM_MASK (0x2U)\r
-#define SYSCON_AHBCLKCTRL0_ROM_SHIFT (1U)\r
+#define SYSCON_AHBCLKCTRL0_ROM_MASK (0x2U)\r
+#define SYSCON_AHBCLKCTRL0_ROM_SHIFT (1U)\r
/*! ROM - Enables the clock for the ROM.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_ROM(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_ROM_SHIFT)) & SYSCON_AHBCLKCTRL0_ROM_MASK)\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL1_MASK (0x8U)\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL1_SHIFT (3U)\r
+#define SYSCON_AHBCLKCTRL0_ROM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_ROM_SHIFT)) & SYSCON_AHBCLKCTRL0_ROM_MASK)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL1_MASK (0x8U)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL1_SHIFT (3U)\r
/*! SRAM_CTRL1 - Enables the clock for the SRAM Controller 1.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_SRAM_CTRL1_SHIFT)) & SYSCON_AHBCLKCTRL0_SRAM_CTRL1_MASK)\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL2_MASK (0x10U)\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL2_SHIFT (4U)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_SRAM_CTRL1_SHIFT)) & SYSCON_AHBCLKCTRL0_SRAM_CTRL1_MASK)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL2_MASK (0x10U)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL2_SHIFT (4U)\r
/*! SRAM_CTRL2 - Enables the clock for the SRAM Controller 2.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_SRAM_CTRL2_SHIFT)) & SYSCON_AHBCLKCTRL0_SRAM_CTRL2_MASK)\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL3_MASK (0x20U)\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL3_SHIFT (5U)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_SRAM_CTRL2_SHIFT)) & SYSCON_AHBCLKCTRL0_SRAM_CTRL2_MASK)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL3_MASK (0x20U)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL3_SHIFT (5U)\r
/*! SRAM_CTRL3 - Enables the clock for the SRAM Controller 3.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL3(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_SRAM_CTRL3_SHIFT)) & SYSCON_AHBCLKCTRL0_SRAM_CTRL3_MASK)\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL4_MASK (0x40U)\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL4_SHIFT (6U)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_SRAM_CTRL3_SHIFT)) & SYSCON_AHBCLKCTRL0_SRAM_CTRL3_MASK)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL4_MASK (0x40U)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL4_SHIFT (6U)\r
/*! SRAM_CTRL4 - Enables the clock for the SRAM Controller 4.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_SRAM_CTRL4(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_SRAM_CTRL4_SHIFT)) & SYSCON_AHBCLKCTRL0_SRAM_CTRL4_MASK)\r
-#define SYSCON_AHBCLKCTRL0_FLASH_MASK (0x80U)\r
-#define SYSCON_AHBCLKCTRL0_FLASH_SHIFT (7U)\r
+#define SYSCON_AHBCLKCTRL0_SRAM_CTRL4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_SRAM_CTRL4_SHIFT)) & SYSCON_AHBCLKCTRL0_SRAM_CTRL4_MASK)\r
+#define SYSCON_AHBCLKCTRL0_FLASH_MASK (0x80U)\r
+#define SYSCON_AHBCLKCTRL0_FLASH_SHIFT (7U)\r
/*! FLASH - Enables the clock for the Flash controller.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_FLASH(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_FLASH_SHIFT)) & SYSCON_AHBCLKCTRL0_FLASH_MASK)\r
-#define SYSCON_AHBCLKCTRL0_FMC_MASK (0x100U)\r
-#define SYSCON_AHBCLKCTRL0_FMC_SHIFT (8U)\r
+#define SYSCON_AHBCLKCTRL0_FLASH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_FLASH_SHIFT)) & SYSCON_AHBCLKCTRL0_FLASH_MASK)\r
+#define SYSCON_AHBCLKCTRL0_FMC_MASK (0x100U)\r
+#define SYSCON_AHBCLKCTRL0_FMC_SHIFT (8U)\r
/*! FMC - Enables the clock for the FMC controller.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_FMC(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_FMC_SHIFT)) & SYSCON_AHBCLKCTRL0_FMC_MASK)\r
-#define SYSCON_AHBCLKCTRL0_MUX0_MASK (0x800U)\r
-#define SYSCON_AHBCLKCTRL0_MUX0_SHIFT (11U)\r
-/*! MUX0 - Enables the clock for the Input Mux 0.\r
+#define SYSCON_AHBCLKCTRL0_FMC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_FMC_SHIFT)) & SYSCON_AHBCLKCTRL0_FMC_MASK)\r
+#define SYSCON_AHBCLKCTRL0_MUX_MASK (0x800U)\r
+#define SYSCON_AHBCLKCTRL0_MUX_SHIFT (11U)\r
+/*! MUX - Enables the clock for the Input Mux.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_MUX0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_MUX0_SHIFT)) & SYSCON_AHBCLKCTRL0_MUX0_MASK)\r
-#define SYSCON_AHBCLKCTRL0_IOCON_MASK (0x2000U)\r
-#define SYSCON_AHBCLKCTRL0_IOCON_SHIFT (13U)\r
+#define SYSCON_AHBCLKCTRL0_MUX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_MUX_SHIFT)) & SYSCON_AHBCLKCTRL0_MUX_MASK)\r
+#define SYSCON_AHBCLKCTRL0_IOCON_MASK (0x2000U)\r
+#define SYSCON_AHBCLKCTRL0_IOCON_SHIFT (13U)\r
/*! IOCON - Enables the clock for the I/O controller.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_IOCON(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_IOCON_SHIFT)) & SYSCON_AHBCLKCTRL0_IOCON_MASK)\r
-#define SYSCON_AHBCLKCTRL0_GPIO0_MASK (0x4000U)\r
-#define SYSCON_AHBCLKCTRL0_GPIO0_SHIFT (14U)\r
+#define SYSCON_AHBCLKCTRL0_IOCON(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_IOCON_SHIFT)) & SYSCON_AHBCLKCTRL0_IOCON_MASK)\r
+#define SYSCON_AHBCLKCTRL0_GPIO0_MASK (0x4000U)\r
+#define SYSCON_AHBCLKCTRL0_GPIO0_SHIFT (14U)\r
/*! GPIO0 - Enables the clock for the GPIO0.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_GPIO0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GPIO0_SHIFT)) & SYSCON_AHBCLKCTRL0_GPIO0_MASK)\r
-#define SYSCON_AHBCLKCTRL0_GPIO1_MASK (0x8000U)\r
-#define SYSCON_AHBCLKCTRL0_GPIO1_SHIFT (15U)\r
+#define SYSCON_AHBCLKCTRL0_GPIO0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GPIO0_SHIFT)) & SYSCON_AHBCLKCTRL0_GPIO0_MASK)\r
+#define SYSCON_AHBCLKCTRL0_GPIO1_MASK (0x8000U)\r
+#define SYSCON_AHBCLKCTRL0_GPIO1_SHIFT (15U)\r
/*! GPIO1 - Enables the clock for the GPIO1.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_GPIO1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GPIO1_SHIFT)) & SYSCON_AHBCLKCTRL0_GPIO1_MASK)\r
-#define SYSCON_AHBCLKCTRL0_GPIO2_MASK (0x10000U)\r
-#define SYSCON_AHBCLKCTRL0_GPIO2_SHIFT (16U)\r
+#define SYSCON_AHBCLKCTRL0_GPIO1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GPIO1_SHIFT)) & SYSCON_AHBCLKCTRL0_GPIO1_MASK)\r
+#define SYSCON_AHBCLKCTRL0_GPIO2_MASK (0x10000U)\r
+#define SYSCON_AHBCLKCTRL0_GPIO2_SHIFT (16U)\r
/*! GPIO2 - Enables the clock for the GPIO2.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_GPIO2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GPIO2_SHIFT)) & SYSCON_AHBCLKCTRL0_GPIO2_MASK)\r
-#define SYSCON_AHBCLKCTRL0_GPIO3_MASK (0x20000U)\r
-#define SYSCON_AHBCLKCTRL0_GPIO3_SHIFT (17U)\r
+#define SYSCON_AHBCLKCTRL0_GPIO2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GPIO2_SHIFT)) & SYSCON_AHBCLKCTRL0_GPIO2_MASK)\r
+#define SYSCON_AHBCLKCTRL0_GPIO3_MASK (0x20000U)\r
+#define SYSCON_AHBCLKCTRL0_GPIO3_SHIFT (17U)\r
/*! GPIO3 - Enables the clock for the GPIO3.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_GPIO3(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GPIO3_SHIFT)) & SYSCON_AHBCLKCTRL0_GPIO3_MASK)\r
-#define SYSCON_AHBCLKCTRL0_PINT_MASK (0x40000U)\r
-#define SYSCON_AHBCLKCTRL0_PINT_SHIFT (18U)\r
+#define SYSCON_AHBCLKCTRL0_GPIO3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GPIO3_SHIFT)) & SYSCON_AHBCLKCTRL0_GPIO3_MASK)\r
+#define SYSCON_AHBCLKCTRL0_PINT_MASK (0x40000U)\r
+#define SYSCON_AHBCLKCTRL0_PINT_SHIFT (18U)\r
/*! PINT - Enables the clock for the Pin interrupt (PINT).\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_PINT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_PINT_SHIFT)) & SYSCON_AHBCLKCTRL0_PINT_MASK)\r
-#define SYSCON_AHBCLKCTRL0_GINT_MASK (0x80000U)\r
-#define SYSCON_AHBCLKCTRL0_GINT_SHIFT (19U)\r
+#define SYSCON_AHBCLKCTRL0_PINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_PINT_SHIFT)) & SYSCON_AHBCLKCTRL0_PINT_MASK)\r
+#define SYSCON_AHBCLKCTRL0_GINT_MASK (0x80000U)\r
+#define SYSCON_AHBCLKCTRL0_GINT_SHIFT (19U)\r
/*! GINT - Enables the clock for the Group interrupt (GINT).\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_GINT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GINT_SHIFT)) & SYSCON_AHBCLKCTRL0_GINT_MASK)\r
-#define SYSCON_AHBCLKCTRL0_DMA0_MASK (0x100000U)\r
-#define SYSCON_AHBCLKCTRL0_DMA0_SHIFT (20U)\r
+#define SYSCON_AHBCLKCTRL0_GINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_GINT_SHIFT)) & SYSCON_AHBCLKCTRL0_GINT_MASK)\r
+#define SYSCON_AHBCLKCTRL0_DMA0_MASK (0x100000U)\r
+#define SYSCON_AHBCLKCTRL0_DMA0_SHIFT (20U)\r
/*! DMA0 - Enables the clock for the DMA0.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_DMA0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_DMA0_SHIFT)) & SYSCON_AHBCLKCTRL0_DMA0_MASK)\r
-#define SYSCON_AHBCLKCTRL0_CRCGEN_MASK (0x200000U)\r
-#define SYSCON_AHBCLKCTRL0_CRCGEN_SHIFT (21U)\r
+#define SYSCON_AHBCLKCTRL0_DMA0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_DMA0_SHIFT)) & SYSCON_AHBCLKCTRL0_DMA0_MASK)\r
+#define SYSCON_AHBCLKCTRL0_CRCGEN_MASK (0x200000U)\r
+#define SYSCON_AHBCLKCTRL0_CRCGEN_SHIFT (21U)\r
/*! CRCGEN - Enables the clock for the CRCGEN.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_CRCGEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_CRCGEN_SHIFT)) & SYSCON_AHBCLKCTRL0_CRCGEN_MASK)\r
-#define SYSCON_AHBCLKCTRL0_WWDT_MASK (0x400000U)\r
-#define SYSCON_AHBCLKCTRL0_WWDT_SHIFT (22U)\r
+#define SYSCON_AHBCLKCTRL0_CRCGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_CRCGEN_SHIFT)) & SYSCON_AHBCLKCTRL0_CRCGEN_MASK)\r
+#define SYSCON_AHBCLKCTRL0_WWDT_MASK (0x400000U)\r
+#define SYSCON_AHBCLKCTRL0_WWDT_SHIFT (22U)\r
/*! WWDT - Enables the clock for the Watchdog Timer.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_WWDT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_WWDT_SHIFT)) & SYSCON_AHBCLKCTRL0_WWDT_MASK)\r
-#define SYSCON_AHBCLKCTRL0_RTC_MASK (0x800000U)\r
-#define SYSCON_AHBCLKCTRL0_RTC_SHIFT (23U)\r
+#define SYSCON_AHBCLKCTRL0_WWDT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_WWDT_SHIFT)) & SYSCON_AHBCLKCTRL0_WWDT_MASK)\r
+#define SYSCON_AHBCLKCTRL0_RTC_MASK (0x800000U)\r
+#define SYSCON_AHBCLKCTRL0_RTC_SHIFT (23U)\r
/*! RTC - Enables the clock for the Real Time Clock (RTC).\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_RTC(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_RTC_SHIFT)) & SYSCON_AHBCLKCTRL0_RTC_MASK)\r
-#define SYSCON_AHBCLKCTRL0_MAILBOX_MASK (0x4000000U)\r
-#define SYSCON_AHBCLKCTRL0_MAILBOX_SHIFT (26U)\r
+#define SYSCON_AHBCLKCTRL0_RTC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_RTC_SHIFT)) & SYSCON_AHBCLKCTRL0_RTC_MASK)\r
+#define SYSCON_AHBCLKCTRL0_MAILBOX_MASK (0x4000000U)\r
+#define SYSCON_AHBCLKCTRL0_MAILBOX_SHIFT (26U)\r
/*! MAILBOX - Enables the clock for the Inter CPU communication Mailbox.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_MAILBOX(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_MAILBOX_SHIFT)) & SYSCON_AHBCLKCTRL0_MAILBOX_MASK)\r
-#define SYSCON_AHBCLKCTRL0_ADC_MASK (0x8000000U)\r
-#define SYSCON_AHBCLKCTRL0_ADC_SHIFT (27U)\r
+#define SYSCON_AHBCLKCTRL0_MAILBOX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_MAILBOX_SHIFT)) & SYSCON_AHBCLKCTRL0_MAILBOX_MASK)\r
+#define SYSCON_AHBCLKCTRL0_ADC_MASK (0x8000000U)\r
+#define SYSCON_AHBCLKCTRL0_ADC_SHIFT (27U)\r
/*! ADC - Enables the clock for the ADC.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL0_ADC(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_ADC_SHIFT)) & SYSCON_AHBCLKCTRL0_ADC_MASK)\r
+#define SYSCON_AHBCLKCTRL0_ADC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL0_ADC_SHIFT)) & SYSCON_AHBCLKCTRL0_ADC_MASK)\r
/*! @} */\r
\r
/*! @name AHBCLKCTRL1 - AHB Clock control 1 */\r
/*! @{ */\r
-#define SYSCON_AHBCLKCTRL1_MRT_MASK (0x1U)\r
-#define SYSCON_AHBCLKCTRL1_MRT_SHIFT (0U)\r
+#define SYSCON_AHBCLKCTRL1_MRT_MASK (0x1U)\r
+#define SYSCON_AHBCLKCTRL1_MRT_SHIFT (0U)\r
/*! MRT - Enables the clock for the MRT.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_MRT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_MRT_SHIFT)) & SYSCON_AHBCLKCTRL1_MRT_MASK)\r
-#define SYSCON_AHBCLKCTRL1_OSTIMER0_MASK (0x2U)\r
-#define SYSCON_AHBCLKCTRL1_OSTIMER0_SHIFT (1U)\r
-/*! OSTIMER0 - Enables the clock for the OS Timer 0.\r
+#define SYSCON_AHBCLKCTRL1_MRT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_MRT_SHIFT)) & SYSCON_AHBCLKCTRL1_MRT_MASK)\r
+#define SYSCON_AHBCLKCTRL1_OSTIMER_MASK (0x2U)\r
+#define SYSCON_AHBCLKCTRL1_OSTIMER_SHIFT (1U)\r
+/*! OSTIMER - Enables the clock for the OS Event Timer.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_OSTIMER0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_OSTIMER0_SHIFT)) & SYSCON_AHBCLKCTRL1_OSTIMER0_MASK)\r
-#define SYSCON_AHBCLKCTRL1_SCT0_MASK (0x4U)\r
-#define SYSCON_AHBCLKCTRL1_SCT0_SHIFT (2U)\r
-/*! SCT0 - Enables the clock for the SCT0.\r
+#define SYSCON_AHBCLKCTRL1_OSTIMER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_OSTIMER_SHIFT)) & SYSCON_AHBCLKCTRL1_OSTIMER_MASK)\r
+#define SYSCON_AHBCLKCTRL1_SCT_MASK (0x4U)\r
+#define SYSCON_AHBCLKCTRL1_SCT_SHIFT (2U)\r
+/*! SCT - Enables the clock for the SCT.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_SCT0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_SCT0_SHIFT)) & SYSCON_AHBCLKCTRL1_SCT0_MASK)\r
-#define SYSCON_AHBCLKCTRL1_SCTIPU_MASK (0x40U)\r
-#define SYSCON_AHBCLKCTRL1_SCTIPU_SHIFT (6U)\r
-/*! SCTIPU - Enables the clock for the SCTIPU.\r
+#define SYSCON_AHBCLKCTRL1_SCT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_SCT_SHIFT)) & SYSCON_AHBCLKCTRL1_SCT_MASK)\r
+#define SYSCON_AHBCLKCTRL1_UTICK_MASK (0x400U)\r
+#define SYSCON_AHBCLKCTRL1_UTICK_SHIFT (10U)\r
+/*! UTICK - Enables the clock for the UTICK.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_SCTIPU(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_SCTIPU_SHIFT)) & SYSCON_AHBCLKCTRL1_SCTIPU_MASK)\r
-#define SYSCON_AHBCLKCTRL1_UTICK0_MASK (0x400U)\r
-#define SYSCON_AHBCLKCTRL1_UTICK0_SHIFT (10U)\r
-/*! UTICK0 - Enables the clock for the UTICK0.\r
- * 0b1..Enable Clock.\r
- * 0b0..Disable Clock.\r
- */\r
-#define SYSCON_AHBCLKCTRL1_UTICK0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_UTICK0_SHIFT)) & SYSCON_AHBCLKCTRL1_UTICK0_MASK)\r
-#define SYSCON_AHBCLKCTRL1_FC0_MASK (0x800U)\r
-#define SYSCON_AHBCLKCTRL1_FC0_SHIFT (11U)\r
+#define SYSCON_AHBCLKCTRL1_UTICK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_UTICK_SHIFT)) & SYSCON_AHBCLKCTRL1_UTICK_MASK)\r
+#define SYSCON_AHBCLKCTRL1_FC0_MASK (0x800U)\r
+#define SYSCON_AHBCLKCTRL1_FC0_SHIFT (11U)\r
/*! FC0 - Enables the clock for the FC0.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_FC0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC0_SHIFT)) & SYSCON_AHBCLKCTRL1_FC0_MASK)\r
-#define SYSCON_AHBCLKCTRL1_FC1_MASK (0x1000U)\r
-#define SYSCON_AHBCLKCTRL1_FC1_SHIFT (12U)\r
+#define SYSCON_AHBCLKCTRL1_FC0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC0_SHIFT)) & SYSCON_AHBCLKCTRL1_FC0_MASK)\r
+#define SYSCON_AHBCLKCTRL1_FC1_MASK (0x1000U)\r
+#define SYSCON_AHBCLKCTRL1_FC1_SHIFT (12U)\r
/*! FC1 - Enables the clock for the FC1.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_FC1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC1_SHIFT)) & SYSCON_AHBCLKCTRL1_FC1_MASK)\r
-#define SYSCON_AHBCLKCTRL1_FC2_MASK (0x2000U)\r
-#define SYSCON_AHBCLKCTRL1_FC2_SHIFT (13U)\r
+#define SYSCON_AHBCLKCTRL1_FC1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC1_SHIFT)) & SYSCON_AHBCLKCTRL1_FC1_MASK)\r
+#define SYSCON_AHBCLKCTRL1_FC2_MASK (0x2000U)\r
+#define SYSCON_AHBCLKCTRL1_FC2_SHIFT (13U)\r
/*! FC2 - Enables the clock for the FC2.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_FC2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC2_SHIFT)) & SYSCON_AHBCLKCTRL1_FC2_MASK)\r
-#define SYSCON_AHBCLKCTRL1_FC3_MASK (0x4000U)\r
-#define SYSCON_AHBCLKCTRL1_FC3_SHIFT (14U)\r
+#define SYSCON_AHBCLKCTRL1_FC2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC2_SHIFT)) & SYSCON_AHBCLKCTRL1_FC2_MASK)\r
+#define SYSCON_AHBCLKCTRL1_FC3_MASK (0x4000U)\r
+#define SYSCON_AHBCLKCTRL1_FC3_SHIFT (14U)\r
/*! FC3 - Enables the clock for the FC3.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_FC3(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC3_SHIFT)) & SYSCON_AHBCLKCTRL1_FC3_MASK)\r
-#define SYSCON_AHBCLKCTRL1_FC4_MASK (0x8000U)\r
-#define SYSCON_AHBCLKCTRL1_FC4_SHIFT (15U)\r
+#define SYSCON_AHBCLKCTRL1_FC3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC3_SHIFT)) & SYSCON_AHBCLKCTRL1_FC3_MASK)\r
+#define SYSCON_AHBCLKCTRL1_FC4_MASK (0x8000U)\r
+#define SYSCON_AHBCLKCTRL1_FC4_SHIFT (15U)\r
/*! FC4 - Enables the clock for the FC4.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_FC4(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC4_SHIFT)) & SYSCON_AHBCLKCTRL1_FC4_MASK)\r
-#define SYSCON_AHBCLKCTRL1_FC5_MASK (0x10000U)\r
-#define SYSCON_AHBCLKCTRL1_FC5_SHIFT (16U)\r
+#define SYSCON_AHBCLKCTRL1_FC4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC4_SHIFT)) & SYSCON_AHBCLKCTRL1_FC4_MASK)\r
+#define SYSCON_AHBCLKCTRL1_FC5_MASK (0x10000U)\r
+#define SYSCON_AHBCLKCTRL1_FC5_SHIFT (16U)\r
/*! FC5 - Enables the clock for the FC5.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_FC5(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC5_SHIFT)) & SYSCON_AHBCLKCTRL1_FC5_MASK)\r
-#define SYSCON_AHBCLKCTRL1_FC6_MASK (0x20000U)\r
-#define SYSCON_AHBCLKCTRL1_FC6_SHIFT (17U)\r
+#define SYSCON_AHBCLKCTRL1_FC5(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC5_SHIFT)) & SYSCON_AHBCLKCTRL1_FC5_MASK)\r
+#define SYSCON_AHBCLKCTRL1_FC6_MASK (0x20000U)\r
+#define SYSCON_AHBCLKCTRL1_FC6_SHIFT (17U)\r
/*! FC6 - Enables the clock for the FC6.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_FC6(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC6_SHIFT)) & SYSCON_AHBCLKCTRL1_FC6_MASK)\r
-#define SYSCON_AHBCLKCTRL1_FC7_MASK (0x40000U)\r
-#define SYSCON_AHBCLKCTRL1_FC7_SHIFT (18U)\r
+#define SYSCON_AHBCLKCTRL1_FC6(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC6_SHIFT)) & SYSCON_AHBCLKCTRL1_FC6_MASK)\r
+#define SYSCON_AHBCLKCTRL1_FC7_MASK (0x40000U)\r
+#define SYSCON_AHBCLKCTRL1_FC7_SHIFT (18U)\r
/*! FC7 - Enables the clock for the FC7.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_FC7(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC7_SHIFT)) & SYSCON_AHBCLKCTRL1_FC7_MASK)\r
-#define SYSCON_AHBCLKCTRL1_TIMER2_MASK (0x400000U)\r
-#define SYSCON_AHBCLKCTRL1_TIMER2_SHIFT (22U)\r
+#define SYSCON_AHBCLKCTRL1_FC7(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_FC7_SHIFT)) & SYSCON_AHBCLKCTRL1_FC7_MASK)\r
+#define SYSCON_AHBCLKCTRL1_TIMER2_MASK (0x400000U)\r
+#define SYSCON_AHBCLKCTRL1_TIMER2_SHIFT (22U)\r
/*! TIMER2 - Enables the clock for the Timer 2.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_TIMER2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_TIMER2_SHIFT)) & SYSCON_AHBCLKCTRL1_TIMER2_MASK)\r
-#define SYSCON_AHBCLKCTRL1_USB0_DEV_MASK (0x2000000U)\r
-#define SYSCON_AHBCLKCTRL1_USB0_DEV_SHIFT (25U)\r
+#define SYSCON_AHBCLKCTRL1_TIMER2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_TIMER2_SHIFT)) & SYSCON_AHBCLKCTRL1_TIMER2_MASK)\r
+#define SYSCON_AHBCLKCTRL1_USB0_DEV_MASK (0x2000000U)\r
+#define SYSCON_AHBCLKCTRL1_USB0_DEV_SHIFT (25U)\r
/*! USB0_DEV - Enables the clock for the USB0 DEV.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_USB0_DEV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_USB0_DEV_SHIFT)) & SYSCON_AHBCLKCTRL1_USB0_DEV_MASK)\r
-#define SYSCON_AHBCLKCTRL1_TIMER0_MASK (0x4000000U)\r
-#define SYSCON_AHBCLKCTRL1_TIMER0_SHIFT (26U)\r
+#define SYSCON_AHBCLKCTRL1_USB0_DEV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_USB0_DEV_SHIFT)) & SYSCON_AHBCLKCTRL1_USB0_DEV_MASK)\r
+#define SYSCON_AHBCLKCTRL1_TIMER0_MASK (0x4000000U)\r
+#define SYSCON_AHBCLKCTRL1_TIMER0_SHIFT (26U)\r
/*! TIMER0 - Enables the clock for the Timer 0.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_TIMER0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_TIMER0_SHIFT)) & SYSCON_AHBCLKCTRL1_TIMER0_MASK)\r
-#define SYSCON_AHBCLKCTRL1_TIMER1_MASK (0x8000000U)\r
-#define SYSCON_AHBCLKCTRL1_TIMER1_SHIFT (27U)\r
+#define SYSCON_AHBCLKCTRL1_TIMER0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_TIMER0_SHIFT)) & SYSCON_AHBCLKCTRL1_TIMER0_MASK)\r
+#define SYSCON_AHBCLKCTRL1_TIMER1_MASK (0x8000000U)\r
+#define SYSCON_AHBCLKCTRL1_TIMER1_SHIFT (27U)\r
/*! TIMER1 - Enables the clock for the Timer 1.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL1_TIMER1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_TIMER1_SHIFT)) & SYSCON_AHBCLKCTRL1_TIMER1_MASK)\r
-#define SYSCON_AHBCLKCTRL1_PVT_MASK (0x10000000U)\r
-#define SYSCON_AHBCLKCTRL1_PVT_SHIFT (28U)\r
-/*! PVT - Enables the clock for the PVT.\r
- * 0b1..Enable Clock.\r
- * 0b0..Disable Clock.\r
- */\r
-#define SYSCON_AHBCLKCTRL1_PVT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_PVT_SHIFT)) & SYSCON_AHBCLKCTRL1_PVT_MASK)\r
-#define SYSCON_AHBCLKCTRL1_EZHA_MASK (0x40000000U)\r
-#define SYSCON_AHBCLKCTRL1_EZHA_SHIFT (30U)\r
-/*! EZHA - Enables the clock for the EZH a.\r
- * 0b1..Enable Clock.\r
- * 0b0..Disable Clock.\r
- */\r
-#define SYSCON_AHBCLKCTRL1_EZHA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_EZHA_SHIFT)) & SYSCON_AHBCLKCTRL1_EZHA_MASK)\r
-#define SYSCON_AHBCLKCTRL1_EZHB_MASK (0x80000000U)\r
-#define SYSCON_AHBCLKCTRL1_EZHB_SHIFT (31U)\r
-/*! EZHB - Enables the clock for the EZH b.\r
- * 0b1..Enable Clock.\r
- * 0b0..Disable Clock.\r
- */\r
-#define SYSCON_AHBCLKCTRL1_EZHB(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_EZHB_SHIFT)) & SYSCON_AHBCLKCTRL1_EZHB_MASK)\r
+#define SYSCON_AHBCLKCTRL1_TIMER1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL1_TIMER1_SHIFT)) & SYSCON_AHBCLKCTRL1_TIMER1_MASK)\r
/*! @} */\r
\r
/*! @name AHBCLKCTRL2 - AHB Clock control 2 */\r
/*! @{ */\r
-#define SYSCON_AHBCLKCTRL2_DMA1_MASK (0x2U)\r
-#define SYSCON_AHBCLKCTRL2_DMA1_SHIFT (1U)\r
+#define SYSCON_AHBCLKCTRL2_DMA1_MASK (0x2U)\r
+#define SYSCON_AHBCLKCTRL2_DMA1_SHIFT (1U)\r
/*! DMA1 - Enables the clock for the DMA1.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_DMA1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_DMA1_SHIFT)) & SYSCON_AHBCLKCTRL2_DMA1_MASK)\r
-#define SYSCON_AHBCLKCTRL2_COMP_MASK (0x4U)\r
-#define SYSCON_AHBCLKCTRL2_COMP_SHIFT (2U)\r
+#define SYSCON_AHBCLKCTRL2_DMA1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_DMA1_SHIFT)) & SYSCON_AHBCLKCTRL2_DMA1_MASK)\r
+#define SYSCON_AHBCLKCTRL2_COMP_MASK (0x4U)\r
+#define SYSCON_AHBCLKCTRL2_COMP_SHIFT (2U)\r
/*! COMP - Enables the clock for the Comparator.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_COMP(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_COMP_SHIFT)) & SYSCON_AHBCLKCTRL2_COMP_MASK)\r
-#define SYSCON_AHBCLKCTRL2_SDIO_MASK (0x8U)\r
-#define SYSCON_AHBCLKCTRL2_SDIO_SHIFT (3U)\r
+#define SYSCON_AHBCLKCTRL2_COMP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_COMP_SHIFT)) & SYSCON_AHBCLKCTRL2_COMP_MASK)\r
+#define SYSCON_AHBCLKCTRL2_SDIO_MASK (0x8U)\r
+#define SYSCON_AHBCLKCTRL2_SDIO_SHIFT (3U)\r
/*! SDIO - Enables the clock for the SDIO.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_SDIO(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_SDIO_SHIFT)) & SYSCON_AHBCLKCTRL2_SDIO_MASK)\r
-#define SYSCON_AHBCLKCTRL2_USB1_HOST_MASK (0x10U)\r
-#define SYSCON_AHBCLKCTRL2_USB1_HOST_SHIFT (4U)\r
+#define SYSCON_AHBCLKCTRL2_SDIO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_SDIO_SHIFT)) & SYSCON_AHBCLKCTRL2_SDIO_MASK)\r
+#define SYSCON_AHBCLKCTRL2_USB1_HOST_MASK (0x10U)\r
+#define SYSCON_AHBCLKCTRL2_USB1_HOST_SHIFT (4U)\r
/*! USB1_HOST - Enables the clock for the USB1 Host.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_USB1_HOST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB1_HOST_SHIFT)) & SYSCON_AHBCLKCTRL2_USB1_HOST_MASK)\r
-#define SYSCON_AHBCLKCTRL2_USB1_DEV_MASK (0x20U)\r
-#define SYSCON_AHBCLKCTRL2_USB1_DEV_SHIFT (5U)\r
+#define SYSCON_AHBCLKCTRL2_USB1_HOST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB1_HOST_SHIFT)) & SYSCON_AHBCLKCTRL2_USB1_HOST_MASK)\r
+#define SYSCON_AHBCLKCTRL2_USB1_DEV_MASK (0x20U)\r
+#define SYSCON_AHBCLKCTRL2_USB1_DEV_SHIFT (5U)\r
/*! USB1_DEV - Enables the clock for the USB1 dev.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_USB1_DEV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB1_DEV_SHIFT)) & SYSCON_AHBCLKCTRL2_USB1_DEV_MASK)\r
-#define SYSCON_AHBCLKCTRL2_USB1_RAM_MASK (0x40U)\r
-#define SYSCON_AHBCLKCTRL2_USB1_RAM_SHIFT (6U)\r
+#define SYSCON_AHBCLKCTRL2_USB1_DEV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB1_DEV_SHIFT)) & SYSCON_AHBCLKCTRL2_USB1_DEV_MASK)\r
+#define SYSCON_AHBCLKCTRL2_USB1_RAM_MASK (0x40U)\r
+#define SYSCON_AHBCLKCTRL2_USB1_RAM_SHIFT (6U)\r
/*! USB1_RAM - Enables the clock for the USB1 RAM.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_USB1_RAM(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB1_RAM_SHIFT)) & SYSCON_AHBCLKCTRL2_USB1_RAM_MASK)\r
-#define SYSCON_AHBCLKCTRL2_USB1_PHY_MASK (0x80U)\r
-#define SYSCON_AHBCLKCTRL2_USB1_PHY_SHIFT (7U)\r
+#define SYSCON_AHBCLKCTRL2_USB1_RAM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB1_RAM_SHIFT)) & SYSCON_AHBCLKCTRL2_USB1_RAM_MASK)\r
+#define SYSCON_AHBCLKCTRL2_USB1_PHY_MASK (0x80U)\r
+#define SYSCON_AHBCLKCTRL2_USB1_PHY_SHIFT (7U)\r
/*! USB1_PHY - Enables the clock for the USB1 PHY.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_USB1_PHY(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB1_PHY_SHIFT)) & SYSCON_AHBCLKCTRL2_USB1_PHY_MASK)\r
-#define SYSCON_AHBCLKCTRL2_FREQME_MASK (0x100U)\r
-#define SYSCON_AHBCLKCTRL2_FREQME_SHIFT (8U)\r
+#define SYSCON_AHBCLKCTRL2_USB1_PHY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB1_PHY_SHIFT)) & SYSCON_AHBCLKCTRL2_USB1_PHY_MASK)\r
+#define SYSCON_AHBCLKCTRL2_FREQME_MASK (0x100U)\r
+#define SYSCON_AHBCLKCTRL2_FREQME_SHIFT (8U)\r
/*! FREQME - Enables the clock for the Frequency meter.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_FREQME(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_FREQME_SHIFT)) & SYSCON_AHBCLKCTRL2_FREQME_MASK)\r
-#define SYSCON_AHBCLKCTRL2_GPIO4_MASK (0x200U)\r
-#define SYSCON_AHBCLKCTRL2_GPIO4_SHIFT (9U)\r
-/*! GPIO4 - Enables the clock for the GPIO4.\r
- * 0b1..Enable Clock.\r
- * 0b0..Disable Clock.\r
- */\r
-#define SYSCON_AHBCLKCTRL2_GPIO4(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_GPIO4_SHIFT)) & SYSCON_AHBCLKCTRL2_GPIO4_MASK)\r
-#define SYSCON_AHBCLKCTRL2_GPIO5_MASK (0x400U)\r
-#define SYSCON_AHBCLKCTRL2_GPIO5_SHIFT (10U)\r
-/*! GPIO5 - Enables the clock for the GPIO5.\r
- * 0b1..Enable Clock.\r
- * 0b0..Disable Clock.\r
- */\r
-#define SYSCON_AHBCLKCTRL2_GPIO5(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_GPIO5_SHIFT)) & SYSCON_AHBCLKCTRL2_GPIO5_MASK)\r
-#define SYSCON_AHBCLKCTRL2_OTP_MASK (0x1000U)\r
-#define SYSCON_AHBCLKCTRL2_OTP_SHIFT (12U)\r
-/*! OTP - Enables the clock for the OTP.\r
- * 0b1..Enable Clock.\r
- * 0b0..Disable Clock.\r
- */\r
-#define SYSCON_AHBCLKCTRL2_OTP(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_OTP_SHIFT)) & SYSCON_AHBCLKCTRL2_OTP_MASK)\r
-#define SYSCON_AHBCLKCTRL2_RNG_MASK (0x2000U)\r
-#define SYSCON_AHBCLKCTRL2_RNG_SHIFT (13U)\r
+#define SYSCON_AHBCLKCTRL2_FREQME(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_FREQME_SHIFT)) & SYSCON_AHBCLKCTRL2_FREQME_MASK)\r
+#define SYSCON_AHBCLKCTRL2_RNG_MASK (0x2000U)\r
+#define SYSCON_AHBCLKCTRL2_RNG_SHIFT (13U)\r
/*! RNG - Enables the clock for the RNG.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_RNG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_RNG_SHIFT)) & SYSCON_AHBCLKCTRL2_RNG_MASK)\r
-#define SYSCON_AHBCLKCTRL2_MUX1_MASK (0x4000U)\r
-#define SYSCON_AHBCLKCTRL2_MUX1_SHIFT (14U)\r
-/*! MUX1 - Enables the clock for the Peripheral Input Mux 1.\r
+#define SYSCON_AHBCLKCTRL2_RNG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_RNG_SHIFT)) & SYSCON_AHBCLKCTRL2_RNG_MASK)\r
+#define SYSCON_AHBCLKCTRL2_SYSCTL_MASK (0x8000U)\r
+#define SYSCON_AHBCLKCTRL2_SYSCTL_SHIFT (15U)\r
+/*! SYSCTL - SYSCTL block clock.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_MUX1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_MUX1_SHIFT)) & SYSCON_AHBCLKCTRL2_MUX1_MASK)\r
-#define SYSCON_AHBCLKCTRL2_USB0_HOSTM_MASK (0x10000U)\r
-#define SYSCON_AHBCLKCTRL2_USB0_HOSTM_SHIFT (16U)\r
+#define SYSCON_AHBCLKCTRL2_SYSCTL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_SYSCTL_SHIFT)) & SYSCON_AHBCLKCTRL2_SYSCTL_MASK)\r
+#define SYSCON_AHBCLKCTRL2_USB0_HOSTM_MASK (0x10000U)\r
+#define SYSCON_AHBCLKCTRL2_USB0_HOSTM_SHIFT (16U)\r
/*! USB0_HOSTM - Enables the clock for the USB0 Host Master.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_USB0_HOSTM(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB0_HOSTM_SHIFT)) & SYSCON_AHBCLKCTRL2_USB0_HOSTM_MASK)\r
-#define SYSCON_AHBCLKCTRL2_USB0_HOSTS_MASK (0x20000U)\r
-#define SYSCON_AHBCLKCTRL2_USB0_HOSTS_SHIFT (17U)\r
+#define SYSCON_AHBCLKCTRL2_USB0_HOSTM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB0_HOSTM_SHIFT)) & SYSCON_AHBCLKCTRL2_USB0_HOSTM_MASK)\r
+#define SYSCON_AHBCLKCTRL2_USB0_HOSTS_MASK (0x20000U)\r
+#define SYSCON_AHBCLKCTRL2_USB0_HOSTS_SHIFT (17U)\r
/*! USB0_HOSTS - Enables the clock for the USB0 Host Slave.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_USB0_HOSTS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB0_HOSTS_SHIFT)) & SYSCON_AHBCLKCTRL2_USB0_HOSTS_MASK)\r
-#define SYSCON_AHBCLKCTRL2_HASH0_MASK (0x40000U)\r
-#define SYSCON_AHBCLKCTRL2_HASH0_SHIFT (18U)\r
-/*! HASH0 - Enables the clock for the HASH0.\r
+#define SYSCON_AHBCLKCTRL2_USB0_HOSTS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_USB0_HOSTS_SHIFT)) & SYSCON_AHBCLKCTRL2_USB0_HOSTS_MASK)\r
+#define SYSCON_AHBCLKCTRL2_HASH_AES_MASK (0x40000U)\r
+#define SYSCON_AHBCLKCTRL2_HASH_AES_SHIFT (18U)\r
+/*! HASH_AES - Enables the clock for the HASH_AES.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_HASH0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_HASH0_SHIFT)) & SYSCON_AHBCLKCTRL2_HASH0_MASK)\r
-#define SYSCON_AHBCLKCTRL2_PQ_MASK (0x80000U)\r
-#define SYSCON_AHBCLKCTRL2_PQ_SHIFT (19U)\r
+#define SYSCON_AHBCLKCTRL2_HASH_AES(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_HASH_AES_SHIFT)) & SYSCON_AHBCLKCTRL2_HASH_AES_MASK)\r
+#define SYSCON_AHBCLKCTRL2_PQ_MASK (0x80000U)\r
+#define SYSCON_AHBCLKCTRL2_PQ_SHIFT (19U)\r
/*! PQ - Enables the clock for the Power Quad.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_PQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_PQ_SHIFT)) & SYSCON_AHBCLKCTRL2_PQ_MASK)\r
-#define SYSCON_AHBCLKCTRL2_PLULUT_MASK (0x100000U)\r
-#define SYSCON_AHBCLKCTRL2_PLULUT_SHIFT (20U)\r
+#define SYSCON_AHBCLKCTRL2_PQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_PQ_SHIFT)) & SYSCON_AHBCLKCTRL2_PQ_MASK)\r
+#define SYSCON_AHBCLKCTRL2_PLULUT_MASK (0x100000U)\r
+#define SYSCON_AHBCLKCTRL2_PLULUT_SHIFT (20U)\r
/*! PLULUT - Enables the clock for the PLU LUT.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_PLULUT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_PLULUT_SHIFT)) & SYSCON_AHBCLKCTRL2_PLULUT_MASK)\r
-#define SYSCON_AHBCLKCTRL2_TIMER3_MASK (0x200000U)\r
-#define SYSCON_AHBCLKCTRL2_TIMER3_SHIFT (21U)\r
+#define SYSCON_AHBCLKCTRL2_PLULUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_PLULUT_SHIFT)) & SYSCON_AHBCLKCTRL2_PLULUT_MASK)\r
+#define SYSCON_AHBCLKCTRL2_TIMER3_MASK (0x200000U)\r
+#define SYSCON_AHBCLKCTRL2_TIMER3_SHIFT (21U)\r
/*! TIMER3 - Enables the clock for the Timer 3.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_TIMER3(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_TIMER3_SHIFT)) & SYSCON_AHBCLKCTRL2_TIMER3_MASK)\r
-#define SYSCON_AHBCLKCTRL2_TIMER4_MASK (0x400000U)\r
-#define SYSCON_AHBCLKCTRL2_TIMER4_SHIFT (22U)\r
+#define SYSCON_AHBCLKCTRL2_TIMER3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_TIMER3_SHIFT)) & SYSCON_AHBCLKCTRL2_TIMER3_MASK)\r
+#define SYSCON_AHBCLKCTRL2_TIMER4_MASK (0x400000U)\r
+#define SYSCON_AHBCLKCTRL2_TIMER4_SHIFT (22U)\r
/*! TIMER4 - Enables the clock for the Timer 4.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_TIMER4(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_TIMER4_SHIFT)) & SYSCON_AHBCLKCTRL2_TIMER4_MASK)\r
-#define SYSCON_AHBCLKCTRL2_PUF_MASK (0x800000U)\r
-#define SYSCON_AHBCLKCTRL2_PUF_SHIFT (23U)\r
+#define SYSCON_AHBCLKCTRL2_TIMER4(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_TIMER4_SHIFT)) & SYSCON_AHBCLKCTRL2_TIMER4_MASK)\r
+#define SYSCON_AHBCLKCTRL2_PUF_MASK (0x800000U)\r
+#define SYSCON_AHBCLKCTRL2_PUF_SHIFT (23U)\r
/*! PUF - Enables the clock for the PUF reset control.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_PUF(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_PUF_SHIFT)) & SYSCON_AHBCLKCTRL2_PUF_MASK)\r
-#define SYSCON_AHBCLKCTRL2_CASPER_MASK (0x1000000U)\r
-#define SYSCON_AHBCLKCTRL2_CASPER_SHIFT (24U)\r
+#define SYSCON_AHBCLKCTRL2_PUF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_PUF_SHIFT)) & SYSCON_AHBCLKCTRL2_PUF_MASK)\r
+#define SYSCON_AHBCLKCTRL2_CASPER_MASK (0x1000000U)\r
+#define SYSCON_AHBCLKCTRL2_CASPER_SHIFT (24U)\r
/*! CASPER - Enables the clock for the Casper.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_CASPER(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_CASPER_SHIFT)) & SYSCON_AHBCLKCTRL2_CASPER_MASK)\r
-#define SYSCON_AHBCLKCTRL2_CAPT0_MASK (0x2000000U)\r
-#define SYSCON_AHBCLKCTRL2_CAPT0_SHIFT (25U)\r
-/*! CAPT0 - Enables the clock for the CAPT0.\r
- * 0b1..Enable Clock.\r
- * 0b0..Disable Clock.\r
- */\r
-#define SYSCON_AHBCLKCTRL2_CAPT0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_CAPT0_SHIFT)) & SYSCON_AHBCLKCTRL2_CAPT0_MASK)\r
-#define SYSCON_AHBCLKCTRL2_ANALOG_CTRL_MASK (0x8000000U)\r
-#define SYSCON_AHBCLKCTRL2_ANALOG_CTRL_SHIFT (27U)\r
+#define SYSCON_AHBCLKCTRL2_CASPER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_CASPER_SHIFT)) & SYSCON_AHBCLKCTRL2_CASPER_MASK)\r
+#define SYSCON_AHBCLKCTRL2_ANALOG_CTRL_MASK (0x8000000U)\r
+#define SYSCON_AHBCLKCTRL2_ANALOG_CTRL_SHIFT (27U)\r
/*! ANALOG_CTRL - Enables the clock for the analog control.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_ANALOG_CTRL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_ANALOG_CTRL_SHIFT)) & SYSCON_AHBCLKCTRL2_ANALOG_CTRL_MASK)\r
-#define SYSCON_AHBCLKCTRL2_HS_LSPI_MASK (0x10000000U)\r
-#define SYSCON_AHBCLKCTRL2_HS_LSPI_SHIFT (28U)\r
+#define SYSCON_AHBCLKCTRL2_ANALOG_CTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_ANALOG_CTRL_SHIFT)) & SYSCON_AHBCLKCTRL2_ANALOG_CTRL_MASK)\r
+#define SYSCON_AHBCLKCTRL2_HS_LSPI_MASK (0x10000000U)\r
+#define SYSCON_AHBCLKCTRL2_HS_LSPI_SHIFT (28U)\r
/*! HS_LSPI - Enables the clock for the HS LSPI.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_HS_LSPI(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_HS_LSPI_SHIFT)) & SYSCON_AHBCLKCTRL2_HS_LSPI_MASK)\r
-#define SYSCON_AHBCLKCTRL2_GPIO_SEC_MASK (0x20000000U)\r
-#define SYSCON_AHBCLKCTRL2_GPIO_SEC_SHIFT (29U)\r
+#define SYSCON_AHBCLKCTRL2_HS_LSPI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_HS_LSPI_SHIFT)) & SYSCON_AHBCLKCTRL2_HS_LSPI_MASK)\r
+#define SYSCON_AHBCLKCTRL2_GPIO_SEC_MASK (0x20000000U)\r
+#define SYSCON_AHBCLKCTRL2_GPIO_SEC_SHIFT (29U)\r
/*! GPIO_SEC - Enables the clock for the GPIO secure.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_GPIO_SEC(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_GPIO_SEC_SHIFT)) & SYSCON_AHBCLKCTRL2_GPIO_SEC_MASK)\r
-#define SYSCON_AHBCLKCTRL2_GPIO_SEC_INT_MASK (0x40000000U)\r
-#define SYSCON_AHBCLKCTRL2_GPIO_SEC_INT_SHIFT (30U)\r
+#define SYSCON_AHBCLKCTRL2_GPIO_SEC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_GPIO_SEC_SHIFT)) & SYSCON_AHBCLKCTRL2_GPIO_SEC_MASK)\r
+#define SYSCON_AHBCLKCTRL2_GPIO_SEC_INT_MASK (0x40000000U)\r
+#define SYSCON_AHBCLKCTRL2_GPIO_SEC_INT_SHIFT (30U)\r
/*! GPIO_SEC_INT - Enables the clock for the GPIO secure int.\r
* 0b1..Enable Clock.\r
* 0b0..Disable Clock.\r
*/\r
-#define SYSCON_AHBCLKCTRL2_GPIO_SEC_INT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_GPIO_SEC_INT_SHIFT)) & SYSCON_AHBCLKCTRL2_GPIO_SEC_INT_MASK)\r
+#define SYSCON_AHBCLKCTRL2_GPIO_SEC_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRL2_GPIO_SEC_INT_SHIFT)) & SYSCON_AHBCLKCTRL2_GPIO_SEC_INT_MASK)\r
/*! @} */\r
\r
/*! @name AHBCLKCTRLX - Peripheral reset control register */\r
/*! @{ */\r
-#define SYSCON_AHBCLKCTRLX_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_AHBCLKCTRLX_DATA_SHIFT (0U)\r
-#define SYSCON_AHBCLKCTRLX_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRLX_DATA_SHIFT)) & SYSCON_AHBCLKCTRLX_DATA_MASK)\r
+#define SYSCON_AHBCLKCTRLX_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_AHBCLKCTRLX_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_AHBCLKCTRLX_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRLX_DATA_SHIFT)) & SYSCON_AHBCLKCTRLX_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_AHBCLKCTRLX */\r
-#define SYSCON_AHBCLKCTRLX_COUNT (3U)\r
+#define SYSCON_AHBCLKCTRLX_COUNT (3U)\r
\r
/*! @name AHBCLKCTRLSET - Peripheral reset control register */\r
/*! @{ */\r
-#define SYSCON_AHBCLKCTRLSET_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_AHBCLKCTRLSET_DATA_SHIFT (0U)\r
-#define SYSCON_AHBCLKCTRLSET_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRLSET_DATA_SHIFT)) & SYSCON_AHBCLKCTRLSET_DATA_MASK)\r
+#define SYSCON_AHBCLKCTRLSET_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_AHBCLKCTRLSET_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_AHBCLKCTRLSET_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRLSET_DATA_SHIFT)) & SYSCON_AHBCLKCTRLSET_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_AHBCLKCTRLSET */\r
-#define SYSCON_AHBCLKCTRLSET_COUNT (3U)\r
+#define SYSCON_AHBCLKCTRLSET_COUNT (3U)\r
\r
/*! @name AHBCLKCTRLCLR - Peripheral reset control register */\r
/*! @{ */\r
-#define SYSCON_AHBCLKCTRLCLR_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_AHBCLKCTRLCLR_DATA_SHIFT (0U)\r
-#define SYSCON_AHBCLKCTRLCLR_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRLCLR_DATA_SHIFT)) & SYSCON_AHBCLKCTRLCLR_DATA_MASK)\r
+#define SYSCON_AHBCLKCTRLCLR_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_AHBCLKCTRLCLR_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_AHBCLKCTRLCLR_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKCTRLCLR_DATA_SHIFT)) & SYSCON_AHBCLKCTRLCLR_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_AHBCLKCTRLCLR */\r
-#define SYSCON_AHBCLKCTRLCLR_COUNT (3U)\r
+#define SYSCON_AHBCLKCTRLCLR_COUNT (3U)\r
\r
/*! @name SYSTICKCLKSEL0 - System Tick Timer for CPU0 source select */\r
/*! @{ */\r
-#define SYSCON_SYSTICKCLKSEL0_SEL_MASK (0x7U)\r
-#define SYSCON_SYSTICKCLKSEL0_SEL_SHIFT (0U)\r
+#define SYSCON_SYSTICKCLKSEL0_SEL_MASK (0x7U)\r
+#define SYSCON_SYSTICKCLKSEL0_SEL_SHIFT (0U)\r
/*! SEL - System Tick Timer for CPU0 source select.\r
* 0b000..System Tick 0 divided clock.\r
* 0b001..FRO 1MHz clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_SYSTICKCLKSEL0_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKSEL0_SEL_SHIFT)) & SYSCON_SYSTICKCLKSEL0_SEL_MASK)\r
+#define SYSCON_SYSTICKCLKSEL0_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKSEL0_SEL_SHIFT)) & SYSCON_SYSTICKCLKSEL0_SEL_MASK)\r
/*! @} */\r
\r
/*! @name SYSTICKCLKSEL1 - System Tick Timer for CPU1 source select */\r
/*! @{ */\r
-#define SYSCON_SYSTICKCLKSEL1_SEL_MASK (0x7U)\r
-#define SYSCON_SYSTICKCLKSEL1_SEL_SHIFT (0U)\r
+#define SYSCON_SYSTICKCLKSEL1_SEL_MASK (0x7U)\r
+#define SYSCON_SYSTICKCLKSEL1_SEL_SHIFT (0U)\r
/*! SEL - System Tick Timer for CPU1 source select.\r
* 0b000..System Tick 1 divided clock.\r
* 0b001..FRO 1MHz clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_SYSTICKCLKSEL1_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKSEL1_SEL_SHIFT)) & SYSCON_SYSTICKCLKSEL1_SEL_MASK)\r
+#define SYSCON_SYSTICKCLKSEL1_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKSEL1_SEL_SHIFT)) & SYSCON_SYSTICKCLKSEL1_SEL_MASK)\r
/*! @} */\r
\r
/*! @name SYSTICKCLKSELX - Peripheral reset control register */\r
/*! @{ */\r
-#define SYSCON_SYSTICKCLKSELX_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_SYSTICKCLKSELX_DATA_SHIFT (0U)\r
-#define SYSCON_SYSTICKCLKSELX_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKSELX_DATA_SHIFT)) & SYSCON_SYSTICKCLKSELX_DATA_MASK)\r
+#define SYSCON_SYSTICKCLKSELX_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_SYSTICKCLKSELX_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_SYSTICKCLKSELX_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKSELX_DATA_SHIFT)) & SYSCON_SYSTICKCLKSELX_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_SYSTICKCLKSELX */\r
-#define SYSCON_SYSTICKCLKSELX_COUNT (2U)\r
+#define SYSCON_SYSTICKCLKSELX_COUNT (2U)\r
\r
/*! @name TRACECLKSEL - Trace clock source select */\r
/*! @{ */\r
-#define SYSCON_TRACECLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_TRACECLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_TRACECLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_TRACECLKSEL_SEL_SHIFT (0U)\r
/*! SEL - Trace clock source select.\r
* 0b000..Trace divided clock.\r
* 0b001..FRO 1MHz clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_TRACECLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKSEL_SEL_SHIFT)) & SYSCON_TRACECLKSEL_SEL_MASK)\r
+#define SYSCON_TRACECLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKSEL_SEL_SHIFT)) & SYSCON_TRACECLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name CTIMERCLKSEL0 - CTimer 0 clock source select */\r
/*! @{ */\r
-#define SYSCON_CTIMERCLKSEL0_SEL_MASK (0x7U)\r
-#define SYSCON_CTIMERCLKSEL0_SEL_SHIFT (0U)\r
+#define SYSCON_CTIMERCLKSEL0_SEL_MASK (0x7U)\r
+#define SYSCON_CTIMERCLKSEL0_SEL_SHIFT (0U)\r
/*! SEL - CTimer 0 clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..Oscillator 32kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_CTIMERCLKSEL0_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL0_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL0_SEL_MASK)\r
+#define SYSCON_CTIMERCLKSEL0_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL0_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL0_SEL_MASK)\r
/*! @} */\r
\r
/*! @name CTIMERCLKSEL1 - CTimer 1 clock source select */\r
/*! @{ */\r
-#define SYSCON_CTIMERCLKSEL1_SEL_MASK (0x7U)\r
-#define SYSCON_CTIMERCLKSEL1_SEL_SHIFT (0U)\r
+#define SYSCON_CTIMERCLKSEL1_SEL_MASK (0x7U)\r
+#define SYSCON_CTIMERCLKSEL1_SEL_SHIFT (0U)\r
/*! SEL - CTimer 1 clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..Oscillator 32kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_CTIMERCLKSEL1_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL1_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL1_SEL_MASK)\r
+#define SYSCON_CTIMERCLKSEL1_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL1_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL1_SEL_MASK)\r
/*! @} */\r
\r
/*! @name CTIMERCLKSEL2 - CTimer 2 clock source select */\r
/*! @{ */\r
-#define SYSCON_CTIMERCLKSEL2_SEL_MASK (0x7U)\r
-#define SYSCON_CTIMERCLKSEL2_SEL_SHIFT (0U)\r
+#define SYSCON_CTIMERCLKSEL2_SEL_MASK (0x7U)\r
+#define SYSCON_CTIMERCLKSEL2_SEL_SHIFT (0U)\r
/*! SEL - CTimer 2 clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..Oscillator 32kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_CTIMERCLKSEL2_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL2_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL2_SEL_MASK)\r
+#define SYSCON_CTIMERCLKSEL2_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL2_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL2_SEL_MASK)\r
/*! @} */\r
\r
/*! @name CTIMERCLKSEL3 - CTimer 3 clock source select */\r
/*! @{ */\r
-#define SYSCON_CTIMERCLKSEL3_SEL_MASK (0x7U)\r
-#define SYSCON_CTIMERCLKSEL3_SEL_SHIFT (0U)\r
+#define SYSCON_CTIMERCLKSEL3_SEL_MASK (0x7U)\r
+#define SYSCON_CTIMERCLKSEL3_SEL_SHIFT (0U)\r
/*! SEL - CTimer 3 clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..Oscillator 32kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_CTIMERCLKSEL3_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL3_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL3_SEL_MASK)\r
+#define SYSCON_CTIMERCLKSEL3_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL3_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL3_SEL_MASK)\r
/*! @} */\r
\r
/*! @name CTIMERCLKSEL4 - CTimer 4 clock source select */\r
/*! @{ */\r
-#define SYSCON_CTIMERCLKSEL4_SEL_MASK (0x7U)\r
-#define SYSCON_CTIMERCLKSEL4_SEL_SHIFT (0U)\r
+#define SYSCON_CTIMERCLKSEL4_SEL_MASK (0x7U)\r
+#define SYSCON_CTIMERCLKSEL4_SEL_SHIFT (0U)\r
/*! SEL - CTimer 4 clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..Oscillator 32kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_CTIMERCLKSEL4_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL4_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL4_SEL_MASK)\r
+#define SYSCON_CTIMERCLKSEL4_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSEL4_SEL_SHIFT)) & SYSCON_CTIMERCLKSEL4_SEL_MASK)\r
/*! @} */\r
\r
/*! @name CTIMERCLKSELX - Peripheral reset control register */\r
/*! @{ */\r
-#define SYSCON_CTIMERCLKSELX_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_CTIMERCLKSELX_DATA_SHIFT (0U)\r
-#define SYSCON_CTIMERCLKSELX_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSELX_DATA_SHIFT)) & SYSCON_CTIMERCLKSELX_DATA_MASK)\r
+#define SYSCON_CTIMERCLKSELX_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_CTIMERCLKSELX_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_CTIMERCLKSELX_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CTIMERCLKSELX_DATA_SHIFT)) & SYSCON_CTIMERCLKSELX_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_CTIMERCLKSELX */\r
-#define SYSCON_CTIMERCLKSELX_COUNT (5U)\r
+#define SYSCON_CTIMERCLKSELX_COUNT (5U)\r
\r
/*! @name MAINCLKSELA - Main clock A source select */\r
/*! @{ */\r
-#define SYSCON_MAINCLKSELA_SEL_MASK (0x7U)\r
-#define SYSCON_MAINCLKSELA_SEL_SHIFT (0U)\r
+#define SYSCON_MAINCLKSELA_SEL_MASK (0x7U)\r
+#define SYSCON_MAINCLKSELA_SEL_SHIFT (0U)\r
/*! SEL - Main clock A source select.\r
* 0b000..FRO 12 MHz clock.\r
* 0b001..CLKIN clock.\r
* 0b010..FRO 1MHz clock.\r
* 0b011..FRO 96 MHz clock.\r
- * 0b100..No clock.\r
- * 0b101..No clock.\r
- * 0b110..No clock.\r
- * 0b111..No clock.\r
+ * 0b100..Reserved.\r
+ * 0b101..Reserved.\r
+ * 0b110..Reserved.\r
+ * 0b111..Reserved.\r
*/\r
-#define SYSCON_MAINCLKSELA_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MAINCLKSELA_SEL_SHIFT)) & SYSCON_MAINCLKSELA_SEL_MASK)\r
+#define SYSCON_MAINCLKSELA_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_MAINCLKSELA_SEL_SHIFT)) & SYSCON_MAINCLKSELA_SEL_MASK)\r
/*! @} */\r
\r
/*! @name MAINCLKSELB - Main clock source select */\r
/*! @{ */\r
-#define SYSCON_MAINCLKSELB_SEL_MASK (0x7U)\r
-#define SYSCON_MAINCLKSELB_SEL_SHIFT (0U)\r
+#define SYSCON_MAINCLKSELB_SEL_MASK (0x7U)\r
+#define SYSCON_MAINCLKSELB_SEL_SHIFT (0U)\r
/*! SEL - Main clock source select.\r
* 0b000..Main Clock A.\r
* 0b001..PLL0 clock.\r
* 0b010..PLL1 clock.\r
* 0b011..Oscillator 32 kHz clock.\r
- * 0b100..No clock.\r
- * 0b101..No clock.\r
- * 0b110..No clock.\r
- * 0b111..No clock.\r
+ * 0b100..Reserved.\r
+ * 0b101..Reserved.\r
+ * 0b110..Reserved.\r
+ * 0b111..Reserved.\r
*/\r
-#define SYSCON_MAINCLKSELB_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MAINCLKSELB_SEL_SHIFT)) & SYSCON_MAINCLKSELB_SEL_MASK)\r
+#define SYSCON_MAINCLKSELB_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_MAINCLKSELB_SEL_SHIFT)) & SYSCON_MAINCLKSELB_SEL_MASK)\r
/*! @} */\r
\r
/*! @name CLKOUTSEL - CLKOUT clock source select */\r
/*! @{ */\r
-#define SYSCON_CLKOUTSEL_SEL_MASK (0x7U)\r
-#define SYSCON_CLKOUTSEL_SEL_SHIFT (0U)\r
+#define SYSCON_CLKOUTSEL_SEL_MASK (0x7U)\r
+#define SYSCON_CLKOUTSEL_SEL_SHIFT (0U)\r
/*! SEL - CLKOUT clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..Oscillator 32kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_CLKOUTSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTSEL_SEL_SHIFT)) & SYSCON_CLKOUTSEL_SEL_MASK)\r
+#define SYSCON_CLKOUTSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTSEL_SEL_SHIFT)) & SYSCON_CLKOUTSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name PLL0CLKSEL - PLL0 clock source select */\r
/*! @{ */\r
-#define SYSCON_PLL0CLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_PLL0CLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_PLL0CLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_PLL0CLKSEL_SEL_SHIFT (0U)\r
/*! SEL - PLL0 clock source select.\r
* 0b000..FRO 12 MHz clock.\r
* 0b001..CLKIN clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_PLL0CLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKSEL_SEL_SHIFT)) & SYSCON_PLL0CLKSEL_SEL_MASK)\r
+#define SYSCON_PLL0CLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKSEL_SEL_SHIFT)) & SYSCON_PLL0CLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name PLL1CLKSEL - PLL1 clock source select */\r
/*! @{ */\r
-#define SYSCON_PLL1CLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_PLL1CLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_PLL1CLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_PLL1CLKSEL_SEL_SHIFT (0U)\r
/*! SEL - PLL1 clock source select.\r
* 0b000..FRO 12 MHz clock.\r
* 0b001..CLKIN clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_PLL1CLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CLKSEL_SEL_SHIFT)) & SYSCON_PLL1CLKSEL_SEL_MASK)\r
+#define SYSCON_PLL1CLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CLKSEL_SEL_SHIFT)) & SYSCON_PLL1CLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name ADCCLKSEL - ADC clock source select */\r
/*! @{ */\r
-#define SYSCON_ADCCLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_ADCCLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_ADCCLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_ADCCLKSEL_SEL_SHIFT (0U)\r
/*! SEL - ADC clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b010..FRO 96 MHz clock.\r
- * 0b011..No clock.\r
+ * 0b011..Reserved.\r
* 0b100..No clock.\r
* 0b101..No clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_ADCCLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKSEL_SEL_SHIFT)) & SYSCON_ADCCLKSEL_SEL_MASK)\r
+#define SYSCON_ADCCLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKSEL_SEL_SHIFT)) & SYSCON_ADCCLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name USB0CLKSEL - FS USB clock source select */\r
/*! @{ */\r
-#define SYSCON_USB0CLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_USB0CLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_USB0CLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_USB0CLKSEL_SEL_SHIFT (0U)\r
/*! SEL - FS USB clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_USB0CLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKSEL_SEL_SHIFT)) & SYSCON_USB0CLKSEL_SEL_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1CLKSEL - HS USB clock source select - NOT USED */\r
-/*! @{ */\r
-#define SYSCON_USB1CLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_USB1CLKSEL_SEL_SHIFT (0U)\r
-/*! SEL - HS USB clock source select.\r
- * 0b000..Main clock.\r
- * 0b001..PLL0 clock.\r
- * 0b010..CLKIN clock.\r
- * 0b011..No clock.\r
- * 0b100..No clock.\r
- * 0b101..PLL1 clock.\r
- * 0b110..No clock.\r
- * 0b111..No clock.\r
- */\r
-#define SYSCON_USB1CLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1CLKSEL_SEL_SHIFT)) & SYSCON_USB1CLKSEL_SEL_MASK)\r
+#define SYSCON_USB0CLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKSEL_SEL_SHIFT)) & SYSCON_USB0CLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSEL0 - Flexcomm Interface 0 clock source select for Fractional Rate Divider */\r
/*! @{ */\r
-#define SYSCON_FCCLKSEL0_SEL_MASK (0x7U)\r
-#define SYSCON_FCCLKSEL0_SEL_SHIFT (0U)\r
+#define SYSCON_FCCLKSEL0_SEL_MASK (0x7U)\r
+#define SYSCON_FCCLKSEL0_SEL_SHIFT (0U)\r
/*! SEL - Flexcomm Interface 0 clock source select for Fractional Rate Divider.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_FCCLKSEL0_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL0_SEL_SHIFT)) & SYSCON_FCCLKSEL0_SEL_MASK)\r
+#define SYSCON_FCCLKSEL0_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL0_SEL_SHIFT)) & SYSCON_FCCLKSEL0_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSEL1 - Flexcomm Interface 1 clock source select for Fractional Rate Divider */\r
/*! @{ */\r
-#define SYSCON_FCCLKSEL1_SEL_MASK (0x7U)\r
-#define SYSCON_FCCLKSEL1_SEL_SHIFT (0U)\r
+#define SYSCON_FCCLKSEL1_SEL_MASK (0x7U)\r
+#define SYSCON_FCCLKSEL1_SEL_SHIFT (0U)\r
/*! SEL - Flexcomm Interface 1 clock source select for Fractional Rate Divider.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_FCCLKSEL1_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL1_SEL_SHIFT)) & SYSCON_FCCLKSEL1_SEL_MASK)\r
+#define SYSCON_FCCLKSEL1_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL1_SEL_SHIFT)) & SYSCON_FCCLKSEL1_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSEL2 - Flexcomm Interface 2 clock source select for Fractional Rate Divider */\r
/*! @{ */\r
-#define SYSCON_FCCLKSEL2_SEL_MASK (0x7U)\r
-#define SYSCON_FCCLKSEL2_SEL_SHIFT (0U)\r
+#define SYSCON_FCCLKSEL2_SEL_MASK (0x7U)\r
+#define SYSCON_FCCLKSEL2_SEL_SHIFT (0U)\r
/*! SEL - Flexcomm Interface 2 clock source select for Fractional Rate Divider.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_FCCLKSEL2_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL2_SEL_SHIFT)) & SYSCON_FCCLKSEL2_SEL_MASK)\r
+#define SYSCON_FCCLKSEL2_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL2_SEL_SHIFT)) & SYSCON_FCCLKSEL2_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSEL3 - Flexcomm Interface 3 clock source select for Fractional Rate Divider */\r
/*! @{ */\r
-#define SYSCON_FCCLKSEL3_SEL_MASK (0x7U)\r
-#define SYSCON_FCCLKSEL3_SEL_SHIFT (0U)\r
+#define SYSCON_FCCLKSEL3_SEL_MASK (0x7U)\r
+#define SYSCON_FCCLKSEL3_SEL_SHIFT (0U)\r
/*! SEL - Flexcomm Interface 3 clock source select for Fractional Rate Divider.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_FCCLKSEL3_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL3_SEL_SHIFT)) & SYSCON_FCCLKSEL3_SEL_MASK)\r
+#define SYSCON_FCCLKSEL3_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL3_SEL_SHIFT)) & SYSCON_FCCLKSEL3_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSEL4 - Flexcomm Interface 4 clock source select for Fractional Rate Divider */\r
/*! @{ */\r
-#define SYSCON_FCCLKSEL4_SEL_MASK (0x7U)\r
-#define SYSCON_FCCLKSEL4_SEL_SHIFT (0U)\r
+#define SYSCON_FCCLKSEL4_SEL_MASK (0x7U)\r
+#define SYSCON_FCCLKSEL4_SEL_SHIFT (0U)\r
/*! SEL - Flexcomm Interface 4 clock source select for Fractional Rate Divider.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_FCCLKSEL4_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL4_SEL_SHIFT)) & SYSCON_FCCLKSEL4_SEL_MASK)\r
+#define SYSCON_FCCLKSEL4_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL4_SEL_SHIFT)) & SYSCON_FCCLKSEL4_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSEL5 - Flexcomm Interface 5 clock source select for Fractional Rate Divider */\r
/*! @{ */\r
-#define SYSCON_FCCLKSEL5_SEL_MASK (0x7U)\r
-#define SYSCON_FCCLKSEL5_SEL_SHIFT (0U)\r
+#define SYSCON_FCCLKSEL5_SEL_MASK (0x7U)\r
+#define SYSCON_FCCLKSEL5_SEL_SHIFT (0U)\r
/*! SEL - Flexcomm Interface 5 clock source select for Fractional Rate Divider.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_FCCLKSEL5_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL5_SEL_SHIFT)) & SYSCON_FCCLKSEL5_SEL_MASK)\r
+#define SYSCON_FCCLKSEL5_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL5_SEL_SHIFT)) & SYSCON_FCCLKSEL5_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSEL6 - Flexcomm Interface 6 clock source select for Fractional Rate Divider */\r
/*! @{ */\r
-#define SYSCON_FCCLKSEL6_SEL_MASK (0x7U)\r
-#define SYSCON_FCCLKSEL6_SEL_SHIFT (0U)\r
+#define SYSCON_FCCLKSEL6_SEL_MASK (0x7U)\r
+#define SYSCON_FCCLKSEL6_SEL_SHIFT (0U)\r
/*! SEL - Flexcomm Interface 6 clock source select for Fractional Rate Divider.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_FCCLKSEL6_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL6_SEL_SHIFT)) & SYSCON_FCCLKSEL6_SEL_MASK)\r
+#define SYSCON_FCCLKSEL6_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL6_SEL_SHIFT)) & SYSCON_FCCLKSEL6_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSEL7 - Flexcomm Interface 7 clock source select for Fractional Rate Divider */\r
/*! @{ */\r
-#define SYSCON_FCCLKSEL7_SEL_MASK (0x7U)\r
-#define SYSCON_FCCLKSEL7_SEL_SHIFT (0U)\r
+#define SYSCON_FCCLKSEL7_SEL_MASK (0x7U)\r
+#define SYSCON_FCCLKSEL7_SEL_SHIFT (0U)\r
/*! SEL - Flexcomm Interface 7 clock source select for Fractional Rate Divider.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_FCCLKSEL7_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL7_SEL_SHIFT)) & SYSCON_FCCLKSEL7_SEL_MASK)\r
+#define SYSCON_FCCLKSEL7_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSEL7_SEL_SHIFT)) & SYSCON_FCCLKSEL7_SEL_MASK)\r
/*! @} */\r
\r
/*! @name FCCLKSELX - Peripheral reset control register */\r
/*! @{ */\r
-#define SYSCON_FCCLKSELX_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_FCCLKSELX_DATA_SHIFT (0U)\r
-#define SYSCON_FCCLKSELX_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSELX_DATA_SHIFT)) & SYSCON_FCCLKSELX_DATA_MASK)\r
+#define SYSCON_FCCLKSELX_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_FCCLKSELX_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_FCCLKSELX_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FCCLKSELX_DATA_SHIFT)) & SYSCON_FCCLKSELX_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_FCCLKSELX */\r
-#define SYSCON_FCCLKSELX_COUNT (8U)\r
+#define SYSCON_FCCLKSELX_COUNT (8U)\r
\r
/*! @name HSLSPICLKSEL - HS LSPI clock source select */\r
/*! @{ */\r
-#define SYSCON_HSLSPICLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_HSLSPICLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_HSLSPICLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_HSLSPICLKSEL_SEL_SHIFT (0U)\r
/*! SEL - HS LSPI clock source select.\r
* 0b000..Main clock.\r
* 0b001..system PLL divided clock.\r
* 0b110..Oscillator 32 kHz clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_HSLSPICLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_HSLSPICLKSEL_SEL_SHIFT)) & SYSCON_HSLSPICLKSEL_SEL_MASK)\r
+#define SYSCON_HSLSPICLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_HSLSPICLKSEL_SEL_SHIFT)) & SYSCON_HSLSPICLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name MCLKCLKSEL - MCLK clock source select */\r
/*! @{ */\r
-#define SYSCON_MCLKCLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_MCLKCLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_MCLKCLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_MCLKCLKSEL_SEL_SHIFT (0U)\r
/*! SEL - MCLK clock source select.\r
* 0b000..FRO 96 MHz clock.\r
* 0b001..PLL0 clock.\r
- * 0b010..No clock.\r
- * 0b011..No clock.\r
+ * 0b010..Reserved.\r
+ * 0b011..Reserved.\r
* 0b100..No clock.\r
* 0b101..No clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_MCLKCLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKCLKSEL_SEL_SHIFT)) & SYSCON_MCLKCLKSEL_SEL_MASK)\r
+#define SYSCON_MCLKCLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKCLKSEL_SEL_SHIFT)) & SYSCON_MCLKCLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name SCTCLKSEL - SCTimer/PWM clock source select */\r
/*! @{ */\r
-#define SYSCON_SCTCLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_SCTCLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_SCTCLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_SCTCLKSEL_SEL_SHIFT (0U)\r
/*! SEL - SCTimer/PWM clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_SCTCLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKSEL_SEL_SHIFT)) & SYSCON_SCTCLKSEL_SEL_MASK)\r
+#define SYSCON_SCTCLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKSEL_SEL_SHIFT)) & SYSCON_SCTCLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name SDIOCLKSEL - SDIO clock source select */\r
/*! @{ */\r
-#define SYSCON_SDIOCLKSEL_SEL_MASK (0x7U)\r
-#define SYSCON_SDIOCLKSEL_SEL_SHIFT (0U)\r
+#define SYSCON_SDIOCLKSEL_SEL_MASK (0x7U)\r
+#define SYSCON_SDIOCLKSEL_SEL_SHIFT (0U)\r
/*! SEL - SDIO clock source select.\r
* 0b000..Main clock.\r
* 0b001..PLL0 clock.\r
* 0b110..No clock.\r
* 0b111..No clock.\r
*/\r
-#define SYSCON_SDIOCLKSEL_SEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKSEL_SEL_SHIFT)) & SYSCON_SDIOCLKSEL_SEL_MASK)\r
+#define SYSCON_SDIOCLKSEL_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKSEL_SEL_SHIFT)) & SYSCON_SDIOCLKSEL_SEL_MASK)\r
/*! @} */\r
\r
/*! @name SYSTICKCLKDIV0 - System Tick Timer divider for CPU0 */\r
/*! @{ */\r
-#define SYSCON_SYSTICKCLKDIV0_DIV_MASK (0xFFU)\r
-#define SYSCON_SYSTICKCLKDIV0_DIV_SHIFT (0U)\r
-#define SYSCON_SYSTICKCLKDIV0_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV0_DIV_SHIFT)) & SYSCON_SYSTICKCLKDIV0_DIV_MASK)\r
-#define SYSCON_SYSTICKCLKDIV0_RESET_MASK (0x20000000U)\r
-#define SYSCON_SYSTICKCLKDIV0_RESET_SHIFT (29U)\r
+#define SYSCON_SYSTICKCLKDIV0_DIV_MASK (0xFFU)\r
+#define SYSCON_SYSTICKCLKDIV0_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_SYSTICKCLKDIV0_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV0_DIV_SHIFT)) & SYSCON_SYSTICKCLKDIV0_DIV_MASK)\r
+#define SYSCON_SYSTICKCLKDIV0_RESET_MASK (0x20000000U)\r
+#define SYSCON_SYSTICKCLKDIV0_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_SYSTICKCLKDIV0_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV0_RESET_SHIFT)) & SYSCON_SYSTICKCLKDIV0_RESET_MASK)\r
-#define SYSCON_SYSTICKCLKDIV0_HALT_MASK (0x40000000U)\r
-#define SYSCON_SYSTICKCLKDIV0_HALT_SHIFT (30U)\r
+#define SYSCON_SYSTICKCLKDIV0_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV0_RESET_SHIFT)) & SYSCON_SYSTICKCLKDIV0_RESET_MASK)\r
+#define SYSCON_SYSTICKCLKDIV0_HALT_MASK (0x40000000U)\r
+#define SYSCON_SYSTICKCLKDIV0_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_SYSTICKCLKDIV0_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV0_HALT_SHIFT)) & SYSCON_SYSTICKCLKDIV0_HALT_MASK)\r
-#define SYSCON_SYSTICKCLKDIV0_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_SYSTICKCLKDIV0_REQFLAG_SHIFT (31U)\r
+#define SYSCON_SYSTICKCLKDIV0_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV0_HALT_SHIFT)) & SYSCON_SYSTICKCLKDIV0_HALT_MASK)\r
+#define SYSCON_SYSTICKCLKDIV0_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_SYSTICKCLKDIV0_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_SYSTICKCLKDIV0_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV0_REQFLAG_SHIFT)) & SYSCON_SYSTICKCLKDIV0_REQFLAG_MASK)\r
+#define SYSCON_SYSTICKCLKDIV0_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV0_REQFLAG_SHIFT)) & SYSCON_SYSTICKCLKDIV0_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name SYSTICKCLKDIV1 - System Tick Timer divider for CPU1 */\r
/*! @{ */\r
-#define SYSCON_SYSTICKCLKDIV1_DIV_MASK (0xFFU)\r
-#define SYSCON_SYSTICKCLKDIV1_DIV_SHIFT (0U)\r
-#define SYSCON_SYSTICKCLKDIV1_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV1_DIV_SHIFT)) & SYSCON_SYSTICKCLKDIV1_DIV_MASK)\r
-#define SYSCON_SYSTICKCLKDIV1_RESET_MASK (0x20000000U)\r
-#define SYSCON_SYSTICKCLKDIV1_RESET_SHIFT (29U)\r
+#define SYSCON_SYSTICKCLKDIV1_DIV_MASK (0xFFU)\r
+#define SYSCON_SYSTICKCLKDIV1_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_SYSTICKCLKDIV1_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV1_DIV_SHIFT)) & SYSCON_SYSTICKCLKDIV1_DIV_MASK)\r
+#define SYSCON_SYSTICKCLKDIV1_RESET_MASK (0x20000000U)\r
+#define SYSCON_SYSTICKCLKDIV1_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_SYSTICKCLKDIV1_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV1_RESET_SHIFT)) & SYSCON_SYSTICKCLKDIV1_RESET_MASK)\r
-#define SYSCON_SYSTICKCLKDIV1_HALT_MASK (0x40000000U)\r
-#define SYSCON_SYSTICKCLKDIV1_HALT_SHIFT (30U)\r
+#define SYSCON_SYSTICKCLKDIV1_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV1_RESET_SHIFT)) & SYSCON_SYSTICKCLKDIV1_RESET_MASK)\r
+#define SYSCON_SYSTICKCLKDIV1_HALT_MASK (0x40000000U)\r
+#define SYSCON_SYSTICKCLKDIV1_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_SYSTICKCLKDIV1_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV1_HALT_SHIFT)) & SYSCON_SYSTICKCLKDIV1_HALT_MASK)\r
-#define SYSCON_SYSTICKCLKDIV1_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_SYSTICKCLKDIV1_REQFLAG_SHIFT (31U)\r
+#define SYSCON_SYSTICKCLKDIV1_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV1_HALT_SHIFT)) & SYSCON_SYSTICKCLKDIV1_HALT_MASK)\r
+#define SYSCON_SYSTICKCLKDIV1_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_SYSTICKCLKDIV1_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_SYSTICKCLKDIV1_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV1_REQFLAG_SHIFT)) & SYSCON_SYSTICKCLKDIV1_REQFLAG_MASK)\r
+#define SYSCON_SYSTICKCLKDIV1_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SYSTICKCLKDIV1_REQFLAG_SHIFT)) & SYSCON_SYSTICKCLKDIV1_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name TRACECLKDIV - TRACE clock divider */\r
/*! @{ */\r
-#define SYSCON_TRACECLKDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_TRACECLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_TRACECLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKDIV_DIV_SHIFT)) & SYSCON_TRACECLKDIV_DIV_MASK)\r
-#define SYSCON_TRACECLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_TRACECLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_TRACECLKDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_TRACECLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_TRACECLKDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKDIV_DIV_SHIFT)) & SYSCON_TRACECLKDIV_DIV_MASK)\r
+#define SYSCON_TRACECLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_TRACECLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_TRACECLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKDIV_RESET_SHIFT)) & SYSCON_TRACECLKDIV_RESET_MASK)\r
-#define SYSCON_TRACECLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_TRACECLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_TRACECLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKDIV_RESET_SHIFT)) & SYSCON_TRACECLKDIV_RESET_MASK)\r
+#define SYSCON_TRACECLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_TRACECLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_TRACECLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKDIV_HALT_SHIFT)) & SYSCON_TRACECLKDIV_HALT_MASK)\r
-#define SYSCON_TRACECLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_TRACECLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_TRACECLKDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKDIV_HALT_SHIFT)) & SYSCON_TRACECLKDIV_HALT_MASK)\r
+#define SYSCON_TRACECLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_TRACECLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_TRACECLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKDIV_REQFLAG_SHIFT)) & SYSCON_TRACECLKDIV_REQFLAG_MASK)\r
+#define SYSCON_TRACECLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_TRACECLKDIV_REQFLAG_SHIFT)) & SYSCON_TRACECLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRG0CTRL - Fractional rate divider for flexcomm 0 */\r
/*! @{ */\r
-#define SYSCON_FLEXFRG0CTRL_DIV_MASK (0xFFU)\r
-#define SYSCON_FLEXFRG0CTRL_DIV_SHIFT (0U)\r
-#define SYSCON_FLEXFRG0CTRL_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG0CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG0CTRL_DIV_MASK)\r
-#define SYSCON_FLEXFRG0CTRL_MULT_MASK (0xFF00U)\r
-#define SYSCON_FLEXFRG0CTRL_MULT_SHIFT (8U)\r
-#define SYSCON_FLEXFRG0CTRL_MULT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG0CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG0CTRL_MULT_MASK)\r
+#define SYSCON_FLEXFRG0CTRL_DIV_MASK (0xFFU)\r
+#define SYSCON_FLEXFRG0CTRL_DIV_SHIFT (0U)\r
+/*! DIV - Denominator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG0CTRL_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG0CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG0CTRL_DIV_MASK)\r
+#define SYSCON_FLEXFRG0CTRL_MULT_MASK (0xFF00U)\r
+#define SYSCON_FLEXFRG0CTRL_MULT_SHIFT (8U)\r
+/*! MULT - Numerator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG0CTRL_MULT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG0CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG0CTRL_MULT_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRG1CTRL - Fractional rate divider for flexcomm 1 */\r
/*! @{ */\r
-#define SYSCON_FLEXFRG1CTRL_DIV_MASK (0xFFU)\r
-#define SYSCON_FLEXFRG1CTRL_DIV_SHIFT (0U)\r
-#define SYSCON_FLEXFRG1CTRL_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG1CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG1CTRL_DIV_MASK)\r
-#define SYSCON_FLEXFRG1CTRL_MULT_MASK (0xFF00U)\r
-#define SYSCON_FLEXFRG1CTRL_MULT_SHIFT (8U)\r
-#define SYSCON_FLEXFRG1CTRL_MULT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG1CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG1CTRL_MULT_MASK)\r
+#define SYSCON_FLEXFRG1CTRL_DIV_MASK (0xFFU)\r
+#define SYSCON_FLEXFRG1CTRL_DIV_SHIFT (0U)\r
+/*! DIV - Denominator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG1CTRL_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG1CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG1CTRL_DIV_MASK)\r
+#define SYSCON_FLEXFRG1CTRL_MULT_MASK (0xFF00U)\r
+#define SYSCON_FLEXFRG1CTRL_MULT_SHIFT (8U)\r
+/*! MULT - Numerator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG1CTRL_MULT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG1CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG1CTRL_MULT_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRG2CTRL - Fractional rate divider for flexcomm 2 */\r
/*! @{ */\r
-#define SYSCON_FLEXFRG2CTRL_DIV_MASK (0xFFU)\r
-#define SYSCON_FLEXFRG2CTRL_DIV_SHIFT (0U)\r
-#define SYSCON_FLEXFRG2CTRL_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG2CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG2CTRL_DIV_MASK)\r
-#define SYSCON_FLEXFRG2CTRL_MULT_MASK (0xFF00U)\r
-#define SYSCON_FLEXFRG2CTRL_MULT_SHIFT (8U)\r
-#define SYSCON_FLEXFRG2CTRL_MULT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG2CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG2CTRL_MULT_MASK)\r
+#define SYSCON_FLEXFRG2CTRL_DIV_MASK (0xFFU)\r
+#define SYSCON_FLEXFRG2CTRL_DIV_SHIFT (0U)\r
+/*! DIV - Denominator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG2CTRL_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG2CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG2CTRL_DIV_MASK)\r
+#define SYSCON_FLEXFRG2CTRL_MULT_MASK (0xFF00U)\r
+#define SYSCON_FLEXFRG2CTRL_MULT_SHIFT (8U)\r
+/*! MULT - Numerator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG2CTRL_MULT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG2CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG2CTRL_MULT_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRG3CTRL - Fractional rate divider for flexcomm 3 */\r
/*! @{ */\r
-#define SYSCON_FLEXFRG3CTRL_DIV_MASK (0xFFU)\r
-#define SYSCON_FLEXFRG3CTRL_DIV_SHIFT (0U)\r
-#define SYSCON_FLEXFRG3CTRL_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG3CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG3CTRL_DIV_MASK)\r
-#define SYSCON_FLEXFRG3CTRL_MULT_MASK (0xFF00U)\r
-#define SYSCON_FLEXFRG3CTRL_MULT_SHIFT (8U)\r
-#define SYSCON_FLEXFRG3CTRL_MULT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG3CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG3CTRL_MULT_MASK)\r
+#define SYSCON_FLEXFRG3CTRL_DIV_MASK (0xFFU)\r
+#define SYSCON_FLEXFRG3CTRL_DIV_SHIFT (0U)\r
+/*! DIV - Denominator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG3CTRL_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG3CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG3CTRL_DIV_MASK)\r
+#define SYSCON_FLEXFRG3CTRL_MULT_MASK (0xFF00U)\r
+#define SYSCON_FLEXFRG3CTRL_MULT_SHIFT (8U)\r
+/*! MULT - Numerator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG3CTRL_MULT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG3CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG3CTRL_MULT_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRG4CTRL - Fractional rate divider for flexcomm 4 */\r
/*! @{ */\r
-#define SYSCON_FLEXFRG4CTRL_DIV_MASK (0xFFU)\r
-#define SYSCON_FLEXFRG4CTRL_DIV_SHIFT (0U)\r
-#define SYSCON_FLEXFRG4CTRL_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG4CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG4CTRL_DIV_MASK)\r
-#define SYSCON_FLEXFRG4CTRL_MULT_MASK (0xFF00U)\r
-#define SYSCON_FLEXFRG4CTRL_MULT_SHIFT (8U)\r
-#define SYSCON_FLEXFRG4CTRL_MULT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG4CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG4CTRL_MULT_MASK)\r
+#define SYSCON_FLEXFRG4CTRL_DIV_MASK (0xFFU)\r
+#define SYSCON_FLEXFRG4CTRL_DIV_SHIFT (0U)\r
+/*! DIV - Denominator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG4CTRL_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG4CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG4CTRL_DIV_MASK)\r
+#define SYSCON_FLEXFRG4CTRL_MULT_MASK (0xFF00U)\r
+#define SYSCON_FLEXFRG4CTRL_MULT_SHIFT (8U)\r
+/*! MULT - Numerator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG4CTRL_MULT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG4CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG4CTRL_MULT_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRG5CTRL - Fractional rate divider for flexcomm 5 */\r
/*! @{ */\r
-#define SYSCON_FLEXFRG5CTRL_DIV_MASK (0xFFU)\r
-#define SYSCON_FLEXFRG5CTRL_DIV_SHIFT (0U)\r
-#define SYSCON_FLEXFRG5CTRL_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG5CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG5CTRL_DIV_MASK)\r
-#define SYSCON_FLEXFRG5CTRL_MULT_MASK (0xFF00U)\r
-#define SYSCON_FLEXFRG5CTRL_MULT_SHIFT (8U)\r
-#define SYSCON_FLEXFRG5CTRL_MULT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG5CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG5CTRL_MULT_MASK)\r
+#define SYSCON_FLEXFRG5CTRL_DIV_MASK (0xFFU)\r
+#define SYSCON_FLEXFRG5CTRL_DIV_SHIFT (0U)\r
+/*! DIV - Denominator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG5CTRL_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG5CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG5CTRL_DIV_MASK)\r
+#define SYSCON_FLEXFRG5CTRL_MULT_MASK (0xFF00U)\r
+#define SYSCON_FLEXFRG5CTRL_MULT_SHIFT (8U)\r
+/*! MULT - Numerator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG5CTRL_MULT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG5CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG5CTRL_MULT_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRG6CTRL - Fractional rate divider for flexcomm 6 */\r
/*! @{ */\r
-#define SYSCON_FLEXFRG6CTRL_DIV_MASK (0xFFU)\r
-#define SYSCON_FLEXFRG6CTRL_DIV_SHIFT (0U)\r
-#define SYSCON_FLEXFRG6CTRL_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG6CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG6CTRL_DIV_MASK)\r
-#define SYSCON_FLEXFRG6CTRL_MULT_MASK (0xFF00U)\r
-#define SYSCON_FLEXFRG6CTRL_MULT_SHIFT (8U)\r
-#define SYSCON_FLEXFRG6CTRL_MULT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG6CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG6CTRL_MULT_MASK)\r
+#define SYSCON_FLEXFRG6CTRL_DIV_MASK (0xFFU)\r
+#define SYSCON_FLEXFRG6CTRL_DIV_SHIFT (0U)\r
+/*! DIV - Denominator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG6CTRL_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG6CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG6CTRL_DIV_MASK)\r
+#define SYSCON_FLEXFRG6CTRL_MULT_MASK (0xFF00U)\r
+#define SYSCON_FLEXFRG6CTRL_MULT_SHIFT (8U)\r
+/*! MULT - Numerator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG6CTRL_MULT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG6CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG6CTRL_MULT_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRG7CTRL - Fractional rate divider for flexcomm 7 */\r
/*! @{ */\r
-#define SYSCON_FLEXFRG7CTRL_DIV_MASK (0xFFU)\r
-#define SYSCON_FLEXFRG7CTRL_DIV_SHIFT (0U)\r
-#define SYSCON_FLEXFRG7CTRL_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG7CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG7CTRL_DIV_MASK)\r
-#define SYSCON_FLEXFRG7CTRL_MULT_MASK (0xFF00U)\r
-#define SYSCON_FLEXFRG7CTRL_MULT_SHIFT (8U)\r
-#define SYSCON_FLEXFRG7CTRL_MULT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG7CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG7CTRL_MULT_MASK)\r
+#define SYSCON_FLEXFRG7CTRL_DIV_MASK (0xFFU)\r
+#define SYSCON_FLEXFRG7CTRL_DIV_SHIFT (0U)\r
+/*! DIV - Denominator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG7CTRL_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG7CTRL_DIV_SHIFT)) & SYSCON_FLEXFRG7CTRL_DIV_MASK)\r
+#define SYSCON_FLEXFRG7CTRL_MULT_MASK (0xFF00U)\r
+#define SYSCON_FLEXFRG7CTRL_MULT_SHIFT (8U)\r
+/*! MULT - Numerator of the fractional rate divider.\r
+ */\r
+#define SYSCON_FLEXFRG7CTRL_MULT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRG7CTRL_MULT_SHIFT)) & SYSCON_FLEXFRG7CTRL_MULT_MASK)\r
/*! @} */\r
\r
/*! @name FLEXFRGXCTRL - Peripheral reset control register */\r
/*! @{ */\r
-#define SYSCON_FLEXFRGXCTRL_DATA_MASK (0xFFFFFFFFU)\r
-#define SYSCON_FLEXFRGXCTRL_DATA_SHIFT (0U)\r
-#define SYSCON_FLEXFRGXCTRL_DATA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRGXCTRL_DATA_SHIFT)) & SYSCON_FLEXFRGXCTRL_DATA_MASK)\r
+#define SYSCON_FLEXFRGXCTRL_DATA_MASK (0xFFFFFFFFU)\r
+#define SYSCON_FLEXFRGXCTRL_DATA_SHIFT (0U)\r
+/*! DATA - Data array value\r
+ */\r
+#define SYSCON_FLEXFRGXCTRL_DATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FLEXFRGXCTRL_DATA_SHIFT)) & SYSCON_FLEXFRGXCTRL_DATA_MASK)\r
/*! @} */\r
\r
/* The count of SYSCON_FLEXFRGXCTRL */\r
-#define SYSCON_FLEXFRGXCTRL_COUNT (8U)\r
+#define SYSCON_FLEXFRGXCTRL_COUNT (8U)\r
\r
/*! @name AHBCLKDIV - System clock divider */\r
/*! @{ */\r
-#define SYSCON_AHBCLKDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_AHBCLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_AHBCLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKDIV_DIV_SHIFT)) & SYSCON_AHBCLKDIV_DIV_MASK)\r
-#define SYSCON_AHBCLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_AHBCLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_AHBCLKDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_AHBCLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_AHBCLKDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKDIV_DIV_SHIFT)) & SYSCON_AHBCLKDIV_DIV_MASK)\r
+#define SYSCON_AHBCLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_AHBCLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_AHBCLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKDIV_RESET_SHIFT)) & SYSCON_AHBCLKDIV_RESET_MASK)\r
-#define SYSCON_AHBCLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_AHBCLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_AHBCLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKDIV_RESET_SHIFT)) & SYSCON_AHBCLKDIV_RESET_MASK)\r
+#define SYSCON_AHBCLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_AHBCLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_AHBCLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKDIV_HALT_SHIFT)) & SYSCON_AHBCLKDIV_HALT_MASK)\r
-#define SYSCON_AHBCLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_AHBCLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_AHBCLKDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKDIV_HALT_SHIFT)) & SYSCON_AHBCLKDIV_HALT_MASK)\r
+#define SYSCON_AHBCLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_AHBCLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_AHBCLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKDIV_REQFLAG_SHIFT)) & SYSCON_AHBCLKDIV_REQFLAG_MASK)\r
+#define SYSCON_AHBCLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AHBCLKDIV_REQFLAG_SHIFT)) & SYSCON_AHBCLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name CLKOUTDIV - CLKOUT clock divider */\r
/*! @{ */\r
-#define SYSCON_CLKOUTDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_CLKOUTDIV_DIV_SHIFT (0U)\r
-#define SYSCON_CLKOUTDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTDIV_DIV_SHIFT)) & SYSCON_CLKOUTDIV_DIV_MASK)\r
-#define SYSCON_CLKOUTDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_CLKOUTDIV_RESET_SHIFT (29U)\r
+#define SYSCON_CLKOUTDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_CLKOUTDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_CLKOUTDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTDIV_DIV_SHIFT)) & SYSCON_CLKOUTDIV_DIV_MASK)\r
+#define SYSCON_CLKOUTDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_CLKOUTDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_CLKOUTDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTDIV_RESET_SHIFT)) & SYSCON_CLKOUTDIV_RESET_MASK)\r
-#define SYSCON_CLKOUTDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_CLKOUTDIV_HALT_SHIFT (30U)\r
+#define SYSCON_CLKOUTDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTDIV_RESET_SHIFT)) & SYSCON_CLKOUTDIV_RESET_MASK)\r
+#define SYSCON_CLKOUTDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_CLKOUTDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_CLKOUTDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTDIV_HALT_SHIFT)) & SYSCON_CLKOUTDIV_HALT_MASK)\r
-#define SYSCON_CLKOUTDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_CLKOUTDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_CLKOUTDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTDIV_HALT_SHIFT)) & SYSCON_CLKOUTDIV_HALT_MASK)\r
+#define SYSCON_CLKOUTDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_CLKOUTDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_CLKOUTDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTDIV_REQFLAG_SHIFT)) & SYSCON_CLKOUTDIV_REQFLAG_MASK)\r
+#define SYSCON_CLKOUTDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLKOUTDIV_REQFLAG_SHIFT)) & SYSCON_CLKOUTDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name FROHFDIV - FRO_HF (96MHz) clock divider */\r
/*! @{ */\r
-#define SYSCON_FROHFDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_FROHFDIV_DIV_SHIFT (0U)\r
-#define SYSCON_FROHFDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FROHFDIV_DIV_SHIFT)) & SYSCON_FROHFDIV_DIV_MASK)\r
-#define SYSCON_FROHFDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_FROHFDIV_RESET_SHIFT (29U)\r
+#define SYSCON_FROHFDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_FROHFDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_FROHFDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FROHFDIV_DIV_SHIFT)) & SYSCON_FROHFDIV_DIV_MASK)\r
+#define SYSCON_FROHFDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_FROHFDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_FROHFDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FROHFDIV_RESET_SHIFT)) & SYSCON_FROHFDIV_RESET_MASK)\r
-#define SYSCON_FROHFDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_FROHFDIV_HALT_SHIFT (30U)\r
+#define SYSCON_FROHFDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FROHFDIV_RESET_SHIFT)) & SYSCON_FROHFDIV_RESET_MASK)\r
+#define SYSCON_FROHFDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_FROHFDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_FROHFDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FROHFDIV_HALT_SHIFT)) & SYSCON_FROHFDIV_HALT_MASK)\r
-#define SYSCON_FROHFDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_FROHFDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_FROHFDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FROHFDIV_HALT_SHIFT)) & SYSCON_FROHFDIV_HALT_MASK)\r
+#define SYSCON_FROHFDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_FROHFDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_FROHFDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FROHFDIV_REQFLAG_SHIFT)) & SYSCON_FROHFDIV_REQFLAG_MASK)\r
+#define SYSCON_FROHFDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FROHFDIV_REQFLAG_SHIFT)) & SYSCON_FROHFDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name WDTCLKDIV - WDT clock divider */\r
/*! @{ */\r
-#define SYSCON_WDTCLKDIV_DIV_MASK (0x3FU)\r
-#define SYSCON_WDTCLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_WDTCLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_WDTCLKDIV_DIV_SHIFT)) & SYSCON_WDTCLKDIV_DIV_MASK)\r
-#define SYSCON_WDTCLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_WDTCLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_WDTCLKDIV_DIV_MASK (0x3FU)\r
+#define SYSCON_WDTCLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_WDTCLKDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_WDTCLKDIV_DIV_SHIFT)) & SYSCON_WDTCLKDIV_DIV_MASK)\r
+#define SYSCON_WDTCLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_WDTCLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_WDTCLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_WDTCLKDIV_RESET_SHIFT)) & SYSCON_WDTCLKDIV_RESET_MASK)\r
-#define SYSCON_WDTCLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_WDTCLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_WDTCLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_WDTCLKDIV_RESET_SHIFT)) & SYSCON_WDTCLKDIV_RESET_MASK)\r
+#define SYSCON_WDTCLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_WDTCLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_WDTCLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_WDTCLKDIV_HALT_SHIFT)) & SYSCON_WDTCLKDIV_HALT_MASK)\r
-#define SYSCON_WDTCLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_WDTCLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_WDTCLKDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_WDTCLKDIV_HALT_SHIFT)) & SYSCON_WDTCLKDIV_HALT_MASK)\r
+#define SYSCON_WDTCLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_WDTCLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_WDTCLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_WDTCLKDIV_REQFLAG_SHIFT)) & SYSCON_WDTCLKDIV_REQFLAG_MASK)\r
+#define SYSCON_WDTCLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_WDTCLKDIV_REQFLAG_SHIFT)) & SYSCON_WDTCLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name ADCCLKDIV - ADC clock divider */\r
/*! @{ */\r
-#define SYSCON_ADCCLKDIV_DIV_MASK (0x7U)\r
-#define SYSCON_ADCCLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_ADCCLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKDIV_DIV_SHIFT)) & SYSCON_ADCCLKDIV_DIV_MASK)\r
-#define SYSCON_ADCCLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_ADCCLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_ADCCLKDIV_DIV_MASK (0x7U)\r
+#define SYSCON_ADCCLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_ADCCLKDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKDIV_DIV_SHIFT)) & SYSCON_ADCCLKDIV_DIV_MASK)\r
+#define SYSCON_ADCCLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_ADCCLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_ADCCLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKDIV_RESET_SHIFT)) & SYSCON_ADCCLKDIV_RESET_MASK)\r
-#define SYSCON_ADCCLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_ADCCLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_ADCCLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKDIV_RESET_SHIFT)) & SYSCON_ADCCLKDIV_RESET_MASK)\r
+#define SYSCON_ADCCLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_ADCCLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_ADCCLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKDIV_HALT_SHIFT)) & SYSCON_ADCCLKDIV_HALT_MASK)\r
-#define SYSCON_ADCCLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_ADCCLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_ADCCLKDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKDIV_HALT_SHIFT)) & SYSCON_ADCCLKDIV_HALT_MASK)\r
+#define SYSCON_ADCCLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_ADCCLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_ADCCLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKDIV_REQFLAG_SHIFT)) & SYSCON_ADCCLKDIV_REQFLAG_MASK)\r
+#define SYSCON_ADCCLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_ADCCLKDIV_REQFLAG_SHIFT)) & SYSCON_ADCCLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name USB0CLKDIV - USB0 Clock divider */\r
/*! @{ */\r
-#define SYSCON_USB0CLKDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_USB0CLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_USB0CLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKDIV_DIV_SHIFT)) & SYSCON_USB0CLKDIV_DIV_MASK)\r
-#define SYSCON_USB0CLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_USB0CLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_USB0CLKDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_USB0CLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_USB0CLKDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKDIV_DIV_SHIFT)) & SYSCON_USB0CLKDIV_DIV_MASK)\r
+#define SYSCON_USB0CLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_USB0CLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_USB0CLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKDIV_RESET_SHIFT)) & SYSCON_USB0CLKDIV_RESET_MASK)\r
-#define SYSCON_USB0CLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_USB0CLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_USB0CLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKDIV_RESET_SHIFT)) & SYSCON_USB0CLKDIV_RESET_MASK)\r
+#define SYSCON_USB0CLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_USB0CLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_USB0CLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKDIV_HALT_SHIFT)) & SYSCON_USB0CLKDIV_HALT_MASK)\r
-#define SYSCON_USB0CLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_USB0CLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_USB0CLKDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKDIV_HALT_SHIFT)) & SYSCON_USB0CLKDIV_HALT_MASK)\r
+#define SYSCON_USB0CLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_USB0CLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_USB0CLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKDIV_REQFLAG_SHIFT)) & SYSCON_USB0CLKDIV_REQFLAG_MASK)\r
+#define SYSCON_USB0CLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKDIV_REQFLAG_SHIFT)) & SYSCON_USB0CLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name MCLKDIV - I2S MCLK clock divider */\r
/*! @{ */\r
-#define SYSCON_MCLKDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_MCLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_MCLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKDIV_DIV_SHIFT)) & SYSCON_MCLKDIV_DIV_MASK)\r
-#define SYSCON_MCLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_MCLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_MCLKDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_MCLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_MCLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKDIV_DIV_SHIFT)) & SYSCON_MCLKDIV_DIV_MASK)\r
+#define SYSCON_MCLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_MCLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_MCLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKDIV_RESET_SHIFT)) & SYSCON_MCLKDIV_RESET_MASK)\r
-#define SYSCON_MCLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_MCLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_MCLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKDIV_RESET_SHIFT)) & SYSCON_MCLKDIV_RESET_MASK)\r
+#define SYSCON_MCLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_MCLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_MCLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKDIV_HALT_SHIFT)) & SYSCON_MCLKDIV_HALT_MASK)\r
-#define SYSCON_MCLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_MCLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_MCLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKDIV_HALT_SHIFT)) & SYSCON_MCLKDIV_HALT_MASK)\r
+#define SYSCON_MCLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_MCLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_MCLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKDIV_REQFLAG_SHIFT)) & SYSCON_MCLKDIV_REQFLAG_MASK)\r
+#define SYSCON_MCLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKDIV_REQFLAG_SHIFT)) & SYSCON_MCLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name SCTCLKDIV - SCT/PWM clock divider */\r
/*! @{ */\r
-#define SYSCON_SCTCLKDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_SCTCLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_SCTCLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKDIV_DIV_SHIFT)) & SYSCON_SCTCLKDIV_DIV_MASK)\r
-#define SYSCON_SCTCLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_SCTCLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_SCTCLKDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_SCTCLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_SCTCLKDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKDIV_DIV_SHIFT)) & SYSCON_SCTCLKDIV_DIV_MASK)\r
+#define SYSCON_SCTCLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_SCTCLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_SCTCLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKDIV_RESET_SHIFT)) & SYSCON_SCTCLKDIV_RESET_MASK)\r
-#define SYSCON_SCTCLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_SCTCLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_SCTCLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKDIV_RESET_SHIFT)) & SYSCON_SCTCLKDIV_RESET_MASK)\r
+#define SYSCON_SCTCLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_SCTCLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_SCTCLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKDIV_HALT_SHIFT)) & SYSCON_SCTCLKDIV_HALT_MASK)\r
-#define SYSCON_SCTCLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_SCTCLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_SCTCLKDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKDIV_HALT_SHIFT)) & SYSCON_SCTCLKDIV_HALT_MASK)\r
+#define SYSCON_SCTCLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_SCTCLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_SCTCLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKDIV_REQFLAG_SHIFT)) & SYSCON_SCTCLKDIV_REQFLAG_MASK)\r
+#define SYSCON_SCTCLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SCTCLKDIV_REQFLAG_SHIFT)) & SYSCON_SCTCLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name SDIOCLKDIV - SDIO clock divider */\r
/*! @{ */\r
-#define SYSCON_SDIOCLKDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_SDIOCLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_SDIOCLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKDIV_DIV_SHIFT)) & SYSCON_SDIOCLKDIV_DIV_MASK)\r
-#define SYSCON_SDIOCLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_SDIOCLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_SDIOCLKDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_SDIOCLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_SDIOCLKDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKDIV_DIV_SHIFT)) & SYSCON_SDIOCLKDIV_DIV_MASK)\r
+#define SYSCON_SDIOCLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_SDIOCLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_SDIOCLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKDIV_RESET_SHIFT)) & SYSCON_SDIOCLKDIV_RESET_MASK)\r
-#define SYSCON_SDIOCLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_SDIOCLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_SDIOCLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKDIV_RESET_SHIFT)) & SYSCON_SDIOCLKDIV_RESET_MASK)\r
+#define SYSCON_SDIOCLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_SDIOCLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_SDIOCLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKDIV_HALT_SHIFT)) & SYSCON_SDIOCLKDIV_HALT_MASK)\r
-#define SYSCON_SDIOCLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_SDIOCLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_SDIOCLKDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKDIV_HALT_SHIFT)) & SYSCON_SDIOCLKDIV_HALT_MASK)\r
+#define SYSCON_SDIOCLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_SDIOCLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_SDIOCLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKDIV_REQFLAG_SHIFT)) & SYSCON_SDIOCLKDIV_REQFLAG_MASK)\r
+#define SYSCON_SDIOCLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKDIV_REQFLAG_SHIFT)) & SYSCON_SDIOCLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name PLL0CLKDIV - PLL0 clock divider */\r
/*! @{ */\r
-#define SYSCON_PLL0CLKDIV_DIV_MASK (0xFFU)\r
-#define SYSCON_PLL0CLKDIV_DIV_SHIFT (0U)\r
-#define SYSCON_PLL0CLKDIV_DIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKDIV_DIV_SHIFT)) & SYSCON_PLL0CLKDIV_DIV_MASK)\r
-#define SYSCON_PLL0CLKDIV_RESET_MASK (0x20000000U)\r
-#define SYSCON_PLL0CLKDIV_RESET_SHIFT (29U)\r
+#define SYSCON_PLL0CLKDIV_DIV_MASK (0xFFU)\r
+#define SYSCON_PLL0CLKDIV_DIV_SHIFT (0U)\r
+/*! DIV - Clock divider value.\r
+ */\r
+#define SYSCON_PLL0CLKDIV_DIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKDIV_DIV_SHIFT)) & SYSCON_PLL0CLKDIV_DIV_MASK)\r
+#define SYSCON_PLL0CLKDIV_RESET_MASK (0x20000000U)\r
+#define SYSCON_PLL0CLKDIV_RESET_SHIFT (29U)\r
/*! RESET - Resets the divider counter.\r
* 0b1..Divider is reset.\r
* 0b0..Divider is not reset.\r
*/\r
-#define SYSCON_PLL0CLKDIV_RESET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKDIV_RESET_SHIFT)) & SYSCON_PLL0CLKDIV_RESET_MASK)\r
-#define SYSCON_PLL0CLKDIV_HALT_MASK (0x40000000U)\r
-#define SYSCON_PLL0CLKDIV_HALT_SHIFT (30U)\r
+#define SYSCON_PLL0CLKDIV_RESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKDIV_RESET_SHIFT)) & SYSCON_PLL0CLKDIV_RESET_MASK)\r
+#define SYSCON_PLL0CLKDIV_HALT_MASK (0x40000000U)\r
+#define SYSCON_PLL0CLKDIV_HALT_SHIFT (30U)\r
/*! HALT - Halts the divider counter.\r
* 0b1..Divider clock is stoped.\r
* 0b0..Divider clock is running.\r
*/\r
-#define SYSCON_PLL0CLKDIV_HALT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKDIV_HALT_SHIFT)) & SYSCON_PLL0CLKDIV_HALT_MASK)\r
-#define SYSCON_PLL0CLKDIV_REQFLAG_MASK (0x80000000U)\r
-#define SYSCON_PLL0CLKDIV_REQFLAG_SHIFT (31U)\r
+#define SYSCON_PLL0CLKDIV_HALT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKDIV_HALT_SHIFT)) & SYSCON_PLL0CLKDIV_HALT_MASK)\r
+#define SYSCON_PLL0CLKDIV_REQFLAG_MASK (0x80000000U)\r
+#define SYSCON_PLL0CLKDIV_REQFLAG_SHIFT (31U)\r
/*! REQFLAG - Divider status flag.\r
* 0b1..Clock frequency is not stable.\r
* 0b0..Divider clock is stable.\r
*/\r
-#define SYSCON_PLL0CLKDIV_REQFLAG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKDIV_REQFLAG_SHIFT)) & SYSCON_PLL0CLKDIV_REQFLAG_MASK)\r
+#define SYSCON_PLL0CLKDIV_REQFLAG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CLKDIV_REQFLAG_SHIFT)) & SYSCON_PLL0CLKDIV_REQFLAG_MASK)\r
/*! @} */\r
\r
/*! @name CLOCKGENUPDATELOCKOUT - Control clock configuration registers access (like xxxDIV, xxxSEL) */\r
* 0b00000000000000000000000000000001..update all clock configuration.\r
* 0b00000000000000000000000000000000..all hardware clock configruration are freeze.\r
*/\r
-#define SYSCON_CLOCKGENUPDATELOCKOUT_CLOCKGENUPDATELOCKOUT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCKGENUPDATELOCKOUT_CLOCKGENUPDATELOCKOUT_SHIFT)) & SYSCON_CLOCKGENUPDATELOCKOUT_CLOCKGENUPDATELOCKOUT_MASK)\r
-/*! @} */\r
-\r
-/*! @name FMCCR - FMC configuration register - INTERNAL USE ONLY */\r
-/*! @{ */\r
-#define SYSCON_FMCCR_FETCHCTL_MASK (0x3U)\r
-#define SYSCON_FMCCR_FETCHCTL_SHIFT (0U)\r
-/*! FETCHCTL - Fetch control\r
- * 0b00..No buffering (bypass always used) for Fetch cycles\r
- * 0b01..One buffer is used for all Fetch cycles\r
- * 0b10..All buffers can be used for Fetch cycles\r
- */\r
-#define SYSCON_FMCCR_FETCHCTL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_FETCHCTL_SHIFT)) & SYSCON_FMCCR_FETCHCTL_MASK)\r
-#define SYSCON_FMCCR_DATACTL_MASK (0xCU)\r
-#define SYSCON_FMCCR_DATACTL_SHIFT (2U)\r
-/*! DATACTL - Data control\r
- * 0b00..No buffering (bypass always used) for Data cycles\r
- * 0b01..One buffer is used for all Data cycles\r
- * 0b10..All buffers can be used for Data cycles\r
- */\r
-#define SYSCON_FMCCR_DATACTL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_DATACTL_SHIFT)) & SYSCON_FMCCR_DATACTL_MASK)\r
-#define SYSCON_FMCCR_ACCEL_MASK (0x10U)\r
-#define SYSCON_FMCCR_ACCEL_SHIFT (4U)\r
-#define SYSCON_FMCCR_ACCEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_ACCEL_SHIFT)) & SYSCON_FMCCR_ACCEL_MASK)\r
-#define SYSCON_FMCCR_PREFEN_MASK (0x20U)\r
-#define SYSCON_FMCCR_PREFEN_SHIFT (5U)\r
-#define SYSCON_FMCCR_PREFEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_PREFEN_SHIFT)) & SYSCON_FMCCR_PREFEN_MASK)\r
-#define SYSCON_FMCCR_PREFOVR_MASK (0x40U)\r
-#define SYSCON_FMCCR_PREFOVR_SHIFT (6U)\r
-#define SYSCON_FMCCR_PREFOVR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_PREFOVR_SHIFT)) & SYSCON_FMCCR_PREFOVR_MASK)\r
-#define SYSCON_FMCCR_PREFCRI_MASK (0x700U)\r
-#define SYSCON_FMCCR_PREFCRI_SHIFT (8U)\r
-#define SYSCON_FMCCR_PREFCRI(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_PREFCRI_SHIFT)) & SYSCON_FMCCR_PREFCRI_MASK)\r
-#define SYSCON_FMCCR_FMCTIM_MASK (0x1F000U)\r
-#define SYSCON_FMCCR_FMCTIM_SHIFT (12U)\r
-#define SYSCON_FMCCR_FMCTIM(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_FMCTIM_SHIFT)) & SYSCON_FMCCR_FMCTIM_MASK)\r
-#define SYSCON_FMCCR_PFISLRU_MASK (0x20000U)\r
-#define SYSCON_FMCCR_PFISLRU_SHIFT (17U)\r
-#define SYSCON_FMCCR_PFISLRU(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_PFISLRU_SHIFT)) & SYSCON_FMCCR_PFISLRU_MASK)\r
-#define SYSCON_FMCCR_PFADAP_MASK (0x40000U)\r
-#define SYSCON_FMCCR_PFADAP_SHIFT (18U)\r
-#define SYSCON_FMCCR_PFADAP(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_PFADAP_SHIFT)) & SYSCON_FMCCR_PFADAP_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB0CLKCTRL - USB0 clock control */\r
-/*! @{ */\r
-#define SYSCON_USB0CLKCTRL_AP_FS_DEV_CLK_MASK (0x1U)\r
-#define SYSCON_USB0CLKCTRL_AP_FS_DEV_CLK_SHIFT (0U)\r
-/*! AP_FS_DEV_CLK - USB0 Device USB0_NEEDCLK signal control:.\r
+#define SYSCON_CLOCKGENUPDATELOCKOUT_CLOCKGENUPDATELOCKOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCKGENUPDATELOCKOUT_CLOCKGENUPDATELOCKOUT_SHIFT)) & \\r
+ SYSCON_CLOCKGENUPDATELOCKOUT_CLOCKGENUPDATELOCKOUT_MASK)\r
+/*! @} */\r
+\r
+/*! @name FMCCR - FMC configuration register */\r
+/*! @{ */\r
+#define SYSCON_FMCCR_FLASHTIM_MASK (0xF000U)\r
+#define SYSCON_FMCCR_FLASHTIM_SHIFT (12U)\r
+/*! FLASHTIM - Flash memory access time.\r
+ * 0b0000..1 system clock flash access time (for system clock rates up to 11 MHz).\r
+ * 0b0001..2 system clocks flash access time (for system clock rates up to 22 MHz).\r
+ * 0b0010..3 system clocks flash access time (for system clock rates up to 33 MHz).\r
+ * 0b0011..4 system clocks flash access time (for system clock rates up to 44 MHz).\r
+ * 0b0100..5 system clocks flash access time (for system clock rates up to 55 MHz).\r
+ * 0b0101..6 system clocks flash access time (for system clock rates up to 66 MHz).\r
+ * 0b0110..7 system clocks flash access time (for system clock rates up to 77 MHz).\r
+ * 0b0111..8 system clocks flash access time (for system clock rates up to 88 MHz).\r
+ * 0b1000..9 system clocks flash access time (for system clock rates up to 100 MHz).\r
+ */\r
+#define SYSCON_FMCCR_FLASHTIM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCCR_FLASHTIM_SHIFT)) & SYSCON_FMCCR_FLASHTIM_MASK)\r
+/*! @} */\r
+\r
+/*! @name USB0NEEDCLKCTRL - USB0 need clock control */\r
+/*! @{ */\r
+#define SYSCON_USB0NEEDCLKCTRL_AP_FS_DEV_NEEDCLK_MASK (0x1U)\r
+#define SYSCON_USB0NEEDCLKCTRL_AP_FS_DEV_NEEDCLK_SHIFT (0U)\r
+/*! AP_FS_DEV_NEEDCLK - USB0 Device USB0_NEEDCLK signal control:.\r
* 0b0..Under hardware control.\r
* 0b1..Forced high.\r
*/\r
-#define SYSCON_USB0CLKCTRL_AP_FS_DEV_CLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKCTRL_AP_FS_DEV_CLK_SHIFT)) & SYSCON_USB0CLKCTRL_AP_FS_DEV_CLK_MASK)\r
-#define SYSCON_USB0CLKCTRL_POL_FS_DEV_CLK_MASK (0x2U)\r
-#define SYSCON_USB0CLKCTRL_POL_FS_DEV_CLK_SHIFT (1U)\r
-/*! POL_FS_DEV_CLK - USB0 Device USB0_NEEDCLK polarity for triggering the USB0 wake-up interrupt:.\r
+#define SYSCON_USB0NEEDCLKCTRL_AP_FS_DEV_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0NEEDCLKCTRL_AP_FS_DEV_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB0NEEDCLKCTRL_AP_FS_DEV_NEEDCLK_MASK)\r
+#define SYSCON_USB0NEEDCLKCTRL_POL_FS_DEV_NEEDCLK_MASK (0x2U)\r
+#define SYSCON_USB0NEEDCLKCTRL_POL_FS_DEV_NEEDCLK_SHIFT (1U)\r
+/*! POL_FS_DEV_NEEDCLK - USB0 Device USB0_NEEDCLK polarity for triggering the USB0 wake-up interrupt:.\r
* 0b0..Falling edge of device USB0_NEEDCLK triggers wake-up.\r
* 0b1..Rising edge of device USB0_NEEDCLK triggers wake-up.\r
*/\r
-#define SYSCON_USB0CLKCTRL_POL_FS_DEV_CLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKCTRL_POL_FS_DEV_CLK_SHIFT)) & SYSCON_USB0CLKCTRL_POL_FS_DEV_CLK_MASK)\r
-#define SYSCON_USB0CLKCTRL_AP_FS_HOST_CLK_MASK (0x4U)\r
-#define SYSCON_USB0CLKCTRL_AP_FS_HOST_CLK_SHIFT (2U)\r
-/*! AP_FS_HOST_CLK - USB0 Host USB0_NEEDCLK signal control:.\r
+#define SYSCON_USB0NEEDCLKCTRL_POL_FS_DEV_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0NEEDCLKCTRL_POL_FS_DEV_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB0NEEDCLKCTRL_POL_FS_DEV_NEEDCLK_MASK)\r
+#define SYSCON_USB0NEEDCLKCTRL_AP_FS_HOST_NEEDCLK_MASK (0x4U)\r
+#define SYSCON_USB0NEEDCLKCTRL_AP_FS_HOST_NEEDCLK_SHIFT (2U)\r
+/*! AP_FS_HOST_NEEDCLK - USB0 Host USB0_NEEDCLK signal control:.\r
* 0b0..Under hardware control.\r
* 0b1..Forced high.\r
*/\r
-#define SYSCON_USB0CLKCTRL_AP_FS_HOST_CLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKCTRL_AP_FS_HOST_CLK_SHIFT)) & SYSCON_USB0CLKCTRL_AP_FS_HOST_CLK_MASK)\r
-#define SYSCON_USB0CLKCTRL_POL_FS_HOST_CLK_MASK (0x8U)\r
-#define SYSCON_USB0CLKCTRL_POL_FS_HOST_CLK_SHIFT (3U)\r
-/*! POL_FS_HOST_CLK - USB0 Host USB0_NEEDCLK polarity for triggering the USB0 wake-up interrupt:.\r
+#define SYSCON_USB0NEEDCLKCTRL_AP_FS_HOST_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0NEEDCLKCTRL_AP_FS_HOST_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB0NEEDCLKCTRL_AP_FS_HOST_NEEDCLK_MASK)\r
+#define SYSCON_USB0NEEDCLKCTRL_POL_FS_HOST_NEEDCLK_MASK (0x8U)\r
+#define SYSCON_USB0NEEDCLKCTRL_POL_FS_HOST_NEEDCLK_SHIFT (3U)\r
+/*! POL_FS_HOST_NEEDCLK - USB0 Host USB0_NEEDCLK polarity for triggering the USB0 wake-up interrupt:.\r
* 0b0..Falling edge of device USB0_NEEDCLK triggers wake-up.\r
* 0b1..Rising edge of device USB0_NEEDCLK triggers wake-up.\r
*/\r
-#define SYSCON_USB0CLKCTRL_POL_FS_HOST_CLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKCTRL_POL_FS_HOST_CLK_SHIFT)) & SYSCON_USB0CLKCTRL_POL_FS_HOST_CLK_MASK)\r
-#define SYSCON_USB0CLKCTRL_PU_DISABLE_MASK (0x10U)\r
-#define SYSCON_USB0CLKCTRL_PU_DISABLE_SHIFT (4U)\r
-/*! PU_DISABLE - Internal pull-up disable control.\r
- * 0b1..Internal pull-up disable.\r
- * 0b0..Internal pull-up enable.\r
- */\r
-#define SYSCON_USB0CLKCTRL_PU_DISABLE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKCTRL_PU_DISABLE_SHIFT)) & SYSCON_USB0CLKCTRL_PU_DISABLE_MASK)\r
+#define SYSCON_USB0NEEDCLKCTRL_POL_FS_HOST_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0NEEDCLKCTRL_POL_FS_HOST_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB0NEEDCLKCTRL_POL_FS_HOST_NEEDCLK_MASK)\r
/*! @} */\r
\r
-/*! @name USB0CLKSTAT - USB0 clock status */\r
+/*! @name USB0NEEDCLKSTAT - USB0 need clock status */\r
/*! @{ */\r
-#define SYSCON_USB0CLKSTAT_DEV_NEED_CLKST_MASK (0x1U)\r
-#define SYSCON_USB0CLKSTAT_DEV_NEED_CLKST_SHIFT (0U)\r
-/*! DEV_NEED_CLKST - USB0 Device USB0_NEEDCLK signal status:.\r
+#define SYSCON_USB0NEEDCLKSTAT_DEV_NEEDCLK_MASK (0x1U)\r
+#define SYSCON_USB0NEEDCLKSTAT_DEV_NEEDCLK_SHIFT (0U)\r
+/*! DEV_NEEDCLK - USB0 Device USB0_NEEDCLK signal status:.\r
* 0b1..USB0 Device clock is high.\r
* 0b0..USB0 Device clock is low.\r
*/\r
-#define SYSCON_USB0CLKSTAT_DEV_NEED_CLKST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKSTAT_DEV_NEED_CLKST_SHIFT)) & SYSCON_USB0CLKSTAT_DEV_NEED_CLKST_MASK)\r
-#define SYSCON_USB0CLKSTAT_HOST_NEED_CLKST_MASK (0x2U)\r
-#define SYSCON_USB0CLKSTAT_HOST_NEED_CLKST_SHIFT (1U)\r
-/*! HOST_NEED_CLKST - USB0 Host USB0_NEEDCLK signal status:.\r
+#define SYSCON_USB0NEEDCLKSTAT_DEV_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0NEEDCLKSTAT_DEV_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB0NEEDCLKSTAT_DEV_NEEDCLK_MASK)\r
+#define SYSCON_USB0NEEDCLKSTAT_HOST_NEEDCLK_MASK (0x2U)\r
+#define SYSCON_USB0NEEDCLKSTAT_HOST_NEEDCLK_SHIFT (1U)\r
+/*! HOST_NEEDCLK - USB0 Host USB0_NEEDCLK signal status:.\r
* 0b1..USB0 Host clock is high.\r
* 0b0..USB0 Host clock is low.\r
*/\r
-#define SYSCON_USB0CLKSTAT_HOST_NEED_CLKST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0CLKSTAT_HOST_NEED_CLKST_SHIFT)) & SYSCON_USB0CLKSTAT_HOST_NEED_CLKST_MASK)\r
+#define SYSCON_USB0NEEDCLKSTAT_HOST_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB0NEEDCLKSTAT_HOST_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB0NEEDCLKSTAT_HOST_NEEDCLK_MASK)\r
/*! @} */\r
\r
/*! @name FMCFLUSH - FMCflush control */\r
/*! @{ */\r
-#define SYSCON_FMCFLUSH_FLUSH_MASK (0x1U)\r
-#define SYSCON_FMCFLUSH_FLUSH_SHIFT (0U)\r
-#define SYSCON_FMCFLUSH_FLUSH(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCFLUSH_FLUSH_SHIFT)) & SYSCON_FMCFLUSH_FLUSH_MASK)\r
+#define SYSCON_FMCFLUSH_FLUSH_MASK (0x1U)\r
+#define SYSCON_FMCFLUSH_FLUSH_SHIFT (0U)\r
+/*! FLUSH - Flush control\r
+ * 0b1..Flush the FMC buffer contents.\r
+ * 0b0..No action is performed.\r
+ */\r
+#define SYSCON_FMCFLUSH_FLUSH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_FMCFLUSH_FLUSH_SHIFT)) & SYSCON_FMCFLUSH_FLUSH_MASK)\r
/*! @} */\r
\r
/*! @name MCLKIO - MCLK control */\r
/*! @{ */\r
-#define SYSCON_MCLKIO_MCLKIO_MASK (0xFFFFFFFFU)\r
-#define SYSCON_MCLKIO_MCLKIO_SHIFT (0U)\r
+#define SYSCON_MCLKIO_MCLKIO_MASK (0x1U)\r
+#define SYSCON_MCLKIO_MCLKIO_SHIFT (0U)\r
/*! MCLKIO - MCLK control.\r
- * 0b00000000000000000000000000000000..input mode.\r
- * 0b00000000000000000000000000000001..output mode.\r
- */\r
-#define SYSCON_MCLKIO_MCLKIO(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKIO_MCLKIO_SHIFT)) & SYSCON_MCLKIO_MCLKIO_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1CLKCTRL - USB1 clock control */\r
-/*! @{ */\r
-#define SYSCON_USB1CLKCTRL_AP_HS_DEV_CLK_MASK (0x1U)\r
-#define SYSCON_USB1CLKCTRL_AP_HS_DEV_CLK_SHIFT (0U)\r
-/*! AP_HS_DEV_CLK - USB1 Device need_clock signal control:.\r
- * 0b0..Under hardware control.\r
- * 0b1..Forced high.\r
- */\r
-#define SYSCON_USB1CLKCTRL_AP_HS_DEV_CLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1CLKCTRL_AP_HS_DEV_CLK_SHIFT)) & SYSCON_USB1CLKCTRL_AP_HS_DEV_CLK_MASK)\r
-#define SYSCON_USB1CLKCTRL_POL_HS_DEV_CLK_MASK (0x2U)\r
-#define SYSCON_USB1CLKCTRL_POL_HS_DEV_CLK_SHIFT (1U)\r
-/*! POL_HS_DEV_CLK - USB1 Device need_clock polarity for triggering the USB1 wake-up interrupt:.\r
- * 0b0..Falling edge of device need_clock triggers wake-up.\r
- * 0b1..Rising edge of device need_clock triggers wake-up.\r
- */\r
-#define SYSCON_USB1CLKCTRL_POL_HS_DEV_CLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1CLKCTRL_POL_HS_DEV_CLK_SHIFT)) & SYSCON_USB1CLKCTRL_POL_HS_DEV_CLK_MASK)\r
-#define SYSCON_USB1CLKCTRL_AP_HS_HOST_CLK_MASK (0x4U)\r
-#define SYSCON_USB1CLKCTRL_AP_HS_HOST_CLK_SHIFT (2U)\r
-/*! AP_HS_HOST_CLK - USB1 Host need_clock signal control:.\r
- * 0b0..Under hardware control.\r
- * 0b1..Forced high.\r
- */\r
-#define SYSCON_USB1CLKCTRL_AP_HS_HOST_CLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1CLKCTRL_AP_HS_HOST_CLK_SHIFT)) & SYSCON_USB1CLKCTRL_AP_HS_HOST_CLK_MASK)\r
-#define SYSCON_USB1CLKCTRL_POL_HS_HOST_CLK_MASK (0x8U)\r
-#define SYSCON_USB1CLKCTRL_POL_HS_HOST_CLK_SHIFT (3U)\r
-/*! POL_HS_HOST_CLK - USB1 Host need_clock polarity for triggering the USB1 wake-up interrupt: 0 Falling edge of device need_clock triggers wake-up.\r
- * 0b0..Falling edge of device need_clock triggers wake-up.\r
- * 0b1..Rising edge of device need_clock triggers wake-up.\r
- */\r
-#define SYSCON_USB1CLKCTRL_POL_HS_HOST_CLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1CLKCTRL_POL_HS_HOST_CLK_SHIFT)) & SYSCON_USB1CLKCTRL_POL_HS_HOST_CLK_MASK)\r
-#define SYSCON_USB1CLKCTRL_HS_DEV_WAKEUP_N_MASK (0x10U)\r
-#define SYSCON_USB1CLKCTRL_HS_DEV_WAKEUP_N_SHIFT (4U)\r
-/*! HS_DEV_WAKEUP_N - External user wake-up signal for device mode; asserting this signal (active low) will result in exiting the low power mode; input to synchronous control logic:.\r
- * 0b0..Forces USB1 PHY to wake-up.\r
- * 0b1..Normal USB1 PHY behavior.\r
- */\r
-#define SYSCON_USB1CLKCTRL_HS_DEV_WAKEUP_N(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1CLKCTRL_HS_DEV_WAKEUP_N_SHIFT)) & SYSCON_USB1CLKCTRL_HS_DEV_WAKEUP_N_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1CLKSTAT - USB1 clock status */\r
-/*! @{ */\r
-#define SYSCON_USB1CLKSTAT_DEV_NEED_CLKST_MASK (0x1U)\r
-#define SYSCON_USB1CLKSTAT_DEV_NEED_CLKST_SHIFT (0U)\r
-/*! DEV_NEED_CLKST - USB1 Device need_clock signal status:.\r
- * 0b1..USB1 Device clock is high.\r
- * 0b0..USB1 Device clock is low.\r
- */\r
-#define SYSCON_USB1CLKSTAT_DEV_NEED_CLKST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1CLKSTAT_DEV_NEED_CLKST_SHIFT)) & SYSCON_USB1CLKSTAT_DEV_NEED_CLKST_MASK)\r
-#define SYSCON_USB1CLKSTAT_HOST_NEED_CLKST_MASK (0x2U)\r
-#define SYSCON_USB1CLKSTAT_HOST_NEED_CLKST_SHIFT (1U)\r
-/*! HOST_NEED_CLKST - USB1 Host need_clock signal status:.\r
- * 0b1..USB1 Host clock is high.\r
- * 0b0..USB1 Host clock is low.\r
- */\r
-#define SYSCON_USB1CLKSTAT_HOST_NEED_CLKST(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1CLKSTAT_HOST_NEED_CLKST_SHIFT)) & SYSCON_USB1CLKSTAT_HOST_NEED_CLKST_MASK)\r
-/*! @} */\r
-\r
-/*! @name FLASHBANKENABLE - Flash Banks control */\r
-/*! @{ */\r
-#define SYSCON_FLASHBANKENABLE_BANK0_MASK (0xFU)\r
-#define SYSCON_FLASHBANKENABLE_BANK0_SHIFT (0U)\r
-/*! BANK0 - Flash Bank0 control.\r
- * 0b0000..Flash BANK0 checker is enabled (all Flash pages inside this bank cannot be erased nor programmed).\r
- * 0b1010..1010: Flash BANK0 checker is disabled (all Flash pages inside this bank can be erased and programmed).\r
- */\r
-#define SYSCON_FLASHBANKENABLE_BANK0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLASHBANKENABLE_BANK0_SHIFT)) & SYSCON_FLASHBANKENABLE_BANK0_MASK)\r
-#define SYSCON_FLASHBANKENABLE_BANK1_MASK (0xF0U)\r
-#define SYSCON_FLASHBANKENABLE_BANK1_SHIFT (4U)\r
-/*! BANK1 - Flash Bank1 control.\r
- * 0b0000..Flash BANK1 checker is enabled (all Flash pages inside this bank cannot be erased nor programmed).\r
- * 0b1010..1010: Flash BANK1 checker is disabled (all Flash pages inside this bank can be erased and programmed).\r
- */\r
-#define SYSCON_FLASHBANKENABLE_BANK1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLASHBANKENABLE_BANK1_SHIFT)) & SYSCON_FLASHBANKENABLE_BANK1_MASK)\r
-#define SYSCON_FLASHBANKENABLE_BANK2_MASK (0xF00U)\r
-#define SYSCON_FLASHBANKENABLE_BANK2_SHIFT (8U)\r
-/*! BANK2 - Flash Bank2 control.\r
- * 0b0000..Flash BANK2 checker is enabled (all Flash pages inside this bank cannot be erased nor programmed).\r
- * 0b1010..1010: Flash BANK2 checker is disabled (all Flash pages inside this bank can be erased and programmed).\r
- */\r
-#define SYSCON_FLASHBANKENABLE_BANK2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_FLASHBANKENABLE_BANK2_SHIFT)) & SYSCON_FLASHBANKENABLE_BANK2_MASK)\r
+ * 0b0..input mode.\r
+ * 0b1..output mode.\r
+ */\r
+#define SYSCON_MCLKIO_MCLKIO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_MCLKIO_MCLKIO_SHIFT)) & SYSCON_MCLKIO_MCLKIO_MASK)\r
+/*! @} */\r
+\r
+/*! @name USB1NEEDCLKCTRL - USB1 need clock control */\r
+/*! @{ */\r
+#define SYSCON_USB1NEEDCLKCTRL_AP_HS_DEV_NEEDCLK_MASK (0x1U)\r
+#define SYSCON_USB1NEEDCLKCTRL_AP_HS_DEV_NEEDCLK_SHIFT (0U)\r
+/*! AP_HS_DEV_NEEDCLK - USB1 Device need_clock signal control:\r
+ * 0b0..HOST_NEEDCLK is under hardware control.\r
+ * 0b1..HOST_NEEDCLK is forced high.\r
+ */\r
+#define SYSCON_USB1NEEDCLKCTRL_AP_HS_DEV_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1NEEDCLKCTRL_AP_HS_DEV_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB1NEEDCLKCTRL_AP_HS_DEV_NEEDCLK_MASK)\r
+#define SYSCON_USB1NEEDCLKCTRL_POL_HS_DEV_NEEDCLK_MASK (0x2U)\r
+#define SYSCON_USB1NEEDCLKCTRL_POL_HS_DEV_NEEDCLK_SHIFT (1U)\r
+/*! POL_HS_DEV_NEEDCLK - USB1 device need clock polarity for triggering the USB1_NEEDCLK wake-up interrupt:\r
+ * 0b0..Falling edge of DEV_NEEDCLK triggers wake-up.\r
+ * 0b1..Rising edge of DEV_NEEDCLK triggers wake-up.\r
+ */\r
+#define SYSCON_USB1NEEDCLKCTRL_POL_HS_DEV_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1NEEDCLKCTRL_POL_HS_DEV_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB1NEEDCLKCTRL_POL_HS_DEV_NEEDCLK_MASK)\r
+#define SYSCON_USB1NEEDCLKCTRL_AP_HS_HOST_NEEDCLK_MASK (0x4U)\r
+#define SYSCON_USB1NEEDCLKCTRL_AP_HS_HOST_NEEDCLK_SHIFT (2U)\r
+/*! AP_HS_HOST_NEEDCLK - USB1 Host need clock signal control:\r
+ * 0b0..HOST_NEEDCLK is under hardware control.\r
+ * 0b1..HOST_NEEDCLK is forced high.\r
+ */\r
+#define SYSCON_USB1NEEDCLKCTRL_AP_HS_HOST_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1NEEDCLKCTRL_AP_HS_HOST_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB1NEEDCLKCTRL_AP_HS_HOST_NEEDCLK_MASK)\r
+#define SYSCON_USB1NEEDCLKCTRL_POL_HS_HOST_NEEDCLK_MASK (0x8U)\r
+#define SYSCON_USB1NEEDCLKCTRL_POL_HS_HOST_NEEDCLK_SHIFT (3U)\r
+/*! POL_HS_HOST_NEEDCLK - USB1 host need clock polarity for triggering the USB1_NEEDCLK wake-up interrupt.\r
+ * 0b0..Falling edge of HOST_NEEDCLK triggers wake-up.\r
+ * 0b1..Rising edge of HOST_NEEDCLK triggers wake-up.\r
+ */\r
+#define SYSCON_USB1NEEDCLKCTRL_POL_HS_HOST_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1NEEDCLKCTRL_POL_HS_HOST_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB1NEEDCLKCTRL_POL_HS_HOST_NEEDCLK_MASK)\r
+#define SYSCON_USB1NEEDCLKCTRL_HS_DEV_WAKEUP_N_MASK (0x10U)\r
+#define SYSCON_USB1NEEDCLKCTRL_HS_DEV_WAKEUP_N_SHIFT (4U)\r
+/*! HS_DEV_WAKEUP_N - Software override of device controller PHY wake up logic.\r
+ * 0b0..Forces USB1_PHY to wake-up.\r
+ * 0b1..Normal USB1_PHY behavior.\r
+ */\r
+#define SYSCON_USB1NEEDCLKCTRL_HS_DEV_WAKEUP_N(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1NEEDCLKCTRL_HS_DEV_WAKEUP_N_SHIFT)) & \\r
+ SYSCON_USB1NEEDCLKCTRL_HS_DEV_WAKEUP_N_MASK)\r
+/*! @} */\r
+\r
+/*! @name USB1NEEDCLKSTAT - USB1 need clock status */\r
+/*! @{ */\r
+#define SYSCON_USB1NEEDCLKSTAT_DEV_NEEDCLK_MASK (0x1U)\r
+#define SYSCON_USB1NEEDCLKSTAT_DEV_NEEDCLK_SHIFT (0U)\r
+/*! DEV_NEEDCLK - USB1 Device need_clock signal status:.\r
+ * 0b1..DEV_NEEDCLK is high.\r
+ * 0b0..DEV_NEEDCLK is low.\r
+ */\r
+#define SYSCON_USB1NEEDCLKSTAT_DEV_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1NEEDCLKSTAT_DEV_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB1NEEDCLKSTAT_DEV_NEEDCLK_MASK)\r
+#define SYSCON_USB1NEEDCLKSTAT_HOST_NEEDCLK_MASK (0x2U)\r
+#define SYSCON_USB1NEEDCLKSTAT_HOST_NEEDCLK_SHIFT (1U)\r
+/*! HOST_NEEDCLK - USB1 Host need_clock signal status:.\r
+ * 0b1..HOST_NEEDCLK is high.\r
+ * 0b0..HOST_NEEDCLK is low.\r
+ */\r
+#define SYSCON_USB1NEEDCLKSTAT_HOST_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_USB1NEEDCLKSTAT_HOST_NEEDCLK_SHIFT)) & \\r
+ SYSCON_USB1NEEDCLKSTAT_HOST_NEEDCLK_MASK)\r
/*! @} */\r
\r
/*! @name SDIOCLKCTRL - SDIO CCLKIN phase and delay control */\r
/*! @{ */\r
-#define SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE_MASK (0x3U)\r
-#define SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE_SHIFT (0U)\r
+#define SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE_MASK (0x3U)\r
+#define SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE_SHIFT (0U)\r
/*! CCLK_DRV_PHASE - Programmable delay value by which cclk_in_drv is phase-shifted with regard to cclk_in.\r
* 0b00..0 degree shift.\r
* 0b01..90 degree shift.\r
* 0b10..180 degree shift.\r
* 0b11..270 degree shift.\r
*/\r
-#define SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE_SHIFT)) & SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE_MASK)\r
+#define SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE_SHIFT)) & SYSCON_SDIOCLKCTRL_CCLK_DRV_PHASE_MASK)\r
#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_PHASE_MASK (0xCU)\r
#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_PHASE_SHIFT (2U)\r
/*! CCLK_SAMPLE_PHASE - Programmable delay value by which cclk_in_sample is delayed with regard to cclk_in.\r
* 0b10..180 degree shift.\r
* 0b11..270 degree shift.\r
*/\r
-#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_PHASE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_PHASE_SHIFT)) & SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_PHASE_MASK)\r
-#define SYSCON_SDIOCLKCTRL_PHASE_ACTIVE_MASK (0x80U)\r
-#define SYSCON_SDIOCLKCTRL_PHASE_ACTIVE_SHIFT (7U)\r
+#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_PHASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_PHASE_SHIFT)) & \\r
+ SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_PHASE_MASK)\r
+#define SYSCON_SDIOCLKCTRL_PHASE_ACTIVE_MASK (0x80U)\r
+#define SYSCON_SDIOCLKCTRL_PHASE_ACTIVE_SHIFT (7U)\r
/*! PHASE_ACTIVE - Enables the delays CCLK_DRV_PHASE and CCLK_SAMPLE_PHASE.\r
* 0b0..Bypassed.\r
* 0b1..Activates phase shift logic. When active, the clock divider is active and phase delays are enabled.\r
*/\r
-#define SYSCON_SDIOCLKCTRL_PHASE_ACTIVE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_PHASE_ACTIVE_SHIFT)) & SYSCON_SDIOCLKCTRL_PHASE_ACTIVE_MASK)\r
-#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_MASK (0x1F0000U)\r
-#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_SHIFT (16U)\r
-#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_SHIFT)) & SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_MASK)\r
+#define SYSCON_SDIOCLKCTRL_PHASE_ACTIVE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_PHASE_ACTIVE_SHIFT)) & SYSCON_SDIOCLKCTRL_PHASE_ACTIVE_MASK)\r
+#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_MASK (0x1F0000U)\r
+#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_SHIFT (16U)\r
+/*! CCLK_DRV_DELAY - Programmable delay value by which cclk_in_drv is delayed with regard to cclk_in.\r
+ */\r
+#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_SHIFT)) & SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_MASK)\r
#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_ACTIVE_MASK (0x800000U)\r
#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_ACTIVE_SHIFT (23U)\r
/*! CCLK_DRV_DELAY_ACTIVE - Enables drive delay, as controlled by the CCLK_DRV_DELAY field.\r
* 0b1..Enable drive delay.\r
* 0b0..Disable drive delay.\r
*/\r
-#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_ACTIVE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_ACTIVE_SHIFT)) & SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_ACTIVE_MASK)\r
+#define SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_ACTIVE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_ACTIVE_SHIFT)) & \\r
+ SYSCON_SDIOCLKCTRL_CCLK_DRV_DELAY_ACTIVE_MASK)\r
#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_MASK (0x1F000000U)\r
#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_SHIFT (24U)\r
-#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_SHIFT)) & SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_MASK)\r
+/*! CCLK_SAMPLE_DELAY - Programmable delay value by which cclk_in_sample is delayed with regard to cclk_in.\r
+ */\r
+#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_SHIFT)) & \\r
+ SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_MASK)\r
#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_ACTIVE_MASK (0x80000000U)\r
#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_ACTIVE_SHIFT (31U)\r
/*! CCLK_SAMPLE_DELAY_ACTIVE - Enables sample delay, as controlled by the CCLK_SAMPLE_DELAY field.\r
* 0b1..Enables sample delay.\r
* 0b0..Disables sample delay.\r
*/\r
-#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_ACTIVE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_ACTIVE_SHIFT)) & SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_ACTIVE_MASK)\r
+#define SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_ACTIVE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_ACTIVE_SHIFT)) & \\r
+ SYSCON_SDIOCLKCTRL_CCLK_SAMPLE_DELAY_ACTIVE_MASK)\r
/*! @} */\r
\r
/*! @name PLL1CTRL - PLL1 550m control */\r
/*! @{ */\r
-#define SYSCON_PLL1CTRL_SELR_MASK (0xFU)\r
-#define SYSCON_PLL1CTRL_SELR_SHIFT (0U)\r
-#define SYSCON_PLL1CTRL_SELR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_SELR_SHIFT)) & SYSCON_PLL1CTRL_SELR_MASK)\r
-#define SYSCON_PLL1CTRL_SELI_MASK (0x3F0U)\r
-#define SYSCON_PLL1CTRL_SELI_SHIFT (4U)\r
-#define SYSCON_PLL1CTRL_SELI(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_SELI_SHIFT)) & SYSCON_PLL1CTRL_SELI_MASK)\r
-#define SYSCON_PLL1CTRL_SELP_MASK (0x7C00U)\r
-#define SYSCON_PLL1CTRL_SELP_SHIFT (10U)\r
-#define SYSCON_PLL1CTRL_SELP(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_SELP_SHIFT)) & SYSCON_PLL1CTRL_SELP_MASK)\r
-#define SYSCON_PLL1CTRL_BYPASSPLL_MASK (0x8000U)\r
-#define SYSCON_PLL1CTRL_BYPASSPLL_SHIFT (15U)\r
+#define SYSCON_PLL1CTRL_SELR_MASK (0xFU)\r
+#define SYSCON_PLL1CTRL_SELR_SHIFT (0U)\r
+/*! SELR - Bandwidth select R value.\r
+ */\r
+#define SYSCON_PLL1CTRL_SELR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_SELR_SHIFT)) & SYSCON_PLL1CTRL_SELR_MASK)\r
+#define SYSCON_PLL1CTRL_SELI_MASK (0x3F0U)\r
+#define SYSCON_PLL1CTRL_SELI_SHIFT (4U)\r
+/*! SELI - Bandwidth select I value.\r
+ */\r
+#define SYSCON_PLL1CTRL_SELI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_SELI_SHIFT)) & SYSCON_PLL1CTRL_SELI_MASK)\r
+#define SYSCON_PLL1CTRL_SELP_MASK (0x7C00U)\r
+#define SYSCON_PLL1CTRL_SELP_SHIFT (10U)\r
+/*! SELP - Bandwidth select P value.\r
+ */\r
+#define SYSCON_PLL1CTRL_SELP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_SELP_SHIFT)) & SYSCON_PLL1CTRL_SELP_MASK)\r
+#define SYSCON_PLL1CTRL_BYPASSPLL_MASK (0x8000U)\r
+#define SYSCON_PLL1CTRL_BYPASSPLL_SHIFT (15U)\r
/*! BYPASSPLL - Bypass PLL input clock is sent directly to the PLL output (default).\r
* 0b1..PLL input clock is sent directly to the PLL output.\r
* 0b0..use PLL.\r
*/\r
-#define SYSCON_PLL1CTRL_BYPASSPLL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BYPASSPLL_SHIFT)) & SYSCON_PLL1CTRL_BYPASSPLL_MASK)\r
-#define SYSCON_PLL1CTRL_BYPASSPOSTDIV2_MASK (0x10000U)\r
-#define SYSCON_PLL1CTRL_BYPASSPOSTDIV2_SHIFT (16U)\r
+#define SYSCON_PLL1CTRL_BYPASSPLL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BYPASSPLL_SHIFT)) & SYSCON_PLL1CTRL_BYPASSPLL_MASK)\r
+#define SYSCON_PLL1CTRL_BYPASSPOSTDIV2_MASK (0x10000U)\r
+#define SYSCON_PLL1CTRL_BYPASSPOSTDIV2_SHIFT (16U)\r
/*! BYPASSPOSTDIV2 - bypass of the divide-by-2 divider in the post-divider.\r
* 0b1..bypass of the divide-by-2 divider in the post-divider.\r
* 0b0..use the divide-by-2 divider in the post-divider.\r
*/\r
-#define SYSCON_PLL1CTRL_BYPASSPOSTDIV2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BYPASSPOSTDIV2_SHIFT)) & SYSCON_PLL1CTRL_BYPASSPOSTDIV2_MASK)\r
-#define SYSCON_PLL1CTRL_LIMUPOFF_MASK (0x20000U)\r
-#define SYSCON_PLL1CTRL_LIMUPOFF_SHIFT (17U)\r
-#define SYSCON_PLL1CTRL_LIMUPOFF(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_LIMUPOFF_SHIFT)) & SYSCON_PLL1CTRL_LIMUPOFF_MASK)\r
-#define SYSCON_PLL1CTRL_BWDIRECT_MASK (0x40000U)\r
-#define SYSCON_PLL1CTRL_BWDIRECT_SHIFT (18U)\r
+#define SYSCON_PLL1CTRL_BYPASSPOSTDIV2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BYPASSPOSTDIV2_SHIFT)) & SYSCON_PLL1CTRL_BYPASSPOSTDIV2_MASK)\r
+#define SYSCON_PLL1CTRL_LIMUPOFF_MASK (0x20000U)\r
+#define SYSCON_PLL1CTRL_LIMUPOFF_SHIFT (17U)\r
+/*! LIMUPOFF - limup_off = 1 in spread spectrum and fractional PLL applications.\r
+ */\r
+#define SYSCON_PLL1CTRL_LIMUPOFF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_LIMUPOFF_SHIFT)) & SYSCON_PLL1CTRL_LIMUPOFF_MASK)\r
+#define SYSCON_PLL1CTRL_BWDIRECT_MASK (0x40000U)\r
+#define SYSCON_PLL1CTRL_BWDIRECT_SHIFT (18U)\r
/*! BWDIRECT - control of the bandwidth of the PLL.\r
* 0b1..modify the bandwidth of the PLL directly.\r
* 0b0..the bandwidth is changed synchronously with the feedback-divider.\r
*/\r
-#define SYSCON_PLL1CTRL_BWDIRECT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BWDIRECT_SHIFT)) & SYSCON_PLL1CTRL_BWDIRECT_MASK)\r
-#define SYSCON_PLL1CTRL_BYPASSPREDIV_MASK (0x80000U)\r
-#define SYSCON_PLL1CTRL_BYPASSPREDIV_SHIFT (19U)\r
+#define SYSCON_PLL1CTRL_BWDIRECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BWDIRECT_SHIFT)) & SYSCON_PLL1CTRL_BWDIRECT_MASK)\r
+#define SYSCON_PLL1CTRL_BYPASSPREDIV_MASK (0x80000U)\r
+#define SYSCON_PLL1CTRL_BYPASSPREDIV_SHIFT (19U)\r
/*! BYPASSPREDIV - bypass of the pre-divider.\r
* 0b1..bypass of the pre-divider.\r
* 0b0..use the pre-divider.\r
*/\r
-#define SYSCON_PLL1CTRL_BYPASSPREDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BYPASSPREDIV_SHIFT)) & SYSCON_PLL1CTRL_BYPASSPREDIV_MASK)\r
-#define SYSCON_PLL1CTRL_BYPASSPOSTDIV_MASK (0x100000U)\r
-#define SYSCON_PLL1CTRL_BYPASSPOSTDIV_SHIFT (20U)\r
+#define SYSCON_PLL1CTRL_BYPASSPREDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BYPASSPREDIV_SHIFT)) & SYSCON_PLL1CTRL_BYPASSPREDIV_MASK)\r
+#define SYSCON_PLL1CTRL_BYPASSPOSTDIV_MASK (0x100000U)\r
+#define SYSCON_PLL1CTRL_BYPASSPOSTDIV_SHIFT (20U)\r
/*! BYPASSPOSTDIV - bypass of the post-divider.\r
* 0b1..bypass of the post-divider.\r
* 0b0..use the post-divider.\r
*/\r
-#define SYSCON_PLL1CTRL_BYPASSPOSTDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BYPASSPOSTDIV_SHIFT)) & SYSCON_PLL1CTRL_BYPASSPOSTDIV_MASK)\r
-#define SYSCON_PLL1CTRL_CLKEN_MASK (0x200000U)\r
-#define SYSCON_PLL1CTRL_CLKEN_SHIFT (21U)\r
+#define SYSCON_PLL1CTRL_BYPASSPOSTDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_BYPASSPOSTDIV_SHIFT)) & SYSCON_PLL1CTRL_BYPASSPOSTDIV_MASK)\r
+#define SYSCON_PLL1CTRL_CLKEN_MASK (0x200000U)\r
+#define SYSCON_PLL1CTRL_CLKEN_SHIFT (21U)\r
/*! CLKEN - enable the output clock.\r
* 0b1..Enable the output clock.\r
* 0b0..Disable the output clock.\r
*/\r
-#define SYSCON_PLL1CTRL_CLKEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_CLKEN_SHIFT)) & SYSCON_PLL1CTRL_CLKEN_MASK)\r
-#define SYSCON_PLL1CTRL_FRMEN_MASK (0x400000U)\r
-#define SYSCON_PLL1CTRL_FRMEN_SHIFT (22U)\r
-#define SYSCON_PLL1CTRL_FRMEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_FRMEN_SHIFT)) & SYSCON_PLL1CTRL_FRMEN_MASK)\r
-#define SYSCON_PLL1CTRL_FRMCLKSTABLE_MASK (0x800000U)\r
-#define SYSCON_PLL1CTRL_FRMCLKSTABLE_SHIFT (23U)\r
-#define SYSCON_PLL1CTRL_FRMCLKSTABLE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_FRMCLKSTABLE_SHIFT)) & SYSCON_PLL1CTRL_FRMCLKSTABLE_MASK)\r
-#define SYSCON_PLL1CTRL_SKEWEN_MASK (0x1000000U)\r
-#define SYSCON_PLL1CTRL_SKEWEN_SHIFT (24U)\r
+#define SYSCON_PLL1CTRL_CLKEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_CLKEN_SHIFT)) & SYSCON_PLL1CTRL_CLKEN_MASK)\r
+#define SYSCON_PLL1CTRL_FRMEN_MASK (0x400000U)\r
+#define SYSCON_PLL1CTRL_FRMEN_SHIFT (22U)\r
+/*! FRMEN - 1: free running mode.\r
+ */\r
+#define SYSCON_PLL1CTRL_FRMEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_FRMEN_SHIFT)) & SYSCON_PLL1CTRL_FRMEN_MASK)\r
+#define SYSCON_PLL1CTRL_FRMCLKSTABLE_MASK (0x800000U)\r
+#define SYSCON_PLL1CTRL_FRMCLKSTABLE_SHIFT (23U)\r
+/*! FRMCLKSTABLE - free running mode clockstable: Warning: Only make frm_clockstable = 1 after the PLL output frequency\r
+ * is stable.\r
+ */\r
+#define SYSCON_PLL1CTRL_FRMCLKSTABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_FRMCLKSTABLE_SHIFT)) & SYSCON_PLL1CTRL_FRMCLKSTABLE_MASK)\r
+#define SYSCON_PLL1CTRL_SKEWEN_MASK (0x1000000U)\r
+#define SYSCON_PLL1CTRL_SKEWEN_SHIFT (24U)\r
/*! SKEWEN - Skew mode.\r
* 0b1..skewmode is enable.\r
* 0b0..skewmode is disable.\r
*/\r
-#define SYSCON_PLL1CTRL_SKEWEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_SKEWEN_SHIFT)) & SYSCON_PLL1CTRL_SKEWEN_MASK)\r
+#define SYSCON_PLL1CTRL_SKEWEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1CTRL_SKEWEN_SHIFT)) & SYSCON_PLL1CTRL_SKEWEN_MASK)\r
/*! @} */\r
\r
/*! @name PLL1STAT - PLL1 550m status */\r
/*! @{ */\r
-#define SYSCON_PLL1STAT_LOCK_MASK (0x1U)\r
-#define SYSCON_PLL1STAT_LOCK_SHIFT (0U)\r
-#define SYSCON_PLL1STAT_LOCK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_LOCK_SHIFT)) & SYSCON_PLL1STAT_LOCK_MASK)\r
-#define SYSCON_PLL1STAT_PREDIVACK_MASK (0x2U)\r
-#define SYSCON_PLL1STAT_PREDIVACK_SHIFT (1U)\r
-#define SYSCON_PLL1STAT_PREDIVACK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_PREDIVACK_SHIFT)) & SYSCON_PLL1STAT_PREDIVACK_MASK)\r
-#define SYSCON_PLL1STAT_FEEDDIVACK_MASK (0x4U)\r
-#define SYSCON_PLL1STAT_FEEDDIVACK_SHIFT (2U)\r
-#define SYSCON_PLL1STAT_FEEDDIVACK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_FEEDDIVACK_SHIFT)) & SYSCON_PLL1STAT_FEEDDIVACK_MASK)\r
-#define SYSCON_PLL1STAT_POSTDIVACK_MASK (0x8U)\r
-#define SYSCON_PLL1STAT_POSTDIVACK_SHIFT (3U)\r
-#define SYSCON_PLL1STAT_POSTDIVACK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_POSTDIVACK_SHIFT)) & SYSCON_PLL1STAT_POSTDIVACK_MASK)\r
-#define SYSCON_PLL1STAT_FRMDET_MASK (0x10U)\r
-#define SYSCON_PLL1STAT_FRMDET_SHIFT (4U)\r
-#define SYSCON_PLL1STAT_FRMDET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_FRMDET_SHIFT)) & SYSCON_PLL1STAT_FRMDET_MASK)\r
+#define SYSCON_PLL1STAT_LOCK_MASK (0x1U)\r
+#define SYSCON_PLL1STAT_LOCK_SHIFT (0U)\r
+/*! LOCK - lock detector output (active high) Warning: The lock signal is only reliable between fref[2] :100 kHz to 20\r
+ * MHz.\r
+ */\r
+#define SYSCON_PLL1STAT_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_LOCK_SHIFT)) & SYSCON_PLL1STAT_LOCK_MASK)\r
+#define SYSCON_PLL1STAT_PREDIVACK_MASK (0x2U)\r
+#define SYSCON_PLL1STAT_PREDIVACK_SHIFT (1U)\r
+/*! PREDIVACK - pre-divider ratio change acknowledge.\r
+ */\r
+#define SYSCON_PLL1STAT_PREDIVACK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_PREDIVACK_SHIFT)) & SYSCON_PLL1STAT_PREDIVACK_MASK)\r
+#define SYSCON_PLL1STAT_FEEDDIVACK_MASK (0x4U)\r
+#define SYSCON_PLL1STAT_FEEDDIVACK_SHIFT (2U)\r
+/*! FEEDDIVACK - feedback divider ratio change acknowledge.\r
+ */\r
+#define SYSCON_PLL1STAT_FEEDDIVACK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_FEEDDIVACK_SHIFT)) & SYSCON_PLL1STAT_FEEDDIVACK_MASK)\r
+#define SYSCON_PLL1STAT_POSTDIVACK_MASK (0x8U)\r
+#define SYSCON_PLL1STAT_POSTDIVACK_SHIFT (3U)\r
+/*! POSTDIVACK - post-divider ratio change acknowledge.\r
+ */\r
+#define SYSCON_PLL1STAT_POSTDIVACK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_POSTDIVACK_SHIFT)) & SYSCON_PLL1STAT_POSTDIVACK_MASK)\r
+#define SYSCON_PLL1STAT_FRMDET_MASK (0x10U)\r
+#define SYSCON_PLL1STAT_FRMDET_SHIFT (4U)\r
+/*! FRMDET - free running detector output (active high).\r
+ */\r
+#define SYSCON_PLL1STAT_FRMDET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1STAT_FRMDET_SHIFT)) & SYSCON_PLL1STAT_FRMDET_MASK)\r
/*! @} */\r
\r
/*! @name PLL1NDEC - PLL1 550m N divider */\r
/*! @{ */\r
-#define SYSCON_PLL1NDEC_NDIV_MASK (0xFFU)\r
-#define SYSCON_PLL1NDEC_NDIV_SHIFT (0U)\r
-#define SYSCON_PLL1NDEC_NDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1NDEC_NDIV_SHIFT)) & SYSCON_PLL1NDEC_NDIV_MASK)\r
-#define SYSCON_PLL1NDEC_NREQ_MASK (0x100U)\r
-#define SYSCON_PLL1NDEC_NREQ_SHIFT (8U)\r
-#define SYSCON_PLL1NDEC_NREQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1NDEC_NREQ_SHIFT)) & SYSCON_PLL1NDEC_NREQ_MASK)\r
+#define SYSCON_PLL1NDEC_NDIV_MASK (0xFFU)\r
+#define SYSCON_PLL1NDEC_NDIV_SHIFT (0U)\r
+/*! NDIV - pre-divider divider ratio (N-divider).\r
+ */\r
+#define SYSCON_PLL1NDEC_NDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1NDEC_NDIV_SHIFT)) & SYSCON_PLL1NDEC_NDIV_MASK)\r
+#define SYSCON_PLL1NDEC_NREQ_MASK (0x100U)\r
+#define SYSCON_PLL1NDEC_NREQ_SHIFT (8U)\r
+/*! NREQ - pre-divider ratio change request.\r
+ */\r
+#define SYSCON_PLL1NDEC_NREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1NDEC_NREQ_SHIFT)) & SYSCON_PLL1NDEC_NREQ_MASK)\r
/*! @} */\r
\r
/*! @name PLL1MDEC - PLL1 550m M divider */\r
/*! @{ */\r
-#define SYSCON_PLL1MDEC_MDIV_MASK (0xFFFFU)\r
-#define SYSCON_PLL1MDEC_MDIV_SHIFT (0U)\r
-#define SYSCON_PLL1MDEC_MDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1MDEC_MDIV_SHIFT)) & SYSCON_PLL1MDEC_MDIV_MASK)\r
-#define SYSCON_PLL1MDEC_MREQ_MASK (0x10000U)\r
-#define SYSCON_PLL1MDEC_MREQ_SHIFT (16U)\r
-#define SYSCON_PLL1MDEC_MREQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1MDEC_MREQ_SHIFT)) & SYSCON_PLL1MDEC_MREQ_MASK)\r
+#define SYSCON_PLL1MDEC_MDIV_MASK (0xFFFFU)\r
+#define SYSCON_PLL1MDEC_MDIV_SHIFT (0U)\r
+/*! MDIV - feedback divider divider ratio (M-divider).\r
+ */\r
+#define SYSCON_PLL1MDEC_MDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1MDEC_MDIV_SHIFT)) & SYSCON_PLL1MDEC_MDIV_MASK)\r
+#define SYSCON_PLL1MDEC_MREQ_MASK (0x10000U)\r
+#define SYSCON_PLL1MDEC_MREQ_SHIFT (16U)\r
+/*! MREQ - feedback ratio change request.\r
+ */\r
+#define SYSCON_PLL1MDEC_MREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1MDEC_MREQ_SHIFT)) & SYSCON_PLL1MDEC_MREQ_MASK)\r
/*! @} */\r
\r
/*! @name PLL1PDEC - PLL1 550m P divider */\r
/*! @{ */\r
-#define SYSCON_PLL1PDEC_PDIV_MASK (0x1FU)\r
-#define SYSCON_PLL1PDEC_PDIV_SHIFT (0U)\r
-#define SYSCON_PLL1PDEC_PDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1PDEC_PDIV_SHIFT)) & SYSCON_PLL1PDEC_PDIV_MASK)\r
-#define SYSCON_PLL1PDEC_PREQ_MASK (0x20U)\r
-#define SYSCON_PLL1PDEC_PREQ_SHIFT (5U)\r
-#define SYSCON_PLL1PDEC_PREQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1PDEC_PREQ_SHIFT)) & SYSCON_PLL1PDEC_PREQ_MASK)\r
+#define SYSCON_PLL1PDEC_PDIV_MASK (0x1FU)\r
+#define SYSCON_PLL1PDEC_PDIV_SHIFT (0U)\r
+/*! PDIV - post-divider divider ratio (P-divider)\r
+ */\r
+#define SYSCON_PLL1PDEC_PDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1PDEC_PDIV_SHIFT)) & SYSCON_PLL1PDEC_PDIV_MASK)\r
+#define SYSCON_PLL1PDEC_PREQ_MASK (0x20U)\r
+#define SYSCON_PLL1PDEC_PREQ_SHIFT (5U)\r
+/*! PREQ - feedback ratio change request.\r
+ */\r
+#define SYSCON_PLL1PDEC_PREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL1PDEC_PREQ_SHIFT)) & SYSCON_PLL1PDEC_PREQ_MASK)\r
/*! @} */\r
\r
/*! @name PLL0CTRL - PLL0 550m control */\r
/*! @{ */\r
-#define SYSCON_PLL0CTRL_SELR_MASK (0xFU)\r
-#define SYSCON_PLL0CTRL_SELR_SHIFT (0U)\r
-#define SYSCON_PLL0CTRL_SELR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_SELR_SHIFT)) & SYSCON_PLL0CTRL_SELR_MASK)\r
-#define SYSCON_PLL0CTRL_SELI_MASK (0x3F0U)\r
-#define SYSCON_PLL0CTRL_SELI_SHIFT (4U)\r
-#define SYSCON_PLL0CTRL_SELI(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_SELI_SHIFT)) & SYSCON_PLL0CTRL_SELI_MASK)\r
-#define SYSCON_PLL0CTRL_SELP_MASK (0x7C00U)\r
-#define SYSCON_PLL0CTRL_SELP_SHIFT (10U)\r
-#define SYSCON_PLL0CTRL_SELP(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_SELP_SHIFT)) & SYSCON_PLL0CTRL_SELP_MASK)\r
-#define SYSCON_PLL0CTRL_BYPASSPLL_MASK (0x8000U)\r
-#define SYSCON_PLL0CTRL_BYPASSPLL_SHIFT (15U)\r
+#define SYSCON_PLL0CTRL_SELR_MASK (0xFU)\r
+#define SYSCON_PLL0CTRL_SELR_SHIFT (0U)\r
+/*! SELR - Bandwidth select R value.\r
+ */\r
+#define SYSCON_PLL0CTRL_SELR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_SELR_SHIFT)) & SYSCON_PLL0CTRL_SELR_MASK)\r
+#define SYSCON_PLL0CTRL_SELI_MASK (0x3F0U)\r
+#define SYSCON_PLL0CTRL_SELI_SHIFT (4U)\r
+/*! SELI - Bandwidth select I value.\r
+ */\r
+#define SYSCON_PLL0CTRL_SELI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_SELI_SHIFT)) & SYSCON_PLL0CTRL_SELI_MASK)\r
+#define SYSCON_PLL0CTRL_SELP_MASK (0x7C00U)\r
+#define SYSCON_PLL0CTRL_SELP_SHIFT (10U)\r
+/*! SELP - Bandwidth select P value.\r
+ */\r
+#define SYSCON_PLL0CTRL_SELP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_SELP_SHIFT)) & SYSCON_PLL0CTRL_SELP_MASK)\r
+#define SYSCON_PLL0CTRL_BYPASSPLL_MASK (0x8000U)\r
+#define SYSCON_PLL0CTRL_BYPASSPLL_SHIFT (15U)\r
/*! BYPASSPLL - Bypass PLL input clock is sent directly to the PLL output (default).\r
* 0b1..Bypass PLL input clock is sent directly to the PLL output.\r
* 0b0..use PLL.\r
*/\r
-#define SYSCON_PLL0CTRL_BYPASSPLL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BYPASSPLL_SHIFT)) & SYSCON_PLL0CTRL_BYPASSPLL_MASK)\r
-#define SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK (0x10000U)\r
-#define SYSCON_PLL0CTRL_BYPASSPOSTDIV2_SHIFT (16U)\r
+#define SYSCON_PLL0CTRL_BYPASSPLL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BYPASSPLL_SHIFT)) & SYSCON_PLL0CTRL_BYPASSPLL_MASK)\r
+#define SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK (0x10000U)\r
+#define SYSCON_PLL0CTRL_BYPASSPOSTDIV2_SHIFT (16U)\r
/*! BYPASSPOSTDIV2 - bypass of the divide-by-2 divider in the post-divider.\r
* 0b1..bypass of the divide-by-2 divider in the post-divider.\r
* 0b0..use the divide-by-2 divider in the post-divider.\r
*/\r
-#define SYSCON_PLL0CTRL_BYPASSPOSTDIV2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BYPASSPOSTDIV2_SHIFT)) & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK)\r
-#define SYSCON_PLL0CTRL_LIMUPOFF_MASK (0x20000U)\r
-#define SYSCON_PLL0CTRL_LIMUPOFF_SHIFT (17U)\r
-#define SYSCON_PLL0CTRL_LIMUPOFF(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_LIMUPOFF_SHIFT)) & SYSCON_PLL0CTRL_LIMUPOFF_MASK)\r
-#define SYSCON_PLL0CTRL_BWDIRECT_MASK (0x40000U)\r
-#define SYSCON_PLL0CTRL_BWDIRECT_SHIFT (18U)\r
+#define SYSCON_PLL0CTRL_BYPASSPOSTDIV2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BYPASSPOSTDIV2_SHIFT)) & SYSCON_PLL0CTRL_BYPASSPOSTDIV2_MASK)\r
+#define SYSCON_PLL0CTRL_LIMUPOFF_MASK (0x20000U)\r
+#define SYSCON_PLL0CTRL_LIMUPOFF_SHIFT (17U)\r
+/*! LIMUPOFF - limup_off = 1 in spread spectrum and fractional PLL applications.\r
+ */\r
+#define SYSCON_PLL0CTRL_LIMUPOFF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_LIMUPOFF_SHIFT)) & SYSCON_PLL0CTRL_LIMUPOFF_MASK)\r
+#define SYSCON_PLL0CTRL_BWDIRECT_MASK (0x40000U)\r
+#define SYSCON_PLL0CTRL_BWDIRECT_SHIFT (18U)\r
/*! BWDIRECT - Control of the bandwidth of the PLL.\r
* 0b1..modify the bandwidth of the PLL directly.\r
* 0b0..the bandwidth is changed synchronously with the feedback-divider.\r
*/\r
-#define SYSCON_PLL0CTRL_BWDIRECT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BWDIRECT_SHIFT)) & SYSCON_PLL0CTRL_BWDIRECT_MASK)\r
-#define SYSCON_PLL0CTRL_BYPASSPREDIV_MASK (0x80000U)\r
-#define SYSCON_PLL0CTRL_BYPASSPREDIV_SHIFT (19U)\r
+#define SYSCON_PLL0CTRL_BWDIRECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BWDIRECT_SHIFT)) & SYSCON_PLL0CTRL_BWDIRECT_MASK)\r
+#define SYSCON_PLL0CTRL_BYPASSPREDIV_MASK (0x80000U)\r
+#define SYSCON_PLL0CTRL_BYPASSPREDIV_SHIFT (19U)\r
/*! BYPASSPREDIV - bypass of the pre-divider.\r
* 0b1..bypass of the pre-divider.\r
* 0b0..use the pre-divider.\r
*/\r
-#define SYSCON_PLL0CTRL_BYPASSPREDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BYPASSPREDIV_SHIFT)) & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK)\r
-#define SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK (0x100000U)\r
-#define SYSCON_PLL0CTRL_BYPASSPOSTDIV_SHIFT (20U)\r
+#define SYSCON_PLL0CTRL_BYPASSPREDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BYPASSPREDIV_SHIFT)) & SYSCON_PLL0CTRL_BYPASSPREDIV_MASK)\r
+#define SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK (0x100000U)\r
+#define SYSCON_PLL0CTRL_BYPASSPOSTDIV_SHIFT (20U)\r
/*! BYPASSPOSTDIV - bypass of the post-divider.\r
* 0b1..bypass of the post-divider.\r
* 0b0..use the post-divider.\r
*/\r
-#define SYSCON_PLL0CTRL_BYPASSPOSTDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BYPASSPOSTDIV_SHIFT)) & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK)\r
-#define SYSCON_PLL0CTRL_CLKEN_MASK (0x200000U)\r
-#define SYSCON_PLL0CTRL_CLKEN_SHIFT (21U)\r
+#define SYSCON_PLL0CTRL_BYPASSPOSTDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_BYPASSPOSTDIV_SHIFT)) & SYSCON_PLL0CTRL_BYPASSPOSTDIV_MASK)\r
+#define SYSCON_PLL0CTRL_CLKEN_MASK (0x200000U)\r
+#define SYSCON_PLL0CTRL_CLKEN_SHIFT (21U)\r
/*! CLKEN - enable the output clock.\r
* 0b1..enable the output clock.\r
* 0b0..disable the output clock.\r
*/\r
-#define SYSCON_PLL0CTRL_CLKEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_CLKEN_SHIFT)) & SYSCON_PLL0CTRL_CLKEN_MASK)\r
-#define SYSCON_PLL0CTRL_FRMEN_MASK (0x400000U)\r
-#define SYSCON_PLL0CTRL_FRMEN_SHIFT (22U)\r
+#define SYSCON_PLL0CTRL_CLKEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_CLKEN_SHIFT)) & SYSCON_PLL0CTRL_CLKEN_MASK)\r
+#define SYSCON_PLL0CTRL_FRMEN_MASK (0x400000U)\r
+#define SYSCON_PLL0CTRL_FRMEN_SHIFT (22U)\r
/*! FRMEN - free running mode.\r
* 0b1..free running mode is enable.\r
* 0b0..free running mode is disable.\r
*/\r
-#define SYSCON_PLL0CTRL_FRMEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_FRMEN_SHIFT)) & SYSCON_PLL0CTRL_FRMEN_MASK)\r
-#define SYSCON_PLL0CTRL_FRMCLKSTABLE_MASK (0x800000U)\r
-#define SYSCON_PLL0CTRL_FRMCLKSTABLE_SHIFT (23U)\r
-#define SYSCON_PLL0CTRL_FRMCLKSTABLE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_FRMCLKSTABLE_SHIFT)) & SYSCON_PLL0CTRL_FRMCLKSTABLE_MASK)\r
-#define SYSCON_PLL0CTRL_SKEWEN_MASK (0x1000000U)\r
-#define SYSCON_PLL0CTRL_SKEWEN_SHIFT (24U)\r
+#define SYSCON_PLL0CTRL_FRMEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_FRMEN_SHIFT)) & SYSCON_PLL0CTRL_FRMEN_MASK)\r
+#define SYSCON_PLL0CTRL_FRMCLKSTABLE_MASK (0x800000U)\r
+#define SYSCON_PLL0CTRL_FRMCLKSTABLE_SHIFT (23U)\r
+/*! FRMCLKSTABLE - free running mode clockstable: Warning: Only make frm_clockstable =1 after the PLL output frequency\r
+ * is stable.\r
+ */\r
+#define SYSCON_PLL0CTRL_FRMCLKSTABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_FRMCLKSTABLE_SHIFT)) & SYSCON_PLL0CTRL_FRMCLKSTABLE_MASK)\r
+#define SYSCON_PLL0CTRL_SKEWEN_MASK (0x1000000U)\r
+#define SYSCON_PLL0CTRL_SKEWEN_SHIFT (24U)\r
/*! SKEWEN - skew mode.\r
* 0b1..skew mode is enable.\r
* 0b0..skew mode is disable.\r
*/\r
-#define SYSCON_PLL0CTRL_SKEWEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_SKEWEN_SHIFT)) & SYSCON_PLL0CTRL_SKEWEN_MASK)\r
+#define SYSCON_PLL0CTRL_SKEWEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0CTRL_SKEWEN_SHIFT)) & SYSCON_PLL0CTRL_SKEWEN_MASK)\r
/*! @} */\r
\r
/*! @name PLL0STAT - PLL0 550m status */\r
/*! @{ */\r
-#define SYSCON_PLL0STAT_LOCK_MASK (0x1U)\r
-#define SYSCON_PLL0STAT_LOCK_SHIFT (0U)\r
-#define SYSCON_PLL0STAT_LOCK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_LOCK_SHIFT)) & SYSCON_PLL0STAT_LOCK_MASK)\r
-#define SYSCON_PLL0STAT_PREDIVACK_MASK (0x2U)\r
-#define SYSCON_PLL0STAT_PREDIVACK_SHIFT (1U)\r
-#define SYSCON_PLL0STAT_PREDIVACK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_PREDIVACK_SHIFT)) & SYSCON_PLL0STAT_PREDIVACK_MASK)\r
-#define SYSCON_PLL0STAT_FEEDDIVACK_MASK (0x4U)\r
-#define SYSCON_PLL0STAT_FEEDDIVACK_SHIFT (2U)\r
-#define SYSCON_PLL0STAT_FEEDDIVACK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_FEEDDIVACK_SHIFT)) & SYSCON_PLL0STAT_FEEDDIVACK_MASK)\r
-#define SYSCON_PLL0STAT_POSTDIVACK_MASK (0x8U)\r
-#define SYSCON_PLL0STAT_POSTDIVACK_SHIFT (3U)\r
-#define SYSCON_PLL0STAT_POSTDIVACK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_POSTDIVACK_SHIFT)) & SYSCON_PLL0STAT_POSTDIVACK_MASK)\r
-#define SYSCON_PLL0STAT_FRMDET_MASK (0x10U)\r
-#define SYSCON_PLL0STAT_FRMDET_SHIFT (4U)\r
-#define SYSCON_PLL0STAT_FRMDET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_FRMDET_SHIFT)) & SYSCON_PLL0STAT_FRMDET_MASK)\r
+#define SYSCON_PLL0STAT_LOCK_MASK (0x1U)\r
+#define SYSCON_PLL0STAT_LOCK_SHIFT (0U)\r
+/*! LOCK - lock detector output (active high) Warning: The lock signal is only reliable between fref[2] :100 kHz to 20\r
+ * MHz.\r
+ */\r
+#define SYSCON_PLL0STAT_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_LOCK_SHIFT)) & SYSCON_PLL0STAT_LOCK_MASK)\r
+#define SYSCON_PLL0STAT_PREDIVACK_MASK (0x2U)\r
+#define SYSCON_PLL0STAT_PREDIVACK_SHIFT (1U)\r
+/*! PREDIVACK - pre-divider ratio change acknowledge.\r
+ */\r
+#define SYSCON_PLL0STAT_PREDIVACK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_PREDIVACK_SHIFT)) & SYSCON_PLL0STAT_PREDIVACK_MASK)\r
+#define SYSCON_PLL0STAT_FEEDDIVACK_MASK (0x4U)\r
+#define SYSCON_PLL0STAT_FEEDDIVACK_SHIFT (2U)\r
+/*! FEEDDIVACK - feedback divider ratio change acknowledge.\r
+ */\r
+#define SYSCON_PLL0STAT_FEEDDIVACK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_FEEDDIVACK_SHIFT)) & SYSCON_PLL0STAT_FEEDDIVACK_MASK)\r
+#define SYSCON_PLL0STAT_POSTDIVACK_MASK (0x8U)\r
+#define SYSCON_PLL0STAT_POSTDIVACK_SHIFT (3U)\r
+/*! POSTDIVACK - post-divider ratio change acknowledge.\r
+ */\r
+#define SYSCON_PLL0STAT_POSTDIVACK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_POSTDIVACK_SHIFT)) & SYSCON_PLL0STAT_POSTDIVACK_MASK)\r
+#define SYSCON_PLL0STAT_FRMDET_MASK (0x10U)\r
+#define SYSCON_PLL0STAT_FRMDET_SHIFT (4U)\r
+/*! FRMDET - free running detector output (active high).\r
+ */\r
+#define SYSCON_PLL0STAT_FRMDET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0STAT_FRMDET_SHIFT)) & SYSCON_PLL0STAT_FRMDET_MASK)\r
/*! @} */\r
\r
/*! @name PLL0NDEC - PLL0 550m N divider */\r
/*! @{ */\r
-#define SYSCON_PLL0NDEC_NDIV_MASK (0xFFU)\r
-#define SYSCON_PLL0NDEC_NDIV_SHIFT (0U)\r
-#define SYSCON_PLL0NDEC_NDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0NDEC_NDIV_SHIFT)) & SYSCON_PLL0NDEC_NDIV_MASK)\r
-#define SYSCON_PLL0NDEC_NREQ_MASK (0x100U)\r
-#define SYSCON_PLL0NDEC_NREQ_SHIFT (8U)\r
-#define SYSCON_PLL0NDEC_NREQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0NDEC_NREQ_SHIFT)) & SYSCON_PLL0NDEC_NREQ_MASK)\r
+#define SYSCON_PLL0NDEC_NDIV_MASK (0xFFU)\r
+#define SYSCON_PLL0NDEC_NDIV_SHIFT (0U)\r
+/*! NDIV - pre-divider divider ratio (N-divider).\r
+ */\r
+#define SYSCON_PLL0NDEC_NDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0NDEC_NDIV_SHIFT)) & SYSCON_PLL0NDEC_NDIV_MASK)\r
+#define SYSCON_PLL0NDEC_NREQ_MASK (0x100U)\r
+#define SYSCON_PLL0NDEC_NREQ_SHIFT (8U)\r
+/*! NREQ - pre-divider ratio change request.\r
+ */\r
+#define SYSCON_PLL0NDEC_NREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0NDEC_NREQ_SHIFT)) & SYSCON_PLL0NDEC_NREQ_MASK)\r
/*! @} */\r
\r
/*! @name PLL0PDEC - PLL0 550m P divider */\r
/*! @{ */\r
-#define SYSCON_PLL0PDEC_PDIV_MASK (0x1FU)\r
-#define SYSCON_PLL0PDEC_PDIV_SHIFT (0U)\r
-#define SYSCON_PLL0PDEC_PDIV(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0PDEC_PDIV_SHIFT)) & SYSCON_PLL0PDEC_PDIV_MASK)\r
-#define SYSCON_PLL0PDEC_PREQ_MASK (0x20U)\r
-#define SYSCON_PLL0PDEC_PREQ_SHIFT (5U)\r
-#define SYSCON_PLL0PDEC_PREQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0PDEC_PREQ_SHIFT)) & SYSCON_PLL0PDEC_PREQ_MASK)\r
+#define SYSCON_PLL0PDEC_PDIV_MASK (0x1FU)\r
+#define SYSCON_PLL0PDEC_PDIV_SHIFT (0U)\r
+/*! PDIV - post-divider divider ratio (P-divider)\r
+ */\r
+#define SYSCON_PLL0PDEC_PDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0PDEC_PDIV_SHIFT)) & SYSCON_PLL0PDEC_PDIV_MASK)\r
+#define SYSCON_PLL0PDEC_PREQ_MASK (0x20U)\r
+#define SYSCON_PLL0PDEC_PREQ_SHIFT (5U)\r
+/*! PREQ - feedback ratio change request.\r
+ */\r
+#define SYSCON_PLL0PDEC_PREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0PDEC_PREQ_SHIFT)) & SYSCON_PLL0PDEC_PREQ_MASK)\r
/*! @} */\r
\r
/*! @name PLL0SSCG0 - PLL0 Spread Spectrum Wrapper control register 0 */\r
/*! @{ */\r
-#define SYSCON_PLL0SSCG0_MD_LBS_MASK (0xFFFFFFFFU)\r
-#define SYSCON_PLL0SSCG0_MD_LBS_SHIFT (0U)\r
-#define SYSCON_PLL0SSCG0_MD_LBS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG0_MD_LBS_SHIFT)) & SYSCON_PLL0SSCG0_MD_LBS_MASK)\r
+#define SYSCON_PLL0SSCG0_MD_LBS_MASK (0xFFFFFFFFU)\r
+#define SYSCON_PLL0SSCG0_MD_LBS_SHIFT (0U)\r
+/*! MD_LBS - input word of the wrapper bit 31 to 0.\r
+ */\r
+#define SYSCON_PLL0SSCG0_MD_LBS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG0_MD_LBS_SHIFT)) & SYSCON_PLL0SSCG0_MD_LBS_MASK)\r
/*! @} */\r
\r
/*! @name PLL0SSCG1 - PLL0 Spread Spectrum Wrapper control register 1 */\r
/*! @{ */\r
-#define SYSCON_PLL0SSCG1_MD_MBS_MASK (0x1U)\r
-#define SYSCON_PLL0SSCG1_MD_MBS_SHIFT (0U)\r
-#define SYSCON_PLL0SSCG1_MD_MBS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MD_MBS_SHIFT)) & SYSCON_PLL0SSCG1_MD_MBS_MASK)\r
-#define SYSCON_PLL0SSCG1_MD_REQ_MASK (0x2U)\r
-#define SYSCON_PLL0SSCG1_MD_REQ_SHIFT (1U)\r
-#define SYSCON_PLL0SSCG1_MD_REQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MD_REQ_SHIFT)) & SYSCON_PLL0SSCG1_MD_REQ_MASK)\r
-#define SYSCON_PLL0SSCG1_MF_MASK (0x1CU)\r
-#define SYSCON_PLL0SSCG1_MF_SHIFT (2U)\r
-#define SYSCON_PLL0SSCG1_MF(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MF_SHIFT)) & SYSCON_PLL0SSCG1_MF_MASK)\r
-#define SYSCON_PLL0SSCG1_MR_MASK (0xE0U)\r
-#define SYSCON_PLL0SSCG1_MR_SHIFT (5U)\r
-#define SYSCON_PLL0SSCG1_MR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MR_SHIFT)) & SYSCON_PLL0SSCG1_MR_MASK)\r
-#define SYSCON_PLL0SSCG1_MC_MASK (0x300U)\r
-#define SYSCON_PLL0SSCG1_MC_SHIFT (8U)\r
-#define SYSCON_PLL0SSCG1_MC(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MC_SHIFT)) & SYSCON_PLL0SSCG1_MC_MASK)\r
-#define SYSCON_PLL0SSCG1_MDIV_EXT_MASK (0x3FFFC00U)\r
-#define SYSCON_PLL0SSCG1_MDIV_EXT_SHIFT (10U)\r
-#define SYSCON_PLL0SSCG1_MDIV_EXT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MDIV_EXT_SHIFT)) & SYSCON_PLL0SSCG1_MDIV_EXT_MASK)\r
-#define SYSCON_PLL0SSCG1_MREQ_MASK (0x4000000U)\r
-#define SYSCON_PLL0SSCG1_MREQ_SHIFT (26U)\r
-#define SYSCON_PLL0SSCG1_MREQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MREQ_SHIFT)) & SYSCON_PLL0SSCG1_MREQ_MASK)\r
-#define SYSCON_PLL0SSCG1_DITHER_MASK (0x8000000U)\r
-#define SYSCON_PLL0SSCG1_DITHER_SHIFT (27U)\r
-#define SYSCON_PLL0SSCG1_DITHER(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_DITHER_SHIFT)) & SYSCON_PLL0SSCG1_DITHER_MASK)\r
-#define SYSCON_PLL0SSCG1_SEL_EXT_MASK (0x10000000U)\r
-#define SYSCON_PLL0SSCG1_SEL_EXT_SHIFT (28U)\r
-#define SYSCON_PLL0SSCG1_SEL_EXT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_SEL_EXT_SHIFT)) & SYSCON_PLL0SSCG1_SEL_EXT_MASK)\r
-/*! @} */\r
-\r
-/*! @name EFUSECLKCTRL - eFUSE controller clock enable */\r
-/*! @{ */\r
-#define SYSCON_EFUSECLKCTRL_EFUSECLKENA_MASK (0x1U)\r
-#define SYSCON_EFUSECLKCTRL_EFUSECLKENA_SHIFT (0U)\r
-#define SYSCON_EFUSECLKCTRL_EFUSECLKENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_EFUSECLKCTRL_EFUSECLKENA_SHIFT)) & SYSCON_EFUSECLKCTRL_EFUSECLKENA_MASK)\r
-/*! @} */\r
-\r
-/*! @name STARTER - Start logic wake-up enable register */\r
-/*! @{ */\r
-#define SYSCON_STARTER_GPIO_INT04_MASK (0x1U)\r
-#define SYSCON_STARTER_GPIO_INT04_SHIFT (0U)\r
-/*! GPIO_INT04 - GPIO_INT04 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_GPIO_INT04(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_GPIO_INT04_SHIFT)) & SYSCON_STARTER_GPIO_INT04_MASK)\r
-#define SYSCON_STARTER_SYS_MASK (0x1U)\r
-#define SYSCON_STARTER_SYS_SHIFT (0U)\r
-/*! SYS - SYS interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SYS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SYS_SHIFT)) & SYSCON_STARTER_SYS_MASK)\r
-#define SYSCON_STARTER_GPIO_INT05_MASK (0x2U)\r
-#define SYSCON_STARTER_GPIO_INT05_SHIFT (1U)\r
-/*! GPIO_INT05 - GPIO_INT05 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_GPIO_INT05(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_GPIO_INT05_SHIFT)) & SYSCON_STARTER_GPIO_INT05_MASK)\r
-#define SYSCON_STARTER_SDMA0_MASK (0x2U)\r
-#define SYSCON_STARTER_SDMA0_SHIFT (1U)\r
-/*! SDMA0 - SDMA0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SDMA0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SDMA0_SHIFT)) & SYSCON_STARTER_SDMA0_MASK)\r
-#define SYSCON_STARTER_GINT0_MASK (0x4U)\r
-#define SYSCON_STARTER_GINT0_SHIFT (2U)\r
-/*! GINT0 - GINT0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_GINT0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_GINT0_SHIFT)) & SYSCON_STARTER_GINT0_MASK)\r
-#define SYSCON_STARTER_GPIO_INT06_MASK (0x4U)\r
-#define SYSCON_STARTER_GPIO_INT06_SHIFT (2U)\r
-/*! GPIO_INT06 - GPIO_INT06 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_GPIO_INT06(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_GPIO_INT06_SHIFT)) & SYSCON_STARTER_GPIO_INT06_MASK)\r
-#define SYSCON_STARTER_GINT1_MASK (0x8U)\r
-#define SYSCON_STARTER_GINT1_SHIFT (3U)\r
-/*! GINT1 - GINT1 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_GINT1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_GINT1_SHIFT)) & SYSCON_STARTER_GINT1_MASK)\r
-#define SYSCON_STARTER_GPIO_INT07_MASK (0x8U)\r
-#define SYSCON_STARTER_GPIO_INT07_SHIFT (3U)\r
-/*! GPIO_INT07 - GPIO_INT07 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_GPIO_INT07(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_GPIO_INT07_SHIFT)) & SYSCON_STARTER_GPIO_INT07_MASK)\r
-#define SYSCON_STARTER_CTIMER2_MASK (0x10U)\r
-#define SYSCON_STARTER_CTIMER2_SHIFT (4U)\r
-/*! CTIMER2 - CTIMER2 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_CTIMER2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_CTIMER2_SHIFT)) & SYSCON_STARTER_CTIMER2_MASK)\r
-#define SYSCON_STARTER_PIO_INT0_MASK (0x10U)\r
-#define SYSCON_STARTER_PIO_INT0_SHIFT (4U)\r
-/*! PIO_INT0 - PIO_INT0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_PIO_INT0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_PIO_INT0_SHIFT)) & SYSCON_STARTER_PIO_INT0_MASK)\r
-#define SYSCON_STARTER_CTIMER4_MASK (0x20U)\r
-#define SYSCON_STARTER_CTIMER4_SHIFT (5U)\r
-/*! CTIMER4 - CTIMER4 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_CTIMER4(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_CTIMER4_SHIFT)) & SYSCON_STARTER_CTIMER4_MASK)\r
-#define SYSCON_STARTER_PIO_INT1_MASK (0x20U)\r
-#define SYSCON_STARTER_PIO_INT1_SHIFT (5U)\r
-/*! PIO_INT1 - PIO_INT1 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_PIO_INT1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_PIO_INT1_SHIFT)) & SYSCON_STARTER_PIO_INT1_MASK)\r
-#define SYSCON_STARTER_OS_EVENT_MASK (0x40U)\r
-#define SYSCON_STARTER_OS_EVENT_SHIFT (6U)\r
-/*! OS_EVENT - OS_EVENT interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_OS_EVENT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_OS_EVENT_SHIFT)) & SYSCON_STARTER_OS_EVENT_MASK)\r
-#define SYSCON_STARTER_PIO_INT2_MASK (0x40U)\r
-#define SYSCON_STARTER_PIO_INT2_SHIFT (6U)\r
-/*! PIO_INT2 - PIO_INT2 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_PIO_INT2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_PIO_INT2_SHIFT)) & SYSCON_STARTER_PIO_INT2_MASK)\r
-#define SYSCON_STARTER_PIO_INT3_MASK (0x80U)\r
-#define SYSCON_STARTER_PIO_INT3_SHIFT (7U)\r
-/*! PIO_INT3 - PIO_INT3 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_PIO_INT3(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_PIO_INT3_SHIFT)) & SYSCON_STARTER_PIO_INT3_MASK)\r
-#define SYSCON_STARTER_UTICK0_MASK (0x100U)\r
-#define SYSCON_STARTER_UTICK0_SHIFT (8U)\r
-/*! UTICK0 - UTICK0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_UTICK0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_UTICK0_SHIFT)) & SYSCON_STARTER_UTICK0_MASK)\r
-#define SYSCON_STARTER_MRT0_MASK (0x200U)\r
-#define SYSCON_STARTER_MRT0_SHIFT (9U)\r
-/*! MRT0 - MRT0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_MRT0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_MRT0_SHIFT)) & SYSCON_STARTER_MRT0_MASK)\r
-#define SYSCON_STARTER_CTIMER0_MASK (0x400U)\r
-#define SYSCON_STARTER_CTIMER0_SHIFT (10U)\r
-/*! CTIMER0 - CTIMER0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_CTIMER0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_CTIMER0_SHIFT)) & SYSCON_STARTER_CTIMER0_MASK)\r
-#define SYSCON_STARTER_SDIO_MASK (0x400U)\r
-#define SYSCON_STARTER_SDIO_SHIFT (10U)\r
-/*! SDIO - SDIO interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SDIO(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SDIO_SHIFT)) & SYSCON_STARTER_SDIO_MASK)\r
-#define SYSCON_STARTER_CTIMER1_MASK (0x800U)\r
-#define SYSCON_STARTER_CTIMER1_SHIFT (11U)\r
-/*! CTIMER1 - CTIMER1 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_CTIMER1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_CTIMER1_SHIFT)) & SYSCON_STARTER_CTIMER1_MASK)\r
-#define SYSCON_STARTER_SCT0_MASK (0x1000U)\r
-#define SYSCON_STARTER_SCT0_SHIFT (12U)\r
-/*! SCT0 - SCT0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SCT0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SCT0_SHIFT)) & SYSCON_STARTER_SCT0_MASK)\r
-#define SYSCON_STARTER_CTIMER3_MASK (0x2000U)\r
-#define SYSCON_STARTER_CTIMER3_SHIFT (13U)\r
-/*! CTIMER3 - CTIMER3 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_CTIMER3(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_CTIMER3_SHIFT)) & SYSCON_STARTER_CTIMER3_MASK)\r
-#define SYSCON_STARTER_FLEXINT0_MASK (0x4000U)\r
-#define SYSCON_STARTER_FLEXINT0_SHIFT (14U)\r
-/*! FLEXINT0 - FLEXINT0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_FLEXINT0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_FLEXINT0_SHIFT)) & SYSCON_STARTER_FLEXINT0_MASK)\r
-#define SYSCON_STARTER_FLEXINT1_MASK (0x8000U)\r
-#define SYSCON_STARTER_FLEXINT1_SHIFT (15U)\r
-/*! FLEXINT1 - FLEXINT1 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_FLEXINT1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_FLEXINT1_SHIFT)) & SYSCON_STARTER_FLEXINT1_MASK)\r
-#define SYSCON_STARTER_USB1_MASK (0x8000U)\r
-#define SYSCON_STARTER_USB1_SHIFT (15U)\r
-/*! USB1 - USB1 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_USB1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_USB1_SHIFT)) & SYSCON_STARTER_USB1_MASK)\r
-#define SYSCON_STARTER_FLEXINT2_MASK (0x10000U)\r
-#define SYSCON_STARTER_FLEXINT2_SHIFT (16U)\r
-/*! FLEXINT2 - FLEXINT2 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_FLEXINT2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_FLEXINT2_SHIFT)) & SYSCON_STARTER_FLEXINT2_MASK)\r
-#define SYSCON_STARTER_USB1_NEEDCLK_MASK (0x10000U)\r
-#define SYSCON_STARTER_USB1_NEEDCLK_SHIFT (16U)\r
-/*! USB1_NEEDCLK - USB1_NEEDCLK interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_USB1_NEEDCLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_USB1_NEEDCLK_SHIFT)) & SYSCON_STARTER_USB1_NEEDCLK_MASK)\r
-#define SYSCON_STARTER_FLEXINT3_MASK (0x20000U)\r
-#define SYSCON_STARTER_FLEXINT3_SHIFT (17U)\r
-/*! FLEXINT3 - FLEXINT3 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_FLEXINT3(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_FLEXINT3_SHIFT)) & SYSCON_STARTER_FLEXINT3_MASK)\r
-#define SYSCON_STARTER_SEC_HYPERVISOR_CALL_MASK (0x20000U)\r
-#define SYSCON_STARTER_SEC_HYPERVISOR_CALL_SHIFT (17U)\r
-/*! SEC_HYPERVISOR_CALL - SEC_HYPERVISOR_CALL interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SEC_HYPERVISOR_CALL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SEC_HYPERVISOR_CALL_SHIFT)) & SYSCON_STARTER_SEC_HYPERVISOR_CALL_MASK)\r
-#define SYSCON_STARTER_FLEXINT4_MASK (0x40000U)\r
-#define SYSCON_STARTER_FLEXINT4_SHIFT (18U)\r
-/*! FLEXINT4 - FLEXINT4 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_FLEXINT4(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_FLEXINT4_SHIFT)) & SYSCON_STARTER_FLEXINT4_MASK)\r
-#define SYSCON_STARTER_SEC_GPIO_INT00_MASK (0x40000U)\r
-#define SYSCON_STARTER_SEC_GPIO_INT00_SHIFT (18U)\r
-/*! SEC_GPIO_INT00 - SEC_GPIO_INT00 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SEC_GPIO_INT00(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SEC_GPIO_INT00_SHIFT)) & SYSCON_STARTER_SEC_GPIO_INT00_MASK)\r
-#define SYSCON_STARTER_FLEXINT5_MASK (0x80000U)\r
-#define SYSCON_STARTER_FLEXINT5_SHIFT (19U)\r
-/*! FLEXINT5 - FLEXINT5 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_FLEXINT5(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_FLEXINT5_SHIFT)) & SYSCON_STARTER_FLEXINT5_MASK)\r
-#define SYSCON_STARTER_SEC_GPIO_INT01_MASK (0x80000U)\r
-#define SYSCON_STARTER_SEC_GPIO_INT01_SHIFT (19U)\r
-/*! SEC_GPIO_INT01 - SEC_GPIO_INT01 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SEC_GPIO_INT01(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SEC_GPIO_INT01_SHIFT)) & SYSCON_STARTER_SEC_GPIO_INT01_MASK)\r
-#define SYSCON_STARTER_FLEXINT6_MASK (0x100000U)\r
-#define SYSCON_STARTER_FLEXINT6_SHIFT (20U)\r
-/*! FLEXINT6 - FLEXINT6 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_FLEXINT6(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_FLEXINT6_SHIFT)) & SYSCON_STARTER_FLEXINT6_MASK)\r
-#define SYSCON_STARTER_PLU_MASK (0x100000U)\r
-#define SYSCON_STARTER_PLU_SHIFT (20U)\r
-/*! PLU - PLU interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_PLU(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_PLU_SHIFT)) & SYSCON_STARTER_PLU_MASK)\r
-#define SYSCON_STARTER_FLEXINT7_MASK (0x200000U)\r
-#define SYSCON_STARTER_FLEXINT7_SHIFT (21U)\r
-/*! FLEXINT7 - FLEXINT7 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_FLEXINT7(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_FLEXINT7_SHIFT)) & SYSCON_STARTER_FLEXINT7_MASK)\r
-#define SYSCON_STARTER_SEC_VIO_MASK (0x200000U)\r
-#define SYSCON_STARTER_SEC_VIO_SHIFT (21U)\r
-/*! SEC_VIO - SEC_VIO interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SEC_VIO(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SEC_VIO_SHIFT)) & SYSCON_STARTER_SEC_VIO_MASK)\r
-#define SYSCON_STARTER_ADC0_MASK (0x400000U)\r
-#define SYSCON_STARTER_ADC0_SHIFT (22U)\r
-/*! ADC0 - ADC0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_ADC0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_ADC0_SHIFT)) & SYSCON_STARTER_ADC0_MASK)\r
-#define SYSCON_STARTER_SHA_MASK (0x400000U)\r
-#define SYSCON_STARTER_SHA_SHIFT (22U)\r
-/*! SHA - SHA interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SHA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SHA_SHIFT)) & SYSCON_STARTER_SHA_MASK)\r
-#define SYSCON_STARTER_CASER_MASK (0x800000U)\r
-#define SYSCON_STARTER_CASER_SHIFT (23U)\r
-/*! CASER - CASER interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_CASER(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_CASER_SHIFT)) & SYSCON_STARTER_CASER_MASK)\r
-#define SYSCON_STARTER_ADC0_THCMP_OVR_MASK (0x1000000U)\r
-#define SYSCON_STARTER_ADC0_THCMP_OVR_SHIFT (24U)\r
-/*! ADC0_THCMP_OVR - ADC0_THCMP_OVR interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_ADC0_THCMP_OVR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_ADC0_THCMP_OVR_SHIFT)) & SYSCON_STARTER_ADC0_THCMP_OVR_MASK)\r
-#define SYSCON_STARTER_QDDKEY_MASK (0x1000000U)\r
-#define SYSCON_STARTER_QDDKEY_SHIFT (24U)\r
-/*! QDDKEY - QDDKEY interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_QDDKEY(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_QDDKEY_SHIFT)) & SYSCON_STARTER_QDDKEY_MASK)\r
-#define SYSCON_STARTER_PQ_MASK (0x2000000U)\r
-#define SYSCON_STARTER_PQ_SHIFT (25U)\r
-/*! PQ - PQ interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_PQ(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_PQ_SHIFT)) & SYSCON_STARTER_PQ_MASK)\r
-#define SYSCON_STARTER_SDMA1_MASK (0x4000000U)\r
-#define SYSCON_STARTER_SDMA1_SHIFT (26U)\r
-/*! SDMA1 - SDMA1 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_SDMA1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_SDMA1_SHIFT)) & SYSCON_STARTER_SDMA1_MASK)\r
-#define SYSCON_STARTER_LSPI_HS_MASK (0x8000000U)\r
-#define SYSCON_STARTER_LSPI_HS_SHIFT (27U)\r
-/*! LSPI_HS - LSPI_HS interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_LSPI_HS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_LSPI_HS_SHIFT)) & SYSCON_STARTER_LSPI_HS_MASK)\r
-#define SYSCON_STARTER_USB0_NEEDCLK_MASK (0x8000000U)\r
-#define SYSCON_STARTER_USB0_NEEDCLK_SHIFT (27U)\r
-/*! USB0_NEEDCLK - USB0_NEEDCLK interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_USB0_NEEDCLK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_USB0_NEEDCLK_SHIFT)) & SYSCON_STARTER_USB0_NEEDCLK_MASK)\r
-#define SYSCON_STARTER_USB0_MASK (0x10000000U)\r
-#define SYSCON_STARTER_USB0_SHIFT (28U)\r
-/*! USB0 - USB0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_USB0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_USB0_SHIFT)) & SYSCON_STARTER_USB0_MASK)\r
-#define SYSCON_STARTER_RTC_LITE0_MASK (0x20000000U)\r
-#define SYSCON_STARTER_RTC_LITE0_SHIFT (29U)\r
-/*! RTC_LITE0 - RTC_LITE0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_RTC_LITE0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_RTC_LITE0_SHIFT)) & SYSCON_STARTER_RTC_LITE0_MASK)\r
-#define SYSCON_STARTER_EZH_ARCH_B0_MASK (0x40000000U)\r
-#define SYSCON_STARTER_EZH_ARCH_B0_SHIFT (30U)\r
-/*! EZH_ARCH_B0 - EZH_ARCH_B0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_EZH_ARCH_B0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_EZH_ARCH_B0_SHIFT)) & SYSCON_STARTER_EZH_ARCH_B0_MASK)\r
-#define SYSCON_STARTER_WAKEUPPADS_MASK (0x80000000U)\r
-#define SYSCON_STARTER_WAKEUPPADS_SHIFT (31U)\r
-#define SYSCON_STARTER_WAKEUPPADS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_WAKEUPPADS_SHIFT)) & SYSCON_STARTER_WAKEUPPADS_MASK)\r
-#define SYSCON_STARTER_WAKEUP_MAILBOX0_MASK (0x80000000U)\r
-#define SYSCON_STARTER_WAKEUP_MAILBOX0_SHIFT (31U)\r
-/*! WAKEUP_MAILBOX0 - WAKEUP_MAILBOX0 interrupt wake-up.\r
- * 0b0..Wake-up disabled.\r
- * 0b1..Wake-up enabled.\r
- */\r
-#define SYSCON_STARTER_WAKEUP_MAILBOX0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTER_WAKEUP_MAILBOX0_SHIFT)) & SYSCON_STARTER_WAKEUP_MAILBOX0_MASK)\r
-/*! @} */\r
-\r
-/* The count of SYSCON_STARTER */\r
-#define SYSCON_STARTER_COUNT (2U)\r
-\r
-/*! @name STARTERSET - Set bits in STARTER */\r
-/*! @{ */\r
-#define SYSCON_STARTERSET_GPIO_INT04_SET_MASK (0x1U)\r
-#define SYSCON_STARTERSET_GPIO_INT04_SET_SHIFT (0U)\r
-#define SYSCON_STARTERSET_GPIO_INT04_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_INT04_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_INT04_SET_MASK)\r
-#define SYSCON_STARTERSET_SYS_SET_MASK (0x1U)\r
-#define SYSCON_STARTERSET_SYS_SET_SHIFT (0U)\r
-#define SYSCON_STARTERSET_SYS_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SYS_SET_SHIFT)) & SYSCON_STARTERSET_SYS_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_INT05_SET_MASK (0x2U)\r
-#define SYSCON_STARTERSET_GPIO_INT05_SET_SHIFT (1U)\r
-#define SYSCON_STARTERSET_GPIO_INT05_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_INT05_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_INT05_SET_MASK)\r
-#define SYSCON_STARTERSET_SDMA0_SET_MASK (0x2U)\r
-#define SYSCON_STARTERSET_SDMA0_SET_SHIFT (1U)\r
-#define SYSCON_STARTERSET_SDMA0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SDMA0_SET_SHIFT)) & SYSCON_STARTERSET_SDMA0_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_GLOBALINT0_SET_MASK (0x4U)\r
-#define SYSCON_STARTERSET_GPIO_GLOBALINT0_SET_SHIFT (2U)\r
-#define SYSCON_STARTERSET_GPIO_GLOBALINT0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_GLOBALINT0_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_GLOBALINT0_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_INT06_SET_MASK (0x4U)\r
-#define SYSCON_STARTERSET_GPIO_INT06_SET_SHIFT (2U)\r
-#define SYSCON_STARTERSET_GPIO_INT06_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_INT06_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_INT06_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_GLOBALINT1_SET_MASK (0x8U)\r
-#define SYSCON_STARTERSET_GPIO_GLOBALINT1_SET_SHIFT (3U)\r
-#define SYSCON_STARTERSET_GPIO_GLOBALINT1_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_GLOBALINT1_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_GLOBALINT1_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_INT07_SET_MASK (0x8U)\r
-#define SYSCON_STARTERSET_GPIO_INT07_SET_SHIFT (3U)\r
-#define SYSCON_STARTERSET_GPIO_INT07_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_INT07_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_INT07_SET_MASK)\r
-#define SYSCON_STARTERSET_CTIMER2_SET_MASK (0x10U)\r
-#define SYSCON_STARTERSET_CTIMER2_SET_SHIFT (4U)\r
-#define SYSCON_STARTERSET_CTIMER2_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_CTIMER2_SET_SHIFT)) & SYSCON_STARTERSET_CTIMER2_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_INT00_SET_MASK (0x10U)\r
-#define SYSCON_STARTERSET_GPIO_INT00_SET_SHIFT (4U)\r
-#define SYSCON_STARTERSET_GPIO_INT00_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_INT00_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_INT00_SET_MASK)\r
-#define SYSCON_STARTERSET_CTIMER4_SET_MASK (0x20U)\r
-#define SYSCON_STARTERSET_CTIMER4_SET_SHIFT (5U)\r
-#define SYSCON_STARTERSET_CTIMER4_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_CTIMER4_SET_SHIFT)) & SYSCON_STARTERSET_CTIMER4_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_INT01_SET_MASK (0x20U)\r
-#define SYSCON_STARTERSET_GPIO_INT01_SET_SHIFT (5U)\r
-#define SYSCON_STARTERSET_GPIO_INT01_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_INT01_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_INT01_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_INT02_SET_MASK (0x40U)\r
-#define SYSCON_STARTERSET_GPIO_INT02_SET_SHIFT (6U)\r
-#define SYSCON_STARTERSET_GPIO_INT02_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_INT02_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_INT02_SET_MASK)\r
-#define SYSCON_STARTERSET_OS_EVENT_SET_MASK (0x40U)\r
-#define SYSCON_STARTERSET_OS_EVENT_SET_SHIFT (6U)\r
-#define SYSCON_STARTERSET_OS_EVENT_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_OS_EVENT_SET_SHIFT)) & SYSCON_STARTERSET_OS_EVENT_SET_MASK)\r
-#define SYSCON_STARTERSET_GPIO_INT03_SET_MASK (0x80U)\r
-#define SYSCON_STARTERSET_GPIO_INT03_SET_SHIFT (7U)\r
-#define SYSCON_STARTERSET_GPIO_INT03_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_GPIO_INT03_SET_SHIFT)) & SYSCON_STARTERSET_GPIO_INT03_SET_MASK)\r
-#define SYSCON_STARTERSET_UTICK0_SET_MASK (0x100U)\r
-#define SYSCON_STARTERSET_UTICK0_SET_SHIFT (8U)\r
-#define SYSCON_STARTERSET_UTICK0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_UTICK0_SET_SHIFT)) & SYSCON_STARTERSET_UTICK0_SET_MASK)\r
-#define SYSCON_STARTERSET_MRT0_SET_MASK (0x200U)\r
-#define SYSCON_STARTERSET_MRT0_SET_SHIFT (9U)\r
-#define SYSCON_STARTERSET_MRT0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_MRT0_SET_SHIFT)) & SYSCON_STARTERSET_MRT0_SET_MASK)\r
-#define SYSCON_STARTERSET_CTIMER0_SET_MASK (0x400U)\r
-#define SYSCON_STARTERSET_CTIMER0_SET_SHIFT (10U)\r
-#define SYSCON_STARTERSET_CTIMER0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_CTIMER0_SET_SHIFT)) & SYSCON_STARTERSET_CTIMER0_SET_MASK)\r
-#define SYSCON_STARTERSET_SDIO_SET_MASK (0x400U)\r
-#define SYSCON_STARTERSET_SDIO_SET_SHIFT (10U)\r
-#define SYSCON_STARTERSET_SDIO_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SDIO_SET_SHIFT)) & SYSCON_STARTERSET_SDIO_SET_MASK)\r
-#define SYSCON_STARTERSET_CTIMER1_SET_MASK (0x800U)\r
-#define SYSCON_STARTERSET_CTIMER1_SET_SHIFT (11U)\r
-#define SYSCON_STARTERSET_CTIMER1_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_CTIMER1_SET_SHIFT)) & SYSCON_STARTERSET_CTIMER1_SET_MASK)\r
-#define SYSCON_STARTERSET_SCT0_SET_MASK (0x1000U)\r
-#define SYSCON_STARTERSET_SCT0_SET_SHIFT (12U)\r
-#define SYSCON_STARTERSET_SCT0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SCT0_SET_SHIFT)) & SYSCON_STARTERSET_SCT0_SET_MASK)\r
-#define SYSCON_STARTERSET_CTIMER3_SET_MASK (0x2000U)\r
-#define SYSCON_STARTERSET_CTIMER3_SET_SHIFT (13U)\r
-#define SYSCON_STARTERSET_CTIMER3_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_CTIMER3_SET_SHIFT)) & SYSCON_STARTERSET_CTIMER3_SET_MASK)\r
-#define SYSCON_STARTERSET_FLEXINT0_SET_MASK (0x4000U)\r
-#define SYSCON_STARTERSET_FLEXINT0_SET_SHIFT (14U)\r
-#define SYSCON_STARTERSET_FLEXINT0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_FLEXINT0_SET_SHIFT)) & SYSCON_STARTERSET_FLEXINT0_SET_MASK)\r
-#define SYSCON_STARTERSET_FLEXINT1_SET_MASK (0x8000U)\r
-#define SYSCON_STARTERSET_FLEXINT1_SET_SHIFT (15U)\r
-#define SYSCON_STARTERSET_FLEXINT1_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_FLEXINT1_SET_SHIFT)) & SYSCON_STARTERSET_FLEXINT1_SET_MASK)\r
-#define SYSCON_STARTERSET_USB1_SET_MASK (0x8000U)\r
-#define SYSCON_STARTERSET_USB1_SET_SHIFT (15U)\r
-#define SYSCON_STARTERSET_USB1_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_USB1_SET_SHIFT)) & SYSCON_STARTERSET_USB1_SET_MASK)\r
-#define SYSCON_STARTERSET_FLEXINT2_SET_MASK (0x10000U)\r
-#define SYSCON_STARTERSET_FLEXINT2_SET_SHIFT (16U)\r
-#define SYSCON_STARTERSET_FLEXINT2_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_FLEXINT2_SET_SHIFT)) & SYSCON_STARTERSET_FLEXINT2_SET_MASK)\r
-#define SYSCON_STARTERSET_USB1_NEEDCLK_SET_MASK (0x10000U)\r
-#define SYSCON_STARTERSET_USB1_NEEDCLK_SET_SHIFT (16U)\r
-#define SYSCON_STARTERSET_USB1_NEEDCLK_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_USB1_NEEDCLK_SET_SHIFT)) & SYSCON_STARTERSET_USB1_NEEDCLK_SET_MASK)\r
-#define SYSCON_STARTERSET_FLEXINT3_SET_MASK (0x20000U)\r
-#define SYSCON_STARTERSET_FLEXINT3_SET_SHIFT (17U)\r
-#define SYSCON_STARTERSET_FLEXINT3_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_FLEXINT3_SET_SHIFT)) & SYSCON_STARTERSET_FLEXINT3_SET_MASK)\r
-#define SYSCON_STARTERSET_SEC_HYPERVISOR_CALL_SET_MASK (0x20000U)\r
-#define SYSCON_STARTERSET_SEC_HYPERVISOR_CALL_SET_SHIFT (17U)\r
-#define SYSCON_STARTERSET_SEC_HYPERVISOR_CALL_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SEC_HYPERVISOR_CALL_SET_SHIFT)) & SYSCON_STARTERSET_SEC_HYPERVISOR_CALL_SET_MASK)\r
-#define SYSCON_STARTERSET_FLEXINT4_SET_MASK (0x40000U)\r
-#define SYSCON_STARTERSET_FLEXINT4_SET_SHIFT (18U)\r
-#define SYSCON_STARTERSET_FLEXINT4_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_FLEXINT4_SET_SHIFT)) & SYSCON_STARTERSET_FLEXINT4_SET_MASK)\r
-#define SYSCON_STARTERSET_SEC_GPIO_INT00_SET_MASK (0x40000U)\r
-#define SYSCON_STARTERSET_SEC_GPIO_INT00_SET_SHIFT (18U)\r
-#define SYSCON_STARTERSET_SEC_GPIO_INT00_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SEC_GPIO_INT00_SET_SHIFT)) & SYSCON_STARTERSET_SEC_GPIO_INT00_SET_MASK)\r
-#define SYSCON_STARTERSET_FLEXINT5_SET_MASK (0x80000U)\r
-#define SYSCON_STARTERSET_FLEXINT5_SET_SHIFT (19U)\r
-#define SYSCON_STARTERSET_FLEXINT5_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_FLEXINT5_SET_SHIFT)) & SYSCON_STARTERSET_FLEXINT5_SET_MASK)\r
-#define SYSCON_STARTERSET_SEC_GPIO_INT01_SET_MASK (0x80000U)\r
-#define SYSCON_STARTERSET_SEC_GPIO_INT01_SET_SHIFT (19U)\r
-#define SYSCON_STARTERSET_SEC_GPIO_INT01_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SEC_GPIO_INT01_SET_SHIFT)) & SYSCON_STARTERSET_SEC_GPIO_INT01_SET_MASK)\r
-#define SYSCON_STARTERSET_FLEXINT6_SET_MASK (0x100000U)\r
-#define SYSCON_STARTERSET_FLEXINT6_SET_SHIFT (20U)\r
-#define SYSCON_STARTERSET_FLEXINT6_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_FLEXINT6_SET_SHIFT)) & SYSCON_STARTERSET_FLEXINT6_SET_MASK)\r
-#define SYSCON_STARTERSET_PLU_SET_MASK (0x100000U)\r
-#define SYSCON_STARTERSET_PLU_SET_SHIFT (20U)\r
-#define SYSCON_STARTERSET_PLU_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_PLU_SET_SHIFT)) & SYSCON_STARTERSET_PLU_SET_MASK)\r
-#define SYSCON_STARTERSET_FLEXINT7_SET_MASK (0x200000U)\r
-#define SYSCON_STARTERSET_FLEXINT7_SET_SHIFT (21U)\r
-#define SYSCON_STARTERSET_FLEXINT7_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_FLEXINT7_SET_SHIFT)) & SYSCON_STARTERSET_FLEXINT7_SET_MASK)\r
-#define SYSCON_STARTERSET_SEC_VIO_SET_MASK (0x200000U)\r
-#define SYSCON_STARTERSET_SEC_VIO_SET_SHIFT (21U)\r
-#define SYSCON_STARTERSET_SEC_VIO_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SEC_VIO_SET_SHIFT)) & SYSCON_STARTERSET_SEC_VIO_SET_MASK)\r
-#define SYSCON_STARTERSET_ADC0_SET_MASK (0x400000U)\r
-#define SYSCON_STARTERSET_ADC0_SET_SHIFT (22U)\r
-#define SYSCON_STARTERSET_ADC0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_ADC0_SET_SHIFT)) & SYSCON_STARTERSET_ADC0_SET_MASK)\r
-#define SYSCON_STARTERSET_SHA_SET_MASK (0x400000U)\r
-#define SYSCON_STARTERSET_SHA_SET_SHIFT (22U)\r
-#define SYSCON_STARTERSET_SHA_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SHA_SET_SHIFT)) & SYSCON_STARTERSET_SHA_SET_MASK)\r
-#define SYSCON_STARTERSET_CASER_SET_MASK (0x800000U)\r
-#define SYSCON_STARTERSET_CASER_SET_SHIFT (23U)\r
-#define SYSCON_STARTERSET_CASER_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_CASER_SET_SHIFT)) & SYSCON_STARTERSET_CASER_SET_MASK)\r
-#define SYSCON_STARTERSET_ADC0_THCMP_OVR_SET_MASK (0x1000000U)\r
-#define SYSCON_STARTERSET_ADC0_THCMP_OVR_SET_SHIFT (24U)\r
-#define SYSCON_STARTERSET_ADC0_THCMP_OVR_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_ADC0_THCMP_OVR_SET_SHIFT)) & SYSCON_STARTERSET_ADC0_THCMP_OVR_SET_MASK)\r
-#define SYSCON_STARTERSET_QDDKEY_SET_MASK (0x1000000U)\r
-#define SYSCON_STARTERSET_QDDKEY_SET_SHIFT (24U)\r
-#define SYSCON_STARTERSET_QDDKEY_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_QDDKEY_SET_SHIFT)) & SYSCON_STARTERSET_QDDKEY_SET_MASK)\r
-#define SYSCON_STARTERSET_PQ_SET_MASK (0x2000000U)\r
-#define SYSCON_STARTERSET_PQ_SET_SHIFT (25U)\r
-#define SYSCON_STARTERSET_PQ_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_PQ_SET_SHIFT)) & SYSCON_STARTERSET_PQ_SET_MASK)\r
-#define SYSCON_STARTERSET_SDMA1_SET_MASK (0x4000000U)\r
-#define SYSCON_STARTERSET_SDMA1_SET_SHIFT (26U)\r
-#define SYSCON_STARTERSET_SDMA1_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_SDMA1_SET_SHIFT)) & SYSCON_STARTERSET_SDMA1_SET_MASK)\r
-#define SYSCON_STARTERSET_LSPI_HS_SET_MASK (0x8000000U)\r
-#define SYSCON_STARTERSET_LSPI_HS_SET_SHIFT (27U)\r
-#define SYSCON_STARTERSET_LSPI_HS_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_LSPI_HS_SET_SHIFT)) & SYSCON_STARTERSET_LSPI_HS_SET_MASK)\r
-#define SYSCON_STARTERSET_USB0_NEEDCLK_SET_MASK (0x8000000U)\r
-#define SYSCON_STARTERSET_USB0_NEEDCLK_SET_SHIFT (27U)\r
-#define SYSCON_STARTERSET_USB0_NEEDCLK_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_USB0_NEEDCLK_SET_SHIFT)) & SYSCON_STARTERSET_USB0_NEEDCLK_SET_MASK)\r
-#define SYSCON_STARTERSET_USB0_SET_MASK (0x10000000U)\r
-#define SYSCON_STARTERSET_USB0_SET_SHIFT (28U)\r
-#define SYSCON_STARTERSET_USB0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_USB0_SET_SHIFT)) & SYSCON_STARTERSET_USB0_SET_MASK)\r
-#define SYSCON_STARTERSET_RTC_LITE0_SET_MASK (0x20000000U)\r
-#define SYSCON_STARTERSET_RTC_LITE0_SET_SHIFT (29U)\r
-#define SYSCON_STARTERSET_RTC_LITE0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_RTC_LITE0_SET_SHIFT)) & SYSCON_STARTERSET_RTC_LITE0_SET_MASK)\r
-#define SYSCON_STARTERSET_EZH_ARCH_B0_SET_MASK (0x40000000U)\r
-#define SYSCON_STARTERSET_EZH_ARCH_B0_SET_SHIFT (30U)\r
-#define SYSCON_STARTERSET_EZH_ARCH_B0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_EZH_ARCH_B0_SET_SHIFT)) & SYSCON_STARTERSET_EZH_ARCH_B0_SET_MASK)\r
-#define SYSCON_STARTERSET_WAKEUPPADS_SET_MASK (0x80000000U)\r
-#define SYSCON_STARTERSET_WAKEUPPADS_SET_SHIFT (31U)\r
-#define SYSCON_STARTERSET_WAKEUPPADS_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_WAKEUPPADS_SET_SHIFT)) & SYSCON_STARTERSET_WAKEUPPADS_SET_MASK)\r
-#define SYSCON_STARTERSET_WAKEUP_MAILBOX0_SET_MASK (0x80000000U)\r
-#define SYSCON_STARTERSET_WAKEUP_MAILBOX0_SET_SHIFT (31U)\r
-#define SYSCON_STARTERSET_WAKEUP_MAILBOX0_SET(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERSET_WAKEUP_MAILBOX0_SET_SHIFT)) & SYSCON_STARTERSET_WAKEUP_MAILBOX0_SET_MASK)\r
-/*! @} */\r
-\r
-/* The count of SYSCON_STARTERSET */\r
-#define SYSCON_STARTERSET_COUNT (2U)\r
-\r
-/*! @name STARTERCLR - Clear bits in STARTER */\r
-/*! @{ */\r
-#define SYSCON_STARTERCLR_GPIO_INT04_CLR_MASK (0x1U)\r
-#define SYSCON_STARTERCLR_GPIO_INT04_CLR_SHIFT (0U)\r
-#define SYSCON_STARTERCLR_GPIO_INT04_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_INT04_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_INT04_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SYS_CLR_MASK (0x1U)\r
-#define SYSCON_STARTERCLR_SYS_CLR_SHIFT (0U)\r
-#define SYSCON_STARTERCLR_SYS_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SYS_CLR_SHIFT)) & SYSCON_STARTERCLR_SYS_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_INT05_CLR_MASK (0x2U)\r
-#define SYSCON_STARTERCLR_GPIO_INT05_CLR_SHIFT (1U)\r
-#define SYSCON_STARTERCLR_GPIO_INT05_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_INT05_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_INT05_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SDMA0_CLR_MASK (0x2U)\r
-#define SYSCON_STARTERCLR_SDMA0_CLR_SHIFT (1U)\r
-#define SYSCON_STARTERCLR_SDMA0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SDMA0_CLR_SHIFT)) & SYSCON_STARTERCLR_SDMA0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_GLOBALINT0_CLR_MASK (0x4U)\r
-#define SYSCON_STARTERCLR_GPIO_GLOBALINT0_CLR_SHIFT (2U)\r
-#define SYSCON_STARTERCLR_GPIO_GLOBALINT0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_GLOBALINT0_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_GLOBALINT0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_INT06_CLR_MASK (0x4U)\r
-#define SYSCON_STARTERCLR_GPIO_INT06_CLR_SHIFT (2U)\r
-#define SYSCON_STARTERCLR_GPIO_INT06_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_INT06_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_INT06_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_GLOBALINT1_CLR_MASK (0x8U)\r
-#define SYSCON_STARTERCLR_GPIO_GLOBALINT1_CLR_SHIFT (3U)\r
-#define SYSCON_STARTERCLR_GPIO_GLOBALINT1_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_GLOBALINT1_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_GLOBALINT1_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_INT07_CLR_MASK (0x8U)\r
-#define SYSCON_STARTERCLR_GPIO_INT07_CLR_SHIFT (3U)\r
-#define SYSCON_STARTERCLR_GPIO_INT07_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_INT07_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_INT07_CLR_MASK)\r
-#define SYSCON_STARTERCLR_CTIMER2_CLR_MASK (0x10U)\r
-#define SYSCON_STARTERCLR_CTIMER2_CLR_SHIFT (4U)\r
-#define SYSCON_STARTERCLR_CTIMER2_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_CTIMER2_CLR_SHIFT)) & SYSCON_STARTERCLR_CTIMER2_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_INT00_CLR_MASK (0x10U)\r
-#define SYSCON_STARTERCLR_GPIO_INT00_CLR_SHIFT (4U)\r
-#define SYSCON_STARTERCLR_GPIO_INT00_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_INT00_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_INT00_CLR_MASK)\r
-#define SYSCON_STARTERCLR_CTIMER4_CLR_MASK (0x20U)\r
-#define SYSCON_STARTERCLR_CTIMER4_CLR_SHIFT (5U)\r
-#define SYSCON_STARTERCLR_CTIMER4_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_CTIMER4_CLR_SHIFT)) & SYSCON_STARTERCLR_CTIMER4_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_INT01_CLR_MASK (0x20U)\r
-#define SYSCON_STARTERCLR_GPIO_INT01_CLR_SHIFT (5U)\r
-#define SYSCON_STARTERCLR_GPIO_INT01_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_INT01_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_INT01_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_INT02_CLR_MASK (0x40U)\r
-#define SYSCON_STARTERCLR_GPIO_INT02_CLR_SHIFT (6U)\r
-#define SYSCON_STARTERCLR_GPIO_INT02_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_INT02_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_INT02_CLR_MASK)\r
-#define SYSCON_STARTERCLR_OS_EVENT_CLR_MASK (0x40U)\r
-#define SYSCON_STARTERCLR_OS_EVENT_CLR_SHIFT (6U)\r
-#define SYSCON_STARTERCLR_OS_EVENT_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_OS_EVENT_CLR_SHIFT)) & SYSCON_STARTERCLR_OS_EVENT_CLR_MASK)\r
-#define SYSCON_STARTERCLR_GPIO_INT03_CLR_MASK (0x80U)\r
-#define SYSCON_STARTERCLR_GPIO_INT03_CLR_SHIFT (7U)\r
-#define SYSCON_STARTERCLR_GPIO_INT03_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_GPIO_INT03_CLR_SHIFT)) & SYSCON_STARTERCLR_GPIO_INT03_CLR_MASK)\r
-#define SYSCON_STARTERCLR_UTICK0_CLR_MASK (0x100U)\r
-#define SYSCON_STARTERCLR_UTICK0_CLR_SHIFT (8U)\r
-#define SYSCON_STARTERCLR_UTICK0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_UTICK0_CLR_SHIFT)) & SYSCON_STARTERCLR_UTICK0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_MRT0_CLR_MASK (0x200U)\r
-#define SYSCON_STARTERCLR_MRT0_CLR_SHIFT (9U)\r
-#define SYSCON_STARTERCLR_MRT0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_MRT0_CLR_SHIFT)) & SYSCON_STARTERCLR_MRT0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_CTIMER0_CLR_MASK (0x400U)\r
-#define SYSCON_STARTERCLR_CTIMER0_CLR_SHIFT (10U)\r
-#define SYSCON_STARTERCLR_CTIMER0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_CTIMER0_CLR_SHIFT)) & SYSCON_STARTERCLR_CTIMER0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SDIO_CLR_MASK (0x400U)\r
-#define SYSCON_STARTERCLR_SDIO_CLR_SHIFT (10U)\r
-#define SYSCON_STARTERCLR_SDIO_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SDIO_CLR_SHIFT)) & SYSCON_STARTERCLR_SDIO_CLR_MASK)\r
-#define SYSCON_STARTERCLR_CTIMER1_CLR_MASK (0x800U)\r
-#define SYSCON_STARTERCLR_CTIMER1_CLR_SHIFT (11U)\r
-#define SYSCON_STARTERCLR_CTIMER1_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_CTIMER1_CLR_SHIFT)) & SYSCON_STARTERCLR_CTIMER1_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SCT0_CLR_MASK (0x1000U)\r
-#define SYSCON_STARTERCLR_SCT0_CLR_SHIFT (12U)\r
-#define SYSCON_STARTERCLR_SCT0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SCT0_CLR_SHIFT)) & SYSCON_STARTERCLR_SCT0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_CTIMER3_CLR_MASK (0x2000U)\r
-#define SYSCON_STARTERCLR_CTIMER3_CLR_SHIFT (13U)\r
-#define SYSCON_STARTERCLR_CTIMER3_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_CTIMER3_CLR_SHIFT)) & SYSCON_STARTERCLR_CTIMER3_CLR_MASK)\r
-#define SYSCON_STARTERCLR_FLEXINT0_CLR_MASK (0x4000U)\r
-#define SYSCON_STARTERCLR_FLEXINT0_CLR_SHIFT (14U)\r
-#define SYSCON_STARTERCLR_FLEXINT0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_FLEXINT0_CLR_SHIFT)) & SYSCON_STARTERCLR_FLEXINT0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_FLEXINT1_CLR_MASK (0x8000U)\r
-#define SYSCON_STARTERCLR_FLEXINT1_CLR_SHIFT (15U)\r
-#define SYSCON_STARTERCLR_FLEXINT1_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_FLEXINT1_CLR_SHIFT)) & SYSCON_STARTERCLR_FLEXINT1_CLR_MASK)\r
-#define SYSCON_STARTERCLR_USB1_CLR_MASK (0x8000U)\r
-#define SYSCON_STARTERCLR_USB1_CLR_SHIFT (15U)\r
-#define SYSCON_STARTERCLR_USB1_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_USB1_CLR_SHIFT)) & SYSCON_STARTERCLR_USB1_CLR_MASK)\r
-#define SYSCON_STARTERCLR_FLEXINT2_CLR_MASK (0x10000U)\r
-#define SYSCON_STARTERCLR_FLEXINT2_CLR_SHIFT (16U)\r
-#define SYSCON_STARTERCLR_FLEXINT2_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_FLEXINT2_CLR_SHIFT)) & SYSCON_STARTERCLR_FLEXINT2_CLR_MASK)\r
-#define SYSCON_STARTERCLR_USB1_NEEDCLK_CLR_MASK (0x10000U)\r
-#define SYSCON_STARTERCLR_USB1_NEEDCLK_CLR_SHIFT (16U)\r
-#define SYSCON_STARTERCLR_USB1_NEEDCLK_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_USB1_NEEDCLK_CLR_SHIFT)) & SYSCON_STARTERCLR_USB1_NEEDCLK_CLR_MASK)\r
-#define SYSCON_STARTERCLR_FLEXINT3_CLR_MASK (0x20000U)\r
-#define SYSCON_STARTERCLR_FLEXINT3_CLR_SHIFT (17U)\r
-#define SYSCON_STARTERCLR_FLEXINT3_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_FLEXINT3_CLR_SHIFT)) & SYSCON_STARTERCLR_FLEXINT3_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SEC_HYPERVISOR_CALL_CLR_MASK (0x20000U)\r
-#define SYSCON_STARTERCLR_SEC_HYPERVISOR_CALL_CLR_SHIFT (17U)\r
-#define SYSCON_STARTERCLR_SEC_HYPERVISOR_CALL_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SEC_HYPERVISOR_CALL_CLR_SHIFT)) & SYSCON_STARTERCLR_SEC_HYPERVISOR_CALL_CLR_MASK)\r
-#define SYSCON_STARTERCLR_FLEXINT4_CLR_MASK (0x40000U)\r
-#define SYSCON_STARTERCLR_FLEXINT4_CLR_SHIFT (18U)\r
-#define SYSCON_STARTERCLR_FLEXINT4_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_FLEXINT4_CLR_SHIFT)) & SYSCON_STARTERCLR_FLEXINT4_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SEC_GPIO_INT00_CLR_MASK (0x40000U)\r
-#define SYSCON_STARTERCLR_SEC_GPIO_INT00_CLR_SHIFT (18U)\r
-#define SYSCON_STARTERCLR_SEC_GPIO_INT00_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SEC_GPIO_INT00_CLR_SHIFT)) & SYSCON_STARTERCLR_SEC_GPIO_INT00_CLR_MASK)\r
-#define SYSCON_STARTERCLR_FLEXINT5_CLR_MASK (0x80000U)\r
-#define SYSCON_STARTERCLR_FLEXINT5_CLR_SHIFT (19U)\r
-#define SYSCON_STARTERCLR_FLEXINT5_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_FLEXINT5_CLR_SHIFT)) & SYSCON_STARTERCLR_FLEXINT5_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SEC_GPIO_INT01_CLR_MASK (0x80000U)\r
-#define SYSCON_STARTERCLR_SEC_GPIO_INT01_CLR_SHIFT (19U)\r
-#define SYSCON_STARTERCLR_SEC_GPIO_INT01_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SEC_GPIO_INT01_CLR_SHIFT)) & SYSCON_STARTERCLR_SEC_GPIO_INT01_CLR_MASK)\r
-#define SYSCON_STARTERCLR_FLEXINT6_CLR_MASK (0x100000U)\r
-#define SYSCON_STARTERCLR_FLEXINT6_CLR_SHIFT (20U)\r
-#define SYSCON_STARTERCLR_FLEXINT6_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_FLEXINT6_CLR_SHIFT)) & SYSCON_STARTERCLR_FLEXINT6_CLR_MASK)\r
-#define SYSCON_STARTERCLR_PLU_CLR_MASK (0x100000U)\r
-#define SYSCON_STARTERCLR_PLU_CLR_SHIFT (20U)\r
-#define SYSCON_STARTERCLR_PLU_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_PLU_CLR_SHIFT)) & SYSCON_STARTERCLR_PLU_CLR_MASK)\r
-#define SYSCON_STARTERCLR_FLEXINT7_CLR_MASK (0x200000U)\r
-#define SYSCON_STARTERCLR_FLEXINT7_CLR_SHIFT (21U)\r
-#define SYSCON_STARTERCLR_FLEXINT7_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_FLEXINT7_CLR_SHIFT)) & SYSCON_STARTERCLR_FLEXINT7_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SEC_VIO_CLR_MASK (0x200000U)\r
-#define SYSCON_STARTERCLR_SEC_VIO_CLR_SHIFT (21U)\r
-#define SYSCON_STARTERCLR_SEC_VIO_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SEC_VIO_CLR_SHIFT)) & SYSCON_STARTERCLR_SEC_VIO_CLR_MASK)\r
-#define SYSCON_STARTERCLR_ADC0_CLR_MASK (0x400000U)\r
-#define SYSCON_STARTERCLR_ADC0_CLR_SHIFT (22U)\r
-#define SYSCON_STARTERCLR_ADC0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_ADC0_CLR_SHIFT)) & SYSCON_STARTERCLR_ADC0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SHA_CLR_MASK (0x400000U)\r
-#define SYSCON_STARTERCLR_SHA_CLR_SHIFT (22U)\r
-#define SYSCON_STARTERCLR_SHA_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SHA_CLR_SHIFT)) & SYSCON_STARTERCLR_SHA_CLR_MASK)\r
-#define SYSCON_STARTERCLR_CASER_CLR_MASK (0x800000U)\r
-#define SYSCON_STARTERCLR_CASER_CLR_SHIFT (23U)\r
-#define SYSCON_STARTERCLR_CASER_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_CASER_CLR_SHIFT)) & SYSCON_STARTERCLR_CASER_CLR_MASK)\r
-#define SYSCON_STARTERCLR_ADC0_THCMP_OVR_CLR_MASK (0x1000000U)\r
-#define SYSCON_STARTERCLR_ADC0_THCMP_OVR_CLR_SHIFT (24U)\r
-#define SYSCON_STARTERCLR_ADC0_THCMP_OVR_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_ADC0_THCMP_OVR_CLR_SHIFT)) & SYSCON_STARTERCLR_ADC0_THCMP_OVR_CLR_MASK)\r
-#define SYSCON_STARTERCLR_QDDKEY_CLR_MASK (0x1000000U)\r
-#define SYSCON_STARTERCLR_QDDKEY_CLR_SHIFT (24U)\r
-#define SYSCON_STARTERCLR_QDDKEY_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_QDDKEY_CLR_SHIFT)) & SYSCON_STARTERCLR_QDDKEY_CLR_MASK)\r
-#define SYSCON_STARTERCLR_PQ_CLR_MASK (0x2000000U)\r
-#define SYSCON_STARTERCLR_PQ_CLR_SHIFT (25U)\r
-#define SYSCON_STARTERCLR_PQ_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_PQ_CLR_SHIFT)) & SYSCON_STARTERCLR_PQ_CLR_MASK)\r
-#define SYSCON_STARTERCLR_SDMA1_CLR_MASK (0x4000000U)\r
-#define SYSCON_STARTERCLR_SDMA1_CLR_SHIFT (26U)\r
-#define SYSCON_STARTERCLR_SDMA1_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_SDMA1_CLR_SHIFT)) & SYSCON_STARTERCLR_SDMA1_CLR_MASK)\r
-#define SYSCON_STARTERCLR_LSPI_HS_CLR_MASK (0x8000000U)\r
-#define SYSCON_STARTERCLR_LSPI_HS_CLR_SHIFT (27U)\r
-#define SYSCON_STARTERCLR_LSPI_HS_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_LSPI_HS_CLR_SHIFT)) & SYSCON_STARTERCLR_LSPI_HS_CLR_MASK)\r
-#define SYSCON_STARTERCLR_USB0_NEEDCLK_CLR_MASK (0x8000000U)\r
-#define SYSCON_STARTERCLR_USB0_NEEDCLK_CLR_SHIFT (27U)\r
-#define SYSCON_STARTERCLR_USB0_NEEDCLK_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_USB0_NEEDCLK_CLR_SHIFT)) & SYSCON_STARTERCLR_USB0_NEEDCLK_CLR_MASK)\r
-#define SYSCON_STARTERCLR_USB0_CLR_MASK (0x10000000U)\r
-#define SYSCON_STARTERCLR_USB0_CLR_SHIFT (28U)\r
-#define SYSCON_STARTERCLR_USB0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_USB0_CLR_SHIFT)) & SYSCON_STARTERCLR_USB0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_RTC_LITE0_CLR_MASK (0x20000000U)\r
-#define SYSCON_STARTERCLR_RTC_LITE0_CLR_SHIFT (29U)\r
-#define SYSCON_STARTERCLR_RTC_LITE0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_RTC_LITE0_CLR_SHIFT)) & SYSCON_STARTERCLR_RTC_LITE0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_EZH_ARCH_B0_CLR_MASK (0x40000000U)\r
-#define SYSCON_STARTERCLR_EZH_ARCH_B0_CLR_SHIFT (30U)\r
-#define SYSCON_STARTERCLR_EZH_ARCH_B0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_EZH_ARCH_B0_CLR_SHIFT)) & SYSCON_STARTERCLR_EZH_ARCH_B0_CLR_MASK)\r
-#define SYSCON_STARTERCLR_WAKEUPPADS_CLR_MASK (0x80000000U)\r
-#define SYSCON_STARTERCLR_WAKEUPPADS_CLR_SHIFT (31U)\r
-#define SYSCON_STARTERCLR_WAKEUPPADS_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_WAKEUPPADS_CLR_SHIFT)) & SYSCON_STARTERCLR_WAKEUPPADS_CLR_MASK)\r
-#define SYSCON_STARTERCLR_WAKEUP_MAILBOX0_CLR_MASK (0x80000000U)\r
-#define SYSCON_STARTERCLR_WAKEUP_MAILBOX0_CLR_SHIFT (31U)\r
-#define SYSCON_STARTERCLR_WAKEUP_MAILBOX0_CLR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_STARTERCLR_WAKEUP_MAILBOX0_CLR_SHIFT)) & SYSCON_STARTERCLR_WAKEUP_MAILBOX0_CLR_MASK)\r
-/*! @} */\r
-\r
-/* The count of SYSCON_STARTERCLR */\r
-#define SYSCON_STARTERCLR_COUNT (2U)\r
-\r
-/*! @name HARDWARESLEEP - Hardware Sleep control */\r
-/*! @{ */\r
-#define SYSCON_HARDWARESLEEP_FORCED_MASK (0x1U)\r
-#define SYSCON_HARDWARESLEEP_FORCED_SHIFT (0U)\r
-#define SYSCON_HARDWARESLEEP_FORCED(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_HARDWARESLEEP_FORCED_SHIFT)) & SYSCON_HARDWARESLEEP_FORCED_MASK)\r
-#define SYSCON_HARDWARESLEEP_PERIPHERALS_MASK (0x2U)\r
-#define SYSCON_HARDWARESLEEP_PERIPHERALS_SHIFT (1U)\r
-#define SYSCON_HARDWARESLEEP_PERIPHERALS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_HARDWARESLEEP_PERIPHERALS_SHIFT)) & SYSCON_HARDWARESLEEP_PERIPHERALS_MASK)\r
-#define SYSCON_HARDWARESLEEP_SDMA0_MASK (0x8U)\r
-#define SYSCON_HARDWARESLEEP_SDMA0_SHIFT (3U)\r
-#define SYSCON_HARDWARESLEEP_SDMA0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_HARDWARESLEEP_SDMA0_SHIFT)) & SYSCON_HARDWARESLEEP_SDMA0_MASK)\r
-#define SYSCON_HARDWARESLEEP_SDMA1_MASK (0x20U)\r
-#define SYSCON_HARDWARESLEEP_SDMA1_SHIFT (5U)\r
-#define SYSCON_HARDWARESLEEP_SDMA1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_HARDWARESLEEP_SDMA1_SHIFT)) & SYSCON_HARDWARESLEEP_SDMA1_MASK)\r
+#define SYSCON_PLL0SSCG1_MD_MBS_MASK (0x1U)\r
+#define SYSCON_PLL0SSCG1_MD_MBS_SHIFT (0U)\r
+/*! MD_MBS - input word of the wrapper bit 32.\r
+ */\r
+#define SYSCON_PLL0SSCG1_MD_MBS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MD_MBS_SHIFT)) & SYSCON_PLL0SSCG1_MD_MBS_MASK)\r
+#define SYSCON_PLL0SSCG1_MD_REQ_MASK (0x2U)\r
+#define SYSCON_PLL0SSCG1_MD_REQ_SHIFT (1U)\r
+/*! MD_REQ - md change request.\r
+ */\r
+#define SYSCON_PLL0SSCG1_MD_REQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MD_REQ_SHIFT)) & SYSCON_PLL0SSCG1_MD_REQ_MASK)\r
+#define SYSCON_PLL0SSCG1_MF_MASK (0x1CU)\r
+#define SYSCON_PLL0SSCG1_MF_SHIFT (2U)\r
+/*! MF - programmable modulation frequency fm = Fref/Nss mf[2:0] = 000 => Nss=512 (fm ~ 3.\r
+ */\r
+#define SYSCON_PLL0SSCG1_MF(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MF_SHIFT)) & SYSCON_PLL0SSCG1_MF_MASK)\r
+#define SYSCON_PLL0SSCG1_MR_MASK (0xE0U)\r
+#define SYSCON_PLL0SSCG1_MR_SHIFT (5U)\r
+/*! MR - programmable frequency modulation depth Dfmodpk-pk = Fref*kss/Fcco = kss/(2*md[32:25]dec)\r
+ * mr[2:0] = 000 => kss = 0 (no spread spectrum) mr[2:0] = 001 => kss ~ 1 mr[2:0] = 010 => kss ~ 1.\r
+ */\r
+#define SYSCON_PLL0SSCG1_MR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MR_SHIFT)) & SYSCON_PLL0SSCG1_MR_MASK)\r
+#define SYSCON_PLL0SSCG1_MC_MASK (0x300U)\r
+#define SYSCON_PLL0SSCG1_MC_SHIFT (8U)\r
+/*! MC - modulation waveform control Compensation for low pass filtering of the PLL to get a\r
+ * triangular modulation at the output of the PLL, giving a flat frequency spectrum.\r
+ */\r
+#define SYSCON_PLL0SSCG1_MC(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MC_SHIFT)) & SYSCON_PLL0SSCG1_MC_MASK)\r
+#define SYSCON_PLL0SSCG1_MDIV_EXT_MASK (0x3FFFC00U)\r
+#define SYSCON_PLL0SSCG1_MDIV_EXT_SHIFT (10U)\r
+/*! MDIV_EXT - to select an external mdiv value.\r
+ */\r
+#define SYSCON_PLL0SSCG1_MDIV_EXT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MDIV_EXT_SHIFT)) & SYSCON_PLL0SSCG1_MDIV_EXT_MASK)\r
+#define SYSCON_PLL0SSCG1_MREQ_MASK (0x4000000U)\r
+#define SYSCON_PLL0SSCG1_MREQ_SHIFT (26U)\r
+/*! MREQ - to select an external mreq value.\r
+ */\r
+#define SYSCON_PLL0SSCG1_MREQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_MREQ_SHIFT)) & SYSCON_PLL0SSCG1_MREQ_MASK)\r
+#define SYSCON_PLL0SSCG1_DITHER_MASK (0x8000000U)\r
+#define SYSCON_PLL0SSCG1_DITHER_SHIFT (27U)\r
+/*! DITHER - dithering between two modulation frequencies in a random way or in a pseudo random way\r
+ * (white noise), in order to decrease the probability that the modulated waveform will occur\r
+ * with the same phase on a particular point on the screen.\r
+ */\r
+#define SYSCON_PLL0SSCG1_DITHER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_DITHER_SHIFT)) & SYSCON_PLL0SSCG1_DITHER_MASK)\r
+#define SYSCON_PLL0SSCG1_SEL_EXT_MASK (0x10000000U)\r
+#define SYSCON_PLL0SSCG1_SEL_EXT_SHIFT (28U)\r
+/*! SEL_EXT - to select mdiv_ext and mreq_ext sel_ext = 0: mdiv ~ md[32:0], mreq = 1 sel_ext = 1 : mdiv = mdiv_ext, mreq\r
+ * = mreq_ext.\r
+ */\r
+#define SYSCON_PLL0SSCG1_SEL_EXT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_PLL0SSCG1_SEL_EXT_SHIFT)) & SYSCON_PLL0SSCG1_SEL_EXT_MASK)\r
/*! @} */\r
\r
/*! @name CPUCTRL - CPU Control for multiple processors */\r
/*! @{ */\r
-#define SYSCON_CPUCTRL_CPU1CLKEN_MASK (0x8U)\r
-#define SYSCON_CPUCTRL_CPU1CLKEN_SHIFT (3U)\r
+#define SYSCON_CPUCTRL_CPU1CLKEN_MASK (0x8U)\r
+#define SYSCON_CPUCTRL_CPU1CLKEN_SHIFT (3U)\r
/*! CPU1CLKEN - CPU1 clock enable.\r
* 0b1..The CPU1 clock is enabled.\r
* 0b0..The CPU1 clock is not enabled.\r
*/\r
-#define SYSCON_CPUCTRL_CPU1CLKEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPUCTRL_CPU1CLKEN_SHIFT)) & SYSCON_CPUCTRL_CPU1CLKEN_MASK)\r
-#define SYSCON_CPUCTRL_CPU1RSTEN_MASK (0x20U)\r
-#define SYSCON_CPUCTRL_CPU1RSTEN_SHIFT (5U)\r
+#define SYSCON_CPUCTRL_CPU1CLKEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPUCTRL_CPU1CLKEN_SHIFT)) & SYSCON_CPUCTRL_CPU1CLKEN_MASK)\r
+#define SYSCON_CPUCTRL_CPU1RSTEN_MASK (0x20U)\r
+#define SYSCON_CPUCTRL_CPU1RSTEN_SHIFT (5U)\r
/*! CPU1RSTEN - CPU1 reset.\r
* 0b1..The CPU1 is being reset.\r
* 0b0..The CPU1 is not being reset.\r
*/\r
-#define SYSCON_CPUCTRL_CPU1RSTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPUCTRL_CPU1RSTEN_SHIFT)) & SYSCON_CPUCTRL_CPU1RSTEN_MASK)\r
+#define SYSCON_CPUCTRL_CPU1RSTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPUCTRL_CPU1RSTEN_SHIFT)) & SYSCON_CPUCTRL_CPU1RSTEN_MASK)\r
/*! @} */\r
\r
/*! @name CPBOOT - Coprocessor Boot Address */\r
/*! @{ */\r
-#define SYSCON_CPBOOT_CPBOOT_MASK (0xFFFFFFFFU)\r
-#define SYSCON_CPBOOT_CPBOOT_SHIFT (0U)\r
-#define SYSCON_CPBOOT_CPBOOT(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPBOOT_CPBOOT_SHIFT)) & SYSCON_CPBOOT_CPBOOT_MASK)\r
-/*! @} */\r
-\r
-/*! @name CPSTACK - Coprocessor Stack Address */\r
-/*! @{ */\r
-#define SYSCON_CPSTACK_CPSTACK_MASK (0xFFFFFFFFU)\r
-#define SYSCON_CPSTACK_CPSTACK_SHIFT (0U)\r
-#define SYSCON_CPSTACK_CPSTACK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTACK_CPSTACK_SHIFT)) & SYSCON_CPSTACK_CPSTACK_MASK)\r
+#define SYSCON_CPBOOT_CPBOOT_MASK (0xFFFFFFFFU)\r
+#define SYSCON_CPBOOT_CPBOOT_SHIFT (0U)\r
+/*! CPBOOT - Coprocessor Boot Address for CPU1.\r
+ */\r
+#define SYSCON_CPBOOT_CPBOOT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPBOOT_CPBOOT_SHIFT)) & SYSCON_CPBOOT_CPBOOT_MASK)\r
/*! @} */\r
\r
/*! @name CPSTAT - CPU Status */\r
/*! @{ */\r
-#define SYSCON_CPSTAT_CPU0SLEEPING_MASK (0x1U)\r
-#define SYSCON_CPSTAT_CPU0SLEEPING_SHIFT (0U)\r
+#define SYSCON_CPSTAT_CPU0SLEEPING_MASK (0x1U)\r
+#define SYSCON_CPSTAT_CPU0SLEEPING_SHIFT (0U)\r
/*! CPU0SLEEPING - The CPU0 sleeping state.\r
* 0b1..the CPU is sleeping.\r
* 0b0..the CPU is not sleeping.\r
*/\r
-#define SYSCON_CPSTAT_CPU0SLEEPING(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTAT_CPU0SLEEPING_SHIFT)) & SYSCON_CPSTAT_CPU0SLEEPING_MASK)\r
-#define SYSCON_CPSTAT_CPU1SLEEPING_MASK (0x2U)\r
-#define SYSCON_CPSTAT_CPU1SLEEPING_SHIFT (1U)\r
+#define SYSCON_CPSTAT_CPU0SLEEPING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTAT_CPU0SLEEPING_SHIFT)) & SYSCON_CPSTAT_CPU0SLEEPING_MASK)\r
+#define SYSCON_CPSTAT_CPU1SLEEPING_MASK (0x2U)\r
+#define SYSCON_CPSTAT_CPU1SLEEPING_SHIFT (1U)\r
/*! CPU1SLEEPING - The CPU1 sleeping state.\r
* 0b1..the CPU is sleeping.\r
* 0b0..the CPU is not sleeping.\r
*/\r
-#define SYSCON_CPSTAT_CPU1SLEEPING(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTAT_CPU1SLEEPING_SHIFT)) & SYSCON_CPSTAT_CPU1SLEEPING_MASK)\r
-#define SYSCON_CPSTAT_CPU0LOCKUP_MASK (0x4U)\r
-#define SYSCON_CPSTAT_CPU0LOCKUP_SHIFT (2U)\r
+#define SYSCON_CPSTAT_CPU1SLEEPING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTAT_CPU1SLEEPING_SHIFT)) & SYSCON_CPSTAT_CPU1SLEEPING_MASK)\r
+#define SYSCON_CPSTAT_CPU0LOCKUP_MASK (0x4U)\r
+#define SYSCON_CPSTAT_CPU0LOCKUP_SHIFT (2U)\r
/*! CPU0LOCKUP - The CPU0 lockup state.\r
* 0b1..the CPU is in lockup.\r
* 0b0..the CPU is not in lockup.\r
*/\r
-#define SYSCON_CPSTAT_CPU0LOCKUP(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTAT_CPU0LOCKUP_SHIFT)) & SYSCON_CPSTAT_CPU0LOCKUP_MASK)\r
-#define SYSCON_CPSTAT_CPU1LOCKUP_MASK (0x8U)\r
-#define SYSCON_CPSTAT_CPU1LOCKUP_SHIFT (3U)\r
+#define SYSCON_CPSTAT_CPU0LOCKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTAT_CPU0LOCKUP_SHIFT)) & SYSCON_CPSTAT_CPU0LOCKUP_MASK)\r
+#define SYSCON_CPSTAT_CPU1LOCKUP_MASK (0x8U)\r
+#define SYSCON_CPSTAT_CPU1LOCKUP_SHIFT (3U)\r
/*! CPU1LOCKUP - The CPU1 lockup state.\r
* 0b1..the CPU is in lockup.\r
* 0b0..the CPU is not in lockup.\r
*/\r
-#define SYSCON_CPSTAT_CPU1LOCKUP(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTAT_CPU1LOCKUP_SHIFT)) & SYSCON_CPSTAT_CPU1LOCKUP_MASK)\r
-/*! @} */\r
-\r
-/*! @name DICE_REG0 - Composite Device Identifier */\r
-/*! @{ */\r
-#define SYSCON_DICE_REG0_DICE_REG0_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DICE_REG0_DICE_REG0_SHIFT (0U)\r
-#define SYSCON_DICE_REG0_DICE_REG0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DICE_REG0_DICE_REG0_SHIFT)) & SYSCON_DICE_REG0_DICE_REG0_MASK)\r
-/*! @} */\r
-\r
-/*! @name DICE_REG1 - Composite Device Identifier */\r
-/*! @{ */\r
-#define SYSCON_DICE_REG1_DICE_REG1_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DICE_REG1_DICE_REG1_SHIFT (0U)\r
-#define SYSCON_DICE_REG1_DICE_REG1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DICE_REG1_DICE_REG1_SHIFT)) & SYSCON_DICE_REG1_DICE_REG1_MASK)\r
-/*! @} */\r
-\r
-/*! @name DICE_REG2 - Composite Device Identifier */\r
-/*! @{ */\r
-#define SYSCON_DICE_REG2_DICE_REG2_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DICE_REG2_DICE_REG2_SHIFT (0U)\r
-#define SYSCON_DICE_REG2_DICE_REG2(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DICE_REG2_DICE_REG2_SHIFT)) & SYSCON_DICE_REG2_DICE_REG2_MASK)\r
-/*! @} */\r
-\r
-/*! @name DICE_REG3 - Composite Device Identifier */\r
-/*! @{ */\r
-#define SYSCON_DICE_REG3_DICE_REG3_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DICE_REG3_DICE_REG3_SHIFT (0U)\r
-#define SYSCON_DICE_REG3_DICE_REG3(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DICE_REG3_DICE_REG3_SHIFT)) & SYSCON_DICE_REG3_DICE_REG3_MASK)\r
-/*! @} */\r
-\r
-/*! @name DICE_REG4 - Composite Device Identifier */\r
-/*! @{ */\r
-#define SYSCON_DICE_REG4_DICE_REG4_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DICE_REG4_DICE_REG4_SHIFT (0U)\r
-#define SYSCON_DICE_REG4_DICE_REG4(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DICE_REG4_DICE_REG4_SHIFT)) & SYSCON_DICE_REG4_DICE_REG4_MASK)\r
-/*! @} */\r
-\r
-/*! @name DICE_REG5 - Composite Device Identifier */\r
-/*! @{ */\r
-#define SYSCON_DICE_REG5_DICE_REG5_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DICE_REG5_DICE_REG5_SHIFT (0U)\r
-#define SYSCON_DICE_REG5_DICE_REG5(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DICE_REG5_DICE_REG5_SHIFT)) & SYSCON_DICE_REG5_DICE_REG5_MASK)\r
-/*! @} */\r
-\r
-/*! @name DICE_REG6 - Composite Device Identifier */\r
-/*! @{ */\r
-#define SYSCON_DICE_REG6_DICE_REG6_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DICE_REG6_DICE_REG6_SHIFT (0U)\r
-#define SYSCON_DICE_REG6_DICE_REG6(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DICE_REG6_DICE_REG6_SHIFT)) & SYSCON_DICE_REG6_DICE_REG6_MASK)\r
-/*! @} */\r
-\r
-/*! @name DICE_REG7 - Composite Device Identifier */\r
-/*! @{ */\r
-#define SYSCON_DICE_REG7_DICE_REG7_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DICE_REG7_DICE_REG7_SHIFT (0U)\r
-#define SYSCON_DICE_REG7_DICE_REG7(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DICE_REG7_DICE_REG7_SHIFT)) & SYSCON_DICE_REG7_DICE_REG7_MASK)\r
+#define SYSCON_CPSTAT_CPU1LOCKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPSTAT_CPU1LOCKUP_SHIFT)) & SYSCON_CPSTAT_CPU1LOCKUP_MASK)\r
/*! @} */\r
\r
/*! @name CLOCK_CTRL - Various system clock controls : Flash clock (48 MHz) control, clocks to Frequency Measures */\r
/*! @{ */\r
-#define SYSCON_CLOCK_CTRL_FLASH48MHZ_ENA_MASK (0x1U)\r
-#define SYSCON_CLOCK_CTRL_FLASH48MHZ_ENA_SHIFT (0U)\r
-/*! FLASH48MHZ_ENA - Enable Flash 48 MHz clock.\r
- * 0b1..The clock is enabled.\r
- * 0b0..The clock is not enabled.\r
- */\r
-#define SYSCON_CLOCK_CTRL_FLASH48MHZ_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FLASH48MHZ_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_FLASH48MHZ_ENA_MASK)\r
#define SYSCON_CLOCK_CTRL_XTAL32MHZ_FREQM_ENA_MASK (0x2U)\r
#define SYSCON_CLOCK_CTRL_XTAL32MHZ_FREQM_ENA_SHIFT (1U)\r
/*! XTAL32MHZ_FREQM_ENA - Enable XTAL32MHz clock for Frequency Measure module.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_XTAL32MHZ_FREQM_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_XTAL32MHZ_FREQM_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_XTAL32MHZ_FREQM_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_XTAL32MHZ_FREQM_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_XTAL32MHZ_FREQM_ENA_SHIFT)) & \\r
+ SYSCON_CLOCK_CTRL_XTAL32MHZ_FREQM_ENA_MASK)\r
#define SYSCON_CLOCK_CTRL_FRO1MHZ_UTICK_ENA_MASK (0x4U)\r
#define SYSCON_CLOCK_CTRL_FRO1MHZ_UTICK_ENA_SHIFT (2U)\r
/*! FRO1MHZ_UTICK_ENA - Enable FRO 1MHz clock for Frequency Measure module and for UTICK.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_FRO1MHZ_UTICK_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FRO1MHZ_UTICK_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_FRO1MHZ_UTICK_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_FRO1MHZ_UTICK_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FRO1MHZ_UTICK_ENA_SHIFT)) & \\r
+ SYSCON_CLOCK_CTRL_FRO1MHZ_UTICK_ENA_MASK)\r
#define SYSCON_CLOCK_CTRL_FRO12MHZ_FREQM_ENA_MASK (0x8U)\r
#define SYSCON_CLOCK_CTRL_FRO12MHZ_FREQM_ENA_SHIFT (3U)\r
/*! FRO12MHZ_FREQM_ENA - Enable FRO 12MHz clock for Frequency Measure module.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_FRO12MHZ_FREQM_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FRO12MHZ_FREQM_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_FRO12MHZ_FREQM_ENA_MASK)\r
-#define SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA_MASK (0x10U)\r
+#define SYSCON_CLOCK_CTRL_FRO12MHZ_FREQM_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FRO12MHZ_FREQM_ENA_SHIFT)) & \\r
+ SYSCON_CLOCK_CTRL_FRO12MHZ_FREQM_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA_MASK (0x10U)\r
#define SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA_SHIFT (4U)\r
/*! FRO_HF_FREQM_ENA - Enable FRO 96MHz clock for Frequency Measure module.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA_MASK)\r
-#define SYSCON_CLOCK_CTRL_CLKIN_ENA_MASK (0x20U)\r
-#define SYSCON_CLOCK_CTRL_CLKIN_ENA_SHIFT (5U)\r
+#define SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA_SHIFT)) & \\r
+ SYSCON_CLOCK_CTRL_FRO_HF_FREQM_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_CLKIN_ENA_MASK (0x20U)\r
+#define SYSCON_CLOCK_CTRL_CLKIN_ENA_SHIFT (5U)\r
/*! CLKIN_ENA - Enable clock_in clock for clock module.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_CLKIN_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_CLKIN_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_CLKIN_ENA_MASK)\r
-#define SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_MASK (0x40U)\r
-#define SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_SHIFT (6U)\r
+#define SYSCON_CLOCK_CTRL_CLKIN_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_CLKIN_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_CLKIN_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_MASK (0x40U)\r
+#define SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_SHIFT (6U)\r
/*! FRO1MHZ_CLK_ENA - Enable FRO 1MHz clock for clock muxing in clock gen.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_FRO1MHZ_CLK_ENA_MASK)\r
#define SYSCON_CLOCK_CTRL_ANA_FRO12M_CLK_ENA_MASK (0x80U)\r
#define SYSCON_CLOCK_CTRL_ANA_FRO12M_CLK_ENA_SHIFT (7U)\r
/*! ANA_FRO12M_CLK_ENA - Enable FRO 12MHz clock for analog control of the FRO 192MHz.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_ANA_FRO12M_CLK_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_ANA_FRO12M_CLK_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_ANA_FRO12M_CLK_ENA_MASK)\r
-#define SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA_MASK (0x100U)\r
-#define SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA_SHIFT (8U)\r
+#define SYSCON_CLOCK_CTRL_ANA_FRO12M_CLK_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_ANA_FRO12M_CLK_ENA_SHIFT)) & \\r
+ SYSCON_CLOCK_CTRL_ANA_FRO12M_CLK_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA_MASK (0x100U)\r
+#define SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA_SHIFT (8U)\r
/*! XO_CAL_CLK_ENA - Enable clock for cristal oscilator calibration.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_XO_CAL_CLK_ENA_MASK)\r
#define SYSCON_CLOCK_CTRL_PLU_DEGLITCH_CLK_ENA_MASK (0x200U)\r
#define SYSCON_CLOCK_CTRL_PLU_DEGLITCH_CLK_ENA_SHIFT (9U)\r
/*! PLU_DEGLITCH_CLK_ENA - Enable clocks FRO_1MHz and FRO_12MHz for PLU deglitching.\r
* 0b1..The clock is enabled.\r
* 0b0..The clock is not enabled.\r
*/\r
-#define SYSCON_CLOCK_CTRL_PLU_DEGLITCH_CLK_ENA(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_PLU_DEGLITCH_CLK_ENA_SHIFT)) & SYSCON_CLOCK_CTRL_PLU_DEGLITCH_CLK_ENA_MASK)\r
+#define SYSCON_CLOCK_CTRL_PLU_DEGLITCH_CLK_ENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CLOCK_CTRL_PLU_DEGLITCH_CLK_ENA_SHIFT)) & \\r
+ SYSCON_CLOCK_CTRL_PLU_DEGLITCH_CLK_ENA_MASK)\r
/*! @} */\r
\r
/*! @name COMP_INT_CTRL - Comparator Interrupt control */\r
/*! @{ */\r
-#define SYSCON_COMP_INT_CTRL_INT_ENABLE_MASK (0x1U)\r
-#define SYSCON_COMP_INT_CTRL_INT_ENABLE_SHIFT (0U)\r
+#define SYSCON_COMP_INT_CTRL_INT_ENABLE_MASK (0x1U)\r
+#define SYSCON_COMP_INT_CTRL_INT_ENABLE_SHIFT (0U)\r
/*! INT_ENABLE - Analog Comparator interrupt enable control:.\r
* 0b1..interrupt enable.\r
* 0b0..interrupt disable.\r
*/\r
-#define SYSCON_COMP_INT_CTRL_INT_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_CTRL_INT_ENABLE_SHIFT)) & SYSCON_COMP_INT_CTRL_INT_ENABLE_MASK)\r
-#define SYSCON_COMP_INT_CTRL_INT_CLEAR_MASK (0x2U)\r
-#define SYSCON_COMP_INT_CTRL_INT_CLEAR_SHIFT (1U)\r
+#define SYSCON_COMP_INT_CTRL_INT_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_CTRL_INT_ENABLE_SHIFT)) & SYSCON_COMP_INT_CTRL_INT_ENABLE_MASK)\r
+#define SYSCON_COMP_INT_CTRL_INT_CLEAR_MASK (0x2U)\r
+#define SYSCON_COMP_INT_CTRL_INT_CLEAR_SHIFT (1U)\r
/*! INT_CLEAR - Analog Comparator interrupt clear.\r
* 0b0..No effect.\r
* 0b1..Clear the interrupt. Self-cleared bit.\r
*/\r
-#define SYSCON_COMP_INT_CTRL_INT_CLEAR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_CTRL_INT_CLEAR_SHIFT)) & SYSCON_COMP_INT_CTRL_INT_CLEAR_MASK)\r
-#define SYSCON_COMP_INT_CTRL_INT_CTRL_MASK (0x1CU)\r
-#define SYSCON_COMP_INT_CTRL_INT_CTRL_SHIFT (2U)\r
+#define SYSCON_COMP_INT_CTRL_INT_CLEAR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_CTRL_INT_CLEAR_SHIFT)) & SYSCON_COMP_INT_CTRL_INT_CLEAR_MASK)\r
+#define SYSCON_COMP_INT_CTRL_INT_CTRL_MASK (0x1CU)\r
+#define SYSCON_COMP_INT_CTRL_INT_CTRL_SHIFT (2U)\r
/*! INT_CTRL - Comparator interrupt type selector:.\r
* 0b000..The analog comparator interrupt edge sensitive is disabled.\r
* 0b010..analog comparator interrupt is rising edge sensitive.\r
* 0b101..Analog Comparator interrupt is low level sensitive.\r
* 0b111..The analog comparator interrupt level sensitive is disabled.\r
*/\r
-#define SYSCON_COMP_INT_CTRL_INT_CTRL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_CTRL_INT_CTRL_SHIFT)) & SYSCON_COMP_INT_CTRL_INT_CTRL_MASK)\r
-#define SYSCON_COMP_INT_CTRL_INT_SOURCE_MASK (0x20U)\r
-#define SYSCON_COMP_INT_CTRL_INT_SOURCE_SHIFT (5U)\r
+#define SYSCON_COMP_INT_CTRL_INT_CTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_CTRL_INT_CTRL_SHIFT)) & SYSCON_COMP_INT_CTRL_INT_CTRL_MASK)\r
+#define SYSCON_COMP_INT_CTRL_INT_SOURCE_MASK (0x20U)\r
+#define SYSCON_COMP_INT_CTRL_INT_SOURCE_SHIFT (5U)\r
/*! INT_SOURCE - Select which Analog comparator output (filtered our un-filtered) is used for interrupt detection.\r
* 0b0..Select Analog Comparator filtered output as input for interrupt detection.\r
- * 0b1..Select Analog Comparator raw output (unfiltered) as input for interrupt detection. Must be used when Analog comparator is used as wake up source in Power down mode.\r
+ * 0b1..Select Analog Comparator raw output (unfiltered) as input for interrupt detection. Must be used when\r
+ * Analog comparator is used as wake up source in Power down mode.\r
*/\r
-#define SYSCON_COMP_INT_CTRL_INT_SOURCE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_CTRL_INT_SOURCE_SHIFT)) & SYSCON_COMP_INT_CTRL_INT_SOURCE_MASK)\r
+#define SYSCON_COMP_INT_CTRL_INT_SOURCE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_CTRL_INT_SOURCE_SHIFT)) & SYSCON_COMP_INT_CTRL_INT_SOURCE_MASK)\r
/*! @} */\r
\r
/*! @name COMP_INT_STATUS - Comparator Interrupt status */\r
/*! @{ */\r
-#define SYSCON_COMP_INT_STATUS_STATUS_MASK (0x1U)\r
-#define SYSCON_COMP_INT_STATUS_STATUS_SHIFT (0U)\r
+#define SYSCON_COMP_INT_STATUS_STATUS_MASK (0x1U)\r
+#define SYSCON_COMP_INT_STATUS_STATUS_SHIFT (0U)\r
/*! STATUS - Interrupt status BEFORE Interrupt Enable.\r
* 0b0..no interrupt pending.\r
* 0b1..interrupt pending.\r
*/\r
-#define SYSCON_COMP_INT_STATUS_STATUS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_STATUS_STATUS_SHIFT)) & SYSCON_COMP_INT_STATUS_STATUS_MASK)\r
-#define SYSCON_COMP_INT_STATUS_INT_STATUS_MASK (0x2U)\r
-#define SYSCON_COMP_INT_STATUS_INT_STATUS_SHIFT (1U)\r
+#define SYSCON_COMP_INT_STATUS_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_STATUS_STATUS_SHIFT)) & SYSCON_COMP_INT_STATUS_STATUS_MASK)\r
+#define SYSCON_COMP_INT_STATUS_INT_STATUS_MASK (0x2U)\r
+#define SYSCON_COMP_INT_STATUS_INT_STATUS_SHIFT (1U)\r
/*! INT_STATUS - Interrupt status AFTER Interrupt Enable.\r
* 0b0..no interrupt pending.\r
* 0b1..interrupt pending.\r
*/\r
-#define SYSCON_COMP_INT_STATUS_INT_STATUS(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_STATUS_INT_STATUS_SHIFT)) & SYSCON_COMP_INT_STATUS_INT_STATUS_MASK)\r
-#define SYSCON_COMP_INT_STATUS_VAL_MASK (0x4U)\r
-#define SYSCON_COMP_INT_STATUS_VAL_SHIFT (2U)\r
+#define SYSCON_COMP_INT_STATUS_INT_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_STATUS_INT_STATUS_SHIFT)) & SYSCON_COMP_INT_STATUS_INT_STATUS_MASK)\r
+#define SYSCON_COMP_INT_STATUS_VAL_MASK (0x4U)\r
+#define SYSCON_COMP_INT_STATUS_VAL_SHIFT (2U)\r
/*! VAL - comparator analog output.\r
* 0b1..P+ is greater than P-.\r
* 0b0..P+ is smaller than P-.\r
*/\r
-#define SYSCON_COMP_INT_STATUS_VAL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_STATUS_VAL_SHIFT)) & SYSCON_COMP_INT_STATUS_VAL_MASK)\r
+#define SYSCON_COMP_INT_STATUS_VAL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_COMP_INT_STATUS_VAL_SHIFT)) & SYSCON_COMP_INT_STATUS_VAL_MASK)\r
/*! @} */\r
\r
/*! @name AUTOCLKGATEOVERRIDE - Control automatic clock gating */\r
/*! @{ */\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_ROM_MASK (0x1U)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_ROM_SHIFT (0U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_ROM_MASK (0x1U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_ROM_SHIFT (0U)\r
/*! ROM - Control automatic clock gating of ROM controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_ROM(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_ROM_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_ROM_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_ROM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_ROM_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_ROM_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAMX_CTRL_MASK (0x2U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAMX_CTRL_SHIFT (1U)\r
/*! RAMX_CTRL - Control automatic clock gating of RAMX controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_RAMX_CTRL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAMX_CTRL_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_RAMX_CTRL_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_RAMX_CTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAMX_CTRL_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_RAMX_CTRL_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM0_CTRL_MASK (0x4U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM0_CTRL_SHIFT (2U)\r
/*! RAM0_CTRL - Control automatic clock gating of RAM0 controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_RAM0_CTRL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM0_CTRL_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_RAM0_CTRL_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_RAM0_CTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM0_CTRL_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_RAM0_CTRL_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM1_CTRL_MASK (0x8U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM1_CTRL_SHIFT (3U)\r
/*! RAM1_CTRL - Control automatic clock gating of RAM1 controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_RAM1_CTRL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM1_CTRL_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_RAM1_CTRL_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_RAM1_CTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM1_CTRL_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_RAM1_CTRL_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM2_CTRL_MASK (0x10U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM2_CTRL_SHIFT (4U)\r
/*! RAM2_CTRL - Control automatic clock gating of RAM2 controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_RAM2_CTRL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM2_CTRL_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_RAM2_CTRL_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_RAM2_CTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM2_CTRL_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_RAM2_CTRL_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM3_CTRL_MASK (0x20U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM3_CTRL_SHIFT (5U)\r
/*! RAM3_CTRL - Control automatic clock gating of RAM3 controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_RAM3_CTRL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM3_CTRL_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_RAM3_CTRL_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_RAM3_CTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM3_CTRL_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_RAM3_CTRL_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM4_CTRL_MASK (0x40U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_RAM4_CTRL_SHIFT (6U)\r
/*! RAM4_CTRL - Control automatic clock gating of RAM4 controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_RAM4_CTRL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM4_CTRL_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_RAM4_CTRL_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_RAM4_CTRL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_RAM4_CTRL_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_RAM4_CTRL_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_SYNC0_APB_MASK (0x80U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_SYNC0_APB_SHIFT (7U)\r
/*! SYNC0_APB - Control automatic clock gating of synchronous bridge controller 0.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SYNC0_APB(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SYNC0_APB_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_SYNC0_APB_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SYNC0_APB(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SYNC0_APB_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_SYNC0_APB_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_SYNC1_APB_MASK (0x100U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_SYNC1_APB_SHIFT (8U)\r
/*! SYNC1_APB - Control automatic clock gating of synchronous bridge controller 1.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SYNC1_APB(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SYNC1_APB_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_SYNC1_APB_MASK)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_FLASH_MASK (0x200U)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_FLASH_SHIFT (9U)\r
-/*! FLASH - Control automatic clock gating of FLASH controller.\r
- * 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
- * 0b0..Automatic clock gating is not overridden.\r
- */\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_FLASH(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_FLASH_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_FLASH_MASK)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_FMC_MASK (0x400U)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_FMC_SHIFT (10U)\r
-/*! FMC - Control automatic clock gating of FMC controller.\r
- * 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
- * 0b0..Automatic clock gating is not overridden.\r
- */\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_FMC(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_FMC_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_FMC_MASK)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN_MASK (0x800U)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN_SHIFT (11U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SYNC1_APB(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SYNC1_APB_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_SYNC1_APB_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN_MASK (0x800U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN_SHIFT (11U)\r
/*! CRCGEN - Control automatic clock gating of CRCGEN controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN_MASK)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA0_MASK (0x1000U)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA0_SHIFT (12U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_CRCGEN_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA0_MASK (0x1000U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA0_SHIFT (12U)\r
/*! SDMA0 - Control automatic clock gating of DMA0 controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA0(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SDMA0_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_SDMA0_MASK)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA1_MASK (0x2000U)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA1_SHIFT (13U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SDMA0_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_SDMA0_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA1_MASK (0x2000U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA1_SHIFT (13U)\r
/*! SDMA1 - Control automatic clock gating of DMA1 controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA1(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SDMA1_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_SDMA1_MASK)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_USB_MASK (0x4000U)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_USB_SHIFT (14U)\r
-/*! USB - Control automatic clock gating of USB controller.\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SDMA1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SDMA1_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_SDMA1_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_USB0_MASK (0x4000U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_USB0_SHIFT (14U)\r
+/*! USB0 - Control automatic clock gating of USB controller.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_USB(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_USB_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_USB_MASK)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SYSCON_MASK (0x8000U)\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SYSCON_SHIFT (15U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_USB0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_USB0_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_USB0_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SYSCON_MASK (0x8000U)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SYSCON_SHIFT (15U)\r
/*! SYSCON - Control automatic clock gating of synchronous system controller registers bank.\r
* 0b1..Automatic clock gating is overridden (Clock gating is disabled).\r
* 0b0..Automatic clock gating is not overridden.\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_SYSCON(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SYSCON_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_SYSCON_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_SYSCON(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_SYSCON_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_SYSCON_MASK)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_ENABLEUPDATE_MASK (0xFFFF0000U)\r
#define SYSCON_AUTOCLKGATEOVERRIDE_ENABLEUPDATE_SHIFT (16U)\r
/*! ENABLEUPDATE - The value 0xC0DE must be written for AUTOCLKGATEOVERRIDE registers fields updates to have effect.\r
- * 0b1100000011011110..Automatic clock gating is overridden (Clock gating is disabled).\r
- * 0b0000000000000000..Automatic clock gating is not overridden.\r
+ * 0b1100000011011110..Bit Fields 0 - 15 of this register are updated\r
+ * 0b0000000000000000..Bit Fields 0 - 15 of this register are not updated\r
*/\r
-#define SYSCON_AUTOCLKGATEOVERRIDE_ENABLEUPDATE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_ENABLEUPDATE_SHIFT)) & SYSCON_AUTOCLKGATEOVERRIDE_ENABLEUPDATE_MASK)\r
+#define SYSCON_AUTOCLKGATEOVERRIDE_ENABLEUPDATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_AUTOCLKGATEOVERRIDE_ENABLEUPDATE_SHIFT)) & \\r
+ SYSCON_AUTOCLKGATEOVERRIDE_ENABLEUPDATE_MASK)\r
/*! @} */\r
\r
/*! @name GPIOPSYNC - Enable bypass of the first stage of synchonization inside GPIO_INT module */\r
/*! @{ */\r
-#define SYSCON_GPIOPSYNC_PSYNC_MASK (0x1U)\r
-#define SYSCON_GPIOPSYNC_PSYNC_SHIFT (0U)\r
+#define SYSCON_GPIOPSYNC_PSYNC_MASK (0x1U)\r
+#define SYSCON_GPIOPSYNC_PSYNC_SHIFT (0U)\r
/*! PSYNC - Enable bypass of the first stage of synchonization inside GPIO_INT module.\r
* 0b1..bypass of the first stage of synchonization inside GPIO_INT module.\r
* 0b0..use the first stage of synchonization inside GPIO_INT module.\r
*/\r
-#define SYSCON_GPIOPSYNC_PSYNC(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_GPIOPSYNC_PSYNC_SHIFT)) & SYSCON_GPIOPSYNC_PSYNC_MASK)\r
+#define SYSCON_GPIOPSYNC_PSYNC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_GPIOPSYNC_PSYNC_SHIFT)) & SYSCON_GPIOPSYNC_PSYNC_MASK)\r
/*! @} */\r
\r
-/*! @name DEBUG_LOCK_EN - Control write access to security registers -- FOR INTERNAl USE ONLY */\r
+/*! @name DEBUG_LOCK_EN - Control write access to security registers. */\r
/*! @{ */\r
-#define SYSCON_DEBUG_LOCK_EN_LOCK_ALL_MASK (0xFU)\r
-#define SYSCON_DEBUG_LOCK_EN_LOCK_ALL_SHIFT (0U)\r
-/*! LOCK_ALL - Control write access to CODESECURITYPROTTEST, CODESECURITYPROTCPU0, CODESECURITYPROTCPU1, CM33_DEBUG_FEATURES, MCM33_DEBUG_FEATURES and DBG_AUTH_SCRATCH registers.\r
+#define SYSCON_DEBUG_LOCK_EN_LOCK_ALL_MASK (0xFU)\r
+#define SYSCON_DEBUG_LOCK_EN_LOCK_ALL_SHIFT (0U)\r
+/*! LOCK_ALL - Control write access to CODESECURITYPROTTEST, CODESECURITYPROTCPU0,\r
+ * CODESECURITYPROTCPU1, CPU0_DEBUG_FEATURES, CPU1_DEBUG_FEATURES and DBG_AUTH_SCRATCH registers.\r
* 0b1010..1010: Enable write access to all 6 registers.\r
* 0b0000..Any other value than b1010: disable write access to all 6 registers.\r
*/\r
-#define SYSCON_DEBUG_LOCK_EN_LOCK_ALL(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_LOCK_EN_LOCK_ALL_SHIFT)) & SYSCON_DEBUG_LOCK_EN_LOCK_ALL_MASK)\r
+#define SYSCON_DEBUG_LOCK_EN_LOCK_ALL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_LOCK_EN_LOCK_ALL_SHIFT)) & SYSCON_DEBUG_LOCK_EN_LOCK_ALL_MASK)\r
/*! @} */\r
\r
-/*! @name DEBUG_FEATURES - Cortex M33 (CPU0) and micro Cortex M33 (CPU1) debug features control -- FOR INTERNAl USE ONLY */\r
+/*! @name DEBUG_FEATURES - Cortex M33 (CPU0) and micro Cortex M33 (CPU1) debug features control. */\r
/*! @{ */\r
-#define SYSCON_DEBUG_FEATURES_CM33_DBGEN_MASK (0x3U)\r
-#define SYSCON_DEBUG_FEATURES_CM33_DBGEN_SHIFT (0U)\r
-/*! CM33_DBGEN - CM33 (CPU0) Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_CPU0_DBGEN_MASK (0x3U)\r
+#define SYSCON_DEBUG_FEATURES_CPU0_DBGEN_SHIFT (0U)\r
+/*! CPU0_DBGEN - CPU0 Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_CM33_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CM33_DBGEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CM33_DBGEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_CM33_NIDEN_MASK (0xCU)\r
-#define SYSCON_DEBUG_FEATURES_CM33_NIDEN_SHIFT (2U)\r
-/*! CM33_NIDEN - CM33 (CPU0) Non Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_CPU0_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CPU0_DBGEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CPU0_DBGEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_CPU0_NIDEN_MASK (0xCU)\r
+#define SYSCON_DEBUG_FEATURES_CPU0_NIDEN_SHIFT (2U)\r
+/*! CPU0_NIDEN - CPU0 Non Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_CM33_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CM33_NIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CM33_NIDEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_CM33_SPIDEN_MASK (0x30U)\r
-#define SYSCON_DEBUG_FEATURES_CM33_SPIDEN_SHIFT (4U)\r
-/*! CM33_SPIDEN - CM33 (CPU0) Secure Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_CPU0_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CPU0_NIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CPU0_NIDEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_CPU0_SPIDEN_MASK (0x30U)\r
+#define SYSCON_DEBUG_FEATURES_CPU0_SPIDEN_SHIFT (4U)\r
+/*! CPU0_SPIDEN - CPU0 Secure Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_CM33_SPIDEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CM33_SPIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CM33_SPIDEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_CM33_SPNIDEN_MASK (0xC0U)\r
-#define SYSCON_DEBUG_FEATURES_CM33_SPNIDEN_SHIFT (6U)\r
-/*! CM33_SPNIDEN - CM33 (CPU0) Secure Non Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_CPU0_SPIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CPU0_SPIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CPU0_SPIDEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_CPU0_SPNIDEN_MASK (0xC0U)\r
+#define SYSCON_DEBUG_FEATURES_CPU0_SPNIDEN_SHIFT (6U)\r
+/*! CPU0_SPNIDEN - CPU0 Secure Non Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_CM33_SPNIDEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CM33_SPNIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CM33_SPNIDEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_MCM33_DBGEN_MASK (0x300U)\r
-#define SYSCON_DEBUG_FEATURES_MCM33_DBGEN_SHIFT (8U)\r
-/*! MCM33_DBGEN - Micro-CM33 (CPU1) Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_CPU0_SPNIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CPU0_SPNIDEN_SHIFT)) & \\r
+ SYSCON_DEBUG_FEATURES_CPU0_SPNIDEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_CPU1_DBGEN_MASK (0x300U)\r
+#define SYSCON_DEBUG_FEATURES_CPU1_DBGEN_SHIFT (8U)\r
+/*! CPU1_DBGEN - CPU1 Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_MCM33_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_MCM33_DBGEN_SHIFT)) & SYSCON_DEBUG_FEATURES_MCM33_DBGEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_MCM33_NIDEN_MASK (0xC00U)\r
-#define SYSCON_DEBUG_FEATURES_MCM33_NIDEN_SHIFT (10U)\r
-/*! MCM33_NIDEN - Micro-CM33 (CPU1) Non Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_CPU1_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CPU1_DBGEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CPU1_DBGEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_CPU1_NIDEN_MASK (0xC00U)\r
+#define SYSCON_DEBUG_FEATURES_CPU1_NIDEN_SHIFT (10U)\r
+/*! CPU1_NIDEN - CPU1 Non Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_MCM33_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_MCM33_NIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_MCM33_NIDEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_CPU1_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_CPU1_NIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_CPU1_NIDEN_MASK)\r
/*! @} */\r
\r
-/*! @name DEBUG_FEATURES_DP - Cortex M33 (CPU0) and micro Cortex M33 (CPU1) debug features control DUPLICATE register -- FOR INTERNAl USE ONLY */\r
+/*! @name DEBUG_FEATURES_DP - Cortex M33 (CPU0) and micro Cortex M33 (CPU1) debug features control DUPLICATE register.\r
+ */\r
/*! @{ */\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_DBGEN_MASK (0x3U)\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_DBGEN_SHIFT (0U)\r
-/*! CM33_DBGEN - CM33 (CPU0) Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_DBGEN_MASK (0x3U)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_DBGEN_SHIFT (0U)\r
+/*! CPU0_DBGEN - CPU0 (CPU0) Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CM33_DBGEN_SHIFT)) & SYSCON_DEBUG_FEATURES_DP_CM33_DBGEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_NIDEN_MASK (0xCU)\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_NIDEN_SHIFT (2U)\r
-/*! CM33_NIDEN - CM33 (CPU0) Non Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CPU0_DBGEN_SHIFT)) & \\r
+ SYSCON_DEBUG_FEATURES_DP_CPU0_DBGEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_NIDEN_MASK (0xCU)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_NIDEN_SHIFT (2U)\r
+/*! CPU0_NIDEN - CPU0 Non Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CM33_NIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_DP_CM33_NIDEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_SPIDEN_MASK (0x30U)\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_SPIDEN_SHIFT (4U)\r
-/*! CM33_SPIDEN - CM33 (CPU0) Secure Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CPU0_NIDEN_SHIFT)) & \\r
+ SYSCON_DEBUG_FEATURES_DP_CPU0_NIDEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_SPIDEN_MASK (0x30U)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_SPIDEN_SHIFT (4U)\r
+/*! CPU0_SPIDEN - CPU0 Secure Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_SPIDEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CM33_SPIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_DP_CM33_SPIDEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_SPNIDEN_MASK (0xC0U)\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_SPNIDEN_SHIFT (6U)\r
-/*! CM33_SPNIDEN - CM33 (CPU0) Secure Non Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_SPIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CPU0_SPIDEN_SHIFT)) & \\r
+ SYSCON_DEBUG_FEATURES_DP_CPU0_SPIDEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_SPNIDEN_MASK (0xC0U)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_SPNIDEN_SHIFT (6U)\r
+/*! CPU0_SPNIDEN - CPU0 Secure Non Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_DP_CM33_SPNIDEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CM33_SPNIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_DP_CM33_SPNIDEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_DP_MCM33_DBGEN_MASK (0x300U)\r
-#define SYSCON_DEBUG_FEATURES_DP_MCM33_DBGEN_SHIFT (8U)\r
-/*! MCM33_DBGEN - Micro-CM33 (CPU1) Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU0_SPNIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CPU0_SPNIDEN_SHIFT)) & \\r
+ SYSCON_DEBUG_FEATURES_DP_CPU0_SPNIDEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU1_DBGEN_MASK (0x300U)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU1_DBGEN_SHIFT (8U)\r
+/*! CPU1_DBGEN - CPU1 Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_DP_MCM33_DBGEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_MCM33_DBGEN_SHIFT)) & SYSCON_DEBUG_FEATURES_DP_MCM33_DBGEN_MASK)\r
-#define SYSCON_DEBUG_FEATURES_DP_MCM33_NIDEN_MASK (0xC00U)\r
-#define SYSCON_DEBUG_FEATURES_DP_MCM33_NIDEN_SHIFT (10U)\r
-/*! MCM33_NIDEN - Micro-CM33 (CPU1) Non Invasive debug control:.\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU1_DBGEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CPU1_DBGEN_SHIFT)) & \\r
+ SYSCON_DEBUG_FEATURES_DP_CPU1_DBGEN_MASK)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU1_NIDEN_MASK (0xC00U)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU1_NIDEN_SHIFT (10U)\r
+/*! CPU1_NIDEN - CPU1 Non Invasive debug control:.\r
* 0b10..10: Invasive debug is enabled.\r
* 0b01..Any other value than b10: invasive debug is disable.\r
*/\r
-#define SYSCON_DEBUG_FEATURES_DP_MCM33_NIDEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_MCM33_NIDEN_SHIFT)) & SYSCON_DEBUG_FEATURES_DP_MCM33_NIDEN_MASK)\r
-/*! @} */\r
-\r
-/*! @name CODESECURITYPROTTEST - Security code to allow test (Design for Testability) access -- FOR INTERNAl USE ONLY */\r
-/*! @{ */\r
-#define SYSCON_CODESECURITYPROTTEST_SEC_CODE_MASK (0xFFFFFFFFU)\r
-#define SYSCON_CODESECURITYPROTTEST_SEC_CODE_SHIFT (0U)\r
-/*! SEC_CODE - Security code to allow test access : 0x12345678.\r
- * 0b00010010001101000101011001111000..Security code to allow test access.\r
- * 0b00000000000000000000000000000000..test access is not allowed.\r
- */\r
-#define SYSCON_CODESECURITYPROTTEST_SEC_CODE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CODESECURITYPROTTEST_SEC_CODE_SHIFT)) & SYSCON_CODESECURITYPROTTEST_SEC_CODE_MASK)\r
+#define SYSCON_DEBUG_FEATURES_DP_CPU1_NIDEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_FEATURES_DP_CPU1_NIDEN_SHIFT)) & \\r
+ SYSCON_DEBUG_FEATURES_DP_CPU1_NIDEN_MASK)\r
/*! @} */\r
\r
-/*! @name CODESECURITYPROTCPU0 - Security code to allow CPU0 (CM33) Debug Access Port (DAP) -- FOR INTERNAl USE ONLY */\r
+/*! @name KEY_BLOCK - block quiddikey/PUF all index. */\r
/*! @{ */\r
-#define SYSCON_CODESECURITYPROTCPU0_SEC_CODE_MASK (0xFFFFFFFFU)\r
-#define SYSCON_CODESECURITYPROTCPU0_SEC_CODE_SHIFT (0U)\r
-/*! SEC_CODE - Security code to allow CPU0 DAP: 0x12345678.\r
- * 0b00010010001101000101011001111000..Security code to allow CPU0 DAP.\r
- * 0b00000000000000000000000000000000..CPU0 DAP is not allowed.\r
+#define SYSCON_KEY_BLOCK_KEY_BLOCK_MASK (0xFFFFFFFFU)\r
+#define SYSCON_KEY_BLOCK_KEY_BLOCK_SHIFT (0U)\r
+/*! KEY_BLOCK - Write a value to block quiddikey/PUF all index.\r
*/\r
-#define SYSCON_CODESECURITYPROTCPU0_SEC_CODE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CODESECURITYPROTCPU0_SEC_CODE_SHIFT)) & SYSCON_CODESECURITYPROTCPU0_SEC_CODE_MASK)\r
+#define SYSCON_KEY_BLOCK_KEY_BLOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_KEY_BLOCK_KEY_BLOCK_SHIFT)) & SYSCON_KEY_BLOCK_KEY_BLOCK_MASK)\r
/*! @} */\r
\r
-/*! @name CODESECURITYPROTCPU1 - Security code to allow CPU1 (Micro CM33) Debug Access Port (DAP) -- FOR INTERNAl USE ONLY */\r
+/*! @name DEBUG_AUTH_BEACON - Debug authentication BEACON register */\r
/*! @{ */\r
-#define SYSCON_CODESECURITYPROTCPU1_SEC_CODE_MASK (0xFFFFFFFFU)\r
-#define SYSCON_CODESECURITYPROTCPU1_SEC_CODE_SHIFT (0U)\r
-/*! SEC_CODE - Security code to allow CPU1 DAP: 0x12345678.\r
- * 0b00010010001101000101011001111000..Security code to allow CPU1 DAP.\r
- * 0b00000000000000000000000000000000..CPU1 DAP is not allowed.\r
+#define SYSCON_DEBUG_AUTH_BEACON_BEACON_MASK (0xFFFFFFFFU)\r
+#define SYSCON_DEBUG_AUTH_BEACON_BEACON_SHIFT (0U)\r
+/*! BEACON - Set by the debug authentication code in ROM to pass the debug beacons (Credential\r
+ * Beacon and Authentication Beacon) to application code.\r
*/\r
-#define SYSCON_CODESECURITYPROTCPU1_SEC_CODE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CODESECURITYPROTCPU1_SEC_CODE_SHIFT)) & SYSCON_CODESECURITYPROTCPU1_SEC_CODE_MASK)\r
-/*! @} */\r
-\r
-/*! @name KEY_BLOCK - block quiddikey/PUF all index. -- FOR INTERNAL USE ONLY */\r
-/*! @{ */\r
-#define SYSCON_KEY_BLOCK_KEY_BLOCK_MASK (0xFFFFFFFFU)\r
-#define SYSCON_KEY_BLOCK_KEY_BLOCK_SHIFT (0U)\r
-#define SYSCON_KEY_BLOCK_KEY_BLOCK(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_KEY_BLOCK_KEY_BLOCK_SHIFT)) & SYSCON_KEY_BLOCK_KEY_BLOCK_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG_AUTH_SCRATCH - Debug authentication scratch registers -- FOR INTERNAL USE ONLY */\r
-/*! @{ */\r
-#define SYSCON_DEBUG_AUTH_SCRATCH_SCRATCH_MASK (0xFFFFFFFFU)\r
-#define SYSCON_DEBUG_AUTH_SCRATCH_SCRATCH_SHIFT (0U)\r
-#define SYSCON_DEBUG_AUTH_SCRATCH_SCRATCH(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_AUTH_SCRATCH_SCRATCH_SHIFT)) & SYSCON_DEBUG_AUTH_SCRATCH_SCRATCH_MASK)\r
+#define SYSCON_DEBUG_AUTH_BEACON_BEACON(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEBUG_AUTH_BEACON_BEACON_SHIFT)) & SYSCON_DEBUG_AUTH_BEACON_BEACON_MASK)\r
/*! @} */\r
\r
/*! @name CPUCFG - CPUs configuration register */\r
/*! @{ */\r
-#define SYSCON_CPUCFG_CPU1ENABLE_MASK (0x4U)\r
-#define SYSCON_CPUCFG_CPU1ENABLE_SHIFT (2U)\r
+#define SYSCON_CPUCFG_CPU1ENABLE_MASK (0x4U)\r
+#define SYSCON_CPUCFG_CPU1ENABLE_SHIFT (2U)\r
/*! CPU1ENABLE - Enable CPU1.\r
* 0b0..CPU1 is disable (Processor in reset).\r
* 0b1..CPU1 is enable.\r
*/\r
-#define SYSCON_CPUCFG_CPU1ENABLE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_CPUCFG_CPU1ENABLE_SHIFT)) & SYSCON_CPUCFG_CPU1ENABLE_MASK)\r
-/*! @} */\r
-\r
-/*! @name PERIPHENCFG - peripheral enable configuration -- FOR INTERNAL USE ONLY */\r
-/*! @{ */\r
-#define SYSCON_PERIPHENCFG_SCTEN_MASK (0x1U)\r
-#define SYSCON_PERIPHENCFG_SCTEN_SHIFT (0U)\r
-/*! SCTEN - SCT enable.\r
- * 0b1..peripheral is enable.\r
- * 0b0..peripheral is disable.\r
- */\r
-#define SYSCON_PERIPHENCFG_SCTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PERIPHENCFG_SCTEN_SHIFT)) & SYSCON_PERIPHENCFG_SCTEN_MASK)\r
-#define SYSCON_PERIPHENCFG_ADCEN_MASK (0x2U)\r
-#define SYSCON_PERIPHENCFG_ADCEN_SHIFT (1U)\r
-/*! ADCEN - ADC enable.\r
- * 0b1..peripheral is enable.\r
- * 0b0..peripheral is disable.\r
- */\r
-#define SYSCON_PERIPHENCFG_ADCEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PERIPHENCFG_ADCEN_SHIFT)) & SYSCON_PERIPHENCFG_ADCEN_MASK)\r
-#define SYSCON_PERIPHENCFG_USB0EN_MASK (0x4U)\r
-#define SYSCON_PERIPHENCFG_USB0EN_SHIFT (2U)\r
-/*! USB0EN - USB0 enable.\r
- * 0b1..peripheral is enable.\r
- * 0b0..peripheral is disable.\r
- */\r
-#define SYSCON_PERIPHENCFG_USB0EN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PERIPHENCFG_USB0EN_SHIFT)) & SYSCON_PERIPHENCFG_USB0EN_MASK)\r
-#define SYSCON_PERIPHENCFG_PUFFEN_MASK (0x40U)\r
-#define SYSCON_PERIPHENCFG_PUFFEN_SHIFT (6U)\r
-/*! PUFFEN - Puff enable.\r
- * 0b1..peripheral is enable.\r
- * 0b0..peripheral is disable.\r
- */\r
-#define SYSCON_PERIPHENCFG_PUFFEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PERIPHENCFG_PUFFEN_SHIFT)) & SYSCON_PERIPHENCFG_PUFFEN_MASK)\r
-#define SYSCON_PERIPHENCFG_USB1EN_MASK (0x400U)\r
-#define SYSCON_PERIPHENCFG_USB1EN_SHIFT (10U)\r
-/*! USB1EN - USB1 enable.\r
- * 0b1..peripheral is enable.\r
- * 0b0..peripheral is disable.\r
- */\r
-#define SYSCON_PERIPHENCFG_USB1EN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PERIPHENCFG_USB1EN_SHIFT)) & SYSCON_PERIPHENCFG_USB1EN_MASK)\r
-#define SYSCON_PERIPHENCFG_SDIOEN_MASK (0x800U)\r
-#define SYSCON_PERIPHENCFG_SDIOEN_SHIFT (11U)\r
-/*! SDIOEN - SDIO enable.\r
- * 0b1..peripheral is enable.\r
- * 0b0..peripheral is disable.\r
- */\r
-#define SYSCON_PERIPHENCFG_SDIOEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PERIPHENCFG_SDIOEN_SHIFT)) & SYSCON_PERIPHENCFG_SDIOEN_MASK)\r
-#define SYSCON_PERIPHENCFG_HASHEN_MASK (0x1000U)\r
-#define SYSCON_PERIPHENCFG_HASHEN_SHIFT (12U)\r
-/*! HASHEN - HASH enable.\r
- * 0b1..peripheral is enable.\r
- * 0b0..peripheral is disable.\r
- */\r
-#define SYSCON_PERIPHENCFG_HASHEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PERIPHENCFG_HASHEN_SHIFT)) & SYSCON_PERIPHENCFG_HASHEN_MASK)\r
-#define SYSCON_PERIPHENCFG_PRINCEEN_MASK (0x4000U)\r
-#define SYSCON_PERIPHENCFG_PRINCEEN_SHIFT (14U)\r
-/*! PRINCEEN - PRINCE enable.\r
- * 0b1..peripheral is enable.\r
- * 0b0..peripheral is disable.\r
- */\r
-#define SYSCON_PERIPHENCFG_PRINCEEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_PERIPHENCFG_PRINCEEN_SHIFT)) & SYSCON_PERIPHENCFG_PRINCEEN_MASK)\r
+#define SYSCON_CPUCFG_CPU1ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_CPUCFG_CPU1ENABLE_SHIFT)) & SYSCON_CPUCFG_CPU1ENABLE_MASK)\r
/*! @} */\r
\r
/*! @name DEVICE_ID0 - Device ID */\r
/*! @{ */\r
-#define SYSCON_DEVICE_ID0_PARTCONFIG_MASK (0xFFU)\r
-#define SYSCON_DEVICE_ID0_PARTCONFIG_SHIFT (0U)\r
-#define SYSCON_DEVICE_ID0_PARTCONFIG(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEVICE_ID0_PARTCONFIG_SHIFT)) & SYSCON_DEVICE_ID0_PARTCONFIG_MASK)\r
-#define SYSCON_DEVICE_ID0_SRAM_SIZE_MASK (0xF00U)\r
-#define SYSCON_DEVICE_ID0_SRAM_SIZE_SHIFT (8U)\r
-#define SYSCON_DEVICE_ID0_SRAM_SIZE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEVICE_ID0_SRAM_SIZE_SHIFT)) & SYSCON_DEVICE_ID0_SRAM_SIZE_MASK)\r
-#define SYSCON_DEVICE_ID0_FLASH_SIZE_MASK (0x7000U)\r
-#define SYSCON_DEVICE_ID0_FLASH_SIZE_SHIFT (12U)\r
-#define SYSCON_DEVICE_ID0_FLASH_SIZE(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEVICE_ID0_FLASH_SIZE_SHIFT)) & SYSCON_DEVICE_ID0_FLASH_SIZE_MASK)\r
-#define SYSCON_DEVICE_ID0_ROM_REV_MINOR_MASK (0xF00000U)\r
-#define SYSCON_DEVICE_ID0_ROM_REV_MINOR_SHIFT (20U)\r
-#define SYSCON_DEVICE_ID0_ROM_REV_MINOR(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEVICE_ID0_ROM_REV_MINOR_SHIFT)) & SYSCON_DEVICE_ID0_ROM_REV_MINOR_MASK)\r
-#define SYSCON_DEVICE_ID0_MODELNUM_EXTENTION_MASK (0x7000000U)\r
-#define SYSCON_DEVICE_ID0_MODELNUM_EXTENTION_SHIFT (24U)\r
-#define SYSCON_DEVICE_ID0_MODELNUM_EXTENTION(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DEVICE_ID0_MODELNUM_EXTENTION_SHIFT)) & SYSCON_DEVICE_ID0_MODELNUM_EXTENTION_MASK)\r
+#define SYSCON_DEVICE_ID0_ROM_REV_MINOR_MASK (0xF00000U)\r
+#define SYSCON_DEVICE_ID0_ROM_REV_MINOR_SHIFT (20U)\r
+/*! ROM_REV_MINOR - ROM revision.\r
+ */\r
+#define SYSCON_DEVICE_ID0_ROM_REV_MINOR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DEVICE_ID0_ROM_REV_MINOR_SHIFT)) & SYSCON_DEVICE_ID0_ROM_REV_MINOR_MASK)\r
/*! @} */\r
\r
/*! @name DIEID - Chip revision ID and Number */\r
/*! @{ */\r
-#define SYSCON_DIEID_REV_ID_MASK (0xFU)\r
-#define SYSCON_DIEID_REV_ID_SHIFT (0U)\r
-#define SYSCON_DIEID_REV_ID(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DIEID_REV_ID_SHIFT)) & SYSCON_DIEID_REV_ID_MASK)\r
-#define SYSCON_DIEID_MCO_NUM_IN_DIE_ID_MASK (0xFFFFF0U)\r
-#define SYSCON_DIEID_MCO_NUM_IN_DIE_ID_SHIFT (4U)\r
-#define SYSCON_DIEID_MCO_NUM_IN_DIE_ID(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DIEID_MCO_NUM_IN_DIE_ID_SHIFT)) & SYSCON_DIEID_MCO_NUM_IN_DIE_ID_MASK)\r
+#define SYSCON_DIEID_REV_ID_MASK (0xFU)\r
+#define SYSCON_DIEID_REV_ID_SHIFT (0U)\r
+/*! REV_ID - Chip Metal Revision ID.\r
+ */\r
+#define SYSCON_DIEID_REV_ID(x) (((uint32_t)(((uint32_t)(x)) << SYSCON_DIEID_REV_ID_SHIFT)) & SYSCON_DIEID_REV_ID_MASK)\r
+#define SYSCON_DIEID_MCO_NUM_IN_DIE_ID_MASK (0xFFFFF0U)\r
+#define SYSCON_DIEID_MCO_NUM_IN_DIE_ID_SHIFT (4U)\r
+/*! MCO_NUM_IN_DIE_ID - Chip Number 0x426B.\r
+ */\r
+#define SYSCON_DIEID_MCO_NUM_IN_DIE_ID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCON_DIEID_MCO_NUM_IN_DIE_ID_SHIFT)) & SYSCON_DIEID_MCO_NUM_IN_DIE_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group SYSCON_Register_Masks */\r
\r
-\r
/* SYSCON - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral SYSCON base address */\r
- #define SYSCON_BASE (0x50000000u)\r
- /** Peripheral SYSCON base address */\r
- #define SYSCON_BASE_NS (0x40000000u)\r
- /** Peripheral SYSCON base pointer */\r
- #define SYSCON ((SYSCON_Type *)SYSCON_BASE)\r
- /** Peripheral SYSCON base pointer */\r
- #define SYSCON_NS ((SYSCON_Type *)SYSCON_BASE_NS)\r
- /** Array initializer of SYSCON peripheral base addresses */\r
- #define SYSCON_BASE_ADDRS { SYSCON_BASE }\r
- /** Array initializer of SYSCON peripheral base pointers */\r
- #define SYSCON_BASE_PTRS { SYSCON }\r
- /** Array initializer of SYSCON peripheral base addresses */\r
- #define SYSCON_BASE_ADDRS_NS { SYSCON_BASE_NS }\r
- /** Array initializer of SYSCON peripheral base pointers */\r
- #define SYSCON_BASE_PTRS_NS { SYSCON_NS }\r
+/** Peripheral SYSCON base address */\r
+#define SYSCON_BASE (0x50000000u)\r
+/** Peripheral SYSCON base address */\r
+#define SYSCON_BASE_NS (0x40000000u)\r
+/** Peripheral SYSCON base pointer */\r
+#define SYSCON ((SYSCON_Type *)SYSCON_BASE)\r
+/** Peripheral SYSCON base pointer */\r
+#define SYSCON_NS ((SYSCON_Type *)SYSCON_BASE_NS)\r
+/** Array initializer of SYSCON peripheral base addresses */\r
+#define SYSCON_BASE_ADDRS \\r
+ { \\r
+ SYSCON_BASE \\r
+ }\r
+/** Array initializer of SYSCON peripheral base pointers */\r
+#define SYSCON_BASE_PTRS \\r
+ { \\r
+ SYSCON \\r
+ }\r
+/** Array initializer of SYSCON peripheral base addresses */\r
+#define SYSCON_BASE_ADDRS_NS \\r
+ { \\r
+ SYSCON_BASE_NS \\r
+ }\r
+/** Array initializer of SYSCON peripheral base pointers */\r
+#define SYSCON_BASE_PTRS_NS \\r
+ { \\r
+ SYSCON_NS \\r
+ }\r
#else\r
- /** Peripheral SYSCON base address */\r
- #define SYSCON_BASE (0x40000000u)\r
- /** Peripheral SYSCON base pointer */\r
- #define SYSCON ((SYSCON_Type *)SYSCON_BASE)\r
- /** Array initializer of SYSCON peripheral base addresses */\r
- #define SYSCON_BASE_ADDRS { SYSCON_BASE }\r
- /** Array initializer of SYSCON peripheral base pointers */\r
- #define SYSCON_BASE_PTRS { SYSCON }\r
+/** Peripheral SYSCON base address */\r
+#define SYSCON_BASE (0x40000000u)\r
+/** Peripheral SYSCON base pointer */\r
+#define SYSCON ((SYSCON_Type *)SYSCON_BASE)\r
+/** Array initializer of SYSCON peripheral base addresses */\r
+#define SYSCON_BASE_ADDRS \\r
+ { \\r
+ SYSCON_BASE \\r
+ }\r
+/** Array initializer of SYSCON peripheral base pointers */\r
+#define SYSCON_BASE_PTRS \\r
+ { \\r
+ SYSCON \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group SYSCON_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- SYSCTL Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** SYSCTL - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t UPDATELCKOUT; /**< update lock out control, offset: 0x0 */\r
- uint8_t RESERVED_0[60];\r
- __IO uint32_t FCCTRLSEL[8]; /**< Selects the source for SCK going into Flexcomm 0..Selects the source for SCK going into Flexcomm 7, array offset: 0x40, array step: 0x4 */\r
- uint8_t RESERVED_1[32];\r
- __IO uint32_t SHAREDCTRLSET[2]; /**< Selects sources and data combinations for shared signal set 0...Selects sources and data combinations for shared signal set 1., array offset: 0x80, array step: 0x4 */\r
- uint8_t RESERVED_2[120];\r
- __I uint32_t USB_HS_STATUS; /**< Status register for USB HS, offset: 0x100 */\r
+typedef struct\r
+{\r
+ __IO uint32_t UPDATELCKOUT; /**< update lock out control, offset: 0x0 */\r
+ uint8_t RESERVED_0[60];\r
+ __IO uint32_t FCCTRLSEL[8]; /**< Selects the source for SCK going into Flexcomm 0..Selects the source for SCK going\r
+ into Flexcomm 7, array offset: 0x40, array step: 0x4 */\r
+ uint8_t RESERVED_1[32];\r
+ __IO uint32_t\r
+ SHAREDCTRLSET[2]; /**< Selects sources and data combinations for shared signal set 0...Selects sources and data\r
+ combinations for shared signal set 1., array offset: 0x80, array step: 0x4 */\r
+ uint8_t RESERVED_2[120];\r
+ __I uint32_t USB_HS_STATUS; /**< Status register for USB HS, offset: 0x100 */\r
} SYSCTL_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name UPDATELCKOUT - update lock out control */\r
/*! @{ */\r
-#define SYSCTL_UPDATELCKOUT_UPDATELCKOUT_MASK (0x1U)\r
-#define SYSCTL_UPDATELCKOUT_UPDATELCKOUT_SHIFT (0U)\r
+#define SYSCTL_UPDATELCKOUT_UPDATELCKOUT_MASK (0x1U)\r
+#define SYSCTL_UPDATELCKOUT_UPDATELCKOUT_SHIFT (0U)\r
/*! UPDATELCKOUT - All Registers\r
* 0b0..Normal Mode. Can be written to.\r
* 0b1..Protected Mode. Cannot be written to.\r
*/\r
-#define SYSCTL_UPDATELCKOUT_UPDATELCKOUT(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_UPDATELCKOUT_UPDATELCKOUT_SHIFT)) & SYSCTL_UPDATELCKOUT_UPDATELCKOUT_MASK)\r
+#define SYSCTL_UPDATELCKOUT_UPDATELCKOUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_UPDATELCKOUT_UPDATELCKOUT_SHIFT)) & SYSCTL_UPDATELCKOUT_UPDATELCKOUT_MASK)\r
/*! @} */\r
\r
-/*! @name FCCTRLSEL - Selects the source for SCK going into Flexcomm 0..Selects the source for SCK going into Flexcomm 7 */\r
+/*! @name FCCTRLSEL - Selects the source for SCK going into Flexcomm 0..Selects the source for SCK going into Flexcomm 7\r
+ */\r
/*! @{ */\r
-#define SYSCTL_FCCTRLSEL_SCKINSEL_MASK (0x3U)\r
-#define SYSCTL_FCCTRLSEL_SCKINSEL_SHIFT (0U)\r
+#define SYSCTL_FCCTRLSEL_SCKINSEL_MASK (0x3U)\r
+#define SYSCTL_FCCTRLSEL_SCKINSEL_SHIFT (0U)\r
/*! SCKINSEL - Selects the source for SCK going into this Flexcomm.\r
* 0b00..Selects the dedicated FCn_SCK function for this Flexcomm.\r
* 0b01..SCK is taken from shared signal set 0 (defined by SHAREDCTRLSET0).\r
* 0b10..SCK is taken from shared signal set 1 (defined by SHAREDCTRLSET1).\r
* 0b11..Reserved.\r
*/\r
-#define SYSCTL_FCCTRLSEL_SCKINSEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_FCCTRLSEL_SCKINSEL_SHIFT)) & SYSCTL_FCCTRLSEL_SCKINSEL_MASK)\r
-#define SYSCTL_FCCTRLSEL_WSINSEL_MASK (0x300U)\r
-#define SYSCTL_FCCTRLSEL_WSINSEL_SHIFT (8U)\r
+#define SYSCTL_FCCTRLSEL_SCKINSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_FCCTRLSEL_SCKINSEL_SHIFT)) & SYSCTL_FCCTRLSEL_SCKINSEL_MASK)\r
+#define SYSCTL_FCCTRLSEL_WSINSEL_MASK (0x300U)\r
+#define SYSCTL_FCCTRLSEL_WSINSEL_SHIFT (8U)\r
/*! WSINSEL - Selects the source for WS going into this Flexcomm.\r
* 0b00..Selects the dedicated (FCn_TXD_SCL_MISO_WS) function for this Flexcomm.\r
* 0b01..WS is taken from shared signal set 0 (defined by SHAREDCTRLSET0).\r
* 0b10..WS is taken from shared signal set 1 (defined by SHAREDCTRLSET1).\r
* 0b11..Reserved.\r
*/\r
-#define SYSCTL_FCCTRLSEL_WSINSEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_FCCTRLSEL_WSINSEL_SHIFT)) & SYSCTL_FCCTRLSEL_WSINSEL_MASK)\r
-#define SYSCTL_FCCTRLSEL_DATAINSEL_MASK (0x30000U)\r
-#define SYSCTL_FCCTRLSEL_DATAINSEL_SHIFT (16U)\r
+#define SYSCTL_FCCTRLSEL_WSINSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_FCCTRLSEL_WSINSEL_SHIFT)) & SYSCTL_FCCTRLSEL_WSINSEL_MASK)\r
+#define SYSCTL_FCCTRLSEL_DATAINSEL_MASK (0x30000U)\r
+#define SYSCTL_FCCTRLSEL_DATAINSEL_SHIFT (16U)\r
/*! DATAINSEL - Selects the source for DATA input to this Flexcomm.\r
* 0b00..Selects the dedicated FCn_RXD_SDA_MOSI_DATA input for this Flexcomm.\r
* 0b01..Input data is taken from shared signal set 0 (defined by SHAREDCTRLSET0).\r
* 0b10..Input data is taken from shared signal set 1 (defined by SHAREDCTRLSET1).\r
* 0b11..Reserved.\r
*/\r
-#define SYSCTL_FCCTRLSEL_DATAINSEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_FCCTRLSEL_DATAINSEL_SHIFT)) & SYSCTL_FCCTRLSEL_DATAINSEL_MASK)\r
-#define SYSCTL_FCCTRLSEL_DATAOUTSEL_MASK (0x3000000U)\r
-#define SYSCTL_FCCTRLSEL_DATAOUTSEL_SHIFT (24U)\r
+#define SYSCTL_FCCTRLSEL_DATAINSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_FCCTRLSEL_DATAINSEL_SHIFT)) & SYSCTL_FCCTRLSEL_DATAINSEL_MASK)\r
+#define SYSCTL_FCCTRLSEL_DATAOUTSEL_MASK (0x3000000U)\r
+#define SYSCTL_FCCTRLSEL_DATAOUTSEL_SHIFT (24U)\r
/*! DATAOUTSEL - Selects the source for DATA output from this Flexcomm.\r
* 0b00..Selects the dedicated FCn_RXD_SDA_MOSI_DATA output from this Flexcomm.\r
* 0b01..Output data is taken from shared signal set 0 (defined by SHAREDCTRLSET0).\r
* 0b10..Output data is taken from shared signal set 1 (defined by SHAREDCTRLSET1).\r
* 0b11..Reserved.\r
*/\r
-#define SYSCTL_FCCTRLSEL_DATAOUTSEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_FCCTRLSEL_DATAOUTSEL_SHIFT)) & SYSCTL_FCCTRLSEL_DATAOUTSEL_MASK)\r
+#define SYSCTL_FCCTRLSEL_DATAOUTSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_FCCTRLSEL_DATAOUTSEL_SHIFT)) & SYSCTL_FCCTRLSEL_DATAOUTSEL_MASK)\r
/*! @} */\r
\r
/* The count of SYSCTL_FCCTRLSEL */\r
-#define SYSCTL_FCCTRLSEL_COUNT (8U)\r
+#define SYSCTL_FCCTRLSEL_COUNT (8U)\r
\r
-/*! @name SHARECTRLSET_SHAREDCTRLSET - Selects sources and data combinations for shared signal set 0...Selects sources and data combinations for shared signal set 1. */\r
+/*! @name SHAREDCTRLSET - Selects sources and data combinations for shared signal set 0...Selects sources and data\r
+ * combinations for shared signal set 1. */\r
/*! @{ */\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDSCKSEL_MASK (0x7U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDSCKSEL_SHIFT (0U)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDSCKSEL_MASK (0x7U)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDSCKSEL_SHIFT (0U)\r
/*! SHAREDSCKSEL - Selects the source for SCK of this shared signal set.\r
* 0b000..SCK for this shared signal set comes from Flexcomm 0.\r
* 0b001..SCK for this shared signal set comes from Flexcomm 1.\r
* 0b110..SCK for this shared signal set comes from Flexcomm 6.\r
* 0b111..SCK for this shared signal set comes from Flexcomm 7.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDSCKSEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDSCKSEL_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDSCKSEL_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDWSSEL_MASK (0x70U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDWSSEL_SHIFT (4U)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDSCKSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_SHAREDSCKSEL_SHIFT)) & SYSCTL_SHAREDCTRLSET_SHAREDSCKSEL_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDWSSEL_MASK (0x70U)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDWSSEL_SHIFT (4U)\r
/*! SHAREDWSSEL - Selects the source for WS of this shared signal set.\r
* 0b000..WS for this shared signal set comes from Flexcomm 0.\r
* 0b001..WS for this shared signal set comes from Flexcomm 1.\r
* 0b110..WS for this shared signal set comes from Flexcomm 6.\r
* 0b111..WS for this shared signal set comes from Flexcomm 7.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDWSSEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDWSSEL_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDWSSEL_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDDATASEL_MASK (0x700U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDDATASEL_SHIFT (8U)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDWSSEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_SHAREDWSSEL_SHIFT)) & SYSCTL_SHAREDCTRLSET_SHAREDWSSEL_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDDATASEL_MASK (0x700U)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDDATASEL_SHIFT (8U)\r
/*! SHAREDDATASEL - Selects the source for DATA input for this shared signal set.\r
* 0b000..DATA input for this shared signal set comes from Flexcomm 0.\r
* 0b001..DATA input for this shared signal set comes from Flexcomm 1.\r
* 0b110..DATA input for this shared signal set comes from Flexcomm 6.\r
* 0b111..DATA input for this shared signal set comes from Flexcomm 7.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDDATASEL(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDDATASEL_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_SHAREDDATASEL_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC0DATAOUTEN_MASK (0x10000U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC0DATAOUTEN_SHIFT (16U)\r
+#define SYSCTL_SHAREDCTRLSET_SHAREDDATASEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_SHAREDDATASEL_SHIFT)) & \\r
+ SYSCTL_SHAREDCTRLSET_SHAREDDATASEL_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_FC0DATAOUTEN_MASK (0x10000U)\r
+#define SYSCTL_SHAREDCTRLSET_FC0DATAOUTEN_SHIFT (16U)\r
/*! FC0DATAOUTEN - Controls FC0 contribution to SHAREDDATAOUT for this shared set.\r
* 0b0..Data output from FC0 does not contribute to this shared set.\r
* 0b1..Data output from FC0 does contribute to this shared set.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC0DATAOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC0DATAOUTEN_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC0DATAOUTEN_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC1DATAOUTEN_MASK (0x20000U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC1DATAOUTEN_SHIFT (17U)\r
+#define SYSCTL_SHAREDCTRLSET_FC0DATAOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_FC0DATAOUTEN_SHIFT)) & SYSCTL_SHAREDCTRLSET_FC0DATAOUTEN_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_FC1DATAOUTEN_MASK (0x20000U)\r
+#define SYSCTL_SHAREDCTRLSET_FC1DATAOUTEN_SHIFT (17U)\r
/*! FC1DATAOUTEN - Controls FC1 contribution to SHAREDDATAOUT for this shared set.\r
* 0b0..Data output from FC1 does not contribute to this shared set.\r
* 0b1..Data output from FC1 does contribute to this shared set.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC1DATAOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC1DATAOUTEN_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC1DATAOUTEN_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_F20DATAOUTEN_MASK (0x40000U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_F20DATAOUTEN_SHIFT (18U)\r
-/*! F20DATAOUTEN - Controls FC2 contribution to SHAREDDATAOUT for this shared set.\r
+#define SYSCTL_SHAREDCTRLSET_FC1DATAOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_FC1DATAOUTEN_SHIFT)) & SYSCTL_SHAREDCTRLSET_FC1DATAOUTEN_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_FC2DATAOUTEN_MASK (0x40000U)\r
+#define SYSCTL_SHAREDCTRLSET_FC2DATAOUTEN_SHIFT (18U)\r
+/*! FC2DATAOUTEN - Controls FC2 contribution to SHAREDDATAOUT for this shared set.\r
* 0b0..Data output from FC2 does not contribute to this shared set.\r
* 0b1..Data output from FC2 does contribute to this shared set.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_F20DATAOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_F20DATAOUTEN_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_F20DATAOUTEN_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC3DATAOUTEN_MASK (0x80000U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC3DATAOUTEN_SHIFT (19U)\r
-/*! FC3DATAOUTEN - Controls FC3 contribution to SHAREDDATAOUT for this shared set.\r
- * 0b0..Data output from FC3 does not contribute to this shared set.\r
- * 0b1..Data output from FC3 does contribute to this shared set.\r
- */\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC3DATAOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC3DATAOUTEN_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC3DATAOUTEN_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC4DATAOUTEN_MASK (0x100000U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC4DATAOUTEN_SHIFT (20U)\r
+#define SYSCTL_SHAREDCTRLSET_FC2DATAOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_FC2DATAOUTEN_SHIFT)) & SYSCTL_SHAREDCTRLSET_FC2DATAOUTEN_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_FC4DATAOUTEN_MASK (0x100000U)\r
+#define SYSCTL_SHAREDCTRLSET_FC4DATAOUTEN_SHIFT (20U)\r
/*! FC4DATAOUTEN - Controls FC4 contribution to SHAREDDATAOUT for this shared set.\r
* 0b0..Data output from FC4 does not contribute to this shared set.\r
* 0b1..Data output from FC4 does contribute to this shared set.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC4DATAOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC4DATAOUTEN_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC4DATAOUTEN_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC5DATAOUTEN_MASK (0x200000U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC5DATAOUTEN_SHIFT (21U)\r
+#define SYSCTL_SHAREDCTRLSET_FC4DATAOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_FC4DATAOUTEN_SHIFT)) & SYSCTL_SHAREDCTRLSET_FC4DATAOUTEN_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_FC5DATAOUTEN_MASK (0x200000U)\r
+#define SYSCTL_SHAREDCTRLSET_FC5DATAOUTEN_SHIFT (21U)\r
/*! FC5DATAOUTEN - Controls FC5 contribution to SHAREDDATAOUT for this shared set.\r
* 0b0..Data output from FC5 does not contribute to this shared set.\r
* 0b1..Data output from FC5 does contribute to this shared set.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC5DATAOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC5DATAOUTEN_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC5DATAOUTEN_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC6DATAOUTEN_MASK (0x400000U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC6DATAOUTEN_SHIFT (22U)\r
+#define SYSCTL_SHAREDCTRLSET_FC5DATAOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_FC5DATAOUTEN_SHIFT)) & SYSCTL_SHAREDCTRLSET_FC5DATAOUTEN_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_FC6DATAOUTEN_MASK (0x400000U)\r
+#define SYSCTL_SHAREDCTRLSET_FC6DATAOUTEN_SHIFT (22U)\r
/*! FC6DATAOUTEN - Controls FC6 contribution to SHAREDDATAOUT for this shared set.\r
* 0b0..Data output from FC6 does not contribute to this shared set.\r
* 0b1..Data output from FC6 does contribute to this shared set.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC6DATAOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC6DATAOUTEN_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC6DATAOUTEN_MASK)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC7DATAOUTEN_MASK (0x800000U)\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC7DATAOUTEN_SHIFT (23U)\r
+#define SYSCTL_SHAREDCTRLSET_FC6DATAOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_FC6DATAOUTEN_SHIFT)) & SYSCTL_SHAREDCTRLSET_FC6DATAOUTEN_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_FC7DATAOUTEN_MASK (0x800000U)\r
+#define SYSCTL_SHAREDCTRLSET_FC7DATAOUTEN_SHIFT (23U)\r
/*! FC7DATAOUTEN - Controls FC7 contribution to SHAREDDATAOUT for this shared set.\r
* 0b0..Data output from FC7 does not contribute to this shared set.\r
* 0b1..Data output from FC7 does contribute to this shared set.\r
*/\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC7DATAOUTEN(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC7DATAOUTEN_SHIFT)) & SYSCTL_SHARECTRLSET_SHAREDCTRLSET_FC7DATAOUTEN_MASK)\r
+#define SYSCTL_SHAREDCTRLSET_FC7DATAOUTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_SHAREDCTRLSET_FC7DATAOUTEN_SHIFT)) & SYSCTL_SHAREDCTRLSET_FC7DATAOUTEN_MASK)\r
/*! @} */\r
\r
-/* The count of SYSCTL_SHARECTRLSET_SHAREDCTRLSET */\r
-#define SYSCTL_SHARECTRLSET_SHAREDCTRLSET_COUNT (2U)\r
+/* The count of SYSCTL_SHAREDCTRLSET */\r
+#define SYSCTL_SHAREDCTRLSET_COUNT (2U)\r
\r
/*! @name USB_HS_STATUS - Status register for USB HS */\r
/*! @{ */\r
-#define SYSCTL_USB_HS_STATUS_USBHS_3V_NOK_MASK (0x1U)\r
-#define SYSCTL_USB_HS_STATUS_USBHS_3V_NOK_SHIFT (0U)\r
+#define SYSCTL_USB_HS_STATUS_USBHS_3V_NOK_MASK (0x1U)\r
+#define SYSCTL_USB_HS_STATUS_USBHS_3V_NOK_SHIFT (0U)\r
/*! USBHS_3V_NOK - USB_HS: Low voltage detection on 3.3V supply.\r
* 0b0..3v3 supply is good.\r
* 0b1..3v3 supply is too low.\r
*/\r
-#define SYSCTL_USB_HS_STATUS_USBHS_3V_NOK(x) (((uint32_t)(((uint32_t)(x)) << SYSCTL_USB_HS_STATUS_USBHS_3V_NOK_SHIFT)) & SYSCTL_USB_HS_STATUS_USBHS_3V_NOK_MASK)\r
+#define SYSCTL_USB_HS_STATUS_USBHS_3V_NOK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << SYSCTL_USB_HS_STATUS_USBHS_3V_NOK_SHIFT)) & SYSCTL_USB_HS_STATUS_USBHS_3V_NOK_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group SYSCTL_Register_Masks */\r
\r
-\r
/* SYSCTL - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral SYSCTL base address */\r
- #define SYSCTL_BASE (0x50023000u)\r
- /** Peripheral SYSCTL base address */\r
- #define SYSCTL_BASE_NS (0x40023000u)\r
- /** Peripheral SYSCTL base pointer */\r
- #define SYSCTL ((SYSCTL_Type *)SYSCTL_BASE)\r
- /** Peripheral SYSCTL base pointer */\r
- #define SYSCTL_NS ((SYSCTL_Type *)SYSCTL_BASE_NS)\r
- /** Array initializer of SYSCTL peripheral base addresses */\r
- #define SYSCTL_BASE_ADDRS { SYSCTL_BASE }\r
- /** Array initializer of SYSCTL peripheral base pointers */\r
- #define SYSCTL_BASE_PTRS { SYSCTL }\r
- /** Array initializer of SYSCTL peripheral base addresses */\r
- #define SYSCTL_BASE_ADDRS_NS { SYSCTL_BASE_NS }\r
- /** Array initializer of SYSCTL peripheral base pointers */\r
- #define SYSCTL_BASE_PTRS_NS { SYSCTL_NS }\r
+/** Peripheral SYSCTL base address */\r
+#define SYSCTL_BASE (0x50023000u)\r
+/** Peripheral SYSCTL base address */\r
+#define SYSCTL_BASE_NS (0x40023000u)\r
+/** Peripheral SYSCTL base pointer */\r
+#define SYSCTL ((SYSCTL_Type *)SYSCTL_BASE)\r
+/** Peripheral SYSCTL base pointer */\r
+#define SYSCTL_NS ((SYSCTL_Type *)SYSCTL_BASE_NS)\r
+/** Array initializer of SYSCTL peripheral base addresses */\r
+#define SYSCTL_BASE_ADDRS \\r
+ { \\r
+ SYSCTL_BASE \\r
+ }\r
+/** Array initializer of SYSCTL peripheral base pointers */\r
+#define SYSCTL_BASE_PTRS \\r
+ { \\r
+ SYSCTL \\r
+ }\r
+/** Array initializer of SYSCTL peripheral base addresses */\r
+#define SYSCTL_BASE_ADDRS_NS \\r
+ { \\r
+ SYSCTL_BASE_NS \\r
+ }\r
+/** Array initializer of SYSCTL peripheral base pointers */\r
+#define SYSCTL_BASE_PTRS_NS \\r
+ { \\r
+ SYSCTL_NS \\r
+ }\r
#else\r
- /** Peripheral SYSCTL base address */\r
- #define SYSCTL_BASE (0x40023000u)\r
- /** Peripheral SYSCTL base pointer */\r
- #define SYSCTL ((SYSCTL_Type *)SYSCTL_BASE)\r
- /** Array initializer of SYSCTL peripheral base addresses */\r
- #define SYSCTL_BASE_ADDRS { SYSCTL_BASE }\r
- /** Array initializer of SYSCTL peripheral base pointers */\r
- #define SYSCTL_BASE_PTRS { SYSCTL }\r
+/** Peripheral SYSCTL base address */\r
+#define SYSCTL_BASE (0x40023000u)\r
+/** Peripheral SYSCTL base pointer */\r
+#define SYSCTL ((SYSCTL_Type *)SYSCTL_BASE)\r
+/** Array initializer of SYSCTL peripheral base addresses */\r
+#define SYSCTL_BASE_ADDRS \\r
+ { \\r
+ SYSCTL_BASE \\r
+ }\r
+/** Array initializer of SYSCTL peripheral base pointers */\r
+#define SYSCTL_BASE_PTRS \\r
+ { \\r
+ SYSCTL \\r
+ }\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group SYSCTL_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- USART Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** USART - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CFG; /**< USART Configuration register. Basic USART configuration settings that typically are not changed during operation., offset: 0x0 */\r
- __IO uint32_t CTL; /**< USART Control register. USART control settings that are more likely to change during operation., offset: 0x4 */\r
- __IO uint32_t STAT; /**< USART Status register. The complete status value can be read here. Writing ones clears some bits in the register. Some bits can be cleared by writing a 1 to them., offset: 0x8 */\r
- __IO uint32_t INTENSET; /**< Interrupt Enable read and Set register for USART (not FIFO) status. Contains individual interrupt enable bits for each potential USART interrupt. A complete value may be read from this register. Writing a 1 to any implemented bit position causes that bit to be set., offset: 0xC */\r
- __O uint32_t INTENCLR; /**< Interrupt Enable Clear register. Allows clearing any combination of bits in the INTENSET register. Writing a 1 to any implemented bit position causes the corresponding bit to be cleared., offset: 0x10 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t BRG; /**< Baud Rate Generator register. 16-bit integer baud rate divisor value., offset: 0x20 */\r
- __I uint32_t INTSTAT; /**< Interrupt status register. Reflects interrupts that are currently enabled., offset: 0x24 */\r
- __IO uint32_t OSR; /**< Oversample selection register for asynchronous communication., offset: 0x28 */\r
- __IO uint32_t ADDR; /**< Address register for automatic address matching., offset: 0x2C */\r
- uint8_t RESERVED_1[3536];\r
- __IO uint32_t FIFOCFG; /**< FIFO configuration and enable register., offset: 0xE00 */\r
- __IO uint32_t FIFOSTAT; /**< FIFO status register., offset: 0xE04 */\r
- __IO uint32_t FIFOTRIG; /**< FIFO trigger settings for interrupt and DMA request., offset: 0xE08 */\r
- uint8_t RESERVED_2[4];\r
- __IO uint32_t FIFOINTENSET; /**< FIFO interrupt enable set (enable) and read register., offset: 0xE10 */\r
- __IO uint32_t FIFOINTENCLR; /**< FIFO interrupt enable clear (disable) and read register., offset: 0xE14 */\r
- __I uint32_t FIFOINTSTAT; /**< FIFO interrupt status register., offset: 0xE18 */\r
- uint8_t RESERVED_3[4];\r
- __O uint32_t FIFOWR; /**< FIFO write data., offset: 0xE20 */\r
- uint8_t RESERVED_4[12];\r
- __I uint32_t FIFORD; /**< FIFO read data., offset: 0xE30 */\r
- uint8_t RESERVED_5[12];\r
- __I uint32_t FIFORDNOPOP; /**< FIFO data read with no FIFO pop., offset: 0xE40 */\r
- uint8_t RESERVED_6[440];\r
- __I uint32_t ID; /**< Peripheral identification register., offset: 0xFFC */\r
+typedef struct\r
+{\r
+ __IO uint32_t CFG; /**< USART Configuration register. Basic USART configuration settings that typically are not\r
+ changed during operation., offset: 0x0 */\r
+ __IO uint32_t CTL; /**< USART Control register. USART control settings that are more likely to change during\r
+ operation., offset: 0x4 */\r
+ __IO uint32_t STAT; /**< USART Status register. The complete status value can be read here. Writing ones clears some\r
+ bits in the register. Some bits can be cleared by writing a 1 to them., offset: 0x8 */\r
+ __IO uint32_t\r
+ INTENSET; /**< Interrupt Enable read and Set register for USART (not FIFO) status. Contains individual interrupt\r
+ enable bits for each potential USART interrupt. A complete value may be read from this register.\r
+ Writing a 1 to any implemented bit position causes that bit to be set., offset: 0xC */\r
+ __O uint32_t INTENCLR; /**< Interrupt Enable Clear register. Allows clearing any combination of bits in the INTENSET\r
+ register. Writing a 1 to any implemented bit position causes the corresponding bit to be\r
+ cleared., offset: 0x10 */\r
+ uint8_t RESERVED_0[12];\r
+ __IO uint32_t BRG; /**< Baud Rate Generator register. 16-bit integer baud rate divisor value., offset: 0x20 */\r
+ __I uint32_t\r
+ INTSTAT; /**< Interrupt status register. Reflects interrupts that are currently enabled., offset: 0x24 */\r
+ __IO uint32_t OSR; /**< Oversample selection register for asynchronous communication., offset: 0x28 */\r
+ __IO uint32_t ADDR; /**< Address register for automatic address matching., offset: 0x2C */\r
+ uint8_t RESERVED_1[3536];\r
+ __IO uint32_t FIFOCFG; /**< FIFO configuration and enable register., offset: 0xE00 */\r
+ __IO uint32_t FIFOSTAT; /**< FIFO status register., offset: 0xE04 */\r
+ __IO uint32_t FIFOTRIG; /**< FIFO trigger settings for interrupt and DMA request., offset: 0xE08 */\r
+ uint8_t RESERVED_2[4];\r
+ __IO uint32_t FIFOINTENSET; /**< FIFO interrupt enable set (enable) and read register., offset: 0xE10 */\r
+ __IO uint32_t FIFOINTENCLR; /**< FIFO interrupt enable clear (disable) and read register., offset: 0xE14 */\r
+ __I uint32_t FIFOINTSTAT; /**< FIFO interrupt status register., offset: 0xE18 */\r
+ uint8_t RESERVED_3[4];\r
+ __O uint32_t FIFOWR; /**< FIFO write data., offset: 0xE20 */\r
+ uint8_t RESERVED_4[12];\r
+ __I uint32_t FIFORD; /**< FIFO read data., offset: 0xE30 */\r
+ uint8_t RESERVED_5[12];\r
+ __I uint32_t FIFORDNOPOP; /**< FIFO data read with no FIFO pop., offset: 0xE40 */\r
+ uint8_t RESERVED_6[440];\r
+ __I uint32_t ID; /**< Peripheral identification register., offset: 0xFFC */\r
} USART_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name CFG - USART Configuration register. Basic USART configuration settings that typically are not changed during operation. */\r
+/*! @name CFG - USART Configuration register. Basic USART configuration settings that typically are not changed during\r
+ * operation. */\r
/*! @{ */\r
-#define USART_CFG_ENABLE_MASK (0x1U)\r
-#define USART_CFG_ENABLE_SHIFT (0U)\r
+#define USART_CFG_ENABLE_MASK (0x1U)\r
+#define USART_CFG_ENABLE_SHIFT (0U)\r
/*! ENABLE - USART Enable.\r
- * 0b0..Disabled. The USART is disabled and the internal state machine and counters are reset. While Enable = 0, all USART interrupts and DMA transfers are disabled. When Enable is set again, CFG and most other control bits remain unchanged. When re-enabled, the USART will immediately be ready to transmit because the transmitter has been reset and is therefore available.\r
+ * 0b0..Disabled. The USART is disabled and the internal state machine and counters are reset. While Enable = 0,\r
+ * all USART interrupts and DMA transfers are disabled. When Enable is set again, CFG and most other control\r
+ * bits remain unchanged. When re-enabled, the USART will immediately be ready to transmit because the\r
+ * transmitter has been reset and is therefore available.\r
* 0b1..Enabled. The USART is enabled for operation.\r
*/\r
-#define USART_CFG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_ENABLE_SHIFT)) & USART_CFG_ENABLE_MASK)\r
-#define USART_CFG_DATALEN_MASK (0xCU)\r
-#define USART_CFG_DATALEN_SHIFT (2U)\r
+#define USART_CFG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_ENABLE_SHIFT)) & USART_CFG_ENABLE_MASK)\r
+#define USART_CFG_DATALEN_MASK (0xCU)\r
+#define USART_CFG_DATALEN_SHIFT (2U)\r
/*! DATALEN - Selects the data size for the USART.\r
* 0b00..7 bit Data length.\r
* 0b01..8 bit Data length.\r
- * 0b10..9 bit data length. The 9th bit is commonly used for addressing in multidrop mode. See the ADDRDET bit in the CTL register.\r
- * 0b11..Reserved.\r
+ * 0b10..9 bit data length. The 9th bit is commonly used for addressing in multidrop mode. See the ADDRDET bit in the\r
+ * CTL register. 0b11..Reserved.\r
*/\r
-#define USART_CFG_DATALEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_DATALEN_SHIFT)) & USART_CFG_DATALEN_MASK)\r
-#define USART_CFG_PARITYSEL_MASK (0x30U)\r
-#define USART_CFG_PARITYSEL_SHIFT (4U)\r
+#define USART_CFG_DATALEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_DATALEN_SHIFT)) & USART_CFG_DATALEN_MASK)\r
+#define USART_CFG_PARITYSEL_MASK (0x30U)\r
+#define USART_CFG_PARITYSEL_SHIFT (4U)\r
/*! PARITYSEL - Selects what type of parity is used by the USART.\r
* 0b00..No parity.\r
* 0b01..Reserved.\r
- * 0b10..Even parity. Adds a bit to each character such that the number of 1s in a transmitted character is even, and the number of 1s in a received character is expected to be even.\r
- * 0b11..Odd parity. Adds a bit to each character such that the number of 1s in a transmitted character is odd, and the number of 1s in a received character is expected to be odd.\r
- */\r
-#define USART_CFG_PARITYSEL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_PARITYSEL_SHIFT)) & USART_CFG_PARITYSEL_MASK)\r
-#define USART_CFG_STOPLEN_MASK (0x40U)\r
-#define USART_CFG_STOPLEN_SHIFT (6U)\r
+ * 0b10..Even parity. Adds a bit to each character such that the number of 1s in a transmitted character is even,\r
+ * and the number of 1s in a received character is expected to be even.\r
+ * 0b11..Odd parity. Adds a bit to each character such that the number of 1s in a transmitted character is odd,\r
+ * and the number of 1s in a received character is expected to be odd.\r
+ */\r
+#define USART_CFG_PARITYSEL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_PARITYSEL_SHIFT)) & USART_CFG_PARITYSEL_MASK)\r
+#define USART_CFG_STOPLEN_MASK (0x40U)\r
+#define USART_CFG_STOPLEN_SHIFT (6U)\r
/*! STOPLEN - Number of stop bits appended to transmitted data. Only a single stop bit is required for received data.\r
* 0b0..1 stop bit.\r
* 0b1..2 stop bits. This setting should only be used for asynchronous communication.\r
*/\r
-#define USART_CFG_STOPLEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_STOPLEN_SHIFT)) & USART_CFG_STOPLEN_MASK)\r
-#define USART_CFG_MODE32K_MASK (0x80U)\r
-#define USART_CFG_MODE32K_SHIFT (7U)\r
+#define USART_CFG_STOPLEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_STOPLEN_SHIFT)) & USART_CFG_STOPLEN_MASK)\r
+#define USART_CFG_MODE32K_MASK (0x80U)\r
+#define USART_CFG_MODE32K_SHIFT (7U)\r
/*! MODE32K - Selects standard or 32 kHz clocking mode.\r
* 0b0..Disabled. USART uses standard clocking.\r
- * 0b1..Enabled. USART uses the 32 kHz clock from the RTC oscillator as the clock source to the BRG, and uses a special bit clocking scheme.\r
+ * 0b1..Enabled. USART uses the 32 kHz clock from the RTC oscillator as the clock source to the BRG, and uses a special\r
+ * bit clocking scheme.\r
*/\r
-#define USART_CFG_MODE32K(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_MODE32K_SHIFT)) & USART_CFG_MODE32K_MASK)\r
-#define USART_CFG_LINMODE_MASK (0x100U)\r
-#define USART_CFG_LINMODE_SHIFT (8U)\r
+#define USART_CFG_MODE32K(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_MODE32K_SHIFT)) & USART_CFG_MODE32K_MASK)\r
+#define USART_CFG_LINMODE_MASK (0x100U)\r
+#define USART_CFG_LINMODE_SHIFT (8U)\r
/*! LINMODE - LIN break mode enable.\r
* 0b0..Disabled. Break detect and generate is configured for normal operation.\r
* 0b1..Enabled. Break detect and generate is configured for LIN bus operation.\r
*/\r
-#define USART_CFG_LINMODE(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_LINMODE_SHIFT)) & USART_CFG_LINMODE_MASK)\r
-#define USART_CFG_CTSEN_MASK (0x200U)\r
-#define USART_CFG_CTSEN_SHIFT (9U)\r
-/*! CTSEN - CTS Enable. Determines whether CTS is used for flow control. CTS can be from the input pin, or from the USART's own RTS if loopback mode is enabled.\r
+#define USART_CFG_LINMODE(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_LINMODE_SHIFT)) & USART_CFG_LINMODE_MASK)\r
+#define USART_CFG_CTSEN_MASK (0x200U)\r
+#define USART_CFG_CTSEN_SHIFT (9U)\r
+/*! CTSEN - CTS Enable. Determines whether CTS is used for flow control. CTS can be from the input\r
+ * pin, or from the USART's own RTS if loopback mode is enabled.\r
* 0b0..No flow control. The transmitter does not receive any automatic flow control signal.\r
- * 0b1..Flow control enabled. The transmitter uses the CTS input (or RTS output in loopback mode) for flow control purposes.\r
+ * 0b1..Flow control enabled. The transmitter uses the CTS input (or RTS output in loopback mode) for flow control\r
+ * purposes.\r
*/\r
-#define USART_CFG_CTSEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_CTSEN_SHIFT)) & USART_CFG_CTSEN_MASK)\r
-#define USART_CFG_SYNCEN_MASK (0x800U)\r
-#define USART_CFG_SYNCEN_SHIFT (11U)\r
+#define USART_CFG_CTSEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_CTSEN_SHIFT)) & USART_CFG_CTSEN_MASK)\r
+#define USART_CFG_SYNCEN_MASK (0x800U)\r
+#define USART_CFG_SYNCEN_SHIFT (11U)\r
/*! SYNCEN - Selects synchronous or asynchronous operation.\r
* 0b0..Asynchronous mode.\r
* 0b1..Synchronous mode.\r
*/\r
-#define USART_CFG_SYNCEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_SYNCEN_SHIFT)) & USART_CFG_SYNCEN_MASK)\r
-#define USART_CFG_CLKPOL_MASK (0x1000U)\r
-#define USART_CFG_CLKPOL_SHIFT (12U)\r
+#define USART_CFG_SYNCEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_SYNCEN_SHIFT)) & USART_CFG_SYNCEN_MASK)\r
+#define USART_CFG_CLKPOL_MASK (0x1000U)\r
+#define USART_CFG_CLKPOL_SHIFT (12U)\r
/*! CLKPOL - Selects the clock polarity and sampling edge of received data in synchronous mode.\r
* 0b0..Falling edge. Un_RXD is sampled on the falling edge of SCLK.\r
* 0b1..Rising edge. Un_RXD is sampled on the rising edge of SCLK.\r
*/\r
-#define USART_CFG_CLKPOL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_CLKPOL_SHIFT)) & USART_CFG_CLKPOL_MASK)\r
-#define USART_CFG_SYNCMST_MASK (0x4000U)\r
-#define USART_CFG_SYNCMST_SHIFT (14U)\r
+#define USART_CFG_CLKPOL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_CLKPOL_SHIFT)) & USART_CFG_CLKPOL_MASK)\r
+#define USART_CFG_SYNCMST_MASK (0x4000U)\r
+#define USART_CFG_SYNCMST_SHIFT (14U)\r
/*! SYNCMST - Synchronous mode Master select.\r
* 0b0..Slave. When synchronous mode is enabled, the USART is a slave.\r
* 0b1..Master. When synchronous mode is enabled, the USART is a master.\r
*/\r
-#define USART_CFG_SYNCMST(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_SYNCMST_SHIFT)) & USART_CFG_SYNCMST_MASK)\r
-#define USART_CFG_LOOP_MASK (0x8000U)\r
-#define USART_CFG_LOOP_SHIFT (15U)\r
+#define USART_CFG_SYNCMST(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_SYNCMST_SHIFT)) & USART_CFG_SYNCMST_MASK)\r
+#define USART_CFG_LOOP_MASK (0x8000U)\r
+#define USART_CFG_LOOP_SHIFT (15U)\r
/*! LOOP - Selects data loopback mode.\r
* 0b0..Normal operation.\r
- * 0b1..Loopback mode. This provides a mechanism to perform diagnostic loopback testing for USART data. Serial data from the transmitter (Un_TXD) is connected internally to serial input of the receive (Un_RXD). Un_TXD and Un_RTS activity will also appear on external pins if these functions are configured to appear on device pins. The receiver RTS signal is also looped back to CTS and performs flow control if enabled by CTSEN.\r
- */\r
-#define USART_CFG_LOOP(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_LOOP_SHIFT)) & USART_CFG_LOOP_MASK)\r
-#define USART_CFG_OETA_MASK (0x40000U)\r
-#define USART_CFG_OETA_SHIFT (18U)\r
+ * 0b1..Loopback mode. This provides a mechanism to perform diagnostic loopback testing for USART data. Serial\r
+ * data from the transmitter (Un_TXD) is connected internally to serial input of the receive (Un_RXD). Un_TXD\r
+ * and Un_RTS activity will also appear on external pins if these functions are configured to appear on device\r
+ * pins. The receiver RTS signal is also looped back to CTS and performs flow control if enabled by CTSEN.\r
+ */\r
+#define USART_CFG_LOOP(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_LOOP_SHIFT)) & USART_CFG_LOOP_MASK)\r
+#define USART_CFG_OETA_MASK (0x40000U)\r
+#define USART_CFG_OETA_SHIFT (18U)\r
/*! OETA - Output Enable Turnaround time enable for RS-485 operation.\r
- * 0b0..Disabled. If selected by OESEL, the Output Enable signal deasserted at the end of the last stop bit of a transmission.\r
- * 0b1..Enabled. If selected by OESEL, the Output Enable signal remains asserted for one character time after the end of the last stop bit of a transmission. OE will also remain asserted if another transmit begins before it is deasserted.\r
- */\r
-#define USART_CFG_OETA(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_OETA_SHIFT)) & USART_CFG_OETA_MASK)\r
-#define USART_CFG_AUTOADDR_MASK (0x80000U)\r
-#define USART_CFG_AUTOADDR_SHIFT (19U)\r
+ * 0b0..Disabled. If selected by OESEL, the Output Enable signal deasserted at the end of the last stop bit of a\r
+ * transmission. 0b1..Enabled. If selected by OESEL, the Output Enable signal remains asserted for one character time\r
+ * after the end of the last stop bit of a transmission. OE will also remain asserted if another transmit begins before\r
+ * it is deasserted.\r
+ */\r
+#define USART_CFG_OETA(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_OETA_SHIFT)) & USART_CFG_OETA_MASK)\r
+#define USART_CFG_AUTOADDR_MASK (0x80000U)\r
+#define USART_CFG_AUTOADDR_SHIFT (19U)\r
/*! AUTOADDR - Automatic Address matching enable.\r
- * 0b0..Disabled. When addressing is enabled by ADDRDET, address matching is done by software. This provides the possibility of versatile addressing (e.g. respond to more than one address).\r
- * 0b1..Enabled. When addressing is enabled by ADDRDET, address matching is done by hardware, using the value in the ADDR register as the address to match.\r
- */\r
-#define USART_CFG_AUTOADDR(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_AUTOADDR_SHIFT)) & USART_CFG_AUTOADDR_MASK)\r
-#define USART_CFG_OESEL_MASK (0x100000U)\r
-#define USART_CFG_OESEL_SHIFT (20U)\r
+ * 0b0..Disabled. When addressing is enabled by ADDRDET, address matching is done by software. This provides the\r
+ * possibility of versatile addressing (e.g. respond to more than one address).\r
+ * 0b1..Enabled. When addressing is enabled by ADDRDET, address matching is done by hardware, using the value in\r
+ * the ADDR register as the address to match.\r
+ */\r
+#define USART_CFG_AUTOADDR(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_AUTOADDR_SHIFT)) & USART_CFG_AUTOADDR_MASK)\r
+#define USART_CFG_OESEL_MASK (0x100000U)\r
+#define USART_CFG_OESEL_SHIFT (20U)\r
/*! OESEL - Output Enable Select.\r
* 0b0..Standard. The RTS signal is used as the standard flow control function.\r
* 0b1..RS-485. The RTS signal configured to provide an output enable signal to control an RS-485 transceiver.\r
*/\r
-#define USART_CFG_OESEL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_OESEL_SHIFT)) & USART_CFG_OESEL_MASK)\r
-#define USART_CFG_OEPOL_MASK (0x200000U)\r
-#define USART_CFG_OEPOL_SHIFT (21U)\r
+#define USART_CFG_OESEL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_OESEL_SHIFT)) & USART_CFG_OESEL_MASK)\r
+#define USART_CFG_OEPOL_MASK (0x200000U)\r
+#define USART_CFG_OEPOL_SHIFT (21U)\r
/*! OEPOL - Output Enable Polarity.\r
* 0b0..Low. If selected by OESEL, the output enable is active low.\r
* 0b1..High. If selected by OESEL, the output enable is active high.\r
*/\r
-#define USART_CFG_OEPOL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_OEPOL_SHIFT)) & USART_CFG_OEPOL_MASK)\r
-#define USART_CFG_RXPOL_MASK (0x400000U)\r
-#define USART_CFG_RXPOL_SHIFT (22U)\r
+#define USART_CFG_OEPOL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_OEPOL_SHIFT)) & USART_CFG_OEPOL_MASK)\r
+#define USART_CFG_RXPOL_MASK (0x400000U)\r
+#define USART_CFG_RXPOL_SHIFT (22U)\r
/*! RXPOL - Receive data polarity.\r
- * 0b0..Standard. The RX signal is used as it arrives from the pin. This means that the RX rest value is 1, start bit is 0, data is not inverted, and the stop bit is 1.\r
- * 0b1..Inverted. The RX signal is inverted before being used by the USART. This means that the RX rest value is 0, start bit is 1, data is inverted, and the stop bit is 0.\r
- */\r
-#define USART_CFG_RXPOL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_RXPOL_SHIFT)) & USART_CFG_RXPOL_MASK)\r
-#define USART_CFG_TXPOL_MASK (0x800000U)\r
-#define USART_CFG_TXPOL_SHIFT (23U)\r
+ * 0b0..Standard. The RX signal is used as it arrives from the pin. This means that the RX rest value is 1, start\r
+ * bit is 0, data is not inverted, and the stop bit is 1.\r
+ * 0b1..Inverted. The RX signal is inverted before being used by the USART. This means that the RX rest value is\r
+ * 0, start bit is 1, data is inverted, and the stop bit is 0.\r
+ */\r
+#define USART_CFG_RXPOL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_RXPOL_SHIFT)) & USART_CFG_RXPOL_MASK)\r
+#define USART_CFG_TXPOL_MASK (0x800000U)\r
+#define USART_CFG_TXPOL_SHIFT (23U)\r
/*! TXPOL - Transmit data polarity.\r
- * 0b0..Standard. The TX signal is sent out without change. This means that the TX rest value is 1, start bit is 0, data is not inverted, and the stop bit is 1.\r
- * 0b1..Inverted. The TX signal is inverted by the USART before being sent out. This means that the TX rest value is 0, start bit is 1, data is inverted, and the stop bit is 0.\r
+ * 0b0..Standard. The TX signal is sent out without change. This means that the TX rest value is 1, start bit is\r
+ * 0, data is not inverted, and the stop bit is 1.\r
+ * 0b1..Inverted. The TX signal is inverted by the USART before being sent out. This means that the TX rest value\r
+ * is 0, start bit is 1, data is inverted, and the stop bit is 0.\r
*/\r
-#define USART_CFG_TXPOL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_TXPOL_SHIFT)) & USART_CFG_TXPOL_MASK)\r
+#define USART_CFG_TXPOL(x) (((uint32_t)(((uint32_t)(x)) << USART_CFG_TXPOL_SHIFT)) & USART_CFG_TXPOL_MASK)\r
/*! @} */\r
\r
/*! @name CTL - USART Control register. USART control settings that are more likely to change during operation. */\r
/*! @{ */\r
-#define USART_CTL_TXBRKEN_MASK (0x2U)\r
-#define USART_CTL_TXBRKEN_SHIFT (1U)\r
+#define USART_CTL_TXBRKEN_MASK (0x2U)\r
+#define USART_CTL_TXBRKEN_SHIFT (1U)\r
/*! TXBRKEN - Break Enable.\r
* 0b0..Normal operation.\r
- * 0b1..Continuous break. Continuous break is sent immediately when this bit is set, and remains until this bit is cleared. A break may be sent without danger of corrupting any currently transmitting character if the transmitter is first disabled (TXDIS in CTL is set) and then waiting for the transmitter to be disabled (TXDISINT in STAT = 1) before writing 1 to TXBRKEN.\r
- */\r
-#define USART_CTL_TXBRKEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_TXBRKEN_SHIFT)) & USART_CTL_TXBRKEN_MASK)\r
-#define USART_CTL_ADDRDET_MASK (0x4U)\r
-#define USART_CTL_ADDRDET_SHIFT (2U)\r
+ * 0b1..Continuous break. Continuous break is sent immediately when this bit is set, and remains until this bit\r
+ * is cleared. A break may be sent without danger of corrupting any currently transmitting character if the\r
+ * transmitter is first disabled (TXDIS in CTL is set) and then waiting for the transmitter to be disabled\r
+ * (TXDISINT in STAT = 1) before writing 1 to TXBRKEN.\r
+ */\r
+#define USART_CTL_TXBRKEN(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_TXBRKEN_SHIFT)) & USART_CTL_TXBRKEN_MASK)\r
+#define USART_CTL_ADDRDET_MASK (0x4U)\r
+#define USART_CTL_ADDRDET_SHIFT (2U)\r
/*! ADDRDET - Enable address detect mode.\r
* 0b0..Disabled. The USART presents all incoming data.\r
- * 0b1..Enabled. The USART receiver ignores incoming data that does not have the most significant bit of the data (typically the 9th bit) = 1. When the data MSB bit = 1, the receiver treats the incoming data normally, generating a received data interrupt. Software can then check the data to see if this is an address that should be handled. If it is, the ADDRDET bit is cleared by software and further incoming data is handled normally.\r
- */\r
-#define USART_CTL_ADDRDET(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_ADDRDET_SHIFT)) & USART_CTL_ADDRDET_MASK)\r
-#define USART_CTL_TXDIS_MASK (0x40U)\r
-#define USART_CTL_TXDIS_SHIFT (6U)\r
+ * 0b1..Enabled. The USART receiver ignores incoming data that does not have the most significant bit of the data\r
+ * (typically the 9th bit) = 1. When the data MSB bit = 1, the receiver treats the incoming data normally,\r
+ * generating a received data interrupt. Software can then check the data to see if this is an address that\r
+ * should be handled. If it is, the ADDRDET bit is cleared by software and further incoming data is handled\r
+ * normally.\r
+ */\r
+#define USART_CTL_ADDRDET(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_ADDRDET_SHIFT)) & USART_CTL_ADDRDET_MASK)\r
+#define USART_CTL_TXDIS_MASK (0x40U)\r
+#define USART_CTL_TXDIS_SHIFT (6U)\r
/*! TXDIS - Transmit Disable.\r
* 0b0..Not disabled. USART transmitter is not disabled.\r
- * 0b1..Disabled. USART transmitter is disabled after any character currently being transmitted is complete. This feature can be used to facilitate software flow control.\r
- */\r
-#define USART_CTL_TXDIS(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_TXDIS_SHIFT)) & USART_CTL_TXDIS_MASK)\r
-#define USART_CTL_CC_MASK (0x100U)\r
-#define USART_CTL_CC_SHIFT (8U)\r
-/*! CC - Continuous Clock generation. By default, SCLK is only output while data is being transmitted in synchronous mode.\r
- * 0b0..Clock on character. In synchronous mode, SCLK cycles only when characters are being sent on Un_TXD or to complete a character that is being received.\r
- * 0b1..Continuous clock. SCLK runs continuously in synchronous mode, allowing characters to be received on Un_RxD independently from transmission on Un_TXD).\r
- */\r
-#define USART_CTL_CC(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_CC_SHIFT)) & USART_CTL_CC_MASK)\r
-#define USART_CTL_CLRCCONRX_MASK (0x200U)\r
-#define USART_CTL_CLRCCONRX_SHIFT (9U)\r
+ * 0b1..Disabled. USART transmitter is disabled after any character currently being transmitted is complete. This\r
+ * feature can be used to facilitate software flow control.\r
+ */\r
+#define USART_CTL_TXDIS(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_TXDIS_SHIFT)) & USART_CTL_TXDIS_MASK)\r
+#define USART_CTL_CC_MASK (0x100U)\r
+#define USART_CTL_CC_SHIFT (8U)\r
+/*! CC - Continuous Clock generation. By default, SCLK is only output while data is being transmitted in synchronous\r
+ * mode. 0b0..Clock on character. In synchronous mode, SCLK cycles only when characters are being sent on Un_TXD or to\r
+ * complete a character that is being received.\r
+ * 0b1..Continuous clock. SCLK runs continuously in synchronous mode, allowing characters to be received on\r
+ * Un_RxD independently from transmission on Un_TXD).\r
+ */\r
+#define USART_CTL_CC(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_CC_SHIFT)) & USART_CTL_CC_MASK)\r
+#define USART_CTL_CLRCCONRX_MASK (0x200U)\r
+#define USART_CTL_CLRCCONRX_SHIFT (9U)\r
/*! CLRCCONRX - Clear Continuous Clock.\r
* 0b0..No effect. No effect on the CC bit.\r
- * 0b1..Auto-clear. The CC bit is automatically cleared when a complete character has been received. This bit is cleared at the same time.\r
+ * 0b1..Auto-clear. The CC bit is automatically cleared when a complete character has been received. This bit is\r
+ * cleared at the same time.\r
*/\r
-#define USART_CTL_CLRCCONRX(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_CLRCCONRX_SHIFT)) & USART_CTL_CLRCCONRX_MASK)\r
-#define USART_CTL_AUTOBAUD_MASK (0x10000U)\r
-#define USART_CTL_AUTOBAUD_SHIFT (16U)\r
+#define USART_CTL_CLRCCONRX(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_CLRCCONRX_SHIFT)) & USART_CTL_CLRCCONRX_MASK)\r
+#define USART_CTL_AUTOBAUD_MASK (0x10000U)\r
+#define USART_CTL_AUTOBAUD_SHIFT (16U)\r
/*! AUTOBAUD - Autobaud enable.\r
* 0b0..Disabled. USART is in normal operating mode.\r
- * 0b1..Enabled. USART is in autobaud mode. This bit should only be set when the USART receiver is idle. The first start bit of RX is measured and used the update the BRG register to match the received data rate. AUTOBAUD is cleared once this process is complete, or if there is an AERR.\r
- */\r
-#define USART_CTL_AUTOBAUD(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_AUTOBAUD_SHIFT)) & USART_CTL_AUTOBAUD_MASK)\r
-/*! @} */\r
-\r
-/*! @name STAT - USART Status register. The complete status value can be read here. Writing ones clears some bits in the register. Some bits can be cleared by writing a 1 to them. */\r
-/*! @{ */\r
-#define USART_STAT_RXIDLE_MASK (0x2U)\r
-#define USART_STAT_RXIDLE_SHIFT (1U)\r
-#define USART_STAT_RXIDLE(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_RXIDLE_SHIFT)) & USART_STAT_RXIDLE_MASK)\r
-#define USART_STAT_TXIDLE_MASK (0x8U)\r
-#define USART_STAT_TXIDLE_SHIFT (3U)\r
-#define USART_STAT_TXIDLE(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_TXIDLE_SHIFT)) & USART_STAT_TXIDLE_MASK)\r
-#define USART_STAT_CTS_MASK (0x10U)\r
-#define USART_STAT_CTS_SHIFT (4U)\r
-#define USART_STAT_CTS(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_CTS_SHIFT)) & USART_STAT_CTS_MASK)\r
-#define USART_STAT_DELTACTS_MASK (0x20U)\r
-#define USART_STAT_DELTACTS_SHIFT (5U)\r
-#define USART_STAT_DELTACTS(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_DELTACTS_SHIFT)) & USART_STAT_DELTACTS_MASK)\r
-#define USART_STAT_TXDISSTAT_MASK (0x40U)\r
-#define USART_STAT_TXDISSTAT_SHIFT (6U)\r
-#define USART_STAT_TXDISSTAT(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_TXDISSTAT_SHIFT)) & USART_STAT_TXDISSTAT_MASK)\r
-#define USART_STAT_RXBRK_MASK (0x400U)\r
-#define USART_STAT_RXBRK_SHIFT (10U)\r
-#define USART_STAT_RXBRK(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_RXBRK_SHIFT)) & USART_STAT_RXBRK_MASK)\r
-#define USART_STAT_DELTARXBRK_MASK (0x800U)\r
-#define USART_STAT_DELTARXBRK_SHIFT (11U)\r
-#define USART_STAT_DELTARXBRK(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_DELTARXBRK_SHIFT)) & USART_STAT_DELTARXBRK_MASK)\r
-#define USART_STAT_START_MASK (0x1000U)\r
-#define USART_STAT_START_SHIFT (12U)\r
-#define USART_STAT_START(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_START_SHIFT)) & USART_STAT_START_MASK)\r
-#define USART_STAT_FRAMERRINT_MASK (0x2000U)\r
-#define USART_STAT_FRAMERRINT_SHIFT (13U)\r
-#define USART_STAT_FRAMERRINT(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_FRAMERRINT_SHIFT)) & USART_STAT_FRAMERRINT_MASK)\r
-#define USART_STAT_PARITYERRINT_MASK (0x4000U)\r
-#define USART_STAT_PARITYERRINT_SHIFT (14U)\r
-#define USART_STAT_PARITYERRINT(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_PARITYERRINT_SHIFT)) & USART_STAT_PARITYERRINT_MASK)\r
-#define USART_STAT_RXNOISEINT_MASK (0x8000U)\r
-#define USART_STAT_RXNOISEINT_SHIFT (15U)\r
-#define USART_STAT_RXNOISEINT(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_RXNOISEINT_SHIFT)) & USART_STAT_RXNOISEINT_MASK)\r
-#define USART_STAT_ABERR_MASK (0x10000U)\r
-#define USART_STAT_ABERR_SHIFT (16U)\r
-#define USART_STAT_ABERR(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_ABERR_SHIFT)) & USART_STAT_ABERR_MASK)\r
-/*! @} */\r
-\r
-/*! @name INTENSET - Interrupt Enable read and Set register for USART (not FIFO) status. Contains individual interrupt enable bits for each potential USART interrupt. A complete value may be read from this register. Writing a 1 to any implemented bit position causes that bit to be set. */\r
-/*! @{ */\r
-#define USART_INTENSET_TXIDLEEN_MASK (0x8U)\r
-#define USART_INTENSET_TXIDLEEN_SHIFT (3U)\r
-#define USART_INTENSET_TXIDLEEN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_TXIDLEEN_SHIFT)) & USART_INTENSET_TXIDLEEN_MASK)\r
-#define USART_INTENSET_DELTACTSEN_MASK (0x20U)\r
-#define USART_INTENSET_DELTACTSEN_SHIFT (5U)\r
-#define USART_INTENSET_DELTACTSEN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_DELTACTSEN_SHIFT)) & USART_INTENSET_DELTACTSEN_MASK)\r
-#define USART_INTENSET_TXDISEN_MASK (0x40U)\r
-#define USART_INTENSET_TXDISEN_SHIFT (6U)\r
-#define USART_INTENSET_TXDISEN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_TXDISEN_SHIFT)) & USART_INTENSET_TXDISEN_MASK)\r
-#define USART_INTENSET_DELTARXBRKEN_MASK (0x800U)\r
-#define USART_INTENSET_DELTARXBRKEN_SHIFT (11U)\r
-#define USART_INTENSET_DELTARXBRKEN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_DELTARXBRKEN_SHIFT)) & USART_INTENSET_DELTARXBRKEN_MASK)\r
-#define USART_INTENSET_STARTEN_MASK (0x1000U)\r
-#define USART_INTENSET_STARTEN_SHIFT (12U)\r
-#define USART_INTENSET_STARTEN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_STARTEN_SHIFT)) & USART_INTENSET_STARTEN_MASK)\r
-#define USART_INTENSET_FRAMERREN_MASK (0x2000U)\r
-#define USART_INTENSET_FRAMERREN_SHIFT (13U)\r
-#define USART_INTENSET_FRAMERREN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_FRAMERREN_SHIFT)) & USART_INTENSET_FRAMERREN_MASK)\r
-#define USART_INTENSET_PARITYERREN_MASK (0x4000U)\r
-#define USART_INTENSET_PARITYERREN_SHIFT (14U)\r
-#define USART_INTENSET_PARITYERREN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_PARITYERREN_SHIFT)) & USART_INTENSET_PARITYERREN_MASK)\r
-#define USART_INTENSET_RXNOISEEN_MASK (0x8000U)\r
-#define USART_INTENSET_RXNOISEEN_SHIFT (15U)\r
-#define USART_INTENSET_RXNOISEEN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_RXNOISEEN_SHIFT)) & USART_INTENSET_RXNOISEEN_MASK)\r
-#define USART_INTENSET_ABERREN_MASK (0x10000U)\r
-#define USART_INTENSET_ABERREN_SHIFT (16U)\r
-#define USART_INTENSET_ABERREN(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_ABERREN_SHIFT)) & USART_INTENSET_ABERREN_MASK)\r
-/*! @} */\r
-\r
-/*! @name INTENCLR - Interrupt Enable Clear register. Allows clearing any combination of bits in the INTENSET register. Writing a 1 to any implemented bit position causes the corresponding bit to be cleared. */\r
-/*! @{ */\r
-#define USART_INTENCLR_TXIDLECLR_MASK (0x8U)\r
-#define USART_INTENCLR_TXIDLECLR_SHIFT (3U)\r
-#define USART_INTENCLR_TXIDLECLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_TXIDLECLR_SHIFT)) & USART_INTENCLR_TXIDLECLR_MASK)\r
-#define USART_INTENCLR_DELTACTSCLR_MASK (0x20U)\r
-#define USART_INTENCLR_DELTACTSCLR_SHIFT (5U)\r
-#define USART_INTENCLR_DELTACTSCLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_DELTACTSCLR_SHIFT)) & USART_INTENCLR_DELTACTSCLR_MASK)\r
-#define USART_INTENCLR_TXDISCLR_MASK (0x40U)\r
-#define USART_INTENCLR_TXDISCLR_SHIFT (6U)\r
-#define USART_INTENCLR_TXDISCLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_TXDISCLR_SHIFT)) & USART_INTENCLR_TXDISCLR_MASK)\r
-#define USART_INTENCLR_DELTARXBRKCLR_MASK (0x800U)\r
-#define USART_INTENCLR_DELTARXBRKCLR_SHIFT (11U)\r
-#define USART_INTENCLR_DELTARXBRKCLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_DELTARXBRKCLR_SHIFT)) & USART_INTENCLR_DELTARXBRKCLR_MASK)\r
-#define USART_INTENCLR_STARTCLR_MASK (0x1000U)\r
-#define USART_INTENCLR_STARTCLR_SHIFT (12U)\r
-#define USART_INTENCLR_STARTCLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_STARTCLR_SHIFT)) & USART_INTENCLR_STARTCLR_MASK)\r
-#define USART_INTENCLR_FRAMERRCLR_MASK (0x2000U)\r
-#define USART_INTENCLR_FRAMERRCLR_SHIFT (13U)\r
-#define USART_INTENCLR_FRAMERRCLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_FRAMERRCLR_SHIFT)) & USART_INTENCLR_FRAMERRCLR_MASK)\r
-#define USART_INTENCLR_PARITYERRCLR_MASK (0x4000U)\r
-#define USART_INTENCLR_PARITYERRCLR_SHIFT (14U)\r
-#define USART_INTENCLR_PARITYERRCLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_PARITYERRCLR_SHIFT)) & USART_INTENCLR_PARITYERRCLR_MASK)\r
-#define USART_INTENCLR_RXNOISECLR_MASK (0x8000U)\r
-#define USART_INTENCLR_RXNOISECLR_SHIFT (15U)\r
-#define USART_INTENCLR_RXNOISECLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_RXNOISECLR_SHIFT)) & USART_INTENCLR_RXNOISECLR_MASK)\r
-#define USART_INTENCLR_ABERRCLR_MASK (0x10000U)\r
-#define USART_INTENCLR_ABERRCLR_SHIFT (16U)\r
-#define USART_INTENCLR_ABERRCLR(x) (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_ABERRCLR_SHIFT)) & USART_INTENCLR_ABERRCLR_MASK)\r
+ * 0b1..Enabled. USART is in autobaud mode. This bit should only be set when the USART receiver is idle. The\r
+ * first start bit of RX is measured and used the update the BRG register to match the received data rate.\r
+ * AUTOBAUD is cleared once this process is complete, or if there is an AERR.\r
+ */\r
+#define USART_CTL_AUTOBAUD(x) (((uint32_t)(((uint32_t)(x)) << USART_CTL_AUTOBAUD_SHIFT)) & USART_CTL_AUTOBAUD_MASK)\r
+/*! @} */\r
+\r
+/*! @name STAT - USART Status register. The complete status value can be read here. Writing ones clears some bits in the\r
+ * register. Some bits can be cleared by writing a 1 to them. */\r
+/*! @{ */\r
+#define USART_STAT_RXIDLE_MASK (0x2U)\r
+#define USART_STAT_RXIDLE_SHIFT (1U)\r
+/*! RXIDLE - Receiver Idle. When 0, indicates that the receiver is currently in the process of\r
+ * receiving data. When 1, indicates that the receiver is not currently in the process of receiving\r
+ * data.\r
+ */\r
+#define USART_STAT_RXIDLE(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_RXIDLE_SHIFT)) & USART_STAT_RXIDLE_MASK)\r
+#define USART_STAT_TXIDLE_MASK (0x8U)\r
+#define USART_STAT_TXIDLE_SHIFT (3U)\r
+/*! TXIDLE - Transmitter Idle. When 0, indicates that the transmitter is currently in the process of\r
+ * sending data.When 1, indicate that the transmitter is not currently in the process of sending\r
+ * data.\r
+ */\r
+#define USART_STAT_TXIDLE(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_TXIDLE_SHIFT)) & USART_STAT_TXIDLE_MASK)\r
+#define USART_STAT_CTS_MASK (0x10U)\r
+#define USART_STAT_CTS_SHIFT (4U)\r
+/*! CTS - This bit reflects the current state of the CTS signal, regardless of the setting of the\r
+ * CTSEN bit in the CFG register. This will be the value of the CTS input pin unless loopback mode\r
+ * is enabled.\r
+ */\r
+#define USART_STAT_CTS(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_CTS_SHIFT)) & USART_STAT_CTS_MASK)\r
+#define USART_STAT_DELTACTS_MASK (0x20U)\r
+#define USART_STAT_DELTACTS_SHIFT (5U)\r
+/*! DELTACTS - This bit is set when a change in the state is detected for the CTS flag above. This bit is cleared by\r
+ * software.\r
+ */\r
+#define USART_STAT_DELTACTS(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_DELTACTS_SHIFT)) & USART_STAT_DELTACTS_MASK)\r
+#define USART_STAT_TXDISSTAT_MASK (0x40U)\r
+#define USART_STAT_TXDISSTAT_SHIFT (6U)\r
+/*! TXDISSTAT - Transmitter Disabled Status flag. When 1, this bit indicates that the USART\r
+ * transmitter is fully idle after being disabled via the TXDIS bit in the CFG register (TXDIS = 1).\r
+ */\r
+#define USART_STAT_TXDISSTAT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_STAT_TXDISSTAT_SHIFT)) & USART_STAT_TXDISSTAT_MASK)\r
+#define USART_STAT_RXBRK_MASK (0x400U)\r
+#define USART_STAT_RXBRK_SHIFT (10U)\r
+/*! RXBRK - Received Break. This bit reflects the current state of the receiver break detection\r
+ * logic. It is set when the Un_RXD pin remains low for 16 bit times. Note that FRAMERRINT will also\r
+ * be set when this condition occurs because the stop bit(s) for the character would be missing.\r
+ * RXBRK is cleared when the Un_RXD pin goes high.\r
+ */\r
+#define USART_STAT_RXBRK(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_RXBRK_SHIFT)) & USART_STAT_RXBRK_MASK)\r
+#define USART_STAT_DELTARXBRK_MASK (0x800U)\r
+#define USART_STAT_DELTARXBRK_SHIFT (11U)\r
+/*! DELTARXBRK - This bit is set when a change in the state of receiver break detection occurs. Cleared by software.\r
+ */\r
+#define USART_STAT_DELTARXBRK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_STAT_DELTARXBRK_SHIFT)) & USART_STAT_DELTARXBRK_MASK)\r
+#define USART_STAT_START_MASK (0x1000U)\r
+#define USART_STAT_START_SHIFT (12U)\r
+/*! START - This bit is set when a start is detected on the receiver input. Its purpose is primarily\r
+ * to allow wake-up from Deep-sleep or Power-down mode immediately when a start is detected.\r
+ * Cleared by software.\r
+ */\r
+#define USART_STAT_START(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_START_SHIFT)) & USART_STAT_START_MASK)\r
+#define USART_STAT_FRAMERRINT_MASK (0x2000U)\r
+#define USART_STAT_FRAMERRINT_SHIFT (13U)\r
+/*! FRAMERRINT - Framing Error interrupt flag. This flag is set when a character is received with a\r
+ * missing stop bit at the expected location. This could be an indication of a baud rate or\r
+ * configuration mismatch with the transmitting source.\r
+ */\r
+#define USART_STAT_FRAMERRINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_STAT_FRAMERRINT_SHIFT)) & USART_STAT_FRAMERRINT_MASK)\r
+#define USART_STAT_PARITYERRINT_MASK (0x4000U)\r
+#define USART_STAT_PARITYERRINT_SHIFT (14U)\r
+/*! PARITYERRINT - Parity Error interrupt flag. This flag is set when a parity error is detected in a received\r
+ * character.\r
+ */\r
+#define USART_STAT_PARITYERRINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_STAT_PARITYERRINT_SHIFT)) & USART_STAT_PARITYERRINT_MASK)\r
+#define USART_STAT_RXNOISEINT_MASK (0x8000U)\r
+#define USART_STAT_RXNOISEINT_SHIFT (15U)\r
+/*! RXNOISEINT - Received Noise interrupt flag. Three samples of received data are taken in order to\r
+ * determine the value of each received data bit, except in synchronous mode. This acts as a\r
+ * noise filter if one sample disagrees. This flag is set when a received data bit contains one\r
+ * disagreeing sample. This could indicate line noise, a baud rate or character format mismatch, or\r
+ * loss of synchronization during data reception.\r
+ */\r
+#define USART_STAT_RXNOISEINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_STAT_RXNOISEINT_SHIFT)) & USART_STAT_RXNOISEINT_MASK)\r
+#define USART_STAT_ABERR_MASK (0x10000U)\r
+#define USART_STAT_ABERR_SHIFT (16U)\r
+/*! ABERR - Auto baud Error. An auto baud error can occur if the BRG counts to its limit before the\r
+ * end of the start bit that is being measured, essentially an auto baud time-out.\r
+ */\r
+#define USART_STAT_ABERR(x) (((uint32_t)(((uint32_t)(x)) << USART_STAT_ABERR_SHIFT)) & USART_STAT_ABERR_MASK)\r
+/*! @} */\r
+\r
+/*! @name INTENSET - Interrupt Enable read and Set register for USART (not FIFO) status. Contains individual interrupt\r
+ * enable bits for each potential USART interrupt. A complete value may be read from this register. Writing a 1 to any\r
+ * implemented bit position causes that bit to be set. */\r
+/*! @{ */\r
+#define USART_INTENSET_TXIDLEEN_MASK (0x8U)\r
+#define USART_INTENSET_TXIDLEEN_SHIFT (3U)\r
+/*! TXIDLEEN - When 1, enables an interrupt when the transmitter becomes idle (TXIDLE = 1).\r
+ */\r
+#define USART_INTENSET_TXIDLEEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_TXIDLEEN_SHIFT)) & USART_INTENSET_TXIDLEEN_MASK)\r
+#define USART_INTENSET_DELTACTSEN_MASK (0x20U)\r
+#define USART_INTENSET_DELTACTSEN_SHIFT (5U)\r
+/*! DELTACTSEN - When 1, enables an interrupt when there is a change in the state of the CTS input.\r
+ */\r
+#define USART_INTENSET_DELTACTSEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_DELTACTSEN_SHIFT)) & USART_INTENSET_DELTACTSEN_MASK)\r
+#define USART_INTENSET_TXDISEN_MASK (0x40U)\r
+#define USART_INTENSET_TXDISEN_SHIFT (6U)\r
+/*! TXDISEN - When 1, enables an interrupt when the transmitter is fully disabled as indicated by\r
+ * the TXDISINT flag in STAT. See description of the TXDISINT bit for details.\r
+ */\r
+#define USART_INTENSET_TXDISEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_TXDISEN_SHIFT)) & USART_INTENSET_TXDISEN_MASK)\r
+#define USART_INTENSET_DELTARXBRKEN_MASK (0x800U)\r
+#define USART_INTENSET_DELTARXBRKEN_SHIFT (11U)\r
+/*! DELTARXBRKEN - When 1, enables an interrupt when a change of state has occurred in the detection\r
+ * of a received break condition (break condition asserted or deasserted).\r
+ */\r
+#define USART_INTENSET_DELTARXBRKEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_DELTARXBRKEN_SHIFT)) & USART_INTENSET_DELTARXBRKEN_MASK)\r
+#define USART_INTENSET_STARTEN_MASK (0x1000U)\r
+#define USART_INTENSET_STARTEN_SHIFT (12U)\r
+/*! STARTEN - When 1, enables an interrupt when a received start bit has been detected.\r
+ */\r
+#define USART_INTENSET_STARTEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_STARTEN_SHIFT)) & USART_INTENSET_STARTEN_MASK)\r
+#define USART_INTENSET_FRAMERREN_MASK (0x2000U)\r
+#define USART_INTENSET_FRAMERREN_SHIFT (13U)\r
+/*! FRAMERREN - When 1, enables an interrupt when a framing error has been detected.\r
+ */\r
+#define USART_INTENSET_FRAMERREN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_FRAMERREN_SHIFT)) & USART_INTENSET_FRAMERREN_MASK)\r
+#define USART_INTENSET_PARITYERREN_MASK (0x4000U)\r
+#define USART_INTENSET_PARITYERREN_SHIFT (14U)\r
+/*! PARITYERREN - When 1, enables an interrupt when a parity error has been detected.\r
+ */\r
+#define USART_INTENSET_PARITYERREN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_PARITYERREN_SHIFT)) & USART_INTENSET_PARITYERREN_MASK)\r
+#define USART_INTENSET_RXNOISEEN_MASK (0x8000U)\r
+#define USART_INTENSET_RXNOISEEN_SHIFT (15U)\r
+/*! RXNOISEEN - When 1, enables an interrupt when noise is detected. See description of the RXNOISEINT bit in Table 354.\r
+ */\r
+#define USART_INTENSET_RXNOISEEN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_RXNOISEEN_SHIFT)) & USART_INTENSET_RXNOISEEN_MASK)\r
+#define USART_INTENSET_ABERREN_MASK (0x10000U)\r
+#define USART_INTENSET_ABERREN_SHIFT (16U)\r
+/*! ABERREN - When 1, enables an interrupt when an auto baud error occurs.\r
+ */\r
+#define USART_INTENSET_ABERREN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENSET_ABERREN_SHIFT)) & USART_INTENSET_ABERREN_MASK)\r
+/*! @} */\r
+\r
+/*! @name INTENCLR - Interrupt Enable Clear register. Allows clearing any combination of bits in the INTENSET register.\r
+ * Writing a 1 to any implemented bit position causes the corresponding bit to be cleared. */\r
+/*! @{ */\r
+#define USART_INTENCLR_TXIDLECLR_MASK (0x8U)\r
+#define USART_INTENCLR_TXIDLECLR_SHIFT (3U)\r
+/*! TXIDLECLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_TXIDLECLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_TXIDLECLR_SHIFT)) & USART_INTENCLR_TXIDLECLR_MASK)\r
+#define USART_INTENCLR_DELTACTSCLR_MASK (0x20U)\r
+#define USART_INTENCLR_DELTACTSCLR_SHIFT (5U)\r
+/*! DELTACTSCLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_DELTACTSCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_DELTACTSCLR_SHIFT)) & USART_INTENCLR_DELTACTSCLR_MASK)\r
+#define USART_INTENCLR_TXDISCLR_MASK (0x40U)\r
+#define USART_INTENCLR_TXDISCLR_SHIFT (6U)\r
+/*! TXDISCLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_TXDISCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_TXDISCLR_SHIFT)) & USART_INTENCLR_TXDISCLR_MASK)\r
+#define USART_INTENCLR_DELTARXBRKCLR_MASK (0x800U)\r
+#define USART_INTENCLR_DELTARXBRKCLR_SHIFT (11U)\r
+/*! DELTARXBRKCLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_DELTARXBRKCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_DELTARXBRKCLR_SHIFT)) & USART_INTENCLR_DELTARXBRKCLR_MASK)\r
+#define USART_INTENCLR_STARTCLR_MASK (0x1000U)\r
+#define USART_INTENCLR_STARTCLR_SHIFT (12U)\r
+/*! STARTCLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_STARTCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_STARTCLR_SHIFT)) & USART_INTENCLR_STARTCLR_MASK)\r
+#define USART_INTENCLR_FRAMERRCLR_MASK (0x2000U)\r
+#define USART_INTENCLR_FRAMERRCLR_SHIFT (13U)\r
+/*! FRAMERRCLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_FRAMERRCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_FRAMERRCLR_SHIFT)) & USART_INTENCLR_FRAMERRCLR_MASK)\r
+#define USART_INTENCLR_PARITYERRCLR_MASK (0x4000U)\r
+#define USART_INTENCLR_PARITYERRCLR_SHIFT (14U)\r
+/*! PARITYERRCLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_PARITYERRCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_PARITYERRCLR_SHIFT)) & USART_INTENCLR_PARITYERRCLR_MASK)\r
+#define USART_INTENCLR_RXNOISECLR_MASK (0x8000U)\r
+#define USART_INTENCLR_RXNOISECLR_SHIFT (15U)\r
+/*! RXNOISECLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_RXNOISECLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_RXNOISECLR_SHIFT)) & USART_INTENCLR_RXNOISECLR_MASK)\r
+#define USART_INTENCLR_ABERRCLR_MASK (0x10000U)\r
+#define USART_INTENCLR_ABERRCLR_SHIFT (16U)\r
+/*! ABERRCLR - Writing 1 clears the corresponding bit in the INTENSET register.\r
+ */\r
+#define USART_INTENCLR_ABERRCLR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTENCLR_ABERRCLR_SHIFT)) & USART_INTENCLR_ABERRCLR_MASK)\r
/*! @} */\r
\r
/*! @name BRG - Baud Rate Generator register. 16-bit integer baud rate divisor value. */\r
/*! @{ */\r
-#define USART_BRG_BRGVAL_MASK (0xFFFFU)\r
-#define USART_BRG_BRGVAL_SHIFT (0U)\r
-#define USART_BRG_BRGVAL(x) (((uint32_t)(((uint32_t)(x)) << USART_BRG_BRGVAL_SHIFT)) & USART_BRG_BRGVAL_MASK)\r
+#define USART_BRG_BRGVAL_MASK (0xFFFFU)\r
+#define USART_BRG_BRGVAL_SHIFT (0U)\r
+/*! BRGVAL - This value is used to divide the USART input clock to determine the baud rate, based on\r
+ * the input clock from the FRG. 0 = FCLK is used directly by the USART function. 1 = FCLK is\r
+ * divided by 2 before use by the USART function. 2 = FCLK is divided by 3 before use by the USART\r
+ * function. 0xFFFF = FCLK is divided by 65,536 before use by the USART function.\r
+ */\r
+#define USART_BRG_BRGVAL(x) (((uint32_t)(((uint32_t)(x)) << USART_BRG_BRGVAL_SHIFT)) & USART_BRG_BRGVAL_MASK)\r
/*! @} */\r
\r
/*! @name INTSTAT - Interrupt status register. Reflects interrupts that are currently enabled. */\r
/*! @{ */\r
-#define USART_INTSTAT_TXIDLE_MASK (0x8U)\r
-#define USART_INTSTAT_TXIDLE_SHIFT (3U)\r
-#define USART_INTSTAT_TXIDLE(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_TXIDLE_SHIFT)) & USART_INTSTAT_TXIDLE_MASK)\r
-#define USART_INTSTAT_DELTACTS_MASK (0x20U)\r
-#define USART_INTSTAT_DELTACTS_SHIFT (5U)\r
-#define USART_INTSTAT_DELTACTS(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_DELTACTS_SHIFT)) & USART_INTSTAT_DELTACTS_MASK)\r
-#define USART_INTSTAT_TXDISINT_MASK (0x40U)\r
-#define USART_INTSTAT_TXDISINT_SHIFT (6U)\r
-#define USART_INTSTAT_TXDISINT(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_TXDISINT_SHIFT)) & USART_INTSTAT_TXDISINT_MASK)\r
-#define USART_INTSTAT_DELTARXBRK_MASK (0x800U)\r
-#define USART_INTSTAT_DELTARXBRK_SHIFT (11U)\r
-#define USART_INTSTAT_DELTARXBRK(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_DELTARXBRK_SHIFT)) & USART_INTSTAT_DELTARXBRK_MASK)\r
-#define USART_INTSTAT_START_MASK (0x1000U)\r
-#define USART_INTSTAT_START_SHIFT (12U)\r
-#define USART_INTSTAT_START(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_START_SHIFT)) & USART_INTSTAT_START_MASK)\r
-#define USART_INTSTAT_FRAMERRINT_MASK (0x2000U)\r
-#define USART_INTSTAT_FRAMERRINT_SHIFT (13U)\r
-#define USART_INTSTAT_FRAMERRINT(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_FRAMERRINT_SHIFT)) & USART_INTSTAT_FRAMERRINT_MASK)\r
-#define USART_INTSTAT_PARITYERRINT_MASK (0x4000U)\r
-#define USART_INTSTAT_PARITYERRINT_SHIFT (14U)\r
-#define USART_INTSTAT_PARITYERRINT(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_PARITYERRINT_SHIFT)) & USART_INTSTAT_PARITYERRINT_MASK)\r
-#define USART_INTSTAT_RXNOISEINT_MASK (0x8000U)\r
-#define USART_INTSTAT_RXNOISEINT_SHIFT (15U)\r
-#define USART_INTSTAT_RXNOISEINT(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_RXNOISEINT_SHIFT)) & USART_INTSTAT_RXNOISEINT_MASK)\r
-#define USART_INTSTAT_ABERRINT_MASK (0x10000U)\r
-#define USART_INTSTAT_ABERRINT_SHIFT (16U)\r
-#define USART_INTSTAT_ABERRINT(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_ABERRINT_SHIFT)) & USART_INTSTAT_ABERRINT_MASK)\r
+#define USART_INTSTAT_TXIDLE_MASK (0x8U)\r
+#define USART_INTSTAT_TXIDLE_SHIFT (3U)\r
+/*! TXIDLE - Transmitter Idle status.\r
+ */\r
+#define USART_INTSTAT_TXIDLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_TXIDLE_SHIFT)) & USART_INTSTAT_TXIDLE_MASK)\r
+#define USART_INTSTAT_DELTACTS_MASK (0x20U)\r
+#define USART_INTSTAT_DELTACTS_SHIFT (5U)\r
+/*! DELTACTS - This bit is set when a change in the state of the CTS input is detected.\r
+ */\r
+#define USART_INTSTAT_DELTACTS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_DELTACTS_SHIFT)) & USART_INTSTAT_DELTACTS_MASK)\r
+#define USART_INTSTAT_TXDISINT_MASK (0x40U)\r
+#define USART_INTSTAT_TXDISINT_SHIFT (6U)\r
+/*! TXDISINT - Transmitter Disabled Interrupt flag.\r
+ */\r
+#define USART_INTSTAT_TXDISINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_TXDISINT_SHIFT)) & USART_INTSTAT_TXDISINT_MASK)\r
+#define USART_INTSTAT_DELTARXBRK_MASK (0x800U)\r
+#define USART_INTSTAT_DELTARXBRK_SHIFT (11U)\r
+/*! DELTARXBRK - This bit is set when a change in the state of receiver break detection occurs.\r
+ */\r
+#define USART_INTSTAT_DELTARXBRK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_DELTARXBRK_SHIFT)) & USART_INTSTAT_DELTARXBRK_MASK)\r
+#define USART_INTSTAT_START_MASK (0x1000U)\r
+#define USART_INTSTAT_START_SHIFT (12U)\r
+/*! START - This bit is set when a start is detected on the receiver input.\r
+ */\r
+#define USART_INTSTAT_START(x) (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_START_SHIFT)) & USART_INTSTAT_START_MASK)\r
+#define USART_INTSTAT_FRAMERRINT_MASK (0x2000U)\r
+#define USART_INTSTAT_FRAMERRINT_SHIFT (13U)\r
+/*! FRAMERRINT - Framing Error interrupt flag.\r
+ */\r
+#define USART_INTSTAT_FRAMERRINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_FRAMERRINT_SHIFT)) & USART_INTSTAT_FRAMERRINT_MASK)\r
+#define USART_INTSTAT_PARITYERRINT_MASK (0x4000U)\r
+#define USART_INTSTAT_PARITYERRINT_SHIFT (14U)\r
+/*! PARITYERRINT - Parity Error interrupt flag.\r
+ */\r
+#define USART_INTSTAT_PARITYERRINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_PARITYERRINT_SHIFT)) & USART_INTSTAT_PARITYERRINT_MASK)\r
+#define USART_INTSTAT_RXNOISEINT_MASK (0x8000U)\r
+#define USART_INTSTAT_RXNOISEINT_SHIFT (15U)\r
+/*! RXNOISEINT - Received Noise interrupt flag.\r
+ */\r
+#define USART_INTSTAT_RXNOISEINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_RXNOISEINT_SHIFT)) & USART_INTSTAT_RXNOISEINT_MASK)\r
+#define USART_INTSTAT_ABERRINT_MASK (0x10000U)\r
+#define USART_INTSTAT_ABERRINT_SHIFT (16U)\r
+/*! ABERRINT - Auto baud Error Interrupt flag.\r
+ */\r
+#define USART_INTSTAT_ABERRINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_INTSTAT_ABERRINT_SHIFT)) & USART_INTSTAT_ABERRINT_MASK)\r
/*! @} */\r
\r
/*! @name OSR - Oversample selection register for asynchronous communication. */\r
/*! @{ */\r
-#define USART_OSR_OSRVAL_MASK (0xFU)\r
-#define USART_OSR_OSRVAL_SHIFT (0U)\r
-#define USART_OSR_OSRVAL(x) (((uint32_t)(((uint32_t)(x)) << USART_OSR_OSRVAL_SHIFT)) & USART_OSR_OSRVAL_MASK)\r
+#define USART_OSR_OSRVAL_MASK (0xFU)\r
+#define USART_OSR_OSRVAL_SHIFT (0U)\r
+/*! OSRVAL - Oversample Selection Value. 0 to 3 = not supported 0x4 = 5 function clocks are used to\r
+ * transmit and receive each data bit. 0x5 = 6 function clocks are used to transmit and receive\r
+ * each data bit. 0xF= 16 function clocks are used to transmit and receive each data bit.\r
+ */\r
+#define USART_OSR_OSRVAL(x) (((uint32_t)(((uint32_t)(x)) << USART_OSR_OSRVAL_SHIFT)) & USART_OSR_OSRVAL_MASK)\r
/*! @} */\r
\r
/*! @name ADDR - Address register for automatic address matching. */\r
/*! @{ */\r
-#define USART_ADDR_ADDRESS_MASK (0xFFU)\r
-#define USART_ADDR_ADDRESS_SHIFT (0U)\r
-#define USART_ADDR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << USART_ADDR_ADDRESS_SHIFT)) & USART_ADDR_ADDRESS_MASK)\r
+#define USART_ADDR_ADDRESS_MASK (0xFFU)\r
+#define USART_ADDR_ADDRESS_SHIFT (0U)\r
+/*! ADDRESS - 8-bit address used with automatic address matching. Used when address detection is\r
+ * enabled (ADDRDET in CTL = 1) and automatic address matching is enabled (AUTOADDR in CFG = 1).\r
+ */\r
+#define USART_ADDR_ADDRESS(x) (((uint32_t)(((uint32_t)(x)) << USART_ADDR_ADDRESS_SHIFT)) & USART_ADDR_ADDRESS_MASK)\r
/*! @} */\r
\r
/*! @name FIFOCFG - FIFO configuration and enable register. */\r
/*! @{ */\r
-#define USART_FIFOCFG_ENABLETX_MASK (0x1U)\r
-#define USART_FIFOCFG_ENABLETX_SHIFT (0U)\r
+#define USART_FIFOCFG_ENABLETX_MASK (0x1U)\r
+#define USART_FIFOCFG_ENABLETX_SHIFT (0U)\r
/*! ENABLETX - Enable the transmit FIFO.\r
* 0b0..The transmit FIFO is not enabled.\r
* 0b1..The transmit FIFO is enabled.\r
*/\r
-#define USART_FIFOCFG_ENABLETX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_ENABLETX_SHIFT)) & USART_FIFOCFG_ENABLETX_MASK)\r
-#define USART_FIFOCFG_ENABLERX_MASK (0x2U)\r
-#define USART_FIFOCFG_ENABLERX_SHIFT (1U)\r
+#define USART_FIFOCFG_ENABLETX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_ENABLETX_SHIFT)) & USART_FIFOCFG_ENABLETX_MASK)\r
+#define USART_FIFOCFG_ENABLERX_MASK (0x2U)\r
+#define USART_FIFOCFG_ENABLERX_SHIFT (1U)\r
/*! ENABLERX - Enable the receive FIFO.\r
* 0b0..The receive FIFO is not enabled.\r
* 0b1..The receive FIFO is enabled.\r
*/\r
-#define USART_FIFOCFG_ENABLERX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_ENABLERX_SHIFT)) & USART_FIFOCFG_ENABLERX_MASK)\r
-#define USART_FIFOCFG_SIZE_MASK (0x30U)\r
-#define USART_FIFOCFG_SIZE_SHIFT (4U)\r
-#define USART_FIFOCFG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_SIZE_SHIFT)) & USART_FIFOCFG_SIZE_MASK)\r
-#define USART_FIFOCFG_DMATX_MASK (0x1000U)\r
-#define USART_FIFOCFG_DMATX_SHIFT (12U)\r
+#define USART_FIFOCFG_ENABLERX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_ENABLERX_SHIFT)) & USART_FIFOCFG_ENABLERX_MASK)\r
+#define USART_FIFOCFG_SIZE_MASK (0x30U)\r
+#define USART_FIFOCFG_SIZE_SHIFT (4U)\r
+/*! SIZE - FIFO size configuration. This is a read-only field. 0x0 = FIFO is configured as 16\r
+ * entries of 8 bits. 0x1, 0x2, 0x3 = not applicable to USART.\r
+ */\r
+#define USART_FIFOCFG_SIZE(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_SIZE_SHIFT)) & USART_FIFOCFG_SIZE_MASK)\r
+#define USART_FIFOCFG_DMATX_MASK (0x1000U)\r
+#define USART_FIFOCFG_DMATX_SHIFT (12U)\r
/*! DMATX - DMA configuration for transmit.\r
* 0b0..DMA is not used for the transmit function.\r
- * 0b1..Trigger DMA for the transmit function if the FIFO is not full. Generally, data interrupts would be disabled if DMA is enabled.\r
+ * 0b1..Trigger DMA for the transmit function if the FIFO is not full. Generally, data interrupts would be disabled if\r
+ * DMA is enabled.\r
*/\r
-#define USART_FIFOCFG_DMATX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_DMATX_SHIFT)) & USART_FIFOCFG_DMATX_MASK)\r
-#define USART_FIFOCFG_DMARX_MASK (0x2000U)\r
-#define USART_FIFOCFG_DMARX_SHIFT (13U)\r
+#define USART_FIFOCFG_DMATX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_DMATX_SHIFT)) & USART_FIFOCFG_DMATX_MASK)\r
+#define USART_FIFOCFG_DMARX_MASK (0x2000U)\r
+#define USART_FIFOCFG_DMARX_SHIFT (13U)\r
/*! DMARX - DMA configuration for receive.\r
* 0b0..DMA is not used for the receive function.\r
- * 0b1..Trigger DMA for the receive function if the FIFO is not empty. Generally, data interrupts would be disabled if DMA is enabled.\r
- */\r
-#define USART_FIFOCFG_DMARX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_DMARX_SHIFT)) & USART_FIFOCFG_DMARX_MASK)\r
-#define USART_FIFOCFG_WAKETX_MASK (0x4000U)\r
-#define USART_FIFOCFG_WAKETX_SHIFT (14U)\r
-/*! WAKETX - Wake-up for transmit FIFO level. This allows the device to be woken from reduced power modes (up to power-down, as long as the peripheral function works in that power mode) without enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware Wake-up control register.\r
+ * 0b1..Trigger DMA for the receive function if the FIFO is not empty. Generally, data interrupts would be disabled if\r
+ * DMA is enabled.\r
+ */\r
+#define USART_FIFOCFG_DMARX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_DMARX_SHIFT)) & USART_FIFOCFG_DMARX_MASK)\r
+#define USART_FIFOCFG_WAKETX_MASK (0x4000U)\r
+#define USART_FIFOCFG_WAKETX_SHIFT (14U)\r
+/*! WAKETX - Wake-up for transmit FIFO level. This allows the device to be woken from reduced power\r
+ * modes (up to power-down, as long as the peripheral function works in that power mode) without\r
+ * enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The\r
+ * CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware\r
+ * Wake-up control register.\r
* 0b0..Only enabled interrupts will wake up the device form reduced power modes.\r
- * 0b1..A device wake-up for DMA will occur if the transmit FIFO level reaches the value specified by TXLVL in FIFOTRIG, even when the TXLVL interrupt is not enabled.\r
- */\r
-#define USART_FIFOCFG_WAKETX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_WAKETX_SHIFT)) & USART_FIFOCFG_WAKETX_MASK)\r
-#define USART_FIFOCFG_WAKERX_MASK (0x8000U)\r
-#define USART_FIFOCFG_WAKERX_SHIFT (15U)\r
-/*! WAKERX - Wake-up for receive FIFO level. This allows the device to be woken from reduced power modes (up to power-down, as long as the peripheral function works in that power mode) without enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware Wake-up control register.\r
+ * 0b1..A device wake-up for DMA will occur if the transmit FIFO level reaches the value specified by TXLVL in\r
+ * FIFOTRIG, even when the TXLVL interrupt is not enabled.\r
+ */\r
+#define USART_FIFOCFG_WAKETX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_WAKETX_SHIFT)) & USART_FIFOCFG_WAKETX_MASK)\r
+#define USART_FIFOCFG_WAKERX_MASK (0x8000U)\r
+#define USART_FIFOCFG_WAKERX_SHIFT (15U)\r
+/*! WAKERX - Wake-up for receive FIFO level. This allows the device to be woken from reduced power\r
+ * modes (up to power-down, as long as the peripheral function works in that power mode) without\r
+ * enabling the TXLVL interrupt. Only DMA wakes up, processes data, and goes back to sleep. The\r
+ * CPU will remain stopped until woken by another cause, such as DMA completion. See Hardware\r
+ * Wake-up control register.\r
* 0b0..Only enabled interrupts will wake up the device form reduced power modes.\r
- * 0b1..A device wake-up for DMA will occur if the receive FIFO level reaches the value specified by RXLVL in FIFOTRIG, even when the RXLVL interrupt is not enabled.\r
+ * 0b1..A device wake-up for DMA will occur if the receive FIFO level reaches the value specified by RXLVL in\r
+ * FIFOTRIG, even when the RXLVL interrupt is not enabled.\r
+ */\r
+#define USART_FIFOCFG_WAKERX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_WAKERX_SHIFT)) & USART_FIFOCFG_WAKERX_MASK)\r
+#define USART_FIFOCFG_EMPTYTX_MASK (0x10000U)\r
+#define USART_FIFOCFG_EMPTYTX_SHIFT (16U)\r
+/*! EMPTYTX - Empty command for the transmit FIFO. When a 1 is written to this bit, the TX FIFO is emptied.\r
*/\r
-#define USART_FIFOCFG_WAKERX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_WAKERX_SHIFT)) & USART_FIFOCFG_WAKERX_MASK)\r
-#define USART_FIFOCFG_EMPTYTX_MASK (0x10000U)\r
-#define USART_FIFOCFG_EMPTYTX_SHIFT (16U)\r
-#define USART_FIFOCFG_EMPTYTX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_EMPTYTX_SHIFT)) & USART_FIFOCFG_EMPTYTX_MASK)\r
-#define USART_FIFOCFG_EMPTYRX_MASK (0x20000U)\r
-#define USART_FIFOCFG_EMPTYRX_SHIFT (17U)\r
-#define USART_FIFOCFG_EMPTYRX(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_EMPTYRX_SHIFT)) & USART_FIFOCFG_EMPTYRX_MASK)\r
-#define USART_FIFOCFG_POPDBG_MASK (0x40000U)\r
-#define USART_FIFOCFG_POPDBG_SHIFT (18U)\r
-/*! POPDBG - Pop FIFO for debug reads.\r
- * 0b0..Debug reads of the FIFO do not pop the FIFO.\r
- * 0b1..A debug read will cause the FIFO to pop.\r
+#define USART_FIFOCFG_EMPTYTX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_EMPTYTX_SHIFT)) & USART_FIFOCFG_EMPTYTX_MASK)\r
+#define USART_FIFOCFG_EMPTYRX_MASK (0x20000U)\r
+#define USART_FIFOCFG_EMPTYRX_SHIFT (17U)\r
+/*! EMPTYRX - Empty command for the receive FIFO. When a 1 is written to this bit, the RX FIFO is emptied.\r
*/\r
-#define USART_FIFOCFG_POPDBG(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_POPDBG_SHIFT)) & USART_FIFOCFG_POPDBG_MASK)\r
+#define USART_FIFOCFG_EMPTYRX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOCFG_EMPTYRX_SHIFT)) & USART_FIFOCFG_EMPTYRX_MASK)\r
/*! @} */\r
\r
/*! @name FIFOSTAT - FIFO status register. */\r
/*! @{ */\r
-#define USART_FIFOSTAT_TXERR_MASK (0x1U)\r
-#define USART_FIFOSTAT_TXERR_SHIFT (0U)\r
-#define USART_FIFOSTAT_TXERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_TXERR_SHIFT)) & USART_FIFOSTAT_TXERR_MASK)\r
-#define USART_FIFOSTAT_RXERR_MASK (0x2U)\r
-#define USART_FIFOSTAT_RXERR_SHIFT (1U)\r
-#define USART_FIFOSTAT_RXERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_RXERR_SHIFT)) & USART_FIFOSTAT_RXERR_MASK)\r
-#define USART_FIFOSTAT_PERINT_MASK (0x8U)\r
-#define USART_FIFOSTAT_PERINT_SHIFT (3U)\r
-#define USART_FIFOSTAT_PERINT(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_PERINT_SHIFT)) & USART_FIFOSTAT_PERINT_MASK)\r
-#define USART_FIFOSTAT_TXEMPTY_MASK (0x10U)\r
-#define USART_FIFOSTAT_TXEMPTY_SHIFT (4U)\r
-#define USART_FIFOSTAT_TXEMPTY(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_TXEMPTY_SHIFT)) & USART_FIFOSTAT_TXEMPTY_MASK)\r
-#define USART_FIFOSTAT_TXNOTFULL_MASK (0x20U)\r
-#define USART_FIFOSTAT_TXNOTFULL_SHIFT (5U)\r
-#define USART_FIFOSTAT_TXNOTFULL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_TXNOTFULL_SHIFT)) & USART_FIFOSTAT_TXNOTFULL_MASK)\r
-#define USART_FIFOSTAT_RXNOTEMPTY_MASK (0x40U)\r
-#define USART_FIFOSTAT_RXNOTEMPTY_SHIFT (6U)\r
-#define USART_FIFOSTAT_RXNOTEMPTY(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_RXNOTEMPTY_SHIFT)) & USART_FIFOSTAT_RXNOTEMPTY_MASK)\r
-#define USART_FIFOSTAT_RXFULL_MASK (0x80U)\r
-#define USART_FIFOSTAT_RXFULL_SHIFT (7U)\r
-#define USART_FIFOSTAT_RXFULL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_RXFULL_SHIFT)) & USART_FIFOSTAT_RXFULL_MASK)\r
-#define USART_FIFOSTAT_TXLVL_MASK (0x1F00U)\r
-#define USART_FIFOSTAT_TXLVL_SHIFT (8U)\r
-#define USART_FIFOSTAT_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_TXLVL_SHIFT)) & USART_FIFOSTAT_TXLVL_MASK)\r
-#define USART_FIFOSTAT_RXLVL_MASK (0x1F0000U)\r
-#define USART_FIFOSTAT_RXLVL_SHIFT (16U)\r
-#define USART_FIFOSTAT_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_RXLVL_SHIFT)) & USART_FIFOSTAT_RXLVL_MASK)\r
+#define USART_FIFOSTAT_TXERR_MASK (0x1U)\r
+#define USART_FIFOSTAT_TXERR_SHIFT (0U)\r
+/*! TXERR - TX FIFO error. Will be set if a transmit FIFO error occurs. This could be an overflow\r
+ * caused by pushing data into a full FIFO, or by an underflow if the FIFO is empty when data is\r
+ * needed. Cleared by writing a 1 to this bit.\r
+ */\r
+#define USART_FIFOSTAT_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_TXERR_SHIFT)) & USART_FIFOSTAT_TXERR_MASK)\r
+#define USART_FIFOSTAT_RXERR_MASK (0x2U)\r
+#define USART_FIFOSTAT_RXERR_SHIFT (1U)\r
+/*! RXERR - RX FIFO error. Will be set if a receive FIFO overflow occurs, caused by software or DMA\r
+ * not emptying the FIFO fast enough. Cleared by writing a 1 to this bit.\r
+ */\r
+#define USART_FIFOSTAT_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_RXERR_SHIFT)) & USART_FIFOSTAT_RXERR_MASK)\r
+#define USART_FIFOSTAT_PERINT_MASK (0x8U)\r
+#define USART_FIFOSTAT_PERINT_SHIFT (3U)\r
+/*! PERINT - Peripheral interrupt. When 1, this indicates that the peripheral function has asserted\r
+ * an interrupt. The details can be found by reading the peripheral's STAT register.\r
+ */\r
+#define USART_FIFOSTAT_PERINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_PERINT_SHIFT)) & USART_FIFOSTAT_PERINT_MASK)\r
+#define USART_FIFOSTAT_TXEMPTY_MASK (0x10U)\r
+#define USART_FIFOSTAT_TXEMPTY_SHIFT (4U)\r
+/*! TXEMPTY - Transmit FIFO empty. When 1, the transmit FIFO is empty. The peripheral may still be processing the last\r
+ * piece of data.\r
+ */\r
+#define USART_FIFOSTAT_TXEMPTY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_TXEMPTY_SHIFT)) & USART_FIFOSTAT_TXEMPTY_MASK)\r
+#define USART_FIFOSTAT_TXNOTFULL_MASK (0x20U)\r
+#define USART_FIFOSTAT_TXNOTFULL_SHIFT (5U)\r
+/*! TXNOTFULL - Transmit FIFO not full. When 1, the transmit FIFO is not full, so more data can be\r
+ * written. When 0, the transmit FIFO is full and another write would cause it to overflow.\r
+ */\r
+#define USART_FIFOSTAT_TXNOTFULL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_TXNOTFULL_SHIFT)) & USART_FIFOSTAT_TXNOTFULL_MASK)\r
+#define USART_FIFOSTAT_RXNOTEMPTY_MASK (0x40U)\r
+#define USART_FIFOSTAT_RXNOTEMPTY_SHIFT (6U)\r
+/*! RXNOTEMPTY - Receive FIFO not empty. When 1, the receive FIFO is not empty, so data can be read. When 0, the receive\r
+ * FIFO is empty.\r
+ */\r
+#define USART_FIFOSTAT_RXNOTEMPTY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_RXNOTEMPTY_SHIFT)) & USART_FIFOSTAT_RXNOTEMPTY_MASK)\r
+#define USART_FIFOSTAT_RXFULL_MASK (0x80U)\r
+#define USART_FIFOSTAT_RXFULL_SHIFT (7U)\r
+/*! RXFULL - Receive FIFO full. When 1, the receive FIFO is full. Data needs to be read out to\r
+ * prevent the peripheral from causing an overflow.\r
+ */\r
+#define USART_FIFOSTAT_RXFULL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_RXFULL_SHIFT)) & USART_FIFOSTAT_RXFULL_MASK)\r
+#define USART_FIFOSTAT_TXLVL_MASK (0x1F00U)\r
+#define USART_FIFOSTAT_TXLVL_SHIFT (8U)\r
+/*! TXLVL - Transmit FIFO current level. A 0 means the TX FIFO is currently empty, and the TXEMPTY\r
+ * and TXNOTFULL flags will be 1. Other values tell how much data is actually in the TX FIFO at\r
+ * the point where the read occurs. If the TX FIFO is full, the TXEMPTY and TXNOTFULL flags will be\r
+ * 0.\r
+ */\r
+#define USART_FIFOSTAT_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_TXLVL_SHIFT)) & USART_FIFOSTAT_TXLVL_MASK)\r
+#define USART_FIFOSTAT_RXLVL_MASK (0x1F0000U)\r
+#define USART_FIFOSTAT_RXLVL_SHIFT (16U)\r
+/*! RXLVL - Receive FIFO current level. A 0 means the RX FIFO is currently empty, and the RXFULL and\r
+ * RXNOTEMPTY flags will be 0. Other values tell how much data is actually in the RX FIFO at the\r
+ * point where the read occurs. If the RX FIFO is full, the RXFULL and RXNOTEMPTY flags will be\r
+ * 1.\r
+ */\r
+#define USART_FIFOSTAT_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOSTAT_RXLVL_SHIFT)) & USART_FIFOSTAT_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOTRIG - FIFO trigger settings for interrupt and DMA request. */\r
/*! @{ */\r
-#define USART_FIFOTRIG_TXLVLENA_MASK (0x1U)\r
-#define USART_FIFOTRIG_TXLVLENA_SHIFT (0U)\r
-/*! TXLVLENA - Transmit FIFO level trigger enable. This trigger will become an interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMATX in FIFOCFG is set.\r
+#define USART_FIFOTRIG_TXLVLENA_MASK (0x1U)\r
+#define USART_FIFOTRIG_TXLVLENA_SHIFT (0U)\r
+/*! TXLVLENA - Transmit FIFO level trigger enable. This trigger will become an interrupt if enabled\r
+ * in FIFOINTENSET, or a DMA trigger if DMATX in FIFOCFG is set.\r
* 0b0..Transmit FIFO level does not generate a FIFO level trigger.\r
- * 0b1..An trigger will be generated if the transmit FIFO level reaches the value specified by the TXLVL field in this register.\r
- */\r
-#define USART_FIFOTRIG_TXLVLENA(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOTRIG_TXLVLENA_SHIFT)) & USART_FIFOTRIG_TXLVLENA_MASK)\r
-#define USART_FIFOTRIG_RXLVLENA_MASK (0x2U)\r
-#define USART_FIFOTRIG_RXLVLENA_SHIFT (1U)\r
-/*! RXLVLENA - Receive FIFO level trigger enable. This trigger will become an interrupt if enabled in FIFOINTENSET, or a DMA trigger if DMARX in FIFOCFG is set.\r
+ * 0b1..An trigger will be generated if the transmit FIFO level reaches the value specified by the TXLVL field in this\r
+ * register.\r
+ */\r
+#define USART_FIFOTRIG_TXLVLENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOTRIG_TXLVLENA_SHIFT)) & USART_FIFOTRIG_TXLVLENA_MASK)\r
+#define USART_FIFOTRIG_RXLVLENA_MASK (0x2U)\r
+#define USART_FIFOTRIG_RXLVLENA_SHIFT (1U)\r
+/*! RXLVLENA - Receive FIFO level trigger enable. This trigger will become an interrupt if enabled\r
+ * in FIFOINTENSET, or a DMA trigger if DMARX in FIFOCFG is set.\r
* 0b0..Receive FIFO level does not generate a FIFO level trigger.\r
- * 0b1..An trigger will be generated if the receive FIFO level reaches the value specified by the RXLVL field in this register.\r
- */\r
-#define USART_FIFOTRIG_RXLVLENA(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOTRIG_RXLVLENA_SHIFT)) & USART_FIFOTRIG_RXLVLENA_MASK)\r
-#define USART_FIFOTRIG_TXLVL_MASK (0xF00U)\r
-#define USART_FIFOTRIG_TXLVL_SHIFT (8U)\r
-#define USART_FIFOTRIG_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOTRIG_TXLVL_SHIFT)) & USART_FIFOTRIG_TXLVL_MASK)\r
-#define USART_FIFOTRIG_RXLVL_MASK (0xF0000U)\r
-#define USART_FIFOTRIG_RXLVL_SHIFT (16U)\r
-#define USART_FIFOTRIG_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOTRIG_RXLVL_SHIFT)) & USART_FIFOTRIG_RXLVL_MASK)\r
+ * 0b1..An trigger will be generated if the receive FIFO level reaches the value specified by the RXLVL field in this\r
+ * register.\r
+ */\r
+#define USART_FIFOTRIG_RXLVLENA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOTRIG_RXLVLENA_SHIFT)) & USART_FIFOTRIG_RXLVLENA_MASK)\r
+#define USART_FIFOTRIG_TXLVL_MASK (0xF00U)\r
+#define USART_FIFOTRIG_TXLVL_SHIFT (8U)\r
+/*! TXLVL - Transmit FIFO level trigger point. This field is used only when TXLVLENA = 1. If enabled\r
+ * to do so, the FIFO level can wake up the device just enough to perform DMA, then return to\r
+ * the reduced power mode. See Hardware Wake-up control register. 0 = trigger when the TX FIFO\r
+ * becomes empty. 1 = trigger when the TX FIFO level decreases to one entry. 15 = trigger when the TX\r
+ * FIFO level decreases to 15 entries (is no longer full).\r
+ */\r
+#define USART_FIFOTRIG_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOTRIG_TXLVL_SHIFT)) & USART_FIFOTRIG_TXLVL_MASK)\r
+#define USART_FIFOTRIG_RXLVL_MASK (0xF0000U)\r
+#define USART_FIFOTRIG_RXLVL_SHIFT (16U)\r
+/*! RXLVL - Receive FIFO level trigger point. The RX FIFO level is checked when a new piece of data\r
+ * is received. This field is used only when RXLVLENA = 1. If enabled to do so, the FIFO level\r
+ * can wake up the device just enough to perform DMA, then return to the reduced power mode. See\r
+ * Hardware Wake-up control register. 0 = trigger when the RX FIFO has received one entry (is no\r
+ * longer empty). 1 = trigger when the RX FIFO has received two entries. 15 = trigger when the RX\r
+ * FIFO has received 16 entries (has become full).\r
+ */\r
+#define USART_FIFOTRIG_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOTRIG_RXLVL_SHIFT)) & USART_FIFOTRIG_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTENSET - FIFO interrupt enable set (enable) and read register. */\r
/*! @{ */\r
-#define USART_FIFOINTENSET_TXERR_MASK (0x1U)\r
-#define USART_FIFOINTENSET_TXERR_SHIFT (0U)\r
-/*! TXERR - Determines whether an interrupt occurs when a transmit error occurs, based on the TXERR flag in the FIFOSTAT register.\r
- * 0b0..No interrupt will be generated for a transmit error.\r
- * 0b1..An interrupt will be generated when a transmit error occurs.\r
- */\r
-#define USART_FIFOINTENSET_TXERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENSET_TXERR_SHIFT)) & USART_FIFOINTENSET_TXERR_MASK)\r
-#define USART_FIFOINTENSET_RXERR_MASK (0x2U)\r
-#define USART_FIFOINTENSET_RXERR_SHIFT (1U)\r
-/*! RXERR - Determines whether an interrupt occurs when a receive error occurs, based on the RXERR flag in the FIFOSTAT register.\r
- * 0b0..No interrupt will be generated for a receive error.\r
- * 0b1..An interrupt will be generated when a receive error occurs.\r
- */\r
-#define USART_FIFOINTENSET_RXERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENSET_RXERR_SHIFT)) & USART_FIFOINTENSET_RXERR_MASK)\r
-#define USART_FIFOINTENSET_TXLVL_MASK (0x4U)\r
-#define USART_FIFOINTENSET_TXLVL_SHIFT (2U)\r
-/*! TXLVL - Determines whether an interrupt occurs when a the transmit FIFO reaches the level specified by the TXLVL field in the FIFOTRIG register.\r
+#define USART_FIFOINTENSET_TXERR_MASK (0x1U)\r
+#define USART_FIFOINTENSET_TXERR_SHIFT (0U)\r
+/*! TXERR - Determines whether an interrupt occurs when a transmit error occurs, based on the TXERR flag in the FIFOSTAT\r
+ * register. 0b0..No interrupt will be generated for a transmit error. 0b1..An interrupt will be generated when a\r
+ * transmit error occurs.\r
+ */\r
+#define USART_FIFOINTENSET_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENSET_TXERR_SHIFT)) & USART_FIFOINTENSET_TXERR_MASK)\r
+#define USART_FIFOINTENSET_RXERR_MASK (0x2U)\r
+#define USART_FIFOINTENSET_RXERR_SHIFT (1U)\r
+/*! RXERR - Determines whether an interrupt occurs when a receive error occurs, based on the RXERR flag in the FIFOSTAT\r
+ * register. 0b0..No interrupt will be generated for a receive error. 0b1..An interrupt will be generated when a receive\r
+ * error occurs.\r
+ */\r
+#define USART_FIFOINTENSET_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENSET_RXERR_SHIFT)) & USART_FIFOINTENSET_RXERR_MASK)\r
+#define USART_FIFOINTENSET_TXLVL_MASK (0x4U)\r
+#define USART_FIFOINTENSET_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Determines whether an interrupt occurs when a the transmit FIFO reaches the level\r
+ * specified by the TXLVL field in the FIFOTRIG register.\r
* 0b0..No interrupt will be generated based on the TX FIFO level.\r
- * 0b1..If TXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the TX FIFO level decreases to the level specified by TXLVL in the FIFOTRIG register.\r
- */\r
-#define USART_FIFOINTENSET_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENSET_TXLVL_SHIFT)) & USART_FIFOINTENSET_TXLVL_MASK)\r
-#define USART_FIFOINTENSET_RXLVL_MASK (0x8U)\r
-#define USART_FIFOINTENSET_RXLVL_SHIFT (3U)\r
-/*! RXLVL - Determines whether an interrupt occurs when a the receive FIFO reaches the level specified by the TXLVL field in the FIFOTRIG register.\r
+ * 0b1..If TXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the TX FIFO level decreases\r
+ * to the level specified by TXLVL in the FIFOTRIG register.\r
+ */\r
+#define USART_FIFOINTENSET_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENSET_TXLVL_SHIFT)) & USART_FIFOINTENSET_TXLVL_MASK)\r
+#define USART_FIFOINTENSET_RXLVL_MASK (0x8U)\r
+#define USART_FIFOINTENSET_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Determines whether an interrupt occurs when a the receive FIFO reaches the level\r
+ * specified by the TXLVL field in the FIFOTRIG register.\r
* 0b0..No interrupt will be generated based on the RX FIFO level.\r
- * 0b1..If RXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the when the RX FIFO level increases to the level specified by RXLVL in the FIFOTRIG register.\r
+ * 0b1..If RXLVLENA in the FIFOTRIG register = 1, an interrupt will be generated when the when the RX FIFO level\r
+ * increases to the level specified by RXLVL in the FIFOTRIG register.\r
*/\r
-#define USART_FIFOINTENSET_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENSET_RXLVL_SHIFT)) & USART_FIFOINTENSET_RXLVL_MASK)\r
+#define USART_FIFOINTENSET_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENSET_RXLVL_SHIFT)) & USART_FIFOINTENSET_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTENCLR - FIFO interrupt enable clear (disable) and read register. */\r
/*! @{ */\r
-#define USART_FIFOINTENCLR_TXERR_MASK (0x1U)\r
-#define USART_FIFOINTENCLR_TXERR_SHIFT (0U)\r
-#define USART_FIFOINTENCLR_TXERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENCLR_TXERR_SHIFT)) & USART_FIFOINTENCLR_TXERR_MASK)\r
-#define USART_FIFOINTENCLR_RXERR_MASK (0x2U)\r
-#define USART_FIFOINTENCLR_RXERR_SHIFT (1U)\r
-#define USART_FIFOINTENCLR_RXERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENCLR_RXERR_SHIFT)) & USART_FIFOINTENCLR_RXERR_MASK)\r
-#define USART_FIFOINTENCLR_TXLVL_MASK (0x4U)\r
-#define USART_FIFOINTENCLR_TXLVL_SHIFT (2U)\r
-#define USART_FIFOINTENCLR_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENCLR_TXLVL_SHIFT)) & USART_FIFOINTENCLR_TXLVL_MASK)\r
-#define USART_FIFOINTENCLR_RXLVL_MASK (0x8U)\r
-#define USART_FIFOINTENCLR_RXLVL_SHIFT (3U)\r
-#define USART_FIFOINTENCLR_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENCLR_RXLVL_SHIFT)) & USART_FIFOINTENCLR_RXLVL_MASK)\r
+#define USART_FIFOINTENCLR_TXERR_MASK (0x1U)\r
+#define USART_FIFOINTENCLR_TXERR_SHIFT (0U)\r
+/*! TXERR - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define USART_FIFOINTENCLR_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENCLR_TXERR_SHIFT)) & USART_FIFOINTENCLR_TXERR_MASK)\r
+#define USART_FIFOINTENCLR_RXERR_MASK (0x2U)\r
+#define USART_FIFOINTENCLR_RXERR_SHIFT (1U)\r
+/*! RXERR - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define USART_FIFOINTENCLR_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENCLR_RXERR_SHIFT)) & USART_FIFOINTENCLR_RXERR_MASK)\r
+#define USART_FIFOINTENCLR_TXLVL_MASK (0x4U)\r
+#define USART_FIFOINTENCLR_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define USART_FIFOINTENCLR_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENCLR_TXLVL_SHIFT)) & USART_FIFOINTENCLR_TXLVL_MASK)\r
+#define USART_FIFOINTENCLR_RXLVL_MASK (0x8U)\r
+#define USART_FIFOINTENCLR_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Writing one clears the corresponding bits in the FIFOINTENSET register.\r
+ */\r
+#define USART_FIFOINTENCLR_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTENCLR_RXLVL_SHIFT)) & USART_FIFOINTENCLR_RXLVL_MASK)\r
/*! @} */\r
\r
/*! @name FIFOINTSTAT - FIFO interrupt status register. */\r
/*! @{ */\r
-#define USART_FIFOINTSTAT_TXERR_MASK (0x1U)\r
-#define USART_FIFOINTSTAT_TXERR_SHIFT (0U)\r
-#define USART_FIFOINTSTAT_TXERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_TXERR_SHIFT)) & USART_FIFOINTSTAT_TXERR_MASK)\r
-#define USART_FIFOINTSTAT_RXERR_MASK (0x2U)\r
-#define USART_FIFOINTSTAT_RXERR_SHIFT (1U)\r
-#define USART_FIFOINTSTAT_RXERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_RXERR_SHIFT)) & USART_FIFOINTSTAT_RXERR_MASK)\r
-#define USART_FIFOINTSTAT_TXLVL_MASK (0x4U)\r
-#define USART_FIFOINTSTAT_TXLVL_SHIFT (2U)\r
-#define USART_FIFOINTSTAT_TXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_TXLVL_SHIFT)) & USART_FIFOINTSTAT_TXLVL_MASK)\r
-#define USART_FIFOINTSTAT_RXLVL_MASK (0x8U)\r
-#define USART_FIFOINTSTAT_RXLVL_SHIFT (3U)\r
-#define USART_FIFOINTSTAT_RXLVL(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_RXLVL_SHIFT)) & USART_FIFOINTSTAT_RXLVL_MASK)\r
-#define USART_FIFOINTSTAT_PERINT_MASK (0x10U)\r
-#define USART_FIFOINTSTAT_PERINT_SHIFT (4U)\r
-#define USART_FIFOINTSTAT_PERINT(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_PERINT_SHIFT)) & USART_FIFOINTSTAT_PERINT_MASK)\r
+#define USART_FIFOINTSTAT_TXERR_MASK (0x1U)\r
+#define USART_FIFOINTSTAT_TXERR_SHIFT (0U)\r
+/*! TXERR - TX FIFO error.\r
+ */\r
+#define USART_FIFOINTSTAT_TXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_TXERR_SHIFT)) & USART_FIFOINTSTAT_TXERR_MASK)\r
+#define USART_FIFOINTSTAT_RXERR_MASK (0x2U)\r
+#define USART_FIFOINTSTAT_RXERR_SHIFT (1U)\r
+/*! RXERR - RX FIFO error.\r
+ */\r
+#define USART_FIFOINTSTAT_RXERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_RXERR_SHIFT)) & USART_FIFOINTSTAT_RXERR_MASK)\r
+#define USART_FIFOINTSTAT_TXLVL_MASK (0x4U)\r
+#define USART_FIFOINTSTAT_TXLVL_SHIFT (2U)\r
+/*! TXLVL - Transmit FIFO level interrupt.\r
+ */\r
+#define USART_FIFOINTSTAT_TXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_TXLVL_SHIFT)) & USART_FIFOINTSTAT_TXLVL_MASK)\r
+#define USART_FIFOINTSTAT_RXLVL_MASK (0x8U)\r
+#define USART_FIFOINTSTAT_RXLVL_SHIFT (3U)\r
+/*! RXLVL - Receive FIFO level interrupt.\r
+ */\r
+#define USART_FIFOINTSTAT_RXLVL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_RXLVL_SHIFT)) & USART_FIFOINTSTAT_RXLVL_MASK)\r
+#define USART_FIFOINTSTAT_PERINT_MASK (0x10U)\r
+#define USART_FIFOINTSTAT_PERINT_SHIFT (4U)\r
+/*! PERINT - Peripheral interrupt.\r
+ */\r
+#define USART_FIFOINTSTAT_PERINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFOINTSTAT_PERINT_SHIFT)) & USART_FIFOINTSTAT_PERINT_MASK)\r
/*! @} */\r
\r
/*! @name FIFOWR - FIFO write data. */\r
/*! @{ */\r
-#define USART_FIFOWR_TXDATA_MASK (0x1FFU)\r
-#define USART_FIFOWR_TXDATA_SHIFT (0U)\r
-#define USART_FIFOWR_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOWR_TXDATA_SHIFT)) & USART_FIFOWR_TXDATA_MASK)\r
+#define USART_FIFOWR_TXDATA_MASK (0x1FFU)\r
+#define USART_FIFOWR_TXDATA_SHIFT (0U)\r
+/*! TXDATA - Transmit data to the FIFO.\r
+ */\r
+#define USART_FIFOWR_TXDATA(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFOWR_TXDATA_SHIFT)) & USART_FIFOWR_TXDATA_MASK)\r
/*! @} */\r
\r
/*! @name FIFORD - FIFO read data. */\r
/*! @{ */\r
-#define USART_FIFORD_RXDATA_MASK (0x1FFU)\r
-#define USART_FIFORD_RXDATA_SHIFT (0U)\r
-#define USART_FIFORD_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORD_RXDATA_SHIFT)) & USART_FIFORD_RXDATA_MASK)\r
-#define USART_FIFORD_FRAMERR_MASK (0x2000U)\r
-#define USART_FIFORD_FRAMERR_SHIFT (13U)\r
-#define USART_FIFORD_FRAMERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORD_FRAMERR_SHIFT)) & USART_FIFORD_FRAMERR_MASK)\r
-#define USART_FIFORD_PARITYERR_MASK (0x4000U)\r
-#define USART_FIFORD_PARITYERR_SHIFT (14U)\r
-#define USART_FIFORD_PARITYERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORD_PARITYERR_SHIFT)) & USART_FIFORD_PARITYERR_MASK)\r
-#define USART_FIFORD_RXNOISE_MASK (0x8000U)\r
-#define USART_FIFORD_RXNOISE_SHIFT (15U)\r
-#define USART_FIFORD_RXNOISE(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORD_RXNOISE_SHIFT)) & USART_FIFORD_RXNOISE_MASK)\r
+#define USART_FIFORD_RXDATA_MASK (0x1FFU)\r
+#define USART_FIFORD_RXDATA_SHIFT (0U)\r
+/*! RXDATA - Received data from the FIFO. The number of bits used depends on the DATALEN and PARITYSEL settings.\r
+ */\r
+#define USART_FIFORD_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORD_RXDATA_SHIFT)) & USART_FIFORD_RXDATA_MASK)\r
+#define USART_FIFORD_FRAMERR_MASK (0x2000U)\r
+#define USART_FIFORD_FRAMERR_SHIFT (13U)\r
+/*! FRAMERR - Framing Error status flag. This bit reflects the status for the data it is read along\r
+ * with from the FIFO, and indicates that the character was received with a missing stop bit at\r
+ * the expected location. This could be an indication of a baud rate or configuration mismatch\r
+ * with the transmitting source.\r
+ */\r
+#define USART_FIFORD_FRAMERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFORD_FRAMERR_SHIFT)) & USART_FIFORD_FRAMERR_MASK)\r
+#define USART_FIFORD_PARITYERR_MASK (0x4000U)\r
+#define USART_FIFORD_PARITYERR_SHIFT (14U)\r
+/*! PARITYERR - Parity Error status flag. This bit reflects the status for the data it is read along\r
+ * with from the FIFO. This bit will be set when a parity error is detected in a received\r
+ * character.\r
+ */\r
+#define USART_FIFORD_PARITYERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFORD_PARITYERR_SHIFT)) & USART_FIFORD_PARITYERR_MASK)\r
+#define USART_FIFORD_RXNOISE_MASK (0x8000U)\r
+#define USART_FIFORD_RXNOISE_SHIFT (15U)\r
+/*! RXNOISE - Received Noise flag. See description of the RxNoiseInt bit in Table 354.\r
+ */\r
+#define USART_FIFORD_RXNOISE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFORD_RXNOISE_SHIFT)) & USART_FIFORD_RXNOISE_MASK)\r
/*! @} */\r
\r
/*! @name FIFORDNOPOP - FIFO data read with no FIFO pop. */\r
/*! @{ */\r
-#define USART_FIFORDNOPOP_RXDATA_MASK (0x1FFU)\r
-#define USART_FIFORDNOPOP_RXDATA_SHIFT (0U)\r
-#define USART_FIFORDNOPOP_RXDATA(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORDNOPOP_RXDATA_SHIFT)) & USART_FIFORDNOPOP_RXDATA_MASK)\r
-#define USART_FIFORDNOPOP_FRAMERR_MASK (0x2000U)\r
-#define USART_FIFORDNOPOP_FRAMERR_SHIFT (13U)\r
-#define USART_FIFORDNOPOP_FRAMERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORDNOPOP_FRAMERR_SHIFT)) & USART_FIFORDNOPOP_FRAMERR_MASK)\r
-#define USART_FIFORDNOPOP_PARITYERR_MASK (0x4000U)\r
-#define USART_FIFORDNOPOP_PARITYERR_SHIFT (14U)\r
-#define USART_FIFORDNOPOP_PARITYERR(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORDNOPOP_PARITYERR_SHIFT)) & USART_FIFORDNOPOP_PARITYERR_MASK)\r
-#define USART_FIFORDNOPOP_RXNOISE_MASK (0x8000U)\r
-#define USART_FIFORDNOPOP_RXNOISE_SHIFT (15U)\r
-#define USART_FIFORDNOPOP_RXNOISE(x) (((uint32_t)(((uint32_t)(x)) << USART_FIFORDNOPOP_RXNOISE_SHIFT)) & USART_FIFORDNOPOP_RXNOISE_MASK)\r
+#define USART_FIFORDNOPOP_RXDATA_MASK (0x1FFU)\r
+#define USART_FIFORDNOPOP_RXDATA_SHIFT (0U)\r
+/*! RXDATA - Received data from the FIFO. The number of bits used depends on the DATALEN and PARITYSEL settings.\r
+ */\r
+#define USART_FIFORDNOPOP_RXDATA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFORDNOPOP_RXDATA_SHIFT)) & USART_FIFORDNOPOP_RXDATA_MASK)\r
+#define USART_FIFORDNOPOP_FRAMERR_MASK (0x2000U)\r
+#define USART_FIFORDNOPOP_FRAMERR_SHIFT (13U)\r
+/*! FRAMERR - Framing Error status flag. This bit reflects the status for the data it is read along\r
+ * with from the FIFO, and indicates that the character was received with a missing stop bit at\r
+ * the expected location. This could be an indication of a baud rate or configuration mismatch\r
+ * with the transmitting source.\r
+ */\r
+#define USART_FIFORDNOPOP_FRAMERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFORDNOPOP_FRAMERR_SHIFT)) & USART_FIFORDNOPOP_FRAMERR_MASK)\r
+#define USART_FIFORDNOPOP_PARITYERR_MASK (0x4000U)\r
+#define USART_FIFORDNOPOP_PARITYERR_SHIFT (14U)\r
+/*! PARITYERR - Parity Error status flag. This bit reflects the status for the data it is read along\r
+ * with from the FIFO. This bit will be set when a parity error is detected in a received\r
+ * character.\r
+ */\r
+#define USART_FIFORDNOPOP_PARITYERR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFORDNOPOP_PARITYERR_SHIFT)) & USART_FIFORDNOPOP_PARITYERR_MASK)\r
+#define USART_FIFORDNOPOP_RXNOISE_MASK (0x8000U)\r
+#define USART_FIFORDNOPOP_RXNOISE_SHIFT (15U)\r
+/*! RXNOISE - Received Noise flag. See description of the RxNoiseInt bit in Table 354.\r
+ */\r
+#define USART_FIFORDNOPOP_RXNOISE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USART_FIFORDNOPOP_RXNOISE_SHIFT)) & USART_FIFORDNOPOP_RXNOISE_MASK)\r
/*! @} */\r
\r
/*! @name ID - Peripheral identification register. */\r
/*! @{ */\r
-#define USART_ID_APERTURE_MASK (0xFFU)\r
-#define USART_ID_APERTURE_SHIFT (0U)\r
-#define USART_ID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << USART_ID_APERTURE_SHIFT)) & USART_ID_APERTURE_MASK)\r
-#define USART_ID_MINOR_REV_MASK (0xF00U)\r
-#define USART_ID_MINOR_REV_SHIFT (8U)\r
-#define USART_ID_MINOR_REV(x) (((uint32_t)(((uint32_t)(x)) << USART_ID_MINOR_REV_SHIFT)) & USART_ID_MINOR_REV_MASK)\r
-#define USART_ID_MAJOR_REV_MASK (0xF000U)\r
-#define USART_ID_MAJOR_REV_SHIFT (12U)\r
-#define USART_ID_MAJOR_REV(x) (((uint32_t)(((uint32_t)(x)) << USART_ID_MAJOR_REV_SHIFT)) & USART_ID_MAJOR_REV_MASK)\r
-#define USART_ID_ID_MASK (0xFFFF0000U)\r
-#define USART_ID_ID_SHIFT (16U)\r
-#define USART_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << USART_ID_ID_SHIFT)) & USART_ID_ID_MASK)\r
+#define USART_ID_APERTURE_MASK (0xFFU)\r
+#define USART_ID_APERTURE_SHIFT (0U)\r
+/*! APERTURE - Aperture: encoded as (aperture size/4K) -1, so 0x00 means a 4K aperture.\r
+ */\r
+#define USART_ID_APERTURE(x) (((uint32_t)(((uint32_t)(x)) << USART_ID_APERTURE_SHIFT)) & USART_ID_APERTURE_MASK)\r
+#define USART_ID_MINOR_REV_MASK (0xF00U)\r
+#define USART_ID_MINOR_REV_SHIFT (8U)\r
+/*! MINOR_REV - Minor revision of module implementation.\r
+ */\r
+#define USART_ID_MINOR_REV(x) (((uint32_t)(((uint32_t)(x)) << USART_ID_MINOR_REV_SHIFT)) & USART_ID_MINOR_REV_MASK)\r
+#define USART_ID_MAJOR_REV_MASK (0xF000U)\r
+#define USART_ID_MAJOR_REV_SHIFT (12U)\r
+/*! MAJOR_REV - Major revision of module implementation.\r
+ */\r
+#define USART_ID_MAJOR_REV(x) (((uint32_t)(((uint32_t)(x)) << USART_ID_MAJOR_REV_SHIFT)) & USART_ID_MAJOR_REV_MASK)\r
+#define USART_ID_ID_MASK (0xFFFF0000U)\r
+#define USART_ID_ID_SHIFT (16U)\r
+/*! ID - Module identifier for the selected function.\r
+ */\r
+#define USART_ID_ID(x) (((uint32_t)(((uint32_t)(x)) << USART_ID_ID_SHIFT)) & USART_ID_ID_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group USART_Register_Masks */\r
\r
-\r
/* USART - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral USART0 base address */\r
- #define USART0_BASE (0x50086000u)\r
- /** Peripheral USART0 base address */\r
- #define USART0_BASE_NS (0x40086000u)\r
- /** Peripheral USART0 base pointer */\r
- #define USART0 ((USART_Type *)USART0_BASE)\r
- /** Peripheral USART0 base pointer */\r
- #define USART0_NS ((USART_Type *)USART0_BASE_NS)\r
- /** Peripheral USART1 base address */\r
- #define USART1_BASE (0x50087000u)\r
- /** Peripheral USART1 base address */\r
- #define USART1_BASE_NS (0x40087000u)\r
- /** Peripheral USART1 base pointer */\r
- #define USART1 ((USART_Type *)USART1_BASE)\r
- /** Peripheral USART1 base pointer */\r
- #define USART1_NS ((USART_Type *)USART1_BASE_NS)\r
- /** Peripheral USART2 base address */\r
- #define USART2_BASE (0x50088000u)\r
- /** Peripheral USART2 base address */\r
- #define USART2_BASE_NS (0x40088000u)\r
- /** Peripheral USART2 base pointer */\r
- #define USART2 ((USART_Type *)USART2_BASE)\r
- /** Peripheral USART2 base pointer */\r
- #define USART2_NS ((USART_Type *)USART2_BASE_NS)\r
- /** Peripheral USART3 base address */\r
- #define USART3_BASE (0x50089000u)\r
- /** Peripheral USART3 base address */\r
- #define USART3_BASE_NS (0x40089000u)\r
- /** Peripheral USART3 base pointer */\r
- #define USART3 ((USART_Type *)USART3_BASE)\r
- /** Peripheral USART3 base pointer */\r
- #define USART3_NS ((USART_Type *)USART3_BASE_NS)\r
- /** Peripheral USART4 base address */\r
- #define USART4_BASE (0x5008A000u)\r
- /** Peripheral USART4 base address */\r
- #define USART4_BASE_NS (0x4008A000u)\r
- /** Peripheral USART4 base pointer */\r
- #define USART4 ((USART_Type *)USART4_BASE)\r
- /** Peripheral USART4 base pointer */\r
- #define USART4_NS ((USART_Type *)USART4_BASE_NS)\r
- /** Peripheral USART5 base address */\r
- #define USART5_BASE (0x50096000u)\r
- /** Peripheral USART5 base address */\r
- #define USART5_BASE_NS (0x40096000u)\r
- /** Peripheral USART5 base pointer */\r
- #define USART5 ((USART_Type *)USART5_BASE)\r
- /** Peripheral USART5 base pointer */\r
- #define USART5_NS ((USART_Type *)USART5_BASE_NS)\r
- /** Peripheral USART6 base address */\r
- #define USART6_BASE (0x50097000u)\r
- /** Peripheral USART6 base address */\r
- #define USART6_BASE_NS (0x40097000u)\r
- /** Peripheral USART6 base pointer */\r
- #define USART6 ((USART_Type *)USART6_BASE)\r
- /** Peripheral USART6 base pointer */\r
- #define USART6_NS ((USART_Type *)USART6_BASE_NS)\r
- /** Peripheral USART7 base address */\r
- #define USART7_BASE (0x50098000u)\r
- /** Peripheral USART7 base address */\r
- #define USART7_BASE_NS (0x40098000u)\r
- /** Peripheral USART7 base pointer */\r
- #define USART7 ((USART_Type *)USART7_BASE)\r
- /** Peripheral USART7 base pointer */\r
- #define USART7_NS ((USART_Type *)USART7_BASE_NS)\r
- /** Array initializer of USART peripheral base addresses */\r
- #define USART_BASE_ADDRS { USART0_BASE, USART1_BASE, USART2_BASE, USART3_BASE, USART4_BASE, USART5_BASE, USART6_BASE, USART7_BASE }\r
- /** Array initializer of USART peripheral base pointers */\r
- #define USART_BASE_PTRS { USART0, USART1, USART2, USART3, USART4, USART5, USART6, USART7 }\r
- /** Array initializer of USART peripheral base addresses */\r
- #define USART_BASE_ADDRS_NS { USART0_BASE_NS, USART1_BASE_NS, USART2_BASE_NS, USART3_BASE_NS, USART4_BASE_NS, USART5_BASE_NS, USART6_BASE_NS, USART7_BASE_NS }\r
- /** Array initializer of USART peripheral base pointers */\r
- #define USART_BASE_PTRS_NS { USART0_NS, USART1_NS, USART2_NS, USART3_NS, USART4_NS, USART5_NS, USART6_NS, USART7_NS }\r
+/** Peripheral USART0 base address */\r
+#define USART0_BASE (0x50086000u)\r
+/** Peripheral USART0 base address */\r
+#define USART0_BASE_NS (0x40086000u)\r
+/** Peripheral USART0 base pointer */\r
+#define USART0 ((USART_Type *)USART0_BASE)\r
+/** Peripheral USART0 base pointer */\r
+#define USART0_NS ((USART_Type *)USART0_BASE_NS)\r
+/** Peripheral USART1 base address */\r
+#define USART1_BASE (0x50087000u)\r
+/** Peripheral USART1 base address */\r
+#define USART1_BASE_NS (0x40087000u)\r
+/** Peripheral USART1 base pointer */\r
+#define USART1 ((USART_Type *)USART1_BASE)\r
+/** Peripheral USART1 base pointer */\r
+#define USART1_NS ((USART_Type *)USART1_BASE_NS)\r
+/** Peripheral USART2 base address */\r
+#define USART2_BASE (0x50088000u)\r
+/** Peripheral USART2 base address */\r
+#define USART2_BASE_NS (0x40088000u)\r
+/** Peripheral USART2 base pointer */\r
+#define USART2 ((USART_Type *)USART2_BASE)\r
+/** Peripheral USART2 base pointer */\r
+#define USART2_NS ((USART_Type *)USART2_BASE_NS)\r
+/** Peripheral USART3 base address */\r
+#define USART3_BASE (0x50089000u)\r
+/** Peripheral USART3 base address */\r
+#define USART3_BASE_NS (0x40089000u)\r
+/** Peripheral USART3 base pointer */\r
+#define USART3 ((USART_Type *)USART3_BASE)\r
+/** Peripheral USART3 base pointer */\r
+#define USART3_NS ((USART_Type *)USART3_BASE_NS)\r
+/** Peripheral USART4 base address */\r
+#define USART4_BASE (0x5008A000u)\r
+/** Peripheral USART4 base address */\r
+#define USART4_BASE_NS (0x4008A000u)\r
+/** Peripheral USART4 base pointer */\r
+#define USART4 ((USART_Type *)USART4_BASE)\r
+/** Peripheral USART4 base pointer */\r
+#define USART4_NS ((USART_Type *)USART4_BASE_NS)\r
+/** Peripheral USART5 base address */\r
+#define USART5_BASE (0x50096000u)\r
+/** Peripheral USART5 base address */\r
+#define USART5_BASE_NS (0x40096000u)\r
+/** Peripheral USART5 base pointer */\r
+#define USART5 ((USART_Type *)USART5_BASE)\r
+/** Peripheral USART5 base pointer */\r
+#define USART5_NS ((USART_Type *)USART5_BASE_NS)\r
+/** Peripheral USART6 base address */\r
+#define USART6_BASE (0x50097000u)\r
+/** Peripheral USART6 base address */\r
+#define USART6_BASE_NS (0x40097000u)\r
+/** Peripheral USART6 base pointer */\r
+#define USART6 ((USART_Type *)USART6_BASE)\r
+/** Peripheral USART6 base pointer */\r
+#define USART6_NS ((USART_Type *)USART6_BASE_NS)\r
+/** Peripheral USART7 base address */\r
+#define USART7_BASE (0x50098000u)\r
+/** Peripheral USART7 base address */\r
+#define USART7_BASE_NS (0x40098000u)\r
+/** Peripheral USART7 base pointer */\r
+#define USART7 ((USART_Type *)USART7_BASE)\r
+/** Peripheral USART7 base pointer */\r
+#define USART7_NS ((USART_Type *)USART7_BASE_NS)\r
+/** Array initializer of USART peripheral base addresses */\r
+#define USART_BASE_ADDRS \\r
+ { \\r
+ USART0_BASE, USART1_BASE, USART2_BASE, USART3_BASE, USART4_BASE, USART5_BASE, USART6_BASE, USART7_BASE \\r
+ }\r
+/** Array initializer of USART peripheral base pointers */\r
+#define USART_BASE_PTRS \\r
+ { \\r
+ USART0, USART1, USART2, USART3, USART4, USART5, USART6, USART7 \\r
+ }\r
+/** Array initializer of USART peripheral base addresses */\r
+#define USART_BASE_ADDRS_NS \\r
+ { \\r
+ USART0_BASE_NS, USART1_BASE_NS, USART2_BASE_NS, USART3_BASE_NS, USART4_BASE_NS, USART5_BASE_NS, \\r
+ USART6_BASE_NS, USART7_BASE_NS \\r
+ }\r
+/** Array initializer of USART peripheral base pointers */\r
+#define USART_BASE_PTRS_NS \\r
+ { \\r
+ USART0_NS, USART1_NS, USART2_NS, USART3_NS, USART4_NS, USART5_NS, USART6_NS, USART7_NS \\r
+ }\r
#else\r
- /** Peripheral USART0 base address */\r
- #define USART0_BASE (0x40086000u)\r
- /** Peripheral USART0 base pointer */\r
- #define USART0 ((USART_Type *)USART0_BASE)\r
- /** Peripheral USART1 base address */\r
- #define USART1_BASE (0x40087000u)\r
- /** Peripheral USART1 base pointer */\r
- #define USART1 ((USART_Type *)USART1_BASE)\r
- /** Peripheral USART2 base address */\r
- #define USART2_BASE (0x40088000u)\r
- /** Peripheral USART2 base pointer */\r
- #define USART2 ((USART_Type *)USART2_BASE)\r
- /** Peripheral USART3 base address */\r
- #define USART3_BASE (0x40089000u)\r
- /** Peripheral USART3 base pointer */\r
- #define USART3 ((USART_Type *)USART3_BASE)\r
- /** Peripheral USART4 base address */\r
- #define USART4_BASE (0x4008A000u)\r
- /** Peripheral USART4 base pointer */\r
- #define USART4 ((USART_Type *)USART4_BASE)\r
- /** Peripheral USART5 base address */\r
- #define USART5_BASE (0x40096000u)\r
- /** Peripheral USART5 base pointer */\r
- #define USART5 ((USART_Type *)USART5_BASE)\r
- /** Peripheral USART6 base address */\r
- #define USART6_BASE (0x40097000u)\r
- /** Peripheral USART6 base pointer */\r
- #define USART6 ((USART_Type *)USART6_BASE)\r
- /** Peripheral USART7 base address */\r
- #define USART7_BASE (0x40098000u)\r
- /** Peripheral USART7 base pointer */\r
- #define USART7 ((USART_Type *)USART7_BASE)\r
- /** Array initializer of USART peripheral base addresses */\r
- #define USART_BASE_ADDRS { USART0_BASE, USART1_BASE, USART2_BASE, USART3_BASE, USART4_BASE, USART5_BASE, USART6_BASE, USART7_BASE }\r
- /** Array initializer of USART peripheral base pointers */\r
- #define USART_BASE_PTRS { USART0, USART1, USART2, USART3, USART4, USART5, USART6, USART7 }\r
+/** Peripheral USART0 base address */\r
+#define USART0_BASE (0x40086000u)\r
+/** Peripheral USART0 base pointer */\r
+#define USART0 ((USART_Type *)USART0_BASE)\r
+/** Peripheral USART1 base address */\r
+#define USART1_BASE (0x40087000u)\r
+/** Peripheral USART1 base pointer */\r
+#define USART1 ((USART_Type *)USART1_BASE)\r
+/** Peripheral USART2 base address */\r
+#define USART2_BASE (0x40088000u)\r
+/** Peripheral USART2 base pointer */\r
+#define USART2 ((USART_Type *)USART2_BASE)\r
+/** Peripheral USART3 base address */\r
+#define USART3_BASE (0x40089000u)\r
+/** Peripheral USART3 base pointer */\r
+#define USART3 ((USART_Type *)USART3_BASE)\r
+/** Peripheral USART4 base address */\r
+#define USART4_BASE (0x4008A000u)\r
+/** Peripheral USART4 base pointer */\r
+#define USART4 ((USART_Type *)USART4_BASE)\r
+/** Peripheral USART5 base address */\r
+#define USART5_BASE (0x40096000u)\r
+/** Peripheral USART5 base pointer */\r
+#define USART5 ((USART_Type *)USART5_BASE)\r
+/** Peripheral USART6 base address */\r
+#define USART6_BASE (0x40097000u)\r
+/** Peripheral USART6 base pointer */\r
+#define USART6 ((USART_Type *)USART6_BASE)\r
+/** Peripheral USART7 base address */\r
+#define USART7_BASE (0x40098000u)\r
+/** Peripheral USART7 base pointer */\r
+#define USART7 ((USART_Type *)USART7_BASE)\r
+/** Array initializer of USART peripheral base addresses */\r
+#define USART_BASE_ADDRS \\r
+ { \\r
+ USART0_BASE, USART1_BASE, USART2_BASE, USART3_BASE, USART4_BASE, USART5_BASE, USART6_BASE, USART7_BASE \\r
+ }\r
+/** Array initializer of USART peripheral base pointers */\r
+#define USART_BASE_PTRS \\r
+ { \\r
+ USART0, USART1, USART2, USART3, USART4, USART5, USART6, USART7 \\r
+ }\r
#endif\r
/** Interrupt vectors for the USART peripheral type */\r
-#define USART_IRQS { FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, FLEXCOMM6_IRQn, FLEXCOMM7_IRQn }\r
+#define USART_IRQS \\r
+ { \\r
+ FLEXCOMM0_IRQn, FLEXCOMM1_IRQn, FLEXCOMM2_IRQn, FLEXCOMM3_IRQn, FLEXCOMM4_IRQn, FLEXCOMM5_IRQn, \\r
+ FLEXCOMM6_IRQn, FLEXCOMM7_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group USART_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- USB Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** USB - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t DEVCMDSTAT; /**< USB Device Command/Status register, offset: 0x0 */\r
- __IO uint32_t INFO; /**< USB Info register, offset: 0x4 */\r
- __IO uint32_t EPLISTSTART; /**< USB EP Command/Status List start address, offset: 0x8 */\r
- __IO uint32_t DATABUFSTART; /**< USB Data buffer start address, offset: 0xC */\r
- __IO uint32_t LPM; /**< USB Link Power Management register, offset: 0x10 */\r
- __IO uint32_t EPSKIP; /**< USB Endpoint skip, offset: 0x14 */\r
- __IO uint32_t EPINUSE; /**< USB Endpoint Buffer in use, offset: 0x18 */\r
- __IO uint32_t EPBUFCFG; /**< USB Endpoint Buffer Configuration register, offset: 0x1C */\r
- __IO uint32_t INTSTAT; /**< USB interrupt status register, offset: 0x20 */\r
- __IO uint32_t INTEN; /**< USB interrupt enable register, offset: 0x24 */\r
- __IO uint32_t INTSETSTAT; /**< USB set interrupt status register, offset: 0x28 */\r
- uint8_t RESERVED_0[8];\r
- __IO uint32_t EPTOGGLE; /**< USB Endpoint toggle register, offset: 0x34 */\r
+typedef struct\r
+{\r
+ __IO uint32_t DEVCMDSTAT; /**< USB Device Command/Status register, offset: 0x0 */\r
+ __IO uint32_t INFO; /**< USB Info register, offset: 0x4 */\r
+ __IO uint32_t EPLISTSTART; /**< USB EP Command/Status List start address, offset: 0x8 */\r
+ __IO uint32_t DATABUFSTART; /**< USB Data buffer start address, offset: 0xC */\r
+ __IO uint32_t LPM; /**< USB Link Power Management register, offset: 0x10 */\r
+ __IO uint32_t EPSKIP; /**< USB Endpoint skip, offset: 0x14 */\r
+ __IO uint32_t EPINUSE; /**< USB Endpoint Buffer in use, offset: 0x18 */\r
+ __IO uint32_t EPBUFCFG; /**< USB Endpoint Buffer Configuration register, offset: 0x1C */\r
+ __IO uint32_t INTSTAT; /**< USB interrupt status register, offset: 0x20 */\r
+ __IO uint32_t INTEN; /**< USB interrupt enable register, offset: 0x24 */\r
+ __IO uint32_t INTSETSTAT; /**< USB set interrupt status register, offset: 0x28 */\r
+ uint8_t RESERVED_0[8];\r
+ __IO uint32_t EPTOGGLE; /**< USB Endpoint toggle register, offset: 0x34 */\r
} USB_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name DEVCMDSTAT - USB Device Command/Status register */\r
/*! @{ */\r
-#define USB_DEVCMDSTAT_DEV_ADDR_MASK (0x7FU)\r
-#define USB_DEVCMDSTAT_DEV_ADDR_SHIFT (0U)\r
-#define USB_DEVCMDSTAT_DEV_ADDR(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DEV_ADDR_SHIFT)) & USB_DEVCMDSTAT_DEV_ADDR_MASK)\r
-#define USB_DEVCMDSTAT_DEV_EN_MASK (0x80U)\r
-#define USB_DEVCMDSTAT_DEV_EN_SHIFT (7U)\r
-#define USB_DEVCMDSTAT_DEV_EN(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DEV_EN_SHIFT)) & USB_DEVCMDSTAT_DEV_EN_MASK)\r
-#define USB_DEVCMDSTAT_SETUP_MASK (0x100U)\r
-#define USB_DEVCMDSTAT_SETUP_SHIFT (8U)\r
-#define USB_DEVCMDSTAT_SETUP(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_SETUP_SHIFT)) & USB_DEVCMDSTAT_SETUP_MASK)\r
-#define USB_DEVCMDSTAT_FORCE_NEEDCLK_MASK (0x200U)\r
-#define USB_DEVCMDSTAT_FORCE_NEEDCLK_SHIFT (9U)\r
+#define USB_DEVCMDSTAT_DEV_ADDR_MASK (0x7FU)\r
+#define USB_DEVCMDSTAT_DEV_ADDR_SHIFT (0U)\r
+/*! DEV_ADDR - USB device address. After bus reset, the address is reset to 0x00. If the enable bit\r
+ * is set, the device will respond on packets for function address DEV_ADDR. When receiving a\r
+ * SetAddress Control Request from the USB host, software must program the new address before\r
+ * completing the status phase of the SetAddress Control Request.\r
+ */\r
+#define USB_DEVCMDSTAT_DEV_ADDR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DEV_ADDR_SHIFT)) & USB_DEVCMDSTAT_DEV_ADDR_MASK)\r
+#define USB_DEVCMDSTAT_DEV_EN_MASK (0x80U)\r
+#define USB_DEVCMDSTAT_DEV_EN_SHIFT (7U)\r
+/*! DEV_EN - USB device enable. If this bit is set, the HW will start responding on packets for function address\r
+ * DEV_ADDR.\r
+ */\r
+#define USB_DEVCMDSTAT_DEV_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DEV_EN_SHIFT)) & USB_DEVCMDSTAT_DEV_EN_MASK)\r
+#define USB_DEVCMDSTAT_SETUP_MASK (0x100U)\r
+#define USB_DEVCMDSTAT_SETUP_SHIFT (8U)\r
+/*! SETUP - SETUP token received. If a SETUP token is received and acknowledged by the device, this\r
+ * bit is set. As long as this bit is set all received IN and OUT tokens will be NAKed by HW. SW\r
+ * must clear this bit by writing a one. If this bit is zero, HW will handle the tokens to the\r
+ * CTRL EP0 as indicated by the CTRL EP0 IN and OUT data information programmed by SW.\r
+ */\r
+#define USB_DEVCMDSTAT_SETUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_SETUP_SHIFT)) & USB_DEVCMDSTAT_SETUP_MASK)\r
+#define USB_DEVCMDSTAT_FORCE_NEEDCLK_MASK (0x200U)\r
+#define USB_DEVCMDSTAT_FORCE_NEEDCLK_SHIFT (9U)\r
/*! FORCE_NEEDCLK - Forces the NEEDCLK output to always be on:\r
* 0b0..USB_NEEDCLK has normal function.\r
* 0b1..USB_NEEDCLK always 1. Clock will not be stopped in case of suspend.\r
*/\r
-#define USB_DEVCMDSTAT_FORCE_NEEDCLK(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_FORCE_NEEDCLK_SHIFT)) & USB_DEVCMDSTAT_FORCE_NEEDCLK_MASK)\r
-#define USB_DEVCMDSTAT_LPM_SUP_MASK (0x800U)\r
-#define USB_DEVCMDSTAT_LPM_SUP_SHIFT (11U)\r
+#define USB_DEVCMDSTAT_FORCE_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_FORCE_NEEDCLK_SHIFT)) & USB_DEVCMDSTAT_FORCE_NEEDCLK_MASK)\r
+#define USB_DEVCMDSTAT_LPM_SUP_MASK (0x800U)\r
+#define USB_DEVCMDSTAT_LPM_SUP_SHIFT (11U)\r
/*! LPM_SUP - LPM Supported:\r
* 0b0..LPM not supported.\r
* 0b1..LPM supported.\r
*/\r
-#define USB_DEVCMDSTAT_LPM_SUP(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_LPM_SUP_SHIFT)) & USB_DEVCMDSTAT_LPM_SUP_MASK)\r
-#define USB_DEVCMDSTAT_INTONNAK_AO_MASK (0x1000U)\r
-#define USB_DEVCMDSTAT_INTONNAK_AO_SHIFT (12U)\r
+#define USB_DEVCMDSTAT_LPM_SUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_LPM_SUP_SHIFT)) & USB_DEVCMDSTAT_LPM_SUP_MASK)\r
+#define USB_DEVCMDSTAT_INTONNAK_AO_MASK (0x1000U)\r
+#define USB_DEVCMDSTAT_INTONNAK_AO_SHIFT (12U)\r
/*! INTONNAK_AO - Interrupt on NAK for interrupt and bulk OUT EP\r
* 0b0..Only acknowledged packets generate an interrupt\r
* 0b1..Both acknowledged and NAKed packets generate interrupts.\r
*/\r
-#define USB_DEVCMDSTAT_INTONNAK_AO(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_INTONNAK_AO_SHIFT)) & USB_DEVCMDSTAT_INTONNAK_AO_MASK)\r
-#define USB_DEVCMDSTAT_INTONNAK_AI_MASK (0x2000U)\r
-#define USB_DEVCMDSTAT_INTONNAK_AI_SHIFT (13U)\r
+#define USB_DEVCMDSTAT_INTONNAK_AO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_INTONNAK_AO_SHIFT)) & USB_DEVCMDSTAT_INTONNAK_AO_MASK)\r
+#define USB_DEVCMDSTAT_INTONNAK_AI_MASK (0x2000U)\r
+#define USB_DEVCMDSTAT_INTONNAK_AI_SHIFT (13U)\r
/*! INTONNAK_AI - Interrupt on NAK for interrupt and bulk IN EP\r
* 0b0..Only acknowledged packets generate an interrupt\r
* 0b1..Both acknowledged and NAKed packets generate interrupts.\r
*/\r
-#define USB_DEVCMDSTAT_INTONNAK_AI(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_INTONNAK_AI_SHIFT)) & USB_DEVCMDSTAT_INTONNAK_AI_MASK)\r
-#define USB_DEVCMDSTAT_INTONNAK_CO_MASK (0x4000U)\r
-#define USB_DEVCMDSTAT_INTONNAK_CO_SHIFT (14U)\r
+#define USB_DEVCMDSTAT_INTONNAK_AI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_INTONNAK_AI_SHIFT)) & USB_DEVCMDSTAT_INTONNAK_AI_MASK)\r
+#define USB_DEVCMDSTAT_INTONNAK_CO_MASK (0x4000U)\r
+#define USB_DEVCMDSTAT_INTONNAK_CO_SHIFT (14U)\r
/*! INTONNAK_CO - Interrupt on NAK for control OUT EP\r
* 0b0..Only acknowledged packets generate an interrupt\r
* 0b1..Both acknowledged and NAKed packets generate interrupts.\r
*/\r
-#define USB_DEVCMDSTAT_INTONNAK_CO(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_INTONNAK_CO_SHIFT)) & USB_DEVCMDSTAT_INTONNAK_CO_MASK)\r
-#define USB_DEVCMDSTAT_INTONNAK_CI_MASK (0x8000U)\r
-#define USB_DEVCMDSTAT_INTONNAK_CI_SHIFT (15U)\r
+#define USB_DEVCMDSTAT_INTONNAK_CO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_INTONNAK_CO_SHIFT)) & USB_DEVCMDSTAT_INTONNAK_CO_MASK)\r
+#define USB_DEVCMDSTAT_INTONNAK_CI_MASK (0x8000U)\r
+#define USB_DEVCMDSTAT_INTONNAK_CI_SHIFT (15U)\r
/*! INTONNAK_CI - Interrupt on NAK for control IN EP\r
* 0b0..Only acknowledged packets generate an interrupt\r
* 0b1..Both acknowledged and NAKed packets generate interrupts.\r
*/\r
-#define USB_DEVCMDSTAT_INTONNAK_CI(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_INTONNAK_CI_SHIFT)) & USB_DEVCMDSTAT_INTONNAK_CI_MASK)\r
-#define USB_DEVCMDSTAT_DCON_MASK (0x10000U)\r
-#define USB_DEVCMDSTAT_DCON_SHIFT (16U)\r
-#define USB_DEVCMDSTAT_DCON(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DCON_SHIFT)) & USB_DEVCMDSTAT_DCON_MASK)\r
-#define USB_DEVCMDSTAT_DSUS_MASK (0x20000U)\r
-#define USB_DEVCMDSTAT_DSUS_SHIFT (17U)\r
-#define USB_DEVCMDSTAT_DSUS(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DSUS_SHIFT)) & USB_DEVCMDSTAT_DSUS_MASK)\r
-#define USB_DEVCMDSTAT_LPM_SUS_MASK (0x80000U)\r
-#define USB_DEVCMDSTAT_LPM_SUS_SHIFT (19U)\r
-#define USB_DEVCMDSTAT_LPM_SUS(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_LPM_SUS_SHIFT)) & USB_DEVCMDSTAT_LPM_SUS_MASK)\r
-#define USB_DEVCMDSTAT_LPM_REWP_MASK (0x100000U)\r
-#define USB_DEVCMDSTAT_LPM_REWP_SHIFT (20U)\r
-#define USB_DEVCMDSTAT_LPM_REWP(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_LPM_REWP_SHIFT)) & USB_DEVCMDSTAT_LPM_REWP_MASK)\r
-#define USB_DEVCMDSTAT_DCON_C_MASK (0x1000000U)\r
-#define USB_DEVCMDSTAT_DCON_C_SHIFT (24U)\r
-#define USB_DEVCMDSTAT_DCON_C(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DCON_C_SHIFT)) & USB_DEVCMDSTAT_DCON_C_MASK)\r
-#define USB_DEVCMDSTAT_DSUS_C_MASK (0x2000000U)\r
-#define USB_DEVCMDSTAT_DSUS_C_SHIFT (25U)\r
-#define USB_DEVCMDSTAT_DSUS_C(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DSUS_C_SHIFT)) & USB_DEVCMDSTAT_DSUS_C_MASK)\r
-#define USB_DEVCMDSTAT_DRES_C_MASK (0x4000000U)\r
-#define USB_DEVCMDSTAT_DRES_C_SHIFT (26U)\r
-#define USB_DEVCMDSTAT_DRES_C(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DRES_C_SHIFT)) & USB_DEVCMDSTAT_DRES_C_MASK)\r
-#define USB_DEVCMDSTAT_VBUSDEBOUNCED_MASK (0x10000000U)\r
-#define USB_DEVCMDSTAT_VBUSDEBOUNCED_SHIFT (28U)\r
-#define USB_DEVCMDSTAT_VBUSDEBOUNCED(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_VBUSDEBOUNCED_SHIFT)) & USB_DEVCMDSTAT_VBUSDEBOUNCED_MASK)\r
+#define USB_DEVCMDSTAT_INTONNAK_CI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_INTONNAK_CI_SHIFT)) & USB_DEVCMDSTAT_INTONNAK_CI_MASK)\r
+#define USB_DEVCMDSTAT_DCON_MASK (0x10000U)\r
+#define USB_DEVCMDSTAT_DCON_SHIFT (16U)\r
+/*! DCON - Device status - connect. The connect bit must be set by SW to indicate that the device\r
+ * must signal a connect. The pull-up resistor on USB_DP will be enabled when this bit is set and\r
+ * the VBUSDEBOUNCED bit is one.\r
+ */\r
+#define USB_DEVCMDSTAT_DCON(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DCON_SHIFT)) & USB_DEVCMDSTAT_DCON_MASK)\r
+#define USB_DEVCMDSTAT_DSUS_MASK (0x20000U)\r
+#define USB_DEVCMDSTAT_DSUS_SHIFT (17U)\r
+/*! DSUS - Device status - suspend. The suspend bit indicates the current suspend state. It is set\r
+ * to 1 when the device hasn't seen any activity on its upstream port for more than 3\r
+ * milliseconds. It is reset to 0 on any activity. When the device is suspended (Suspend bit DSUS = 1) and\r
+ * the software writes a 0 to it, the device will generate a remote wake-up. This will only happen\r
+ * when the device is connected (Connect bit = 1). When the device is not connected or not\r
+ * suspended, a writing a 0 has no effect. Writing a 1 never has an effect.\r
+ */\r
+#define USB_DEVCMDSTAT_DSUS(x) (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DSUS_SHIFT)) & USB_DEVCMDSTAT_DSUS_MASK)\r
+#define USB_DEVCMDSTAT_LPM_SUS_MASK (0x80000U)\r
+#define USB_DEVCMDSTAT_LPM_SUS_SHIFT (19U)\r
+/*! LPM_SUS - Device status - LPM Suspend. This bit represents the current LPM suspend state. It is\r
+ * set to 1 by HW when the device has acknowledged the LPM request from the USB host and the\r
+ * Token Retry Time of 10 ms has elapsed. When the device is in the LPM suspended state (LPM suspend\r
+ * bit = 1) and the software writes a zero to this bit, the device will generate a remote\r
+ * walk-up. Software can only write a zero to this bit when the LPM_REWP bit is set to 1. HW resets this\r
+ * bit when it receives a host initiated resume. HW only updates the LPM_SUS bit when the\r
+ * LPM_SUPP bit is equal to one.\r
+ */\r
+#define USB_DEVCMDSTAT_LPM_SUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_LPM_SUS_SHIFT)) & USB_DEVCMDSTAT_LPM_SUS_MASK)\r
+#define USB_DEVCMDSTAT_LPM_REWP_MASK (0x100000U)\r
+#define USB_DEVCMDSTAT_LPM_REWP_SHIFT (20U)\r
+/*! LPM_REWP - LPM Remote Wake-up Enabled by USB host. HW sets this bit to one when the bRemoteWake\r
+ * bit in the LPM extended token is set to 1. HW will reset this bit to 0 when it receives the\r
+ * host initiated LPM resume, when a remote wake-up is sent by the device or when a USB bus reset\r
+ * is received. Software can use this bit to check if the remote wake-up feature is enabled by the\r
+ * host for the LPM transaction.\r
+ */\r
+#define USB_DEVCMDSTAT_LPM_REWP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_LPM_REWP_SHIFT)) & USB_DEVCMDSTAT_LPM_REWP_MASK)\r
+#define USB_DEVCMDSTAT_DCON_C_MASK (0x1000000U)\r
+#define USB_DEVCMDSTAT_DCON_C_SHIFT (24U)\r
+/*! DCON_C - Device status - connect change. The Connect Change bit is set when the device's pull-up\r
+ * resistor is disconnected because VBus disappeared. The bit is reset by writing a one to it.\r
+ */\r
+#define USB_DEVCMDSTAT_DCON_C(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DCON_C_SHIFT)) & USB_DEVCMDSTAT_DCON_C_MASK)\r
+#define USB_DEVCMDSTAT_DSUS_C_MASK (0x2000000U)\r
+#define USB_DEVCMDSTAT_DSUS_C_SHIFT (25U)\r
+/*! DSUS_C - Device status - suspend change. The suspend change bit is set to 1 when the suspend bit\r
+ * toggles. The suspend bit can toggle because: - The device goes in the suspended state - The\r
+ * device is disconnected - The device receives resume signaling on its upstream port. The bit is\r
+ * reset by writing a one to it.\r
+ */\r
+#define USB_DEVCMDSTAT_DSUS_C(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DSUS_C_SHIFT)) & USB_DEVCMDSTAT_DSUS_C_MASK)\r
+#define USB_DEVCMDSTAT_DRES_C_MASK (0x4000000U)\r
+#define USB_DEVCMDSTAT_DRES_C_SHIFT (26U)\r
+/*! DRES_C - Device status - reset change. This bit is set when the device received a bus reset. On\r
+ * a bus reset the device will automatically go to the default state (unconfigured and responding\r
+ * to address 0). The bit is reset by writing a one to it.\r
+ */\r
+#define USB_DEVCMDSTAT_DRES_C(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_DRES_C_SHIFT)) & USB_DEVCMDSTAT_DRES_C_MASK)\r
+#define USB_DEVCMDSTAT_VBUSDEBOUNCED_MASK (0x10000000U)\r
+#define USB_DEVCMDSTAT_VBUSDEBOUNCED_SHIFT (28U)\r
+/*! VBUSDEBOUNCED - This bit indicates if Vbus is detected or not. The bit raises immediately when\r
+ * Vbus becomes high. It drops to zero if Vbus is low for at least 3 ms. If this bit is high and\r
+ * the DCon bit is set, the HW will enable the pull-up resistor to signal a connect.\r
+ */\r
+#define USB_DEVCMDSTAT_VBUSDEBOUNCED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DEVCMDSTAT_VBUSDEBOUNCED_SHIFT)) & USB_DEVCMDSTAT_VBUSDEBOUNCED_MASK)\r
/*! @} */\r
\r
/*! @name INFO - USB Info register */\r
/*! @{ */\r
-#define USB_INFO_FRAME_NR_MASK (0x7FFU)\r
-#define USB_INFO_FRAME_NR_SHIFT (0U)\r
-#define USB_INFO_FRAME_NR(x) (((uint32_t)(((uint32_t)(x)) << USB_INFO_FRAME_NR_SHIFT)) & USB_INFO_FRAME_NR_MASK)\r
-#define USB_INFO_ERR_CODE_MASK (0x7800U)\r
-#define USB_INFO_ERR_CODE_SHIFT (11U)\r
+#define USB_INFO_FRAME_NR_MASK (0x7FFU)\r
+#define USB_INFO_FRAME_NR_SHIFT (0U)\r
+/*! FRAME_NR - Frame number. This contains the frame number of the last successfully received SOF.\r
+ * In case no SOF was received by the device at the beginning of a frame, the frame number\r
+ * returned is that of the last successfully received SOF. In case the SOF frame number contained a CRC\r
+ * error, the frame number returned will be the corrupted frame number as received by the device.\r
+ */\r
+#define USB_INFO_FRAME_NR(x) (((uint32_t)(((uint32_t)(x)) << USB_INFO_FRAME_NR_SHIFT)) & USB_INFO_FRAME_NR_MASK)\r
+#define USB_INFO_ERR_CODE_MASK (0x7800U)\r
+#define USB_INFO_ERR_CODE_SHIFT (11U)\r
/*! ERR_CODE - The error code which last occurred:\r
* 0b0000..No error\r
* 0b0001..PID encoding error\r
* 0b1110..Sync error\r
* 0b1111..Wrong data toggle\r
*/\r
-#define USB_INFO_ERR_CODE(x) (((uint32_t)(((uint32_t)(x)) << USB_INFO_ERR_CODE_SHIFT)) & USB_INFO_ERR_CODE_MASK)\r
-#define USB_INFO_MINREV_MASK (0xFF0000U)\r
-#define USB_INFO_MINREV_SHIFT (16U)\r
-#define USB_INFO_MINREV(x) (((uint32_t)(((uint32_t)(x)) << USB_INFO_MINREV_SHIFT)) & USB_INFO_MINREV_MASK)\r
-#define USB_INFO_MAJREV_MASK (0xFF000000U)\r
-#define USB_INFO_MAJREV_SHIFT (24U)\r
-#define USB_INFO_MAJREV(x) (((uint32_t)(((uint32_t)(x)) << USB_INFO_MAJREV_SHIFT)) & USB_INFO_MAJREV_MASK)\r
+#define USB_INFO_ERR_CODE(x) (((uint32_t)(((uint32_t)(x)) << USB_INFO_ERR_CODE_SHIFT)) & USB_INFO_ERR_CODE_MASK)\r
+#define USB_INFO_MINREV_MASK (0xFF0000U)\r
+#define USB_INFO_MINREV_SHIFT (16U)\r
+/*! MINREV - Minor Revision.\r
+ */\r
+#define USB_INFO_MINREV(x) (((uint32_t)(((uint32_t)(x)) << USB_INFO_MINREV_SHIFT)) & USB_INFO_MINREV_MASK)\r
+#define USB_INFO_MAJREV_MASK (0xFF000000U)\r
+#define USB_INFO_MAJREV_SHIFT (24U)\r
+/*! MAJREV - Major Revision.\r
+ */\r
+#define USB_INFO_MAJREV(x) (((uint32_t)(((uint32_t)(x)) << USB_INFO_MAJREV_SHIFT)) & USB_INFO_MAJREV_MASK)\r
/*! @} */\r
\r
/*! @name EPLISTSTART - USB EP Command/Status List start address */\r
/*! @{ */\r
-#define USB_EPLISTSTART_EP_LIST_MASK (0xFFFFFF00U)\r
-#define USB_EPLISTSTART_EP_LIST_SHIFT (8U)\r
-#define USB_EPLISTSTART_EP_LIST(x) (((uint32_t)(((uint32_t)(x)) << USB_EPLISTSTART_EP_LIST_SHIFT)) & USB_EPLISTSTART_EP_LIST_MASK)\r
+#define USB_EPLISTSTART_EP_LIST_MASK (0xFFFFFF00U)\r
+#define USB_EPLISTSTART_EP_LIST_SHIFT (8U)\r
+/*! EP_LIST - Start address of the USB EP Command/Status List.\r
+ */\r
+#define USB_EPLISTSTART_EP_LIST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_EPLISTSTART_EP_LIST_SHIFT)) & USB_EPLISTSTART_EP_LIST_MASK)\r
/*! @} */\r
\r
/*! @name DATABUFSTART - USB Data buffer start address */\r
/*! @{ */\r
-#define USB_DATABUFSTART_DA_BUF_MASK (0xFFC00000U)\r
-#define USB_DATABUFSTART_DA_BUF_SHIFT (22U)\r
-#define USB_DATABUFSTART_DA_BUF(x) (((uint32_t)(((uint32_t)(x)) << USB_DATABUFSTART_DA_BUF_SHIFT)) & USB_DATABUFSTART_DA_BUF_MASK)\r
+#define USB_DATABUFSTART_DA_BUF_MASK (0xFFC00000U)\r
+#define USB_DATABUFSTART_DA_BUF_SHIFT (22U)\r
+/*! DA_BUF - Start address of the buffer pointer page where all endpoint data buffers are located.\r
+ */\r
+#define USB_DATABUFSTART_DA_BUF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_DATABUFSTART_DA_BUF_SHIFT)) & USB_DATABUFSTART_DA_BUF_MASK)\r
/*! @} */\r
\r
/*! @name LPM - USB Link Power Management register */\r
/*! @{ */\r
-#define USB_LPM_HIRD_HW_MASK (0xFU)\r
-#define USB_LPM_HIRD_HW_SHIFT (0U)\r
-#define USB_LPM_HIRD_HW(x) (((uint32_t)(((uint32_t)(x)) << USB_LPM_HIRD_HW_SHIFT)) & USB_LPM_HIRD_HW_MASK)\r
-#define USB_LPM_HIRD_SW_MASK (0xF0U)\r
-#define USB_LPM_HIRD_SW_SHIFT (4U)\r
-#define USB_LPM_HIRD_SW(x) (((uint32_t)(((uint32_t)(x)) << USB_LPM_HIRD_SW_SHIFT)) & USB_LPM_HIRD_SW_MASK)\r
-#define USB_LPM_DATA_PENDING_MASK (0x100U)\r
-#define USB_LPM_DATA_PENDING_SHIFT (8U)\r
-#define USB_LPM_DATA_PENDING(x) (((uint32_t)(((uint32_t)(x)) << USB_LPM_DATA_PENDING_SHIFT)) & USB_LPM_DATA_PENDING_MASK)\r
+#define USB_LPM_HIRD_HW_MASK (0xFU)\r
+#define USB_LPM_HIRD_HW_SHIFT (0U)\r
+/*! HIRD_HW - Host Initiated Resume Duration - HW. This is the HIRD value from the last received LPM token\r
+ */\r
+#define USB_LPM_HIRD_HW(x) (((uint32_t)(((uint32_t)(x)) << USB_LPM_HIRD_HW_SHIFT)) & USB_LPM_HIRD_HW_MASK)\r
+#define USB_LPM_HIRD_SW_MASK (0xF0U)\r
+#define USB_LPM_HIRD_SW_SHIFT (4U)\r
+/*! HIRD_SW - Host Initiated Resume Duration - SW. This is the time duration required by the USB\r
+ * device system to come out of LPM initiated suspend after receiving the host initiated LPM resume.\r
+ */\r
+#define USB_LPM_HIRD_SW(x) (((uint32_t)(((uint32_t)(x)) << USB_LPM_HIRD_SW_SHIFT)) & USB_LPM_HIRD_SW_MASK)\r
+#define USB_LPM_DATA_PENDING_MASK (0x100U)\r
+#define USB_LPM_DATA_PENDING_SHIFT (8U)\r
+/*! DATA_PENDING - As long as this bit is set to one and LPM supported bit is set to one, HW will\r
+ * return a NYET handshake on every LPM token it receives. If LPM supported bit is set to one and\r
+ * this bit is zero, HW will return an ACK handshake on every LPM token it receives. If SW has\r
+ * still data pending and LPM is supported, it must set this bit to 1.\r
+ */\r
+#define USB_LPM_DATA_PENDING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_LPM_DATA_PENDING_SHIFT)) & USB_LPM_DATA_PENDING_MASK)\r
/*! @} */\r
\r
/*! @name EPSKIP - USB Endpoint skip */\r
/*! @{ */\r
-#define USB_EPSKIP_SKIP_MASK (0x3FFU)\r
-#define USB_EPSKIP_SKIP_SHIFT (0U)\r
-#define USB_EPSKIP_SKIP(x) (((uint32_t)(((uint32_t)(x)) << USB_EPSKIP_SKIP_SHIFT)) & USB_EPSKIP_SKIP_MASK)\r
+#define USB_EPSKIP_SKIP_MASK (0x3FFU)\r
+#define USB_EPSKIP_SKIP_SHIFT (0U)\r
+/*! SKIP - Endpoint skip: Writing 1 to one of these bits, will indicate to HW that it must\r
+ * deactivate the buffer assigned to this endpoint and return control back to software. When HW has\r
+ * deactivated the endpoint, it will clear this bit, but it will not modify the EPINUSE bit. An\r
+ * interrupt will be generated when the Active bit goes from 1 to 0. Note: In case of double-buffering,\r
+ * HW will only clear the Active bit of the buffer indicated by the EPINUSE bit.\r
+ */\r
+#define USB_EPSKIP_SKIP(x) (((uint32_t)(((uint32_t)(x)) << USB_EPSKIP_SKIP_SHIFT)) & USB_EPSKIP_SKIP_MASK)\r
/*! @} */\r
\r
/*! @name EPINUSE - USB Endpoint Buffer in use */\r
/*! @{ */\r
-#define USB_EPINUSE_BUF_MASK (0x3FCU)\r
-#define USB_EPINUSE_BUF_SHIFT (2U)\r
-#define USB_EPINUSE_BUF(x) (((uint32_t)(((uint32_t)(x)) << USB_EPINUSE_BUF_SHIFT)) & USB_EPINUSE_BUF_MASK)\r
+#define USB_EPINUSE_BUF_MASK (0x3FCU)\r
+#define USB_EPINUSE_BUF_SHIFT (2U)\r
+/*! BUF - Buffer in use: This register has one bit per physical endpoint. 0: HW is accessing buffer\r
+ * 0. 1: HW is accessing buffer 1.\r
+ */\r
+#define USB_EPINUSE_BUF(x) (((uint32_t)(((uint32_t)(x)) << USB_EPINUSE_BUF_SHIFT)) & USB_EPINUSE_BUF_MASK)\r
/*! @} */\r
\r
/*! @name EPBUFCFG - USB Endpoint Buffer Configuration register */\r
/*! @{ */\r
-#define USB_EPBUFCFG_BUF_SB_MASK (0x3FCU)\r
-#define USB_EPBUFCFG_BUF_SB_SHIFT (2U)\r
-#define USB_EPBUFCFG_BUF_SB(x) (((uint32_t)(((uint32_t)(x)) << USB_EPBUFCFG_BUF_SB_SHIFT)) & USB_EPBUFCFG_BUF_SB_MASK)\r
+#define USB_EPBUFCFG_BUF_SB_MASK (0x3FCU)\r
+#define USB_EPBUFCFG_BUF_SB_SHIFT (2U)\r
+/*! BUF_SB - Buffer usage: This register has one bit per physical endpoint. 0: Single-buffer. 1:\r
+ * Double-buffer. If the bit is set to single-buffer (0), it will not toggle the corresponding\r
+ * EPINUSE bit when it clears the active bit. If the bit is set to double-buffer (1), HW will toggle\r
+ * the EPINUSE bit when it clears the Active bit for the buffer.\r
+ */\r
+#define USB_EPBUFCFG_BUF_SB(x) (((uint32_t)(((uint32_t)(x)) << USB_EPBUFCFG_BUF_SB_SHIFT)) & USB_EPBUFCFG_BUF_SB_MASK)\r
/*! @} */\r
\r
/*! @name INTSTAT - USB interrupt status register */\r
/*! @{ */\r
-#define USB_INTSTAT_EP0OUT_MASK (0x1U)\r
-#define USB_INTSTAT_EP0OUT_SHIFT (0U)\r
-#define USB_INTSTAT_EP0OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP0OUT_SHIFT)) & USB_INTSTAT_EP0OUT_MASK)\r
-#define USB_INTSTAT_EP0IN_MASK (0x2U)\r
-#define USB_INTSTAT_EP0IN_SHIFT (1U)\r
-#define USB_INTSTAT_EP0IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP0IN_SHIFT)) & USB_INTSTAT_EP0IN_MASK)\r
-#define USB_INTSTAT_EP1OUT_MASK (0x4U)\r
-#define USB_INTSTAT_EP1OUT_SHIFT (2U)\r
-#define USB_INTSTAT_EP1OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP1OUT_SHIFT)) & USB_INTSTAT_EP1OUT_MASK)\r
-#define USB_INTSTAT_EP1IN_MASK (0x8U)\r
-#define USB_INTSTAT_EP1IN_SHIFT (3U)\r
-#define USB_INTSTAT_EP1IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP1IN_SHIFT)) & USB_INTSTAT_EP1IN_MASK)\r
-#define USB_INTSTAT_EP2OUT_MASK (0x10U)\r
-#define USB_INTSTAT_EP2OUT_SHIFT (4U)\r
-#define USB_INTSTAT_EP2OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP2OUT_SHIFT)) & USB_INTSTAT_EP2OUT_MASK)\r
-#define USB_INTSTAT_EP2IN_MASK (0x20U)\r
-#define USB_INTSTAT_EP2IN_SHIFT (5U)\r
-#define USB_INTSTAT_EP2IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP2IN_SHIFT)) & USB_INTSTAT_EP2IN_MASK)\r
-#define USB_INTSTAT_EP3OUT_MASK (0x40U)\r
-#define USB_INTSTAT_EP3OUT_SHIFT (6U)\r
-#define USB_INTSTAT_EP3OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP3OUT_SHIFT)) & USB_INTSTAT_EP3OUT_MASK)\r
-#define USB_INTSTAT_EP3IN_MASK (0x80U)\r
-#define USB_INTSTAT_EP3IN_SHIFT (7U)\r
-#define USB_INTSTAT_EP3IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP3IN_SHIFT)) & USB_INTSTAT_EP3IN_MASK)\r
-#define USB_INTSTAT_EP4OUT_MASK (0x100U)\r
-#define USB_INTSTAT_EP4OUT_SHIFT (8U)\r
-#define USB_INTSTAT_EP4OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP4OUT_SHIFT)) & USB_INTSTAT_EP4OUT_MASK)\r
-#define USB_INTSTAT_EP4IN_MASK (0x200U)\r
-#define USB_INTSTAT_EP4IN_SHIFT (9U)\r
-#define USB_INTSTAT_EP4IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP4IN_SHIFT)) & USB_INTSTAT_EP4IN_MASK)\r
-#define USB_INTSTAT_FRAME_INT_MASK (0x40000000U)\r
-#define USB_INTSTAT_FRAME_INT_SHIFT (30U)\r
-#define USB_INTSTAT_FRAME_INT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_FRAME_INT_SHIFT)) & USB_INTSTAT_FRAME_INT_MASK)\r
-#define USB_INTSTAT_DEV_INT_MASK (0x80000000U)\r
-#define USB_INTSTAT_DEV_INT_SHIFT (31U)\r
-#define USB_INTSTAT_DEV_INT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_DEV_INT_SHIFT)) & USB_INTSTAT_DEV_INT_MASK)\r
+#define USB_INTSTAT_EP0OUT_MASK (0x1U)\r
+#define USB_INTSTAT_EP0OUT_SHIFT (0U)\r
+/*! EP0OUT - Interrupt status register bit for the Control EP0 OUT direction. This bit will be set\r
+ * if NBytes transitions to zero or the skip bit is set by software or a SETUP packet is\r
+ * successfully received for the control EP0. If the IntOnNAK_CO is set, this bit will also be set when a\r
+ * NAK is transmitted for the Control EP0 OUT direction. Software can clear this bit by writing a\r
+ * one to it.\r
+ */\r
+#define USB_INTSTAT_EP0OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP0OUT_SHIFT)) & USB_INTSTAT_EP0OUT_MASK)\r
+#define USB_INTSTAT_EP0IN_MASK (0x2U)\r
+#define USB_INTSTAT_EP0IN_SHIFT (1U)\r
+/*! EP0IN - Interrupt status register bit for the Control EP0 IN direction. This bit will be set if\r
+ * NBytes transitions to zero or the skip bit is set by software. If the IntOnNAK_CI is set, this\r
+ * bit will also be set when a NAK is transmitted for the Control EP0 IN direction. Software can\r
+ * clear this bit by writing a one to it.\r
+ */\r
+#define USB_INTSTAT_EP0IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP0IN_SHIFT)) & USB_INTSTAT_EP0IN_MASK)\r
+#define USB_INTSTAT_EP1OUT_MASK (0x4U)\r
+#define USB_INTSTAT_EP1OUT_SHIFT (2U)\r
+/*! EP1OUT - Interrupt status register bit for the EP1 OUT direction. This bit will be set if the\r
+ * corresponding Active bit is cleared by HW. This is done in case the programmed NBytes\r
+ * transitions to zero or the skip bit is set by software. If the IntOnNAK_AO is set, this bit will also be\r
+ * set when a NAK is transmitted for the EP1 OUT direction. Software can clear this bit by\r
+ * writing a one to it.\r
+ */\r
+#define USB_INTSTAT_EP1OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP1OUT_SHIFT)) & USB_INTSTAT_EP1OUT_MASK)\r
+#define USB_INTSTAT_EP1IN_MASK (0x8U)\r
+#define USB_INTSTAT_EP1IN_SHIFT (3U)\r
+/*! EP1IN - Interrupt status register bit for the EP1 IN direction. This bit will be set if the\r
+ * corresponding Active bit is cleared by HW. This is done in case the programmed NBytes transitions\r
+ * to zero or the skip bit is set by software. If the IntOnNAK_AI is set, this bit will also be\r
+ * set when a NAK is transmitted for the EP1 IN direction. Software can clear this bit by writing\r
+ * a one to it.\r
+ */\r
+#define USB_INTSTAT_EP1IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP1IN_SHIFT)) & USB_INTSTAT_EP1IN_MASK)\r
+#define USB_INTSTAT_EP2OUT_MASK (0x10U)\r
+#define USB_INTSTAT_EP2OUT_SHIFT (4U)\r
+/*! EP2OUT - Interrupt status register bit for the EP2 OUT direction. This bit will be set if the\r
+ * corresponding Active bit is cleared by HW. This is done in case the programmed NBytes\r
+ * transitions to zero or the skip bit is set by software. If the IntOnNAK_AO is set, this bit will also be\r
+ * set when a NAK is transmitted for the EP2 OUT direction. Software can clear this bit by\r
+ * writing a one to it.\r
+ */\r
+#define USB_INTSTAT_EP2OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP2OUT_SHIFT)) & USB_INTSTAT_EP2OUT_MASK)\r
+#define USB_INTSTAT_EP2IN_MASK (0x20U)\r
+#define USB_INTSTAT_EP2IN_SHIFT (5U)\r
+/*! EP2IN - Interrupt status register bit for the EP2 IN direction. This bit will be set if the\r
+ * corresponding Active bit is cleared by HW. This is done in case the programmed NBytes transitions\r
+ * to zero or the skip bit is set by software. If the IntOnNAK_AI is set, this bit will also be\r
+ * set when a NAK is transmitted for the EP2 IN direction. Software can clear this bit by writing\r
+ * a one to it.\r
+ */\r
+#define USB_INTSTAT_EP2IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP2IN_SHIFT)) & USB_INTSTAT_EP2IN_MASK)\r
+#define USB_INTSTAT_EP3OUT_MASK (0x40U)\r
+#define USB_INTSTAT_EP3OUT_SHIFT (6U)\r
+/*! EP3OUT - Interrupt status register bit for the EP3 OUT direction. This bit will be set if the\r
+ * corresponding Active bit is cleared by HW. This is done in case the programmed NBytes\r
+ * transitions to zero or the skip bit is set by software. If the IntOnNAK_AO is set, this bit will also be\r
+ * set when a NAK is transmitted for the EP3 OUT direction. Software can clear this bit by\r
+ * writing a one to it.\r
+ */\r
+#define USB_INTSTAT_EP3OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP3OUT_SHIFT)) & USB_INTSTAT_EP3OUT_MASK)\r
+#define USB_INTSTAT_EP3IN_MASK (0x80U)\r
+#define USB_INTSTAT_EP3IN_SHIFT (7U)\r
+/*! EP3IN - Interrupt status register bit for the EP3 IN direction. This bit will be set if the\r
+ * corresponding Active bit is cleared by HW. This is done in case the programmed NBytes transitions\r
+ * to zero or the skip bit is set by software. If the IntOnNAK_AI is set, this bit will also be\r
+ * set when a NAK is transmitted for the EP3 IN direction. Software can clear this bit by writing\r
+ * a one to it.\r
+ */\r
+#define USB_INTSTAT_EP3IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP3IN_SHIFT)) & USB_INTSTAT_EP3IN_MASK)\r
+#define USB_INTSTAT_EP4OUT_MASK (0x100U)\r
+#define USB_INTSTAT_EP4OUT_SHIFT (8U)\r
+/*! EP4OUT - Interrupt status register bit for the EP4 OUT direction. This bit will be set if the\r
+ * corresponding Active bit is cleared by HW. This is done in case the programmed NBytes\r
+ * transitions to zero or the skip bit is set by software. If the IntOnNAK_AO is set, this bit will also be\r
+ * set when a NAK is transmitted for the EP4 OUT direction. Software can clear this bit by\r
+ * writing a one to it.\r
+ */\r
+#define USB_INTSTAT_EP4OUT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP4OUT_SHIFT)) & USB_INTSTAT_EP4OUT_MASK)\r
+#define USB_INTSTAT_EP4IN_MASK (0x200U)\r
+#define USB_INTSTAT_EP4IN_SHIFT (9U)\r
+/*! EP4IN - Interrupt status register bit for the EP4 IN direction. This bit will be set if the\r
+ * corresponding Active bit is cleared by HW. This is done in case the programmed NBytes transitions\r
+ * to zero or the skip bit is set by software. If the IntOnNAK_AI is set, this bit will also be\r
+ * set when a NAK is transmitted for the EP4 IN direction. Software can clear this bit by writing\r
+ * a one to it.\r
+ */\r
+#define USB_INTSTAT_EP4IN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_EP4IN_SHIFT)) & USB_INTSTAT_EP4IN_MASK)\r
+#define USB_INTSTAT_FRAME_INT_MASK (0x40000000U)\r
+#define USB_INTSTAT_FRAME_INT_SHIFT (30U)\r
+/*! FRAME_INT - Frame interrupt. This bit is set to one every millisecond when the VbusDebounced bit\r
+ * and the DCON bit are set. This bit can be used by software when handling isochronous\r
+ * endpoints. Software can clear this bit by writing a one to it.\r
+ */\r
+#define USB_INTSTAT_FRAME_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_FRAME_INT_SHIFT)) & USB_INTSTAT_FRAME_INT_MASK)\r
+#define USB_INTSTAT_DEV_INT_MASK (0x80000000U)\r
+#define USB_INTSTAT_DEV_INT_SHIFT (31U)\r
+/*! DEV_INT - Device status interrupt. This bit is set by HW when one of the bits in the Device\r
+ * Status Change register are set. Software can clear this bit by writing a one to it.\r
+ */\r
+#define USB_INTSTAT_DEV_INT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSTAT_DEV_INT_SHIFT)) & USB_INTSTAT_DEV_INT_MASK)\r
/*! @} */\r
\r
/*! @name INTEN - USB interrupt enable register */\r
/*! @{ */\r
-#define USB_INTEN_EP_INT_EN_MASK (0x3FFU)\r
-#define USB_INTEN_EP_INT_EN_SHIFT (0U)\r
-#define USB_INTEN_EP_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTEN_EP_INT_EN_SHIFT)) & USB_INTEN_EP_INT_EN_MASK)\r
-#define USB_INTEN_FRAME_INT_EN_MASK (0x40000000U)\r
-#define USB_INTEN_FRAME_INT_EN_SHIFT (30U)\r
-#define USB_INTEN_FRAME_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTEN_FRAME_INT_EN_SHIFT)) & USB_INTEN_FRAME_INT_EN_MASK)\r
-#define USB_INTEN_DEV_INT_EN_MASK (0x80000000U)\r
-#define USB_INTEN_DEV_INT_EN_SHIFT (31U)\r
-#define USB_INTEN_DEV_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTEN_DEV_INT_EN_SHIFT)) & USB_INTEN_DEV_INT_EN_MASK)\r
+#define USB_INTEN_EP_INT_EN_MASK (0x3FFU)\r
+#define USB_INTEN_EP_INT_EN_SHIFT (0U)\r
+/*! EP_INT_EN - If this bit is set and the corresponding USB interrupt status bit is set, a HW\r
+ * interrupt is generated on the interrupt line indicated by the corresponding USB interrupt routing\r
+ * bit.\r
+ */\r
+#define USB_INTEN_EP_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << USB_INTEN_EP_INT_EN_SHIFT)) & USB_INTEN_EP_INT_EN_MASK)\r
+#define USB_INTEN_FRAME_INT_EN_MASK (0x40000000U)\r
+#define USB_INTEN_FRAME_INT_EN_SHIFT (30U)\r
+/*! FRAME_INT_EN - If this bit is set and the corresponding USB interrupt status bit is set, a HW\r
+ * interrupt is generated on the interrupt line indicated by the corresponding USB interrupt\r
+ * routing bit.\r
+ */\r
+#define USB_INTEN_FRAME_INT_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_INTEN_FRAME_INT_EN_SHIFT)) & USB_INTEN_FRAME_INT_EN_MASK)\r
+#define USB_INTEN_DEV_INT_EN_MASK (0x80000000U)\r
+#define USB_INTEN_DEV_INT_EN_SHIFT (31U)\r
+/*! DEV_INT_EN - If this bit is set and the corresponding USB interrupt status bit is set, a HW\r
+ * interrupt is generated on the interrupt line indicated by the corresponding USB interrupt routing\r
+ * bit.\r
+ */\r
+#define USB_INTEN_DEV_INT_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_INTEN_DEV_INT_EN_SHIFT)) & USB_INTEN_DEV_INT_EN_MASK)\r
/*! @} */\r
\r
/*! @name INTSETSTAT - USB set interrupt status register */\r
/*! @{ */\r
-#define USB_INTSETSTAT_EP_SET_INT_MASK (0x3FFU)\r
-#define USB_INTSETSTAT_EP_SET_INT_SHIFT (0U)\r
-#define USB_INTSETSTAT_EP_SET_INT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSETSTAT_EP_SET_INT_SHIFT)) & USB_INTSETSTAT_EP_SET_INT_MASK)\r
-#define USB_INTSETSTAT_FRAME_SET_INT_MASK (0x40000000U)\r
-#define USB_INTSETSTAT_FRAME_SET_INT_SHIFT (30U)\r
-#define USB_INTSETSTAT_FRAME_SET_INT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSETSTAT_FRAME_SET_INT_SHIFT)) & USB_INTSETSTAT_FRAME_SET_INT_MASK)\r
-#define USB_INTSETSTAT_DEV_SET_INT_MASK (0x80000000U)\r
-#define USB_INTSETSTAT_DEV_SET_INT_SHIFT (31U)\r
-#define USB_INTSETSTAT_DEV_SET_INT(x) (((uint32_t)(((uint32_t)(x)) << USB_INTSETSTAT_DEV_SET_INT_SHIFT)) & USB_INTSETSTAT_DEV_SET_INT_MASK)\r
+#define USB_INTSETSTAT_EP_SET_INT_MASK (0x3FFU)\r
+#define USB_INTSETSTAT_EP_SET_INT_SHIFT (0U)\r
+/*! EP_SET_INT - If software writes a one to one of these bits, the corresponding USB interrupt\r
+ * status bit is set. When this register is read, the same value as the USB interrupt status register\r
+ * is returned.\r
+ */\r
+#define USB_INTSETSTAT_EP_SET_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_INTSETSTAT_EP_SET_INT_SHIFT)) & USB_INTSETSTAT_EP_SET_INT_MASK)\r
+#define USB_INTSETSTAT_FRAME_SET_INT_MASK (0x40000000U)\r
+#define USB_INTSETSTAT_FRAME_SET_INT_SHIFT (30U)\r
+/*! FRAME_SET_INT - If software writes a one to one of these bits, the corresponding USB interrupt\r
+ * status bit is set. When this register is read, the same value as the USB interrupt status\r
+ * register is returned.\r
+ */\r
+#define USB_INTSETSTAT_FRAME_SET_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_INTSETSTAT_FRAME_SET_INT_SHIFT)) & USB_INTSETSTAT_FRAME_SET_INT_MASK)\r
+#define USB_INTSETSTAT_DEV_SET_INT_MASK (0x80000000U)\r
+#define USB_INTSETSTAT_DEV_SET_INT_SHIFT (31U)\r
+/*! DEV_SET_INT - If software writes a one to one of these bits, the corresponding USB interrupt\r
+ * status bit is set. When this register is read, the same value as the USB interrupt status\r
+ * register is returned.\r
+ */\r
+#define USB_INTSETSTAT_DEV_SET_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USB_INTSETSTAT_DEV_SET_INT_SHIFT)) & USB_INTSETSTAT_DEV_SET_INT_MASK)\r
/*! @} */\r
\r
/*! @name EPTOGGLE - USB Endpoint toggle register */\r
/*! @{ */\r
-#define USB_EPTOGGLE_TOGGLE_MASK (0x3FFU)\r
-#define USB_EPTOGGLE_TOGGLE_SHIFT (0U)\r
-#define USB_EPTOGGLE_TOGGLE(x) (((uint32_t)(((uint32_t)(x)) << USB_EPTOGGLE_TOGGLE_SHIFT)) & USB_EPTOGGLE_TOGGLE_MASK)\r
+#define USB_EPTOGGLE_TOGGLE_MASK (0x3FFU)\r
+#define USB_EPTOGGLE_TOGGLE_SHIFT (0U)\r
+/*! TOGGLE - Endpoint data toggle: This field indicates the current value of the data toggle for the corresponding\r
+ * endpoint.\r
+ */\r
+#define USB_EPTOGGLE_TOGGLE(x) (((uint32_t)(((uint32_t)(x)) << USB_EPTOGGLE_TOGGLE_SHIFT)) & USB_EPTOGGLE_TOGGLE_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group USB_Register_Masks */\r
\r
-\r
/* USB - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral USB0 base address */\r
- #define USB0_BASE (0x50084000u)\r
- /** Peripheral USB0 base address */\r
- #define USB0_BASE_NS (0x40084000u)\r
- /** Peripheral USB0 base pointer */\r
- #define USB0 ((USB_Type *)USB0_BASE)\r
- /** Peripheral USB0 base pointer */\r
- #define USB0_NS ((USB_Type *)USB0_BASE_NS)\r
- /** Array initializer of USB peripheral base addresses */\r
- #define USB_BASE_ADDRS { USB0_BASE }\r
- /** Array initializer of USB peripheral base pointers */\r
- #define USB_BASE_PTRS { USB0 }\r
- /** Array initializer of USB peripheral base addresses */\r
- #define USB_BASE_ADDRS_NS { USB0_BASE_NS }\r
- /** Array initializer of USB peripheral base pointers */\r
- #define USB_BASE_PTRS_NS { USB0_NS }\r
+/** Peripheral USB0 base address */\r
+#define USB0_BASE (0x50084000u)\r
+/** Peripheral USB0 base address */\r
+#define USB0_BASE_NS (0x40084000u)\r
+/** Peripheral USB0 base pointer */\r
+#define USB0 ((USB_Type *)USB0_BASE)\r
+/** Peripheral USB0 base pointer */\r
+#define USB0_NS ((USB_Type *)USB0_BASE_NS)\r
+/** Array initializer of USB peripheral base addresses */\r
+#define USB_BASE_ADDRS \\r
+ { \\r
+ USB0_BASE \\r
+ }\r
+/** Array initializer of USB peripheral base pointers */\r
+#define USB_BASE_PTRS \\r
+ { \\r
+ USB0 \\r
+ }\r
+/** Array initializer of USB peripheral base addresses */\r
+#define USB_BASE_ADDRS_NS \\r
+ { \\r
+ USB0_BASE_NS \\r
+ }\r
+/** Array initializer of USB peripheral base pointers */\r
+#define USB_BASE_PTRS_NS \\r
+ { \\r
+ USB0_NS \\r
+ }\r
#else\r
- /** Peripheral USB0 base address */\r
- #define USB0_BASE (0x40084000u)\r
- /** Peripheral USB0 base pointer */\r
- #define USB0 ((USB_Type *)USB0_BASE)\r
- /** Array initializer of USB peripheral base addresses */\r
- #define USB_BASE_ADDRS { USB0_BASE }\r
- /** Array initializer of USB peripheral base pointers */\r
- #define USB_BASE_PTRS { USB0 }\r
+/** Peripheral USB0 base address */\r
+#define USB0_BASE (0x40084000u)\r
+/** Peripheral USB0 base pointer */\r
+#define USB0 ((USB_Type *)USB0_BASE)\r
+/** Array initializer of USB peripheral base addresses */\r
+#define USB_BASE_ADDRS \\r
+ { \\r
+ USB0_BASE \\r
+ }\r
+/** Array initializer of USB peripheral base pointers */\r
+#define USB_BASE_PTRS \\r
+ { \\r
+ USB0 \\r
+ }\r
#endif\r
/** Interrupt vectors for the USB peripheral type */\r
-#define USB_IRQS { USB0_IRQn }\r
-#define USB_NEEDCLK_IRQS { USB0_NEEDCLK_IRQn }\r
+#define USB_IRQS \\r
+ { \\r
+ USB0_IRQn \\r
+ }\r
+#define USB_NEEDCLK_IRQS \\r
+ { \\r
+ USB0_NEEDCLK_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group USB_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- USBFSH Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** USBFSH - Register Layout Typedef */\r
-typedef struct {\r
- __I uint32_t HCREVISION; /**< BCD representation of the version of the HCI specification that is implemented by the Host Controller (HC), offset: 0x0 */\r
- __IO uint32_t HCCONTROL; /**< Defines the operating modes of the HC, offset: 0x4 */\r
- __IO uint32_t HCCOMMANDSTATUS; /**< This register is used to receive the commands from the Host Controller Driver (HCD), offset: 0x8 */\r
- __IO uint32_t HCINTERRUPTSTATUS; /**< Indicates the status on various events that cause hardware interrupts by setting the appropriate bits, offset: 0xC */\r
- __IO uint32_t HCINTERRUPTENABLE; /**< Controls the bits in the HcInterruptStatus register and indicates which events will generate a hardware interrupt, offset: 0x10 */\r
- __IO uint32_t HCINTERRUPTDISABLE; /**< The bits in this register are used to disable corresponding bits in the HCInterruptStatus register and in turn disable that event leading to hardware interrupt, offset: 0x14 */\r
- __IO uint32_t HCHCCA; /**< Contains the physical address of the host controller communication area, offset: 0x18 */\r
- __IO uint32_t HCPERIODCURRENTED; /**< Contains the physical address of the current isochronous or interrupt endpoint descriptor, offset: 0x1C */\r
- __IO uint32_t HCCONTROLHEADED; /**< Contains the physical address of the first endpoint descriptor of the control list, offset: 0x20 */\r
- __IO uint32_t HCCONTROLCURRENTED; /**< Contains the physical address of the current endpoint descriptor of the control list, offset: 0x24 */\r
- __IO uint32_t HCBULKHEADED; /**< Contains the physical address of the first endpoint descriptor of the bulk list, offset: 0x28 */\r
- __IO uint32_t HCBULKCURRENTED; /**< Contains the physical address of the current endpoint descriptor of the bulk list, offset: 0x2C */\r
- __IO uint32_t HCDONEHEAD; /**< Contains the physical address of the last transfer descriptor added to the 'Done' queue, offset: 0x30 */\r
- __IO uint32_t HCFMINTERVAL; /**< Defines the bit time interval in a frame and the full speed maximum packet size which would not cause an overrun, offset: 0x34 */\r
- __IO uint32_t HCFMREMAINING; /**< A 14-bit counter showing the bit time remaining in the current frame, offset: 0x38 */\r
- __IO uint32_t HCFMNUMBER; /**< Contains a 16-bit counter and provides the timing reference among events happening in the HC and the HCD, offset: 0x3C */\r
- __IO uint32_t HCPERIODICSTART; /**< Contains a programmable 14-bit value which determines the earliest time HC should start processing a periodic list, offset: 0x40 */\r
- __IO uint32_t HCLSTHRESHOLD; /**< Contains 11-bit value which is used by the HC to determine whether to commit to transfer a maximum of 8-byte LS packet before EOF, offset: 0x44 */\r
- __IO uint32_t HCRHDESCRIPTORA; /**< First of the two registers which describes the characteristics of the root hub, offset: 0x48 */\r
- __IO uint32_t HCRHDESCRIPTORB; /**< Second of the two registers which describes the characteristics of the Root Hub, offset: 0x4C */\r
- __IO uint32_t HCRHSTATUS; /**< This register is divided into two parts, offset: 0x50 */\r
- __IO uint32_t HCRHPORTSTATUS; /**< Controls and reports the port events on a per-port basis, offset: 0x54 */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t PORTMODE; /**< Controls the port if it is attached to the host block or the device block, offset: 0x5C */\r
+typedef struct\r
+{\r
+ __I uint32_t HCREVISION; /**< BCD representation of the version of the HCI specification that is implemented by the\r
+ Host Controller (HC), offset: 0x0 */\r
+ __IO uint32_t HCCONTROL; /**< Defines the operating modes of the HC, offset: 0x4 */\r
+ __IO uint32_t HCCOMMANDSTATUS; /**< This register is used to receive the commands from the Host Controller Driver\r
+ (HCD), offset: 0x8 */\r
+ __IO uint32_t HCINTERRUPTSTATUS; /**< Indicates the status on various events that cause hardware interrupts by\r
+ setting the appropriate bits, offset: 0xC */\r
+ __IO uint32_t HCINTERRUPTENABLE; /**< Controls the bits in the HcInterruptStatus register and indicates which events\r
+ will generate a hardware interrupt, offset: 0x10 */\r
+ __IO uint32_t HCINTERRUPTDISABLE; /**< The bits in this register are used to disable corresponding bits in the\r
+ HCInterruptStatus register and in turn disable that event leading to hardware\r
+ interrupt, offset: 0x14 */\r
+ __IO uint32_t HCHCCA; /**< Contains the physical address of the host controller communication area, offset: 0x18 */\r
+ __I uint32_t HCPERIODCURRENTED; /**< Contains the physical address of the current isochronous or interrupt endpoint\r
+ descriptor, offset: 0x1C */\r
+ __IO uint32_t HCCONTROLHEADED; /**< Contains the physical address of the first endpoint descriptor of the control\r
+ list, offset: 0x20 */\r
+ __IO uint32_t HCCONTROLCURRENTED; /**< Contains the physical address of the current endpoint descriptor of the\r
+ control list, offset: 0x24 */\r
+ __IO uint32_t HCBULKHEADED; /**< Contains the physical address of the first endpoint descriptor of the bulk list,\r
+ offset: 0x28 */\r
+ __IO uint32_t HCBULKCURRENTED; /**< Contains the physical address of the current endpoint descriptor of the bulk\r
+ list, offset: 0x2C */\r
+ __I uint32_t HCDONEHEAD; /**< Contains the physical address of the last transfer descriptor added to the 'Done'\r
+ queue, offset: 0x30 */\r
+ __IO uint32_t HCFMINTERVAL; /**< Defines the bit time interval in a frame and the full speed maximum packet size\r
+ which would not cause an overrun, offset: 0x34 */\r
+ __I uint32_t\r
+ HCFMREMAINING; /**< A 14-bit counter showing the bit time remaining in the current frame, offset: 0x38 */\r
+ __I uint32_t HCFMNUMBER; /**< Contains a 16-bit counter and provides the timing reference among events happening in\r
+ the HC and the HCD, offset: 0x3C */\r
+ __IO uint32_t HCPERIODICSTART; /**< Contains a programmable 14-bit value which determines the earliest time HC\r
+ should start processing a periodic list, offset: 0x40 */\r
+ __IO uint32_t HCLSTHRESHOLD; /**< Contains 11-bit value which is used by the HC to determine whether to commit to\r
+ transfer a maximum of 8-byte LS packet before EOF, offset: 0x44 */\r
+ __IO uint32_t HCRHDESCRIPTORA; /**< First of the two registers which describes the characteristics of the root hub,\r
+ offset: 0x48 */\r
+ __IO uint32_t HCRHDESCRIPTORB; /**< Second of the two registers which describes the characteristics of the Root Hub,\r
+ offset: 0x4C */\r
+ __IO uint32_t HCRHSTATUS; /**< This register is divided into two parts, offset: 0x50 */\r
+ __IO uint32_t HCRHPORTSTATUS; /**< Controls and reports the port events on a per-port basis, offset: 0x54 */\r
+ uint8_t RESERVED_0[4];\r
+ __IO uint32_t\r
+ PORTMODE; /**< Controls the port if it is attached to the host block or the device block, offset: 0x5C */\r
} USBFSH_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name HCREVISION - BCD representation of the version of the HCI specification that is implemented by the Host Controller (HC) */\r
+/*! @name HCREVISION - BCD representation of the version of the HCI specification that is implemented by the Host\r
+ * Controller (HC) */\r
/*! @{ */\r
-#define USBFSH_HCREVISION_REV_MASK (0xFFU)\r
-#define USBFSH_HCREVISION_REV_SHIFT (0U)\r
-#define USBFSH_HCREVISION_REV(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCREVISION_REV_SHIFT)) & USBFSH_HCREVISION_REV_MASK)\r
+#define USBFSH_HCREVISION_REV_MASK (0xFFU)\r
+#define USBFSH_HCREVISION_REV_SHIFT (0U)\r
+/*! REV - Revision.\r
+ */\r
+#define USBFSH_HCREVISION_REV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCREVISION_REV_SHIFT)) & USBFSH_HCREVISION_REV_MASK)\r
/*! @} */\r
\r
/*! @name HCCONTROL - Defines the operating modes of the HC */\r
/*! @{ */\r
-#define USBFSH_HCCONTROL_CBSR_MASK (0x3U)\r
-#define USBFSH_HCCONTROL_CBSR_SHIFT (0U)\r
-#define USBFSH_HCCONTROL_CBSR(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_CBSR_SHIFT)) & USBFSH_HCCONTROL_CBSR_MASK)\r
-#define USBFSH_HCCONTROL_PLE_MASK (0x4U)\r
-#define USBFSH_HCCONTROL_PLE_SHIFT (2U)\r
-#define USBFSH_HCCONTROL_PLE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_PLE_SHIFT)) & USBFSH_HCCONTROL_PLE_MASK)\r
-#define USBFSH_HCCONTROL_IE_MASK (0x8U)\r
-#define USBFSH_HCCONTROL_IE_SHIFT (3U)\r
-#define USBFSH_HCCONTROL_IE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_IE_SHIFT)) & USBFSH_HCCONTROL_IE_MASK)\r
-#define USBFSH_HCCONTROL_CLE_MASK (0x10U)\r
-#define USBFSH_HCCONTROL_CLE_SHIFT (4U)\r
-#define USBFSH_HCCONTROL_CLE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_CLE_SHIFT)) & USBFSH_HCCONTROL_CLE_MASK)\r
-#define USBFSH_HCCONTROL_BLE_MASK (0x20U)\r
-#define USBFSH_HCCONTROL_BLE_SHIFT (5U)\r
-#define USBFSH_HCCONTROL_BLE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_BLE_SHIFT)) & USBFSH_HCCONTROL_BLE_MASK)\r
-#define USBFSH_HCCONTROL_HCFS_MASK (0xC0U)\r
-#define USBFSH_HCCONTROL_HCFS_SHIFT (6U)\r
-#define USBFSH_HCCONTROL_HCFS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_HCFS_SHIFT)) & USBFSH_HCCONTROL_HCFS_MASK)\r
-#define USBFSH_HCCONTROL_IR_MASK (0x100U)\r
-#define USBFSH_HCCONTROL_IR_SHIFT (8U)\r
-#define USBFSH_HCCONTROL_IR(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_IR_SHIFT)) & USBFSH_HCCONTROL_IR_MASK)\r
-#define USBFSH_HCCONTROL_RWC_MASK (0x200U)\r
-#define USBFSH_HCCONTROL_RWC_SHIFT (9U)\r
-#define USBFSH_HCCONTROL_RWC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_RWC_SHIFT)) & USBFSH_HCCONTROL_RWC_MASK)\r
-#define USBFSH_HCCONTROL_RWE_MASK (0x400U)\r
-#define USBFSH_HCCONTROL_RWE_SHIFT (10U)\r
-#define USBFSH_HCCONTROL_RWE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_RWE_SHIFT)) & USBFSH_HCCONTROL_RWE_MASK)\r
+#define USBFSH_HCCONTROL_CBSR_MASK (0x3U)\r
+#define USBFSH_HCCONTROL_CBSR_SHIFT (0U)\r
+/*! CBSR - ControlBulkServiceRatio.\r
+ */\r
+#define USBFSH_HCCONTROL_CBSR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_CBSR_SHIFT)) & USBFSH_HCCONTROL_CBSR_MASK)\r
+#define USBFSH_HCCONTROL_PLE_MASK (0x4U)\r
+#define USBFSH_HCCONTROL_PLE_SHIFT (2U)\r
+/*! PLE - PeriodicListEnable.\r
+ */\r
+#define USBFSH_HCCONTROL_PLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_PLE_SHIFT)) & USBFSH_HCCONTROL_PLE_MASK)\r
+#define USBFSH_HCCONTROL_IE_MASK (0x8U)\r
+#define USBFSH_HCCONTROL_IE_SHIFT (3U)\r
+/*! IE - IsochronousEnable.\r
+ */\r
+#define USBFSH_HCCONTROL_IE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_IE_SHIFT)) & USBFSH_HCCONTROL_IE_MASK)\r
+#define USBFSH_HCCONTROL_CLE_MASK (0x10U)\r
+#define USBFSH_HCCONTROL_CLE_SHIFT (4U)\r
+/*! CLE - ControlListEnable.\r
+ */\r
+#define USBFSH_HCCONTROL_CLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_CLE_SHIFT)) & USBFSH_HCCONTROL_CLE_MASK)\r
+#define USBFSH_HCCONTROL_BLE_MASK (0x20U)\r
+#define USBFSH_HCCONTROL_BLE_SHIFT (5U)\r
+/*! BLE - BulkListEnable This bit is set to enable the processing of the Bulk list in the next Frame.\r
+ */\r
+#define USBFSH_HCCONTROL_BLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_BLE_SHIFT)) & USBFSH_HCCONTROL_BLE_MASK)\r
+#define USBFSH_HCCONTROL_HCFS_MASK (0xC0U)\r
+#define USBFSH_HCCONTROL_HCFS_SHIFT (6U)\r
+/*! HCFS - HostControllerFunctionalState for USB 00b: USBRESET 01b: USBRESUME 10b: USBOPERATIONAL\r
+ * 11b: USBSUSPEND A transition to USBOPERATIONAL from another state causes SOFgeneration to begin\r
+ * 1 ms later.\r
+ */\r
+#define USBFSH_HCCONTROL_HCFS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_HCFS_SHIFT)) & USBFSH_HCCONTROL_HCFS_MASK)\r
+#define USBFSH_HCCONTROL_IR_MASK (0x100U)\r
+#define USBFSH_HCCONTROL_IR_SHIFT (8U)\r
+/*! IR - InterruptRouting This bit determines the routing of interrupts generated by events registered in\r
+ * HcInterruptStatus.\r
+ */\r
+#define USBFSH_HCCONTROL_IR(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_IR_SHIFT)) & USBFSH_HCCONTROL_IR_MASK)\r
+#define USBFSH_HCCONTROL_RWC_MASK (0x200U)\r
+#define USBFSH_HCCONTROL_RWC_SHIFT (9U)\r
+/*! RWC - RemoteWakeupConnected This bit indicates whether HC supports remote wake-up signaling.\r
+ */\r
+#define USBFSH_HCCONTROL_RWC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_RWC_SHIFT)) & USBFSH_HCCONTROL_RWC_MASK)\r
+#define USBFSH_HCCONTROL_RWE_MASK (0x400U)\r
+#define USBFSH_HCCONTROL_RWE_SHIFT (10U)\r
+/*! RWE - RemoteWakeupEnable This bit is used by HCD to enable or disable the remote wake-up feature\r
+ * upon the detection of upstream resume signaling.\r
+ */\r
+#define USBFSH_HCCONTROL_RWE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROL_RWE_SHIFT)) & USBFSH_HCCONTROL_RWE_MASK)\r
/*! @} */\r
\r
/*! @name HCCOMMANDSTATUS - This register is used to receive the commands from the Host Controller Driver (HCD) */\r
/*! @{ */\r
-#define USBFSH_HCCOMMANDSTATUS_HCR_MASK (0x1U)\r
-#define USBFSH_HCCOMMANDSTATUS_HCR_SHIFT (0U)\r
-#define USBFSH_HCCOMMANDSTATUS_HCR(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_HCR_SHIFT)) & USBFSH_HCCOMMANDSTATUS_HCR_MASK)\r
-#define USBFSH_HCCOMMANDSTATUS_CLF_MASK (0x2U)\r
-#define USBFSH_HCCOMMANDSTATUS_CLF_SHIFT (1U)\r
-#define USBFSH_HCCOMMANDSTATUS_CLF(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_CLF_SHIFT)) & USBFSH_HCCOMMANDSTATUS_CLF_MASK)\r
-#define USBFSH_HCCOMMANDSTATUS_BLF_MASK (0x4U)\r
-#define USBFSH_HCCOMMANDSTATUS_BLF_SHIFT (2U)\r
-#define USBFSH_HCCOMMANDSTATUS_BLF(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_BLF_SHIFT)) & USBFSH_HCCOMMANDSTATUS_BLF_MASK)\r
-#define USBFSH_HCCOMMANDSTATUS_OCR_MASK (0x8U)\r
-#define USBFSH_HCCOMMANDSTATUS_OCR_SHIFT (3U)\r
-#define USBFSH_HCCOMMANDSTATUS_OCR(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_OCR_SHIFT)) & USBFSH_HCCOMMANDSTATUS_OCR_MASK)\r
-#define USBFSH_HCCOMMANDSTATUS_SOC_MASK (0xC0U)\r
-#define USBFSH_HCCOMMANDSTATUS_SOC_SHIFT (6U)\r
-#define USBFSH_HCCOMMANDSTATUS_SOC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_SOC_SHIFT)) & USBFSH_HCCOMMANDSTATUS_SOC_MASK)\r
-/*! @} */\r
-\r
-/*! @name HCINTERRUPTSTATUS - Indicates the status on various events that cause hardware interrupts by setting the appropriate bits */\r
-/*! @{ */\r
-#define USBFSH_HCINTERRUPTSTATUS_SO_MASK (0x1U)\r
-#define USBFSH_HCINTERRUPTSTATUS_SO_SHIFT (0U)\r
-#define USBFSH_HCINTERRUPTSTATUS_SO(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_SO_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_SO_MASK)\r
-#define USBFSH_HCINTERRUPTSTATUS_WDH_MASK (0x2U)\r
-#define USBFSH_HCINTERRUPTSTATUS_WDH_SHIFT (1U)\r
-#define USBFSH_HCINTERRUPTSTATUS_WDH(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_WDH_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_WDH_MASK)\r
-#define USBFSH_HCINTERRUPTSTATUS_SF_MASK (0x4U)\r
-#define USBFSH_HCINTERRUPTSTATUS_SF_SHIFT (2U)\r
-#define USBFSH_HCINTERRUPTSTATUS_SF(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_SF_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_SF_MASK)\r
-#define USBFSH_HCINTERRUPTSTATUS_RD_MASK (0x8U)\r
-#define USBFSH_HCINTERRUPTSTATUS_RD_SHIFT (3U)\r
-#define USBFSH_HCINTERRUPTSTATUS_RD(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_RD_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_RD_MASK)\r
-#define USBFSH_HCINTERRUPTSTATUS_UE_MASK (0x10U)\r
-#define USBFSH_HCINTERRUPTSTATUS_UE_SHIFT (4U)\r
-#define USBFSH_HCINTERRUPTSTATUS_UE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_UE_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_UE_MASK)\r
-#define USBFSH_HCINTERRUPTSTATUS_FNO_MASK (0x20U)\r
-#define USBFSH_HCINTERRUPTSTATUS_FNO_SHIFT (5U)\r
-#define USBFSH_HCINTERRUPTSTATUS_FNO(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_FNO_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_FNO_MASK)\r
-#define USBFSH_HCINTERRUPTSTATUS_RHSC_MASK (0x40U)\r
-#define USBFSH_HCINTERRUPTSTATUS_RHSC_SHIFT (6U)\r
-#define USBFSH_HCINTERRUPTSTATUS_RHSC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_RHSC_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_RHSC_MASK)\r
-#define USBFSH_HCINTERRUPTSTATUS_OC_MASK (0xFFFFFC00U)\r
-#define USBFSH_HCINTERRUPTSTATUS_OC_SHIFT (10U)\r
-#define USBFSH_HCINTERRUPTSTATUS_OC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_OC_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_OC_MASK)\r
-/*! @} */\r
-\r
-/*! @name HCINTERRUPTENABLE - Controls the bits in the HcInterruptStatus register and indicates which events will generate a hardware interrupt */\r
-/*! @{ */\r
-#define USBFSH_HCINTERRUPTENABLE_SO_MASK (0x1U)\r
-#define USBFSH_HCINTERRUPTENABLE_SO_SHIFT (0U)\r
-#define USBFSH_HCINTERRUPTENABLE_SO(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_SO_SHIFT)) & USBFSH_HCINTERRUPTENABLE_SO_MASK)\r
-#define USBFSH_HCINTERRUPTENABLE_WDH_MASK (0x2U)\r
-#define USBFSH_HCINTERRUPTENABLE_WDH_SHIFT (1U)\r
-#define USBFSH_HCINTERRUPTENABLE_WDH(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_WDH_SHIFT)) & USBFSH_HCINTERRUPTENABLE_WDH_MASK)\r
-#define USBFSH_HCINTERRUPTENABLE_SF_MASK (0x4U)\r
-#define USBFSH_HCINTERRUPTENABLE_SF_SHIFT (2U)\r
-#define USBFSH_HCINTERRUPTENABLE_SF(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_SF_SHIFT)) & USBFSH_HCINTERRUPTENABLE_SF_MASK)\r
-#define USBFSH_HCINTERRUPTENABLE_RD_MASK (0x8U)\r
-#define USBFSH_HCINTERRUPTENABLE_RD_SHIFT (3U)\r
-#define USBFSH_HCINTERRUPTENABLE_RD(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_RD_SHIFT)) & USBFSH_HCINTERRUPTENABLE_RD_MASK)\r
-#define USBFSH_HCINTERRUPTENABLE_UE_MASK (0x10U)\r
-#define USBFSH_HCINTERRUPTENABLE_UE_SHIFT (4U)\r
-#define USBFSH_HCINTERRUPTENABLE_UE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_UE_SHIFT)) & USBFSH_HCINTERRUPTENABLE_UE_MASK)\r
-#define USBFSH_HCINTERRUPTENABLE_FNO_MASK (0x20U)\r
-#define USBFSH_HCINTERRUPTENABLE_FNO_SHIFT (5U)\r
-#define USBFSH_HCINTERRUPTENABLE_FNO(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_FNO_SHIFT)) & USBFSH_HCINTERRUPTENABLE_FNO_MASK)\r
-#define USBFSH_HCINTERRUPTENABLE_RHSC_MASK (0x40U)\r
-#define USBFSH_HCINTERRUPTENABLE_RHSC_SHIFT (6U)\r
-#define USBFSH_HCINTERRUPTENABLE_RHSC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_RHSC_SHIFT)) & USBFSH_HCINTERRUPTENABLE_RHSC_MASK)\r
-#define USBFSH_HCINTERRUPTENABLE_OC_MASK (0x40000000U)\r
-#define USBFSH_HCINTERRUPTENABLE_OC_SHIFT (30U)\r
-#define USBFSH_HCINTERRUPTENABLE_OC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_OC_SHIFT)) & USBFSH_HCINTERRUPTENABLE_OC_MASK)\r
-#define USBFSH_HCINTERRUPTENABLE_MIE_MASK (0x80000000U)\r
-#define USBFSH_HCINTERRUPTENABLE_MIE_SHIFT (31U)\r
-#define USBFSH_HCINTERRUPTENABLE_MIE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_MIE_SHIFT)) & USBFSH_HCINTERRUPTENABLE_MIE_MASK)\r
-/*! @} */\r
-\r
-/*! @name HCINTERRUPTDISABLE - The bits in this register are used to disable corresponding bits in the HCInterruptStatus register and in turn disable that event leading to hardware interrupt */\r
-/*! @{ */\r
-#define USBFSH_HCINTERRUPTDISABLE_SO_MASK (0x1U)\r
-#define USBFSH_HCINTERRUPTDISABLE_SO_SHIFT (0U)\r
-#define USBFSH_HCINTERRUPTDISABLE_SO(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_SO_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_SO_MASK)\r
-#define USBFSH_HCINTERRUPTDISABLE_WDH_MASK (0x2U)\r
-#define USBFSH_HCINTERRUPTDISABLE_WDH_SHIFT (1U)\r
-#define USBFSH_HCINTERRUPTDISABLE_WDH(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_WDH_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_WDH_MASK)\r
-#define USBFSH_HCINTERRUPTDISABLE_SF_MASK (0x4U)\r
-#define USBFSH_HCINTERRUPTDISABLE_SF_SHIFT (2U)\r
-#define USBFSH_HCINTERRUPTDISABLE_SF(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_SF_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_SF_MASK)\r
-#define USBFSH_HCINTERRUPTDISABLE_RD_MASK (0x8U)\r
-#define USBFSH_HCINTERRUPTDISABLE_RD_SHIFT (3U)\r
-#define USBFSH_HCINTERRUPTDISABLE_RD(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_RD_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_RD_MASK)\r
-#define USBFSH_HCINTERRUPTDISABLE_UE_MASK (0x10U)\r
-#define USBFSH_HCINTERRUPTDISABLE_UE_SHIFT (4U)\r
-#define USBFSH_HCINTERRUPTDISABLE_UE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_UE_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_UE_MASK)\r
-#define USBFSH_HCINTERRUPTDISABLE_FNO_MASK (0x20U)\r
-#define USBFSH_HCINTERRUPTDISABLE_FNO_SHIFT (5U)\r
-#define USBFSH_HCINTERRUPTDISABLE_FNO(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_FNO_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_FNO_MASK)\r
-#define USBFSH_HCINTERRUPTDISABLE_RHSC_MASK (0x40U)\r
-#define USBFSH_HCINTERRUPTDISABLE_RHSC_SHIFT (6U)\r
-#define USBFSH_HCINTERRUPTDISABLE_RHSC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_RHSC_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_RHSC_MASK)\r
-#define USBFSH_HCINTERRUPTDISABLE_OC_MASK (0x40000000U)\r
-#define USBFSH_HCINTERRUPTDISABLE_OC_SHIFT (30U)\r
-#define USBFSH_HCINTERRUPTDISABLE_OC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_OC_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_OC_MASK)\r
-#define USBFSH_HCINTERRUPTDISABLE_MIE_MASK (0x80000000U)\r
-#define USBFSH_HCINTERRUPTDISABLE_MIE_SHIFT (31U)\r
-#define USBFSH_HCINTERRUPTDISABLE_MIE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_MIE_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_MIE_MASK)\r
+#define USBFSH_HCCOMMANDSTATUS_HCR_MASK (0x1U)\r
+#define USBFSH_HCCOMMANDSTATUS_HCR_SHIFT (0U)\r
+/*! HCR - HostControllerReset This bit is set by HCD to initiate a software reset of HC.\r
+ */\r
+#define USBFSH_HCCOMMANDSTATUS_HCR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_HCR_SHIFT)) & USBFSH_HCCOMMANDSTATUS_HCR_MASK)\r
+#define USBFSH_HCCOMMANDSTATUS_CLF_MASK (0x2U)\r
+#define USBFSH_HCCOMMANDSTATUS_CLF_SHIFT (1U)\r
+/*! CLF - ControlListFilled This bit is used to indicate whether there are any TDs on the Control list.\r
+ */\r
+#define USBFSH_HCCOMMANDSTATUS_CLF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_CLF_SHIFT)) & USBFSH_HCCOMMANDSTATUS_CLF_MASK)\r
+#define USBFSH_HCCOMMANDSTATUS_BLF_MASK (0x4U)\r
+#define USBFSH_HCCOMMANDSTATUS_BLF_SHIFT (2U)\r
+/*! BLF - BulkListFilled This bit is used to indicate whether there are any TDs on the Bulk list.\r
+ */\r
+#define USBFSH_HCCOMMANDSTATUS_BLF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_BLF_SHIFT)) & USBFSH_HCCOMMANDSTATUS_BLF_MASK)\r
+#define USBFSH_HCCOMMANDSTATUS_OCR_MASK (0x8U)\r
+#define USBFSH_HCCOMMANDSTATUS_OCR_SHIFT (3U)\r
+/*! OCR - OwnershipChangeRequest This bit is set by an OS HCD to request a change of control of the HC.\r
+ */\r
+#define USBFSH_HCCOMMANDSTATUS_OCR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_OCR_SHIFT)) & USBFSH_HCCOMMANDSTATUS_OCR_MASK)\r
+#define USBFSH_HCCOMMANDSTATUS_SOC_MASK (0xC0U)\r
+#define USBFSH_HCCOMMANDSTATUS_SOC_SHIFT (6U)\r
+/*! SOC - SchedulingOverrunCount These bits are incremented on each scheduling overrun error.\r
+ */\r
+#define USBFSH_HCCOMMANDSTATUS_SOC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCOMMANDSTATUS_SOC_SHIFT)) & USBFSH_HCCOMMANDSTATUS_SOC_MASK)\r
+/*! @} */\r
+\r
+/*! @name HCINTERRUPTSTATUS - Indicates the status on various events that cause hardware interrupts by setting the\r
+ * appropriate bits */\r
+/*! @{ */\r
+#define USBFSH_HCINTERRUPTSTATUS_SO_MASK (0x1U)\r
+#define USBFSH_HCINTERRUPTSTATUS_SO_SHIFT (0U)\r
+/*! SO - SchedulingOverrun This bit is set when the USB schedule for the current Frame overruns and\r
+ * after the update of HccaFrameNumber.\r
+ */\r
+#define USBFSH_HCINTERRUPTSTATUS_SO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_SO_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_SO_MASK)\r
+#define USBFSH_HCINTERRUPTSTATUS_WDH_MASK (0x2U)\r
+#define USBFSH_HCINTERRUPTSTATUS_WDH_SHIFT (1U)\r
+/*! WDH - WritebackDoneHead This bit is set immediately after HC has written HcDoneHead to HccaDoneHead.\r
+ */\r
+#define USBFSH_HCINTERRUPTSTATUS_WDH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_WDH_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_WDH_MASK)\r
+#define USBFSH_HCINTERRUPTSTATUS_SF_MASK (0x4U)\r
+#define USBFSH_HCINTERRUPTSTATUS_SF_SHIFT (2U)\r
+/*! SF - StartofFrame This bit is set by HC at each start of a frame and after the update of HccaFrameNumber.\r
+ */\r
+#define USBFSH_HCINTERRUPTSTATUS_SF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_SF_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_SF_MASK)\r
+#define USBFSH_HCINTERRUPTSTATUS_RD_MASK (0x8U)\r
+#define USBFSH_HCINTERRUPTSTATUS_RD_SHIFT (3U)\r
+/*! RD - ResumeDetected This bit is set when HC detects that a device on the USB is asserting resume signaling.\r
+ */\r
+#define USBFSH_HCINTERRUPTSTATUS_RD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_RD_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_RD_MASK)\r
+#define USBFSH_HCINTERRUPTSTATUS_UE_MASK (0x10U)\r
+#define USBFSH_HCINTERRUPTSTATUS_UE_SHIFT (4U)\r
+/*! UE - UnrecoverableError This bit is set when HC detects a system error not related to USB.\r
+ */\r
+#define USBFSH_HCINTERRUPTSTATUS_UE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_UE_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_UE_MASK)\r
+#define USBFSH_HCINTERRUPTSTATUS_FNO_MASK (0x20U)\r
+#define USBFSH_HCINTERRUPTSTATUS_FNO_SHIFT (5U)\r
+/*! FNO - FrameNumberOverflow This bit is set when the MSb of HcFmNumber (bit 15) changes value,\r
+ * from 0 to 1 or from 1 to 0, and after HccaFrameNumber has been updated.\r
+ */\r
+#define USBFSH_HCINTERRUPTSTATUS_FNO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_FNO_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_FNO_MASK)\r
+#define USBFSH_HCINTERRUPTSTATUS_RHSC_MASK (0x40U)\r
+#define USBFSH_HCINTERRUPTSTATUS_RHSC_SHIFT (6U)\r
+/*! RHSC - RootHubStatusChange This bit is set when the content of HcRhStatus or the content of any\r
+ * of HcRhPortStatus[NumberofDownstreamPort] has changed.\r
+ */\r
+#define USBFSH_HCINTERRUPTSTATUS_RHSC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_RHSC_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_RHSC_MASK)\r
+#define USBFSH_HCINTERRUPTSTATUS_OC_MASK (0xFFFFFC00U)\r
+#define USBFSH_HCINTERRUPTSTATUS_OC_SHIFT (10U)\r
+/*! OC - OwnershipChange This bit is set by HC when HCD sets the OwnershipChangeRequest field in HcCommandStatus.\r
+ */\r
+#define USBFSH_HCINTERRUPTSTATUS_OC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTSTATUS_OC_SHIFT)) & USBFSH_HCINTERRUPTSTATUS_OC_MASK)\r
+/*! @} */\r
+\r
+/*! @name HCINTERRUPTENABLE - Controls the bits in the HcInterruptStatus register and indicates which events will\r
+ * generate a hardware interrupt */\r
+/*! @{ */\r
+#define USBFSH_HCINTERRUPTENABLE_SO_MASK (0x1U)\r
+#define USBFSH_HCINTERRUPTENABLE_SO_SHIFT (0U)\r
+/*! SO - Scheduling Overrun interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_SO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_SO_SHIFT)) & USBFSH_HCINTERRUPTENABLE_SO_MASK)\r
+#define USBFSH_HCINTERRUPTENABLE_WDH_MASK (0x2U)\r
+#define USBFSH_HCINTERRUPTENABLE_WDH_SHIFT (1U)\r
+/*! WDH - HcDoneHead Writeback interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_WDH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_WDH_SHIFT)) & USBFSH_HCINTERRUPTENABLE_WDH_MASK)\r
+#define USBFSH_HCINTERRUPTENABLE_SF_MASK (0x4U)\r
+#define USBFSH_HCINTERRUPTENABLE_SF_SHIFT (2U)\r
+/*! SF - Start of Frame interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_SF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_SF_SHIFT)) & USBFSH_HCINTERRUPTENABLE_SF_MASK)\r
+#define USBFSH_HCINTERRUPTENABLE_RD_MASK (0x8U)\r
+#define USBFSH_HCINTERRUPTENABLE_RD_SHIFT (3U)\r
+/*! RD - Resume Detect interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_RD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_RD_SHIFT)) & USBFSH_HCINTERRUPTENABLE_RD_MASK)\r
+#define USBFSH_HCINTERRUPTENABLE_UE_MASK (0x10U)\r
+#define USBFSH_HCINTERRUPTENABLE_UE_SHIFT (4U)\r
+/*! UE - Unrecoverable Error interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_UE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_UE_SHIFT)) & USBFSH_HCINTERRUPTENABLE_UE_MASK)\r
+#define USBFSH_HCINTERRUPTENABLE_FNO_MASK (0x20U)\r
+#define USBFSH_HCINTERRUPTENABLE_FNO_SHIFT (5U)\r
+/*! FNO - Frame Number Overflow interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_FNO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_FNO_SHIFT)) & USBFSH_HCINTERRUPTENABLE_FNO_MASK)\r
+#define USBFSH_HCINTERRUPTENABLE_RHSC_MASK (0x40U)\r
+#define USBFSH_HCINTERRUPTENABLE_RHSC_SHIFT (6U)\r
+/*! RHSC - Root Hub Status Change interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_RHSC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_RHSC_SHIFT)) & USBFSH_HCINTERRUPTENABLE_RHSC_MASK)\r
+#define USBFSH_HCINTERRUPTENABLE_OC_MASK (0x40000000U)\r
+#define USBFSH_HCINTERRUPTENABLE_OC_SHIFT (30U)\r
+/*! OC - Ownership Change interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_OC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_OC_SHIFT)) & USBFSH_HCINTERRUPTENABLE_OC_MASK)\r
+#define USBFSH_HCINTERRUPTENABLE_MIE_MASK (0x80000000U)\r
+#define USBFSH_HCINTERRUPTENABLE_MIE_SHIFT (31U)\r
+/*! MIE - Master Interrupt Enable.\r
+ */\r
+#define USBFSH_HCINTERRUPTENABLE_MIE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTENABLE_MIE_SHIFT)) & USBFSH_HCINTERRUPTENABLE_MIE_MASK)\r
+/*! @} */\r
+\r
+/*! @name HCINTERRUPTDISABLE - The bits in this register are used to disable corresponding bits in the HCInterruptStatus\r
+ * register and in turn disable that event leading to hardware interrupt */\r
+/*! @{ */\r
+#define USBFSH_HCINTERRUPTDISABLE_SO_MASK (0x1U)\r
+#define USBFSH_HCINTERRUPTDISABLE_SO_SHIFT (0U)\r
+/*! SO - Scheduling Overrun interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_SO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_SO_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_SO_MASK)\r
+#define USBFSH_HCINTERRUPTDISABLE_WDH_MASK (0x2U)\r
+#define USBFSH_HCINTERRUPTDISABLE_WDH_SHIFT (1U)\r
+/*! WDH - HcDoneHead Writeback interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_WDH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_WDH_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_WDH_MASK)\r
+#define USBFSH_HCINTERRUPTDISABLE_SF_MASK (0x4U)\r
+#define USBFSH_HCINTERRUPTDISABLE_SF_SHIFT (2U)\r
+/*! SF - Start of Frame interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_SF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_SF_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_SF_MASK)\r
+#define USBFSH_HCINTERRUPTDISABLE_RD_MASK (0x8U)\r
+#define USBFSH_HCINTERRUPTDISABLE_RD_SHIFT (3U)\r
+/*! RD - Resume Detect interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_RD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_RD_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_RD_MASK)\r
+#define USBFSH_HCINTERRUPTDISABLE_UE_MASK (0x10U)\r
+#define USBFSH_HCINTERRUPTDISABLE_UE_SHIFT (4U)\r
+/*! UE - Unrecoverable Error interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_UE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_UE_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_UE_MASK)\r
+#define USBFSH_HCINTERRUPTDISABLE_FNO_MASK (0x20U)\r
+#define USBFSH_HCINTERRUPTDISABLE_FNO_SHIFT (5U)\r
+/*! FNO - Frame Number Overflow interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_FNO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_FNO_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_FNO_MASK)\r
+#define USBFSH_HCINTERRUPTDISABLE_RHSC_MASK (0x40U)\r
+#define USBFSH_HCINTERRUPTDISABLE_RHSC_SHIFT (6U)\r
+/*! RHSC - Root Hub Status Change interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_RHSC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_RHSC_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_RHSC_MASK)\r
+#define USBFSH_HCINTERRUPTDISABLE_OC_MASK (0x40000000U)\r
+#define USBFSH_HCINTERRUPTDISABLE_OC_SHIFT (30U)\r
+/*! OC - Ownership Change interrupt.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_OC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_OC_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_OC_MASK)\r
+#define USBFSH_HCINTERRUPTDISABLE_MIE_MASK (0x80000000U)\r
+#define USBFSH_HCINTERRUPTDISABLE_MIE_SHIFT (31U)\r
+/*! MIE - A 0 written to this field is ignored by HC.\r
+ */\r
+#define USBFSH_HCINTERRUPTDISABLE_MIE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCINTERRUPTDISABLE_MIE_SHIFT)) & USBFSH_HCINTERRUPTDISABLE_MIE_MASK)\r
/*! @} */\r
\r
/*! @name HCHCCA - Contains the physical address of the host controller communication area */\r
/*! @{ */\r
-#define USBFSH_HCHCCA_HCCA_MASK (0xFFFFFF00U)\r
-#define USBFSH_HCHCCA_HCCA_SHIFT (8U)\r
-#define USBFSH_HCHCCA_HCCA(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCHCCA_HCCA_SHIFT)) & USBFSH_HCHCCA_HCCA_MASK)\r
+#define USBFSH_HCHCCA_HCCA_MASK (0xFFFFFF00U)\r
+#define USBFSH_HCHCCA_HCCA_SHIFT (8U)\r
+/*! HCCA - Base address of the Host Controller Communication Area.\r
+ */\r
+#define USBFSH_HCHCCA_HCCA(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCHCCA_HCCA_SHIFT)) & USBFSH_HCHCCA_HCCA_MASK)\r
/*! @} */\r
\r
-/*! @name HCPERIODCURRENTED - Contains the physical address of the current isochronous or interrupt endpoint descriptor */\r
+/*! @name HCPERIODCURRENTED - Contains the physical address of the current isochronous or interrupt endpoint descriptor\r
+ */\r
/*! @{ */\r
-#define USBFSH_HCPERIODCURRENTED_PCED_MASK (0xFFFFFFF0U)\r
-#define USBFSH_HCPERIODCURRENTED_PCED_SHIFT (4U)\r
-#define USBFSH_HCPERIODCURRENTED_PCED(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCPERIODCURRENTED_PCED_SHIFT)) & USBFSH_HCPERIODCURRENTED_PCED_MASK)\r
+#define USBFSH_HCPERIODCURRENTED_PCED_MASK (0xFFFFFFF0U)\r
+#define USBFSH_HCPERIODCURRENTED_PCED_SHIFT (4U)\r
+/*! PCED - The content of this register is updated by HC after a periodic ED is processed.\r
+ */\r
+#define USBFSH_HCPERIODCURRENTED_PCED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCPERIODCURRENTED_PCED_SHIFT)) & USBFSH_HCPERIODCURRENTED_PCED_MASK)\r
/*! @} */\r
\r
/*! @name HCCONTROLHEADED - Contains the physical address of the first endpoint descriptor of the control list */\r
/*! @{ */\r
-#define USBFSH_HCCONTROLHEADED_CHED_MASK (0xFFFFFFF0U)\r
-#define USBFSH_HCCONTROLHEADED_CHED_SHIFT (4U)\r
-#define USBFSH_HCCONTROLHEADED_CHED(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROLHEADED_CHED_SHIFT)) & USBFSH_HCCONTROLHEADED_CHED_MASK)\r
+#define USBFSH_HCCONTROLHEADED_CHED_MASK (0xFFFFFFF0U)\r
+#define USBFSH_HCCONTROLHEADED_CHED_SHIFT (4U)\r
+/*! CHED - HC traverses the Control list starting with the HcControlHeadED pointer.\r
+ */\r
+#define USBFSH_HCCONTROLHEADED_CHED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROLHEADED_CHED_SHIFT)) & USBFSH_HCCONTROLHEADED_CHED_MASK)\r
/*! @} */\r
\r
/*! @name HCCONTROLCURRENTED - Contains the physical address of the current endpoint descriptor of the control list */\r
/*! @{ */\r
-#define USBFSH_HCCONTROLCURRENTED_CCED_MASK (0xFFFFFFF0U)\r
-#define USBFSH_HCCONTROLCURRENTED_CCED_SHIFT (4U)\r
-#define USBFSH_HCCONTROLCURRENTED_CCED(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROLCURRENTED_CCED_SHIFT)) & USBFSH_HCCONTROLCURRENTED_CCED_MASK)\r
+#define USBFSH_HCCONTROLCURRENTED_CCED_MASK (0xFFFFFFF0U)\r
+#define USBFSH_HCCONTROLCURRENTED_CCED_SHIFT (4U)\r
+/*! CCED - ControlCurrentED.\r
+ */\r
+#define USBFSH_HCCONTROLCURRENTED_CCED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCCONTROLCURRENTED_CCED_SHIFT)) & USBFSH_HCCONTROLCURRENTED_CCED_MASK)\r
/*! @} */\r
\r
/*! @name HCBULKHEADED - Contains the physical address of the first endpoint descriptor of the bulk list */\r
/*! @{ */\r
-#define USBFSH_HCBULKHEADED_BHED_MASK (0xFFFFFFF0U)\r
-#define USBFSH_HCBULKHEADED_BHED_SHIFT (4U)\r
-#define USBFSH_HCBULKHEADED_BHED(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCBULKHEADED_BHED_SHIFT)) & USBFSH_HCBULKHEADED_BHED_MASK)\r
+#define USBFSH_HCBULKHEADED_BHED_MASK (0xFFFFFFF0U)\r
+#define USBFSH_HCBULKHEADED_BHED_SHIFT (4U)\r
+/*! BHED - BulkHeadED HC traverses the bulk list starting with the HcBulkHeadED pointer.\r
+ */\r
+#define USBFSH_HCBULKHEADED_BHED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCBULKHEADED_BHED_SHIFT)) & USBFSH_HCBULKHEADED_BHED_MASK)\r
/*! @} */\r
\r
/*! @name HCBULKCURRENTED - Contains the physical address of the current endpoint descriptor of the bulk list */\r
/*! @{ */\r
-#define USBFSH_HCBULKCURRENTED_BCED_MASK (0xFFFFFFF0U)\r
-#define USBFSH_HCBULKCURRENTED_BCED_SHIFT (4U)\r
-#define USBFSH_HCBULKCURRENTED_BCED(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCBULKCURRENTED_BCED_SHIFT)) & USBFSH_HCBULKCURRENTED_BCED_MASK)\r
+#define USBFSH_HCBULKCURRENTED_BCED_MASK (0xFFFFFFF0U)\r
+#define USBFSH_HCBULKCURRENTED_BCED_SHIFT (4U)\r
+/*! BCED - BulkCurrentED This is advanced to the next ED after the HC has served the current one.\r
+ */\r
+#define USBFSH_HCBULKCURRENTED_BCED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCBULKCURRENTED_BCED_SHIFT)) & USBFSH_HCBULKCURRENTED_BCED_MASK)\r
/*! @} */\r
\r
/*! @name HCDONEHEAD - Contains the physical address of the last transfer descriptor added to the 'Done' queue */\r
/*! @{ */\r
-#define USBFSH_HCDONEHEAD_DH_MASK (0xFFFFFFF0U)\r
-#define USBFSH_HCDONEHEAD_DH_SHIFT (4U)\r
-#define USBFSH_HCDONEHEAD_DH(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCDONEHEAD_DH_SHIFT)) & USBFSH_HCDONEHEAD_DH_MASK)\r
+#define USBFSH_HCDONEHEAD_DH_MASK (0xFFFFFFF0U)\r
+#define USBFSH_HCDONEHEAD_DH_SHIFT (4U)\r
+/*! DH - DoneHead When a TD is completed, HC writes the content of HcDoneHead to the NextTD field of the TD.\r
+ */\r
+#define USBFSH_HCDONEHEAD_DH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCDONEHEAD_DH_SHIFT)) & USBFSH_HCDONEHEAD_DH_MASK)\r
/*! @} */\r
\r
-/*! @name HCFMINTERVAL - Defines the bit time interval in a frame and the full speed maximum packet size which would not cause an overrun */\r
+/*! @name HCFMINTERVAL - Defines the bit time interval in a frame and the full speed maximum packet size which would not\r
+ * cause an overrun */\r
/*! @{ */\r
-#define USBFSH_HCFMINTERVAL_FI_MASK (0x3FFFU)\r
-#define USBFSH_HCFMINTERVAL_FI_SHIFT (0U)\r
-#define USBFSH_HCFMINTERVAL_FI(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMINTERVAL_FI_SHIFT)) & USBFSH_HCFMINTERVAL_FI_MASK)\r
-#define USBFSH_HCFMINTERVAL_FSMPS_MASK (0x7FFF0000U)\r
-#define USBFSH_HCFMINTERVAL_FSMPS_SHIFT (16U)\r
-#define USBFSH_HCFMINTERVAL_FSMPS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMINTERVAL_FSMPS_SHIFT)) & USBFSH_HCFMINTERVAL_FSMPS_MASK)\r
-#define USBFSH_HCFMINTERVAL_FIT_MASK (0x80000000U)\r
-#define USBFSH_HCFMINTERVAL_FIT_SHIFT (31U)\r
-#define USBFSH_HCFMINTERVAL_FIT(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMINTERVAL_FIT_SHIFT)) & USBFSH_HCFMINTERVAL_FIT_MASK)\r
+#define USBFSH_HCFMINTERVAL_FI_MASK (0x3FFFU)\r
+#define USBFSH_HCFMINTERVAL_FI_SHIFT (0U)\r
+/*! FI - FrameInterval This specifies the interval between two consecutive SOFs in bit times.\r
+ */\r
+#define USBFSH_HCFMINTERVAL_FI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMINTERVAL_FI_SHIFT)) & USBFSH_HCFMINTERVAL_FI_MASK)\r
+#define USBFSH_HCFMINTERVAL_FSMPS_MASK (0x7FFF0000U)\r
+#define USBFSH_HCFMINTERVAL_FSMPS_SHIFT (16U)\r
+/*! FSMPS - FSLargestDataPacket This field specifies a value which is loaded into the Largest Data\r
+ * Packet Counter at the beginning of each frame.\r
+ */\r
+#define USBFSH_HCFMINTERVAL_FSMPS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMINTERVAL_FSMPS_SHIFT)) & USBFSH_HCFMINTERVAL_FSMPS_MASK)\r
+#define USBFSH_HCFMINTERVAL_FIT_MASK (0x80000000U)\r
+#define USBFSH_HCFMINTERVAL_FIT_SHIFT (31U)\r
+/*! FIT - FrameIntervalToggle HCD toggles this bit whenever it loads a new value to FrameInterval.\r
+ */\r
+#define USBFSH_HCFMINTERVAL_FIT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMINTERVAL_FIT_SHIFT)) & USBFSH_HCFMINTERVAL_FIT_MASK)\r
/*! @} */\r
\r
/*! @name HCFMREMAINING - A 14-bit counter showing the bit time remaining in the current frame */\r
/*! @{ */\r
-#define USBFSH_HCFMREMAINING_FR_MASK (0x3FFFU)\r
-#define USBFSH_HCFMREMAINING_FR_SHIFT (0U)\r
-#define USBFSH_HCFMREMAINING_FR(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMREMAINING_FR_SHIFT)) & USBFSH_HCFMREMAINING_FR_MASK)\r
-#define USBFSH_HCFMREMAINING_FRT_MASK (0x80000000U)\r
-#define USBFSH_HCFMREMAINING_FRT_SHIFT (31U)\r
-#define USBFSH_HCFMREMAINING_FRT(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMREMAINING_FRT_SHIFT)) & USBFSH_HCFMREMAINING_FRT_MASK)\r
+#define USBFSH_HCFMREMAINING_FR_MASK (0x3FFFU)\r
+#define USBFSH_HCFMREMAINING_FR_SHIFT (0U)\r
+/*! FR - FrameRemaining This counter is decremented at each bit time.\r
+ */\r
+#define USBFSH_HCFMREMAINING_FR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMREMAINING_FR_SHIFT)) & USBFSH_HCFMREMAINING_FR_MASK)\r
+#define USBFSH_HCFMREMAINING_FRT_MASK (0x80000000U)\r
+#define USBFSH_HCFMREMAINING_FRT_SHIFT (31U)\r
+/*! FRT - FrameRemainingToggle This bit is loaded from the FrameIntervalToggle field of HcFmInterval\r
+ * whenever FrameRemaining reaches 0.\r
+ */\r
+#define USBFSH_HCFMREMAINING_FRT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMREMAINING_FRT_SHIFT)) & USBFSH_HCFMREMAINING_FRT_MASK)\r
/*! @} */\r
\r
-/*! @name HCFMNUMBER - Contains a 16-bit counter and provides the timing reference among events happening in the HC and the HCD */\r
+/*! @name HCFMNUMBER - Contains a 16-bit counter and provides the timing reference among events happening in the HC and\r
+ * the HCD */\r
/*! @{ */\r
-#define USBFSH_HCFMNUMBER_FN_MASK (0xFFFFU)\r
-#define USBFSH_HCFMNUMBER_FN_SHIFT (0U)\r
-#define USBFSH_HCFMNUMBER_FN(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMNUMBER_FN_SHIFT)) & USBFSH_HCFMNUMBER_FN_MASK)\r
+#define USBFSH_HCFMNUMBER_FN_MASK (0xFFFFU)\r
+#define USBFSH_HCFMNUMBER_FN_SHIFT (0U)\r
+/*! FN - FrameNumber This is incremented when HcFmRemaining is re-loaded.\r
+ */\r
+#define USBFSH_HCFMNUMBER_FN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCFMNUMBER_FN_SHIFT)) & USBFSH_HCFMNUMBER_FN_MASK)\r
/*! @} */\r
\r
-/*! @name HCPERIODICSTART - Contains a programmable 14-bit value which determines the earliest time HC should start processing a periodic list */\r
+/*! @name HCPERIODICSTART - Contains a programmable 14-bit value which determines the earliest time HC should start\r
+ * processing a periodic list */\r
/*! @{ */\r
-#define USBFSH_HCPERIODICSTART_PS_MASK (0x3FFFU)\r
-#define USBFSH_HCPERIODICSTART_PS_SHIFT (0U)\r
-#define USBFSH_HCPERIODICSTART_PS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCPERIODICSTART_PS_SHIFT)) & USBFSH_HCPERIODICSTART_PS_MASK)\r
+#define USBFSH_HCPERIODICSTART_PS_MASK (0x3FFFU)\r
+#define USBFSH_HCPERIODICSTART_PS_SHIFT (0U)\r
+/*! PS - PeriodicStart After a hardware reset, this field is cleared and then set by HCD during the HC initialization.\r
+ */\r
+#define USBFSH_HCPERIODICSTART_PS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCPERIODICSTART_PS_SHIFT)) & USBFSH_HCPERIODICSTART_PS_MASK)\r
/*! @} */\r
\r
-/*! @name HCLSTHRESHOLD - Contains 11-bit value which is used by the HC to determine whether to commit to transfer a maximum of 8-byte LS packet before EOF */\r
+/*! @name HCLSTHRESHOLD - Contains 11-bit value which is used by the HC to determine whether to commit to transfer a\r
+ * maximum of 8-byte LS packet before EOF */\r
/*! @{ */\r
-#define USBFSH_HCLSTHRESHOLD_LST_MASK (0xFFFU)\r
-#define USBFSH_HCLSTHRESHOLD_LST_SHIFT (0U)\r
-#define USBFSH_HCLSTHRESHOLD_LST(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCLSTHRESHOLD_LST_SHIFT)) & USBFSH_HCLSTHRESHOLD_LST_MASK)\r
+#define USBFSH_HCLSTHRESHOLD_LST_MASK (0xFFFU)\r
+#define USBFSH_HCLSTHRESHOLD_LST_SHIFT (0U)\r
+/*! LST - LSThreshold This field contains a value which is compared to the FrameRemaining field\r
+ * prior to initiating a Low Speed transaction.\r
+ */\r
+#define USBFSH_HCLSTHRESHOLD_LST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCLSTHRESHOLD_LST_SHIFT)) & USBFSH_HCLSTHRESHOLD_LST_MASK)\r
/*! @} */\r
\r
/*! @name HCRHDESCRIPTORA - First of the two registers which describes the characteristics of the root hub */\r
/*! @{ */\r
-#define USBFSH_HCRHDESCRIPTORA_NDP_MASK (0xFFU)\r
-#define USBFSH_HCRHDESCRIPTORA_NDP_SHIFT (0U)\r
-#define USBFSH_HCRHDESCRIPTORA_NDP(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_NDP_SHIFT)) & USBFSH_HCRHDESCRIPTORA_NDP_MASK)\r
-#define USBFSH_HCRHDESCRIPTORA_PSM_MASK (0x100U)\r
-#define USBFSH_HCRHDESCRIPTORA_PSM_SHIFT (8U)\r
-#define USBFSH_HCRHDESCRIPTORA_PSM(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_PSM_SHIFT)) & USBFSH_HCRHDESCRIPTORA_PSM_MASK)\r
-#define USBFSH_HCRHDESCRIPTORA_NPS_MASK (0x200U)\r
-#define USBFSH_HCRHDESCRIPTORA_NPS_SHIFT (9U)\r
-#define USBFSH_HCRHDESCRIPTORA_NPS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_NPS_SHIFT)) & USBFSH_HCRHDESCRIPTORA_NPS_MASK)\r
-#define USBFSH_HCRHDESCRIPTORA_DT_MASK (0x400U)\r
-#define USBFSH_HCRHDESCRIPTORA_DT_SHIFT (10U)\r
-#define USBFSH_HCRHDESCRIPTORA_DT(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_DT_SHIFT)) & USBFSH_HCRHDESCRIPTORA_DT_MASK)\r
-#define USBFSH_HCRHDESCRIPTORA_OCPM_MASK (0x800U)\r
-#define USBFSH_HCRHDESCRIPTORA_OCPM_SHIFT (11U)\r
-#define USBFSH_HCRHDESCRIPTORA_OCPM(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_OCPM_SHIFT)) & USBFSH_HCRHDESCRIPTORA_OCPM_MASK)\r
-#define USBFSH_HCRHDESCRIPTORA_NOCP_MASK (0x1000U)\r
-#define USBFSH_HCRHDESCRIPTORA_NOCP_SHIFT (12U)\r
-#define USBFSH_HCRHDESCRIPTORA_NOCP(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_NOCP_SHIFT)) & USBFSH_HCRHDESCRIPTORA_NOCP_MASK)\r
-#define USBFSH_HCRHDESCRIPTORA_POTPGT_MASK (0xFF000000U)\r
-#define USBFSH_HCRHDESCRIPTORA_POTPGT_SHIFT (24U)\r
-#define USBFSH_HCRHDESCRIPTORA_POTPGT(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_POTPGT_SHIFT)) & USBFSH_HCRHDESCRIPTORA_POTPGT_MASK)\r
+#define USBFSH_HCRHDESCRIPTORA_NDP_MASK (0xFFU)\r
+#define USBFSH_HCRHDESCRIPTORA_NDP_SHIFT (0U)\r
+/*! NDP - NumberDownstreamPorts These bits specify the number of downstream ports supported by the root hub.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORA_NDP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_NDP_SHIFT)) & USBFSH_HCRHDESCRIPTORA_NDP_MASK)\r
+#define USBFSH_HCRHDESCRIPTORA_PSM_MASK (0x100U)\r
+#define USBFSH_HCRHDESCRIPTORA_PSM_SHIFT (8U)\r
+/*! PSM - PowerSwitchingMode This bit is used to specify how the power switching of the root hub ports is controlled.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORA_PSM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_PSM_SHIFT)) & USBFSH_HCRHDESCRIPTORA_PSM_MASK)\r
+#define USBFSH_HCRHDESCRIPTORA_NPS_MASK (0x200U)\r
+#define USBFSH_HCRHDESCRIPTORA_NPS_SHIFT (9U)\r
+/*! NPS - NoPowerSwitching These bits are used to specify whether power switching is supported or port are always\r
+ * powered.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORA_NPS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_NPS_SHIFT)) & USBFSH_HCRHDESCRIPTORA_NPS_MASK)\r
+#define USBFSH_HCRHDESCRIPTORA_DT_MASK (0x400U)\r
+#define USBFSH_HCRHDESCRIPTORA_DT_SHIFT (10U)\r
+/*! DT - DeviceType This bit specifies that the root hub is not a compound device.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORA_DT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_DT_SHIFT)) & USBFSH_HCRHDESCRIPTORA_DT_MASK)\r
+#define USBFSH_HCRHDESCRIPTORA_OCPM_MASK (0x800U)\r
+#define USBFSH_HCRHDESCRIPTORA_OCPM_SHIFT (11U)\r
+/*! OCPM - OverCurrentProtectionMode This bit describes how the overcurrent status for the root hub ports are reported.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORA_OCPM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_OCPM_SHIFT)) & USBFSH_HCRHDESCRIPTORA_OCPM_MASK)\r
+#define USBFSH_HCRHDESCRIPTORA_NOCP_MASK (0x1000U)\r
+#define USBFSH_HCRHDESCRIPTORA_NOCP_SHIFT (12U)\r
+/*! NOCP - NoOverCurrentProtection This bit describes how the overcurrent status for the root hub ports are reported.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORA_NOCP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_NOCP_SHIFT)) & USBFSH_HCRHDESCRIPTORA_NOCP_MASK)\r
+#define USBFSH_HCRHDESCRIPTORA_POTPGT_MASK (0xFF000000U)\r
+#define USBFSH_HCRHDESCRIPTORA_POTPGT_SHIFT (24U)\r
+/*! POTPGT - PowerOnToPowerGoodTime This byte specifies the duration the HCD has to wait before\r
+ * accessing a powered-on port of the root hub.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORA_POTPGT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORA_POTPGT_SHIFT)) & USBFSH_HCRHDESCRIPTORA_POTPGT_MASK)\r
/*! @} */\r
\r
/*! @name HCRHDESCRIPTORB - Second of the two registers which describes the characteristics of the Root Hub */\r
/*! @{ */\r
-#define USBFSH_HCRHDESCRIPTORB_DR_MASK (0xFFFFU)\r
-#define USBFSH_HCRHDESCRIPTORB_DR_SHIFT (0U)\r
-#define USBFSH_HCRHDESCRIPTORB_DR(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORB_DR_SHIFT)) & USBFSH_HCRHDESCRIPTORB_DR_MASK)\r
-#define USBFSH_HCRHDESCRIPTORB_PPCM_MASK (0xFFFF0000U)\r
-#define USBFSH_HCRHDESCRIPTORB_PPCM_SHIFT (16U)\r
-#define USBFSH_HCRHDESCRIPTORB_PPCM(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORB_PPCM_SHIFT)) & USBFSH_HCRHDESCRIPTORB_PPCM_MASK)\r
+#define USBFSH_HCRHDESCRIPTORB_DR_MASK (0xFFFFU)\r
+#define USBFSH_HCRHDESCRIPTORB_DR_SHIFT (0U)\r
+/*! DR - DeviceRemovable Each bit is dedicated to a port of the Root Hub.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORB_DR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORB_DR_SHIFT)) & USBFSH_HCRHDESCRIPTORB_DR_MASK)\r
+#define USBFSH_HCRHDESCRIPTORB_PPCM_MASK (0xFFFF0000U)\r
+#define USBFSH_HCRHDESCRIPTORB_PPCM_SHIFT (16U)\r
+/*! PPCM - PortPowerControlMask Each bit indicates if a port is affected by a global power control\r
+ * command when PowerSwitchingMode is set.\r
+ */\r
+#define USBFSH_HCRHDESCRIPTORB_PPCM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHDESCRIPTORB_PPCM_SHIFT)) & USBFSH_HCRHDESCRIPTORB_PPCM_MASK)\r
/*! @} */\r
\r
/*! @name HCRHSTATUS - This register is divided into two parts */\r
/*! @{ */\r
-#define USBFSH_HCRHSTATUS_LPS_MASK (0x1U)\r
-#define USBFSH_HCRHSTATUS_LPS_SHIFT (0U)\r
-#define USBFSH_HCRHSTATUS_LPS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_LPS_SHIFT)) & USBFSH_HCRHSTATUS_LPS_MASK)\r
-#define USBFSH_HCRHSTATUS_OCI_MASK (0x2U)\r
-#define USBFSH_HCRHSTATUS_OCI_SHIFT (1U)\r
-#define USBFSH_HCRHSTATUS_OCI(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_OCI_SHIFT)) & USBFSH_HCRHSTATUS_OCI_MASK)\r
-#define USBFSH_HCRHSTATUS_DRWE_MASK (0x8000U)\r
-#define USBFSH_HCRHSTATUS_DRWE_SHIFT (15U)\r
-#define USBFSH_HCRHSTATUS_DRWE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_DRWE_SHIFT)) & USBFSH_HCRHSTATUS_DRWE_MASK)\r
-#define USBFSH_HCRHSTATUS_LPSC_MASK (0x10000U)\r
-#define USBFSH_HCRHSTATUS_LPSC_SHIFT (16U)\r
-#define USBFSH_HCRHSTATUS_LPSC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_LPSC_SHIFT)) & USBFSH_HCRHSTATUS_LPSC_MASK)\r
-#define USBFSH_HCRHSTATUS_OCIC_MASK (0x20000U)\r
-#define USBFSH_HCRHSTATUS_OCIC_SHIFT (17U)\r
-#define USBFSH_HCRHSTATUS_OCIC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_OCIC_SHIFT)) & USBFSH_HCRHSTATUS_OCIC_MASK)\r
-#define USBFSH_HCRHSTATUS_CRWE_MASK (0x80000000U)\r
-#define USBFSH_HCRHSTATUS_CRWE_SHIFT (31U)\r
-#define USBFSH_HCRHSTATUS_CRWE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_CRWE_SHIFT)) & USBFSH_HCRHSTATUS_CRWE_MASK)\r
+#define USBFSH_HCRHSTATUS_LPS_MASK (0x1U)\r
+#define USBFSH_HCRHSTATUS_LPS_SHIFT (0U)\r
+/*! LPS - (read) LocalPowerStatus The Root Hub does not support the local power status feature;\r
+ * thus, this bit is always read as 0.\r
+ */\r
+#define USBFSH_HCRHSTATUS_LPS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_LPS_SHIFT)) & USBFSH_HCRHSTATUS_LPS_MASK)\r
+#define USBFSH_HCRHSTATUS_OCI_MASK (0x2U)\r
+#define USBFSH_HCRHSTATUS_OCI_SHIFT (1U)\r
+/*! OCI - OverCurrentIndicator This bit reports overcurrent conditions when the global reporting is implemented.\r
+ */\r
+#define USBFSH_HCRHSTATUS_OCI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_OCI_SHIFT)) & USBFSH_HCRHSTATUS_OCI_MASK)\r
+#define USBFSH_HCRHSTATUS_DRWE_MASK (0x8000U)\r
+#define USBFSH_HCRHSTATUS_DRWE_SHIFT (15U)\r
+/*! DRWE - (read) DeviceRemoteWakeupEnable This bit enables a ConnectStatusChange bit as a resume\r
+ * event, causing a USBSUSPEND to USBRESUME state transition and setting the ResumeDetected\r
+ * interrupt.\r
+ */\r
+#define USBFSH_HCRHSTATUS_DRWE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_DRWE_SHIFT)) & USBFSH_HCRHSTATUS_DRWE_MASK)\r
+#define USBFSH_HCRHSTATUS_LPSC_MASK (0x10000U)\r
+#define USBFSH_HCRHSTATUS_LPSC_SHIFT (16U)\r
+/*! LPSC - (read) LocalPowerStatusChange The root hub does not support the local power status feature.\r
+ */\r
+#define USBFSH_HCRHSTATUS_LPSC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_LPSC_SHIFT)) & USBFSH_HCRHSTATUS_LPSC_MASK)\r
+#define USBFSH_HCRHSTATUS_OCIC_MASK (0x20000U)\r
+#define USBFSH_HCRHSTATUS_OCIC_SHIFT (17U)\r
+/*! OCIC - OverCurrentIndicatorChange This bit is set by hardware when a change has occurred to the OCI field of this\r
+ * register.\r
+ */\r
+#define USBFSH_HCRHSTATUS_OCIC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_OCIC_SHIFT)) & USBFSH_HCRHSTATUS_OCIC_MASK)\r
+#define USBFSH_HCRHSTATUS_CRWE_MASK (0x80000000U)\r
+#define USBFSH_HCRHSTATUS_CRWE_SHIFT (31U)\r
+/*! CRWE - (write) ClearRemoteWakeupEnable Writing a 1 clears DeviceRemoveWakeupEnable.\r
+ */\r
+#define USBFSH_HCRHSTATUS_CRWE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHSTATUS_CRWE_SHIFT)) & USBFSH_HCRHSTATUS_CRWE_MASK)\r
/*! @} */\r
\r
/*! @name HCRHPORTSTATUS - Controls and reports the port events on a per-port basis */\r
/*! @{ */\r
-#define USBFSH_HCRHPORTSTATUS_CCS_MASK (0x1U)\r
-#define USBFSH_HCRHPORTSTATUS_CCS_SHIFT (0U)\r
-#define USBFSH_HCRHPORTSTATUS_CCS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_CCS_SHIFT)) & USBFSH_HCRHPORTSTATUS_CCS_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_PES_MASK (0x2U)\r
-#define USBFSH_HCRHPORTSTATUS_PES_SHIFT (1U)\r
-#define USBFSH_HCRHPORTSTATUS_PES(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PES_SHIFT)) & USBFSH_HCRHPORTSTATUS_PES_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_PSS_MASK (0x4U)\r
-#define USBFSH_HCRHPORTSTATUS_PSS_SHIFT (2U)\r
-#define USBFSH_HCRHPORTSTATUS_PSS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PSS_SHIFT)) & USBFSH_HCRHPORTSTATUS_PSS_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_POCI_MASK (0x8U)\r
-#define USBFSH_HCRHPORTSTATUS_POCI_SHIFT (3U)\r
-#define USBFSH_HCRHPORTSTATUS_POCI(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_POCI_SHIFT)) & USBFSH_HCRHPORTSTATUS_POCI_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_PRS_MASK (0x10U)\r
-#define USBFSH_HCRHPORTSTATUS_PRS_SHIFT (4U)\r
-#define USBFSH_HCRHPORTSTATUS_PRS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PRS_SHIFT)) & USBFSH_HCRHPORTSTATUS_PRS_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_PPS_MASK (0x100U)\r
-#define USBFSH_HCRHPORTSTATUS_PPS_SHIFT (8U)\r
-#define USBFSH_HCRHPORTSTATUS_PPS(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PPS_SHIFT)) & USBFSH_HCRHPORTSTATUS_PPS_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_LSDA_MASK (0x200U)\r
-#define USBFSH_HCRHPORTSTATUS_LSDA_SHIFT (9U)\r
-#define USBFSH_HCRHPORTSTATUS_LSDA(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_LSDA_SHIFT)) & USBFSH_HCRHPORTSTATUS_LSDA_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_CSC_MASK (0x10000U)\r
-#define USBFSH_HCRHPORTSTATUS_CSC_SHIFT (16U)\r
-#define USBFSH_HCRHPORTSTATUS_CSC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_CSC_SHIFT)) & USBFSH_HCRHPORTSTATUS_CSC_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_PESC_MASK (0x20000U)\r
-#define USBFSH_HCRHPORTSTATUS_PESC_SHIFT (17U)\r
-#define USBFSH_HCRHPORTSTATUS_PESC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PESC_SHIFT)) & USBFSH_HCRHPORTSTATUS_PESC_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_PSSC_MASK (0x40000U)\r
-#define USBFSH_HCRHPORTSTATUS_PSSC_SHIFT (18U)\r
-#define USBFSH_HCRHPORTSTATUS_PSSC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PSSC_SHIFT)) & USBFSH_HCRHPORTSTATUS_PSSC_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_OCIC_MASK (0x80000U)\r
-#define USBFSH_HCRHPORTSTATUS_OCIC_SHIFT (19U)\r
-#define USBFSH_HCRHPORTSTATUS_OCIC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_OCIC_SHIFT)) & USBFSH_HCRHPORTSTATUS_OCIC_MASK)\r
-#define USBFSH_HCRHPORTSTATUS_PRSC_MASK (0x100000U)\r
-#define USBFSH_HCRHPORTSTATUS_PRSC_SHIFT (20U)\r
-#define USBFSH_HCRHPORTSTATUS_PRSC(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PRSC_SHIFT)) & USBFSH_HCRHPORTSTATUS_PRSC_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_CCS_MASK (0x1U)\r
+#define USBFSH_HCRHPORTSTATUS_CCS_SHIFT (0U)\r
+/*! CCS - (read) CurrentConnectStatus This bit reflects the current state of the downstream port.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_CCS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_CCS_SHIFT)) & USBFSH_HCRHPORTSTATUS_CCS_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_PES_MASK (0x2U)\r
+#define USBFSH_HCRHPORTSTATUS_PES_SHIFT (1U)\r
+/*! PES - (read) PortEnableStatus This bit indicates whether the port is enabled or disabled.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_PES(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PES_SHIFT)) & USBFSH_HCRHPORTSTATUS_PES_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_PSS_MASK (0x4U)\r
+#define USBFSH_HCRHPORTSTATUS_PSS_SHIFT (2U)\r
+/*! PSS - (read) PortSuspendStatus This bit indicates the port is suspended or in the resume sequence.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_PSS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PSS_SHIFT)) & USBFSH_HCRHPORTSTATUS_PSS_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_POCI_MASK (0x8U)\r
+#define USBFSH_HCRHPORTSTATUS_POCI_SHIFT (3U)\r
+/*! POCI - (read) PortOverCurrentIndicator This bit is only valid when the Root Hub is configured in\r
+ * such a way that overcurrent conditions are reported on a per-port basis.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_POCI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_POCI_SHIFT)) & USBFSH_HCRHPORTSTATUS_POCI_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_PRS_MASK (0x10U)\r
+#define USBFSH_HCRHPORTSTATUS_PRS_SHIFT (4U)\r
+/*! PRS - (read) PortResetStatus When this bit is set by a write to SetPortReset, port reset signaling is asserted.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_PRS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PRS_SHIFT)) & USBFSH_HCRHPORTSTATUS_PRS_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_PPS_MASK (0x100U)\r
+#define USBFSH_HCRHPORTSTATUS_PPS_SHIFT (8U)\r
+/*! PPS - (read) PortPowerStatus This bit reflects the porta's power status, regardless of the type\r
+ * of power switching implemented.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_PPS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PPS_SHIFT)) & USBFSH_HCRHPORTSTATUS_PPS_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_LSDA_MASK (0x200U)\r
+#define USBFSH_HCRHPORTSTATUS_LSDA_SHIFT (9U)\r
+/*! LSDA - (read) LowSpeedDeviceAttached This bit indicates the speed of the device attached to this port.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_LSDA(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_LSDA_SHIFT)) & USBFSH_HCRHPORTSTATUS_LSDA_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_CSC_MASK (0x10000U)\r
+#define USBFSH_HCRHPORTSTATUS_CSC_SHIFT (16U)\r
+/*! CSC - ConnectStatusChange This bit is set whenever a connect or disconnect event occurs.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_CSC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_CSC_SHIFT)) & USBFSH_HCRHPORTSTATUS_CSC_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_PESC_MASK (0x20000U)\r
+#define USBFSH_HCRHPORTSTATUS_PESC_SHIFT (17U)\r
+/*! PESC - PortEnableStatusChange This bit is set when hardware events cause the PortEnableStatus bit to be cleared.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_PESC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PESC_SHIFT)) & USBFSH_HCRHPORTSTATUS_PESC_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_PSSC_MASK (0x40000U)\r
+#define USBFSH_HCRHPORTSTATUS_PSSC_SHIFT (18U)\r
+/*! PSSC - PortSuspendStatusChange This bit is set when the full resume sequence is completed.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_PSSC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PSSC_SHIFT)) & USBFSH_HCRHPORTSTATUS_PSSC_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_OCIC_MASK (0x80000U)\r
+#define USBFSH_HCRHPORTSTATUS_OCIC_SHIFT (19U)\r
+/*! OCIC - PortOverCurrentIndicatorChange This bit is valid only if overcurrent conditions are reported on a per-port\r
+ * basis.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_OCIC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_OCIC_SHIFT)) & USBFSH_HCRHPORTSTATUS_OCIC_MASK)\r
+#define USBFSH_HCRHPORTSTATUS_PRSC_MASK (0x100000U)\r
+#define USBFSH_HCRHPORTSTATUS_PRSC_SHIFT (20U)\r
+/*! PRSC - PortResetStatusChange This bit is set at the end of the 10 ms port reset signal.\r
+ */\r
+#define USBFSH_HCRHPORTSTATUS_PRSC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_HCRHPORTSTATUS_PRSC_SHIFT)) & USBFSH_HCRHPORTSTATUS_PRSC_MASK)\r
/*! @} */\r
\r
/*! @name PORTMODE - Controls the port if it is attached to the host block or the device block */\r
/*! @{ */\r
-#define USBFSH_PORTMODE_ID_MASK (0x1U)\r
-#define USBFSH_PORTMODE_ID_SHIFT (0U)\r
-#define USBFSH_PORTMODE_ID(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_PORTMODE_ID_SHIFT)) & USBFSH_PORTMODE_ID_MASK)\r
-#define USBFSH_PORTMODE_ID_EN_MASK (0x100U)\r
-#define USBFSH_PORTMODE_ID_EN_SHIFT (8U)\r
-#define USBFSH_PORTMODE_ID_EN(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_PORTMODE_ID_EN_SHIFT)) & USBFSH_PORTMODE_ID_EN_MASK)\r
-#define USBFSH_PORTMODE_DEV_ENABLE_MASK (0x10000U)\r
-#define USBFSH_PORTMODE_DEV_ENABLE_SHIFT (16U)\r
-#define USBFSH_PORTMODE_DEV_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_PORTMODE_DEV_ENABLE_SHIFT)) & USBFSH_PORTMODE_DEV_ENABLE_MASK)\r
+#define USBFSH_PORTMODE_ID_MASK (0x1U)\r
+#define USBFSH_PORTMODE_ID_SHIFT (0U)\r
+/*! ID - Port ID pin value.\r
+ */\r
+#define USBFSH_PORTMODE_ID(x) (((uint32_t)(((uint32_t)(x)) << USBFSH_PORTMODE_ID_SHIFT)) & USBFSH_PORTMODE_ID_MASK)\r
+#define USBFSH_PORTMODE_ID_EN_MASK (0x100U)\r
+#define USBFSH_PORTMODE_ID_EN_SHIFT (8U)\r
+/*! ID_EN - Port ID pin pull-up enable.\r
+ */\r
+#define USBFSH_PORTMODE_ID_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_PORTMODE_ID_EN_SHIFT)) & USBFSH_PORTMODE_ID_EN_MASK)\r
+#define USBFSH_PORTMODE_DEV_ENABLE_MASK (0x10000U)\r
+#define USBFSH_PORTMODE_DEV_ENABLE_SHIFT (16U)\r
+/*! DEV_ENABLE - 1: device 0: host.\r
+ */\r
+#define USBFSH_PORTMODE_DEV_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBFSH_PORTMODE_DEV_ENABLE_SHIFT)) & USBFSH_PORTMODE_DEV_ENABLE_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group USBFSH_Register_Masks */\r
\r
-\r
/* USBFSH - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral USBFSH base address */\r
- #define USBFSH_BASE (0x500A2000u)\r
- /** Peripheral USBFSH base address */\r
- #define USBFSH_BASE_NS (0x400A2000u)\r
- /** Peripheral USBFSH base pointer */\r
- #define USBFSH ((USBFSH_Type *)USBFSH_BASE)\r
- /** Peripheral USBFSH base pointer */\r
- #define USBFSH_NS ((USBFSH_Type *)USBFSH_BASE_NS)\r
- /** Array initializer of USBFSH peripheral base addresses */\r
- #define USBFSH_BASE_ADDRS { USBFSH_BASE }\r
- /** Array initializer of USBFSH peripheral base pointers */\r
- #define USBFSH_BASE_PTRS { USBFSH }\r
- /** Array initializer of USBFSH peripheral base addresses */\r
- #define USBFSH_BASE_ADDRS_NS { USBFSH_BASE_NS }\r
- /** Array initializer of USBFSH peripheral base pointers */\r
- #define USBFSH_BASE_PTRS_NS { USBFSH_NS }\r
+/** Peripheral USBFSH base address */\r
+#define USBFSH_BASE (0x500A2000u)\r
+/** Peripheral USBFSH base address */\r
+#define USBFSH_BASE_NS (0x400A2000u)\r
+/** Peripheral USBFSH base pointer */\r
+#define USBFSH ((USBFSH_Type *)USBFSH_BASE)\r
+/** Peripheral USBFSH base pointer */\r
+#define USBFSH_NS ((USBFSH_Type *)USBFSH_BASE_NS)\r
+/** Array initializer of USBFSH peripheral base addresses */\r
+#define USBFSH_BASE_ADDRS \\r
+ { \\r
+ USBFSH_BASE \\r
+ }\r
+/** Array initializer of USBFSH peripheral base pointers */\r
+#define USBFSH_BASE_PTRS \\r
+ { \\r
+ USBFSH \\r
+ }\r
+/** Array initializer of USBFSH peripheral base addresses */\r
+#define USBFSH_BASE_ADDRS_NS \\r
+ { \\r
+ USBFSH_BASE_NS \\r
+ }\r
+/** Array initializer of USBFSH peripheral base pointers */\r
+#define USBFSH_BASE_PTRS_NS \\r
+ { \\r
+ USBFSH_NS \\r
+ }\r
#else\r
- /** Peripheral USBFSH base address */\r
- #define USBFSH_BASE (0x400A2000u)\r
- /** Peripheral USBFSH base pointer */\r
- #define USBFSH ((USBFSH_Type *)USBFSH_BASE)\r
- /** Array initializer of USBFSH peripheral base addresses */\r
- #define USBFSH_BASE_ADDRS { USBFSH_BASE }\r
- /** Array initializer of USBFSH peripheral base pointers */\r
- #define USBFSH_BASE_PTRS { USBFSH }\r
+/** Peripheral USBFSH base address */\r
+#define USBFSH_BASE (0x400A2000u)\r
+/** Peripheral USBFSH base pointer */\r
+#define USBFSH ((USBFSH_Type *)USBFSH_BASE)\r
+/** Array initializer of USBFSH peripheral base addresses */\r
+#define USBFSH_BASE_ADDRS \\r
+ { \\r
+ USBFSH_BASE \\r
+ }\r
+/** Array initializer of USBFSH peripheral base pointers */\r
+#define USBFSH_BASE_PTRS \\r
+ { \\r
+ USBFSH \\r
+ }\r
#endif\r
/** Interrupt vectors for the USBFSH peripheral type */\r
-#define USBFSH_IRQS { USB0_IRQn }\r
-#define USBFSH_NEEDCLK_IRQS { USB0_NEEDCLK_IRQn }\r
+#define USBFSH_IRQS \\r
+ { \\r
+ USB0_IRQn \\r
+ }\r
+#define USBFSH_NEEDCLK_IRQS \\r
+ { \\r
+ USB0_NEEDCLK_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group USBFSH_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- USBHSD Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** USBHSD - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t DEVCMDSTAT; /**< USB Device Command/Status register, offset: 0x0 */\r
- __I uint32_t INFO; /**< USB Info register, offset: 0x4 */\r
- __IO uint32_t EPLISTSTART; /**< USB EP Command/Status List start address, offset: 0x8 */\r
- __IO uint32_t DATABUFSTART; /**< USB Data buffer start address, offset: 0xC */\r
- __IO uint32_t LPM; /**< USB Link Power Management register, offset: 0x10 */\r
- __IO uint32_t EPSKIP; /**< USB Endpoint skip, offset: 0x14 */\r
- __IO uint32_t EPINUSE; /**< USB Endpoint Buffer in use, offset: 0x18 */\r
- __IO uint32_t EPBUFCFG; /**< USB Endpoint Buffer Configuration register, offset: 0x1C */\r
- __IO uint32_t INTSTAT; /**< USB interrupt status register, offset: 0x20 */\r
- __IO uint32_t INTEN; /**< USB interrupt enable register, offset: 0x24 */\r
- __IO uint32_t INTSETSTAT; /**< USB set interrupt status register, offset: 0x28 */\r
- uint8_t RESERVED_0[8];\r
- __I uint32_t EPTOGGLE; /**< USB Endpoint toggle register, offset: 0x34 */\r
- uint8_t RESERVED_1[4];\r
- __IO uint32_t ULPIDEBUG; /**< UTMI/ULPI debug register, offset: 0x3C */\r
+typedef struct\r
+{\r
+ __IO uint32_t DEVCMDSTAT; /**< USB Device Command/Status register, offset: 0x0 */\r
+ __I uint32_t INFO; /**< USB Info register, offset: 0x4 */\r
+ __IO uint32_t EPLISTSTART; /**< USB EP Command/Status List start address, offset: 0x8 */\r
+ __IO uint32_t DATABUFSTART; /**< USB Data buffer start address, offset: 0xC */\r
+ __IO uint32_t LPM; /**< USB Link Power Management register, offset: 0x10 */\r
+ __IO uint32_t EPSKIP; /**< USB Endpoint skip, offset: 0x14 */\r
+ __IO uint32_t EPINUSE; /**< USB Endpoint Buffer in use, offset: 0x18 */\r
+ __IO uint32_t EPBUFCFG; /**< USB Endpoint Buffer Configuration register, offset: 0x1C */\r
+ __IO uint32_t INTSTAT; /**< USB interrupt status register, offset: 0x20 */\r
+ __IO uint32_t INTEN; /**< USB interrupt enable register, offset: 0x24 */\r
+ __IO uint32_t INTSETSTAT; /**< USB set interrupt status register, offset: 0x28 */\r
+ uint8_t RESERVED_0[8];\r
+ __I uint32_t EPTOGGLE; /**< USB Endpoint toggle register, offset: 0x34 */\r
} USBHSD_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name DEVCMDSTAT - USB Device Command/Status register */\r
/*! @{ */\r
-#define USBHSD_DEVCMDSTAT_DEV_ADDR_MASK (0x7FU)\r
-#define USBHSD_DEVCMDSTAT_DEV_ADDR_SHIFT (0U)\r
-#define USBHSD_DEVCMDSTAT_DEV_ADDR(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DEV_ADDR_SHIFT)) & USBHSD_DEVCMDSTAT_DEV_ADDR_MASK)\r
-#define USBHSD_DEVCMDSTAT_DEV_EN_MASK (0x80U)\r
-#define USBHSD_DEVCMDSTAT_DEV_EN_SHIFT (7U)\r
-#define USBHSD_DEVCMDSTAT_DEV_EN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DEV_EN_SHIFT)) & USBHSD_DEVCMDSTAT_DEV_EN_MASK)\r
-#define USBHSD_DEVCMDSTAT_SETUP_MASK (0x100U)\r
-#define USBHSD_DEVCMDSTAT_SETUP_SHIFT (8U)\r
-#define USBHSD_DEVCMDSTAT_SETUP(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_SETUP_SHIFT)) & USBHSD_DEVCMDSTAT_SETUP_MASK)\r
-#define USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_MASK (0x200U)\r
-#define USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_SHIFT (9U)\r
-#define USBHSD_DEVCMDSTAT_FORCE_NEEDCLK(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_SHIFT)) & USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_MASK)\r
-#define USBHSD_DEVCMDSTAT_FORCE_VBUS_MASK (0x400U)\r
-#define USBHSD_DEVCMDSTAT_FORCE_VBUS_SHIFT (10U)\r
-#define USBHSD_DEVCMDSTAT_FORCE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_FORCE_VBUS_SHIFT)) & USBHSD_DEVCMDSTAT_FORCE_VBUS_MASK)\r
-#define USBHSD_DEVCMDSTAT_LPM_SUP_MASK (0x800U)\r
-#define USBHSD_DEVCMDSTAT_LPM_SUP_SHIFT (11U)\r
-#define USBHSD_DEVCMDSTAT_LPM_SUP(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_LPM_SUP_SHIFT)) & USBHSD_DEVCMDSTAT_LPM_SUP_MASK)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_AO_MASK (0x1000U)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_AO_SHIFT (12U)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_AO(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_INTONNAK_AO_SHIFT)) & USBHSD_DEVCMDSTAT_INTONNAK_AO_MASK)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_AI_MASK (0x2000U)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_AI_SHIFT (13U)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_AI(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_INTONNAK_AI_SHIFT)) & USBHSD_DEVCMDSTAT_INTONNAK_AI_MASK)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_CO_MASK (0x4000U)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_CO_SHIFT (14U)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_CO(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_INTONNAK_CO_SHIFT)) & USBHSD_DEVCMDSTAT_INTONNAK_CO_MASK)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_CI_MASK (0x8000U)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_CI_SHIFT (15U)\r
-#define USBHSD_DEVCMDSTAT_INTONNAK_CI(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_INTONNAK_CI_SHIFT)) & USBHSD_DEVCMDSTAT_INTONNAK_CI_MASK)\r
-#define USBHSD_DEVCMDSTAT_DCON_MASK (0x10000U)\r
-#define USBHSD_DEVCMDSTAT_DCON_SHIFT (16U)\r
-#define USBHSD_DEVCMDSTAT_DCON(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DCON_SHIFT)) & USBHSD_DEVCMDSTAT_DCON_MASK)\r
-#define USBHSD_DEVCMDSTAT_DSUS_MASK (0x20000U)\r
-#define USBHSD_DEVCMDSTAT_DSUS_SHIFT (17U)\r
-#define USBHSD_DEVCMDSTAT_DSUS(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DSUS_SHIFT)) & USBHSD_DEVCMDSTAT_DSUS_MASK)\r
-#define USBHSD_DEVCMDSTAT_LPM_SUS_MASK (0x80000U)\r
-#define USBHSD_DEVCMDSTAT_LPM_SUS_SHIFT (19U)\r
-#define USBHSD_DEVCMDSTAT_LPM_SUS(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_LPM_SUS_SHIFT)) & USBHSD_DEVCMDSTAT_LPM_SUS_MASK)\r
-#define USBHSD_DEVCMDSTAT_LPM_REWP_MASK (0x100000U)\r
-#define USBHSD_DEVCMDSTAT_LPM_REWP_SHIFT (20U)\r
-#define USBHSD_DEVCMDSTAT_LPM_REWP(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_LPM_REWP_SHIFT)) & USBHSD_DEVCMDSTAT_LPM_REWP_MASK)\r
-#define USBHSD_DEVCMDSTAT_Speed_MASK (0xC00000U)\r
-#define USBHSD_DEVCMDSTAT_Speed_SHIFT (22U)\r
-#define USBHSD_DEVCMDSTAT_Speed(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_Speed_SHIFT)) & USBHSD_DEVCMDSTAT_Speed_MASK)\r
-#define USBHSD_DEVCMDSTAT_DCON_C_MASK (0x1000000U)\r
-#define USBHSD_DEVCMDSTAT_DCON_C_SHIFT (24U)\r
-#define USBHSD_DEVCMDSTAT_DCON_C(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DCON_C_SHIFT)) & USBHSD_DEVCMDSTAT_DCON_C_MASK)\r
-#define USBHSD_DEVCMDSTAT_DSUS_C_MASK (0x2000000U)\r
-#define USBHSD_DEVCMDSTAT_DSUS_C_SHIFT (25U)\r
-#define USBHSD_DEVCMDSTAT_DSUS_C(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DSUS_C_SHIFT)) & USBHSD_DEVCMDSTAT_DSUS_C_MASK)\r
-#define USBHSD_DEVCMDSTAT_DRES_C_MASK (0x4000000U)\r
-#define USBHSD_DEVCMDSTAT_DRES_C_SHIFT (26U)\r
-#define USBHSD_DEVCMDSTAT_DRES_C(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DRES_C_SHIFT)) & USBHSD_DEVCMDSTAT_DRES_C_MASK)\r
-#define USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED_MASK (0x10000000U)\r
-#define USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED_SHIFT (28U)\r
-#define USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED_SHIFT)) & USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED_MASK)\r
-#define USBHSD_DEVCMDSTAT_PHY_TEST_MODE_MASK (0xE0000000U)\r
-#define USBHSD_DEVCMDSTAT_PHY_TEST_MODE_SHIFT (29U)\r
-#define USBHSD_DEVCMDSTAT_PHY_TEST_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_PHY_TEST_MODE_SHIFT)) & USBHSD_DEVCMDSTAT_PHY_TEST_MODE_MASK)\r
+#define USBHSD_DEVCMDSTAT_DEV_ADDR_MASK (0x7FU)\r
+#define USBHSD_DEVCMDSTAT_DEV_ADDR_SHIFT (0U)\r
+/*! DEV_ADDR - USB device address.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_DEV_ADDR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DEV_ADDR_SHIFT)) & USBHSD_DEVCMDSTAT_DEV_ADDR_MASK)\r
+#define USBHSD_DEVCMDSTAT_DEV_EN_MASK (0x80U)\r
+#define USBHSD_DEVCMDSTAT_DEV_EN_SHIFT (7U)\r
+/*! DEV_EN - USB device enable.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_DEV_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DEV_EN_SHIFT)) & USBHSD_DEVCMDSTAT_DEV_EN_MASK)\r
+#define USBHSD_DEVCMDSTAT_SETUP_MASK (0x100U)\r
+#define USBHSD_DEVCMDSTAT_SETUP_SHIFT (8U)\r
+/*! SETUP - SETUP token received.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_SETUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_SETUP_SHIFT)) & USBHSD_DEVCMDSTAT_SETUP_MASK)\r
+#define USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_MASK (0x200U)\r
+#define USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_SHIFT (9U)\r
+/*! FORCE_NEEDCLK - Forces the NEEDCLK output to always be on:.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_FORCE_NEEDCLK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_SHIFT)) & USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_MASK)\r
+#define USBHSD_DEVCMDSTAT_LPM_SUP_MASK (0x800U)\r
+#define USBHSD_DEVCMDSTAT_LPM_SUP_SHIFT (11U)\r
+/*! LPM_SUP - LPM Supported:.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_LPM_SUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_LPM_SUP_SHIFT)) & USBHSD_DEVCMDSTAT_LPM_SUP_MASK)\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_AO_MASK (0x1000U)\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_AO_SHIFT (12U)\r
+/*! INTONNAK_AO - Interrupt on NAK for interrupt and bulk OUT EP:.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_AO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_INTONNAK_AO_SHIFT)) & USBHSD_DEVCMDSTAT_INTONNAK_AO_MASK)\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_AI_MASK (0x2000U)\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_AI_SHIFT (13U)\r
+/*! INTONNAK_AI - Interrupt on NAK for interrupt and bulk IN EP:.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_AI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_INTONNAK_AI_SHIFT)) & USBHSD_DEVCMDSTAT_INTONNAK_AI_MASK)\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_CO_MASK (0x4000U)\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_CO_SHIFT (14U)\r
+/*! INTONNAK_CO - Interrupt on NAK for control OUT EP:.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_CO(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_INTONNAK_CO_SHIFT)) & USBHSD_DEVCMDSTAT_INTONNAK_CO_MASK)\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_CI_MASK (0x8000U)\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_CI_SHIFT (15U)\r
+/*! INTONNAK_CI - Interrupt on NAK for control IN EP:.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_INTONNAK_CI(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_INTONNAK_CI_SHIFT)) & USBHSD_DEVCMDSTAT_INTONNAK_CI_MASK)\r
+#define USBHSD_DEVCMDSTAT_DCON_MASK (0x10000U)\r
+#define USBHSD_DEVCMDSTAT_DCON_SHIFT (16U)\r
+/*! DCON - Device status - connect.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_DCON(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DCON_SHIFT)) & USBHSD_DEVCMDSTAT_DCON_MASK)\r
+#define USBHSD_DEVCMDSTAT_DSUS_MASK (0x20000U)\r
+#define USBHSD_DEVCMDSTAT_DSUS_SHIFT (17U)\r
+/*! DSUS - Device status - suspend.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_DSUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DSUS_SHIFT)) & USBHSD_DEVCMDSTAT_DSUS_MASK)\r
+#define USBHSD_DEVCMDSTAT_LPM_SUS_MASK (0x80000U)\r
+#define USBHSD_DEVCMDSTAT_LPM_SUS_SHIFT (19U)\r
+/*! LPM_SUS - Device status - LPM Suspend.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_LPM_SUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_LPM_SUS_SHIFT)) & USBHSD_DEVCMDSTAT_LPM_SUS_MASK)\r
+#define USBHSD_DEVCMDSTAT_LPM_REWP_MASK (0x100000U)\r
+#define USBHSD_DEVCMDSTAT_LPM_REWP_SHIFT (20U)\r
+/*! LPM_REWP - LPM Remote Wake-up Enabled by USB host.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_LPM_REWP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_LPM_REWP_SHIFT)) & USBHSD_DEVCMDSTAT_LPM_REWP_MASK)\r
+#define USBHSD_DEVCMDSTAT_Speed_MASK (0xC00000U)\r
+#define USBHSD_DEVCMDSTAT_Speed_SHIFT (22U)\r
+/*! Speed - This field indicates the speed at which the device operates: 00b: reserved 01b:\r
+ * full-speed 10b: high-speed 11b: super-speed (reserved for future use).\r
+ */\r
+#define USBHSD_DEVCMDSTAT_Speed(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_Speed_SHIFT)) & USBHSD_DEVCMDSTAT_Speed_MASK)\r
+#define USBHSD_DEVCMDSTAT_DCON_C_MASK (0x1000000U)\r
+#define USBHSD_DEVCMDSTAT_DCON_C_SHIFT (24U)\r
+/*! DCON_C - Device status - connect change.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_DCON_C(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DCON_C_SHIFT)) & USBHSD_DEVCMDSTAT_DCON_C_MASK)\r
+#define USBHSD_DEVCMDSTAT_DSUS_C_MASK (0x2000000U)\r
+#define USBHSD_DEVCMDSTAT_DSUS_C_SHIFT (25U)\r
+/*! DSUS_C - Device status - suspend change.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_DSUS_C(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DSUS_C_SHIFT)) & USBHSD_DEVCMDSTAT_DSUS_C_MASK)\r
+#define USBHSD_DEVCMDSTAT_DRES_C_MASK (0x4000000U)\r
+#define USBHSD_DEVCMDSTAT_DRES_C_SHIFT (26U)\r
+/*! DRES_C - Device status - reset change.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_DRES_C(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_DRES_C_SHIFT)) & USBHSD_DEVCMDSTAT_DRES_C_MASK)\r
+#define USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED_MASK (0x10000000U)\r
+#define USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED_SHIFT (28U)\r
+/*! VBUS_DEBOUNCED - This bit indicates if VBUS is detected or not.\r
+ */\r
+#define USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED_SHIFT)) & USBHSD_DEVCMDSTAT_VBUS_DEBOUNCED_MASK)\r
+#define USBHSD_DEVCMDSTAT_PHY_TEST_MODE_MASK (0xE0000000U)\r
+#define USBHSD_DEVCMDSTAT_PHY_TEST_MODE_SHIFT (29U)\r
+/*! PHY_TEST_MODE - This field is written by firmware to put the PHY into a test mode as defined by the USB2.0\r
+ * specification\r
+ */\r
+#define USBHSD_DEVCMDSTAT_PHY_TEST_MODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DEVCMDSTAT_PHY_TEST_MODE_SHIFT)) & USBHSD_DEVCMDSTAT_PHY_TEST_MODE_MASK)\r
/*! @} */\r
\r
/*! @name INFO - USB Info register */\r
/*! @{ */\r
-#define USBHSD_INFO_FRAME_NR_MASK (0x7FFU)\r
-#define USBHSD_INFO_FRAME_NR_SHIFT (0U)\r
-#define USBHSD_INFO_FRAME_NR(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INFO_FRAME_NR_SHIFT)) & USBHSD_INFO_FRAME_NR_MASK)\r
-#define USBHSD_INFO_ERR_CODE_MASK (0x7800U)\r
-#define USBHSD_INFO_ERR_CODE_SHIFT (11U)\r
-#define USBHSD_INFO_ERR_CODE(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INFO_ERR_CODE_SHIFT)) & USBHSD_INFO_ERR_CODE_MASK)\r
-#define USBHSD_INFO_Minrev_MASK (0xFF0000U)\r
-#define USBHSD_INFO_Minrev_SHIFT (16U)\r
-#define USBHSD_INFO_Minrev(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INFO_Minrev_SHIFT)) & USBHSD_INFO_Minrev_MASK)\r
-#define USBHSD_INFO_Majrev_MASK (0xFF000000U)\r
-#define USBHSD_INFO_Majrev_SHIFT (24U)\r
-#define USBHSD_INFO_Majrev(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INFO_Majrev_SHIFT)) & USBHSD_INFO_Majrev_MASK)\r
+#define USBHSD_INFO_FRAME_NR_MASK (0x7FFU)\r
+#define USBHSD_INFO_FRAME_NR_SHIFT (0U)\r
+/*! FRAME_NR - Frame number.\r
+ */\r
+#define USBHSD_INFO_FRAME_NR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INFO_FRAME_NR_SHIFT)) & USBHSD_INFO_FRAME_NR_MASK)\r
+#define USBHSD_INFO_ERR_CODE_MASK (0x7800U)\r
+#define USBHSD_INFO_ERR_CODE_SHIFT (11U)\r
+/*! ERR_CODE - The error code which last occurred:.\r
+ */\r
+#define USBHSD_INFO_ERR_CODE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INFO_ERR_CODE_SHIFT)) & USBHSD_INFO_ERR_CODE_MASK)\r
+#define USBHSD_INFO_MINREV_MASK (0xFF0000U)\r
+#define USBHSD_INFO_MINREV_SHIFT (16U)\r
+/*! MINREV - Minor revision.\r
+ */\r
+#define USBHSD_INFO_MINREV(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INFO_MINREV_SHIFT)) & USBHSD_INFO_MINREV_MASK)\r
+#define USBHSD_INFO_MAJREV_MASK (0xFF000000U)\r
+#define USBHSD_INFO_MAJREV_SHIFT (24U)\r
+/*! MAJREV - Major revision.\r
+ */\r
+#define USBHSD_INFO_MAJREV(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INFO_MAJREV_SHIFT)) & USBHSD_INFO_MAJREV_MASK)\r
/*! @} */\r
\r
/*! @name EPLISTSTART - USB EP Command/Status List start address */\r
/*! @{ */\r
-#define USBHSD_EPLISTSTART_EP_LIST_PRG_MASK (0xFFF00U)\r
-#define USBHSD_EPLISTSTART_EP_LIST_PRG_SHIFT (8U)\r
-#define USBHSD_EPLISTSTART_EP_LIST_PRG(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_EPLISTSTART_EP_LIST_PRG_SHIFT)) & USBHSD_EPLISTSTART_EP_LIST_PRG_MASK)\r
-#define USBHSD_EPLISTSTART_EP_LIST_FIXED_MASK (0xFFF00000U)\r
-#define USBHSD_EPLISTSTART_EP_LIST_FIXED_SHIFT (20U)\r
-#define USBHSD_EPLISTSTART_EP_LIST_FIXED(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_EPLISTSTART_EP_LIST_FIXED_SHIFT)) & USBHSD_EPLISTSTART_EP_LIST_FIXED_MASK)\r
+#define USBHSD_EPLISTSTART_EP_LIST_PRG_MASK (0xFFF00U)\r
+#define USBHSD_EPLISTSTART_EP_LIST_PRG_SHIFT (8U)\r
+/*! EP_LIST_PRG - Programmable portion of the USB EP Command/Status List address.\r
+ */\r
+#define USBHSD_EPLISTSTART_EP_LIST_PRG(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_EPLISTSTART_EP_LIST_PRG_SHIFT)) & USBHSD_EPLISTSTART_EP_LIST_PRG_MASK)\r
+#define USBHSD_EPLISTSTART_EP_LIST_FIXED_MASK (0xFFF00000U)\r
+#define USBHSD_EPLISTSTART_EP_LIST_FIXED_SHIFT (20U)\r
+/*! EP_LIST_FIXED - Fixed portion of USB EP Command/Status List address.\r
+ */\r
+#define USBHSD_EPLISTSTART_EP_LIST_FIXED(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_EPLISTSTART_EP_LIST_FIXED_SHIFT)) & USBHSD_EPLISTSTART_EP_LIST_FIXED_MASK)\r
/*! @} */\r
\r
/*! @name DATABUFSTART - USB Data buffer start address */\r
/*! @{ */\r
-#define USBHSD_DATABUFSTART_DA_BUF_MASK (0xFFFFFFFFU)\r
-#define USBHSD_DATABUFSTART_DA_BUF_SHIFT (0U)\r
-#define USBHSD_DATABUFSTART_DA_BUF(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_DATABUFSTART_DA_BUF_SHIFT)) & USBHSD_DATABUFSTART_DA_BUF_MASK)\r
+#define USBHSD_DATABUFSTART_DA_BUF_MASK (0xFFFFFFFFU)\r
+#define USBHSD_DATABUFSTART_DA_BUF_SHIFT (0U)\r
+/*! DA_BUF - Start address of the memory page where all endpoint data buffers are located.\r
+ */\r
+#define USBHSD_DATABUFSTART_DA_BUF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_DATABUFSTART_DA_BUF_SHIFT)) & USBHSD_DATABUFSTART_DA_BUF_MASK)\r
/*! @} */\r
\r
/*! @name LPM - USB Link Power Management register */\r
/*! @{ */\r
-#define USBHSD_LPM_HIRD_HW_MASK (0xFU)\r
-#define USBHSD_LPM_HIRD_HW_SHIFT (0U)\r
-#define USBHSD_LPM_HIRD_HW(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_LPM_HIRD_HW_SHIFT)) & USBHSD_LPM_HIRD_HW_MASK)\r
-#define USBHSD_LPM_HIRD_SW_MASK (0xF0U)\r
-#define USBHSD_LPM_HIRD_SW_SHIFT (4U)\r
-#define USBHSD_LPM_HIRD_SW(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_LPM_HIRD_SW_SHIFT)) & USBHSD_LPM_HIRD_SW_MASK)\r
-#define USBHSD_LPM_DATA_PENDING_MASK (0x100U)\r
-#define USBHSD_LPM_DATA_PENDING_SHIFT (8U)\r
-#define USBHSD_LPM_DATA_PENDING(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_LPM_DATA_PENDING_SHIFT)) & USBHSD_LPM_DATA_PENDING_MASK)\r
+#define USBHSD_LPM_HIRD_HW_MASK (0xFU)\r
+#define USBHSD_LPM_HIRD_HW_SHIFT (0U)\r
+/*! HIRD_HW - Host Initiated Resume Duration - HW.\r
+ */\r
+#define USBHSD_LPM_HIRD_HW(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_LPM_HIRD_HW_SHIFT)) & USBHSD_LPM_HIRD_HW_MASK)\r
+#define USBHSD_LPM_HIRD_SW_MASK (0xF0U)\r
+#define USBHSD_LPM_HIRD_SW_SHIFT (4U)\r
+/*! HIRD_SW - Host Initiated Resume Duration - SW.\r
+ */\r
+#define USBHSD_LPM_HIRD_SW(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_LPM_HIRD_SW_SHIFT)) & USBHSD_LPM_HIRD_SW_MASK)\r
+#define USBHSD_LPM_DATA_PENDING_MASK (0x100U)\r
+#define USBHSD_LPM_DATA_PENDING_SHIFT (8U)\r
+/*! DATA_PENDING - As long as this bit is set to one and LPM supported bit is set to one, HW will\r
+ * return a NYET handshake on every LPM token it receives.\r
+ */\r
+#define USBHSD_LPM_DATA_PENDING(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_LPM_DATA_PENDING_SHIFT)) & USBHSD_LPM_DATA_PENDING_MASK)\r
/*! @} */\r
\r
/*! @name EPSKIP - USB Endpoint skip */\r
/*! @{ */\r
-#define USBHSD_EPSKIP_SKIP_MASK (0xFFFU)\r
-#define USBHSD_EPSKIP_SKIP_SHIFT (0U)\r
-#define USBHSD_EPSKIP_SKIP(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_EPSKIP_SKIP_SHIFT)) & USBHSD_EPSKIP_SKIP_MASK)\r
+#define USBHSD_EPSKIP_SKIP_MASK (0xFFFU)\r
+#define USBHSD_EPSKIP_SKIP_SHIFT (0U)\r
+/*! SKIP - Endpoint skip: Writing 1 to one of these bits, will indicate to HW that it must\r
+ * deactivate the buffer assigned to this endpoint and return control back to software.\r
+ */\r
+#define USBHSD_EPSKIP_SKIP(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_EPSKIP_SKIP_SHIFT)) & USBHSD_EPSKIP_SKIP_MASK)\r
/*! @} */\r
\r
/*! @name EPINUSE - USB Endpoint Buffer in use */\r
/*! @{ */\r
-#define USBHSD_EPINUSE_BUF_MASK (0xFFCU)\r
-#define USBHSD_EPINUSE_BUF_SHIFT (2U)\r
-#define USBHSD_EPINUSE_BUF(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_EPINUSE_BUF_SHIFT)) & USBHSD_EPINUSE_BUF_MASK)\r
+#define USBHSD_EPINUSE_BUF_MASK (0xFFCU)\r
+#define USBHSD_EPINUSE_BUF_SHIFT (2U)\r
+/*! BUF - Buffer in use: This register has one bit per physical endpoint.\r
+ */\r
+#define USBHSD_EPINUSE_BUF(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_EPINUSE_BUF_SHIFT)) & USBHSD_EPINUSE_BUF_MASK)\r
/*! @} */\r
\r
/*! @name EPBUFCFG - USB Endpoint Buffer Configuration register */\r
/*! @{ */\r
-#define USBHSD_EPBUFCFG_BUF_SB_MASK (0xFFCU)\r
-#define USBHSD_EPBUFCFG_BUF_SB_SHIFT (2U)\r
-#define USBHSD_EPBUFCFG_BUF_SB(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_EPBUFCFG_BUF_SB_SHIFT)) & USBHSD_EPBUFCFG_BUF_SB_MASK)\r
+#define USBHSD_EPBUFCFG_BUF_SB_MASK (0xFFCU)\r
+#define USBHSD_EPBUFCFG_BUF_SB_SHIFT (2U)\r
+/*! BUF_SB - Buffer usage: This register has one bit per physical endpoint.\r
+ */\r
+#define USBHSD_EPBUFCFG_BUF_SB(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_EPBUFCFG_BUF_SB_SHIFT)) & USBHSD_EPBUFCFG_BUF_SB_MASK)\r
/*! @} */\r
\r
/*! @name INTSTAT - USB interrupt status register */\r
/*! @{ */\r
-#define USBHSD_INTSTAT_EP0OUT_MASK (0x1U)\r
-#define USBHSD_INTSTAT_EP0OUT_SHIFT (0U)\r
-#define USBHSD_INTSTAT_EP0OUT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP0OUT_SHIFT)) & USBHSD_INTSTAT_EP0OUT_MASK)\r
-#define USBHSD_INTSTAT_EP0IN_MASK (0x2U)\r
-#define USBHSD_INTSTAT_EP0IN_SHIFT (1U)\r
-#define USBHSD_INTSTAT_EP0IN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP0IN_SHIFT)) & USBHSD_INTSTAT_EP0IN_MASK)\r
-#define USBHSD_INTSTAT_EP1OUT_MASK (0x4U)\r
-#define USBHSD_INTSTAT_EP1OUT_SHIFT (2U)\r
-#define USBHSD_INTSTAT_EP1OUT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP1OUT_SHIFT)) & USBHSD_INTSTAT_EP1OUT_MASK)\r
-#define USBHSD_INTSTAT_EP1IN_MASK (0x8U)\r
-#define USBHSD_INTSTAT_EP1IN_SHIFT (3U)\r
-#define USBHSD_INTSTAT_EP1IN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP1IN_SHIFT)) & USBHSD_INTSTAT_EP1IN_MASK)\r
-#define USBHSD_INTSTAT_EP2OUT_MASK (0x10U)\r
-#define USBHSD_INTSTAT_EP2OUT_SHIFT (4U)\r
-#define USBHSD_INTSTAT_EP2OUT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP2OUT_SHIFT)) & USBHSD_INTSTAT_EP2OUT_MASK)\r
-#define USBHSD_INTSTAT_EP2IN_MASK (0x20U)\r
-#define USBHSD_INTSTAT_EP2IN_SHIFT (5U)\r
-#define USBHSD_INTSTAT_EP2IN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP2IN_SHIFT)) & USBHSD_INTSTAT_EP2IN_MASK)\r
-#define USBHSD_INTSTAT_EP3OUT_MASK (0x40U)\r
-#define USBHSD_INTSTAT_EP3OUT_SHIFT (6U)\r
-#define USBHSD_INTSTAT_EP3OUT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP3OUT_SHIFT)) & USBHSD_INTSTAT_EP3OUT_MASK)\r
-#define USBHSD_INTSTAT_EP3IN_MASK (0x80U)\r
-#define USBHSD_INTSTAT_EP3IN_SHIFT (7U)\r
-#define USBHSD_INTSTAT_EP3IN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP3IN_SHIFT)) & USBHSD_INTSTAT_EP3IN_MASK)\r
-#define USBHSD_INTSTAT_EP4OUT_MASK (0x100U)\r
-#define USBHSD_INTSTAT_EP4OUT_SHIFT (8U)\r
-#define USBHSD_INTSTAT_EP4OUT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP4OUT_SHIFT)) & USBHSD_INTSTAT_EP4OUT_MASK)\r
-#define USBHSD_INTSTAT_EP4IN_MASK (0x200U)\r
-#define USBHSD_INTSTAT_EP4IN_SHIFT (9U)\r
-#define USBHSD_INTSTAT_EP4IN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP4IN_SHIFT)) & USBHSD_INTSTAT_EP4IN_MASK)\r
-#define USBHSD_INTSTAT_EP5OUT_MASK (0x400U)\r
-#define USBHSD_INTSTAT_EP5OUT_SHIFT (10U)\r
-#define USBHSD_INTSTAT_EP5OUT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP5OUT_SHIFT)) & USBHSD_INTSTAT_EP5OUT_MASK)\r
-#define USBHSD_INTSTAT_EP5IN_MASK (0x800U)\r
-#define USBHSD_INTSTAT_EP5IN_SHIFT (11U)\r
-#define USBHSD_INTSTAT_EP5IN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP5IN_SHIFT)) & USBHSD_INTSTAT_EP5IN_MASK)\r
-#define USBHSD_INTSTAT_FRAME_INT_MASK (0x40000000U)\r
-#define USBHSD_INTSTAT_FRAME_INT_SHIFT (30U)\r
-#define USBHSD_INTSTAT_FRAME_INT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_FRAME_INT_SHIFT)) & USBHSD_INTSTAT_FRAME_INT_MASK)\r
-#define USBHSD_INTSTAT_DEV_INT_MASK (0x80000000U)\r
-#define USBHSD_INTSTAT_DEV_INT_SHIFT (31U)\r
-#define USBHSD_INTSTAT_DEV_INT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_DEV_INT_SHIFT)) & USBHSD_INTSTAT_DEV_INT_MASK)\r
+#define USBHSD_INTSTAT_EP0OUT_MASK (0x1U)\r
+#define USBHSD_INTSTAT_EP0OUT_SHIFT (0U)\r
+/*! EP0OUT - Interrupt status register bit for the Control EP0 OUT direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP0OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP0OUT_SHIFT)) & USBHSD_INTSTAT_EP0OUT_MASK)\r
+#define USBHSD_INTSTAT_EP0IN_MASK (0x2U)\r
+#define USBHSD_INTSTAT_EP0IN_SHIFT (1U)\r
+/*! EP0IN - Interrupt status register bit for the Control EP0 IN direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP0IN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP0IN_SHIFT)) & USBHSD_INTSTAT_EP0IN_MASK)\r
+#define USBHSD_INTSTAT_EP1OUT_MASK (0x4U)\r
+#define USBHSD_INTSTAT_EP1OUT_SHIFT (2U)\r
+/*! EP1OUT - Interrupt status register bit for the EP1 OUT direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP1OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP1OUT_SHIFT)) & USBHSD_INTSTAT_EP1OUT_MASK)\r
+#define USBHSD_INTSTAT_EP1IN_MASK (0x8U)\r
+#define USBHSD_INTSTAT_EP1IN_SHIFT (3U)\r
+/*! EP1IN - Interrupt status register bit for the EP1 IN direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP1IN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP1IN_SHIFT)) & USBHSD_INTSTAT_EP1IN_MASK)\r
+#define USBHSD_INTSTAT_EP2OUT_MASK (0x10U)\r
+#define USBHSD_INTSTAT_EP2OUT_SHIFT (4U)\r
+/*! EP2OUT - Interrupt status register bit for the EP2 OUT direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP2OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP2OUT_SHIFT)) & USBHSD_INTSTAT_EP2OUT_MASK)\r
+#define USBHSD_INTSTAT_EP2IN_MASK (0x20U)\r
+#define USBHSD_INTSTAT_EP2IN_SHIFT (5U)\r
+/*! EP2IN - Interrupt status register bit for the EP2 IN direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP2IN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP2IN_SHIFT)) & USBHSD_INTSTAT_EP2IN_MASK)\r
+#define USBHSD_INTSTAT_EP3OUT_MASK (0x40U)\r
+#define USBHSD_INTSTAT_EP3OUT_SHIFT (6U)\r
+/*! EP3OUT - Interrupt status register bit for the EP3 OUT direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP3OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP3OUT_SHIFT)) & USBHSD_INTSTAT_EP3OUT_MASK)\r
+#define USBHSD_INTSTAT_EP3IN_MASK (0x80U)\r
+#define USBHSD_INTSTAT_EP3IN_SHIFT (7U)\r
+/*! EP3IN - Interrupt status register bit for the EP3 IN direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP3IN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP3IN_SHIFT)) & USBHSD_INTSTAT_EP3IN_MASK)\r
+#define USBHSD_INTSTAT_EP4OUT_MASK (0x100U)\r
+#define USBHSD_INTSTAT_EP4OUT_SHIFT (8U)\r
+/*! EP4OUT - Interrupt status register bit for the EP4 OUT direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP4OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP4OUT_SHIFT)) & USBHSD_INTSTAT_EP4OUT_MASK)\r
+#define USBHSD_INTSTAT_EP4IN_MASK (0x200U)\r
+#define USBHSD_INTSTAT_EP4IN_SHIFT (9U)\r
+/*! EP4IN - Interrupt status register bit for the EP4 IN direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP4IN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP4IN_SHIFT)) & USBHSD_INTSTAT_EP4IN_MASK)\r
+#define USBHSD_INTSTAT_EP5OUT_MASK (0x400U)\r
+#define USBHSD_INTSTAT_EP5OUT_SHIFT (10U)\r
+/*! EP5OUT - Interrupt status register bit for the EP5 OUT direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP5OUT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP5OUT_SHIFT)) & USBHSD_INTSTAT_EP5OUT_MASK)\r
+#define USBHSD_INTSTAT_EP5IN_MASK (0x800U)\r
+#define USBHSD_INTSTAT_EP5IN_SHIFT (11U)\r
+/*! EP5IN - Interrupt status register bit for the EP5 IN direction.\r
+ */\r
+#define USBHSD_INTSTAT_EP5IN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_EP5IN_SHIFT)) & USBHSD_INTSTAT_EP5IN_MASK)\r
+#define USBHSD_INTSTAT_FRAME_INT_MASK (0x40000000U)\r
+#define USBHSD_INTSTAT_FRAME_INT_SHIFT (30U)\r
+/*! FRAME_INT - Frame interrupt.\r
+ */\r
+#define USBHSD_INTSTAT_FRAME_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_FRAME_INT_SHIFT)) & USBHSD_INTSTAT_FRAME_INT_MASK)\r
+#define USBHSD_INTSTAT_DEV_INT_MASK (0x80000000U)\r
+#define USBHSD_INTSTAT_DEV_INT_SHIFT (31U)\r
+/*! DEV_INT - Device status interrupt.\r
+ */\r
+#define USBHSD_INTSTAT_DEV_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSTAT_DEV_INT_SHIFT)) & USBHSD_INTSTAT_DEV_INT_MASK)\r
/*! @} */\r
\r
/*! @name INTEN - USB interrupt enable register */\r
/*! @{ */\r
-#define USBHSD_INTEN_EP_INT_EN_MASK (0xFFFU)\r
-#define USBHSD_INTEN_EP_INT_EN_SHIFT (0U)\r
-#define USBHSD_INTEN_EP_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTEN_EP_INT_EN_SHIFT)) & USBHSD_INTEN_EP_INT_EN_MASK)\r
-#define USBHSD_INTEN_FRAME_INT_EN_MASK (0x40000000U)\r
-#define USBHSD_INTEN_FRAME_INT_EN_SHIFT (30U)\r
-#define USBHSD_INTEN_FRAME_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTEN_FRAME_INT_EN_SHIFT)) & USBHSD_INTEN_FRAME_INT_EN_MASK)\r
-#define USBHSD_INTEN_DEV_INT_EN_MASK (0x80000000U)\r
-#define USBHSD_INTEN_DEV_INT_EN_SHIFT (31U)\r
-#define USBHSD_INTEN_DEV_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTEN_DEV_INT_EN_SHIFT)) & USBHSD_INTEN_DEV_INT_EN_MASK)\r
+#define USBHSD_INTEN_EP_INT_EN_MASK (0xFFFU)\r
+#define USBHSD_INTEN_EP_INT_EN_SHIFT (0U)\r
+/*! EP_INT_EN - If this bit is set and the corresponding USB interrupt status bit is set, a HW\r
+ * interrupt is generated on the interrupt line.\r
+ */\r
+#define USBHSD_INTEN_EP_INT_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTEN_EP_INT_EN_SHIFT)) & USBHSD_INTEN_EP_INT_EN_MASK)\r
+#define USBHSD_INTEN_FRAME_INT_EN_MASK (0x40000000U)\r
+#define USBHSD_INTEN_FRAME_INT_EN_SHIFT (30U)\r
+/*! FRAME_INT_EN - If this bit is set and the corresponding USB interrupt status bit is set, a HW\r
+ * interrupt is generated on the interrupt line.\r
+ */\r
+#define USBHSD_INTEN_FRAME_INT_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTEN_FRAME_INT_EN_SHIFT)) & USBHSD_INTEN_FRAME_INT_EN_MASK)\r
+#define USBHSD_INTEN_DEV_INT_EN_MASK (0x80000000U)\r
+#define USBHSD_INTEN_DEV_INT_EN_SHIFT (31U)\r
+/*! DEV_INT_EN - If this bit is set and the corresponding USB interrupt status bit is set, a HW\r
+ * interrupt is generated on the interrupt line.\r
+ */\r
+#define USBHSD_INTEN_DEV_INT_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTEN_DEV_INT_EN_SHIFT)) & USBHSD_INTEN_DEV_INT_EN_MASK)\r
/*! @} */\r
\r
/*! @name INTSETSTAT - USB set interrupt status register */\r
/*! @{ */\r
-#define USBHSD_INTSETSTAT_EP_SET_INT_MASK (0xFFFU)\r
-#define USBHSD_INTSETSTAT_EP_SET_INT_SHIFT (0U)\r
-#define USBHSD_INTSETSTAT_EP_SET_INT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSETSTAT_EP_SET_INT_SHIFT)) & USBHSD_INTSETSTAT_EP_SET_INT_MASK)\r
-#define USBHSD_INTSETSTAT_FRAME_SET_INT_MASK (0x40000000U)\r
-#define USBHSD_INTSETSTAT_FRAME_SET_INT_SHIFT (30U)\r
-#define USBHSD_INTSETSTAT_FRAME_SET_INT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSETSTAT_FRAME_SET_INT_SHIFT)) & USBHSD_INTSETSTAT_FRAME_SET_INT_MASK)\r
-#define USBHSD_INTSETSTAT_DEV_SET_INT_MASK (0x80000000U)\r
-#define USBHSD_INTSETSTAT_DEV_SET_INT_SHIFT (31U)\r
-#define USBHSD_INTSETSTAT_DEV_SET_INT(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSETSTAT_DEV_SET_INT_SHIFT)) & USBHSD_INTSETSTAT_DEV_SET_INT_MASK)\r
+#define USBHSD_INTSETSTAT_EP_SET_INT_MASK (0xFFFU)\r
+#define USBHSD_INTSETSTAT_EP_SET_INT_SHIFT (0U)\r
+/*! EP_SET_INT - If software writes a one to one of these bits, the corresponding USB interrupt status bit is set.\r
+ */\r
+#define USBHSD_INTSETSTAT_EP_SET_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSETSTAT_EP_SET_INT_SHIFT)) & USBHSD_INTSETSTAT_EP_SET_INT_MASK)\r
+#define USBHSD_INTSETSTAT_FRAME_SET_INT_MASK (0x40000000U)\r
+#define USBHSD_INTSETSTAT_FRAME_SET_INT_SHIFT (30U)\r
+/*! FRAME_SET_INT - If software writes a one to one of these bits, the corresponding USB interrupt status bit is set.\r
+ */\r
+#define USBHSD_INTSETSTAT_FRAME_SET_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSETSTAT_FRAME_SET_INT_SHIFT)) & USBHSD_INTSETSTAT_FRAME_SET_INT_MASK)\r
+#define USBHSD_INTSETSTAT_DEV_SET_INT_MASK (0x80000000U)\r
+#define USBHSD_INTSETSTAT_DEV_SET_INT_SHIFT (31U)\r
+/*! DEV_SET_INT - If software writes a one to one of these bits, the corresponding USB interrupt status bit is set.\r
+ */\r
+#define USBHSD_INTSETSTAT_DEV_SET_INT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_INTSETSTAT_DEV_SET_INT_SHIFT)) & USBHSD_INTSETSTAT_DEV_SET_INT_MASK)\r
/*! @} */\r
\r
/*! @name EPTOGGLE - USB Endpoint toggle register */\r
/*! @{ */\r
-#define USBHSD_EPTOGGLE_TOGGLE_MASK (0x3FFFFFFFU)\r
-#define USBHSD_EPTOGGLE_TOGGLE_SHIFT (0U)\r
-#define USBHSD_EPTOGGLE_TOGGLE(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_EPTOGGLE_TOGGLE_SHIFT)) & USBHSD_EPTOGGLE_TOGGLE_MASK)\r
-/*! @} */\r
-\r
-/*! @name ULPIDEBUG - UTMI/ULPI debug register */\r
-/*! @{ */\r
-#define USBHSD_ULPIDEBUG_PHY_ADDR_MASK (0xFFU)\r
-#define USBHSD_ULPIDEBUG_PHY_ADDR_SHIFT (0U)\r
-#define USBHSD_ULPIDEBUG_PHY_ADDR(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_ULPIDEBUG_PHY_ADDR_SHIFT)) & USBHSD_ULPIDEBUG_PHY_ADDR_MASK)\r
-#define USBHSD_ULPIDEBUG_PHY_WDATA_MASK (0xFF00U)\r
-#define USBHSD_ULPIDEBUG_PHY_WDATA_SHIFT (8U)\r
-#define USBHSD_ULPIDEBUG_PHY_WDATA(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_ULPIDEBUG_PHY_WDATA_SHIFT)) & USBHSD_ULPIDEBUG_PHY_WDATA_MASK)\r
-#define USBHSD_ULPIDEBUG_PHY_RDATA_MASK (0xFF0000U)\r
-#define USBHSD_ULPIDEBUG_PHY_RDATA_SHIFT (16U)\r
-#define USBHSD_ULPIDEBUG_PHY_RDATA(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_ULPIDEBUG_PHY_RDATA_SHIFT)) & USBHSD_ULPIDEBUG_PHY_RDATA_MASK)\r
-#define USBHSD_ULPIDEBUG_PHY_RW_MASK (0x1000000U)\r
-#define USBHSD_ULPIDEBUG_PHY_RW_SHIFT (24U)\r
-#define USBHSD_ULPIDEBUG_PHY_RW(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_ULPIDEBUG_PHY_RW_SHIFT)) & USBHSD_ULPIDEBUG_PHY_RW_MASK)\r
-#define USBHSD_ULPIDEBUG_PHY_ACCESS_MASK (0x2000000U)\r
-#define USBHSD_ULPIDEBUG_PHY_ACCESS_SHIFT (25U)\r
-#define USBHSD_ULPIDEBUG_PHY_ACCESS(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_ULPIDEBUG_PHY_ACCESS_SHIFT)) & USBHSD_ULPIDEBUG_PHY_ACCESS_MASK)\r
-#define USBHSD_ULPIDEBUG_PHY_MODE_MASK (0x80000000U)\r
-#define USBHSD_ULPIDEBUG_PHY_MODE_SHIFT (31U)\r
-#define USBHSD_ULPIDEBUG_PHY_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBHSD_ULPIDEBUG_PHY_MODE_SHIFT)) & USBHSD_ULPIDEBUG_PHY_MODE_MASK)\r
+#define USBHSD_EPTOGGLE_TOGGLE_MASK (0x3FFFFFFFU)\r
+#define USBHSD_EPTOGGLE_TOGGLE_SHIFT (0U)\r
+/*! TOGGLE - Endpoint data toggle: This field indicates the current value of the data toggle for the corresponding\r
+ * endpoint.\r
+ */\r
+#define USBHSD_EPTOGGLE_TOGGLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSD_EPTOGGLE_TOGGLE_SHIFT)) & USBHSD_EPTOGGLE_TOGGLE_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group USBHSD_Register_Masks */\r
\r
-\r
/* USBHSD - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral USBHSD base address */\r
- #define USBHSD_BASE (0x50094000u)\r
- /** Peripheral USBHSD base address */\r
- #define USBHSD_BASE_NS (0x40094000u)\r
- /** Peripheral USBHSD base pointer */\r
- #define USBHSD ((USBHSD_Type *)USBHSD_BASE)\r
- /** Peripheral USBHSD base pointer */\r
- #define USBHSD_NS ((USBHSD_Type *)USBHSD_BASE_NS)\r
- /** Array initializer of USBHSD peripheral base addresses */\r
- #define USBHSD_BASE_ADDRS { USBHSD_BASE }\r
- /** Array initializer of USBHSD peripheral base pointers */\r
- #define USBHSD_BASE_PTRS { USBHSD }\r
- /** Array initializer of USBHSD peripheral base addresses */\r
- #define USBHSD_BASE_ADDRS_NS { USBHSD_BASE_NS }\r
- /** Array initializer of USBHSD peripheral base pointers */\r
- #define USBHSD_BASE_PTRS_NS { USBHSD_NS }\r
+/** Peripheral USBHSD base address */\r
+#define USBHSD_BASE (0x50094000u)\r
+/** Peripheral USBHSD base address */\r
+#define USBHSD_BASE_NS (0x40094000u)\r
+/** Peripheral USBHSD base pointer */\r
+#define USBHSD ((USBHSD_Type *)USBHSD_BASE)\r
+/** Peripheral USBHSD base pointer */\r
+#define USBHSD_NS ((USBHSD_Type *)USBHSD_BASE_NS)\r
+/** Array initializer of USBHSD peripheral base addresses */\r
+#define USBHSD_BASE_ADDRS \\r
+ { \\r
+ USBHSD_BASE \\r
+ }\r
+/** Array initializer of USBHSD peripheral base pointers */\r
+#define USBHSD_BASE_PTRS \\r
+ { \\r
+ USBHSD \\r
+ }\r
+/** Array initializer of USBHSD peripheral base addresses */\r
+#define USBHSD_BASE_ADDRS_NS \\r
+ { \\r
+ USBHSD_BASE_NS \\r
+ }\r
+/** Array initializer of USBHSD peripheral base pointers */\r
+#define USBHSD_BASE_PTRS_NS \\r
+ { \\r
+ USBHSD_NS \\r
+ }\r
#else\r
- /** Peripheral USBHSD base address */\r
- #define USBHSD_BASE (0x40094000u)\r
- /** Peripheral USBHSD base pointer */\r
- #define USBHSD ((USBHSD_Type *)USBHSD_BASE)\r
- /** Array initializer of USBHSD peripheral base addresses */\r
- #define USBHSD_BASE_ADDRS { USBHSD_BASE }\r
- /** Array initializer of USBHSD peripheral base pointers */\r
- #define USBHSD_BASE_PTRS { USBHSD }\r
+/** Peripheral USBHSD base address */\r
+#define USBHSD_BASE (0x40094000u)\r
+/** Peripheral USBHSD base pointer */\r
+#define USBHSD ((USBHSD_Type *)USBHSD_BASE)\r
+/** Array initializer of USBHSD peripheral base addresses */\r
+#define USBHSD_BASE_ADDRS \\r
+ { \\r
+ USBHSD_BASE \\r
+ }\r
+/** Array initializer of USBHSD peripheral base pointers */\r
+#define USBHSD_BASE_PTRS \\r
+ { \\r
+ USBHSD \\r
+ }\r
#endif\r
/** Interrupt vectors for the USBHSD peripheral type */\r
-#define USBHSD_IRQS { USB1_IRQn }\r
-#define USBHSD_NEEDCLK_IRQS { USB1_NEEDCLK_IRQn }\r
+#define USBHSD_IRQS \\r
+ { \\r
+ USB1_IRQn \\r
+ }\r
+#define USBHSD_NEEDCLK_IRQS \\r
+ { \\r
+ USB1_NEEDCLK_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group USBHSD_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- USBHSH Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** USBHSH - Register Layout Typedef */\r
-typedef struct {\r
- __I uint32_t CAPLENGTH_CHIPID; /**< This register contains the offset value towards the start of the operational register space and the version number of the IP block, offset: 0x0 */\r
- __I uint32_t HCSPARAMS; /**< Host Controller Structural Parameters, offset: 0x4 */\r
- __I uint32_t HCCPARAMS; /**< Host Controller Capability Parameters, offset: 0x8 */\r
- __IO uint32_t FLADJ_FRINDEX; /**< Frame Length Adjustment, offset: 0xC */\r
- __IO uint32_t ATL_PTD_BASE_ADDR; /**< Memory base address where ATL PTD0 is stored, offset: 0x10 */\r
- __IO uint32_t ISO_PTD_BASE_ADDR; /**< Memory base address where ISO PTD0 is stored, offset: 0x14 */\r
- __IO uint32_t INT_PTD_BASE_ADDR; /**< Memory base address where INT PTD0 is stored, offset: 0x18 */\r
- __IO uint32_t DATA_PAYLOAD_BASE_ADDR; /**< Memory base address that indicates the start of the data payload buffers, offset: 0x1C */\r
- __IO uint32_t USBCMD; /**< USB Command register, offset: 0x20 */\r
- __IO uint32_t USBSTS; /**< USB Interrupt Status register, offset: 0x24 */\r
- __IO uint32_t USBINTR; /**< USB Interrupt Enable register, offset: 0x28 */\r
- __IO uint32_t PORTSC1; /**< Port Status and Control register, offset: 0x2C */\r
- __IO uint32_t ATL_PTD_DONE_MAP; /**< Done map for each ATL PTD, offset: 0x30 */\r
- __IO uint32_t ATL_PTD_SKIP_MAP; /**< Skip map for each ATL PTD, offset: 0x34 */\r
- __IO uint32_t ISO_PTD_DONE_MAP; /**< Done map for each ISO PTD, offset: 0x38 */\r
- __IO uint32_t ISO_PTD_SKIP_MAP; /**< Skip map for each ISO PTD, offset: 0x3C */\r
- __IO uint32_t INT_PTD_DONE_MAP; /**< Done map for each INT PTD, offset: 0x40 */\r
- __IO uint32_t INT_PTD_SKIP_MAP; /**< Skip map for each INT PTD, offset: 0x44 */\r
- __IO uint32_t LAST_PTD_INUSE; /**< Marks the last PTD in the list for ISO, INT and ATL, offset: 0x48 */\r
- __IO uint32_t UTMIPLUS_ULPI_DEBUG; /**< Register to read/write registers in the attached USB PHY, offset: 0x4C */\r
- __IO uint32_t PORTMODE; /**< Controls the port if it is attached to the host block or the device block, offset: 0x50 */\r
+typedef struct\r
+{\r
+ __I uint32_t CAPLENGTH_CHIPID; /**< This register contains the offset value towards the start of the operational\r
+ register space and the version number of the IP block, offset: 0x0 */\r
+ __I uint32_t HCSPARAMS; /**< Host Controller Structural Parameters, offset: 0x4 */\r
+ uint8_t RESERVED_0[4];\r
+ __IO uint32_t FLADJ_FRINDEX; /**< Frame Length Adjustment, offset: 0xC */\r
+ __IO uint32_t ATLPTD; /**< Memory base address where ATL PTD0 is stored, offset: 0x10 */\r
+ __IO uint32_t ISOPTD; /**< Memory base address where ISO PTD0 is stored, offset: 0x14 */\r
+ __IO uint32_t INTPTD; /**< Memory base address where INT PTD0 is stored, offset: 0x18 */\r
+ __IO uint32_t\r
+ DATAPAYLOAD; /**< Memory base address that indicates the start of the data payload buffers, offset: 0x1C */\r
+ __IO uint32_t USBCMD; /**< USB Command register, offset: 0x20 */\r
+ __IO uint32_t USBSTS; /**< USB Interrupt Status register, offset: 0x24 */\r
+ __IO uint32_t USBINTR; /**< USB Interrupt Enable register, offset: 0x28 */\r
+ __IO uint32_t PORTSC1; /**< Port Status and Control register, offset: 0x2C */\r
+ __IO uint32_t ATLPTDD; /**< Done map for each ATL PTD, offset: 0x30 */\r
+ __IO uint32_t ATLPTDS; /**< Skip map for each ATL PTD, offset: 0x34 */\r
+ __IO uint32_t ISOPTDD; /**< Done map for each ISO PTD, offset: 0x38 */\r
+ __IO uint32_t ISOPTDS; /**< Skip map for each ISO PTD, offset: 0x3C */\r
+ __IO uint32_t INTPTDD; /**< Done map for each INT PTD, offset: 0x40 */\r
+ __IO uint32_t INTPTDS; /**< Skip map for each INT PTD, offset: 0x44 */\r
+ __IO uint32_t LASTPTD; /**< Marks the last PTD in the list for ISO, INT and ATL, offset: 0x48 */\r
+ uint8_t RESERVED_1[4];\r
+ __IO uint32_t\r
+ PORTMODE; /**< Controls the port if it is attached to the host block or the device block, offset: 0x50 */\r
} USBHSH_Type;\r
\r
/* ----------------------------------------------------------------------------\r
* @{\r
*/\r
\r
-/*! @name CAPLENGTH_CHIPID - This register contains the offset value towards the start of the operational register space and the version number of the IP block */\r
+/*! @name CAPLENGTH_CHIPID - This register contains the offset value towards the start of the operational register space\r
+ * and the version number of the IP block */\r
/*! @{ */\r
-#define USBHSH_CAPLENGTH_CHIPID_CAPLENGTH_MASK (0xFFU)\r
-#define USBHSH_CAPLENGTH_CHIPID_CAPLENGTH_SHIFT (0U)\r
-#define USBHSH_CAPLENGTH_CHIPID_CAPLENGTH(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_CAPLENGTH_CHIPID_CAPLENGTH_SHIFT)) & USBHSH_CAPLENGTH_CHIPID_CAPLENGTH_MASK)\r
-#define USBHSH_CAPLENGTH_CHIPID_CHIPID_MASK (0xFFFF0000U)\r
-#define USBHSH_CAPLENGTH_CHIPID_CHIPID_SHIFT (16U)\r
-#define USBHSH_CAPLENGTH_CHIPID_CHIPID(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_CAPLENGTH_CHIPID_CHIPID_SHIFT)) & USBHSH_CAPLENGTH_CHIPID_CHIPID_MASK)\r
+#define USBHSH_CAPLENGTH_CHIPID_CAPLENGTH_MASK (0xFFU)\r
+#define USBHSH_CAPLENGTH_CHIPID_CAPLENGTH_SHIFT (0U)\r
+/*! CAPLENGTH - Capability Length: This is used as an offset.\r
+ */\r
+#define USBHSH_CAPLENGTH_CHIPID_CAPLENGTH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_CAPLENGTH_CHIPID_CAPLENGTH_SHIFT)) & USBHSH_CAPLENGTH_CHIPID_CAPLENGTH_MASK)\r
+#define USBHSH_CAPLENGTH_CHIPID_CHIPID_MASK (0xFFFF0000U)\r
+#define USBHSH_CAPLENGTH_CHIPID_CHIPID_SHIFT (16U)\r
+/*! CHIPID - Chip identification: indicates major and minor revision of the IP: [31:24] = Major\r
+ * revision [23:16] = Minor revision Major revisions used: 0x01: USB2.\r
+ */\r
+#define USBHSH_CAPLENGTH_CHIPID_CHIPID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_CAPLENGTH_CHIPID_CHIPID_SHIFT)) & USBHSH_CAPLENGTH_CHIPID_CHIPID_MASK)\r
/*! @} */\r
\r
/*! @name HCSPARAMS - Host Controller Structural Parameters */\r
/*! @{ */\r
-#define USBHSH_HCSPARAMS_N_PORTS_MASK (0xFU)\r
-#define USBHSH_HCSPARAMS_N_PORTS_SHIFT (0U)\r
-#define USBHSH_HCSPARAMS_N_PORTS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_HCSPARAMS_N_PORTS_SHIFT)) & USBHSH_HCSPARAMS_N_PORTS_MASK)\r
-#define USBHSH_HCSPARAMS_PPC_MASK (0x10U)\r
-#define USBHSH_HCSPARAMS_PPC_SHIFT (4U)\r
-#define USBHSH_HCSPARAMS_PPC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_HCSPARAMS_PPC_SHIFT)) & USBHSH_HCSPARAMS_PPC_MASK)\r
-#define USBHSH_HCSPARAMS_P_INDICATOR_MASK (0x10000U)\r
-#define USBHSH_HCSPARAMS_P_INDICATOR_SHIFT (16U)\r
-#define USBHSH_HCSPARAMS_P_INDICATOR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_HCSPARAMS_P_INDICATOR_SHIFT)) & USBHSH_HCSPARAMS_P_INDICATOR_MASK)\r
-/*! @} */\r
-\r
-/*! @name HCCPARAMS - Host Controller Capability Parameters */\r
-/*! @{ */\r
-#define USBHSH_HCCPARAMS_LPMC_MASK (0x20000U)\r
-#define USBHSH_HCCPARAMS_LPMC_SHIFT (17U)\r
-#define USBHSH_HCCPARAMS_LPMC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_HCCPARAMS_LPMC_SHIFT)) & USBHSH_HCCPARAMS_LPMC_MASK)\r
+#define USBHSH_HCSPARAMS_N_PORTS_MASK (0xFU)\r
+#define USBHSH_HCSPARAMS_N_PORTS_SHIFT (0U)\r
+/*! N_PORTS - This register specifies the number of physical downstream ports implemented on this host controller.\r
+ */\r
+#define USBHSH_HCSPARAMS_N_PORTS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_HCSPARAMS_N_PORTS_SHIFT)) & USBHSH_HCSPARAMS_N_PORTS_MASK)\r
+#define USBHSH_HCSPARAMS_PPC_MASK (0x10U)\r
+#define USBHSH_HCSPARAMS_PPC_SHIFT (4U)\r
+/*! PPC - This field indicates whether the host controller implementation includes port power control.\r
+ */\r
+#define USBHSH_HCSPARAMS_PPC(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_HCSPARAMS_PPC_SHIFT)) & USBHSH_HCSPARAMS_PPC_MASK)\r
+#define USBHSH_HCSPARAMS_P_INDICATOR_MASK (0x10000U)\r
+#define USBHSH_HCSPARAMS_P_INDICATOR_SHIFT (16U)\r
+/*! P_INDICATOR - This bit indicates whether the ports support port indicator control.\r
+ */\r
+#define USBHSH_HCSPARAMS_P_INDICATOR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_HCSPARAMS_P_INDICATOR_SHIFT)) & USBHSH_HCSPARAMS_P_INDICATOR_MASK)\r
/*! @} */\r
\r
/*! @name FLADJ_FRINDEX - Frame Length Adjustment */\r
/*! @{ */\r
-#define USBHSH_FLADJ_FRINDEX_FLADJ_MASK (0x3FU)\r
-#define USBHSH_FLADJ_FRINDEX_FLADJ_SHIFT (0U)\r
-#define USBHSH_FLADJ_FRINDEX_FLADJ(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_FLADJ_FRINDEX_FLADJ_SHIFT)) & USBHSH_FLADJ_FRINDEX_FLADJ_MASK)\r
-#define USBHSH_FLADJ_FRINDEX_FRINDEX_MASK (0x3FFF0000U)\r
-#define USBHSH_FLADJ_FRINDEX_FRINDEX_SHIFT (16U)\r
-#define USBHSH_FLADJ_FRINDEX_FRINDEX(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_FLADJ_FRINDEX_FRINDEX_SHIFT)) & USBHSH_FLADJ_FRINDEX_FRINDEX_MASK)\r
+#define USBHSH_FLADJ_FRINDEX_FLADJ_MASK (0x3FU)\r
+#define USBHSH_FLADJ_FRINDEX_FLADJ_SHIFT (0U)\r
+/*! FLADJ - Frame Length Timing Value.\r
+ */\r
+#define USBHSH_FLADJ_FRINDEX_FLADJ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_FLADJ_FRINDEX_FLADJ_SHIFT)) & USBHSH_FLADJ_FRINDEX_FLADJ_MASK)\r
+#define USBHSH_FLADJ_FRINDEX_FRINDEX_MASK (0x3FFF0000U)\r
+#define USBHSH_FLADJ_FRINDEX_FRINDEX_SHIFT (16U)\r
+/*! FRINDEX - Frame Index: Bits 29 to16 in this register are used for the frame number field in the SOF packet.\r
+ */\r
+#define USBHSH_FLADJ_FRINDEX_FRINDEX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_FLADJ_FRINDEX_FRINDEX_SHIFT)) & USBHSH_FLADJ_FRINDEX_FRINDEX_MASK)\r
/*! @} */\r
\r
-/*! @name ATL_PTD_BASE_ADDR - Memory base address where ATL PTD0 is stored */\r
+/*! @name ATLPTD - Memory base address where ATL PTD0 is stored */\r
/*! @{ */\r
-#define USBHSH_ATL_PTD_BASE_ADDR_ATL_CUR_MASK (0x1F0U)\r
-#define USBHSH_ATL_PTD_BASE_ADDR_ATL_CUR_SHIFT (4U)\r
-#define USBHSH_ATL_PTD_BASE_ADDR_ATL_CUR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_ATL_PTD_BASE_ADDR_ATL_CUR_SHIFT)) & USBHSH_ATL_PTD_BASE_ADDR_ATL_CUR_MASK)\r
-#define USBHSH_ATL_PTD_BASE_ADDR_ATL_BASE_MASK (0xFFFFFE00U)\r
-#define USBHSH_ATL_PTD_BASE_ADDR_ATL_BASE_SHIFT (9U)\r
-#define USBHSH_ATL_PTD_BASE_ADDR_ATL_BASE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_ATL_PTD_BASE_ADDR_ATL_BASE_SHIFT)) & USBHSH_ATL_PTD_BASE_ADDR_ATL_BASE_MASK)\r
+#define USBHSH_ATLPTD_ATL_CUR_MASK (0x1F0U)\r
+#define USBHSH_ATLPTD_ATL_CUR_SHIFT (4U)\r
+/*! ATL_CUR - This indicates the current PTD that is used by the hardware when it is processing the ATL list.\r
+ */\r
+#define USBHSH_ATLPTD_ATL_CUR(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_ATLPTD_ATL_CUR_SHIFT)) & USBHSH_ATLPTD_ATL_CUR_MASK)\r
+#define USBHSH_ATLPTD_ATL_BASE_MASK (0xFFFFFE00U)\r
+#define USBHSH_ATLPTD_ATL_BASE_SHIFT (9U)\r
+/*! ATL_BASE - Base address to be used by the hardware to find the start of the ATL list.\r
+ */\r
+#define USBHSH_ATLPTD_ATL_BASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_ATLPTD_ATL_BASE_SHIFT)) & USBHSH_ATLPTD_ATL_BASE_MASK)\r
/*! @} */\r
\r
-/*! @name ISO_PTD_BASE_ADDR - Memory base address where ISO PTD0 is stored */\r
+/*! @name ISOPTD - Memory base address where ISO PTD0 is stored */\r
/*! @{ */\r
-#define USBHSH_ISO_PTD_BASE_ADDR_ISO_FIRST_MASK (0x3E0U)\r
-#define USBHSH_ISO_PTD_BASE_ADDR_ISO_FIRST_SHIFT (5U)\r
-#define USBHSH_ISO_PTD_BASE_ADDR_ISO_FIRST(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_ISO_PTD_BASE_ADDR_ISO_FIRST_SHIFT)) & USBHSH_ISO_PTD_BASE_ADDR_ISO_FIRST_MASK)\r
-#define USBHSH_ISO_PTD_BASE_ADDR_ISO_BASE_MASK (0xFFFFFC00U)\r
-#define USBHSH_ISO_PTD_BASE_ADDR_ISO_BASE_SHIFT (10U)\r
-#define USBHSH_ISO_PTD_BASE_ADDR_ISO_BASE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_ISO_PTD_BASE_ADDR_ISO_BASE_SHIFT)) & USBHSH_ISO_PTD_BASE_ADDR_ISO_BASE_MASK)\r
+#define USBHSH_ISOPTD_ISO_FIRST_MASK (0x3E0U)\r
+#define USBHSH_ISOPTD_ISO_FIRST_SHIFT (5U)\r
+/*! ISO_FIRST - This indicates the first PTD that is used by the hardware when it is processing the ISO list.\r
+ */\r
+#define USBHSH_ISOPTD_ISO_FIRST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_ISOPTD_ISO_FIRST_SHIFT)) & USBHSH_ISOPTD_ISO_FIRST_MASK)\r
+#define USBHSH_ISOPTD_ISO_BASE_MASK (0xFFFFFC00U)\r
+#define USBHSH_ISOPTD_ISO_BASE_SHIFT (10U)\r
+/*! ISO_BASE - Base address to be used by the hardware to find the start of the ISO list.\r
+ */\r
+#define USBHSH_ISOPTD_ISO_BASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_ISOPTD_ISO_BASE_SHIFT)) & USBHSH_ISOPTD_ISO_BASE_MASK)\r
/*! @} */\r
\r
-/*! @name INT_PTD_BASE_ADDR - Memory base address where INT PTD0 is stored */\r
+/*! @name INTPTD - Memory base address where INT PTD0 is stored */\r
/*! @{ */\r
-#define USBHSH_INT_PTD_BASE_ADDR_INT_FIRST_MASK (0x3E0U)\r
-#define USBHSH_INT_PTD_BASE_ADDR_INT_FIRST_SHIFT (5U)\r
-#define USBHSH_INT_PTD_BASE_ADDR_INT_FIRST(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_INT_PTD_BASE_ADDR_INT_FIRST_SHIFT)) & USBHSH_INT_PTD_BASE_ADDR_INT_FIRST_MASK)\r
-#define USBHSH_INT_PTD_BASE_ADDR_INT_BASE_MASK (0xFFFFFC00U)\r
-#define USBHSH_INT_PTD_BASE_ADDR_INT_BASE_SHIFT (10U)\r
-#define USBHSH_INT_PTD_BASE_ADDR_INT_BASE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_INT_PTD_BASE_ADDR_INT_BASE_SHIFT)) & USBHSH_INT_PTD_BASE_ADDR_INT_BASE_MASK)\r
+#define USBHSH_INTPTD_INT_FIRST_MASK (0x3E0U)\r
+#define USBHSH_INTPTD_INT_FIRST_SHIFT (5U)\r
+/*! INT_FIRST - This indicates the first PTD that is used by the hardware when it is processing the INT list.\r
+ */\r
+#define USBHSH_INTPTD_INT_FIRST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_INTPTD_INT_FIRST_SHIFT)) & USBHSH_INTPTD_INT_FIRST_MASK)\r
+#define USBHSH_INTPTD_INT_BASE_MASK (0xFFFFFC00U)\r
+#define USBHSH_INTPTD_INT_BASE_SHIFT (10U)\r
+/*! INT_BASE - Base address to be used by the hardware to find the start of the INT list.\r
+ */\r
+#define USBHSH_INTPTD_INT_BASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_INTPTD_INT_BASE_SHIFT)) & USBHSH_INTPTD_INT_BASE_MASK)\r
/*! @} */\r
\r
-/*! @name DATA_PAYLOAD_BASE_ADDR - Memory base address that indicates the start of the data payload buffers */\r
+/*! @name DATAPAYLOAD - Memory base address that indicates the start of the data payload buffers */\r
/*! @{ */\r
-#define USBHSH_DATA_PAYLOAD_BASE_ADDR_DAT_BASE_MASK (0xFFFF0000U)\r
-#define USBHSH_DATA_PAYLOAD_BASE_ADDR_DAT_BASE_SHIFT (16U)\r
-#define USBHSH_DATA_PAYLOAD_BASE_ADDR_DAT_BASE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_DATA_PAYLOAD_BASE_ADDR_DAT_BASE_SHIFT)) & USBHSH_DATA_PAYLOAD_BASE_ADDR_DAT_BASE_MASK)\r
+#define USBHSH_DATAPAYLOAD_DAT_BASE_MASK (0xFFFF0000U)\r
+#define USBHSH_DATAPAYLOAD_DAT_BASE_SHIFT (16U)\r
+/*! DAT_BASE - Base address to be used by the hardware to find the start of the data payload section.\r
+ */\r
+#define USBHSH_DATAPAYLOAD_DAT_BASE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_DATAPAYLOAD_DAT_BASE_SHIFT)) & USBHSH_DATAPAYLOAD_DAT_BASE_MASK)\r
/*! @} */\r
\r
/*! @name USBCMD - USB Command register */\r
/*! @{ */\r
-#define USBHSH_USBCMD_RS_MASK (0x1U)\r
-#define USBHSH_USBCMD_RS_SHIFT (0U)\r
-#define USBHSH_USBCMD_RS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_RS_SHIFT)) & USBHSH_USBCMD_RS_MASK)\r
-#define USBHSH_USBCMD_HCRESET_MASK (0x2U)\r
-#define USBHSH_USBCMD_HCRESET_SHIFT (1U)\r
-#define USBHSH_USBCMD_HCRESET(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_HCRESET_SHIFT)) & USBHSH_USBCMD_HCRESET_MASK)\r
-#define USBHSH_USBCMD_FLS_MASK (0xCU)\r
-#define USBHSH_USBCMD_FLS_SHIFT (2U)\r
-#define USBHSH_USBCMD_FLS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_FLS_SHIFT)) & USBHSH_USBCMD_FLS_MASK)\r
-#define USBHSH_USBCMD_LHCR_MASK (0x80U)\r
-#define USBHSH_USBCMD_LHCR_SHIFT (7U)\r
-#define USBHSH_USBCMD_LHCR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_LHCR_SHIFT)) & USBHSH_USBCMD_LHCR_MASK)\r
-#define USBHSH_USBCMD_ATL_EN_MASK (0x100U)\r
-#define USBHSH_USBCMD_ATL_EN_SHIFT (8U)\r
-#define USBHSH_USBCMD_ATL_EN(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_ATL_EN_SHIFT)) & USBHSH_USBCMD_ATL_EN_MASK)\r
-#define USBHSH_USBCMD_ISO_EN_MASK (0x200U)\r
-#define USBHSH_USBCMD_ISO_EN_SHIFT (9U)\r
-#define USBHSH_USBCMD_ISO_EN(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_ISO_EN_SHIFT)) & USBHSH_USBCMD_ISO_EN_MASK)\r
-#define USBHSH_USBCMD_INT_EN_MASK (0x400U)\r
-#define USBHSH_USBCMD_INT_EN_SHIFT (10U)\r
-#define USBHSH_USBCMD_INT_EN(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_INT_EN_SHIFT)) & USBHSH_USBCMD_INT_EN_MASK)\r
-#define USBHSH_USBCMD_HIRD_MASK (0xF000000U)\r
-#define USBHSH_USBCMD_HIRD_SHIFT (24U)\r
-#define USBHSH_USBCMD_HIRD(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_HIRD_SHIFT)) & USBHSH_USBCMD_HIRD_MASK)\r
-#define USBHSH_USBCMD_LPM_RWU_MASK (0x10000000U)\r
-#define USBHSH_USBCMD_LPM_RWU_SHIFT (28U)\r
-#define USBHSH_USBCMD_LPM_RWU(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_LPM_RWU_SHIFT)) & USBHSH_USBCMD_LPM_RWU_MASK)\r
+#define USBHSH_USBCMD_RS_MASK (0x1U)\r
+#define USBHSH_USBCMD_RS_SHIFT (0U)\r
+/*! RS - Run/Stop: 1b = Run.\r
+ */\r
+#define USBHSH_USBCMD_RS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_RS_SHIFT)) & USBHSH_USBCMD_RS_MASK)\r
+#define USBHSH_USBCMD_HCRESET_MASK (0x2U)\r
+#define USBHSH_USBCMD_HCRESET_SHIFT (1U)\r
+/*! HCRESET - Host Controller Reset: This control bit is used by the software to reset the host controller.\r
+ */\r
+#define USBHSH_USBCMD_HCRESET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_HCRESET_SHIFT)) & USBHSH_USBCMD_HCRESET_MASK)\r
+#define USBHSH_USBCMD_FLS_MASK (0xCU)\r
+#define USBHSH_USBCMD_FLS_SHIFT (2U)\r
+/*! FLS - Frame List Size: This field specifies the size of the frame list.\r
+ */\r
+#define USBHSH_USBCMD_FLS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_FLS_SHIFT)) & USBHSH_USBCMD_FLS_MASK)\r
+#define USBHSH_USBCMD_LHCR_MASK (0x80U)\r
+#define USBHSH_USBCMD_LHCR_SHIFT (7U)\r
+/*! LHCR - Light Host Controller Reset: This bit allows the driver software to reset the host\r
+ * controller without affecting the state of the ports.\r
+ */\r
+#define USBHSH_USBCMD_LHCR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_LHCR_SHIFT)) & USBHSH_USBCMD_LHCR_MASK)\r
+#define USBHSH_USBCMD_ATL_EN_MASK (0x100U)\r
+#define USBHSH_USBCMD_ATL_EN_SHIFT (8U)\r
+/*! ATL_EN - ATL List enabled.\r
+ */\r
+#define USBHSH_USBCMD_ATL_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_ATL_EN_SHIFT)) & USBHSH_USBCMD_ATL_EN_MASK)\r
+#define USBHSH_USBCMD_ISO_EN_MASK (0x200U)\r
+#define USBHSH_USBCMD_ISO_EN_SHIFT (9U)\r
+/*! ISO_EN - ISO List enabled.\r
+ */\r
+#define USBHSH_USBCMD_ISO_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_ISO_EN_SHIFT)) & USBHSH_USBCMD_ISO_EN_MASK)\r
+#define USBHSH_USBCMD_INT_EN_MASK (0x400U)\r
+#define USBHSH_USBCMD_INT_EN_SHIFT (10U)\r
+/*! INT_EN - INT List enabled.\r
+ */\r
+#define USBHSH_USBCMD_INT_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBCMD_INT_EN_SHIFT)) & USBHSH_USBCMD_INT_EN_MASK)\r
/*! @} */\r
\r
/*! @name USBSTS - USB Interrupt Status register */\r
/*! @{ */\r
-#define USBHSH_USBSTS_PCD_MASK (0x4U)\r
-#define USBHSH_USBSTS_PCD_SHIFT (2U)\r
-#define USBHSH_USBSTS_PCD(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_PCD_SHIFT)) & USBHSH_USBSTS_PCD_MASK)\r
-#define USBHSH_USBSTS_FLR_MASK (0x8U)\r
-#define USBHSH_USBSTS_FLR_SHIFT (3U)\r
-#define USBHSH_USBSTS_FLR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_FLR_SHIFT)) & USBHSH_USBSTS_FLR_MASK)\r
-#define USBHSH_USBSTS_ATL_IRQ_MASK (0x10000U)\r
-#define USBHSH_USBSTS_ATL_IRQ_SHIFT (16U)\r
-#define USBHSH_USBSTS_ATL_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_ATL_IRQ_SHIFT)) & USBHSH_USBSTS_ATL_IRQ_MASK)\r
-#define USBHSH_USBSTS_ISO_IRQ_MASK (0x20000U)\r
-#define USBHSH_USBSTS_ISO_IRQ_SHIFT (17U)\r
-#define USBHSH_USBSTS_ISO_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_ISO_IRQ_SHIFT)) & USBHSH_USBSTS_ISO_IRQ_MASK)\r
-#define USBHSH_USBSTS_INT_IRQ_MASK (0x40000U)\r
-#define USBHSH_USBSTS_INT_IRQ_SHIFT (18U)\r
-#define USBHSH_USBSTS_INT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_INT_IRQ_SHIFT)) & USBHSH_USBSTS_INT_IRQ_MASK)\r
-#define USBHSH_USBSTS_SOF_IRQ_MASK (0x80000U)\r
-#define USBHSH_USBSTS_SOF_IRQ_SHIFT (19U)\r
-#define USBHSH_USBSTS_SOF_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_SOF_IRQ_SHIFT)) & USBHSH_USBSTS_SOF_IRQ_MASK)\r
+#define USBHSH_USBSTS_PCD_MASK (0x4U)\r
+#define USBHSH_USBSTS_PCD_SHIFT (2U)\r
+/*! PCD - Port Change Detect: The host controller sets this bit to logic 1 when any port has a\r
+ * change bit transition from a 0 to a one or a Force Port Resume bit transition from a 0 to a 1 as a\r
+ * result of a J-K transition detected on a suspended port.\r
+ */\r
+#define USBHSH_USBSTS_PCD(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_PCD_SHIFT)) & USBHSH_USBSTS_PCD_MASK)\r
+#define USBHSH_USBSTS_FLR_MASK (0x8U)\r
+#define USBHSH_USBSTS_FLR_SHIFT (3U)\r
+/*! FLR - Frame List Rollover: The host controller sets this bit to logic 1 when the frame list\r
+ * index rolls over its maximum value to 0.\r
+ */\r
+#define USBHSH_USBSTS_FLR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_FLR_SHIFT)) & USBHSH_USBSTS_FLR_MASK)\r
+#define USBHSH_USBSTS_ATL_IRQ_MASK (0x10000U)\r
+#define USBHSH_USBSTS_ATL_IRQ_SHIFT (16U)\r
+/*! ATL_IRQ - ATL IRQ: Indicates that an ATL PTD (with I-bit set) was completed.\r
+ */\r
+#define USBHSH_USBSTS_ATL_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_ATL_IRQ_SHIFT)) & USBHSH_USBSTS_ATL_IRQ_MASK)\r
+#define USBHSH_USBSTS_ISO_IRQ_MASK (0x20000U)\r
+#define USBHSH_USBSTS_ISO_IRQ_SHIFT (17U)\r
+/*! ISO_IRQ - ISO IRQ: Indicates that an ISO PTD (with I-bit set) was completed.\r
+ */\r
+#define USBHSH_USBSTS_ISO_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_ISO_IRQ_SHIFT)) & USBHSH_USBSTS_ISO_IRQ_MASK)\r
+#define USBHSH_USBSTS_INT_IRQ_MASK (0x40000U)\r
+#define USBHSH_USBSTS_INT_IRQ_SHIFT (18U)\r
+/*! INT_IRQ - INT IRQ: Indicates that an INT PTD (with I-bit set) was completed.\r
+ */\r
+#define USBHSH_USBSTS_INT_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_INT_IRQ_SHIFT)) & USBHSH_USBSTS_INT_IRQ_MASK)\r
+#define USBHSH_USBSTS_SOF_IRQ_MASK (0x80000U)\r
+#define USBHSH_USBSTS_SOF_IRQ_SHIFT (19U)\r
+/*! SOF_IRQ - SOF interrupt: Every time when the host sends a Start of Frame token on the USB bus, this bit is set.\r
+ */\r
+#define USBHSH_USBSTS_SOF_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBSTS_SOF_IRQ_SHIFT)) & USBHSH_USBSTS_SOF_IRQ_MASK)\r
/*! @} */\r
\r
/*! @name USBINTR - USB Interrupt Enable register */\r
/*! @{ */\r
-#define USBHSH_USBINTR_PCDE_MASK (0x4U)\r
-#define USBHSH_USBINTR_PCDE_SHIFT (2U)\r
-#define USBHSH_USBINTR_PCDE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_PCDE_SHIFT)) & USBHSH_USBINTR_PCDE_MASK)\r
-#define USBHSH_USBINTR_FLRE_MASK (0x8U)\r
-#define USBHSH_USBINTR_FLRE_SHIFT (3U)\r
-#define USBHSH_USBINTR_FLRE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_FLRE_SHIFT)) & USBHSH_USBINTR_FLRE_MASK)\r
-#define USBHSH_USBINTR_ATL_IRQ_E_MASK (0x10000U)\r
-#define USBHSH_USBINTR_ATL_IRQ_E_SHIFT (16U)\r
-#define USBHSH_USBINTR_ATL_IRQ_E(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_ATL_IRQ_E_SHIFT)) & USBHSH_USBINTR_ATL_IRQ_E_MASK)\r
-#define USBHSH_USBINTR_ISO_IRQ_E_MASK (0x20000U)\r
-#define USBHSH_USBINTR_ISO_IRQ_E_SHIFT (17U)\r
-#define USBHSH_USBINTR_ISO_IRQ_E(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_ISO_IRQ_E_SHIFT)) & USBHSH_USBINTR_ISO_IRQ_E_MASK)\r
-#define USBHSH_USBINTR_INT_IRQ_E_MASK (0x40000U)\r
-#define USBHSH_USBINTR_INT_IRQ_E_SHIFT (18U)\r
-#define USBHSH_USBINTR_INT_IRQ_E(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_INT_IRQ_E_SHIFT)) & USBHSH_USBINTR_INT_IRQ_E_MASK)\r
-#define USBHSH_USBINTR_SOF_E_MASK (0x80000U)\r
-#define USBHSH_USBINTR_SOF_E_SHIFT (19U)\r
-#define USBHSH_USBINTR_SOF_E(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_SOF_E_SHIFT)) & USBHSH_USBINTR_SOF_E_MASK)\r
+#define USBHSH_USBINTR_PCDE_MASK (0x4U)\r
+#define USBHSH_USBINTR_PCDE_SHIFT (2U)\r
+/*! PCDE - Port Change Detect Interrupt Enable: 1: enable 0: disable.\r
+ */\r
+#define USBHSH_USBINTR_PCDE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_PCDE_SHIFT)) & USBHSH_USBINTR_PCDE_MASK)\r
+#define USBHSH_USBINTR_FLRE_MASK (0x8U)\r
+#define USBHSH_USBINTR_FLRE_SHIFT (3U)\r
+/*! FLRE - Frame List Rollover Interrupt Enable: 1: enable 0: disable.\r
+ */\r
+#define USBHSH_USBINTR_FLRE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_FLRE_SHIFT)) & USBHSH_USBINTR_FLRE_MASK)\r
+#define USBHSH_USBINTR_ATL_IRQ_E_MASK (0x10000U)\r
+#define USBHSH_USBINTR_ATL_IRQ_E_SHIFT (16U)\r
+/*! ATL_IRQ_E - ATL IRQ Enable bit: 1: enable 0: disable.\r
+ */\r
+#define USBHSH_USBINTR_ATL_IRQ_E(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_ATL_IRQ_E_SHIFT)) & USBHSH_USBINTR_ATL_IRQ_E_MASK)\r
+#define USBHSH_USBINTR_ISO_IRQ_E_MASK (0x20000U)\r
+#define USBHSH_USBINTR_ISO_IRQ_E_SHIFT (17U)\r
+/*! ISO_IRQ_E - ISO IRQ Enable bit: 1: enable 0: disable.\r
+ */\r
+#define USBHSH_USBINTR_ISO_IRQ_E(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_ISO_IRQ_E_SHIFT)) & USBHSH_USBINTR_ISO_IRQ_E_MASK)\r
+#define USBHSH_USBINTR_INT_IRQ_E_MASK (0x40000U)\r
+#define USBHSH_USBINTR_INT_IRQ_E_SHIFT (18U)\r
+/*! INT_IRQ_E - INT IRQ Enable bit: 1: enable 0: disable.\r
+ */\r
+#define USBHSH_USBINTR_INT_IRQ_E(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_INT_IRQ_E_SHIFT)) & USBHSH_USBINTR_INT_IRQ_E_MASK)\r
+#define USBHSH_USBINTR_SOF_E_MASK (0x80000U)\r
+#define USBHSH_USBINTR_SOF_E_SHIFT (19U)\r
+/*! SOF_E - SOF Interrupt Enable bit: 1: enable 0: disable.\r
+ */\r
+#define USBHSH_USBINTR_SOF_E(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_USBINTR_SOF_E_SHIFT)) & USBHSH_USBINTR_SOF_E_MASK)\r
/*! @} */\r
\r
/*! @name PORTSC1 - Port Status and Control register */\r
/*! @{ */\r
-#define USBHSH_PORTSC1_CCS_MASK (0x1U)\r
-#define USBHSH_PORTSC1_CCS_SHIFT (0U)\r
-#define USBHSH_PORTSC1_CCS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_CCS_SHIFT)) & USBHSH_PORTSC1_CCS_MASK)\r
-#define USBHSH_PORTSC1_CSC_MASK (0x2U)\r
-#define USBHSH_PORTSC1_CSC_SHIFT (1U)\r
-#define USBHSH_PORTSC1_CSC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_CSC_SHIFT)) & USBHSH_PORTSC1_CSC_MASK)\r
-#define USBHSH_PORTSC1_PED_MASK (0x4U)\r
-#define USBHSH_PORTSC1_PED_SHIFT (2U)\r
-#define USBHSH_PORTSC1_PED(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PED_SHIFT)) & USBHSH_PORTSC1_PED_MASK)\r
-#define USBHSH_PORTSC1_PEDC_MASK (0x8U)\r
-#define USBHSH_PORTSC1_PEDC_SHIFT (3U)\r
-#define USBHSH_PORTSC1_PEDC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PEDC_SHIFT)) & USBHSH_PORTSC1_PEDC_MASK)\r
-#define USBHSH_PORTSC1_OCA_MASK (0x10U)\r
-#define USBHSH_PORTSC1_OCA_SHIFT (4U)\r
-#define USBHSH_PORTSC1_OCA(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_OCA_SHIFT)) & USBHSH_PORTSC1_OCA_MASK)\r
-#define USBHSH_PORTSC1_OCC_MASK (0x20U)\r
-#define USBHSH_PORTSC1_OCC_SHIFT (5U)\r
-#define USBHSH_PORTSC1_OCC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_OCC_SHIFT)) & USBHSH_PORTSC1_OCC_MASK)\r
-#define USBHSH_PORTSC1_FPR_MASK (0x40U)\r
-#define USBHSH_PORTSC1_FPR_SHIFT (6U)\r
-#define USBHSH_PORTSC1_FPR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_FPR_SHIFT)) & USBHSH_PORTSC1_FPR_MASK)\r
-#define USBHSH_PORTSC1_SUSP_MASK (0x80U)\r
-#define USBHSH_PORTSC1_SUSP_SHIFT (7U)\r
-#define USBHSH_PORTSC1_SUSP(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_SUSP_SHIFT)) & USBHSH_PORTSC1_SUSP_MASK)\r
-#define USBHSH_PORTSC1_PR_MASK (0x100U)\r
-#define USBHSH_PORTSC1_PR_SHIFT (8U)\r
-#define USBHSH_PORTSC1_PR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PR_SHIFT)) & USBHSH_PORTSC1_PR_MASK)\r
-#define USBHSH_PORTSC1_SUS_L1_MASK (0x200U)\r
-#define USBHSH_PORTSC1_SUS_L1_SHIFT (9U)\r
-#define USBHSH_PORTSC1_SUS_L1(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_SUS_L1_SHIFT)) & USBHSH_PORTSC1_SUS_L1_MASK)\r
-#define USBHSH_PORTSC1_LS_MASK (0xC00U)\r
-#define USBHSH_PORTSC1_LS_SHIFT (10U)\r
-#define USBHSH_PORTSC1_LS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_LS_SHIFT)) & USBHSH_PORTSC1_LS_MASK)\r
-#define USBHSH_PORTSC1_PP_MASK (0x1000U)\r
-#define USBHSH_PORTSC1_PP_SHIFT (12U)\r
-#define USBHSH_PORTSC1_PP(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PP_SHIFT)) & USBHSH_PORTSC1_PP_MASK)\r
-#define USBHSH_PORTSC1_PIC_MASK (0xC000U)\r
-#define USBHSH_PORTSC1_PIC_SHIFT (14U)\r
-#define USBHSH_PORTSC1_PIC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PIC_SHIFT)) & USBHSH_PORTSC1_PIC_MASK)\r
-#define USBHSH_PORTSC1_PTC_MASK (0xF0000U)\r
-#define USBHSH_PORTSC1_PTC_SHIFT (16U)\r
-#define USBHSH_PORTSC1_PTC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PTC_SHIFT)) & USBHSH_PORTSC1_PTC_MASK)\r
-#define USBHSH_PORTSC1_PSPD_MASK (0x300000U)\r
-#define USBHSH_PORTSC1_PSPD_SHIFT (20U)\r
-#define USBHSH_PORTSC1_PSPD(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PSPD_SHIFT)) & USBHSH_PORTSC1_PSPD_MASK)\r
-#define USBHSH_PORTSC1_WOO_MASK (0x400000U)\r
-#define USBHSH_PORTSC1_WOO_SHIFT (22U)\r
-#define USBHSH_PORTSC1_WOO(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_WOO_SHIFT)) & USBHSH_PORTSC1_WOO_MASK)\r
-#define USBHSH_PORTSC1_SUS_STAT_MASK (0x1800000U)\r
-#define USBHSH_PORTSC1_SUS_STAT_SHIFT (23U)\r
-#define USBHSH_PORTSC1_SUS_STAT(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_SUS_STAT_SHIFT)) & USBHSH_PORTSC1_SUS_STAT_MASK)\r
-#define USBHSH_PORTSC1_DEV_ADD_MASK (0xFE000000U)\r
-#define USBHSH_PORTSC1_DEV_ADD_SHIFT (25U)\r
-#define USBHSH_PORTSC1_DEV_ADD(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_DEV_ADD_SHIFT)) & USBHSH_PORTSC1_DEV_ADD_MASK)\r
-/*! @} */\r
-\r
-/*! @name ATL_PTD_DONE_MAP - Done map for each ATL PTD */\r
-/*! @{ */\r
-#define USBHSH_ATL_PTD_DONE_MAP_ATL_DONE_MASK (0xFFFFFFFFU)\r
-#define USBHSH_ATL_PTD_DONE_MAP_ATL_DONE_SHIFT (0U)\r
-#define USBHSH_ATL_PTD_DONE_MAP_ATL_DONE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_ATL_PTD_DONE_MAP_ATL_DONE_SHIFT)) & USBHSH_ATL_PTD_DONE_MAP_ATL_DONE_MASK)\r
-/*! @} */\r
-\r
-/*! @name ATL_PTD_SKIP_MAP - Skip map for each ATL PTD */\r
-/*! @{ */\r
-#define USBHSH_ATL_PTD_SKIP_MAP_ATL_SKIP_MASK (0xFFFFFFFFU)\r
-#define USBHSH_ATL_PTD_SKIP_MAP_ATL_SKIP_SHIFT (0U)\r
-#define USBHSH_ATL_PTD_SKIP_MAP_ATL_SKIP(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_ATL_PTD_SKIP_MAP_ATL_SKIP_SHIFT)) & USBHSH_ATL_PTD_SKIP_MAP_ATL_SKIP_MASK)\r
-/*! @} */\r
-\r
-/*! @name ISO_PTD_DONE_MAP - Done map for each ISO PTD */\r
-/*! @{ */\r
-#define USBHSH_ISO_PTD_DONE_MAP_ISO_DONE_MASK (0xFFFFFFFFU)\r
-#define USBHSH_ISO_PTD_DONE_MAP_ISO_DONE_SHIFT (0U)\r
-#define USBHSH_ISO_PTD_DONE_MAP_ISO_DONE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_ISO_PTD_DONE_MAP_ISO_DONE_SHIFT)) & USBHSH_ISO_PTD_DONE_MAP_ISO_DONE_MASK)\r
-/*! @} */\r
-\r
-/*! @name ISO_PTD_SKIP_MAP - Skip map for each ISO PTD */\r
-/*! @{ */\r
-#define USBHSH_ISO_PTD_SKIP_MAP_ISO_SKIP_MASK (0xFFFFFFFFU)\r
-#define USBHSH_ISO_PTD_SKIP_MAP_ISO_SKIP_SHIFT (0U)\r
-#define USBHSH_ISO_PTD_SKIP_MAP_ISO_SKIP(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_ISO_PTD_SKIP_MAP_ISO_SKIP_SHIFT)) & USBHSH_ISO_PTD_SKIP_MAP_ISO_SKIP_MASK)\r
-/*! @} */\r
-\r
-/*! @name INT_PTD_DONE_MAP - Done map for each INT PTD */\r
-/*! @{ */\r
-#define USBHSH_INT_PTD_DONE_MAP_INT_DONE_MASK (0xFFFFFFFFU)\r
-#define USBHSH_INT_PTD_DONE_MAP_INT_DONE_SHIFT (0U)\r
-#define USBHSH_INT_PTD_DONE_MAP_INT_DONE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_INT_PTD_DONE_MAP_INT_DONE_SHIFT)) & USBHSH_INT_PTD_DONE_MAP_INT_DONE_MASK)\r
-/*! @} */\r
-\r
-/*! @name INT_PTD_SKIP_MAP - Skip map for each INT PTD */\r
-/*! @{ */\r
-#define USBHSH_INT_PTD_SKIP_MAP_INT_SKIP_MASK (0xFFFFFFFFU)\r
-#define USBHSH_INT_PTD_SKIP_MAP_INT_SKIP_SHIFT (0U)\r
-#define USBHSH_INT_PTD_SKIP_MAP_INT_SKIP(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_INT_PTD_SKIP_MAP_INT_SKIP_SHIFT)) & USBHSH_INT_PTD_SKIP_MAP_INT_SKIP_MASK)\r
-/*! @} */\r
-\r
-/*! @name LAST_PTD_INUSE - Marks the last PTD in the list for ISO, INT and ATL */\r
-/*! @{ */\r
-#define USBHSH_LAST_PTD_INUSE_ATL_LAST_MASK (0x1FU)\r
-#define USBHSH_LAST_PTD_INUSE_ATL_LAST_SHIFT (0U)\r
-#define USBHSH_LAST_PTD_INUSE_ATL_LAST(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_LAST_PTD_INUSE_ATL_LAST_SHIFT)) & USBHSH_LAST_PTD_INUSE_ATL_LAST_MASK)\r
-#define USBHSH_LAST_PTD_INUSE_ISO_LAST_MASK (0x1F00U)\r
-#define USBHSH_LAST_PTD_INUSE_ISO_LAST_SHIFT (8U)\r
-#define USBHSH_LAST_PTD_INUSE_ISO_LAST(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_LAST_PTD_INUSE_ISO_LAST_SHIFT)) & USBHSH_LAST_PTD_INUSE_ISO_LAST_MASK)\r
-#define USBHSH_LAST_PTD_INUSE_INT_LAST_MASK (0x1F0000U)\r
-#define USBHSH_LAST_PTD_INUSE_INT_LAST_SHIFT (16U)\r
-#define USBHSH_LAST_PTD_INUSE_INT_LAST(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_LAST_PTD_INUSE_INT_LAST_SHIFT)) & USBHSH_LAST_PTD_INUSE_INT_LAST_MASK)\r
-/*! @} */\r
-\r
-/*! @name UTMIPLUS_ULPI_DEBUG - Register to read/write registers in the attached USB PHY */\r
-/*! @{ */\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ADDR_MASK (0xFFU)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ADDR_SHIFT (0U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ADDR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ADDR_SHIFT)) & USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ADDR_MASK)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_WDATA_MASK (0xFF00U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_WDATA_SHIFT (8U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_WDATA(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_WDATA_SHIFT)) & USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_WDATA_MASK)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RDATA_MASK (0xFF0000U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RDATA_SHIFT (16U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RDATA(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RDATA_SHIFT)) & USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RDATA_MASK)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RW_MASK (0x1000000U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RW_SHIFT (24U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RW(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RW_SHIFT)) & USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_RW_MASK)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ACCESS_MASK (0x2000000U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ACCESS_SHIFT (25U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ACCESS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ACCESS_SHIFT)) & USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_ACCESS_MASK)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_MODE_MASK (0x80000000U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_MODE_SHIFT (31U)\r
-#define USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_MODE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_MODE_SHIFT)) & USBHSH_UTMIPLUS_ULPI_DEBUG_PHY_MODE_MASK)\r
+#define USBHSH_PORTSC1_CCS_MASK (0x1U)\r
+#define USBHSH_PORTSC1_CCS_SHIFT (0U)\r
+/*! CCS - Current Connect Status: Logic 1 indicates a device is present on the port.\r
+ */\r
+#define USBHSH_PORTSC1_CCS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_CCS_SHIFT)) & USBHSH_PORTSC1_CCS_MASK)\r
+#define USBHSH_PORTSC1_CSC_MASK (0x2U)\r
+#define USBHSH_PORTSC1_CSC_SHIFT (1U)\r
+/*! CSC - Connect Status Change: Logic 1 means that the value of CCS has changed.\r
+ */\r
+#define USBHSH_PORTSC1_CSC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_CSC_SHIFT)) & USBHSH_PORTSC1_CSC_MASK)\r
+#define USBHSH_PORTSC1_PED_MASK (0x4U)\r
+#define USBHSH_PORTSC1_PED_SHIFT (2U)\r
+/*! PED - Port Enabled/Disabled.\r
+ */\r
+#define USBHSH_PORTSC1_PED(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PED_SHIFT)) & USBHSH_PORTSC1_PED_MASK)\r
+#define USBHSH_PORTSC1_PEDC_MASK (0x8U)\r
+#define USBHSH_PORTSC1_PEDC_SHIFT (3U)\r
+/*! PEDC - Port Enabled/Disabled Change: Logic 1 means that the value of PED has changed.\r
+ */\r
+#define USBHSH_PORTSC1_PEDC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PEDC_SHIFT)) & USBHSH_PORTSC1_PEDC_MASK)\r
+#define USBHSH_PORTSC1_OCA_MASK (0x10U)\r
+#define USBHSH_PORTSC1_OCA_SHIFT (4U)\r
+/*! OCA - Over-current active: Logic 1 means that this port has an over-current condition.\r
+ */\r
+#define USBHSH_PORTSC1_OCA(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_OCA_SHIFT)) & USBHSH_PORTSC1_OCA_MASK)\r
+#define USBHSH_PORTSC1_OCC_MASK (0x20U)\r
+#define USBHSH_PORTSC1_OCC_SHIFT (5U)\r
+/*! OCC - Over-current change: Logic 1 means that the value of OCA has changed.\r
+ */\r
+#define USBHSH_PORTSC1_OCC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_OCC_SHIFT)) & USBHSH_PORTSC1_OCC_MASK)\r
+#define USBHSH_PORTSC1_FPR_MASK (0x40U)\r
+#define USBHSH_PORTSC1_FPR_SHIFT (6U)\r
+/*! FPR - Force Port Resume: Logic 1 means resume (K-state) detected or driven on the port.\r
+ */\r
+#define USBHSH_PORTSC1_FPR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_FPR_SHIFT)) & USBHSH_PORTSC1_FPR_MASK)\r
+#define USBHSH_PORTSC1_SUSP_MASK (0x80U)\r
+#define USBHSH_PORTSC1_SUSP_SHIFT (7U)\r
+/*! SUSP - Suspend: Logic 1 means port is in the suspend state.\r
+ */\r
+#define USBHSH_PORTSC1_SUSP(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_SUSP_SHIFT)) & USBHSH_PORTSC1_SUSP_MASK)\r
+#define USBHSH_PORTSC1_PR_MASK (0x100U)\r
+#define USBHSH_PORTSC1_PR_SHIFT (8U)\r
+/*! PR - Port Reset: Logic 1 means the port is in the reset state.\r
+ */\r
+#define USBHSH_PORTSC1_PR(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PR_SHIFT)) & USBHSH_PORTSC1_PR_MASK)\r
+#define USBHSH_PORTSC1_LS_MASK (0xC00U)\r
+#define USBHSH_PORTSC1_LS_SHIFT (10U)\r
+/*! LS - Line Status: This field reflects the current logical levels of the DP (bit 11) and DM (bit 10) signal lines.\r
+ */\r
+#define USBHSH_PORTSC1_LS(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_LS_SHIFT)) & USBHSH_PORTSC1_LS_MASK)\r
+#define USBHSH_PORTSC1_PP_MASK (0x1000U)\r
+#define USBHSH_PORTSC1_PP_SHIFT (12U)\r
+/*! PP - Port Power: The function of this bit depends on the value of the Port Power Control (PPC) bit in the HCSPARAMS\r
+ * register.\r
+ */\r
+#define USBHSH_PORTSC1_PP(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PP_SHIFT)) & USBHSH_PORTSC1_PP_MASK)\r
+#define USBHSH_PORTSC1_PIC_MASK (0xC000U)\r
+#define USBHSH_PORTSC1_PIC_SHIFT (14U)\r
+/*! PIC - Port Indicator Control : Writing to this field has no effect if the P_INDICATOR bit in the\r
+ * HCSPARAMS register is logic 0.\r
+ */\r
+#define USBHSH_PORTSC1_PIC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PIC_SHIFT)) & USBHSH_PORTSC1_PIC_MASK)\r
+#define USBHSH_PORTSC1_PTC_MASK (0xF0000U)\r
+#define USBHSH_PORTSC1_PTC_SHIFT (16U)\r
+/*! PTC - Port Test Control: A non-zero value indicates that the port is operating in the test mode as indicated by the\r
+ * value.\r
+ */\r
+#define USBHSH_PORTSC1_PTC(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PTC_SHIFT)) & USBHSH_PORTSC1_PTC_MASK)\r
+#define USBHSH_PORTSC1_PSPD_MASK (0x300000U)\r
+#define USBHSH_PORTSC1_PSPD_SHIFT (20U)\r
+/*! PSPD - Port Speed: 00b: Low-speed 01b: Full-speed 10b: High-speed 11b: Reserved.\r
+ */\r
+#define USBHSH_PORTSC1_PSPD(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_PSPD_SHIFT)) & USBHSH_PORTSC1_PSPD_MASK)\r
+#define USBHSH_PORTSC1_WOO_MASK (0x400000U)\r
+#define USBHSH_PORTSC1_WOO_SHIFT (22U)\r
+/*! WOO - Wake on overcurrent enable: Writing this bit to a one enables the port to be sensitive to\r
+ * overcurrent conditions as wake-up events.\r
+ */\r
+#define USBHSH_PORTSC1_WOO(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTSC1_WOO_SHIFT)) & USBHSH_PORTSC1_WOO_MASK)\r
+/*! @} */\r
+\r
+/*! @name ATLPTDD - Done map for each ATL PTD */\r
+/*! @{ */\r
+#define USBHSH_ATLPTDD_ATL_DONE_MASK (0xFFFFFFFFU)\r
+#define USBHSH_ATLPTDD_ATL_DONE_SHIFT (0U)\r
+/*! ATL_DONE - The bit corresponding to a certain PTD will be set to logic 1 as soon as that PTD execution is completed.\r
+ */\r
+#define USBHSH_ATLPTDD_ATL_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_ATLPTDD_ATL_DONE_SHIFT)) & USBHSH_ATLPTDD_ATL_DONE_MASK)\r
/*! @} */\r
\r
-/*! @name PORTMODE - Controls the port if it is attached to the host block or the device block */\r
+/*! @name ATLPTDS - Skip map for each ATL PTD */\r
+/*! @{ */\r
+#define USBHSH_ATLPTDS_ATL_SKIP_MASK (0xFFFFFFFFU)\r
+#define USBHSH_ATLPTDS_ATL_SKIP_SHIFT (0U)\r
+/*! ATL_SKIP - When a bit in the PTD Skip Map is set to logic 1, the corresponding PTD will be\r
+ * skipped, independent of the V bit setting.\r
+ */\r
+#define USBHSH_ATLPTDS_ATL_SKIP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_ATLPTDS_ATL_SKIP_SHIFT)) & USBHSH_ATLPTDS_ATL_SKIP_MASK)\r
+/*! @} */\r
+\r
+/*! @name ISOPTDD - Done map for each ISO PTD */\r
+/*! @{ */\r
+#define USBHSH_ISOPTDD_ISO_DONE_MASK (0xFFFFFFFFU)\r
+#define USBHSH_ISOPTDD_ISO_DONE_SHIFT (0U)\r
+/*! ISO_DONE - The bit corresponding to a certain PTD will be set to logic 1 as soon as that PTD execution is completed.\r
+ */\r
+#define USBHSH_ISOPTDD_ISO_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_ISOPTDD_ISO_DONE_SHIFT)) & USBHSH_ISOPTDD_ISO_DONE_MASK)\r
+/*! @} */\r
+\r
+/*! @name ISOPTDS - Skip map for each ISO PTD */\r
+/*! @{ */\r
+#define USBHSH_ISOPTDS_ISO_SKIP_MASK (0xFFFFFFFFU)\r
+#define USBHSH_ISOPTDS_ISO_SKIP_SHIFT (0U)\r
+/*! ISO_SKIP - The bit corresponding to a certain PTD will be set to logic 1 as soon as that PTD execution is completed.\r
+ */\r
+#define USBHSH_ISOPTDS_ISO_SKIP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_ISOPTDS_ISO_SKIP_SHIFT)) & USBHSH_ISOPTDS_ISO_SKIP_MASK)\r
+/*! @} */\r
+\r
+/*! @name INTPTDD - Done map for each INT PTD */\r
+/*! @{ */\r
+#define USBHSH_INTPTDD_INT_DONE_MASK (0xFFFFFFFFU)\r
+#define USBHSH_INTPTDD_INT_DONE_SHIFT (0U)\r
+/*! INT_DONE - The bit corresponding to a certain PTD will be set to logic 1 as soon as that PTD execution is completed.\r
+ */\r
+#define USBHSH_INTPTDD_INT_DONE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_INTPTDD_INT_DONE_SHIFT)) & USBHSH_INTPTDD_INT_DONE_MASK)\r
+/*! @} */\r
+\r
+/*! @name INTPTDS - Skip map for each INT PTD */\r
+/*! @{ */\r
+#define USBHSH_INTPTDS_INT_SKIP_MASK (0xFFFFFFFFU)\r
+#define USBHSH_INTPTDS_INT_SKIP_SHIFT (0U)\r
+/*! INT_SKIP - When a bit in the PTD Skip Map is set to logic 1, the corresponding PTD will be\r
+ * skipped, independent of the V bit setting.\r
+ */\r
+#define USBHSH_INTPTDS_INT_SKIP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_INTPTDS_INT_SKIP_SHIFT)) & USBHSH_INTPTDS_INT_SKIP_MASK)\r
+/*! @} */\r
+\r
+/*! @name LASTPTD - Marks the last PTD in the list for ISO, INT and ATL */\r
/*! @{ */\r
-#define USBHSH_PORTMODE_ID0_MASK (0x1U)\r
-#define USBHSH_PORTMODE_ID0_SHIFT (0U)\r
-#define USBHSH_PORTMODE_ID0(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTMODE_ID0_SHIFT)) & USBHSH_PORTMODE_ID0_MASK)\r
-#define USBHSH_PORTMODE_ID0_EN_MASK (0x100U)\r
-#define USBHSH_PORTMODE_ID0_EN_SHIFT (8U)\r
-#define USBHSH_PORTMODE_ID0_EN(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTMODE_ID0_EN_SHIFT)) & USBHSH_PORTMODE_ID0_EN_MASK)\r
-#define USBHSH_PORTMODE_DEV_ENABLE_MASK (0x10000U)\r
-#define USBHSH_PORTMODE_DEV_ENABLE_SHIFT (16U)\r
-#define USBHSH_PORTMODE_DEV_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTMODE_DEV_ENABLE_SHIFT)) & USBHSH_PORTMODE_DEV_ENABLE_MASK)\r
-#define USBHSH_PORTMODE_SW_CTRL_PDCOM_MASK (0x40000U)\r
-#define USBHSH_PORTMODE_SW_CTRL_PDCOM_SHIFT (18U)\r
-#define USBHSH_PORTMODE_SW_CTRL_PDCOM(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTMODE_SW_CTRL_PDCOM_SHIFT)) & USBHSH_PORTMODE_SW_CTRL_PDCOM_MASK)\r
-#define USBHSH_PORTMODE_SW_PDCOM_MASK (0x80000U)\r
-#define USBHSH_PORTMODE_SW_PDCOM_SHIFT (19U)\r
-#define USBHSH_PORTMODE_SW_PDCOM(x) (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTMODE_SW_PDCOM_SHIFT)) & USBHSH_PORTMODE_SW_PDCOM_MASK)\r
+#define USBHSH_LASTPTD_ATL_LAST_MASK (0x1FU)\r
+#define USBHSH_LASTPTD_ATL_LAST_SHIFT (0U)\r
+/*! ATL_LAST - If hardware has reached this PTD and the J bit is not set, it will go to PTD0 as the next PTD to be\r
+ * processed.\r
+ */\r
+#define USBHSH_LASTPTD_ATL_LAST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_LASTPTD_ATL_LAST_SHIFT)) & USBHSH_LASTPTD_ATL_LAST_MASK)\r
+#define USBHSH_LASTPTD_ISO_LAST_MASK (0x1F00U)\r
+#define USBHSH_LASTPTD_ISO_LAST_SHIFT (8U)\r
+/*! ISO_LAST - This indicates the last PTD in the ISO list.\r
+ */\r
+#define USBHSH_LASTPTD_ISO_LAST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_LASTPTD_ISO_LAST_SHIFT)) & USBHSH_LASTPTD_ISO_LAST_MASK)\r
+#define USBHSH_LASTPTD_INT_LAST_MASK (0x1F0000U)\r
+#define USBHSH_LASTPTD_INT_LAST_SHIFT (16U)\r
+/*! INT_LAST - This indicates the last PTD in the INT list.\r
+ */\r
+#define USBHSH_LASTPTD_INT_LAST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_LASTPTD_INT_LAST_SHIFT)) & USBHSH_LASTPTD_INT_LAST_MASK)\r
/*! @} */\r
\r
+/*! @name PORTMODE - Controls the port if it is attached to the host block or the device block */\r
+/*! @{ */\r
+#define USBHSH_PORTMODE_DEV_ENABLE_MASK (0x10000U)\r
+#define USBHSH_PORTMODE_DEV_ENABLE_SHIFT (16U)\r
+/*! DEV_ENABLE - If this bit is set to one, one of the ports will behave as a USB device.\r
+ */\r
+#define USBHSH_PORTMODE_DEV_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTMODE_DEV_ENABLE_SHIFT)) & USBHSH_PORTMODE_DEV_ENABLE_MASK)\r
+#define USBHSH_PORTMODE_SW_CTRL_PDCOM_MASK (0x40000U)\r
+#define USBHSH_PORTMODE_SW_CTRL_PDCOM_SHIFT (18U)\r
+/*! SW_CTRL_PDCOM - This bit indicates if the PHY power-down input is controlled by software or by hardware.\r
+ */\r
+#define USBHSH_PORTMODE_SW_CTRL_PDCOM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTMODE_SW_CTRL_PDCOM_SHIFT)) & USBHSH_PORTMODE_SW_CTRL_PDCOM_MASK)\r
+#define USBHSH_PORTMODE_SW_PDCOM_MASK (0x80000U)\r
+#define USBHSH_PORTMODE_SW_PDCOM_SHIFT (19U)\r
+/*! SW_PDCOM - This bit is only used when SW_CTRL_PDCOM is set to 1b.\r
+ */\r
+#define USBHSH_PORTMODE_SW_PDCOM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBHSH_PORTMODE_SW_PDCOM_SHIFT)) & USBHSH_PORTMODE_SW_PDCOM_MASK)\r
+/*! @} */\r
\r
/*!\r
* @}\r
*/ /* end of group USBHSH_Register_Masks */\r
\r
-\r
/* USBHSH - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral USBHSH base address */\r
- #define USBHSH_BASE (0x500A3000u)\r
- /** Peripheral USBHSH base address */\r
- #define USBHSH_BASE_NS (0x400A3000u)\r
- /** Peripheral USBHSH base pointer */\r
- #define USBHSH ((USBHSH_Type *)USBHSH_BASE)\r
- /** Peripheral USBHSH base pointer */\r
- #define USBHSH_NS ((USBHSH_Type *)USBHSH_BASE_NS)\r
- /** Array initializer of USBHSH peripheral base addresses */\r
- #define USBHSH_BASE_ADDRS { USBHSH_BASE }\r
- /** Array initializer of USBHSH peripheral base pointers */\r
- #define USBHSH_BASE_PTRS { USBHSH }\r
- /** Array initializer of USBHSH peripheral base addresses */\r
- #define USBHSH_BASE_ADDRS_NS { USBHSH_BASE_NS }\r
- /** Array initializer of USBHSH peripheral base pointers */\r
- #define USBHSH_BASE_PTRS_NS { USBHSH_NS }\r
+/** Peripheral USBHSH base address */\r
+#define USBHSH_BASE (0x500A3000u)\r
+/** Peripheral USBHSH base address */\r
+#define USBHSH_BASE_NS (0x400A3000u)\r
+/** Peripheral USBHSH base pointer */\r
+#define USBHSH ((USBHSH_Type *)USBHSH_BASE)\r
+/** Peripheral USBHSH base pointer */\r
+#define USBHSH_NS ((USBHSH_Type *)USBHSH_BASE_NS)\r
+/** Array initializer of USBHSH peripheral base addresses */\r
+#define USBHSH_BASE_ADDRS \\r
+ { \\r
+ USBHSH_BASE \\r
+ }\r
+/** Array initializer of USBHSH peripheral base pointers */\r
+#define USBHSH_BASE_PTRS \\r
+ { \\r
+ USBHSH \\r
+ }\r
+/** Array initializer of USBHSH peripheral base addresses */\r
+#define USBHSH_BASE_ADDRS_NS \\r
+ { \\r
+ USBHSH_BASE_NS \\r
+ }\r
+/** Array initializer of USBHSH peripheral base pointers */\r
+#define USBHSH_BASE_PTRS_NS \\r
+ { \\r
+ USBHSH_NS \\r
+ }\r
#else\r
- /** Peripheral USBHSH base address */\r
- #define USBHSH_BASE (0x400A3000u)\r
- /** Peripheral USBHSH base pointer */\r
- #define USBHSH ((USBHSH_Type *)USBHSH_BASE)\r
- /** Array initializer of USBHSH peripheral base addresses */\r
- #define USBHSH_BASE_ADDRS { USBHSH_BASE }\r
- /** Array initializer of USBHSH peripheral base pointers */\r
- #define USBHSH_BASE_PTRS { USBHSH }\r
+/** Peripheral USBHSH base address */\r
+#define USBHSH_BASE (0x400A3000u)\r
+/** Peripheral USBHSH base pointer */\r
+#define USBHSH ((USBHSH_Type *)USBHSH_BASE)\r
+/** Array initializer of USBHSH peripheral base addresses */\r
+#define USBHSH_BASE_ADDRS \\r
+ { \\r
+ USBHSH_BASE \\r
+ }\r
+/** Array initializer of USBHSH peripheral base pointers */\r
+#define USBHSH_BASE_PTRS \\r
+ { \\r
+ USBHSH \\r
+ }\r
#endif\r
/** Interrupt vectors for the USBHSH peripheral type */\r
-#define USBHSH_IRQS { USB1_IRQn }\r
-#define USBHSH_NEEDCLK_IRQS { USB1_NEEDCLK_IRQn }\r
+#define USBHSH_IRQS \\r
+ { \\r
+ USB1_IRQn \\r
+ }\r
+#define USBHSH_NEEDCLK_IRQS \\r
+ { \\r
+ USB1_NEEDCLK_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group USBHSH_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- USBPHY Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** USBPHY - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t PWD; /**< USB PHY Power-Down Register, offset: 0x0 */\r
- __IO uint32_t PWD_SET; /**< USB PHY Power-Down Register, offset: 0x4 */\r
- __IO uint32_t PWD_CLR; /**< USB PHY Power-Down Register, offset: 0x8 */\r
- __IO uint32_t PWD_TOG; /**< USB PHY Power-Down Register, offset: 0xC */\r
- __IO uint32_t TX; /**< USB PHY Transmitter Control Register, offset: 0x10 */\r
- __IO uint32_t TX_SET; /**< USB PHY Transmitter Control Register, offset: 0x14 */\r
- __IO uint32_t TX_CLR; /**< USB PHY Transmitter Control Register, offset: 0x18 */\r
- __IO uint32_t TX_TOG; /**< USB PHY Transmitter Control Register, offset: 0x1C */\r
- __IO uint32_t RX; /**< USB PHY Receiver Control Register, offset: 0x20 */\r
- __IO uint32_t RX_SET; /**< USB PHY Receiver Control Register, offset: 0x24 */\r
- __IO uint32_t RX_CLR; /**< USB PHY Receiver Control Register, offset: 0x28 */\r
- __IO uint32_t RX_TOG; /**< USB PHY Receiver Control Register, offset: 0x2C */\r
- __IO uint32_t CTRL; /**< USB PHY General Control Register, offset: 0x30 */\r
- __IO uint32_t CTRL_SET; /**< USB PHY General Control Register, offset: 0x34 */\r
- __IO uint32_t CTRL_CLR; /**< USB PHY General Control Register, offset: 0x38 */\r
- __IO uint32_t CTRL_TOG; /**< USB PHY General Control Register, offset: 0x3C */\r
- __IO uint32_t STATUS; /**< USB PHY Status Register, offset: 0x40 */\r
- uint8_t RESERVED_0[12];\r
- __IO uint32_t DEBUG0; /**< USB PHY Debug Register 0, offset: 0x50 */\r
- __IO uint32_t DEBUG0_SET; /**< USB PHY Debug Register 0, offset: 0x54 */\r
- __IO uint32_t DEBUG0_CLR; /**< USB PHY Debug Register 0, offset: 0x58 */\r
- __IO uint32_t DEBUG0_TOG; /**< USB PHY Debug Register 0, offset: 0x5C */\r
- uint8_t RESERVED_1[16];\r
- __IO uint32_t DEBUG1; /**< UTMI Debug Status Register 1, offset: 0x70 */\r
- __IO uint32_t DEBUG1_SET; /**< UTMI Debug Status Register 1, offset: 0x74 */\r
- __IO uint32_t DEBUG1_CLR; /**< UTMI Debug Status Register 1, offset: 0x78 */\r
- __IO uint32_t DEBUG1_TOG; /**< UTMI Debug Status Register 1, offset: 0x7C */\r
- __I uint32_t VERSION; /**< UTMI RTL Version, offset: 0x80 */\r
- uint8_t RESERVED_2[28];\r
- __IO uint32_t PLL_SIC; /**< USB PHY PLL Control/Status Register, offset: 0xA0 */\r
- __IO uint32_t PLL_SIC_SET; /**< USB PHY PLL Control/Status Register, offset: 0xA4 */\r
- __IO uint32_t PLL_SIC_CLR; /**< USB PHY PLL Control/Status Register, offset: 0xA8 */\r
- __IO uint32_t PLL_SIC_TOG; /**< USB PHY PLL Control/Status Register, offset: 0xAC */\r
- uint8_t RESERVED_3[16];\r
- __IO uint32_t USB1_VBUS_DETECT; /**< USB PHY VBUS Detect Control Register, offset: 0xC0 */\r
- __IO uint32_t USB1_VBUS_DETECT_SET; /**< USB PHY VBUS Detect Control Register, offset: 0xC4 */\r
- __IO uint32_t USB1_VBUS_DETECT_CLR; /**< USB PHY VBUS Detect Control Register, offset: 0xC8 */\r
- __IO uint32_t USB1_VBUS_DETECT_TOG; /**< USB PHY VBUS Detect Control Register, offset: 0xCC */\r
- __I uint32_t USB1_VBUS_DET_STAT; /**< USB PHY VBUS Detector Status Register, offset: 0xD0 */\r
- uint8_t RESERVED_4[12];\r
- __IO uint32_t USB1_CHRG_DETECT; /**< USB PHY Charger Detect Control Register, offset: 0xE0 */\r
- __IO uint32_t USB1_CHRG_DETECT_SET; /**< USB PHY Charger Detect Control Register, offset: 0xE4 */\r
- __IO uint32_t USB1_CHRG_DETECT_CLR; /**< USB PHY Charger Detect Control Register, offset: 0xE8 */\r
- __IO uint32_t USB1_CHRG_DETECT_TOG; /**< USB PHY Charger Detect Control Register, offset: 0xEC */\r
- __I uint32_t USB1_CHRG_DET_STAT; /**< USB PHY Charger Detect Status Register, offset: 0xF0 */\r
- uint8_t RESERVED_5[12];\r
- __IO uint32_t ANACTRLr; /**< USB PHY Analog Control Register, offset: 0x100 */\r
- __IO uint32_t ANACTRL_SET; /**< USB PHY Analog Control Register, offset: 0x104 */\r
- __IO uint32_t ANACTRL_CLR; /**< USB PHY Analog Control Register, offset: 0x108 */\r
- __IO uint32_t ANACTRL_TOG; /**< USB PHY Analog Control Register, offset: 0x10C */\r
+typedef struct\r
+{\r
+ __IO uint32_t PWD; /**< USB PHY Power-Down Register, offset: 0x0 */\r
+ __IO uint32_t PWD_SET; /**< USB PHY Power-Down Register, offset: 0x4 */\r
+ __IO uint32_t PWD_CLR; /**< USB PHY Power-Down Register, offset: 0x8 */\r
+ __IO uint32_t PWD_TOG; /**< USB PHY Power-Down Register, offset: 0xC */\r
+ __IO uint32_t TX; /**< USB PHY Transmitter Control Register, offset: 0x10 */\r
+ __IO uint32_t TX_SET; /**< USB PHY Transmitter Control Register, offset: 0x14 */\r
+ __IO uint32_t TX_CLR; /**< USB PHY Transmitter Control Register, offset: 0x18 */\r
+ __IO uint32_t TX_TOG; /**< USB PHY Transmitter Control Register, offset: 0x1C */\r
+ __IO uint32_t RX; /**< USB PHY Receiver Control Register, offset: 0x20 */\r
+ __IO uint32_t RX_SET; /**< USB PHY Receiver Control Register, offset: 0x24 */\r
+ __IO uint32_t RX_CLR; /**< USB PHY Receiver Control Register, offset: 0x28 */\r
+ __IO uint32_t RX_TOG; /**< USB PHY Receiver Control Register, offset: 0x2C */\r
+ __IO uint32_t CTRL; /**< USB PHY General Control Register, offset: 0x30 */\r
+ __IO uint32_t CTRL_SET; /**< USB PHY General Control Register, offset: 0x34 */\r
+ __IO uint32_t CTRL_CLR; /**< USB PHY General Control Register, offset: 0x38 */\r
+ __IO uint32_t CTRL_TOG; /**< USB PHY General Control Register, offset: 0x3C */\r
+ __I uint32_t STATUS; /**< USB PHY Status Register, offset: 0x40 */\r
+ uint8_t RESERVED_0[92];\r
+ __IO uint32_t PLL_SIC; /**< USB PHY PLL Control/Status Register, offset: 0xA0 */\r
+ __IO uint32_t PLL_SIC_SET; /**< USB PHY PLL Control/Status Register, offset: 0xA4 */\r
+ __IO uint32_t PLL_SIC_CLR; /**< USB PHY PLL Control/Status Register, offset: 0xA8 */\r
+ __IO uint32_t PLL_SIC_TOG; /**< USB PHY PLL Control/Status Register, offset: 0xAC */\r
+ uint8_t RESERVED_1[16];\r
+ __IO uint32_t USB1_VBUS_DETECT; /**< USB PHY VBUS Detect Control Register, offset: 0xC0 */\r
+ __IO uint32_t USB1_VBUS_DETECT_SET; /**< USB PHY VBUS Detect Control Register, offset: 0xC4 */\r
+ __IO uint32_t USB1_VBUS_DETECT_CLR; /**< USB PHY VBUS Detect Control Register, offset: 0xC8 */\r
+ __IO uint32_t USB1_VBUS_DETECT_TOG; /**< USB PHY VBUS Detect Control Register, offset: 0xCC */\r
+ uint8_t RESERVED_2[48];\r
+ __IO uint32_t ANACTRLr; /**< USB PHY Analog Control Register, offset: 0x100 */\r
+ __IO uint32_t ANACTRL_SET; /**< USB PHY Analog Control Register, offset: 0x104 */\r
+ __IO uint32_t ANACTRL_CLR; /**< USB PHY Analog Control Register, offset: 0x108 */\r
+ __IO uint32_t ANACTRL_TOG; /**< USB PHY Analog Control Register, offset: 0x10C */\r
} USBPHY_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name PWD - USB PHY Power-Down Register */\r
/*! @{ */\r
-#define USBPHY_PWD_TXPWDFS_MASK (0x400U)\r
-#define USBPHY_PWD_TXPWDFS_SHIFT (10U)\r
+#define USBPHY_PWD_TXPWDFS_MASK (0x400U)\r
+#define USBPHY_PWD_TXPWDFS_SHIFT (10U)\r
/*! TXPWDFS\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB full-speed drivers. This turns off the current starvation sources and puts the\r
*/\r
-#define USBPHY_PWD_TXPWDFS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDFS_SHIFT)) & USBPHY_PWD_TXPWDFS_MASK)\r
-#define USBPHY_PWD_TXPWDIBIAS_MASK (0x800U)\r
-#define USBPHY_PWD_TXPWDIBIAS_SHIFT (11U)\r
+#define USBPHY_PWD_TXPWDFS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDFS_SHIFT)) & USBPHY_PWD_TXPWDFS_MASK)\r
+#define USBPHY_PWD_TXPWDIBIAS_MASK (0x800U)\r
+#define USBPHY_PWD_TXPWDIBIAS_SHIFT (11U)\r
/*! TXPWDIBIAS\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB PHY current bias block for the transmitter. This bit should be set only when the\r
*/\r
-#define USBPHY_PWD_TXPWDIBIAS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_TXPWDIBIAS_MASK)\r
-#define USBPHY_PWD_TXPWDV2I_MASK (0x1000U)\r
-#define USBPHY_PWD_TXPWDV2I_SHIFT (12U)\r
+#define USBPHY_PWD_TXPWDIBIAS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_TXPWDIBIAS_MASK)\r
+#define USBPHY_PWD_TXPWDV2I_MASK (0x1000U)\r
+#define USBPHY_PWD_TXPWDV2I_SHIFT (12U)\r
/*! TXPWDV2I\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB PHY transmit V-to-I converter and the current mirror\r
*/\r
-#define USBPHY_PWD_TXPWDV2I(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDV2I_SHIFT)) & USBPHY_PWD_TXPWDV2I_MASK)\r
-#define USBPHY_PWD_RXPWDENV_MASK (0x20000U)\r
-#define USBPHY_PWD_RXPWDENV_SHIFT (17U)\r
+#define USBPHY_PWD_TXPWDV2I(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TXPWDV2I_SHIFT)) & USBPHY_PWD_TXPWDV2I_MASK)\r
+#define USBPHY_PWD_RXPWDENV_MASK (0x20000U)\r
+#define USBPHY_PWD_RXPWDENV_SHIFT (17U)\r
/*! RXPWDENV\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB high-speed receiver envelope detector (squelch signal)\r
*/\r
-#define USBPHY_PWD_RXPWDENV(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDENV_SHIFT)) & USBPHY_PWD_RXPWDENV_MASK)\r
-#define USBPHY_PWD_RXPWD1PT1_MASK (0x40000U)\r
-#define USBPHY_PWD_RXPWD1PT1_SHIFT (18U)\r
+#define USBPHY_PWD_RXPWDENV(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDENV_SHIFT)) & USBPHY_PWD_RXPWDENV_MASK)\r
+#define USBPHY_PWD_RXPWD1PT1_MASK (0x40000U)\r
+#define USBPHY_PWD_RXPWD1PT1_SHIFT (18U)\r
/*! RXPWD1PT1\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB full-speed differential receiver.\r
*/\r
-#define USBPHY_PWD_RXPWD1PT1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWD1PT1_SHIFT)) & USBPHY_PWD_RXPWD1PT1_MASK)\r
-#define USBPHY_PWD_RXPWDDIFF_MASK (0x80000U)\r
-#define USBPHY_PWD_RXPWDDIFF_SHIFT (19U)\r
+#define USBPHY_PWD_RXPWD1PT1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWD1PT1_SHIFT)) & USBPHY_PWD_RXPWD1PT1_MASK)\r
+#define USBPHY_PWD_RXPWDDIFF_MASK (0x80000U)\r
+#define USBPHY_PWD_RXPWDDIFF_SHIFT (19U)\r
/*! RXPWDDIFF\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB high-speed differential receive\r
*/\r
-#define USBPHY_PWD_RXPWDDIFF(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDDIFF_SHIFT)) & USBPHY_PWD_RXPWDDIFF_MASK)\r
-#define USBPHY_PWD_RXPWDRX_MASK (0x100000U)\r
-#define USBPHY_PWD_RXPWDRX_SHIFT (20U)\r
+#define USBPHY_PWD_RXPWDDIFF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDDIFF_SHIFT)) & USBPHY_PWD_RXPWDDIFF_MASK)\r
+#define USBPHY_PWD_RXPWDRX_MASK (0x100000U)\r
+#define USBPHY_PWD_RXPWDRX_SHIFT (20U)\r
/*! RXPWDRX\r
* 0b0..Normal operation.\r
* 0b1..Power-down the entire USB PHY receiver block except for the full-speed differential receiver\r
*/\r
-#define USBPHY_PWD_RXPWDRX(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDRX_SHIFT)) & USBPHY_PWD_RXPWDRX_MASK)\r
+#define USBPHY_PWD_RXPWDRX(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_RXPWDRX_SHIFT)) & USBPHY_PWD_RXPWDRX_MASK)\r
/*! @} */\r
\r
/*! @name PWD_SET - USB PHY Power-Down Register */\r
/*! @{ */\r
-#define USBPHY_PWD_SET_TXPWDFS_MASK (0x400U)\r
-#define USBPHY_PWD_SET_TXPWDFS_SHIFT (10U)\r
+#define USBPHY_PWD_SET_TXPWDFS_MASK (0x400U)\r
+#define USBPHY_PWD_SET_TXPWDFS_SHIFT (10U)\r
/*! TXPWDFS\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB full-speed drivers. This turns off the current starvation sources and puts the\r
*/\r
-#define USBPHY_PWD_SET_TXPWDFS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDFS_SHIFT)) & USBPHY_PWD_SET_TXPWDFS_MASK)\r
-#define USBPHY_PWD_SET_TXPWDIBIAS_MASK (0x800U)\r
-#define USBPHY_PWD_SET_TXPWDIBIAS_SHIFT (11U)\r
+#define USBPHY_PWD_SET_TXPWDFS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDFS_SHIFT)) & USBPHY_PWD_SET_TXPWDFS_MASK)\r
+#define USBPHY_PWD_SET_TXPWDIBIAS_MASK (0x800U)\r
+#define USBPHY_PWD_SET_TXPWDIBIAS_SHIFT (11U)\r
/*! TXPWDIBIAS\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB PHY current bias block for the transmitter. This bit should be set only when the\r
*/\r
-#define USBPHY_PWD_SET_TXPWDIBIAS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_SET_TXPWDIBIAS_MASK)\r
-#define USBPHY_PWD_SET_TXPWDV2I_MASK (0x1000U)\r
-#define USBPHY_PWD_SET_TXPWDV2I_SHIFT (12U)\r
+#define USBPHY_PWD_SET_TXPWDIBIAS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_SET_TXPWDIBIAS_MASK)\r
+#define USBPHY_PWD_SET_TXPWDV2I_MASK (0x1000U)\r
+#define USBPHY_PWD_SET_TXPWDV2I_SHIFT (12U)\r
/*! TXPWDV2I\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB PHY transmit V-to-I converter and the current mirror\r
*/\r
-#define USBPHY_PWD_SET_TXPWDV2I(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDV2I_SHIFT)) & USBPHY_PWD_SET_TXPWDV2I_MASK)\r
-#define USBPHY_PWD_SET_RXPWDENV_MASK (0x20000U)\r
-#define USBPHY_PWD_SET_RXPWDENV_SHIFT (17U)\r
+#define USBPHY_PWD_SET_TXPWDV2I(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_TXPWDV2I_SHIFT)) & USBPHY_PWD_SET_TXPWDV2I_MASK)\r
+#define USBPHY_PWD_SET_RXPWDENV_MASK (0x20000U)\r
+#define USBPHY_PWD_SET_RXPWDENV_SHIFT (17U)\r
/*! RXPWDENV\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB high-speed receiver envelope detector (squelch signal)\r
*/\r
-#define USBPHY_PWD_SET_RXPWDENV(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDENV_SHIFT)) & USBPHY_PWD_SET_RXPWDENV_MASK)\r
-#define USBPHY_PWD_SET_RXPWD1PT1_MASK (0x40000U)\r
-#define USBPHY_PWD_SET_RXPWD1PT1_SHIFT (18U)\r
+#define USBPHY_PWD_SET_RXPWDENV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDENV_SHIFT)) & USBPHY_PWD_SET_RXPWDENV_MASK)\r
+#define USBPHY_PWD_SET_RXPWD1PT1_MASK (0x40000U)\r
+#define USBPHY_PWD_SET_RXPWD1PT1_SHIFT (18U)\r
/*! RXPWD1PT1\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB full-speed differential receiver.\r
*/\r
-#define USBPHY_PWD_SET_RXPWD1PT1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWD1PT1_SHIFT)) & USBPHY_PWD_SET_RXPWD1PT1_MASK)\r
-#define USBPHY_PWD_SET_RXPWDDIFF_MASK (0x80000U)\r
-#define USBPHY_PWD_SET_RXPWDDIFF_SHIFT (19U)\r
+#define USBPHY_PWD_SET_RXPWD1PT1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWD1PT1_SHIFT)) & USBPHY_PWD_SET_RXPWD1PT1_MASK)\r
+#define USBPHY_PWD_SET_RXPWDDIFF_MASK (0x80000U)\r
+#define USBPHY_PWD_SET_RXPWDDIFF_SHIFT (19U)\r
/*! RXPWDDIFF\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB high-speed differential receive\r
*/\r
-#define USBPHY_PWD_SET_RXPWDDIFF(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDDIFF_SHIFT)) & USBPHY_PWD_SET_RXPWDDIFF_MASK)\r
-#define USBPHY_PWD_SET_RXPWDRX_MASK (0x100000U)\r
-#define USBPHY_PWD_SET_RXPWDRX_SHIFT (20U)\r
+#define USBPHY_PWD_SET_RXPWDDIFF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDDIFF_SHIFT)) & USBPHY_PWD_SET_RXPWDDIFF_MASK)\r
+#define USBPHY_PWD_SET_RXPWDRX_MASK (0x100000U)\r
+#define USBPHY_PWD_SET_RXPWDRX_SHIFT (20U)\r
/*! RXPWDRX\r
* 0b0..Normal operation.\r
* 0b1..Power-down the entire USB PHY receiver block except for the full-speed differential receiver\r
*/\r
-#define USBPHY_PWD_SET_RXPWDRX(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDRX_SHIFT)) & USBPHY_PWD_SET_RXPWDRX_MASK)\r
+#define USBPHY_PWD_SET_RXPWDRX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_SET_RXPWDRX_SHIFT)) & USBPHY_PWD_SET_RXPWDRX_MASK)\r
/*! @} */\r
\r
/*! @name PWD_CLR - USB PHY Power-Down Register */\r
/*! @{ */\r
-#define USBPHY_PWD_CLR_TXPWDFS_MASK (0x400U)\r
-#define USBPHY_PWD_CLR_TXPWDFS_SHIFT (10U)\r
+#define USBPHY_PWD_CLR_TXPWDFS_MASK (0x400U)\r
+#define USBPHY_PWD_CLR_TXPWDFS_SHIFT (10U)\r
/*! TXPWDFS\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB full-speed drivers. This turns off the current starvation sources and puts the\r
*/\r
-#define USBPHY_PWD_CLR_TXPWDFS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDFS_SHIFT)) & USBPHY_PWD_CLR_TXPWDFS_MASK)\r
-#define USBPHY_PWD_CLR_TXPWDIBIAS_MASK (0x800U)\r
-#define USBPHY_PWD_CLR_TXPWDIBIAS_SHIFT (11U)\r
+#define USBPHY_PWD_CLR_TXPWDFS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDFS_SHIFT)) & USBPHY_PWD_CLR_TXPWDFS_MASK)\r
+#define USBPHY_PWD_CLR_TXPWDIBIAS_MASK (0x800U)\r
+#define USBPHY_PWD_CLR_TXPWDIBIAS_SHIFT (11U)\r
/*! TXPWDIBIAS\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB PHY current bias block for the transmitter. This bit should be set only when the\r
*/\r
-#define USBPHY_PWD_CLR_TXPWDIBIAS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_CLR_TXPWDIBIAS_MASK)\r
-#define USBPHY_PWD_CLR_TXPWDV2I_MASK (0x1000U)\r
-#define USBPHY_PWD_CLR_TXPWDV2I_SHIFT (12U)\r
+#define USBPHY_PWD_CLR_TXPWDIBIAS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_CLR_TXPWDIBIAS_MASK)\r
+#define USBPHY_PWD_CLR_TXPWDV2I_MASK (0x1000U)\r
+#define USBPHY_PWD_CLR_TXPWDV2I_SHIFT (12U)\r
/*! TXPWDV2I\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB PHY transmit V-to-I converter and the current mirror\r
*/\r
-#define USBPHY_PWD_CLR_TXPWDV2I(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDV2I_SHIFT)) & USBPHY_PWD_CLR_TXPWDV2I_MASK)\r
-#define USBPHY_PWD_CLR_RXPWDENV_MASK (0x20000U)\r
-#define USBPHY_PWD_CLR_RXPWDENV_SHIFT (17U)\r
+#define USBPHY_PWD_CLR_TXPWDV2I(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_TXPWDV2I_SHIFT)) & USBPHY_PWD_CLR_TXPWDV2I_MASK)\r
+#define USBPHY_PWD_CLR_RXPWDENV_MASK (0x20000U)\r
+#define USBPHY_PWD_CLR_RXPWDENV_SHIFT (17U)\r
/*! RXPWDENV\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB high-speed receiver envelope detector (squelch signal)\r
*/\r
-#define USBPHY_PWD_CLR_RXPWDENV(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDENV_SHIFT)) & USBPHY_PWD_CLR_RXPWDENV_MASK)\r
-#define USBPHY_PWD_CLR_RXPWD1PT1_MASK (0x40000U)\r
-#define USBPHY_PWD_CLR_RXPWD1PT1_SHIFT (18U)\r
+#define USBPHY_PWD_CLR_RXPWDENV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDENV_SHIFT)) & USBPHY_PWD_CLR_RXPWDENV_MASK)\r
+#define USBPHY_PWD_CLR_RXPWD1PT1_MASK (0x40000U)\r
+#define USBPHY_PWD_CLR_RXPWD1PT1_SHIFT (18U)\r
/*! RXPWD1PT1\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB full-speed differential receiver.\r
*/\r
-#define USBPHY_PWD_CLR_RXPWD1PT1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWD1PT1_SHIFT)) & USBPHY_PWD_CLR_RXPWD1PT1_MASK)\r
-#define USBPHY_PWD_CLR_RXPWDDIFF_MASK (0x80000U)\r
-#define USBPHY_PWD_CLR_RXPWDDIFF_SHIFT (19U)\r
+#define USBPHY_PWD_CLR_RXPWD1PT1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWD1PT1_SHIFT)) & USBPHY_PWD_CLR_RXPWD1PT1_MASK)\r
+#define USBPHY_PWD_CLR_RXPWDDIFF_MASK (0x80000U)\r
+#define USBPHY_PWD_CLR_RXPWDDIFF_SHIFT (19U)\r
/*! RXPWDDIFF\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB high-speed differential receive\r
*/\r
-#define USBPHY_PWD_CLR_RXPWDDIFF(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDDIFF_SHIFT)) & USBPHY_PWD_CLR_RXPWDDIFF_MASK)\r
-#define USBPHY_PWD_CLR_RXPWDRX_MASK (0x100000U)\r
-#define USBPHY_PWD_CLR_RXPWDRX_SHIFT (20U)\r
+#define USBPHY_PWD_CLR_RXPWDDIFF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDDIFF_SHIFT)) & USBPHY_PWD_CLR_RXPWDDIFF_MASK)\r
+#define USBPHY_PWD_CLR_RXPWDRX_MASK (0x100000U)\r
+#define USBPHY_PWD_CLR_RXPWDRX_SHIFT (20U)\r
/*! RXPWDRX\r
* 0b0..Normal operation.\r
* 0b1..Power-down the entire USB PHY receiver block except for the full-speed differential receiver\r
*/\r
-#define USBPHY_PWD_CLR_RXPWDRX(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDRX_SHIFT)) & USBPHY_PWD_CLR_RXPWDRX_MASK)\r
+#define USBPHY_PWD_CLR_RXPWDRX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_CLR_RXPWDRX_SHIFT)) & USBPHY_PWD_CLR_RXPWDRX_MASK)\r
/*! @} */\r
\r
/*! @name PWD_TOG - USB PHY Power-Down Register */\r
/*! @{ */\r
-#define USBPHY_PWD_TOG_TXPWDFS_MASK (0x400U)\r
-#define USBPHY_PWD_TOG_TXPWDFS_SHIFT (10U)\r
+#define USBPHY_PWD_TOG_TXPWDFS_MASK (0x400U)\r
+#define USBPHY_PWD_TOG_TXPWDFS_SHIFT (10U)\r
/*! TXPWDFS\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB full-speed drivers. This turns off the current starvation sources and puts the\r
*/\r
-#define USBPHY_PWD_TOG_TXPWDFS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDFS_SHIFT)) & USBPHY_PWD_TOG_TXPWDFS_MASK)\r
-#define USBPHY_PWD_TOG_TXPWDIBIAS_MASK (0x800U)\r
-#define USBPHY_PWD_TOG_TXPWDIBIAS_SHIFT (11U)\r
+#define USBPHY_PWD_TOG_TXPWDFS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDFS_SHIFT)) & USBPHY_PWD_TOG_TXPWDFS_MASK)\r
+#define USBPHY_PWD_TOG_TXPWDIBIAS_MASK (0x800U)\r
+#define USBPHY_PWD_TOG_TXPWDIBIAS_SHIFT (11U)\r
/*! TXPWDIBIAS\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB PHY current bias block for the transmitter. This bit should be set only when the\r
*/\r
-#define USBPHY_PWD_TOG_TXPWDIBIAS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_TOG_TXPWDIBIAS_MASK)\r
-#define USBPHY_PWD_TOG_TXPWDV2I_MASK (0x1000U)\r
-#define USBPHY_PWD_TOG_TXPWDV2I_SHIFT (12U)\r
+#define USBPHY_PWD_TOG_TXPWDIBIAS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDIBIAS_SHIFT)) & USBPHY_PWD_TOG_TXPWDIBIAS_MASK)\r
+#define USBPHY_PWD_TOG_TXPWDV2I_MASK (0x1000U)\r
+#define USBPHY_PWD_TOG_TXPWDV2I_SHIFT (12U)\r
/*! TXPWDV2I\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB PHY transmit V-to-I converter and the current mirror\r
*/\r
-#define USBPHY_PWD_TOG_TXPWDV2I(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDV2I_SHIFT)) & USBPHY_PWD_TOG_TXPWDV2I_MASK)\r
-#define USBPHY_PWD_TOG_RXPWDENV_MASK (0x20000U)\r
-#define USBPHY_PWD_TOG_RXPWDENV_SHIFT (17U)\r
+#define USBPHY_PWD_TOG_TXPWDV2I(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_TXPWDV2I_SHIFT)) & USBPHY_PWD_TOG_TXPWDV2I_MASK)\r
+#define USBPHY_PWD_TOG_RXPWDENV_MASK (0x20000U)\r
+#define USBPHY_PWD_TOG_RXPWDENV_SHIFT (17U)\r
/*! RXPWDENV\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB high-speed receiver envelope detector (squelch signal)\r
*/\r
-#define USBPHY_PWD_TOG_RXPWDENV(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDENV_SHIFT)) & USBPHY_PWD_TOG_RXPWDENV_MASK)\r
-#define USBPHY_PWD_TOG_RXPWD1PT1_MASK (0x40000U)\r
-#define USBPHY_PWD_TOG_RXPWD1PT1_SHIFT (18U)\r
+#define USBPHY_PWD_TOG_RXPWDENV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDENV_SHIFT)) & USBPHY_PWD_TOG_RXPWDENV_MASK)\r
+#define USBPHY_PWD_TOG_RXPWD1PT1_MASK (0x40000U)\r
+#define USBPHY_PWD_TOG_RXPWD1PT1_SHIFT (18U)\r
/*! RXPWD1PT1\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB full-speed differential receiver.\r
*/\r
-#define USBPHY_PWD_TOG_RXPWD1PT1(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWD1PT1_SHIFT)) & USBPHY_PWD_TOG_RXPWD1PT1_MASK)\r
-#define USBPHY_PWD_TOG_RXPWDDIFF_MASK (0x80000U)\r
-#define USBPHY_PWD_TOG_RXPWDDIFF_SHIFT (19U)\r
+#define USBPHY_PWD_TOG_RXPWD1PT1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWD1PT1_SHIFT)) & USBPHY_PWD_TOG_RXPWD1PT1_MASK)\r
+#define USBPHY_PWD_TOG_RXPWDDIFF_MASK (0x80000U)\r
+#define USBPHY_PWD_TOG_RXPWDDIFF_SHIFT (19U)\r
/*! RXPWDDIFF\r
* 0b0..Normal operation.\r
* 0b1..Power-down the USB high-speed differential receive\r
*/\r
-#define USBPHY_PWD_TOG_RXPWDDIFF(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDDIFF_SHIFT)) & USBPHY_PWD_TOG_RXPWDDIFF_MASK)\r
-#define USBPHY_PWD_TOG_RXPWDRX_MASK (0x100000U)\r
-#define USBPHY_PWD_TOG_RXPWDRX_SHIFT (20U)\r
+#define USBPHY_PWD_TOG_RXPWDDIFF(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDDIFF_SHIFT)) & USBPHY_PWD_TOG_RXPWDDIFF_MASK)\r
+#define USBPHY_PWD_TOG_RXPWDRX_MASK (0x100000U)\r
+#define USBPHY_PWD_TOG_RXPWDRX_SHIFT (20U)\r
/*! RXPWDRX\r
* 0b0..Normal operation.\r
* 0b1..Power-down the entire USB PHY receiver block except for the full-speed differential receiver\r
*/\r
-#define USBPHY_PWD_TOG_RXPWDRX(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDRX_SHIFT)) & USBPHY_PWD_TOG_RXPWDRX_MASK)\r
+#define USBPHY_PWD_TOG_RXPWDRX(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PWD_TOG_RXPWDRX_SHIFT)) & USBPHY_PWD_TOG_RXPWDRX_MASK)\r
/*! @} */\r
\r
/*! @name TX - USB PHY Transmitter Control Register */\r
/*! @{ */\r
-#define USBPHY_TX_D_CAL_MASK (0xFU)\r
-#define USBPHY_TX_D_CAL_SHIFT (0U)\r
+#define USBPHY_TX_D_CAL_MASK (0xFU)\r
+#define USBPHY_TX_D_CAL_SHIFT (0U)\r
/*! D_CAL\r
* 0b0000..Maximum current, approximately 19% above nominal.\r
* 0b0111..Nominal\r
* 0b1111..Minimum current, approximately 19% below nominal.\r
*/\r
-#define USBPHY_TX_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_D_CAL_SHIFT)) & USBPHY_TX_D_CAL_MASK)\r
-#define USBPHY_TX_TXCAL45DM_MASK (0xF00U)\r
-#define USBPHY_TX_TXCAL45DM_SHIFT (8U)\r
-#define USBPHY_TX_TXCAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXCAL45DM_SHIFT)) & USBPHY_TX_TXCAL45DM_MASK)\r
-#define USBPHY_TX_TXENCAL45DN_MASK (0x2000U)\r
-#define USBPHY_TX_TXENCAL45DN_SHIFT (13U)\r
-#define USBPHY_TX_TXENCAL45DN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXENCAL45DN_SHIFT)) & USBPHY_TX_TXENCAL45DN_MASK)\r
-#define USBPHY_TX_TXCAL45DP_MASK (0xF0000U)\r
-#define USBPHY_TX_TXCAL45DP_SHIFT (16U)\r
-#define USBPHY_TX_TXCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXCAL45DP_SHIFT)) & USBPHY_TX_TXCAL45DP_MASK)\r
-#define USBPHY_TX_TXENCAL45DP_MASK (0x200000U)\r
-#define USBPHY_TX_TXENCAL45DP_SHIFT (21U)\r
-#define USBPHY_TX_TXENCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXENCAL45DP_SHIFT)) & USBPHY_TX_TXENCAL45DP_MASK)\r
+#define USBPHY_TX_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_D_CAL_SHIFT)) & USBPHY_TX_D_CAL_MASK)\r
+#define USBPHY_TX_TXCAL45DM_MASK (0xF00U)\r
+#define USBPHY_TX_TXCAL45DM_SHIFT (8U)\r
+#define USBPHY_TX_TXCAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXCAL45DM_SHIFT)) & USBPHY_TX_TXCAL45DM_MASK)\r
+#define USBPHY_TX_TXENCAL45DN_MASK (0x2000U)\r
+#define USBPHY_TX_TXENCAL45DN_SHIFT (13U)\r
+#define USBPHY_TX_TXENCAL45DN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXENCAL45DN_SHIFT)) & USBPHY_TX_TXENCAL45DN_MASK)\r
+#define USBPHY_TX_TXCAL45DP_MASK (0xF0000U)\r
+#define USBPHY_TX_TXCAL45DP_SHIFT (16U)\r
+#define USBPHY_TX_TXCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXCAL45DP_SHIFT)) & USBPHY_TX_TXCAL45DP_MASK)\r
+#define USBPHY_TX_TXENCAL45DP_MASK (0x200000U)\r
+#define USBPHY_TX_TXENCAL45DP_SHIFT (21U)\r
+#define USBPHY_TX_TXENCAL45DP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TXENCAL45DP_SHIFT)) & USBPHY_TX_TXENCAL45DP_MASK)\r
/*! @} */\r
\r
/*! @name TX_SET - USB PHY Transmitter Control Register */\r
/*! @{ */\r
-#define USBPHY_TX_SET_D_CAL_MASK (0xFU)\r
-#define USBPHY_TX_SET_D_CAL_SHIFT (0U)\r
+#define USBPHY_TX_SET_D_CAL_MASK (0xFU)\r
+#define USBPHY_TX_SET_D_CAL_SHIFT (0U)\r
/*! D_CAL\r
* 0b0000..Maximum current, approximately 19% above nominal.\r
* 0b0111..Nominal\r
* 0b1111..Minimum current, approximately 19% below nominal.\r
*/\r
-#define USBPHY_TX_SET_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_D_CAL_SHIFT)) & USBPHY_TX_SET_D_CAL_MASK)\r
-#define USBPHY_TX_SET_TXCAL45DM_MASK (0xF00U)\r
-#define USBPHY_TX_SET_TXCAL45DM_SHIFT (8U)\r
-#define USBPHY_TX_SET_TXCAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXCAL45DM_SHIFT)) & USBPHY_TX_SET_TXCAL45DM_MASK)\r
-#define USBPHY_TX_SET_TXENCAL45DN_MASK (0x2000U)\r
-#define USBPHY_TX_SET_TXENCAL45DN_SHIFT (13U)\r
-#define USBPHY_TX_SET_TXENCAL45DN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXENCAL45DN_SHIFT)) & USBPHY_TX_SET_TXENCAL45DN_MASK)\r
-#define USBPHY_TX_SET_TXCAL45DP_MASK (0xF0000U)\r
-#define USBPHY_TX_SET_TXCAL45DP_SHIFT (16U)\r
-#define USBPHY_TX_SET_TXCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXCAL45DP_SHIFT)) & USBPHY_TX_SET_TXCAL45DP_MASK)\r
-#define USBPHY_TX_SET_TXENCAL45DP_MASK (0x200000U)\r
-#define USBPHY_TX_SET_TXENCAL45DP_SHIFT (21U)\r
-#define USBPHY_TX_SET_TXENCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXENCAL45DP_SHIFT)) & USBPHY_TX_SET_TXENCAL45DP_MASK)\r
+#define USBPHY_TX_SET_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_D_CAL_SHIFT)) & USBPHY_TX_SET_D_CAL_MASK)\r
+#define USBPHY_TX_SET_TXCAL45DM_MASK (0xF00U)\r
+#define USBPHY_TX_SET_TXCAL45DM_SHIFT (8U)\r
+#define USBPHY_TX_SET_TXCAL45DM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXCAL45DM_SHIFT)) & USBPHY_TX_SET_TXCAL45DM_MASK)\r
+#define USBPHY_TX_SET_TXENCAL45DN_MASK (0x2000U)\r
+#define USBPHY_TX_SET_TXENCAL45DN_SHIFT (13U)\r
+#define USBPHY_TX_SET_TXENCAL45DN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXENCAL45DN_SHIFT)) & USBPHY_TX_SET_TXENCAL45DN_MASK)\r
+#define USBPHY_TX_SET_TXCAL45DP_MASK (0xF0000U)\r
+#define USBPHY_TX_SET_TXCAL45DP_SHIFT (16U)\r
+#define USBPHY_TX_SET_TXCAL45DP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXCAL45DP_SHIFT)) & USBPHY_TX_SET_TXCAL45DP_MASK)\r
+#define USBPHY_TX_SET_TXENCAL45DP_MASK (0x200000U)\r
+#define USBPHY_TX_SET_TXENCAL45DP_SHIFT (21U)\r
+#define USBPHY_TX_SET_TXENCAL45DP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_SET_TXENCAL45DP_SHIFT)) & USBPHY_TX_SET_TXENCAL45DP_MASK)\r
/*! @} */\r
\r
/*! @name TX_CLR - USB PHY Transmitter Control Register */\r
/*! @{ */\r
-#define USBPHY_TX_CLR_D_CAL_MASK (0xFU)\r
-#define USBPHY_TX_CLR_D_CAL_SHIFT (0U)\r
+#define USBPHY_TX_CLR_D_CAL_MASK (0xFU)\r
+#define USBPHY_TX_CLR_D_CAL_SHIFT (0U)\r
/*! D_CAL\r
* 0b0000..Maximum current, approximately 19% above nominal.\r
* 0b0111..Nominal\r
* 0b1111..Minimum current, approximately 19% below nominal.\r
*/\r
-#define USBPHY_TX_CLR_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_D_CAL_SHIFT)) & USBPHY_TX_CLR_D_CAL_MASK)\r
-#define USBPHY_TX_CLR_TXCAL45DM_MASK (0xF00U)\r
-#define USBPHY_TX_CLR_TXCAL45DM_SHIFT (8U)\r
-#define USBPHY_TX_CLR_TXCAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXCAL45DM_SHIFT)) & USBPHY_TX_CLR_TXCAL45DM_MASK)\r
-#define USBPHY_TX_CLR_TXENCAL45DN_MASK (0x2000U)\r
-#define USBPHY_TX_CLR_TXENCAL45DN_SHIFT (13U)\r
-#define USBPHY_TX_CLR_TXENCAL45DN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXENCAL45DN_SHIFT)) & USBPHY_TX_CLR_TXENCAL45DN_MASK)\r
-#define USBPHY_TX_CLR_TXCAL45DP_MASK (0xF0000U)\r
-#define USBPHY_TX_CLR_TXCAL45DP_SHIFT (16U)\r
-#define USBPHY_TX_CLR_TXCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXCAL45DP_SHIFT)) & USBPHY_TX_CLR_TXCAL45DP_MASK)\r
-#define USBPHY_TX_CLR_TXENCAL45DP_MASK (0x200000U)\r
-#define USBPHY_TX_CLR_TXENCAL45DP_SHIFT (21U)\r
-#define USBPHY_TX_CLR_TXENCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXENCAL45DP_SHIFT)) & USBPHY_TX_CLR_TXENCAL45DP_MASK)\r
+#define USBPHY_TX_CLR_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_D_CAL_SHIFT)) & USBPHY_TX_CLR_D_CAL_MASK)\r
+#define USBPHY_TX_CLR_TXCAL45DM_MASK (0xF00U)\r
+#define USBPHY_TX_CLR_TXCAL45DM_SHIFT (8U)\r
+#define USBPHY_TX_CLR_TXCAL45DM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXCAL45DM_SHIFT)) & USBPHY_TX_CLR_TXCAL45DM_MASK)\r
+#define USBPHY_TX_CLR_TXENCAL45DN_MASK (0x2000U)\r
+#define USBPHY_TX_CLR_TXENCAL45DN_SHIFT (13U)\r
+#define USBPHY_TX_CLR_TXENCAL45DN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXENCAL45DN_SHIFT)) & USBPHY_TX_CLR_TXENCAL45DN_MASK)\r
+#define USBPHY_TX_CLR_TXCAL45DP_MASK (0xF0000U)\r
+#define USBPHY_TX_CLR_TXCAL45DP_SHIFT (16U)\r
+#define USBPHY_TX_CLR_TXCAL45DP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXCAL45DP_SHIFT)) & USBPHY_TX_CLR_TXCAL45DP_MASK)\r
+#define USBPHY_TX_CLR_TXENCAL45DP_MASK (0x200000U)\r
+#define USBPHY_TX_CLR_TXENCAL45DP_SHIFT (21U)\r
+#define USBPHY_TX_CLR_TXENCAL45DP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_CLR_TXENCAL45DP_SHIFT)) & USBPHY_TX_CLR_TXENCAL45DP_MASK)\r
/*! @} */\r
\r
/*! @name TX_TOG - USB PHY Transmitter Control Register */\r
/*! @{ */\r
-#define USBPHY_TX_TOG_D_CAL_MASK (0xFU)\r
-#define USBPHY_TX_TOG_D_CAL_SHIFT (0U)\r
+#define USBPHY_TX_TOG_D_CAL_MASK (0xFU)\r
+#define USBPHY_TX_TOG_D_CAL_SHIFT (0U)\r
/*! D_CAL\r
* 0b0000..Maximum current, approximately 19% above nominal.\r
* 0b0111..Nominal\r
* 0b1111..Minimum current, approximately 19% below nominal.\r
*/\r
-#define USBPHY_TX_TOG_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_D_CAL_SHIFT)) & USBPHY_TX_TOG_D_CAL_MASK)\r
-#define USBPHY_TX_TOG_TXCAL45DM_MASK (0xF00U)\r
-#define USBPHY_TX_TOG_TXCAL45DM_SHIFT (8U)\r
-#define USBPHY_TX_TOG_TXCAL45DM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXCAL45DM_SHIFT)) & USBPHY_TX_TOG_TXCAL45DM_MASK)\r
-#define USBPHY_TX_TOG_TXENCAL45DN_MASK (0x2000U)\r
-#define USBPHY_TX_TOG_TXENCAL45DN_SHIFT (13U)\r
-#define USBPHY_TX_TOG_TXENCAL45DN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXENCAL45DN_SHIFT)) & USBPHY_TX_TOG_TXENCAL45DN_MASK)\r
-#define USBPHY_TX_TOG_TXCAL45DP_MASK (0xF0000U)\r
-#define USBPHY_TX_TOG_TXCAL45DP_SHIFT (16U)\r
-#define USBPHY_TX_TOG_TXCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXCAL45DP_SHIFT)) & USBPHY_TX_TOG_TXCAL45DP_MASK)\r
-#define USBPHY_TX_TOG_TXENCAL45DP_MASK (0x200000U)\r
-#define USBPHY_TX_TOG_TXENCAL45DP_SHIFT (21U)\r
-#define USBPHY_TX_TOG_TXENCAL45DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXENCAL45DP_SHIFT)) & USBPHY_TX_TOG_TXENCAL45DP_MASK)\r
+#define USBPHY_TX_TOG_D_CAL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_D_CAL_SHIFT)) & USBPHY_TX_TOG_D_CAL_MASK)\r
+#define USBPHY_TX_TOG_TXCAL45DM_MASK (0xF00U)\r
+#define USBPHY_TX_TOG_TXCAL45DM_SHIFT (8U)\r
+#define USBPHY_TX_TOG_TXCAL45DM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXCAL45DM_SHIFT)) & USBPHY_TX_TOG_TXCAL45DM_MASK)\r
+#define USBPHY_TX_TOG_TXENCAL45DN_MASK (0x2000U)\r
+#define USBPHY_TX_TOG_TXENCAL45DN_SHIFT (13U)\r
+#define USBPHY_TX_TOG_TXENCAL45DN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXENCAL45DN_SHIFT)) & USBPHY_TX_TOG_TXENCAL45DN_MASK)\r
+#define USBPHY_TX_TOG_TXCAL45DP_MASK (0xF0000U)\r
+#define USBPHY_TX_TOG_TXCAL45DP_SHIFT (16U)\r
+#define USBPHY_TX_TOG_TXCAL45DP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXCAL45DP_SHIFT)) & USBPHY_TX_TOG_TXCAL45DP_MASK)\r
+#define USBPHY_TX_TOG_TXENCAL45DP_MASK (0x200000U)\r
+#define USBPHY_TX_TOG_TXENCAL45DP_SHIFT (21U)\r
+#define USBPHY_TX_TOG_TXENCAL45DP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_TX_TOG_TXENCAL45DP_SHIFT)) & USBPHY_TX_TOG_TXENCAL45DP_MASK)\r
/*! @} */\r
\r
/*! @name RX - USB PHY Receiver Control Register */\r
/*! @{ */\r
-#define USBPHY_RX_ENVADJ_MASK (0x7U)\r
-#define USBPHY_RX_ENVADJ_SHIFT (0U)\r
+#define USBPHY_RX_ENVADJ_MASK (0x7U)\r
+#define USBPHY_RX_ENVADJ_SHIFT (0U)\r
/*! ENVADJ\r
* 0b000..Trip-Level Voltage is 0.1000 V\r
* 0b001..Trip-Level Voltage is 0.1125 V\r
* 0b110..reserved\r
* 0b111..reserved\r
*/\r
-#define USBPHY_RX_ENVADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_ENVADJ_SHIFT)) & USBPHY_RX_ENVADJ_MASK)\r
-#define USBPHY_RX_DISCONADJ_MASK (0x70U)\r
-#define USBPHY_RX_DISCONADJ_SHIFT (4U)\r
+#define USBPHY_RX_ENVADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_ENVADJ_SHIFT)) & USBPHY_RX_ENVADJ_MASK)\r
+#define USBPHY_RX_DISCONADJ_MASK (0x70U)\r
+#define USBPHY_RX_DISCONADJ_SHIFT (4U)\r
/*! DISCONADJ\r
* 0b000..Trip-Level Voltage is 0.56875 V\r
* 0b001..Trip-Level Voltage is 0.55000 V\r
* 0b110..reserved\r
* 0b111..reserved\r
*/\r
-#define USBPHY_RX_DISCONADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_DISCONADJ_SHIFT)) & USBPHY_RX_DISCONADJ_MASK)\r
-#define USBPHY_RX_RXDBYPASS_MASK (0x400000U)\r
-#define USBPHY_RX_RXDBYPASS_SHIFT (22U)\r
+#define USBPHY_RX_DISCONADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_DISCONADJ_SHIFT)) & USBPHY_RX_DISCONADJ_MASK)\r
+#define USBPHY_RX_RXDBYPASS_MASK (0x400000U)\r
+#define USBPHY_RX_RXDBYPASS_SHIFT (22U)\r
/*! RXDBYPASS\r
* 0b0..Normal operation.\r
* 0b1..Use the output of the USB_DP single-ended receiver in place of the full-speed differential receiver\r
*/\r
-#define USBPHY_RX_RXDBYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_RXDBYPASS_SHIFT)) & USBPHY_RX_RXDBYPASS_MASK)\r
+#define USBPHY_RX_RXDBYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_RXDBYPASS_SHIFT)) & USBPHY_RX_RXDBYPASS_MASK)\r
/*! @} */\r
\r
/*! @name RX_SET - USB PHY Receiver Control Register */\r
/*! @{ */\r
-#define USBPHY_RX_SET_ENVADJ_MASK (0x7U)\r
-#define USBPHY_RX_SET_ENVADJ_SHIFT (0U)\r
+#define USBPHY_RX_SET_ENVADJ_MASK (0x7U)\r
+#define USBPHY_RX_SET_ENVADJ_SHIFT (0U)\r
/*! ENVADJ\r
* 0b000..Trip-Level Voltage is 0.1000 V\r
* 0b001..Trip-Level Voltage is 0.1125 V\r
* 0b110..reserved\r
* 0b111..reserved\r
*/\r
-#define USBPHY_RX_SET_ENVADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_ENVADJ_SHIFT)) & USBPHY_RX_SET_ENVADJ_MASK)\r
-#define USBPHY_RX_SET_DISCONADJ_MASK (0x70U)\r
-#define USBPHY_RX_SET_DISCONADJ_SHIFT (4U)\r
+#define USBPHY_RX_SET_ENVADJ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_ENVADJ_SHIFT)) & USBPHY_RX_SET_ENVADJ_MASK)\r
+#define USBPHY_RX_SET_DISCONADJ_MASK (0x70U)\r
+#define USBPHY_RX_SET_DISCONADJ_SHIFT (4U)\r
/*! DISCONADJ\r
* 0b000..Trip-Level Voltage is 0.56875 V\r
* 0b001..Trip-Level Voltage is 0.55000 V\r
* 0b110..reserved\r
* 0b111..reserved\r
*/\r
-#define USBPHY_RX_SET_DISCONADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_DISCONADJ_SHIFT)) & USBPHY_RX_SET_DISCONADJ_MASK)\r
-#define USBPHY_RX_SET_RXDBYPASS_MASK (0x400000U)\r
-#define USBPHY_RX_SET_RXDBYPASS_SHIFT (22U)\r
+#define USBPHY_RX_SET_DISCONADJ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_DISCONADJ_SHIFT)) & USBPHY_RX_SET_DISCONADJ_MASK)\r
+#define USBPHY_RX_SET_RXDBYPASS_MASK (0x400000U)\r
+#define USBPHY_RX_SET_RXDBYPASS_SHIFT (22U)\r
/*! RXDBYPASS\r
* 0b0..Normal operation.\r
* 0b1..Use the output of the USB_DP single-ended receiver in place of the full-speed differential receiver\r
*/\r
-#define USBPHY_RX_SET_RXDBYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_RXDBYPASS_SHIFT)) & USBPHY_RX_SET_RXDBYPASS_MASK)\r
+#define USBPHY_RX_SET_RXDBYPASS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_SET_RXDBYPASS_SHIFT)) & USBPHY_RX_SET_RXDBYPASS_MASK)\r
/*! @} */\r
\r
/*! @name RX_CLR - USB PHY Receiver Control Register */\r
/*! @{ */\r
-#define USBPHY_RX_CLR_ENVADJ_MASK (0x7U)\r
-#define USBPHY_RX_CLR_ENVADJ_SHIFT (0U)\r
+#define USBPHY_RX_CLR_ENVADJ_MASK (0x7U)\r
+#define USBPHY_RX_CLR_ENVADJ_SHIFT (0U)\r
/*! ENVADJ\r
* 0b000..Trip-Level Voltage is 0.1000 V\r
* 0b001..Trip-Level Voltage is 0.1125 V\r
* 0b110..reserved\r
* 0b111..reserved\r
*/\r
-#define USBPHY_RX_CLR_ENVADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_ENVADJ_SHIFT)) & USBPHY_RX_CLR_ENVADJ_MASK)\r
-#define USBPHY_RX_CLR_DISCONADJ_MASK (0x70U)\r
-#define USBPHY_RX_CLR_DISCONADJ_SHIFT (4U)\r
+#define USBPHY_RX_CLR_ENVADJ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_ENVADJ_SHIFT)) & USBPHY_RX_CLR_ENVADJ_MASK)\r
+#define USBPHY_RX_CLR_DISCONADJ_MASK (0x70U)\r
+#define USBPHY_RX_CLR_DISCONADJ_SHIFT (4U)\r
/*! DISCONADJ\r
* 0b000..Trip-Level Voltage is 0.56875 V\r
* 0b001..Trip-Level Voltage is 0.55000 V\r
* 0b110..reserved\r
* 0b111..reserved\r
*/\r
-#define USBPHY_RX_CLR_DISCONADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_DISCONADJ_SHIFT)) & USBPHY_RX_CLR_DISCONADJ_MASK)\r
-#define USBPHY_RX_CLR_RXDBYPASS_MASK (0x400000U)\r
-#define USBPHY_RX_CLR_RXDBYPASS_SHIFT (22U)\r
+#define USBPHY_RX_CLR_DISCONADJ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_DISCONADJ_SHIFT)) & USBPHY_RX_CLR_DISCONADJ_MASK)\r
+#define USBPHY_RX_CLR_RXDBYPASS_MASK (0x400000U)\r
+#define USBPHY_RX_CLR_RXDBYPASS_SHIFT (22U)\r
/*! RXDBYPASS\r
* 0b0..Normal operation.\r
* 0b1..Use the output of the USB_DP single-ended receiver in place of the full-speed differential receiver\r
*/\r
-#define USBPHY_RX_CLR_RXDBYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_RXDBYPASS_SHIFT)) & USBPHY_RX_CLR_RXDBYPASS_MASK)\r
+#define USBPHY_RX_CLR_RXDBYPASS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_CLR_RXDBYPASS_SHIFT)) & USBPHY_RX_CLR_RXDBYPASS_MASK)\r
/*! @} */\r
\r
/*! @name RX_TOG - USB PHY Receiver Control Register */\r
/*! @{ */\r
-#define USBPHY_RX_TOG_ENVADJ_MASK (0x7U)\r
-#define USBPHY_RX_TOG_ENVADJ_SHIFT (0U)\r
+#define USBPHY_RX_TOG_ENVADJ_MASK (0x7U)\r
+#define USBPHY_RX_TOG_ENVADJ_SHIFT (0U)\r
/*! ENVADJ\r
* 0b000..Trip-Level Voltage is 0.1000 V\r
* 0b001..Trip-Level Voltage is 0.1125 V\r
* 0b110..reserved\r
* 0b111..reserved\r
*/\r
-#define USBPHY_RX_TOG_ENVADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_ENVADJ_SHIFT)) & USBPHY_RX_TOG_ENVADJ_MASK)\r
-#define USBPHY_RX_TOG_DISCONADJ_MASK (0x70U)\r
-#define USBPHY_RX_TOG_DISCONADJ_SHIFT (4U)\r
+#define USBPHY_RX_TOG_ENVADJ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_ENVADJ_SHIFT)) & USBPHY_RX_TOG_ENVADJ_MASK)\r
+#define USBPHY_RX_TOG_DISCONADJ_MASK (0x70U)\r
+#define USBPHY_RX_TOG_DISCONADJ_SHIFT (4U)\r
/*! DISCONADJ\r
* 0b000..Trip-Level Voltage is 0.56875 V\r
* 0b001..Trip-Level Voltage is 0.55000 V\r
* 0b110..reserved\r
* 0b111..reserved\r
*/\r
-#define USBPHY_RX_TOG_DISCONADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_DISCONADJ_SHIFT)) & USBPHY_RX_TOG_DISCONADJ_MASK)\r
-#define USBPHY_RX_TOG_RXDBYPASS_MASK (0x400000U)\r
-#define USBPHY_RX_TOG_RXDBYPASS_SHIFT (22U)\r
+#define USBPHY_RX_TOG_DISCONADJ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_DISCONADJ_SHIFT)) & USBPHY_RX_TOG_DISCONADJ_MASK)\r
+#define USBPHY_RX_TOG_RXDBYPASS_MASK (0x400000U)\r
+#define USBPHY_RX_TOG_RXDBYPASS_SHIFT (22U)\r
/*! RXDBYPASS\r
* 0b0..Normal operation.\r
* 0b1..Use the output of the USB_DP single-ended receiver in place of the full-speed differential receiver\r
*/\r
-#define USBPHY_RX_TOG_RXDBYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_RXDBYPASS_SHIFT)) & USBPHY_RX_TOG_RXDBYPASS_MASK)\r
+#define USBPHY_RX_TOG_RXDBYPASS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_RX_TOG_RXDBYPASS_SHIFT)) & USBPHY_RX_TOG_RXDBYPASS_MASK)\r
/*! @} */\r
\r
/*! @name CTRL - USB PHY General Control Register */\r
/*! @{ */\r
-#define USBPHY_CTRL_ENHOSTDISCONDETECT_MASK (0x2U)\r
-#define USBPHY_CTRL_ENHOSTDISCONDETECT_SHIFT (1U)\r
-#define USBPHY_CTRL_ENHOSTDISCONDETECT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_ENHOSTDISCONDETECT_MASK)\r
-#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ_MASK (0x8U)\r
-#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ_SHIFT (3U)\r
-#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_HOSTDISCONDETECT_IRQ_MASK)\r
-#define USBPHY_CTRL_ENDEVPLUGINDET_MASK (0x10U)\r
-#define USBPHY_CTRL_ENDEVPLUGINDET_SHIFT (4U)\r
+#define USBPHY_CTRL_ENHOSTDISCONDETECT_MASK (0x2U)\r
+#define USBPHY_CTRL_ENHOSTDISCONDETECT_SHIFT (1U)\r
+#define USBPHY_CTRL_ENHOSTDISCONDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_ENHOSTDISCONDETECT_MASK)\r
+#define USBPHY_CTRL_ENIRQHOSTDISCON_MASK (0x4U)\r
+#define USBPHY_CTRL_ENIRQHOSTDISCON_SHIFT (2U)\r
+#define USBPHY_CTRL_ENIRQHOSTDISCON(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENIRQHOSTDISCON_SHIFT)) & USBPHY_CTRL_ENIRQHOSTDISCON_MASK)\r
+#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ_MASK (0x8U)\r
+#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ_SHIFT (3U)\r
+#define USBPHY_CTRL_HOSTDISCONDETECT_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_HOSTDISCONDETECT_IRQ_MASK)\r
+#define USBPHY_CTRL_ENDEVPLUGINDET_MASK (0x10U)\r
+#define USBPHY_CTRL_ENDEVPLUGINDET_SHIFT (4U)\r
/*! ENDEVPLUGINDET\r
* 0b0..Disables 200kohm pullup resistors on USB_DP and USB_DM pins (Default)\r
* 0b1..Enables 200kohm pullup resistors on USB_DP and USB_DM pins\r
*/\r
-#define USBPHY_CTRL_ENDEVPLUGINDET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_ENDEVPLUGINDET_MASK)\r
-#define USBPHY_CTRL_DEVPLUGIN_IRQ_MASK (0x1000U)\r
-#define USBPHY_CTRL_DEVPLUGIN_IRQ_SHIFT (12U)\r
-#define USBPHY_CTRL_DEVPLUGIN_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_DEVPLUGIN_IRQ_MASK)\r
-#define USBPHY_CTRL_DATA_ON_LRADC_MASK (0x2000U)\r
-#define USBPHY_CTRL_DATA_ON_LRADC_SHIFT (13U)\r
-#define USBPHY_CTRL_DATA_ON_LRADC(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_DATA_ON_LRADC_SHIFT)) & USBPHY_CTRL_DATA_ON_LRADC_MASK)\r
-#define USBPHY_CTRL_ENUTMILEVEL2_MASK (0x4000U)\r
-#define USBPHY_CTRL_ENUTMILEVEL2_SHIFT (14U)\r
-#define USBPHY_CTRL_ENUTMILEVEL2(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_ENUTMILEVEL2_MASK)\r
-#define USBPHY_CTRL_ENUTMILEVEL3_MASK (0x8000U)\r
-#define USBPHY_CTRL_ENUTMILEVEL3_SHIFT (15U)\r
-#define USBPHY_CTRL_ENUTMILEVEL3(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_ENUTMILEVEL3_MASK)\r
-#define USBPHY_CTRL_AUTORESUME_EN_MASK (0x40000U)\r
-#define USBPHY_CTRL_AUTORESUME_EN_SHIFT (18U)\r
-#define USBPHY_CTRL_AUTORESUME_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_AUTORESUME_EN_MASK)\r
-#define USBPHY_CTRL_ENAUTOCLR_CLKGATE_MASK (0x80000U)\r
-#define USBPHY_CTRL_ENAUTOCLR_CLKGATE_SHIFT (19U)\r
-#define USBPHY_CTRL_ENAUTOCLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_ENAUTOCLR_CLKGATE_MASK)\r
-#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD_MASK (0x100000U)\r
-#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD_SHIFT (20U)\r
-#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_ENAUTOCLR_PHY_PWD_MASK)\r
-#define USBPHY_CTRL_FSDLL_RST_EN_MASK (0x1000000U)\r
-#define USBPHY_CTRL_FSDLL_RST_EN_SHIFT (24U)\r
-#define USBPHY_CTRL_FSDLL_RST_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_FSDLL_RST_EN_SHIFT)) & USBPHY_CTRL_FSDLL_RST_EN_MASK)\r
-#define USBPHY_CTRL_OTG_ID_VALUE_MASK (0x8000000U)\r
-#define USBPHY_CTRL_OTG_ID_VALUE_SHIFT (27U)\r
-#define USBPHY_CTRL_OTG_ID_VALUE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_OTG_ID_VALUE_SHIFT)) & USBPHY_CTRL_OTG_ID_VALUE_MASK)\r
-#define USBPHY_CTRL_HOST_FORCE_LS_SE0_MASK (0x10000000U)\r
-#define USBPHY_CTRL_HOST_FORCE_LS_SE0_SHIFT (28U)\r
-#define USBPHY_CTRL_HOST_FORCE_LS_SE0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_HOST_FORCE_LS_SE0_MASK)\r
-#define USBPHY_CTRL_UTMI_SUSPENDM_MASK (0x20000000U)\r
-#define USBPHY_CTRL_UTMI_SUSPENDM_SHIFT (29U)\r
-#define USBPHY_CTRL_UTMI_SUSPENDM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_UTMI_SUSPENDM_MASK)\r
-#define USBPHY_CTRL_CLKGATE_MASK (0x40000000U)\r
-#define USBPHY_CTRL_CLKGATE_SHIFT (30U)\r
-#define USBPHY_CTRL_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLKGATE_SHIFT)) & USBPHY_CTRL_CLKGATE_MASK)\r
-#define USBPHY_CTRL_SFTRST_MASK (0x80000000U)\r
-#define USBPHY_CTRL_SFTRST_SHIFT (31U)\r
-#define USBPHY_CTRL_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SFTRST_SHIFT)) & USBPHY_CTRL_SFTRST_MASK)\r
+#define USBPHY_CTRL_ENDEVPLUGINDET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_ENDEVPLUGINDET_MASK)\r
+#define USBPHY_CTRL_DEVPLUGIN_POLARITY_MASK (0x20U)\r
+#define USBPHY_CTRL_DEVPLUGIN_POLARITY_SHIFT (5U)\r
+#define USBPHY_CTRL_DEVPLUGIN_POLARITY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_DEVPLUGIN_POLARITY_SHIFT)) & USBPHY_CTRL_DEVPLUGIN_POLARITY_MASK)\r
+#define USBPHY_CTRL_RESUMEIRQSTICKY_MASK (0x100U)\r
+#define USBPHY_CTRL_RESUMEIRQSTICKY_SHIFT (8U)\r
+#define USBPHY_CTRL_RESUMEIRQSTICKY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_RESUMEIRQSTICKY_SHIFT)) & USBPHY_CTRL_RESUMEIRQSTICKY_MASK)\r
+#define USBPHY_CTRL_ENIRQRESUMEDETECT_MASK (0x200U)\r
+#define USBPHY_CTRL_ENIRQRESUMEDETECT_SHIFT (9U)\r
+#define USBPHY_CTRL_ENIRQRESUMEDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENIRQRESUMEDETECT_SHIFT)) & USBPHY_CTRL_ENIRQRESUMEDETECT_MASK)\r
+#define USBPHY_CTRL_RESUME_IRQ_MASK (0x400U)\r
+#define USBPHY_CTRL_RESUME_IRQ_SHIFT (10U)\r
+#define USBPHY_CTRL_RESUME_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_RESUME_IRQ_SHIFT)) & USBPHY_CTRL_RESUME_IRQ_MASK)\r
+#define USBPHY_CTRL_DEVPLUGIN_IRQ_MASK (0x1000U)\r
+#define USBPHY_CTRL_DEVPLUGIN_IRQ_SHIFT (12U)\r
+#define USBPHY_CTRL_DEVPLUGIN_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_DEVPLUGIN_IRQ_MASK)\r
+#define USBPHY_CTRL_ENUTMILEVEL2_MASK (0x4000U)\r
+#define USBPHY_CTRL_ENUTMILEVEL2_SHIFT (14U)\r
+#define USBPHY_CTRL_ENUTMILEVEL2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_ENUTMILEVEL2_MASK)\r
+#define USBPHY_CTRL_ENUTMILEVEL3_MASK (0x8000U)\r
+#define USBPHY_CTRL_ENUTMILEVEL3_SHIFT (15U)\r
+#define USBPHY_CTRL_ENUTMILEVEL3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_ENUTMILEVEL3_MASK)\r
+#define USBPHY_CTRL_ENIRQWAKEUP_MASK (0x10000U)\r
+#define USBPHY_CTRL_ENIRQWAKEUP_SHIFT (16U)\r
+#define USBPHY_CTRL_ENIRQWAKEUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENIRQWAKEUP_SHIFT)) & USBPHY_CTRL_ENIRQWAKEUP_MASK)\r
+#define USBPHY_CTRL_WAKEUP_IRQ_MASK (0x20000U)\r
+#define USBPHY_CTRL_WAKEUP_IRQ_SHIFT (17U)\r
+#define USBPHY_CTRL_WAKEUP_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_WAKEUP_IRQ_SHIFT)) & USBPHY_CTRL_WAKEUP_IRQ_MASK)\r
+#define USBPHY_CTRL_AUTORESUME_EN_MASK (0x40000U)\r
+#define USBPHY_CTRL_AUTORESUME_EN_SHIFT (18U)\r
+#define USBPHY_CTRL_AUTORESUME_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_AUTORESUME_EN_MASK)\r
+#define USBPHY_CTRL_ENAUTOCLR_CLKGATE_MASK (0x80000U)\r
+#define USBPHY_CTRL_ENAUTOCLR_CLKGATE_SHIFT (19U)\r
+#define USBPHY_CTRL_ENAUTOCLR_CLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_ENAUTOCLR_CLKGATE_MASK)\r
+#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD_MASK (0x100000U)\r
+#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD_SHIFT (20U)\r
+#define USBPHY_CTRL_ENAUTOCLR_PHY_PWD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_ENAUTOCLR_PHY_PWD_MASK)\r
+#define USBPHY_CTRL_ENDPDMCHG_WKUP_MASK (0x200000U)\r
+#define USBPHY_CTRL_ENDPDMCHG_WKUP_SHIFT (21U)\r
+#define USBPHY_CTRL_ENDPDMCHG_WKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENDPDMCHG_WKUP_SHIFT)) & USBPHY_CTRL_ENDPDMCHG_WKUP_MASK)\r
+#define USBPHY_CTRL_ENVBUSCHG_WKUP_MASK (0x800000U)\r
+#define USBPHY_CTRL_ENVBUSCHG_WKUP_SHIFT (23U)\r
+#define USBPHY_CTRL_ENVBUSCHG_WKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENVBUSCHG_WKUP_SHIFT)) & USBPHY_CTRL_ENVBUSCHG_WKUP_MASK)\r
+#define USBPHY_CTRL_ENAUTOCLR_USBCLKGATE_MASK (0x2000000U)\r
+#define USBPHY_CTRL_ENAUTOCLR_USBCLKGATE_SHIFT (25U)\r
+#define USBPHY_CTRL_ENAUTOCLR_USBCLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENAUTOCLR_USBCLKGATE_SHIFT)) & USBPHY_CTRL_ENAUTOCLR_USBCLKGATE_MASK)\r
+#define USBPHY_CTRL_ENAUTOSET_USBCLKS_MASK (0x4000000U)\r
+#define USBPHY_CTRL_ENAUTOSET_USBCLKS_SHIFT (26U)\r
+#define USBPHY_CTRL_ENAUTOSET_USBCLKS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_ENAUTOSET_USBCLKS_SHIFT)) & USBPHY_CTRL_ENAUTOSET_USBCLKS_MASK)\r
+#define USBPHY_CTRL_HOST_FORCE_LS_SE0_MASK (0x10000000U)\r
+#define USBPHY_CTRL_HOST_FORCE_LS_SE0_SHIFT (28U)\r
+#define USBPHY_CTRL_HOST_FORCE_LS_SE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_HOST_FORCE_LS_SE0_MASK)\r
+#define USBPHY_CTRL_UTMI_SUSPENDM_MASK (0x20000000U)\r
+#define USBPHY_CTRL_UTMI_SUSPENDM_SHIFT (29U)\r
+#define USBPHY_CTRL_UTMI_SUSPENDM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_UTMI_SUSPENDM_MASK)\r
+#define USBPHY_CTRL_CLKGATE_MASK (0x40000000U)\r
+#define USBPHY_CTRL_CLKGATE_SHIFT (30U)\r
+#define USBPHY_CTRL_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLKGATE_SHIFT)) & USBPHY_CTRL_CLKGATE_MASK)\r
+#define USBPHY_CTRL_SFTRST_MASK (0x80000000U)\r
+#define USBPHY_CTRL_SFTRST_SHIFT (31U)\r
+#define USBPHY_CTRL_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SFTRST_SHIFT)) & USBPHY_CTRL_SFTRST_MASK)\r
/*! @} */\r
\r
/*! @name CTRL_SET - USB PHY General Control Register */\r
/*! @{ */\r
-#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT_MASK (0x2U)\r
+#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT_MASK (0x2U)\r
#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT_SHIFT (1U)\r
-#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_SET_ENHOSTDISCONDETECT_MASK)\r
+#define USBPHY_CTRL_SET_ENHOSTDISCONDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENHOSTDISCONDETECT_SHIFT)) & \\r
+ USBPHY_CTRL_SET_ENHOSTDISCONDETECT_MASK)\r
+#define USBPHY_CTRL_SET_ENIRQHOSTDISCON_MASK (0x4U)\r
+#define USBPHY_CTRL_SET_ENIRQHOSTDISCON_SHIFT (2U)\r
+#define USBPHY_CTRL_SET_ENIRQHOSTDISCON(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENIRQHOSTDISCON_SHIFT)) & USBPHY_CTRL_SET_ENIRQHOSTDISCON_MASK)\r
#define USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_MASK (0x8U)\r
#define USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_SHIFT (3U)\r
-#define USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_MASK)\r
-#define USBPHY_CTRL_SET_ENDEVPLUGINDET_MASK (0x10U)\r
-#define USBPHY_CTRL_SET_ENDEVPLUGINDET_SHIFT (4U)\r
+#define USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_SHIFT)) & \\r
+ USBPHY_CTRL_SET_HOSTDISCONDETECT_IRQ_MASK)\r
+#define USBPHY_CTRL_SET_ENDEVPLUGINDET_MASK (0x10U)\r
+#define USBPHY_CTRL_SET_ENDEVPLUGINDET_SHIFT (4U)\r
/*! ENDEVPLUGINDET\r
* 0b0..Disables 200kohm pullup resistors on USB_DP and USB_DM pins (Default)\r
* 0b1..Enables 200kohm pullup resistors on USB_DP and USB_DM pins\r
*/\r
-#define USBPHY_CTRL_SET_ENDEVPLUGINDET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_SET_ENDEVPLUGINDET_MASK)\r
-#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ_MASK (0x1000U)\r
-#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ_SHIFT (12U)\r
-#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_SET_DEVPLUGIN_IRQ_MASK)\r
-#define USBPHY_CTRL_SET_ENUTMILEVEL2_MASK (0x4000U)\r
-#define USBPHY_CTRL_SET_ENUTMILEVEL2_SHIFT (14U)\r
-#define USBPHY_CTRL_SET_ENUTMILEVEL2(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_SET_ENUTMILEVEL2_MASK)\r
-#define USBPHY_CTRL_SET_ENUTMILEVEL3_MASK (0x8000U)\r
-#define USBPHY_CTRL_SET_ENUTMILEVEL3_SHIFT (15U)\r
-#define USBPHY_CTRL_SET_ENUTMILEVEL3(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_SET_ENUTMILEVEL3_MASK)\r
-#define USBPHY_CTRL_SET_AUTORESUME_EN_MASK (0x40000U)\r
-#define USBPHY_CTRL_SET_AUTORESUME_EN_SHIFT (18U)\r
-#define USBPHY_CTRL_SET_AUTORESUME_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_SET_AUTORESUME_EN_MASK)\r
-#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_MASK (0x80000U)\r
-#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_SHIFT (19U)\r
-#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_MASK)\r
-#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_MASK (0x100000U)\r
-#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_SHIFT (20U)\r
-#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_MASK)\r
-#define USBPHY_CTRL_SET_FSDLL_RST_EN_MASK (0x1000000U)\r
-#define USBPHY_CTRL_SET_FSDLL_RST_EN_SHIFT (24U)\r
-#define USBPHY_CTRL_SET_FSDLL_RST_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_FSDLL_RST_EN_SHIFT)) & USBPHY_CTRL_SET_FSDLL_RST_EN_MASK)\r
-#define USBPHY_CTRL_SET_OTG_ID_VALUE_MASK (0x8000000U)\r
-#define USBPHY_CTRL_SET_OTG_ID_VALUE_SHIFT (27U)\r
-#define USBPHY_CTRL_SET_OTG_ID_VALUE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_OTG_ID_VALUE_SHIFT)) & USBPHY_CTRL_SET_OTG_ID_VALUE_MASK)\r
-#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_MASK (0x10000000U)\r
-#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_SHIFT (28U)\r
-#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_MASK)\r
-#define USBPHY_CTRL_SET_UTMI_SUSPENDM_MASK (0x20000000U)\r
-#define USBPHY_CTRL_SET_UTMI_SUSPENDM_SHIFT (29U)\r
-#define USBPHY_CTRL_SET_UTMI_SUSPENDM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_SET_UTMI_SUSPENDM_MASK)\r
-#define USBPHY_CTRL_SET_CLKGATE_MASK (0x40000000U)\r
-#define USBPHY_CTRL_SET_CLKGATE_SHIFT (30U)\r
-#define USBPHY_CTRL_SET_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_CLKGATE_SHIFT)) & USBPHY_CTRL_SET_CLKGATE_MASK)\r
-#define USBPHY_CTRL_SET_SFTRST_MASK (0x80000000U)\r
-#define USBPHY_CTRL_SET_SFTRST_SHIFT (31U)\r
-#define USBPHY_CTRL_SET_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_SFTRST_SHIFT)) & USBPHY_CTRL_SET_SFTRST_MASK)\r
+#define USBPHY_CTRL_SET_ENDEVPLUGINDET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_SET_ENDEVPLUGINDET_MASK)\r
+#define USBPHY_CTRL_SET_DEVPLUGIN_POLARITY_MASK (0x20U)\r
+#define USBPHY_CTRL_SET_DEVPLUGIN_POLARITY_SHIFT (5U)\r
+#define USBPHY_CTRL_SET_DEVPLUGIN_POLARITY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_DEVPLUGIN_POLARITY_SHIFT)) & \\r
+ USBPHY_CTRL_SET_DEVPLUGIN_POLARITY_MASK)\r
+#define USBPHY_CTRL_SET_RESUMEIRQSTICKY_MASK (0x100U)\r
+#define USBPHY_CTRL_SET_RESUMEIRQSTICKY_SHIFT (8U)\r
+#define USBPHY_CTRL_SET_RESUMEIRQSTICKY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_RESUMEIRQSTICKY_SHIFT)) & USBPHY_CTRL_SET_RESUMEIRQSTICKY_MASK)\r
+#define USBPHY_CTRL_SET_ENIRQRESUMEDETECT_MASK (0x200U)\r
+#define USBPHY_CTRL_SET_ENIRQRESUMEDETECT_SHIFT (9U)\r
+#define USBPHY_CTRL_SET_ENIRQRESUMEDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENIRQRESUMEDETECT_SHIFT)) & USBPHY_CTRL_SET_ENIRQRESUMEDETECT_MASK)\r
+#define USBPHY_CTRL_SET_RESUME_IRQ_MASK (0x400U)\r
+#define USBPHY_CTRL_SET_RESUME_IRQ_SHIFT (10U)\r
+#define USBPHY_CTRL_SET_RESUME_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_RESUME_IRQ_SHIFT)) & USBPHY_CTRL_SET_RESUME_IRQ_MASK)\r
+#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ_MASK (0x1000U)\r
+#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ_SHIFT (12U)\r
+#define USBPHY_CTRL_SET_DEVPLUGIN_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_SET_DEVPLUGIN_IRQ_MASK)\r
+#define USBPHY_CTRL_SET_ENUTMILEVEL2_MASK (0x4000U)\r
+#define USBPHY_CTRL_SET_ENUTMILEVEL2_SHIFT (14U)\r
+#define USBPHY_CTRL_SET_ENUTMILEVEL2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_SET_ENUTMILEVEL2_MASK)\r
+#define USBPHY_CTRL_SET_ENUTMILEVEL3_MASK (0x8000U)\r
+#define USBPHY_CTRL_SET_ENUTMILEVEL3_SHIFT (15U)\r
+#define USBPHY_CTRL_SET_ENUTMILEVEL3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_SET_ENUTMILEVEL3_MASK)\r
+#define USBPHY_CTRL_SET_ENIRQWAKEUP_MASK (0x10000U)\r
+#define USBPHY_CTRL_SET_ENIRQWAKEUP_SHIFT (16U)\r
+#define USBPHY_CTRL_SET_ENIRQWAKEUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENIRQWAKEUP_SHIFT)) & USBPHY_CTRL_SET_ENIRQWAKEUP_MASK)\r
+#define USBPHY_CTRL_SET_WAKEUP_IRQ_MASK (0x20000U)\r
+#define USBPHY_CTRL_SET_WAKEUP_IRQ_SHIFT (17U)\r
+#define USBPHY_CTRL_SET_WAKEUP_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_WAKEUP_IRQ_SHIFT)) & USBPHY_CTRL_SET_WAKEUP_IRQ_MASK)\r
+#define USBPHY_CTRL_SET_AUTORESUME_EN_MASK (0x40000U)\r
+#define USBPHY_CTRL_SET_AUTORESUME_EN_SHIFT (18U)\r
+#define USBPHY_CTRL_SET_AUTORESUME_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_SET_AUTORESUME_EN_MASK)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_MASK (0x80000U)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_SHIFT (19U)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_SET_ENAUTOCLR_CLKGATE_MASK)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_MASK (0x100000U)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_SHIFT (20U)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_SET_ENAUTOCLR_PHY_PWD_MASK)\r
+#define USBPHY_CTRL_SET_ENDPDMCHG_WKUP_MASK (0x200000U)\r
+#define USBPHY_CTRL_SET_ENDPDMCHG_WKUP_SHIFT (21U)\r
+#define USBPHY_CTRL_SET_ENDPDMCHG_WKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENDPDMCHG_WKUP_SHIFT)) & USBPHY_CTRL_SET_ENDPDMCHG_WKUP_MASK)\r
+#define USBPHY_CTRL_SET_ENVBUSCHG_WKUP_MASK (0x800000U)\r
+#define USBPHY_CTRL_SET_ENVBUSCHG_WKUP_SHIFT (23U)\r
+#define USBPHY_CTRL_SET_ENVBUSCHG_WKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENVBUSCHG_WKUP_SHIFT)) & USBPHY_CTRL_SET_ENVBUSCHG_WKUP_MASK)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_USBCLKGATE_MASK (0x2000000U)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_USBCLKGATE_SHIFT (25U)\r
+#define USBPHY_CTRL_SET_ENAUTOCLR_USBCLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENAUTOCLR_USBCLKGATE_SHIFT)) & \\r
+ USBPHY_CTRL_SET_ENAUTOCLR_USBCLKGATE_MASK)\r
+#define USBPHY_CTRL_SET_ENAUTOSET_USBCLKS_MASK (0x4000000U)\r
+#define USBPHY_CTRL_SET_ENAUTOSET_USBCLKS_SHIFT (26U)\r
+#define USBPHY_CTRL_SET_ENAUTOSET_USBCLKS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_ENAUTOSET_USBCLKS_SHIFT)) & USBPHY_CTRL_SET_ENAUTOSET_USBCLKS_MASK)\r
+#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_MASK (0x10000000U)\r
+#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_SHIFT (28U)\r
+#define USBPHY_CTRL_SET_HOST_FORCE_LS_SE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_SET_HOST_FORCE_LS_SE0_MASK)\r
+#define USBPHY_CTRL_SET_UTMI_SUSPENDM_MASK (0x20000000U)\r
+#define USBPHY_CTRL_SET_UTMI_SUSPENDM_SHIFT (29U)\r
+#define USBPHY_CTRL_SET_UTMI_SUSPENDM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_SET_UTMI_SUSPENDM_MASK)\r
+#define USBPHY_CTRL_SET_CLKGATE_MASK (0x40000000U)\r
+#define USBPHY_CTRL_SET_CLKGATE_SHIFT (30U)\r
+#define USBPHY_CTRL_SET_CLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_CLKGATE_SHIFT)) & USBPHY_CTRL_SET_CLKGATE_MASK)\r
+#define USBPHY_CTRL_SET_SFTRST_MASK (0x80000000U)\r
+#define USBPHY_CTRL_SET_SFTRST_SHIFT (31U)\r
+#define USBPHY_CTRL_SET_SFTRST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_SET_SFTRST_SHIFT)) & USBPHY_CTRL_SET_SFTRST_MASK)\r
/*! @} */\r
\r
/*! @name CTRL_CLR - USB PHY General Control Register */\r
/*! @{ */\r
-#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_MASK (0x2U)\r
+#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_MASK (0x2U)\r
#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_SHIFT (1U)\r
-#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_MASK)\r
+#define USBPHY_CTRL_CLR_ENHOSTDISCONDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_SHIFT)) & \\r
+ USBPHY_CTRL_CLR_ENHOSTDISCONDETECT_MASK)\r
+#define USBPHY_CTRL_CLR_ENIRQHOSTDISCON_MASK (0x4U)\r
+#define USBPHY_CTRL_CLR_ENIRQHOSTDISCON_SHIFT (2U)\r
+#define USBPHY_CTRL_CLR_ENIRQHOSTDISCON(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENIRQHOSTDISCON_SHIFT)) & USBPHY_CTRL_CLR_ENIRQHOSTDISCON_MASK)\r
#define USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_MASK (0x8U)\r
#define USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_SHIFT (3U)\r
-#define USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_MASK)\r
-#define USBPHY_CTRL_CLR_ENDEVPLUGINDET_MASK (0x10U)\r
-#define USBPHY_CTRL_CLR_ENDEVPLUGINDET_SHIFT (4U)\r
+#define USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_SHIFT)) & \\r
+ USBPHY_CTRL_CLR_HOSTDISCONDETECT_IRQ_MASK)\r
+#define USBPHY_CTRL_CLR_ENDEVPLUGINDET_MASK (0x10U)\r
+#define USBPHY_CTRL_CLR_ENDEVPLUGINDET_SHIFT (4U)\r
/*! ENDEVPLUGINDET\r
* 0b0..Disables 200kohm pullup resistors on USB_DP and USB_DM pins (Default)\r
* 0b1..Enables 200kohm pullup resistors on USB_DP and USB_DM pins\r
*/\r
-#define USBPHY_CTRL_CLR_ENDEVPLUGINDET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_CLR_ENDEVPLUGINDET_MASK)\r
-#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_MASK (0x1000U)\r
-#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_SHIFT (12U)\r
-#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_MASK)\r
-#define USBPHY_CTRL_CLR_ENUTMILEVEL2_MASK (0x4000U)\r
-#define USBPHY_CTRL_CLR_ENUTMILEVEL2_SHIFT (14U)\r
-#define USBPHY_CTRL_CLR_ENUTMILEVEL2(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_CLR_ENUTMILEVEL2_MASK)\r
-#define USBPHY_CTRL_CLR_ENUTMILEVEL3_MASK (0x8000U)\r
-#define USBPHY_CTRL_CLR_ENUTMILEVEL3_SHIFT (15U)\r
-#define USBPHY_CTRL_CLR_ENUTMILEVEL3(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_CLR_ENUTMILEVEL3_MASK)\r
-#define USBPHY_CTRL_CLR_AUTORESUME_EN_MASK (0x40000U)\r
-#define USBPHY_CTRL_CLR_AUTORESUME_EN_SHIFT (18U)\r
-#define USBPHY_CTRL_CLR_AUTORESUME_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_CLR_AUTORESUME_EN_MASK)\r
-#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_MASK (0x80000U)\r
-#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_SHIFT (19U)\r
-#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_MASK)\r
-#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_MASK (0x100000U)\r
-#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_SHIFT (20U)\r
-#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_MASK)\r
-#define USBPHY_CTRL_CLR_FSDLL_RST_EN_MASK (0x1000000U)\r
-#define USBPHY_CTRL_CLR_FSDLL_RST_EN_SHIFT (24U)\r
-#define USBPHY_CTRL_CLR_FSDLL_RST_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_FSDLL_RST_EN_SHIFT)) & USBPHY_CTRL_CLR_FSDLL_RST_EN_MASK)\r
-#define USBPHY_CTRL_CLR_OTG_ID_VALUE_MASK (0x8000000U)\r
-#define USBPHY_CTRL_CLR_OTG_ID_VALUE_SHIFT (27U)\r
-#define USBPHY_CTRL_CLR_OTG_ID_VALUE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_OTG_ID_VALUE_SHIFT)) & USBPHY_CTRL_CLR_OTG_ID_VALUE_MASK)\r
-#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_MASK (0x10000000U)\r
-#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_SHIFT (28U)\r
-#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_MASK)\r
-#define USBPHY_CTRL_CLR_UTMI_SUSPENDM_MASK (0x20000000U)\r
-#define USBPHY_CTRL_CLR_UTMI_SUSPENDM_SHIFT (29U)\r
-#define USBPHY_CTRL_CLR_UTMI_SUSPENDM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_CLR_UTMI_SUSPENDM_MASK)\r
-#define USBPHY_CTRL_CLR_CLKGATE_MASK (0x40000000U)\r
-#define USBPHY_CTRL_CLR_CLKGATE_SHIFT (30U)\r
-#define USBPHY_CTRL_CLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_CLKGATE_SHIFT)) & USBPHY_CTRL_CLR_CLKGATE_MASK)\r
-#define USBPHY_CTRL_CLR_SFTRST_MASK (0x80000000U)\r
-#define USBPHY_CTRL_CLR_SFTRST_SHIFT (31U)\r
-#define USBPHY_CTRL_CLR_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_SFTRST_SHIFT)) & USBPHY_CTRL_CLR_SFTRST_MASK)\r
+#define USBPHY_CTRL_CLR_ENDEVPLUGINDET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_CLR_ENDEVPLUGINDET_MASK)\r
+#define USBPHY_CTRL_CLR_DEVPLUGIN_POLARITY_MASK (0x20U)\r
+#define USBPHY_CTRL_CLR_DEVPLUGIN_POLARITY_SHIFT (5U)\r
+#define USBPHY_CTRL_CLR_DEVPLUGIN_POLARITY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_DEVPLUGIN_POLARITY_SHIFT)) & \\r
+ USBPHY_CTRL_CLR_DEVPLUGIN_POLARITY_MASK)\r
+#define USBPHY_CTRL_CLR_RESUMEIRQSTICKY_MASK (0x100U)\r
+#define USBPHY_CTRL_CLR_RESUMEIRQSTICKY_SHIFT (8U)\r
+#define USBPHY_CTRL_CLR_RESUMEIRQSTICKY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_RESUMEIRQSTICKY_SHIFT)) & USBPHY_CTRL_CLR_RESUMEIRQSTICKY_MASK)\r
+#define USBPHY_CTRL_CLR_ENIRQRESUMEDETECT_MASK (0x200U)\r
+#define USBPHY_CTRL_CLR_ENIRQRESUMEDETECT_SHIFT (9U)\r
+#define USBPHY_CTRL_CLR_ENIRQRESUMEDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENIRQRESUMEDETECT_SHIFT)) & USBPHY_CTRL_CLR_ENIRQRESUMEDETECT_MASK)\r
+#define USBPHY_CTRL_CLR_RESUME_IRQ_MASK (0x400U)\r
+#define USBPHY_CTRL_CLR_RESUME_IRQ_SHIFT (10U)\r
+#define USBPHY_CTRL_CLR_RESUME_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_RESUME_IRQ_SHIFT)) & USBPHY_CTRL_CLR_RESUME_IRQ_MASK)\r
+#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_MASK (0x1000U)\r
+#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_SHIFT (12U)\r
+#define USBPHY_CTRL_CLR_DEVPLUGIN_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_CLR_DEVPLUGIN_IRQ_MASK)\r
+#define USBPHY_CTRL_CLR_ENUTMILEVEL2_MASK (0x4000U)\r
+#define USBPHY_CTRL_CLR_ENUTMILEVEL2_SHIFT (14U)\r
+#define USBPHY_CTRL_CLR_ENUTMILEVEL2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_CLR_ENUTMILEVEL2_MASK)\r
+#define USBPHY_CTRL_CLR_ENUTMILEVEL3_MASK (0x8000U)\r
+#define USBPHY_CTRL_CLR_ENUTMILEVEL3_SHIFT (15U)\r
+#define USBPHY_CTRL_CLR_ENUTMILEVEL3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_CLR_ENUTMILEVEL3_MASK)\r
+#define USBPHY_CTRL_CLR_ENIRQWAKEUP_MASK (0x10000U)\r
+#define USBPHY_CTRL_CLR_ENIRQWAKEUP_SHIFT (16U)\r
+#define USBPHY_CTRL_CLR_ENIRQWAKEUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENIRQWAKEUP_SHIFT)) & USBPHY_CTRL_CLR_ENIRQWAKEUP_MASK)\r
+#define USBPHY_CTRL_CLR_WAKEUP_IRQ_MASK (0x20000U)\r
+#define USBPHY_CTRL_CLR_WAKEUP_IRQ_SHIFT (17U)\r
+#define USBPHY_CTRL_CLR_WAKEUP_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_WAKEUP_IRQ_SHIFT)) & USBPHY_CTRL_CLR_WAKEUP_IRQ_MASK)\r
+#define USBPHY_CTRL_CLR_AUTORESUME_EN_MASK (0x40000U)\r
+#define USBPHY_CTRL_CLR_AUTORESUME_EN_SHIFT (18U)\r
+#define USBPHY_CTRL_CLR_AUTORESUME_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_CLR_AUTORESUME_EN_MASK)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_MASK (0x80000U)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_SHIFT (19U)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_CLR_ENAUTOCLR_CLKGATE_MASK)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_MASK (0x100000U)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_SHIFT (20U)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_CLR_ENAUTOCLR_PHY_PWD_MASK)\r
+#define USBPHY_CTRL_CLR_ENDPDMCHG_WKUP_MASK (0x200000U)\r
+#define USBPHY_CTRL_CLR_ENDPDMCHG_WKUP_SHIFT (21U)\r
+#define USBPHY_CTRL_CLR_ENDPDMCHG_WKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENDPDMCHG_WKUP_SHIFT)) & USBPHY_CTRL_CLR_ENDPDMCHG_WKUP_MASK)\r
+#define USBPHY_CTRL_CLR_ENVBUSCHG_WKUP_MASK (0x800000U)\r
+#define USBPHY_CTRL_CLR_ENVBUSCHG_WKUP_SHIFT (23U)\r
+#define USBPHY_CTRL_CLR_ENVBUSCHG_WKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENVBUSCHG_WKUP_SHIFT)) & USBPHY_CTRL_CLR_ENVBUSCHG_WKUP_MASK)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_USBCLKGATE_MASK (0x2000000U)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_USBCLKGATE_SHIFT (25U)\r
+#define USBPHY_CTRL_CLR_ENAUTOCLR_USBCLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENAUTOCLR_USBCLKGATE_SHIFT)) & \\r
+ USBPHY_CTRL_CLR_ENAUTOCLR_USBCLKGATE_MASK)\r
+#define USBPHY_CTRL_CLR_ENAUTOSET_USBCLKS_MASK (0x4000000U)\r
+#define USBPHY_CTRL_CLR_ENAUTOSET_USBCLKS_SHIFT (26U)\r
+#define USBPHY_CTRL_CLR_ENAUTOSET_USBCLKS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_ENAUTOSET_USBCLKS_SHIFT)) & USBPHY_CTRL_CLR_ENAUTOSET_USBCLKS_MASK)\r
+#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_MASK (0x10000000U)\r
+#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_SHIFT (28U)\r
+#define USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_CLR_HOST_FORCE_LS_SE0_MASK)\r
+#define USBPHY_CTRL_CLR_UTMI_SUSPENDM_MASK (0x20000000U)\r
+#define USBPHY_CTRL_CLR_UTMI_SUSPENDM_SHIFT (29U)\r
+#define USBPHY_CTRL_CLR_UTMI_SUSPENDM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_CLR_UTMI_SUSPENDM_MASK)\r
+#define USBPHY_CTRL_CLR_CLKGATE_MASK (0x40000000U)\r
+#define USBPHY_CTRL_CLR_CLKGATE_SHIFT (30U)\r
+#define USBPHY_CTRL_CLR_CLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_CLKGATE_SHIFT)) & USBPHY_CTRL_CLR_CLKGATE_MASK)\r
+#define USBPHY_CTRL_CLR_SFTRST_MASK (0x80000000U)\r
+#define USBPHY_CTRL_CLR_SFTRST_SHIFT (31U)\r
+#define USBPHY_CTRL_CLR_SFTRST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_CLR_SFTRST_SHIFT)) & USBPHY_CTRL_CLR_SFTRST_MASK)\r
/*! @} */\r
\r
/*! @name CTRL_TOG - USB PHY General Control Register */\r
/*! @{ */\r
-#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_MASK (0x2U)\r
+#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_MASK (0x2U)\r
#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_SHIFT (1U)\r
-#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_SHIFT)) & USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_MASK)\r
+#define USBPHY_CTRL_TOG_ENHOSTDISCONDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_SHIFT)) & \\r
+ USBPHY_CTRL_TOG_ENHOSTDISCONDETECT_MASK)\r
+#define USBPHY_CTRL_TOG_ENIRQHOSTDISCON_MASK (0x4U)\r
+#define USBPHY_CTRL_TOG_ENIRQHOSTDISCON_SHIFT (2U)\r
+#define USBPHY_CTRL_TOG_ENIRQHOSTDISCON(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENIRQHOSTDISCON_SHIFT)) & USBPHY_CTRL_TOG_ENIRQHOSTDISCON_MASK)\r
#define USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_MASK (0x8U)\r
#define USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_SHIFT (3U)\r
-#define USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_SHIFT)) & USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_MASK)\r
-#define USBPHY_CTRL_TOG_ENDEVPLUGINDET_MASK (0x10U)\r
-#define USBPHY_CTRL_TOG_ENDEVPLUGINDET_SHIFT (4U)\r
+#define USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_SHIFT)) & \\r
+ USBPHY_CTRL_TOG_HOSTDISCONDETECT_IRQ_MASK)\r
+#define USBPHY_CTRL_TOG_ENDEVPLUGINDET_MASK (0x10U)\r
+#define USBPHY_CTRL_TOG_ENDEVPLUGINDET_SHIFT (4U)\r
/*! ENDEVPLUGINDET\r
* 0b0..Disables 200kohm pullup resistors on USB_DP and USB_DM pins (Default)\r
* 0b1..Enables 200kohm pullup resistors on USB_DP and USB_DM pins\r
*/\r
-#define USBPHY_CTRL_TOG_ENDEVPLUGINDET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_TOG_ENDEVPLUGINDET_MASK)\r
-#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_MASK (0x1000U)\r
-#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_SHIFT (12U)\r
-#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_MASK)\r
-#define USBPHY_CTRL_TOG_ENUTMILEVEL2_MASK (0x4000U)\r
-#define USBPHY_CTRL_TOG_ENUTMILEVEL2_SHIFT (14U)\r
-#define USBPHY_CTRL_TOG_ENUTMILEVEL2(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_TOG_ENUTMILEVEL2_MASK)\r
-#define USBPHY_CTRL_TOG_ENUTMILEVEL3_MASK (0x8000U)\r
-#define USBPHY_CTRL_TOG_ENUTMILEVEL3_SHIFT (15U)\r
-#define USBPHY_CTRL_TOG_ENUTMILEVEL3(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_TOG_ENUTMILEVEL3_MASK)\r
-#define USBPHY_CTRL_TOG_AUTORESUME_EN_MASK (0x40000U)\r
-#define USBPHY_CTRL_TOG_AUTORESUME_EN_SHIFT (18U)\r
-#define USBPHY_CTRL_TOG_AUTORESUME_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_TOG_AUTORESUME_EN_MASK)\r
-#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_MASK (0x80000U)\r
-#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_SHIFT (19U)\r
-#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_MASK)\r
-#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_MASK (0x100000U)\r
-#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_SHIFT (20U)\r
-#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_MASK)\r
-#define USBPHY_CTRL_TOG_FSDLL_RST_EN_MASK (0x1000000U)\r
-#define USBPHY_CTRL_TOG_FSDLL_RST_EN_SHIFT (24U)\r
-#define USBPHY_CTRL_TOG_FSDLL_RST_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_FSDLL_RST_EN_SHIFT)) & USBPHY_CTRL_TOG_FSDLL_RST_EN_MASK)\r
-#define USBPHY_CTRL_TOG_OTG_ID_VALUE_MASK (0x8000000U)\r
-#define USBPHY_CTRL_TOG_OTG_ID_VALUE_SHIFT (27U)\r
-#define USBPHY_CTRL_TOG_OTG_ID_VALUE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_OTG_ID_VALUE_SHIFT)) & USBPHY_CTRL_TOG_OTG_ID_VALUE_MASK)\r
-#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_MASK (0x10000000U)\r
-#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_SHIFT (28U)\r
-#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_MASK)\r
-#define USBPHY_CTRL_TOG_UTMI_SUSPENDM_MASK (0x20000000U)\r
-#define USBPHY_CTRL_TOG_UTMI_SUSPENDM_SHIFT (29U)\r
-#define USBPHY_CTRL_TOG_UTMI_SUSPENDM(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_TOG_UTMI_SUSPENDM_MASK)\r
-#define USBPHY_CTRL_TOG_CLKGATE_MASK (0x40000000U)\r
-#define USBPHY_CTRL_TOG_CLKGATE_SHIFT (30U)\r
-#define USBPHY_CTRL_TOG_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_CLKGATE_SHIFT)) & USBPHY_CTRL_TOG_CLKGATE_MASK)\r
-#define USBPHY_CTRL_TOG_SFTRST_MASK (0x80000000U)\r
-#define USBPHY_CTRL_TOG_SFTRST_SHIFT (31U)\r
-#define USBPHY_CTRL_TOG_SFTRST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_SFTRST_SHIFT)) & USBPHY_CTRL_TOG_SFTRST_MASK)\r
+#define USBPHY_CTRL_TOG_ENDEVPLUGINDET(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENDEVPLUGINDET_SHIFT)) & USBPHY_CTRL_TOG_ENDEVPLUGINDET_MASK)\r
+#define USBPHY_CTRL_TOG_DEVPLUGIN_POLARITY_MASK (0x20U)\r
+#define USBPHY_CTRL_TOG_DEVPLUGIN_POLARITY_SHIFT (5U)\r
+#define USBPHY_CTRL_TOG_DEVPLUGIN_POLARITY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_DEVPLUGIN_POLARITY_SHIFT)) & \\r
+ USBPHY_CTRL_TOG_DEVPLUGIN_POLARITY_MASK)\r
+#define USBPHY_CTRL_TOG_RESUMEIRQSTICKY_MASK (0x100U)\r
+#define USBPHY_CTRL_TOG_RESUMEIRQSTICKY_SHIFT (8U)\r
+#define USBPHY_CTRL_TOG_RESUMEIRQSTICKY(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_RESUMEIRQSTICKY_SHIFT)) & USBPHY_CTRL_TOG_RESUMEIRQSTICKY_MASK)\r
+#define USBPHY_CTRL_TOG_ENIRQRESUMEDETECT_MASK (0x200U)\r
+#define USBPHY_CTRL_TOG_ENIRQRESUMEDETECT_SHIFT (9U)\r
+#define USBPHY_CTRL_TOG_ENIRQRESUMEDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENIRQRESUMEDETECT_SHIFT)) & USBPHY_CTRL_TOG_ENIRQRESUMEDETECT_MASK)\r
+#define USBPHY_CTRL_TOG_RESUME_IRQ_MASK (0x400U)\r
+#define USBPHY_CTRL_TOG_RESUME_IRQ_SHIFT (10U)\r
+#define USBPHY_CTRL_TOG_RESUME_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_RESUME_IRQ_SHIFT)) & USBPHY_CTRL_TOG_RESUME_IRQ_MASK)\r
+#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_MASK (0x1000U)\r
+#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_SHIFT (12U)\r
+#define USBPHY_CTRL_TOG_DEVPLUGIN_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_SHIFT)) & USBPHY_CTRL_TOG_DEVPLUGIN_IRQ_MASK)\r
+#define USBPHY_CTRL_TOG_ENUTMILEVEL2_MASK (0x4000U)\r
+#define USBPHY_CTRL_TOG_ENUTMILEVEL2_SHIFT (14U)\r
+#define USBPHY_CTRL_TOG_ENUTMILEVEL2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENUTMILEVEL2_SHIFT)) & USBPHY_CTRL_TOG_ENUTMILEVEL2_MASK)\r
+#define USBPHY_CTRL_TOG_ENUTMILEVEL3_MASK (0x8000U)\r
+#define USBPHY_CTRL_TOG_ENUTMILEVEL3_SHIFT (15U)\r
+#define USBPHY_CTRL_TOG_ENUTMILEVEL3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENUTMILEVEL3_SHIFT)) & USBPHY_CTRL_TOG_ENUTMILEVEL3_MASK)\r
+#define USBPHY_CTRL_TOG_ENIRQWAKEUP_MASK (0x10000U)\r
+#define USBPHY_CTRL_TOG_ENIRQWAKEUP_SHIFT (16U)\r
+#define USBPHY_CTRL_TOG_ENIRQWAKEUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENIRQWAKEUP_SHIFT)) & USBPHY_CTRL_TOG_ENIRQWAKEUP_MASK)\r
+#define USBPHY_CTRL_TOG_WAKEUP_IRQ_MASK (0x20000U)\r
+#define USBPHY_CTRL_TOG_WAKEUP_IRQ_SHIFT (17U)\r
+#define USBPHY_CTRL_TOG_WAKEUP_IRQ(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_WAKEUP_IRQ_SHIFT)) & USBPHY_CTRL_TOG_WAKEUP_IRQ_MASK)\r
+#define USBPHY_CTRL_TOG_AUTORESUME_EN_MASK (0x40000U)\r
+#define USBPHY_CTRL_TOG_AUTORESUME_EN_SHIFT (18U)\r
+#define USBPHY_CTRL_TOG_AUTORESUME_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_AUTORESUME_EN_SHIFT)) & USBPHY_CTRL_TOG_AUTORESUME_EN_MASK)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_MASK (0x80000U)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_SHIFT (19U)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_SHIFT)) & USBPHY_CTRL_TOG_ENAUTOCLR_CLKGATE_MASK)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_MASK (0x100000U)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_SHIFT (20U)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_SHIFT)) & USBPHY_CTRL_TOG_ENAUTOCLR_PHY_PWD_MASK)\r
+#define USBPHY_CTRL_TOG_ENDPDMCHG_WKUP_MASK (0x200000U)\r
+#define USBPHY_CTRL_TOG_ENDPDMCHG_WKUP_SHIFT (21U)\r
+#define USBPHY_CTRL_TOG_ENDPDMCHG_WKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENDPDMCHG_WKUP_SHIFT)) & USBPHY_CTRL_TOG_ENDPDMCHG_WKUP_MASK)\r
+#define USBPHY_CTRL_TOG_ENVBUSCHG_WKUP_MASK (0x800000U)\r
+#define USBPHY_CTRL_TOG_ENVBUSCHG_WKUP_SHIFT (23U)\r
+#define USBPHY_CTRL_TOG_ENVBUSCHG_WKUP(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENVBUSCHG_WKUP_SHIFT)) & USBPHY_CTRL_TOG_ENVBUSCHG_WKUP_MASK)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_USBCLKGATE_MASK (0x2000000U)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_USBCLKGATE_SHIFT (25U)\r
+#define USBPHY_CTRL_TOG_ENAUTOCLR_USBCLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENAUTOCLR_USBCLKGATE_SHIFT)) & \\r
+ USBPHY_CTRL_TOG_ENAUTOCLR_USBCLKGATE_MASK)\r
+#define USBPHY_CTRL_TOG_ENAUTOSET_USBCLKS_MASK (0x4000000U)\r
+#define USBPHY_CTRL_TOG_ENAUTOSET_USBCLKS_SHIFT (26U)\r
+#define USBPHY_CTRL_TOG_ENAUTOSET_USBCLKS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_ENAUTOSET_USBCLKS_SHIFT)) & USBPHY_CTRL_TOG_ENAUTOSET_USBCLKS_MASK)\r
+#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_MASK (0x10000000U)\r
+#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_SHIFT (28U)\r
+#define USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_SHIFT)) & USBPHY_CTRL_TOG_HOST_FORCE_LS_SE0_MASK)\r
+#define USBPHY_CTRL_TOG_UTMI_SUSPENDM_MASK (0x20000000U)\r
+#define USBPHY_CTRL_TOG_UTMI_SUSPENDM_SHIFT (29U)\r
+#define USBPHY_CTRL_TOG_UTMI_SUSPENDM(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_UTMI_SUSPENDM_SHIFT)) & USBPHY_CTRL_TOG_UTMI_SUSPENDM_MASK)\r
+#define USBPHY_CTRL_TOG_CLKGATE_MASK (0x40000000U)\r
+#define USBPHY_CTRL_TOG_CLKGATE_SHIFT (30U)\r
+#define USBPHY_CTRL_TOG_CLKGATE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_CLKGATE_SHIFT)) & USBPHY_CTRL_TOG_CLKGATE_MASK)\r
+#define USBPHY_CTRL_TOG_SFTRST_MASK (0x80000000U)\r
+#define USBPHY_CTRL_TOG_SFTRST_SHIFT (31U)\r
+#define USBPHY_CTRL_TOG_SFTRST(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_CTRL_TOG_SFTRST_SHIFT)) & USBPHY_CTRL_TOG_SFTRST_MASK)\r
/*! @} */\r
\r
/*! @name STATUS - USB PHY Status Register */\r
/*! @{ */\r
+#define USBPHY_STATUS_OK_STATUS_3V_MASK (0x1U)\r
+#define USBPHY_STATUS_OK_STATUS_3V_SHIFT (0U)\r
+#define USBPHY_STATUS_OK_STATUS_3V(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_OK_STATUS_3V_SHIFT)) & USBPHY_STATUS_OK_STATUS_3V_MASK)\r
#define USBPHY_STATUS_HOSTDISCONDETECT_STATUS_MASK (0x8U)\r
#define USBPHY_STATUS_HOSTDISCONDETECT_STATUS_SHIFT (3U)\r
/*! HOSTDISCONDETECT_STATUS\r
* 0b0..USB cable disconnect has not been detected at the local host\r
* 0b1..USB cable disconnect has been detected at the local host\r
*/\r
-#define USBPHY_STATUS_HOSTDISCONDETECT_STATUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_HOSTDISCONDETECT_STATUS_SHIFT)) & USBPHY_STATUS_HOSTDISCONDETECT_STATUS_MASK)\r
-#define USBPHY_STATUS_DEVPLUGIN_STATUS_MASK (0x40U)\r
-#define USBPHY_STATUS_DEVPLUGIN_STATUS_SHIFT (6U)\r
+#define USBPHY_STATUS_HOSTDISCONDETECT_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_HOSTDISCONDETECT_STATUS_SHIFT)) & \\r
+ USBPHY_STATUS_HOSTDISCONDETECT_STATUS_MASK)\r
+#define USBPHY_STATUS_DEVPLUGIN_STATUS_MASK (0x40U)\r
+#define USBPHY_STATUS_DEVPLUGIN_STATUS_SHIFT (6U)\r
/*! DEVPLUGIN_STATUS\r
* 0b0..No attachment to a USB host is detected\r
* 0b1..Cable attachment to a USB host is detected\r
*/\r
-#define USBPHY_STATUS_DEVPLUGIN_STATUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_DEVPLUGIN_STATUS_SHIFT)) & USBPHY_STATUS_DEVPLUGIN_STATUS_MASK)\r
-#define USBPHY_STATUS_OTGID_STATUS_MASK (0x100U)\r
-#define USBPHY_STATUS_OTGID_STATUS_SHIFT (8U)\r
-#define USBPHY_STATUS_OTGID_STATUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_OTGID_STATUS_SHIFT)) & USBPHY_STATUS_OTGID_STATUS_MASK)\r
-#define USBPHY_STATUS_RESUME_STATUS_MASK (0x400U)\r
-#define USBPHY_STATUS_RESUME_STATUS_SHIFT (10U)\r
-#define USBPHY_STATUS_RESUME_STATUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_RESUME_STATUS_SHIFT)) & USBPHY_STATUS_RESUME_STATUS_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG0 - USB PHY Debug Register 0 */\r
-/*! @{ */\r
-#define USBPHY_DEBUG0_OTGIDPIOLOCK_MASK (0x1U)\r
-#define USBPHY_DEBUG0_OTGIDPIOLOCK_SHIFT (0U)\r
-#define USBPHY_DEBUG0_OTGIDPIOLOCK(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_OTGIDPIOLOCK_SHIFT)) & USBPHY_DEBUG0_OTGIDPIOLOCK_MASK)\r
-#define USBPHY_DEBUG0_DEBUG_INTERFACE_HOLD_MASK (0x2U)\r
-#define USBPHY_DEBUG0_DEBUG_INTERFACE_HOLD_SHIFT (1U)\r
-#define USBPHY_DEBUG0_DEBUG_INTERFACE_HOLD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_DEBUG_INTERFACE_HOLD_SHIFT)) & USBPHY_DEBUG0_DEBUG_INTERFACE_HOLD_MASK)\r
-#define USBPHY_DEBUG0_HSTPULLDOWN_MASK (0xCU)\r
-#define USBPHY_DEBUG0_HSTPULLDOWN_SHIFT (2U)\r
-#define USBPHY_DEBUG0_HSTPULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_HSTPULLDOWN_SHIFT)) & USBPHY_DEBUG0_HSTPULLDOWN_MASK)\r
-#define USBPHY_DEBUG0_ENHSTPULLDOWN_MASK (0x30U)\r
-#define USBPHY_DEBUG0_ENHSTPULLDOWN_SHIFT (4U)\r
-#define USBPHY_DEBUG0_ENHSTPULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_ENHSTPULLDOWN_SHIFT)) & USBPHY_DEBUG0_ENHSTPULLDOWN_MASK)\r
-#define USBPHY_DEBUG0_TX2RXCOUNT_MASK (0xF00U)\r
-#define USBPHY_DEBUG0_TX2RXCOUNT_SHIFT (8U)\r
-#define USBPHY_DEBUG0_TX2RXCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TX2RXCOUNT_SHIFT)) & USBPHY_DEBUG0_TX2RXCOUNT_MASK)\r
-#define USBPHY_DEBUG0_ENTX2RXCOUNT_MASK (0x1000U)\r
-#define USBPHY_DEBUG0_ENTX2RXCOUNT_SHIFT (12U)\r
-#define USBPHY_DEBUG0_ENTX2RXCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_ENTX2RXCOUNT_SHIFT)) & USBPHY_DEBUG0_ENTX2RXCOUNT_MASK)\r
-#define USBPHY_DEBUG0_SQUELCHRESETCOUNT_MASK (0x1F0000U)\r
-#define USBPHY_DEBUG0_SQUELCHRESETCOUNT_SHIFT (16U)\r
-#define USBPHY_DEBUG0_SQUELCHRESETCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SQUELCHRESETCOUNT_SHIFT)) & USBPHY_DEBUG0_SQUELCHRESETCOUNT_MASK)\r
-#define USBPHY_DEBUG0_ENSQUELCHRESET_MASK (0x1000000U)\r
-#define USBPHY_DEBUG0_ENSQUELCHRESET_SHIFT (24U)\r
-#define USBPHY_DEBUG0_ENSQUELCHRESET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_ENSQUELCHRESET_SHIFT)) & USBPHY_DEBUG0_ENSQUELCHRESET_MASK)\r
-#define USBPHY_DEBUG0_SQUELCHRESETLENGTH_MASK (0x1E000000U)\r
-#define USBPHY_DEBUG0_SQUELCHRESETLENGTH_SHIFT (25U)\r
-#define USBPHY_DEBUG0_SQUELCHRESETLENGTH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SQUELCHRESETLENGTH_SHIFT)) & USBPHY_DEBUG0_SQUELCHRESETLENGTH_MASK)\r
-#define USBPHY_DEBUG0_HOST_RESUME_DEBUG_MASK (0x20000000U)\r
-#define USBPHY_DEBUG0_HOST_RESUME_DEBUG_SHIFT (29U)\r
-#define USBPHY_DEBUG0_HOST_RESUME_DEBUG(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_HOST_RESUME_DEBUG_SHIFT)) & USBPHY_DEBUG0_HOST_RESUME_DEBUG_MASK)\r
-#define USBPHY_DEBUG0_CLKGATE_MASK (0x40000000U)\r
-#define USBPHY_DEBUG0_CLKGATE_SHIFT (30U)\r
-#define USBPHY_DEBUG0_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLKGATE_SHIFT)) & USBPHY_DEBUG0_CLKGATE_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG0_SET - USB PHY Debug Register 0 */\r
-/*! @{ */\r
-#define USBPHY_DEBUG0_SET_OTGIDPIOLOCK_MASK (0x1U)\r
-#define USBPHY_DEBUG0_SET_OTGIDPIOLOCK_SHIFT (0U)\r
-#define USBPHY_DEBUG0_SET_OTGIDPIOLOCK(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_OTGIDPIOLOCK_SHIFT)) & USBPHY_DEBUG0_SET_OTGIDPIOLOCK_MASK)\r
-#define USBPHY_DEBUG0_SET_DEBUG_INTERFACE_HOLD_MASK (0x2U)\r
-#define USBPHY_DEBUG0_SET_DEBUG_INTERFACE_HOLD_SHIFT (1U)\r
-#define USBPHY_DEBUG0_SET_DEBUG_INTERFACE_HOLD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_DEBUG_INTERFACE_HOLD_SHIFT)) & USBPHY_DEBUG0_SET_DEBUG_INTERFACE_HOLD_MASK)\r
-#define USBPHY_DEBUG0_SET_HSTPULLDOWN_MASK (0xCU)\r
-#define USBPHY_DEBUG0_SET_HSTPULLDOWN_SHIFT (2U)\r
-#define USBPHY_DEBUG0_SET_HSTPULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_HSTPULLDOWN_SHIFT)) & USBPHY_DEBUG0_SET_HSTPULLDOWN_MASK)\r
-#define USBPHY_DEBUG0_SET_ENHSTPULLDOWN_MASK (0x30U)\r
-#define USBPHY_DEBUG0_SET_ENHSTPULLDOWN_SHIFT (4U)\r
-#define USBPHY_DEBUG0_SET_ENHSTPULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_ENHSTPULLDOWN_SHIFT)) & USBPHY_DEBUG0_SET_ENHSTPULLDOWN_MASK)\r
-#define USBPHY_DEBUG0_SET_TX2RXCOUNT_MASK (0xF00U)\r
-#define USBPHY_DEBUG0_SET_TX2RXCOUNT_SHIFT (8U)\r
-#define USBPHY_DEBUG0_SET_TX2RXCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_TX2RXCOUNT_SHIFT)) & USBPHY_DEBUG0_SET_TX2RXCOUNT_MASK)\r
-#define USBPHY_DEBUG0_SET_ENTX2RXCOUNT_MASK (0x1000U)\r
-#define USBPHY_DEBUG0_SET_ENTX2RXCOUNT_SHIFT (12U)\r
-#define USBPHY_DEBUG0_SET_ENTX2RXCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_ENTX2RXCOUNT_SHIFT)) & USBPHY_DEBUG0_SET_ENTX2RXCOUNT_MASK)\r
-#define USBPHY_DEBUG0_SET_SQUELCHRESETCOUNT_MASK (0x1F0000U)\r
-#define USBPHY_DEBUG0_SET_SQUELCHRESETCOUNT_SHIFT (16U)\r
-#define USBPHY_DEBUG0_SET_SQUELCHRESETCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_SQUELCHRESETCOUNT_SHIFT)) & USBPHY_DEBUG0_SET_SQUELCHRESETCOUNT_MASK)\r
-#define USBPHY_DEBUG0_SET_ENSQUELCHRESET_MASK (0x1000000U)\r
-#define USBPHY_DEBUG0_SET_ENSQUELCHRESET_SHIFT (24U)\r
-#define USBPHY_DEBUG0_SET_ENSQUELCHRESET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_ENSQUELCHRESET_SHIFT)) & USBPHY_DEBUG0_SET_ENSQUELCHRESET_MASK)\r
-#define USBPHY_DEBUG0_SET_SQUELCHRESETLENGTH_MASK (0x1E000000U)\r
-#define USBPHY_DEBUG0_SET_SQUELCHRESETLENGTH_SHIFT (25U)\r
-#define USBPHY_DEBUG0_SET_SQUELCHRESETLENGTH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_SQUELCHRESETLENGTH_SHIFT)) & USBPHY_DEBUG0_SET_SQUELCHRESETLENGTH_MASK)\r
-#define USBPHY_DEBUG0_SET_HOST_RESUME_DEBUG_MASK (0x20000000U)\r
-#define USBPHY_DEBUG0_SET_HOST_RESUME_DEBUG_SHIFT (29U)\r
-#define USBPHY_DEBUG0_SET_HOST_RESUME_DEBUG(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_HOST_RESUME_DEBUG_SHIFT)) & USBPHY_DEBUG0_SET_HOST_RESUME_DEBUG_MASK)\r
-#define USBPHY_DEBUG0_SET_CLKGATE_MASK (0x40000000U)\r
-#define USBPHY_DEBUG0_SET_CLKGATE_SHIFT (30U)\r
-#define USBPHY_DEBUG0_SET_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_SET_CLKGATE_SHIFT)) & USBPHY_DEBUG0_SET_CLKGATE_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG0_CLR - USB PHY Debug Register 0 */\r
-/*! @{ */\r
-#define USBPHY_DEBUG0_CLR_OTGIDPIOLOCK_MASK (0x1U)\r
-#define USBPHY_DEBUG0_CLR_OTGIDPIOLOCK_SHIFT (0U)\r
-#define USBPHY_DEBUG0_CLR_OTGIDPIOLOCK(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_OTGIDPIOLOCK_SHIFT)) & USBPHY_DEBUG0_CLR_OTGIDPIOLOCK_MASK)\r
-#define USBPHY_DEBUG0_CLR_DEBUG_INTERFACE_HOLD_MASK (0x2U)\r
-#define USBPHY_DEBUG0_CLR_DEBUG_INTERFACE_HOLD_SHIFT (1U)\r
-#define USBPHY_DEBUG0_CLR_DEBUG_INTERFACE_HOLD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_DEBUG_INTERFACE_HOLD_SHIFT)) & USBPHY_DEBUG0_CLR_DEBUG_INTERFACE_HOLD_MASK)\r
-#define USBPHY_DEBUG0_CLR_HSTPULLDOWN_MASK (0xCU)\r
-#define USBPHY_DEBUG0_CLR_HSTPULLDOWN_SHIFT (2U)\r
-#define USBPHY_DEBUG0_CLR_HSTPULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_HSTPULLDOWN_SHIFT)) & USBPHY_DEBUG0_CLR_HSTPULLDOWN_MASK)\r
-#define USBPHY_DEBUG0_CLR_ENHSTPULLDOWN_MASK (0x30U)\r
-#define USBPHY_DEBUG0_CLR_ENHSTPULLDOWN_SHIFT (4U)\r
-#define USBPHY_DEBUG0_CLR_ENHSTPULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_ENHSTPULLDOWN_SHIFT)) & USBPHY_DEBUG0_CLR_ENHSTPULLDOWN_MASK)\r
-#define USBPHY_DEBUG0_CLR_TX2RXCOUNT_MASK (0xF00U)\r
-#define USBPHY_DEBUG0_CLR_TX2RXCOUNT_SHIFT (8U)\r
-#define USBPHY_DEBUG0_CLR_TX2RXCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_TX2RXCOUNT_SHIFT)) & USBPHY_DEBUG0_CLR_TX2RXCOUNT_MASK)\r
-#define USBPHY_DEBUG0_CLR_ENTX2RXCOUNT_MASK (0x1000U)\r
-#define USBPHY_DEBUG0_CLR_ENTX2RXCOUNT_SHIFT (12U)\r
-#define USBPHY_DEBUG0_CLR_ENTX2RXCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_ENTX2RXCOUNT_SHIFT)) & USBPHY_DEBUG0_CLR_ENTX2RXCOUNT_MASK)\r
-#define USBPHY_DEBUG0_CLR_SQUELCHRESETCOUNT_MASK (0x1F0000U)\r
-#define USBPHY_DEBUG0_CLR_SQUELCHRESETCOUNT_SHIFT (16U)\r
-#define USBPHY_DEBUG0_CLR_SQUELCHRESETCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_SQUELCHRESETCOUNT_SHIFT)) & USBPHY_DEBUG0_CLR_SQUELCHRESETCOUNT_MASK)\r
-#define USBPHY_DEBUG0_CLR_ENSQUELCHRESET_MASK (0x1000000U)\r
-#define USBPHY_DEBUG0_CLR_ENSQUELCHRESET_SHIFT (24U)\r
-#define USBPHY_DEBUG0_CLR_ENSQUELCHRESET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_ENSQUELCHRESET_SHIFT)) & USBPHY_DEBUG0_CLR_ENSQUELCHRESET_MASK)\r
-#define USBPHY_DEBUG0_CLR_SQUELCHRESETLENGTH_MASK (0x1E000000U)\r
-#define USBPHY_DEBUG0_CLR_SQUELCHRESETLENGTH_SHIFT (25U)\r
-#define USBPHY_DEBUG0_CLR_SQUELCHRESETLENGTH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_SQUELCHRESETLENGTH_SHIFT)) & USBPHY_DEBUG0_CLR_SQUELCHRESETLENGTH_MASK)\r
-#define USBPHY_DEBUG0_CLR_HOST_RESUME_DEBUG_MASK (0x20000000U)\r
-#define USBPHY_DEBUG0_CLR_HOST_RESUME_DEBUG_SHIFT (29U)\r
-#define USBPHY_DEBUG0_CLR_HOST_RESUME_DEBUG(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_HOST_RESUME_DEBUG_SHIFT)) & USBPHY_DEBUG0_CLR_HOST_RESUME_DEBUG_MASK)\r
-#define USBPHY_DEBUG0_CLR_CLKGATE_MASK (0x40000000U)\r
-#define USBPHY_DEBUG0_CLR_CLKGATE_SHIFT (30U)\r
-#define USBPHY_DEBUG0_CLR_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_CLR_CLKGATE_SHIFT)) & USBPHY_DEBUG0_CLR_CLKGATE_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG0_TOG - USB PHY Debug Register 0 */\r
-/*! @{ */\r
-#define USBPHY_DEBUG0_TOG_OTGIDPIOLOCK_MASK (0x1U)\r
-#define USBPHY_DEBUG0_TOG_OTGIDPIOLOCK_SHIFT (0U)\r
-#define USBPHY_DEBUG0_TOG_OTGIDPIOLOCK(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_OTGIDPIOLOCK_SHIFT)) & USBPHY_DEBUG0_TOG_OTGIDPIOLOCK_MASK)\r
-#define USBPHY_DEBUG0_TOG_DEBUG_INTERFACE_HOLD_MASK (0x2U)\r
-#define USBPHY_DEBUG0_TOG_DEBUG_INTERFACE_HOLD_SHIFT (1U)\r
-#define USBPHY_DEBUG0_TOG_DEBUG_INTERFACE_HOLD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_DEBUG_INTERFACE_HOLD_SHIFT)) & USBPHY_DEBUG0_TOG_DEBUG_INTERFACE_HOLD_MASK)\r
-#define USBPHY_DEBUG0_TOG_HSTPULLDOWN_MASK (0xCU)\r
-#define USBPHY_DEBUG0_TOG_HSTPULLDOWN_SHIFT (2U)\r
-#define USBPHY_DEBUG0_TOG_HSTPULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_HSTPULLDOWN_SHIFT)) & USBPHY_DEBUG0_TOG_HSTPULLDOWN_MASK)\r
-#define USBPHY_DEBUG0_TOG_ENHSTPULLDOWN_MASK (0x30U)\r
-#define USBPHY_DEBUG0_TOG_ENHSTPULLDOWN_SHIFT (4U)\r
-#define USBPHY_DEBUG0_TOG_ENHSTPULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_ENHSTPULLDOWN_SHIFT)) & USBPHY_DEBUG0_TOG_ENHSTPULLDOWN_MASK)\r
-#define USBPHY_DEBUG0_TOG_TX2RXCOUNT_MASK (0xF00U)\r
-#define USBPHY_DEBUG0_TOG_TX2RXCOUNT_SHIFT (8U)\r
-#define USBPHY_DEBUG0_TOG_TX2RXCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_TX2RXCOUNT_SHIFT)) & USBPHY_DEBUG0_TOG_TX2RXCOUNT_MASK)\r
-#define USBPHY_DEBUG0_TOG_ENTX2RXCOUNT_MASK (0x1000U)\r
-#define USBPHY_DEBUG0_TOG_ENTX2RXCOUNT_SHIFT (12U)\r
-#define USBPHY_DEBUG0_TOG_ENTX2RXCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_ENTX2RXCOUNT_SHIFT)) & USBPHY_DEBUG0_TOG_ENTX2RXCOUNT_MASK)\r
-#define USBPHY_DEBUG0_TOG_SQUELCHRESETCOUNT_MASK (0x1F0000U)\r
-#define USBPHY_DEBUG0_TOG_SQUELCHRESETCOUNT_SHIFT (16U)\r
-#define USBPHY_DEBUG0_TOG_SQUELCHRESETCOUNT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_SQUELCHRESETCOUNT_SHIFT)) & USBPHY_DEBUG0_TOG_SQUELCHRESETCOUNT_MASK)\r
-#define USBPHY_DEBUG0_TOG_ENSQUELCHRESET_MASK (0x1000000U)\r
-#define USBPHY_DEBUG0_TOG_ENSQUELCHRESET_SHIFT (24U)\r
-#define USBPHY_DEBUG0_TOG_ENSQUELCHRESET(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_ENSQUELCHRESET_SHIFT)) & USBPHY_DEBUG0_TOG_ENSQUELCHRESET_MASK)\r
-#define USBPHY_DEBUG0_TOG_SQUELCHRESETLENGTH_MASK (0x1E000000U)\r
-#define USBPHY_DEBUG0_TOG_SQUELCHRESETLENGTH_SHIFT (25U)\r
-#define USBPHY_DEBUG0_TOG_SQUELCHRESETLENGTH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_SQUELCHRESETLENGTH_SHIFT)) & USBPHY_DEBUG0_TOG_SQUELCHRESETLENGTH_MASK)\r
-#define USBPHY_DEBUG0_TOG_HOST_RESUME_DEBUG_MASK (0x20000000U)\r
-#define USBPHY_DEBUG0_TOG_HOST_RESUME_DEBUG_SHIFT (29U)\r
-#define USBPHY_DEBUG0_TOG_HOST_RESUME_DEBUG(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_HOST_RESUME_DEBUG_SHIFT)) & USBPHY_DEBUG0_TOG_HOST_RESUME_DEBUG_MASK)\r
-#define USBPHY_DEBUG0_TOG_CLKGATE_MASK (0x40000000U)\r
-#define USBPHY_DEBUG0_TOG_CLKGATE_SHIFT (30U)\r
-#define USBPHY_DEBUG0_TOG_CLKGATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG0_TOG_CLKGATE_SHIFT)) & USBPHY_DEBUG0_TOG_CLKGATE_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG1 - UTMI Debug Status Register 1 */\r
-/*! @{ */\r
-#define USBPHY_DEBUG1_ENTAILADJVD_MASK (0x6000U)\r
-#define USBPHY_DEBUG1_ENTAILADJVD_SHIFT (13U)\r
-/*! ENTAILADJVD\r
- * 0b00..Delay is nominal\r
- * 0b01..Delay is +20%\r
- * 0b10..Delay is -20%\r
- * 0b11..Delay is -40%\r
- */\r
-#define USBPHY_DEBUG1_ENTAILADJVD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_ENTAILADJVD_SHIFT)) & USBPHY_DEBUG1_ENTAILADJVD_MASK)\r
-#define USBPHY_DEBUG1_USB2_REFBIAS_VBGADJ_MASK (0x1C0000U)\r
-#define USBPHY_DEBUG1_USB2_REFBIAS_VBGADJ_SHIFT (18U)\r
-#define USBPHY_DEBUG1_USB2_REFBIAS_VBGADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_USB2_REFBIAS_VBGADJ_SHIFT)) & USBPHY_DEBUG1_USB2_REFBIAS_VBGADJ_MASK)\r
-#define USBPHY_DEBUG1_USB2_REFBIAS_TST_MASK (0x600000U)\r
-#define USBPHY_DEBUG1_USB2_REFBIAS_TST_SHIFT (21U)\r
-#define USBPHY_DEBUG1_USB2_REFBIAS_TST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_USB2_REFBIAS_TST_SHIFT)) & USBPHY_DEBUG1_USB2_REFBIAS_TST_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG1_SET - UTMI Debug Status Register 1 */\r
-/*! @{ */\r
-#define USBPHY_DEBUG1_SET_ENTAILADJVD_MASK (0x6000U)\r
-#define USBPHY_DEBUG1_SET_ENTAILADJVD_SHIFT (13U)\r
-/*! ENTAILADJVD\r
- * 0b00..Delay is nominal\r
- * 0b01..Delay is +20%\r
- * 0b10..Delay is -20%\r
- * 0b11..Delay is -40%\r
- */\r
-#define USBPHY_DEBUG1_SET_ENTAILADJVD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_SET_ENTAILADJVD_SHIFT)) & USBPHY_DEBUG1_SET_ENTAILADJVD_MASK)\r
-#define USBPHY_DEBUG1_SET_USB2_REFBIAS_VBGADJ_MASK (0x1C0000U)\r
-#define USBPHY_DEBUG1_SET_USB2_REFBIAS_VBGADJ_SHIFT (18U)\r
-#define USBPHY_DEBUG1_SET_USB2_REFBIAS_VBGADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_SET_USB2_REFBIAS_VBGADJ_SHIFT)) & USBPHY_DEBUG1_SET_USB2_REFBIAS_VBGADJ_MASK)\r
-#define USBPHY_DEBUG1_SET_USB2_REFBIAS_TST_MASK (0x600000U)\r
-#define USBPHY_DEBUG1_SET_USB2_REFBIAS_TST_SHIFT (21U)\r
-#define USBPHY_DEBUG1_SET_USB2_REFBIAS_TST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_SET_USB2_REFBIAS_TST_SHIFT)) & USBPHY_DEBUG1_SET_USB2_REFBIAS_TST_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG1_CLR - UTMI Debug Status Register 1 */\r
-/*! @{ */\r
-#define USBPHY_DEBUG1_CLR_ENTAILADJVD_MASK (0x6000U)\r
-#define USBPHY_DEBUG1_CLR_ENTAILADJVD_SHIFT (13U)\r
-/*! ENTAILADJVD\r
- * 0b00..Delay is nominal\r
- * 0b01..Delay is +20%\r
- * 0b10..Delay is -20%\r
- * 0b11..Delay is -40%\r
- */\r
-#define USBPHY_DEBUG1_CLR_ENTAILADJVD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_CLR_ENTAILADJVD_SHIFT)) & USBPHY_DEBUG1_CLR_ENTAILADJVD_MASK)\r
-#define USBPHY_DEBUG1_CLR_USB2_REFBIAS_VBGADJ_MASK (0x1C0000U)\r
-#define USBPHY_DEBUG1_CLR_USB2_REFBIAS_VBGADJ_SHIFT (18U)\r
-#define USBPHY_DEBUG1_CLR_USB2_REFBIAS_VBGADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_CLR_USB2_REFBIAS_VBGADJ_SHIFT)) & USBPHY_DEBUG1_CLR_USB2_REFBIAS_VBGADJ_MASK)\r
-#define USBPHY_DEBUG1_CLR_USB2_REFBIAS_TST_MASK (0x600000U)\r
-#define USBPHY_DEBUG1_CLR_USB2_REFBIAS_TST_SHIFT (21U)\r
-#define USBPHY_DEBUG1_CLR_USB2_REFBIAS_TST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_CLR_USB2_REFBIAS_TST_SHIFT)) & USBPHY_DEBUG1_CLR_USB2_REFBIAS_TST_MASK)\r
-/*! @} */\r
-\r
-/*! @name DEBUG1_TOG - UTMI Debug Status Register 1 */\r
-/*! @{ */\r
-#define USBPHY_DEBUG1_TOG_ENTAILADJVD_MASK (0x6000U)\r
-#define USBPHY_DEBUG1_TOG_ENTAILADJVD_SHIFT (13U)\r
-/*! ENTAILADJVD\r
- * 0b00..Delay is nominal\r
- * 0b01..Delay is +20%\r
- * 0b10..Delay is -20%\r
- * 0b11..Delay is -40%\r
- */\r
-#define USBPHY_DEBUG1_TOG_ENTAILADJVD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_TOG_ENTAILADJVD_SHIFT)) & USBPHY_DEBUG1_TOG_ENTAILADJVD_MASK)\r
-#define USBPHY_DEBUG1_TOG_USB2_REFBIAS_VBGADJ_MASK (0x1C0000U)\r
-#define USBPHY_DEBUG1_TOG_USB2_REFBIAS_VBGADJ_SHIFT (18U)\r
-#define USBPHY_DEBUG1_TOG_USB2_REFBIAS_VBGADJ(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_TOG_USB2_REFBIAS_VBGADJ_SHIFT)) & USBPHY_DEBUG1_TOG_USB2_REFBIAS_VBGADJ_MASK)\r
-#define USBPHY_DEBUG1_TOG_USB2_REFBIAS_TST_MASK (0x600000U)\r
-#define USBPHY_DEBUG1_TOG_USB2_REFBIAS_TST_SHIFT (21U)\r
-#define USBPHY_DEBUG1_TOG_USB2_REFBIAS_TST(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_DEBUG1_TOG_USB2_REFBIAS_TST_SHIFT)) & USBPHY_DEBUG1_TOG_USB2_REFBIAS_TST_MASK)\r
-/*! @} */\r
-\r
-/*! @name VERSION - UTMI RTL Version */\r
-/*! @{ */\r
-#define USBPHY_VERSION_STEP_MASK (0xFFFFU)\r
-#define USBPHY_VERSION_STEP_SHIFT (0U)\r
-#define USBPHY_VERSION_STEP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_VERSION_STEP_SHIFT)) & USBPHY_VERSION_STEP_MASK)\r
-#define USBPHY_VERSION_MINOR_MASK (0xFF0000U)\r
-#define USBPHY_VERSION_MINOR_SHIFT (16U)\r
-#define USBPHY_VERSION_MINOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_VERSION_MINOR_SHIFT)) & USBPHY_VERSION_MINOR_MASK)\r
-#define USBPHY_VERSION_MAJOR_MASK (0xFF000000U)\r
-#define USBPHY_VERSION_MAJOR_SHIFT (24U)\r
-#define USBPHY_VERSION_MAJOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_VERSION_MAJOR_SHIFT)) & USBPHY_VERSION_MAJOR_MASK)\r
+#define USBPHY_STATUS_DEVPLUGIN_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_DEVPLUGIN_STATUS_SHIFT)) & USBPHY_STATUS_DEVPLUGIN_STATUS_MASK)\r
+#define USBPHY_STATUS_RESUME_STATUS_MASK (0x400U)\r
+#define USBPHY_STATUS_RESUME_STATUS_SHIFT (10U)\r
+#define USBPHY_STATUS_RESUME_STATUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_STATUS_RESUME_STATUS_SHIFT)) & USBPHY_STATUS_RESUME_STATUS_MASK)\r
/*! @} */\r
\r
/*! @name PLL_SIC - USB PHY PLL Control/Status Register */\r
/*! @{ */\r
-#define USBPHY_PLL_SIC_MISC2_CONTROL0_MASK (0x20U)\r
-#define USBPHY_PLL_SIC_MISC2_CONTROL0_SHIFT (5U)\r
-#define USBPHY_PLL_SIC_MISC2_CONTROL0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_MISC2_CONTROL0_SHIFT)) & USBPHY_PLL_SIC_MISC2_CONTROL0_MASK)\r
-#define USBPHY_PLL_SIC_PLL_EN_USB_CLKS_MASK (0x40U)\r
-#define USBPHY_PLL_SIC_PLL_EN_USB_CLKS_SHIFT (6U)\r
-#define USBPHY_PLL_SIC_PLL_EN_USB_CLKS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_EN_USB_CLKS_SHIFT)) & USBPHY_PLL_SIC_PLL_EN_USB_CLKS_MASK)\r
-#define USBPHY_PLL_SIC_PLL_POWER_MASK (0x1000U)\r
-#define USBPHY_PLL_SIC_PLL_POWER_SHIFT (12U)\r
-#define USBPHY_PLL_SIC_PLL_POWER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_PLL_POWER_MASK)\r
-#define USBPHY_PLL_SIC_PLL_ENABLE_MASK (0x2000U)\r
-#define USBPHY_PLL_SIC_PLL_ENABLE_SHIFT (13U)\r
-#define USBPHY_PLL_SIC_PLL_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_PLL_ENABLE_MASK)\r
-#define USBPHY_PLL_SIC_PLL_BYPASS_MASK (0x10000U)\r
-#define USBPHY_PLL_SIC_PLL_BYPASS_SHIFT (16U)\r
-#define USBPHY_PLL_SIC_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_BYPASS_SHIFT)) & USBPHY_PLL_SIC_PLL_BYPASS_MASK)\r
-#define USBPHY_PLL_SIC_REFBIAS_PWD_SEL_MASK (0x80000U)\r
-#define USBPHY_PLL_SIC_REFBIAS_PWD_SEL_SHIFT (19U)\r
+#define USBPHY_PLL_SIC_PLL_EN_USB_CLKS_MASK (0x40U)\r
+#define USBPHY_PLL_SIC_PLL_EN_USB_CLKS_SHIFT (6U)\r
+#define USBPHY_PLL_SIC_PLL_EN_USB_CLKS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_EN_USB_CLKS_SHIFT)) & USBPHY_PLL_SIC_PLL_EN_USB_CLKS_MASK)\r
+#define USBPHY_PLL_SIC_PLL_POWER_MASK (0x1000U)\r
+#define USBPHY_PLL_SIC_PLL_POWER_SHIFT (12U)\r
+#define USBPHY_PLL_SIC_PLL_POWER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_PLL_POWER_MASK)\r
+#define USBPHY_PLL_SIC_PLL_ENABLE_MASK (0x2000U)\r
+#define USBPHY_PLL_SIC_PLL_ENABLE_SHIFT (13U)\r
+#define USBPHY_PLL_SIC_PLL_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_PLL_ENABLE_MASK)\r
+#define USBPHY_PLL_SIC_REFBIAS_PWD_SEL_MASK (0x80000U)\r
+#define USBPHY_PLL_SIC_REFBIAS_PWD_SEL_SHIFT (19U)\r
/*! REFBIAS_PWD_SEL\r
* 0b0..Selects PLL_POWER to control the reference bias\r
* 0b1..Selects REFBIAS_PWD to control the reference bias\r
*/\r
-#define USBPHY_PLL_SIC_REFBIAS_PWD_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_REFBIAS_PWD_SEL_SHIFT)) & USBPHY_PLL_SIC_REFBIAS_PWD_SEL_MASK)\r
-#define USBPHY_PLL_SIC_REFBIAS_PWD_MASK (0x100000U)\r
-#define USBPHY_PLL_SIC_REFBIAS_PWD_SHIFT (20U)\r
-#define USBPHY_PLL_SIC_REFBIAS_PWD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_REFBIAS_PWD_SHIFT)) & USBPHY_PLL_SIC_REFBIAS_PWD_MASK)\r
-#define USBPHY_PLL_SIC_PLL_REG_ENABLE_MASK (0x200000U)\r
-#define USBPHY_PLL_SIC_PLL_REG_ENABLE_SHIFT (21U)\r
-#define USBPHY_PLL_SIC_PLL_REG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_REG_ENABLE_SHIFT)) & USBPHY_PLL_SIC_PLL_REG_ENABLE_MASK)\r
-#define USBPHY_PLL_SIC_PLL_DIV_SEL_MASK (0x1C00000U)\r
-#define USBPHY_PLL_SIC_PLL_DIV_SEL_SHIFT (22U)\r
+#define USBPHY_PLL_SIC_REFBIAS_PWD_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_REFBIAS_PWD_SEL_SHIFT)) & USBPHY_PLL_SIC_REFBIAS_PWD_SEL_MASK)\r
+#define USBPHY_PLL_SIC_REFBIAS_PWD_MASK (0x100000U)\r
+#define USBPHY_PLL_SIC_REFBIAS_PWD_SHIFT (20U)\r
+#define USBPHY_PLL_SIC_REFBIAS_PWD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_REFBIAS_PWD_SHIFT)) & USBPHY_PLL_SIC_REFBIAS_PWD_MASK)\r
+#define USBPHY_PLL_SIC_PLL_REG_ENABLE_MASK (0x200000U)\r
+#define USBPHY_PLL_SIC_PLL_REG_ENABLE_SHIFT (21U)\r
+#define USBPHY_PLL_SIC_PLL_REG_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_REG_ENABLE_SHIFT)) & USBPHY_PLL_SIC_PLL_REG_ENABLE_MASK)\r
+#define USBPHY_PLL_SIC_PLL_DIV_SEL_MASK (0x1C00000U)\r
+#define USBPHY_PLL_SIC_PLL_DIV_SEL_SHIFT (22U)\r
/*! PLL_DIV_SEL\r
* 0b000..Divide by 13\r
* 0b001..Divide by 15\r
* 0b110..Divide by 30\r
* 0b111..Divide by 240\r
*/\r
-#define USBPHY_PLL_SIC_PLL_DIV_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_PLL_DIV_SEL_MASK)\r
-#define USBPHY_PLL_SIC_PLL_LOCK_MASK (0x80000000U)\r
-#define USBPHY_PLL_SIC_PLL_LOCK_SHIFT (31U)\r
+#define USBPHY_PLL_SIC_PLL_DIV_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_PLL_DIV_SEL_MASK)\r
+#define USBPHY_PLL_SIC_PLL_PREDIV_MASK (0x40000000U)\r
+#define USBPHY_PLL_SIC_PLL_PREDIV_SHIFT (30U)\r
+#define USBPHY_PLL_SIC_PLL_PREDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_PREDIV_SHIFT)) & USBPHY_PLL_SIC_PLL_PREDIV_MASK)\r
+#define USBPHY_PLL_SIC_PLL_LOCK_MASK (0x80000000U)\r
+#define USBPHY_PLL_SIC_PLL_LOCK_SHIFT (31U)\r
/*! PLL_LOCK\r
* 0b0..PLL is not currently locked\r
* 0b1..PLL is currently locked\r
*/\r
-#define USBPHY_PLL_SIC_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_PLL_LOCK_MASK)\r
+#define USBPHY_PLL_SIC_PLL_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_PLL_LOCK_MASK)\r
/*! @} */\r
\r
/*! @name PLL_SIC_SET - USB PHY PLL Control/Status Register */\r
/*! @{ */\r
-#define USBPHY_PLL_SIC_SET_MISC2_CONTROL0_MASK (0x20U)\r
-#define USBPHY_PLL_SIC_SET_MISC2_CONTROL0_SHIFT (5U)\r
-#define USBPHY_PLL_SIC_SET_MISC2_CONTROL0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_MISC2_CONTROL0_SHIFT)) & USBPHY_PLL_SIC_SET_MISC2_CONTROL0_MASK)\r
-#define USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS_MASK (0x40U)\r
+#define USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS_MASK (0x40U)\r
#define USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS_SHIFT (6U)\r
-#define USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS_MASK)\r
-#define USBPHY_PLL_SIC_SET_PLL_POWER_MASK (0x1000U)\r
-#define USBPHY_PLL_SIC_SET_PLL_POWER_SHIFT (12U)\r
-#define USBPHY_PLL_SIC_SET_PLL_POWER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_POWER_MASK)\r
-#define USBPHY_PLL_SIC_SET_PLL_ENABLE_MASK (0x2000U)\r
-#define USBPHY_PLL_SIC_SET_PLL_ENABLE_SHIFT (13U)\r
-#define USBPHY_PLL_SIC_SET_PLL_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_ENABLE_MASK)\r
-#define USBPHY_PLL_SIC_SET_PLL_BYPASS_MASK (0x10000U)\r
-#define USBPHY_PLL_SIC_SET_PLL_BYPASS_SHIFT (16U)\r
-#define USBPHY_PLL_SIC_SET_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_BYPASS_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_BYPASS_MASK)\r
-#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL_MASK (0x80000U)\r
+#define USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS_SHIFT)) & \\r
+ USBPHY_PLL_SIC_SET_PLL_EN_USB_CLKS_MASK)\r
+#define USBPHY_PLL_SIC_SET_PLL_POWER_MASK (0x1000U)\r
+#define USBPHY_PLL_SIC_SET_PLL_POWER_SHIFT (12U)\r
+#define USBPHY_PLL_SIC_SET_PLL_POWER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_POWER_MASK)\r
+#define USBPHY_PLL_SIC_SET_PLL_ENABLE_MASK (0x2000U)\r
+#define USBPHY_PLL_SIC_SET_PLL_ENABLE_SHIFT (13U)\r
+#define USBPHY_PLL_SIC_SET_PLL_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_ENABLE_MASK)\r
+#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL_MASK (0x80000U)\r
#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL_SHIFT (19U)\r
/*! REFBIAS_PWD_SEL\r
* 0b0..Selects PLL_POWER to control the reference bias\r
* 0b1..Selects REFBIAS_PWD to control the reference bias\r
*/\r
-#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL_SHIFT)) & USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL_MASK)\r
-#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_MASK (0x100000U)\r
-#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_SHIFT (20U)\r
-#define USBPHY_PLL_SIC_SET_REFBIAS_PWD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_REFBIAS_PWD_SHIFT)) & USBPHY_PLL_SIC_SET_REFBIAS_PWD_MASK)\r
-#define USBPHY_PLL_SIC_SET_PLL_REG_ENABLE_MASK (0x200000U)\r
-#define USBPHY_PLL_SIC_SET_PLL_REG_ENABLE_SHIFT (21U)\r
-#define USBPHY_PLL_SIC_SET_PLL_REG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_REG_ENABLE_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_REG_ENABLE_MASK)\r
-#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL_MASK (0x1C00000U)\r
-#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL_SHIFT (22U)\r
+#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL_SHIFT)) & \\r
+ USBPHY_PLL_SIC_SET_REFBIAS_PWD_SEL_MASK)\r
+#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_MASK (0x100000U)\r
+#define USBPHY_PLL_SIC_SET_REFBIAS_PWD_SHIFT (20U)\r
+#define USBPHY_PLL_SIC_SET_REFBIAS_PWD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_REFBIAS_PWD_SHIFT)) & USBPHY_PLL_SIC_SET_REFBIAS_PWD_MASK)\r
+#define USBPHY_PLL_SIC_SET_PLL_REG_ENABLE_MASK (0x200000U)\r
+#define USBPHY_PLL_SIC_SET_PLL_REG_ENABLE_SHIFT (21U)\r
+#define USBPHY_PLL_SIC_SET_PLL_REG_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_REG_ENABLE_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_REG_ENABLE_MASK)\r
+#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL_MASK (0x1C00000U)\r
+#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL_SHIFT (22U)\r
/*! PLL_DIV_SEL\r
* 0b000..Divide by 13\r
* 0b001..Divide by 15\r
* 0b110..Divide by 30\r
* 0b111..Divide by 240\r
*/\r
-#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_DIV_SEL_MASK)\r
-#define USBPHY_PLL_SIC_SET_PLL_LOCK_MASK (0x80000000U)\r
-#define USBPHY_PLL_SIC_SET_PLL_LOCK_SHIFT (31U)\r
+#define USBPHY_PLL_SIC_SET_PLL_DIV_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_DIV_SEL_MASK)\r
+#define USBPHY_PLL_SIC_SET_PLL_PREDIV_MASK (0x40000000U)\r
+#define USBPHY_PLL_SIC_SET_PLL_PREDIV_SHIFT (30U)\r
+#define USBPHY_PLL_SIC_SET_PLL_PREDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_PREDIV_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_PREDIV_MASK)\r
+#define USBPHY_PLL_SIC_SET_PLL_LOCK_MASK (0x80000000U)\r
+#define USBPHY_PLL_SIC_SET_PLL_LOCK_SHIFT (31U)\r
/*! PLL_LOCK\r
* 0b0..PLL is not currently locked\r
* 0b1..PLL is currently locked\r
*/\r
-#define USBPHY_PLL_SIC_SET_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_LOCK_MASK)\r
+#define USBPHY_PLL_SIC_SET_PLL_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_SET_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_SET_PLL_LOCK_MASK)\r
/*! @} */\r
\r
/*! @name PLL_SIC_CLR - USB PHY PLL Control/Status Register */\r
/*! @{ */\r
-#define USBPHY_PLL_SIC_CLR_MISC2_CONTROL0_MASK (0x20U)\r
-#define USBPHY_PLL_SIC_CLR_MISC2_CONTROL0_SHIFT (5U)\r
-#define USBPHY_PLL_SIC_CLR_MISC2_CONTROL0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_MISC2_CONTROL0_SHIFT)) & USBPHY_PLL_SIC_CLR_MISC2_CONTROL0_MASK)\r
-#define USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS_MASK (0x40U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS_MASK (0x40U)\r
#define USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS_SHIFT (6U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS_MASK)\r
-#define USBPHY_PLL_SIC_CLR_PLL_POWER_MASK (0x1000U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_POWER_SHIFT (12U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_POWER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_POWER_MASK)\r
-#define USBPHY_PLL_SIC_CLR_PLL_ENABLE_MASK (0x2000U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_ENABLE_SHIFT (13U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_ENABLE_MASK)\r
-#define USBPHY_PLL_SIC_CLR_PLL_BYPASS_MASK (0x10000U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_BYPASS_SHIFT (16U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_BYPASS_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_BYPASS_MASK)\r
-#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL_MASK (0x80000U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS_SHIFT)) & \\r
+ USBPHY_PLL_SIC_CLR_PLL_EN_USB_CLKS_MASK)\r
+#define USBPHY_PLL_SIC_CLR_PLL_POWER_MASK (0x1000U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_POWER_SHIFT (12U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_POWER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_POWER_MASK)\r
+#define USBPHY_PLL_SIC_CLR_PLL_ENABLE_MASK (0x2000U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_ENABLE_SHIFT (13U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_ENABLE_MASK)\r
+#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL_MASK (0x80000U)\r
#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL_SHIFT (19U)\r
/*! REFBIAS_PWD_SEL\r
* 0b0..Selects PLL_POWER to control the reference bias\r
* 0b1..Selects REFBIAS_PWD to control the reference bias\r
*/\r
-#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL_SHIFT)) & USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL_MASK)\r
-#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_MASK (0x100000U)\r
-#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SHIFT (20U)\r
-#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SHIFT)) & USBPHY_PLL_SIC_CLR_REFBIAS_PWD_MASK)\r
-#define USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE_MASK (0x200000U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE_SHIFT (21U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE_MASK)\r
-#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_MASK (0x1C00000U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_SHIFT (22U)\r
+#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL_SHIFT)) & \\r
+ USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SEL_MASK)\r
+#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_MASK (0x100000U)\r
+#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SHIFT (20U)\r
+#define USBPHY_PLL_SIC_CLR_REFBIAS_PWD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_REFBIAS_PWD_SHIFT)) & USBPHY_PLL_SIC_CLR_REFBIAS_PWD_MASK)\r
+#define USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE_MASK (0x200000U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE_SHIFT (21U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_REG_ENABLE_MASK)\r
+#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_MASK (0x1C00000U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_SHIFT (22U)\r
/*! PLL_DIV_SEL\r
* 0b000..Divide by 13\r
* 0b001..Divide by 15\r
* 0b110..Divide by 30\r
* 0b111..Divide by 240\r
*/\r
-#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_MASK)\r
-#define USBPHY_PLL_SIC_CLR_PLL_LOCK_MASK (0x80000000U)\r
-#define USBPHY_PLL_SIC_CLR_PLL_LOCK_SHIFT (31U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_DIV_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_DIV_SEL_MASK)\r
+#define USBPHY_PLL_SIC_CLR_PLL_PREDIV_MASK (0x40000000U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_PREDIV_SHIFT (30U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_PREDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_PREDIV_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_PREDIV_MASK)\r
+#define USBPHY_PLL_SIC_CLR_PLL_LOCK_MASK (0x80000000U)\r
+#define USBPHY_PLL_SIC_CLR_PLL_LOCK_SHIFT (31U)\r
/*! PLL_LOCK\r
* 0b0..PLL is not currently locked\r
* 0b1..PLL is currently locked\r
*/\r
-#define USBPHY_PLL_SIC_CLR_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_LOCK_MASK)\r
+#define USBPHY_PLL_SIC_CLR_PLL_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_CLR_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_CLR_PLL_LOCK_MASK)\r
/*! @} */\r
\r
/*! @name PLL_SIC_TOG - USB PHY PLL Control/Status Register */\r
/*! @{ */\r
-#define USBPHY_PLL_SIC_TOG_MISC2_CONTROL0_MASK (0x20U)\r
-#define USBPHY_PLL_SIC_TOG_MISC2_CONTROL0_SHIFT (5U)\r
-#define USBPHY_PLL_SIC_TOG_MISC2_CONTROL0(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_MISC2_CONTROL0_SHIFT)) & USBPHY_PLL_SIC_TOG_MISC2_CONTROL0_MASK)\r
-#define USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS_MASK (0x40U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS_MASK (0x40U)\r
#define USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS_SHIFT (6U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS_MASK)\r
-#define USBPHY_PLL_SIC_TOG_PLL_POWER_MASK (0x1000U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_POWER_SHIFT (12U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_POWER(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_POWER_MASK)\r
-#define USBPHY_PLL_SIC_TOG_PLL_ENABLE_MASK (0x2000U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_ENABLE_SHIFT (13U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_ENABLE_MASK)\r
-#define USBPHY_PLL_SIC_TOG_PLL_BYPASS_MASK (0x10000U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_BYPASS_SHIFT (16U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_BYPASS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_BYPASS_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_BYPASS_MASK)\r
-#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL_MASK (0x80000U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS_SHIFT)) & \\r
+ USBPHY_PLL_SIC_TOG_PLL_EN_USB_CLKS_MASK)\r
+#define USBPHY_PLL_SIC_TOG_PLL_POWER_MASK (0x1000U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_POWER_SHIFT (12U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_POWER(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_POWER_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_POWER_MASK)\r
+#define USBPHY_PLL_SIC_TOG_PLL_ENABLE_MASK (0x2000U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_ENABLE_SHIFT (13U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_ENABLE_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_ENABLE_MASK)\r
+#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL_MASK (0x80000U)\r
#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL_SHIFT (19U)\r
/*! REFBIAS_PWD_SEL\r
* 0b0..Selects PLL_POWER to control the reference bias\r
* 0b1..Selects REFBIAS_PWD to control the reference bias\r
*/\r
-#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL_SHIFT)) & USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL_MASK)\r
-#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_MASK (0x100000U)\r
-#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SHIFT (20U)\r
-#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SHIFT)) & USBPHY_PLL_SIC_TOG_REFBIAS_PWD_MASK)\r
-#define USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE_MASK (0x200000U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE_SHIFT (21U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE_MASK)\r
-#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_MASK (0x1C00000U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_SHIFT (22U)\r
+#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL_SHIFT)) & \\r
+ USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SEL_MASK)\r
+#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_MASK (0x100000U)\r
+#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SHIFT (20U)\r
+#define USBPHY_PLL_SIC_TOG_REFBIAS_PWD(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_REFBIAS_PWD_SHIFT)) & USBPHY_PLL_SIC_TOG_REFBIAS_PWD_MASK)\r
+#define USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE_MASK (0x200000U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE_SHIFT (21U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_REG_ENABLE_MASK)\r
+#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_MASK (0x1C00000U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_SHIFT (22U)\r
/*! PLL_DIV_SEL\r
* 0b000..Divide by 13\r
* 0b001..Divide by 15\r
* 0b110..Divide by 30\r
* 0b111..Divide by 240\r
*/\r
-#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_MASK)\r
-#define USBPHY_PLL_SIC_TOG_PLL_LOCK_MASK (0x80000000U)\r
-#define USBPHY_PLL_SIC_TOG_PLL_LOCK_SHIFT (31U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_DIV_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_DIV_SEL_MASK)\r
+#define USBPHY_PLL_SIC_TOG_PLL_PREDIV_MASK (0x40000000U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_PREDIV_SHIFT (30U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_PREDIV(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_PREDIV_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_PREDIV_MASK)\r
+#define USBPHY_PLL_SIC_TOG_PLL_LOCK_MASK (0x80000000U)\r
+#define USBPHY_PLL_SIC_TOG_PLL_LOCK_SHIFT (31U)\r
/*! PLL_LOCK\r
* 0b0..PLL is not currently locked\r
* 0b1..PLL is currently locked\r
*/\r
-#define USBPHY_PLL_SIC_TOG_PLL_LOCK(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_LOCK_MASK)\r
+#define USBPHY_PLL_SIC_TOG_PLL_LOCK(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_PLL_SIC_TOG_PLL_LOCK_SHIFT)) & USBPHY_PLL_SIC_TOG_PLL_LOCK_MASK)\r
/*! @} */\r
\r
/*! @name USB1_VBUS_DETECT - USB PHY VBUS Detect Control Register */\r
* 0b110..4.6V\r
* 0b111..4.7V\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_VBUSVALID_THRESH_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_MASK (0x8U)\r
#define USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_SHIFT (3U)\r
/*! VBUS_OVERRIDE_EN\r
- * 0b0..Use the results of the internal VBUS_VALID and Session Valid comparators for VBUS_VALID, AVALID, BVALID, and SESSEND (Default)\r
- * 0b1..Use the override values for VBUS_VALID, AVALID, BVALID, and SESSEND\r
+ * 0b0..Use the results of the internal VBUS_VALID and Session Valid comparators for VBUS_VALID, AVALID, BVALID, and\r
+ * SESSEND (Default) 0b1..Use the override values for VBUS_VALID, AVALID, BVALID, and SESSEND\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_VBUS_OVERRIDE_EN_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_MASK (0x10U)\r
#define USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_SHIFT (4U)\r
-#define USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SESSEND_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_MASK (0x20U)\r
#define USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_SHIFT (5U)\r
-#define USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_BVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_MASK (0x40U)\r
#define USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_SHIFT (6U)\r
-#define USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_AVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_MASK (0x80U)\r
#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_SHIFT (7U)\r
-#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_VBUSVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_MASK (0x100U)\r
#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_SHIFT (8U)\r
/*! VBUSVALID_SEL\r
* 0b0..Use the VBUS_VALID comparator results for signal reported to the USB controller (Default)\r
* 0b1..Use the VBUS_VALID_3V detector results for signal reported to the USB controller\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_VBUSVALID_SEL_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_MASK (0x600U)\r
#define USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_SHIFT (9U)\r
/*! VBUS_SOURCE_SEL\r
* 0b10..Use the Session Valid comparator results for signal reported to the USB controller\r
* 0b11..Reserved, do not use\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_VBUS_SOURCE_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_EN_MASK (0x800U)\r
+#define USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_EN_SHIFT (11U)\r
+#define USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_MASK (0x1000U)\r
+#define USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_SHIFT (12U)\r
+#define USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_ID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_EXT_ID_OVERRIDE_EN_MASK (0x2000U)\r
+#define USBPHY_USB1_VBUS_DETECT_EXT_ID_OVERRIDE_EN_SHIFT (13U)\r
+/*! EXT_ID_OVERRIDE_EN\r
+ * 0b0..Select the Muxed value chosen using ID_OVERRIDE_EN.\r
+ * 0b1..Select the external ID value.\r
+ */\r
+#define USBPHY_USB1_VBUS_DETECT_EXT_ID_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_EXT_ID_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_EXT_ID_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_EXT_VBUS_OVERRIDE_EN_MASK (0x4000U)\r
+#define USBPHY_USB1_VBUS_DETECT_EXT_VBUS_OVERRIDE_EN_SHIFT (14U)\r
+/*! EXT_VBUS_OVERRIDE_EN\r
+ * 0b0..Select the Muxed value chosen using VBUS_OVERRIDE_EN.\r
+ * 0b1..Select the external VBUS VALID value.\r
+ */\r
+#define USBPHY_USB1_VBUS_DETECT_EXT_VBUS_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_EXT_VBUS_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_EXT_VBUS_OVERRIDE_EN_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_MASK (0x40000U)\r
#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_SHIFT (18U)\r
/*! VBUSVALID_TO_SESSVALID\r
* 0b0..Use the VBUS_VALID comparator for VBUS_VALID results\r
* 0b1..Use the Session End comparator for VBUS_VALID results. The Session End threshold is >0.8V and <4.0V.\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_SHIFT)) & USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_MASK)\r
-#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_MASK (0x100000U)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_VBUSVALID_TO_SESSVALID_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_5VDETECT_MASK (0x80000U)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_5VDETECT_SHIFT (19U)\r
+#define USBPHY_USB1_VBUS_DETECT_VBUSVALID_5VDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_VBUSVALID_5VDETECT_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_VBUSVALID_5VDETECT_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_MASK (0x700000U)\r
#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_SHIFT (20U)\r
/*! PWRUP_CMPS\r
- * 0b0..Powers down the VBUS_VALID comparator\r
- * 0b1..Enables the VBUS_VALID comparator (default)\r
+ * 0b000..Powers down the VBUS_VALID comparator\r
+ * 0b111..Enables the VBUS_VALID comparator (default)\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_PWRUP_CMPS_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_MASK (0x4000000U)\r
#define USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_SHIFT (26U)\r
/*! DISCHARGE_VBUS\r
* 0b0..VBUS discharge resistor is disabled (Default)\r
* 0b1..VBUS discharge resistor is enabled\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_MASK)\r
-#define USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR_MASK (0x80000000U)\r
-#define USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR_SHIFT (31U)\r
-/*! EN_CHARGER_RESISTOR\r
- * 0b0..Disable resistive charger detection resistors on USB_DP and USB_DP\r
- * 0b1..Enable resistive charger detection resistors on USB_DP and USB_DP\r
- */\r
-#define USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR_SHIFT)) & USBPHY_USB1_VBUS_DETECT_EN_CHARGER_RESISTOR_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_DISCHARGE_VBUS_MASK)\r
/*! @} */\r
\r
/*! @name USB1_VBUS_DETECT_SET - USB PHY VBUS Detect Control Register */\r
* 0b110..4.6V\r
* 0b111..4.7V\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_THRESH_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_MASK (0x8U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_SHIFT (3U)\r
/*! VBUS_OVERRIDE_EN\r
- * 0b0..Use the results of the internal VBUS_VALID and Session Valid comparators for VBUS_VALID, AVALID, BVALID, and SESSEND (Default)\r
- * 0b1..Use the override values for VBUS_VALID, AVALID, BVALID, and SESSEND\r
+ * 0b0..Use the results of the internal VBUS_VALID and Session Valid comparators for VBUS_VALID, AVALID, BVALID, and\r
+ * SESSEND (Default) 0b1..Use the override values for VBUS_VALID, AVALID, BVALID, and SESSEND\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_VBUS_OVERRIDE_EN_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_MASK (0x10U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_SHIFT (4U)\r
-#define USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_SESSEND_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_MASK (0x20U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_SHIFT (5U)\r
-#define USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_BVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_MASK (0x40U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_SHIFT (6U)\r
-#define USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_AVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_MASK (0x80U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_SHIFT (7U)\r
-#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_MASK (0x100U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_SHIFT (8U)\r
/*! VBUSVALID_SEL\r
* 0b0..Use the VBUS_VALID comparator results for signal reported to the USB controller (Default)\r
* 0b1..Use the VBUS_VALID_3V detector results for signal reported to the USB controller\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_SEL_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_MASK (0x600U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_SHIFT (9U)\r
/*! VBUS_SOURCE_SEL\r
* 0b10..Use the Session Valid comparator results for signal reported to the USB controller\r
* 0b11..Reserved, do not use\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_VBUS_SOURCE_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_EN_MASK (0x800U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_EN_SHIFT (11U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_MASK (0x1000U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_SHIFT (12U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_ID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_EXT_ID_OVERRIDE_EN_MASK (0x2000U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_EXT_ID_OVERRIDE_EN_SHIFT (13U)\r
+/*! EXT_ID_OVERRIDE_EN\r
+ * 0b0..Select the Muxed value chosen using ID_OVERRIDE_EN.\r
+ * 0b1..Select the external ID value.\r
+ */\r
+#define USBPHY_USB1_VBUS_DETECT_SET_EXT_ID_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_EXT_ID_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_EXT_ID_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_EXT_VBUS_OVERRIDE_EN_MASK (0x4000U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_EXT_VBUS_OVERRIDE_EN_SHIFT (14U)\r
+/*! EXT_VBUS_OVERRIDE_EN\r
+ * 0b0..Select the Muxed value chosen using VBUS_OVERRIDE_EN.\r
+ * 0b1..Select the external VBUS VALID value.\r
+ */\r
+#define USBPHY_USB1_VBUS_DETECT_SET_EXT_VBUS_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_EXT_VBUS_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_EXT_VBUS_OVERRIDE_EN_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_MASK (0x40000U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_SHIFT (18U)\r
/*! VBUSVALID_TO_SESSVALID\r
* 0b0..Use the VBUS_VALID comparator for VBUS_VALID results\r
* 0b1..Use the Session End comparator for VBUS_VALID results. The Session End threshold is >0.8V and <4.0V.\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_MASK)\r
-#define USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_MASK (0x100000U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_TO_SESSVALID_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_5VDETECT_MASK (0x80000U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_5VDETECT_SHIFT (19U)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_5VDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_5VDETECT_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_VBUSVALID_5VDETECT_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_MASK (0x700000U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_SHIFT (20U)\r
/*! PWRUP_CMPS\r
- * 0b0..Powers down the VBUS_VALID comparator\r
- * 0b1..Enables the VBUS_VALID comparator (default)\r
+ * 0b000..Powers down the VBUS_VALID comparator\r
+ * 0b111..Enables the VBUS_VALID comparator (default)\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_PWRUP_CMPS_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_MASK (0x4000000U)\r
#define USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_SHIFT (26U)\r
/*! DISCHARGE_VBUS\r
* 0b0..VBUS discharge resistor is disabled (Default)\r
* 0b1..VBUS discharge resistor is enabled\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_MASK)\r
-#define USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR_MASK (0x80000000U)\r
-#define USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR_SHIFT (31U)\r
-/*! EN_CHARGER_RESISTOR\r
- * 0b0..Disable resistive charger detection resistors on USB_DP and USB_DP\r
- * 0b1..Enable resistive charger detection resistors on USB_DP and USB_DP\r
- */\r
-#define USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR_SHIFT)) & USBPHY_USB1_VBUS_DETECT_SET_EN_CHARGER_RESISTOR_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_SET_DISCHARGE_VBUS_MASK)\r
/*! @} */\r
\r
/*! @name USB1_VBUS_DETECT_CLR - USB PHY VBUS Detect Control Register */\r
* 0b110..4.6V\r
* 0b111..4.7V\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_THRESH_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_MASK (0x8U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_SHIFT (3U)\r
/*! VBUS_OVERRIDE_EN\r
- * 0b0..Use the results of the internal VBUS_VALID and Session Valid comparators for VBUS_VALID, AVALID, BVALID, and SESSEND (Default)\r
- * 0b1..Use the override values for VBUS_VALID, AVALID, BVALID, and SESSEND\r
+ * 0b0..Use the results of the internal VBUS_VALID and Session Valid comparators for VBUS_VALID, AVALID, BVALID, and\r
+ * SESSEND (Default) 0b1..Use the override values for VBUS_VALID, AVALID, BVALID, and SESSEND\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_VBUS_OVERRIDE_EN_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_MASK (0x10U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_SHIFT (4U)\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_SESSEND_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_MASK (0x20U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_SHIFT (5U)\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_BVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_MASK (0x40U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_SHIFT (6U)\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_AVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_MASK (0x80U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_SHIFT (7U)\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_MASK (0x100U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_SHIFT (8U)\r
/*! VBUSVALID_SEL\r
* 0b0..Use the VBUS_VALID comparator results for signal reported to the USB controller (Default)\r
* 0b1..Use the VBUS_VALID_3V detector results for signal reported to the USB controller\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_SEL_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_MASK (0x600U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_SHIFT (9U)\r
/*! VBUS_SOURCE_SEL\r
* 0b10..Use the Session Valid comparator results for signal reported to the USB controller\r
* 0b11..Reserved, do not use\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_VBUS_SOURCE_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_EN_MASK (0x800U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_EN_SHIFT (11U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_MASK (0x1000U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_SHIFT (12U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_ID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_EXT_ID_OVERRIDE_EN_MASK (0x2000U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_EXT_ID_OVERRIDE_EN_SHIFT (13U)\r
+/*! EXT_ID_OVERRIDE_EN\r
+ * 0b0..Select the Muxed value chosen using ID_OVERRIDE_EN.\r
+ * 0b1..Select the external ID value.\r
+ */\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_EXT_ID_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_EXT_ID_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_EXT_ID_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_EXT_VBUS_OVERRIDE_EN_MASK (0x4000U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_EXT_VBUS_OVERRIDE_EN_SHIFT (14U)\r
+/*! EXT_VBUS_OVERRIDE_EN\r
+ * 0b0..Select the muxed value chosen using VBUS_OVERRIDE_EN.\r
+ * 0b1..Select the external VBUS VALID value.\r
+ */\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_EXT_VBUS_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_EXT_VBUS_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_EXT_VBUS_OVERRIDE_EN_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_MASK (0x40000U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_SHIFT (18U)\r
/*! VBUSVALID_TO_SESSVALID\r
* 0b0..Use the VBUS_VALID comparator for VBUS_VALID results\r
* 0b1..Use the Session End comparator for VBUS_VALID results. The Session End threshold is >0.8V and <4.0V.\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_MASK)\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_MASK (0x100000U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_TO_SESSVALID_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_5VDETECT_MASK (0x80000U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_5VDETECT_SHIFT (19U)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_5VDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_5VDETECT_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_VBUSVALID_5VDETECT_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_MASK (0x700000U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_SHIFT (20U)\r
/*! PWRUP_CMPS\r
- * 0b0..Powers down the VBUS_VALID comparator\r
- * 0b1..Enables the VBUS_VALID comparator (default)\r
+ * 0b000..Powers down the VBUS_VALID comparator\r
+ * 0b111..Enables the VBUS_VALID comparator (default)\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_PWRUP_CMPS_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_MASK (0x4000000U)\r
#define USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_SHIFT (26U)\r
/*! DISCHARGE_VBUS\r
* 0b0..VBUS discharge resistor is disabled (Default)\r
* 0b1..VBUS discharge resistor is enabled\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_MASK)\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR_MASK (0x80000000U)\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR_SHIFT (31U)\r
-/*! EN_CHARGER_RESISTOR\r
- * 0b0..Disable resistive charger detection resistors on USB_DP and USB_DP\r
- * 0b1..Enable resistive charger detection resistors on USB_DP and USB_DP\r
- */\r
-#define USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR_SHIFT)) & USBPHY_USB1_VBUS_DETECT_CLR_EN_CHARGER_RESISTOR_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_CLR_DISCHARGE_VBUS_MASK)\r
/*! @} */\r
\r
/*! @name USB1_VBUS_DETECT_TOG - USB PHY VBUS Detect Control Register */\r
* 0b110..4.6V\r
* 0b111..4.7V\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_THRESH_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_MASK (0x8U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_SHIFT (3U)\r
/*! VBUS_OVERRIDE_EN\r
- * 0b0..Use the results of the internal VBUS_VALID and Session Valid comparators for VBUS_VALID, AVALID, BVALID, and SESSEND (Default)\r
- * 0b1..Use the override values for VBUS_VALID, AVALID, BVALID, and SESSEND\r
+ * 0b0..Use the results of the internal VBUS_VALID and Session Valid comparators for VBUS_VALID, AVALID, BVALID, and\r
+ * SESSEND (Default) 0b1..Use the override values for VBUS_VALID, AVALID, BVALID, and SESSEND\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_VBUS_OVERRIDE_EN_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_MASK (0x10U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_SHIFT (4U)\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_SESSEND_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_MASK (0x20U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_SHIFT (5U)\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_BVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_MASK (0x40U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_SHIFT (6U)\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_AVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_MASK (0x80U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_SHIFT (7U)\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_OVERRIDE_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_MASK (0x100U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_SHIFT (8U)\r
/*! VBUSVALID_SEL\r
* 0b0..Use the VBUS_VALID comparator results for signal reported to the USB controller (Default)\r
* 0b1..Use the VBUS_VALID_3V detector results for signal reported to the USB controller\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_SEL_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_MASK (0x600U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_SHIFT (9U)\r
/*! VBUS_SOURCE_SEL\r
* 0b10..Use the Session Valid comparator results for signal reported to the USB controller\r
* 0b11..Reserved, do not use\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_VBUS_SOURCE_SEL_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_EN_MASK (0x800U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_EN_SHIFT (11U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_MASK (0x1000U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_SHIFT (12U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_ID_OVERRIDE_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_EXT_ID_OVERRIDE_EN_MASK (0x2000U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_EXT_ID_OVERRIDE_EN_SHIFT (13U)\r
+/*! EXT_ID_OVERRIDE_EN\r
+ * 0b0..Select the muxed value chosen using ID_OVERRIDE_EN.\r
+ * 0b1..Select the external ID value.\r
+ */\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_EXT_ID_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_EXT_ID_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_EXT_ID_OVERRIDE_EN_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_EXT_VBUS_OVERRIDE_EN_MASK (0x4000U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_EXT_VBUS_OVERRIDE_EN_SHIFT (14U)\r
+/*! EXT_VBUS_OVERRIDE_EN\r
+ * 0b0..Select the Muxed value chosen using VBUS_OVERRIDE_EN.\r
+ * 0b1..Select the external VBUS VALID value.\r
+ */\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_EXT_VBUS_OVERRIDE_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_EXT_VBUS_OVERRIDE_EN_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_EXT_VBUS_OVERRIDE_EN_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_MASK (0x40000U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_SHIFT (18U)\r
/*! VBUSVALID_TO_SESSVALID\r
* 0b0..Use the VBUS_VALID comparator for VBUS_VALID results\r
* 0b1..Use the Session End comparator for VBUS_VALID results. The Session End threshold is >0.8V and <4.0V.\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_MASK)\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_MASK (0x100000U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_TO_SESSVALID_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_5VDETECT_MASK (0x80000U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_5VDETECT_SHIFT (19U)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_5VDETECT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_5VDETECT_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_VBUSVALID_5VDETECT_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_MASK (0x700000U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_SHIFT (20U)\r
/*! PWRUP_CMPS\r
- * 0b0..Powers down the VBUS_VALID comparator\r
- * 0b1..Enables the VBUS_VALID comparator (default)\r
+ * 0b000..Powers down the VBUS_VALID comparator\r
+ * 0b111..Enables the VBUS_VALID comparator (default)\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_PWRUP_CMPS_MASK)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_MASK (0x4000000U)\r
#define USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_SHIFT (26U)\r
/*! DISCHARGE_VBUS\r
* 0b0..VBUS discharge resistor is disabled (Default)\r
* 0b1..VBUS discharge resistor is enabled\r
*/\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_MASK)\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR_MASK (0x80000000U)\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR_SHIFT (31U)\r
-/*! EN_CHARGER_RESISTOR\r
- * 0b0..Disable resistive charger detection resistors on USB_DP and USB_DP\r
- * 0b1..Enable resistive charger detection resistors on USB_DP and USB_DP\r
- */\r
-#define USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR_SHIFT)) & USBPHY_USB1_VBUS_DETECT_TOG_EN_CHARGER_RESISTOR_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1_VBUS_DET_STAT - USB PHY VBUS Detector Status Register */\r
-/*! @{ */\r
-#define USBPHY_USB1_VBUS_DET_STAT_SESSEND_MASK (0x1U)\r
-#define USBPHY_USB1_VBUS_DET_STAT_SESSEND_SHIFT (0U)\r
-/*! SESSEND\r
- * 0b0..The VBUS voltage is above the Session Valid threshold\r
- * 0b1..The VBUS voltage is below the Session Valid threshold\r
- */\r
-#define USBPHY_USB1_VBUS_DET_STAT_SESSEND(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_SESSEND_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_SESSEND_MASK)\r
-#define USBPHY_USB1_VBUS_DET_STAT_BVALID_MASK (0x2U)\r
-#define USBPHY_USB1_VBUS_DET_STAT_BVALID_SHIFT (1U)\r
-/*! BVALID\r
- * 0b0..The VBUS voltage is below the Session Valid threshold\r
- * 0b1..The VBUS voltage is above the Session Valid threshold\r
- */\r
-#define USBPHY_USB1_VBUS_DET_STAT_BVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_BVALID_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_BVALID_MASK)\r
-#define USBPHY_USB1_VBUS_DET_STAT_AVALID_MASK (0x4U)\r
-#define USBPHY_USB1_VBUS_DET_STAT_AVALID_SHIFT (2U)\r
-/*! AVALID\r
- * 0b0..The VBUS voltage is below the Session Valid threshold\r
- * 0b1..The VBUS voltage is above the Session Valid threshold\r
- */\r
-#define USBPHY_USB1_VBUS_DET_STAT_AVALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_AVALID_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_AVALID_MASK)\r
-#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_MASK (0x8U)\r
-#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_SHIFT (3U)\r
-/*! VBUS_VALID\r
- * 0b0..VBUS is below the comparator threshold\r
- * 0b1..VBUS is above the comparator threshold\r
- */\r
-#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_MASK)\r
-#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V_MASK (0x10U)\r
-#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V_SHIFT (4U)\r
-/*! VBUS_VALID_3V\r
- * 0b0..VBUS voltage is below VBUS_VALID_3V threshold\r
- * 0b1..VBUS voltage is above VBUS_VALID_3V threshold\r
- */\r
-#define USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V_SHIFT)) & USBPHY_USB1_VBUS_DET_STAT_VBUS_VALID_3V_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1_CHRG_DETECT - USB PHY Charger Detect Control Register */\r
-/*! @{ */\r
-#define USBPHY_USB1_CHRG_DETECT_PULLUP_DP_MASK (0x4U)\r
-#define USBPHY_USB1_CHRG_DETECT_PULLUP_DP_SHIFT (2U)\r
-#define USBPHY_USB1_CHRG_DETECT_PULLUP_DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DETECT_PULLUP_DP_SHIFT)) & USBPHY_USB1_CHRG_DETECT_PULLUP_DP_MASK)\r
-#define USBPHY_USB1_CHRG_DETECT_BGR_IBIAS_MASK (0x800000U)\r
-#define USBPHY_USB1_CHRG_DETECT_BGR_IBIAS_SHIFT (23U)\r
-/*! BGR_IBIAS\r
- * 0b0..Bias current is derived from the USB PHY internal current generator.\r
- * 0b1..Bias current is derived from the reference generator of the bandgap.\r
- */\r
-#define USBPHY_USB1_CHRG_DETECT_BGR_IBIAS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DETECT_BGR_IBIAS_SHIFT)) & USBPHY_USB1_CHRG_DETECT_BGR_IBIAS_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1_CHRG_DETECT_SET - USB PHY Charger Detect Control Register */\r
-/*! @{ */\r
-#define USBPHY_USB1_CHRG_DETECT_SET_PULLUP_DP_MASK (0x4U)\r
-#define USBPHY_USB1_CHRG_DETECT_SET_PULLUP_DP_SHIFT (2U)\r
-#define USBPHY_USB1_CHRG_DETECT_SET_PULLUP_DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DETECT_SET_PULLUP_DP_SHIFT)) & USBPHY_USB1_CHRG_DETECT_SET_PULLUP_DP_MASK)\r
-#define USBPHY_USB1_CHRG_DETECT_SET_BGR_IBIAS_MASK (0x800000U)\r
-#define USBPHY_USB1_CHRG_DETECT_SET_BGR_IBIAS_SHIFT (23U)\r
-/*! BGR_IBIAS\r
- * 0b0..Bias current is derived from the USB PHY internal current generator.\r
- * 0b1..Bias current is derived from the reference generator of the bandgap.\r
- */\r
-#define USBPHY_USB1_CHRG_DETECT_SET_BGR_IBIAS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DETECT_SET_BGR_IBIAS_SHIFT)) & USBPHY_USB1_CHRG_DETECT_SET_BGR_IBIAS_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1_CHRG_DETECT_CLR - USB PHY Charger Detect Control Register */\r
-/*! @{ */\r
-#define USBPHY_USB1_CHRG_DETECT_CLR_PULLUP_DP_MASK (0x4U)\r
-#define USBPHY_USB1_CHRG_DETECT_CLR_PULLUP_DP_SHIFT (2U)\r
-#define USBPHY_USB1_CHRG_DETECT_CLR_PULLUP_DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DETECT_CLR_PULLUP_DP_SHIFT)) & USBPHY_USB1_CHRG_DETECT_CLR_PULLUP_DP_MASK)\r
-#define USBPHY_USB1_CHRG_DETECT_CLR_BGR_IBIAS_MASK (0x800000U)\r
-#define USBPHY_USB1_CHRG_DETECT_CLR_BGR_IBIAS_SHIFT (23U)\r
-/*! BGR_IBIAS\r
- * 0b0..Bias current is derived from the USB PHY internal current generator.\r
- * 0b1..Bias current is derived from the reference generator of the bandgap.\r
- */\r
-#define USBPHY_USB1_CHRG_DETECT_CLR_BGR_IBIAS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DETECT_CLR_BGR_IBIAS_SHIFT)) & USBPHY_USB1_CHRG_DETECT_CLR_BGR_IBIAS_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1_CHRG_DETECT_TOG - USB PHY Charger Detect Control Register */\r
-/*! @{ */\r
-#define USBPHY_USB1_CHRG_DETECT_TOG_PULLUP_DP_MASK (0x4U)\r
-#define USBPHY_USB1_CHRG_DETECT_TOG_PULLUP_DP_SHIFT (2U)\r
-#define USBPHY_USB1_CHRG_DETECT_TOG_PULLUP_DP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DETECT_TOG_PULLUP_DP_SHIFT)) & USBPHY_USB1_CHRG_DETECT_TOG_PULLUP_DP_MASK)\r
-#define USBPHY_USB1_CHRG_DETECT_TOG_BGR_IBIAS_MASK (0x800000U)\r
-#define USBPHY_USB1_CHRG_DETECT_TOG_BGR_IBIAS_SHIFT (23U)\r
-/*! BGR_IBIAS\r
- * 0b0..Bias current is derived from the USB PHY internal current generator.\r
- * 0b1..Bias current is derived from the reference generator of the bandgap.\r
- */\r
-#define USBPHY_USB1_CHRG_DETECT_TOG_BGR_IBIAS(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DETECT_TOG_BGR_IBIAS_SHIFT)) & USBPHY_USB1_CHRG_DETECT_TOG_BGR_IBIAS_MASK)\r
-/*! @} */\r
-\r
-/*! @name USB1_CHRG_DET_STAT - USB PHY Charger Detect Status Register */\r
-/*! @{ */\r
-#define USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT_MASK (0x1U)\r
-#define USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT_SHIFT (0U)\r
-/*! PLUG_CONTACT\r
- * 0b0..No USB cable attachment has been detected\r
- * 0b1..A USB cable attachment between the device and host has been detected\r
- */\r
-#define USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_PLUG_CONTACT_MASK)\r
-#define USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED_MASK (0x2U)\r
-#define USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED_SHIFT (1U)\r
-/*! CHRG_DETECTED\r
- * 0b0..Standard Downstream Port (SDP) has been detected\r
- * 0b1..Charging Port has been detected\r
- */\r
-#define USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_CHRG_DETECTED_MASK)\r
-#define USBPHY_USB1_CHRG_DET_STAT_DM_STATE_MASK (0x4U)\r
-#define USBPHY_USB1_CHRG_DET_STAT_DM_STATE_SHIFT (2U)\r
-/*! DM_STATE\r
- * 0b0..USB_DM pin voltage is < 0.8V\r
- * 0b1..USB_DM pin voltage is > 2.0V\r
- */\r
-#define USBPHY_USB1_CHRG_DET_STAT_DM_STATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_DM_STATE_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_DM_STATE_MASK)\r
-#define USBPHY_USB1_CHRG_DET_STAT_DP_STATE_MASK (0x8U)\r
-#define USBPHY_USB1_CHRG_DET_STAT_DP_STATE_SHIFT (3U)\r
-/*! DP_STATE\r
- * 0b0..USB_DP pin voltage is < 0.8V\r
- * 0b1..USB_DP pin voltage is > 2.0V\r
- */\r
-#define USBPHY_USB1_CHRG_DET_STAT_DP_STATE(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_DP_STATE_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_DP_STATE_MASK)\r
-#define USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP_MASK (0x10U)\r
-#define USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP_SHIFT (4U)\r
-/*! SECDET_DCP\r
- * 0b0..Charging Downstream Port (CDP) has been detected\r
- * 0b1..Downstream Charging Port (DCP) has been detected\r
- */\r
-#define USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP_SHIFT)) & USBPHY_USB1_CHRG_DET_STAT_SECDET_DCP_MASK)\r
+#define USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_SHIFT)) & \\r
+ USBPHY_USB1_VBUS_DETECT_TOG_DISCHARGE_VBUS_MASK)\r
/*! @} */\r
\r
/*! @name ANACTRL - USB PHY Analog Control Register */\r
/*! @{ */\r
-#define USBPHY_ANACTRL_DEV_PULLDOWN_MASK (0x400U)\r
-#define USBPHY_ANACTRL_DEV_PULLDOWN_SHIFT (10U)\r
+#define USBPHY_ANACTRL_LVI_EN_MASK (0x2U)\r
+#define USBPHY_ANACTRL_LVI_EN_SHIFT (1U)\r
+#define USBPHY_ANACTRL_LVI_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_LVI_EN_SHIFT)) & USBPHY_ANACTRL_LVI_EN_MASK)\r
+#define USBPHY_ANACTRL_PFD_CLK_SEL_MASK (0xCU)\r
+#define USBPHY_ANACTRL_PFD_CLK_SEL_SHIFT (2U)\r
+#define USBPHY_ANACTRL_PFD_CLK_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_PFD_CLK_SEL_SHIFT)) & USBPHY_ANACTRL_PFD_CLK_SEL_MASK)\r
+#define USBPHY_ANACTRL_DEV_PULLDOWN_MASK (0x400U)\r
+#define USBPHY_ANACTRL_DEV_PULLDOWN_SHIFT (10U)\r
/*! DEV_PULLDOWN\r
* 0b0..The 15kohm nominal pulldowns on the USB_DP and USB_DM pinsare disabled in device mode.\r
* 0b1..The 15kohm nominal pulldowns on the USB_DP and USB_DM pinsare enabled in device mode.\r
*/\r
-#define USBPHY_ANACTRL_DEV_PULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_DEV_PULLDOWN_MASK)\r
+#define USBPHY_ANACTRL_DEV_PULLDOWN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_DEV_PULLDOWN_MASK)\r
/*! @} */\r
\r
/*! @name ANACTRL_SET - USB PHY Analog Control Register */\r
/*! @{ */\r
-#define USBPHY_ANACTRL_SET_DEV_PULLDOWN_MASK (0x400U)\r
-#define USBPHY_ANACTRL_SET_DEV_PULLDOWN_SHIFT (10U)\r
+#define USBPHY_ANACTRL_SET_LVI_EN_MASK (0x2U)\r
+#define USBPHY_ANACTRL_SET_LVI_EN_SHIFT (1U)\r
+#define USBPHY_ANACTRL_SET_LVI_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_LVI_EN_SHIFT)) & USBPHY_ANACTRL_SET_LVI_EN_MASK)\r
+#define USBPHY_ANACTRL_SET_PFD_CLK_SEL_MASK (0xCU)\r
+#define USBPHY_ANACTRL_SET_PFD_CLK_SEL_SHIFT (2U)\r
+#define USBPHY_ANACTRL_SET_PFD_CLK_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_PFD_CLK_SEL_SHIFT)) & USBPHY_ANACTRL_SET_PFD_CLK_SEL_MASK)\r
+#define USBPHY_ANACTRL_SET_DEV_PULLDOWN_MASK (0x400U)\r
+#define USBPHY_ANACTRL_SET_DEV_PULLDOWN_SHIFT (10U)\r
/*! DEV_PULLDOWN\r
* 0b0..The 15kohm nominal pulldowns on the USB_DP and USB_DM pinsare disabled in device mode.\r
* 0b1..The 15kohm nominal pulldowns on the USB_DP and USB_DM pinsare enabled in device mode.\r
*/\r
-#define USBPHY_ANACTRL_SET_DEV_PULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_SET_DEV_PULLDOWN_MASK)\r
+#define USBPHY_ANACTRL_SET_DEV_PULLDOWN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_SET_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_SET_DEV_PULLDOWN_MASK)\r
/*! @} */\r
\r
/*! @name ANACTRL_CLR - USB PHY Analog Control Register */\r
/*! @{ */\r
-#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN_MASK (0x400U)\r
-#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN_SHIFT (10U)\r
+#define USBPHY_ANACTRL_CLR_LVI_EN_MASK (0x2U)\r
+#define USBPHY_ANACTRL_CLR_LVI_EN_SHIFT (1U)\r
+#define USBPHY_ANACTRL_CLR_LVI_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_LVI_EN_SHIFT)) & USBPHY_ANACTRL_CLR_LVI_EN_MASK)\r
+#define USBPHY_ANACTRL_CLR_PFD_CLK_SEL_MASK (0xCU)\r
+#define USBPHY_ANACTRL_CLR_PFD_CLK_SEL_SHIFT (2U)\r
+#define USBPHY_ANACTRL_CLR_PFD_CLK_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_PFD_CLK_SEL_SHIFT)) & USBPHY_ANACTRL_CLR_PFD_CLK_SEL_MASK)\r
+#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN_MASK (0x400U)\r
+#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN_SHIFT (10U)\r
/*! DEV_PULLDOWN\r
* 0b0..The 15kohm nominal pulldowns on the USB_DP and USB_DM pinsare disabled in device mode.\r
* 0b1..The 15kohm nominal pulldowns on the USB_DP and USB_DM pinsare enabled in device mode.\r
*/\r
-#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_CLR_DEV_PULLDOWN_MASK)\r
+#define USBPHY_ANACTRL_CLR_DEV_PULLDOWN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_CLR_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_CLR_DEV_PULLDOWN_MASK)\r
/*! @} */\r
\r
/*! @name ANACTRL_TOG - USB PHY Analog Control Register */\r
/*! @{ */\r
-#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN_MASK (0x400U)\r
-#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN_SHIFT (10U)\r
+#define USBPHY_ANACTRL_TOG_LVI_EN_MASK (0x2U)\r
+#define USBPHY_ANACTRL_TOG_LVI_EN_SHIFT (1U)\r
+#define USBPHY_ANACTRL_TOG_LVI_EN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_LVI_EN_SHIFT)) & USBPHY_ANACTRL_TOG_LVI_EN_MASK)\r
+#define USBPHY_ANACTRL_TOG_PFD_CLK_SEL_MASK (0xCU)\r
+#define USBPHY_ANACTRL_TOG_PFD_CLK_SEL_SHIFT (2U)\r
+#define USBPHY_ANACTRL_TOG_PFD_CLK_SEL(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_PFD_CLK_SEL_SHIFT)) & USBPHY_ANACTRL_TOG_PFD_CLK_SEL_MASK)\r
+#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN_MASK (0x400U)\r
+#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN_SHIFT (10U)\r
/*! DEV_PULLDOWN\r
* 0b0..The 15kohm nominal pulldowns on the USB_DP and USB_DM pinsare disabled in device mode.\r
* 0b1..The 15kohm nominal pulldowns on the USB_DP and USB_DM pinsare enabled in device mode.\r
*/\r
-#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN(x) (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_TOG_DEV_PULLDOWN_MASK)\r
+#define USBPHY_ANACTRL_TOG_DEV_PULLDOWN(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << USBPHY_ANACTRL_TOG_DEV_PULLDOWN_SHIFT)) & USBPHY_ANACTRL_TOG_DEV_PULLDOWN_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group USBPHY_Register_Masks */\r
\r
-\r
/* USBPHY - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral USBPHY base address */\r
- #define USBPHY_BASE (0x50038000u)\r
- /** Peripheral USBPHY base address */\r
- #define USBPHY_BASE_NS (0x40038000u)\r
- /** Peripheral USBPHY base pointer */\r
- #define USBPHY ((USBPHY_Type *)USBPHY_BASE)\r
- /** Peripheral USBPHY base pointer */\r
- #define USBPHY_NS ((USBPHY_Type *)USBPHY_BASE_NS)\r
- /** Array initializer of USBPHY peripheral base addresses */\r
- #define USBPHY_BASE_ADDRS { USBPHY_BASE }\r
- /** Array initializer of USBPHY peripheral base pointers */\r
- #define USBPHY_BASE_PTRS { USBPHY }\r
- /** Array initializer of USBPHY peripheral base addresses */\r
- #define USBPHY_BASE_ADDRS_NS { USBPHY_BASE_NS }\r
- /** Array initializer of USBPHY peripheral base pointers */\r
- #define USBPHY_BASE_PTRS_NS { USBPHY_NS }\r
+/** Peripheral USBPHY base address */\r
+#define USBPHY_BASE (0x50038000u)\r
+/** Peripheral USBPHY base address */\r
+#define USBPHY_BASE_NS (0x40038000u)\r
+/** Peripheral USBPHY base pointer */\r
+#define USBPHY ((USBPHY_Type *)USBPHY_BASE)\r
+/** Peripheral USBPHY base pointer */\r
+#define USBPHY_NS ((USBPHY_Type *)USBPHY_BASE_NS)\r
+/** Array initializer of USBPHY peripheral base addresses */\r
+#define USBPHY_BASE_ADDRS \\r
+ { \\r
+ USBPHY_BASE \\r
+ }\r
+/** Array initializer of USBPHY peripheral base pointers */\r
+#define USBPHY_BASE_PTRS \\r
+ { \\r
+ USBPHY \\r
+ }\r
+/** Array initializer of USBPHY peripheral base addresses */\r
+#define USBPHY_BASE_ADDRS_NS \\r
+ { \\r
+ USBPHY_BASE_NS \\r
+ }\r
+/** Array initializer of USBPHY peripheral base pointers */\r
+#define USBPHY_BASE_PTRS_NS \\r
+ { \\r
+ USBPHY_NS \\r
+ }\r
#else\r
- /** Peripheral USBPHY base address */\r
- #define USBPHY_BASE (0x40038000u)\r
- /** Peripheral USBPHY base pointer */\r
- #define USBPHY ((USBPHY_Type *)USBPHY_BASE)\r
- /** Array initializer of USBPHY peripheral base addresses */\r
- #define USBPHY_BASE_ADDRS { USBPHY_BASE }\r
- /** Array initializer of USBPHY peripheral base pointers */\r
- #define USBPHY_BASE_PTRS { USBPHY }\r
+/** Peripheral USBPHY base address */\r
+#define USBPHY_BASE (0x40038000u)\r
+/** Peripheral USBPHY base pointer */\r
+#define USBPHY ((USBPHY_Type *)USBPHY_BASE)\r
+/** Array initializer of USBPHY peripheral base addresses */\r
+#define USBPHY_BASE_ADDRS \\r
+ { \\r
+ USBPHY_BASE \\r
+ }\r
+/** Array initializer of USBPHY peripheral base pointers */\r
+#define USBPHY_BASE_PTRS \\r
+ { \\r
+ USBPHY \\r
+ }\r
#endif\r
+/** Interrupt vectors for the USBPHY peripheral type */\r
+#define USBPHY_IRQS \\r
+ { \\r
+ USB1_PHY_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group USBPHY_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- UTICK Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** UTICK - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t CTRL; /**< Control register., offset: 0x0 */\r
- __IO uint32_t STAT; /**< Status register., offset: 0x4 */\r
- __IO uint32_t CFG; /**< Capture configuration register., offset: 0x8 */\r
- __O uint32_t CAPCLR; /**< Capture clear register., offset: 0xC */\r
- __I uint32_t CAP[4]; /**< Capture register ., array offset: 0x10, array step: 0x4 */\r
+typedef struct\r
+{\r
+ __IO uint32_t CTRL; /**< Control register., offset: 0x0 */\r
+ __IO uint32_t STAT; /**< Status register., offset: 0x4 */\r
+ __IO uint32_t CFG; /**< Capture configuration register., offset: 0x8 */\r
+ __O uint32_t CAPCLR; /**< Capture clear register., offset: 0xC */\r
+ __I uint32_t CAP[4]; /**< Capture register ., array offset: 0x10, array step: 0x4 */\r
} UTICK_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name CTRL - Control register. */\r
/*! @{ */\r
-#define UTICK_CTRL_DELAYVAL_MASK (0x7FFFFFFFU)\r
-#define UTICK_CTRL_DELAYVAL_SHIFT (0U)\r
-#define UTICK_CTRL_DELAYVAL(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CTRL_DELAYVAL_SHIFT)) & UTICK_CTRL_DELAYVAL_MASK)\r
-#define UTICK_CTRL_REPEAT_MASK (0x80000000U)\r
-#define UTICK_CTRL_REPEAT_SHIFT (31U)\r
-#define UTICK_CTRL_REPEAT(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CTRL_REPEAT_SHIFT)) & UTICK_CTRL_REPEAT_MASK)\r
+#define UTICK_CTRL_DELAYVAL_MASK (0x7FFFFFFFU)\r
+#define UTICK_CTRL_DELAYVAL_SHIFT (0U)\r
+/*! DELAYVAL - Tick interval value. The delay will be equal to DELAYVAL + 1 periods of the timer\r
+ * clock. The minimum usable value is 1, for a delay of 2 timer clocks. A value of 0 stops the timer.\r
+ */\r
+#define UTICK_CTRL_DELAYVAL(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CTRL_DELAYVAL_SHIFT)) & UTICK_CTRL_DELAYVAL_MASK)\r
+#define UTICK_CTRL_REPEAT_MASK (0x80000000U)\r
+#define UTICK_CTRL_REPEAT_SHIFT (31U)\r
+/*! REPEAT - Repeat delay. 0 = One-time delay. 1 = Delay repeats continuously.\r
+ */\r
+#define UTICK_CTRL_REPEAT(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CTRL_REPEAT_SHIFT)) & UTICK_CTRL_REPEAT_MASK)\r
/*! @} */\r
\r
/*! @name STAT - Status register. */\r
/*! @{ */\r
-#define UTICK_STAT_INTR_MASK (0x1U)\r
-#define UTICK_STAT_INTR_SHIFT (0U)\r
-#define UTICK_STAT_INTR(x) (((uint32_t)(((uint32_t)(x)) << UTICK_STAT_INTR_SHIFT)) & UTICK_STAT_INTR_MASK)\r
-#define UTICK_STAT_ACTIVE_MASK (0x2U)\r
-#define UTICK_STAT_ACTIVE_SHIFT (1U)\r
-#define UTICK_STAT_ACTIVE(x) (((uint32_t)(((uint32_t)(x)) << UTICK_STAT_ACTIVE_SHIFT)) & UTICK_STAT_ACTIVE_MASK)\r
+#define UTICK_STAT_INTR_MASK (0x1U)\r
+#define UTICK_STAT_INTR_SHIFT (0U)\r
+/*! INTR - Interrupt flag. 0 = No interrupt is pending. 1 = An interrupt is pending. A write of any\r
+ * value to this register clears this flag.\r
+ */\r
+#define UTICK_STAT_INTR(x) (((uint32_t)(((uint32_t)(x)) << UTICK_STAT_INTR_SHIFT)) & UTICK_STAT_INTR_MASK)\r
+#define UTICK_STAT_ACTIVE_MASK (0x2U)\r
+#define UTICK_STAT_ACTIVE_SHIFT (1U)\r
+/*! ACTIVE - Active flag. 0 = The Micro-Tick Timer is stopped. 1 = The Micro-Tick Timer is currently active.\r
+ */\r
+#define UTICK_STAT_ACTIVE(x) (((uint32_t)(((uint32_t)(x)) << UTICK_STAT_ACTIVE_SHIFT)) & UTICK_STAT_ACTIVE_MASK)\r
/*! @} */\r
\r
/*! @name CFG - Capture configuration register. */\r
/*! @{ */\r
-#define UTICK_CFG_CAPEN0_MASK (0x1U)\r
-#define UTICK_CFG_CAPEN0_SHIFT (0U)\r
-#define UTICK_CFG_CAPEN0(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPEN0_SHIFT)) & UTICK_CFG_CAPEN0_MASK)\r
-#define UTICK_CFG_CAPEN1_MASK (0x2U)\r
-#define UTICK_CFG_CAPEN1_SHIFT (1U)\r
-#define UTICK_CFG_CAPEN1(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPEN1_SHIFT)) & UTICK_CFG_CAPEN1_MASK)\r
-#define UTICK_CFG_CAPEN2_MASK (0x4U)\r
-#define UTICK_CFG_CAPEN2_SHIFT (2U)\r
-#define UTICK_CFG_CAPEN2(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPEN2_SHIFT)) & UTICK_CFG_CAPEN2_MASK)\r
-#define UTICK_CFG_CAPEN3_MASK (0x8U)\r
-#define UTICK_CFG_CAPEN3_SHIFT (3U)\r
-#define UTICK_CFG_CAPEN3(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPEN3_SHIFT)) & UTICK_CFG_CAPEN3_MASK)\r
-#define UTICK_CFG_CAPPOL0_MASK (0x100U)\r
-#define UTICK_CFG_CAPPOL0_SHIFT (8U)\r
-#define UTICK_CFG_CAPPOL0(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPPOL0_SHIFT)) & UTICK_CFG_CAPPOL0_MASK)\r
-#define UTICK_CFG_CAPPOL1_MASK (0x200U)\r
-#define UTICK_CFG_CAPPOL1_SHIFT (9U)\r
-#define UTICK_CFG_CAPPOL1(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPPOL1_SHIFT)) & UTICK_CFG_CAPPOL1_MASK)\r
-#define UTICK_CFG_CAPPOL2_MASK (0x400U)\r
-#define UTICK_CFG_CAPPOL2_SHIFT (10U)\r
-#define UTICK_CFG_CAPPOL2(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPPOL2_SHIFT)) & UTICK_CFG_CAPPOL2_MASK)\r
-#define UTICK_CFG_CAPPOL3_MASK (0x800U)\r
-#define UTICK_CFG_CAPPOL3_SHIFT (11U)\r
-#define UTICK_CFG_CAPPOL3(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPPOL3_SHIFT)) & UTICK_CFG_CAPPOL3_MASK)\r
+#define UTICK_CFG_CAPEN0_MASK (0x1U)\r
+#define UTICK_CFG_CAPEN0_SHIFT (0U)\r
+/*! CAPEN0 - Enable Capture 0. 1 = Enabled, 0 = Disabled.\r
+ */\r
+#define UTICK_CFG_CAPEN0(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPEN0_SHIFT)) & UTICK_CFG_CAPEN0_MASK)\r
+#define UTICK_CFG_CAPEN1_MASK (0x2U)\r
+#define UTICK_CFG_CAPEN1_SHIFT (1U)\r
+/*! CAPEN1 - Enable Capture 1. 1 = Enabled, 0 = Disabled.\r
+ */\r
+#define UTICK_CFG_CAPEN1(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPEN1_SHIFT)) & UTICK_CFG_CAPEN1_MASK)\r
+#define UTICK_CFG_CAPEN2_MASK (0x4U)\r
+#define UTICK_CFG_CAPEN2_SHIFT (2U)\r
+/*! CAPEN2 - Enable Capture 2. 1 = Enabled, 0 = Disabled.\r
+ */\r
+#define UTICK_CFG_CAPEN2(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPEN2_SHIFT)) & UTICK_CFG_CAPEN2_MASK)\r
+#define UTICK_CFG_CAPEN3_MASK (0x8U)\r
+#define UTICK_CFG_CAPEN3_SHIFT (3U)\r
+/*! CAPEN3 - Enable Capture 3. 1 = Enabled, 0 = Disabled.\r
+ */\r
+#define UTICK_CFG_CAPEN3(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPEN3_SHIFT)) & UTICK_CFG_CAPEN3_MASK)\r
+#define UTICK_CFG_CAPPOL0_MASK (0x100U)\r
+#define UTICK_CFG_CAPPOL0_SHIFT (8U)\r
+/*! CAPPOL0 - Capture Polarity 0. 0 = Positive edge capture, 1 = Negative edge capture.\r
+ */\r
+#define UTICK_CFG_CAPPOL0(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPPOL0_SHIFT)) & UTICK_CFG_CAPPOL0_MASK)\r
+#define UTICK_CFG_CAPPOL1_MASK (0x200U)\r
+#define UTICK_CFG_CAPPOL1_SHIFT (9U)\r
+/*! CAPPOL1 - Capture Polarity 1. 0 = Positive edge capture, 1 = Negative edge capture.\r
+ */\r
+#define UTICK_CFG_CAPPOL1(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPPOL1_SHIFT)) & UTICK_CFG_CAPPOL1_MASK)\r
+#define UTICK_CFG_CAPPOL2_MASK (0x400U)\r
+#define UTICK_CFG_CAPPOL2_SHIFT (10U)\r
+/*! CAPPOL2 - Capture Polarity 2. 0 = Positive edge capture, 1 = Negative edge capture.\r
+ */\r
+#define UTICK_CFG_CAPPOL2(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPPOL2_SHIFT)) & UTICK_CFG_CAPPOL2_MASK)\r
+#define UTICK_CFG_CAPPOL3_MASK (0x800U)\r
+#define UTICK_CFG_CAPPOL3_SHIFT (11U)\r
+/*! CAPPOL3 - Capture Polarity 3. 0 = Positive edge capture, 1 = Negative edge capture.\r
+ */\r
+#define UTICK_CFG_CAPPOL3(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CFG_CAPPOL3_SHIFT)) & UTICK_CFG_CAPPOL3_MASK)\r
/*! @} */\r
\r
/*! @name CAPCLR - Capture clear register. */\r
/*! @{ */\r
-#define UTICK_CAPCLR_CAPCLR0_MASK (0x1U)\r
-#define UTICK_CAPCLR_CAPCLR0_SHIFT (0U)\r
-#define UTICK_CAPCLR_CAPCLR0(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CAPCLR_CAPCLR0_SHIFT)) & UTICK_CAPCLR_CAPCLR0_MASK)\r
-#define UTICK_CAPCLR_CAPCLR1_MASK (0x2U)\r
-#define UTICK_CAPCLR_CAPCLR1_SHIFT (1U)\r
-#define UTICK_CAPCLR_CAPCLR1(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CAPCLR_CAPCLR1_SHIFT)) & UTICK_CAPCLR_CAPCLR1_MASK)\r
-#define UTICK_CAPCLR_CAPCLR2_MASK (0x4U)\r
-#define UTICK_CAPCLR_CAPCLR2_SHIFT (2U)\r
-#define UTICK_CAPCLR_CAPCLR2(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CAPCLR_CAPCLR2_SHIFT)) & UTICK_CAPCLR_CAPCLR2_MASK)\r
-#define UTICK_CAPCLR_CAPCLR3_MASK (0x8U)\r
-#define UTICK_CAPCLR_CAPCLR3_SHIFT (3U)\r
-#define UTICK_CAPCLR_CAPCLR3(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CAPCLR_CAPCLR3_SHIFT)) & UTICK_CAPCLR_CAPCLR3_MASK)\r
+#define UTICK_CAPCLR_CAPCLR0_MASK (0x1U)\r
+#define UTICK_CAPCLR_CAPCLR0_SHIFT (0U)\r
+/*! CAPCLR0 - Clear capture 0. Writing 1 to this bit clears the CAP0 register value.\r
+ */\r
+#define UTICK_CAPCLR_CAPCLR0(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << UTICK_CAPCLR_CAPCLR0_SHIFT)) & UTICK_CAPCLR_CAPCLR0_MASK)\r
+#define UTICK_CAPCLR_CAPCLR1_MASK (0x2U)\r
+#define UTICK_CAPCLR_CAPCLR1_SHIFT (1U)\r
+/*! CAPCLR1 - Clear capture 1. Writing 1 to this bit clears the CAP1 register value.\r
+ */\r
+#define UTICK_CAPCLR_CAPCLR1(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << UTICK_CAPCLR_CAPCLR1_SHIFT)) & UTICK_CAPCLR_CAPCLR1_MASK)\r
+#define UTICK_CAPCLR_CAPCLR2_MASK (0x4U)\r
+#define UTICK_CAPCLR_CAPCLR2_SHIFT (2U)\r
+/*! CAPCLR2 - Clear capture 2. Writing 1 to this bit clears the CAP2 register value.\r
+ */\r
+#define UTICK_CAPCLR_CAPCLR2(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << UTICK_CAPCLR_CAPCLR2_SHIFT)) & UTICK_CAPCLR_CAPCLR2_MASK)\r
+#define UTICK_CAPCLR_CAPCLR3_MASK (0x8U)\r
+#define UTICK_CAPCLR_CAPCLR3_SHIFT (3U)\r
+/*! CAPCLR3 - Clear capture 3. Writing 1 to this bit clears the CAP3 register value.\r
+ */\r
+#define UTICK_CAPCLR_CAPCLR3(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << UTICK_CAPCLR_CAPCLR3_SHIFT)) & UTICK_CAPCLR_CAPCLR3_MASK)\r
/*! @} */\r
\r
/*! @name CAP - Capture register . */\r
/*! @{ */\r
-#define UTICK_CAP_CAP_VALUE_MASK (0x7FFFFFFFU)\r
-#define UTICK_CAP_CAP_VALUE_SHIFT (0U)\r
-#define UTICK_CAP_CAP_VALUE(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CAP_CAP_VALUE_SHIFT)) & UTICK_CAP_CAP_VALUE_MASK)\r
-#define UTICK_CAP_VALID_MASK (0x80000000U)\r
-#define UTICK_CAP_VALID_SHIFT (31U)\r
-#define UTICK_CAP_VALID(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CAP_VALID_SHIFT)) & UTICK_CAP_VALID_MASK)\r
+#define UTICK_CAP_CAP_VALUE_MASK (0x7FFFFFFFU)\r
+#define UTICK_CAP_CAP_VALUE_SHIFT (0U)\r
+/*! CAP_VALUE - Capture value for the related capture event (UTICK_CAPn. Note: the value is 1 lower\r
+ * than the actual value of the Micro-tick Timer at the moment of the capture event.\r
+ */\r
+#define UTICK_CAP_CAP_VALUE(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CAP_CAP_VALUE_SHIFT)) & UTICK_CAP_CAP_VALUE_MASK)\r
+#define UTICK_CAP_VALID_MASK (0x80000000U)\r
+#define UTICK_CAP_VALID_SHIFT (31U)\r
+/*! VALID - Capture Valid. When 1, a value has been captured based on a transition of the related\r
+ * UTICK_CAPn pin. Cleared by writing to the related bit in the CAPCLR register.\r
+ */\r
+#define UTICK_CAP_VALID(x) (((uint32_t)(((uint32_t)(x)) << UTICK_CAP_VALID_SHIFT)) & UTICK_CAP_VALID_MASK)\r
/*! @} */\r
\r
/* The count of UTICK_CAP */\r
-#define UTICK_CAP_COUNT (4U)\r
-\r
+#define UTICK_CAP_COUNT (4U)\r
\r
/*!\r
* @}\r
*/ /* end of group UTICK_Register_Masks */\r
\r
-\r
/* UTICK - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral UTICK0 base address */\r
- #define UTICK0_BASE (0x5000E000u)\r
- /** Peripheral UTICK0 base address */\r
- #define UTICK0_BASE_NS (0x4000E000u)\r
- /** Peripheral UTICK0 base pointer */\r
- #define UTICK0 ((UTICK_Type *)UTICK0_BASE)\r
- /** Peripheral UTICK0 base pointer */\r
- #define UTICK0_NS ((UTICK_Type *)UTICK0_BASE_NS)\r
- /** Array initializer of UTICK peripheral base addresses */\r
- #define UTICK_BASE_ADDRS { UTICK0_BASE }\r
- /** Array initializer of UTICK peripheral base pointers */\r
- #define UTICK_BASE_PTRS { UTICK0 }\r
- /** Array initializer of UTICK peripheral base addresses */\r
- #define UTICK_BASE_ADDRS_NS { UTICK0_BASE_NS }\r
- /** Array initializer of UTICK peripheral base pointers */\r
- #define UTICK_BASE_PTRS_NS { UTICK0_NS }\r
+/** Peripheral UTICK0 base address */\r
+#define UTICK0_BASE (0x5000E000u)\r
+/** Peripheral UTICK0 base address */\r
+#define UTICK0_BASE_NS (0x4000E000u)\r
+/** Peripheral UTICK0 base pointer */\r
+#define UTICK0 ((UTICK_Type *)UTICK0_BASE)\r
+/** Peripheral UTICK0 base pointer */\r
+#define UTICK0_NS ((UTICK_Type *)UTICK0_BASE_NS)\r
+/** Array initializer of UTICK peripheral base addresses */\r
+#define UTICK_BASE_ADDRS \\r
+ { \\r
+ UTICK0_BASE \\r
+ }\r
+/** Array initializer of UTICK peripheral base pointers */\r
+#define UTICK_BASE_PTRS \\r
+ { \\r
+ UTICK0 \\r
+ }\r
+/** Array initializer of UTICK peripheral base addresses */\r
+#define UTICK_BASE_ADDRS_NS \\r
+ { \\r
+ UTICK0_BASE_NS \\r
+ }\r
+/** Array initializer of UTICK peripheral base pointers */\r
+#define UTICK_BASE_PTRS_NS \\r
+ { \\r
+ UTICK0_NS \\r
+ }\r
#else\r
- /** Peripheral UTICK0 base address */\r
- #define UTICK0_BASE (0x4000E000u)\r
- /** Peripheral UTICK0 base pointer */\r
- #define UTICK0 ((UTICK_Type *)UTICK0_BASE)\r
- /** Array initializer of UTICK peripheral base addresses */\r
- #define UTICK_BASE_ADDRS { UTICK0_BASE }\r
- /** Array initializer of UTICK peripheral base pointers */\r
- #define UTICK_BASE_PTRS { UTICK0 }\r
+/** Peripheral UTICK0 base address */\r
+#define UTICK0_BASE (0x4000E000u)\r
+/** Peripheral UTICK0 base pointer */\r
+#define UTICK0 ((UTICK_Type *)UTICK0_BASE)\r
+/** Array initializer of UTICK peripheral base addresses */\r
+#define UTICK_BASE_ADDRS \\r
+ { \\r
+ UTICK0_BASE \\r
+ }\r
+/** Array initializer of UTICK peripheral base pointers */\r
+#define UTICK_BASE_PTRS \\r
+ { \\r
+ UTICK0 \\r
+ }\r
#endif\r
/** Interrupt vectors for the UTICK peripheral type */\r
-#define UTICK_IRQS { UTICK0_IRQn }\r
+#define UTICK_IRQS \\r
+ { \\r
+ UTICK0_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group UTICK_Peripheral_Access_Layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- WWDT Peripheral Access Layer\r
---------------------------------------------------------------------------- */\r
*/\r
\r
/** WWDT - Register Layout Typedef */\r
-typedef struct {\r
- __IO uint32_t MOD; /**< Watchdog mode register. This register contains the basic mode and status of the Watchdog Timer., offset: 0x0 */\r
- __IO uint32_t TC; /**< Watchdog timer constant register. This 24-bit register determines the time-out value., offset: 0x4 */\r
- __O uint32_t FEED; /**< Watchdog feed sequence register. Writing 0xAA followed by 0x55 to this register reloads the Watchdog timer with the value contained in TC., offset: 0x8 */\r
- __I uint32_t TV; /**< Watchdog timer value register. This 24-bit register reads out the current value of the Watchdog timer., offset: 0xC */\r
- uint8_t RESERVED_0[4];\r
- __IO uint32_t WARNINT; /**< Watchdog Warning Interrupt compare value., offset: 0x14 */\r
- __IO uint32_t WINDOW; /**< Watchdog Window compare value., offset: 0x18 */\r
+typedef struct\r
+{\r
+ __IO uint32_t MOD; /**< Watchdog mode register. This register contains the basic mode and status of the Watchdog\r
+ Timer., offset: 0x0 */\r
+ __IO uint32_t\r
+ TC; /**< Watchdog timer constant register. This 24-bit register determines the time-out value., offset: 0x4 */\r
+ __O uint32_t FEED; /**< Watchdog feed sequence register. Writing 0xAA followed by 0x55 to this register reloads the\r
+ Watchdog timer with the value contained in TC., offset: 0x8 */\r
+ __I uint32_t TV; /**< Watchdog timer value register. This 24-bit register reads out the current value of the\r
+ Watchdog timer., offset: 0xC */\r
+ uint8_t RESERVED_0[4];\r
+ __IO uint32_t WARNINT; /**< Watchdog Warning Interrupt compare value., offset: 0x14 */\r
+ __IO uint32_t WINDOW; /**< Watchdog Window compare value., offset: 0x18 */\r
} WWDT_Type;\r
\r
/* ----------------------------------------------------------------------------\r
\r
/*! @name MOD - Watchdog mode register. This register contains the basic mode and status of the Watchdog Timer. */\r
/*! @{ */\r
-#define WWDT_MOD_WDEN_MASK (0x1U)\r
-#define WWDT_MOD_WDEN_SHIFT (0U)\r
-/*! WDEN - Watchdog enable bit. Once this bit is set to one and a watchdog feed is performed, the watchdog timer will run permanently.\r
+#define WWDT_MOD_WDEN_MASK (0x1U)\r
+#define WWDT_MOD_WDEN_SHIFT (0U)\r
+/*! WDEN - Watchdog enable bit. Once this bit is set to one and a watchdog feed is performed, the\r
+ * watchdog timer will run permanently.\r
* 0b0..Stop. The watchdog timer is stopped.\r
* 0b1..Run. The watchdog timer is running.\r
*/\r
-#define WWDT_MOD_WDEN(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDEN_SHIFT)) & WWDT_MOD_WDEN_MASK)\r
-#define WWDT_MOD_WDRESET_MASK (0x2U)\r
-#define WWDT_MOD_WDRESET_SHIFT (1U)\r
+#define WWDT_MOD_WDEN(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDEN_SHIFT)) & WWDT_MOD_WDEN_MASK)\r
+#define WWDT_MOD_WDRESET_MASK (0x2U)\r
+#define WWDT_MOD_WDRESET_SHIFT (1U)\r
/*! WDRESET - Watchdog reset enable bit. Once this bit has been written with a 1 it cannot be re-written with a 0.\r
* 0b0..Interrupt. A watchdog time-out will not cause a chip reset.\r
* 0b1..Reset. A watchdog time-out will cause a chip reset.\r
*/\r
-#define WWDT_MOD_WDRESET(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDRESET_SHIFT)) & WWDT_MOD_WDRESET_MASK)\r
-#define WWDT_MOD_WDTOF_MASK (0x4U)\r
-#define WWDT_MOD_WDTOF_SHIFT (2U)\r
-#define WWDT_MOD_WDTOF(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDTOF_SHIFT)) & WWDT_MOD_WDTOF_MASK)\r
-#define WWDT_MOD_WDINT_MASK (0x8U)\r
-#define WWDT_MOD_WDINT_SHIFT (3U)\r
-#define WWDT_MOD_WDINT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDINT_SHIFT)) & WWDT_MOD_WDINT_MASK)\r
-#define WWDT_MOD_WDPROTECT_MASK (0x10U)\r
-#define WWDT_MOD_WDPROTECT_SHIFT (4U)\r
+#define WWDT_MOD_WDRESET(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDRESET_SHIFT)) & WWDT_MOD_WDRESET_MASK)\r
+#define WWDT_MOD_WDTOF_MASK (0x4U)\r
+#define WWDT_MOD_WDTOF_SHIFT (2U)\r
+/*! WDTOF - Watchdog time-out flag. Set when the watchdog timer times out, by a feed error, or by\r
+ * events associated with WDPROTECT. Cleared by software writing a 0 to this bit position. Causes a\r
+ * chip reset if WDRESET = 1.\r
+ */\r
+#define WWDT_MOD_WDTOF(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDTOF_SHIFT)) & WWDT_MOD_WDTOF_MASK)\r
+#define WWDT_MOD_WDINT_MASK (0x8U)\r
+#define WWDT_MOD_WDINT_SHIFT (3U)\r
+/*! WDINT - Warning interrupt flag. Set when the timer is at or below the value in WDWARNINT.\r
+ * Cleared by software writing a 1 to this bit position. Note that this bit cannot be cleared while the\r
+ * WARNINT value is equal to the value of the TV register. This can occur if the value of\r
+ * WARNINT is 0 and the WDRESET bit is 0 when TV decrements to 0.\r
+ */\r
+#define WWDT_MOD_WDINT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDINT_SHIFT)) & WWDT_MOD_WDINT_MASK)\r
+#define WWDT_MOD_WDPROTECT_MASK (0x10U)\r
+#define WWDT_MOD_WDPROTECT_SHIFT (4U)\r
/*! WDPROTECT - Watchdog update mode. This bit can be set once by software and is only cleared by a reset.\r
* 0b0..Flexible. The watchdog time-out value (TC) can be changed at any time.\r
- * 0b1..Threshold. The watchdog time-out value (TC) can be changed only after the counter is below the value of WDWARNINT and WDWINDOW.\r
+ * 0b1..Threshold. The watchdog time-out value (TC) can be changed only after the counter is below the value of\r
+ * WDWARNINT and WDWINDOW.\r
*/\r
-#define WWDT_MOD_WDPROTECT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDPROTECT_SHIFT)) & WWDT_MOD_WDPROTECT_MASK)\r
+#define WWDT_MOD_WDPROTECT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_MOD_WDPROTECT_SHIFT)) & WWDT_MOD_WDPROTECT_MASK)\r
/*! @} */\r
\r
/*! @name TC - Watchdog timer constant register. This 24-bit register determines the time-out value. */\r
/*! @{ */\r
-#define WWDT_TC_COUNT_MASK (0xFFFFFFU)\r
-#define WWDT_TC_COUNT_SHIFT (0U)\r
-#define WWDT_TC_COUNT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_TC_COUNT_SHIFT)) & WWDT_TC_COUNT_MASK)\r
+#define WWDT_TC_COUNT_MASK (0xFFFFFFU)\r
+#define WWDT_TC_COUNT_SHIFT (0U)\r
+/*! COUNT - Watchdog time-out value.\r
+ */\r
+#define WWDT_TC_COUNT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_TC_COUNT_SHIFT)) & WWDT_TC_COUNT_MASK)\r
/*! @} */\r
\r
-/*! @name FEED - Watchdog feed sequence register. Writing 0xAA followed by 0x55 to this register reloads the Watchdog timer with the value contained in TC. */\r
+/*! @name FEED - Watchdog feed sequence register. Writing 0xAA followed by 0x55 to this register reloads the Watchdog\r
+ * timer with the value contained in TC. */\r
/*! @{ */\r
-#define WWDT_FEED_FEED_MASK (0xFFU)\r
-#define WWDT_FEED_FEED_SHIFT (0U)\r
-#define WWDT_FEED_FEED(x) (((uint32_t)(((uint32_t)(x)) << WWDT_FEED_FEED_SHIFT)) & WWDT_FEED_FEED_MASK)\r
+#define WWDT_FEED_FEED_MASK (0xFFU)\r
+#define WWDT_FEED_FEED_SHIFT (0U)\r
+/*! FEED - Feed value should be 0xAA followed by 0x55.\r
+ */\r
+#define WWDT_FEED_FEED(x) (((uint32_t)(((uint32_t)(x)) << WWDT_FEED_FEED_SHIFT)) & WWDT_FEED_FEED_MASK)\r
/*! @} */\r
\r
/*! @name TV - Watchdog timer value register. This 24-bit register reads out the current value of the Watchdog timer. */\r
/*! @{ */\r
-#define WWDT_TV_COUNT_MASK (0xFFFFFFU)\r
-#define WWDT_TV_COUNT_SHIFT (0U)\r
-#define WWDT_TV_COUNT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_TV_COUNT_SHIFT)) & WWDT_TV_COUNT_MASK)\r
+#define WWDT_TV_COUNT_MASK (0xFFFFFFU)\r
+#define WWDT_TV_COUNT_SHIFT (0U)\r
+/*! COUNT - Counter timer value.\r
+ */\r
+#define WWDT_TV_COUNT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_TV_COUNT_SHIFT)) & WWDT_TV_COUNT_MASK)\r
/*! @} */\r
\r
/*! @name WARNINT - Watchdog Warning Interrupt compare value. */\r
/*! @{ */\r
-#define WWDT_WARNINT_WARNINT_MASK (0x3FFU)\r
-#define WWDT_WARNINT_WARNINT_SHIFT (0U)\r
-#define WWDT_WARNINT_WARNINT(x) (((uint32_t)(((uint32_t)(x)) << WWDT_WARNINT_WARNINT_SHIFT)) & WWDT_WARNINT_WARNINT_MASK)\r
+#define WWDT_WARNINT_WARNINT_MASK (0x3FFU)\r
+#define WWDT_WARNINT_WARNINT_SHIFT (0U)\r
+/*! WARNINT - Watchdog warning interrupt compare value.\r
+ */\r
+#define WWDT_WARNINT_WARNINT(x) \\r
+ (((uint32_t)(((uint32_t)(x)) << WWDT_WARNINT_WARNINT_SHIFT)) & WWDT_WARNINT_WARNINT_MASK)\r
/*! @} */\r
\r
/*! @name WINDOW - Watchdog Window compare value. */\r
/*! @{ */\r
-#define WWDT_WINDOW_WINDOW_MASK (0xFFFFFFU)\r
-#define WWDT_WINDOW_WINDOW_SHIFT (0U)\r
-#define WWDT_WINDOW_WINDOW(x) (((uint32_t)(((uint32_t)(x)) << WWDT_WINDOW_WINDOW_SHIFT)) & WWDT_WINDOW_WINDOW_MASK)\r
+#define WWDT_WINDOW_WINDOW_MASK (0xFFFFFFU)\r
+#define WWDT_WINDOW_WINDOW_SHIFT (0U)\r
+/*! WINDOW - Watchdog window value.\r
+ */\r
+#define WWDT_WINDOW_WINDOW(x) (((uint32_t)(((uint32_t)(x)) << WWDT_WINDOW_WINDOW_SHIFT)) & WWDT_WINDOW_WINDOW_MASK)\r
/*! @} */\r
\r
-\r
/*!\r
* @}\r
*/ /* end of group WWDT_Register_Masks */\r
\r
-\r
/* WWDT - Peripheral instance base addresses */\r
#if (__ARM_FEATURE_CMSE & 0x2)\r
- /** Peripheral WWDT base address */\r
- #define WWDT_BASE (0x5000C000u)\r
- /** Peripheral WWDT base address */\r
- #define WWDT_BASE_NS (0x4000C000u)\r
- /** Peripheral WWDT base pointer */\r
- #define WWDT ((WWDT_Type *)WWDT_BASE)\r
- /** Peripheral WWDT base pointer */\r
- #define WWDT_NS ((WWDT_Type *)WWDT_BASE_NS)\r
- /** Array initializer of WWDT peripheral base addresses */\r
- #define WWDT_BASE_ADDRS { WWDT_BASE }\r
- /** Array initializer of WWDT peripheral base pointers */\r
- #define WWDT_BASE_PTRS { WWDT }\r
- /** Array initializer of WWDT peripheral base addresses */\r
- #define WWDT_BASE_ADDRS_NS { WWDT_BASE_NS }\r
- /** Array initializer of WWDT peripheral base pointers */\r
- #define WWDT_BASE_PTRS_NS { WWDT_NS }\r
+/** Peripheral WWDT base address */\r
+#define WWDT_BASE (0x5000C000u)\r
+/** Peripheral WWDT base address */\r
+#define WWDT_BASE_NS (0x4000C000u)\r
+/** Peripheral WWDT base pointer */\r
+#define WWDT ((WWDT_Type *)WWDT_BASE)\r
+/** Peripheral WWDT base pointer */\r
+#define WWDT_NS ((WWDT_Type *)WWDT_BASE_NS)\r
+/** Array initializer of WWDT peripheral base addresses */\r
+#define WWDT_BASE_ADDRS \\r
+ { \\r
+ WWDT_BASE \\r
+ }\r
+/** Array initializer of WWDT peripheral base pointers */\r
+#define WWDT_BASE_PTRS \\r
+ { \\r
+ WWDT \\r
+ }\r
+/** Array initializer of WWDT peripheral base addresses */\r
+#define WWDT_BASE_ADDRS_NS \\r
+ { \\r
+ WWDT_BASE_NS \\r
+ }\r
+/** Array initializer of WWDT peripheral base pointers */\r
+#define WWDT_BASE_PTRS_NS \\r
+ { \\r
+ WWDT_NS \\r
+ }\r
#else\r
- /** Peripheral WWDT base address */\r
- #define WWDT_BASE (0x4000C000u)\r
- /** Peripheral WWDT base pointer */\r
- #define WWDT ((WWDT_Type *)WWDT_BASE)\r
- /** Array initializer of WWDT peripheral base addresses */\r
- #define WWDT_BASE_ADDRS { WWDT_BASE }\r
- /** Array initializer of WWDT peripheral base pointers */\r
- #define WWDT_BASE_PTRS { WWDT }\r
+/** Peripheral WWDT base address */\r
+#define WWDT_BASE (0x4000C000u)\r
+/** Peripheral WWDT base pointer */\r
+#define WWDT ((WWDT_Type *)WWDT_BASE)\r
+/** Array initializer of WWDT peripheral base addresses */\r
+#define WWDT_BASE_ADDRS \\r
+ { \\r
+ WWDT_BASE \\r
+ }\r
+/** Array initializer of WWDT peripheral base pointers */\r
+#define WWDT_BASE_PTRS \\r
+ { \\r
+ WWDT \\r
+ }\r
#endif\r
/** Interrupt vectors for the WWDT peripheral type */\r
-#define WWDT_IRQS { WDT_BOD_IRQn }\r
+#define WWDT_IRQS \\r
+ { \\r
+ WDT_BOD_IRQn \\r
+ }\r
\r
/*!\r
* @}\r
*/ /* end of group WWDT_Peripheral_Access_Layer */\r
\r
-\r
/*\r
** End of section using anonymous unions\r
*/\r
\r
#if defined(__ARMCC_VERSION)\r
- #if (__ARMCC_VERSION >= 6010050)\r
- #pragma clang diagnostic pop\r
- #else\r
- #pragma pop\r
- #endif\r
+#if (__ARMCC_VERSION >= 6010050)\r
+#pragma clang diagnostic pop\r
+#else\r
+#pragma pop\r
+#endif\r
#elif defined(__GNUC__)\r
- /* leave anonymous unions enabled */\r
+/* leave anonymous unions enabled */\r
#elif defined(__IAR_SYSTEMS_ICC__)\r
- #pragma language=default\r
+#pragma language = default\r
#else\r
- #error Not supported compiler type\r
+#error Not supported compiler type\r
#endif\r
\r
/*!\r
* @}\r
*/ /* end of group Peripheral_access_layer */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- Macros for use with bit field definitions (xxx_SHIFT, xxx_MASK).\r
---------------------------------------------------------------------------- */\r
*/\r
\r
#if defined(__ARMCC_VERSION)\r
- #if (__ARMCC_VERSION >= 6010050)\r
- #pragma clang system_header\r
- #endif\r
+#if (__ARMCC_VERSION >= 6010050)\r
+#pragma clang system_header\r
+#endif\r
#elif defined(__IAR_SYSTEMS_ICC__)\r
- #pragma system_include\r
+#pragma system_include\r
#endif\r
\r
/**\r
* @param value Value of the bit field.\r
* @return Masked and shifted value.\r
*/\r
-#define NXP_VAL2FLD(field, value) (((value) << (field ## _SHIFT)) & (field ## _MASK))\r
+#define NXP_VAL2FLD(field, value) (((value) << (field##_SHIFT)) & (field##_MASK))\r
/**\r
* @brief Mask and right-shift a register value to extract a bit field value.\r
* @param field Name of the register bit field.\r
* @param value Value of the register.\r
* @return Masked and shifted bit field value.\r
*/\r
-#define NXP_FLD2VAL(field, value) (((value) & (field ## _MASK)) >> (field ## _SHIFT))\r
+#define NXP_FLD2VAL(field, value) (((value) & (field##_MASK)) >> (field##_SHIFT))\r
\r
/*!\r
* @}\r
*/ /* end of group Bit_Field_Generic_Macros */\r
\r
-\r
/* ----------------------------------------------------------------------------\r
-- SDK Compatibility\r
---------------------------------------------------------------------------- */\r
* @{\r
*/\r
\r
-/** EMC CS base address */\r
-#define EMC_CS0_BASE (0x80000000u)\r
-#define EMC_CS1_BASE (0x90000000u)\r
-#define EMC_CS2_BASE (0x98000000u)\r
-#define EMC_CS3_BASE (0x9C000000u)\r
-#define EMC_DYCS0_BASE (0xA0000000u)\r
-#define EMC_DYCS1_BASE (0xB0000000u)\r
-#define EMC_DYCS2_BASE (0xC0000000u)\r
-#define EMC_DYCS3_BASE (0xD0000000u)\r
-#define EMC_CS_ADDRESS {EMC_CS0_BASE, EMC_CS1_BASE, EMC_CS2_BASE, EMC_CS3_BASE}\r
-#define EMC_DYCS_ADDRESS {EMC_DYCS0_BASE, EMC_DYCS1_BASE, EMC_DYCS2_BASE, EMC_DYCS3_BASE}\r
-\r
-/** OTP API */\r
-typedef struct {\r
- uint32_t (*otpInit)(void); /** Initializes OTP controller */\r
- uint32_t (*otpEnableBankWriteMask)(uint32_t bankMask); /** Unlock one or more OTP banks for write access */\r
- uint32_t (*otpDisableBankWriteMask)(uint32_t bankMask); /** Lock one or more OTP banks for write access */\r
- uint32_t (*otpEnableBankWriteLock)(uint32_t bankIndex, uint32_t regEnableMask, uint32_t regDisableMask,\r
- uint32_t lockWrite); /** Locks or unlocks write access to a register of an OTP bank and the write lock */\r
- uint32_t (*otpEnableBankReadLock)(uint32_t bankIndex, uint32_t regEnableMask, uint32_t regDisableMask,\r
- uint32_t lockWrite); /** Locks or unlocks read access to a register of an OTP bank and the write lock */\r
- uint32_t (*otpProgramReg)(uint32_t bankIndex, uint32_t regIndex, uint32_t value); /** Program a single register in an OTP bank */\r
- uint32_t RESERVED_0[5];\r
- uint32_t (*rngRead)(void); /** Returns 32-bit number from hardware random number generator */\r
- uint32_t (*otpGetDriverVersion)(void); /** Returns the version of the OTP driver in ROM */\r
-} OTP_API_Type;\r
-\r
-/** ROM API */\r
-typedef struct {\r
- __I uint32_t usbdApiBase; /** USB API Base */\r
- uint32_t RESERVED_0[13];\r
- __I OTP_API_Type *otpApiBase; /** OTP API Base */\r
- __I uint32_t aesApiBase; /** AES API Base */\r
- __I uint32_t secureApiBase; /** Secure API Base */\r
-} ROM_API_Type;\r
-\r
-/** ROM API base address */\r
-#define ROM_API_BASE (0x03000200u)\r
-/** ROM API base pointer */\r
-#define ROM_API (*(ROM_API_Type**) ROM_API_BASE)\r
-/** OTP API base pointer */\r
-#define OTP_API (ROM_API->otpApiBase)\r
+/** High Speed SPI (Flexcomm 8) interrupt name */\r
+#define LSPI_HS_IRQn FLEXCOMM8_IRQn\r
+\r
+/*!\r
+ * @brief Get the chip value.\r
+ *\r
+ * @return chip version, 0x0: A0 version chip, 0x1: A1 version chip, 0xFF: invalid version.\r
+ */\r
+static inline uint32_t Chip_GetVersion(void)\r
+{\r
+ uint32_t deviceRevision;\r
+\r
+ deviceRevision = SYSCON->DIEID & SYSCON_DIEID_REV_ID_MASK;\r
+\r
+ if (0UL == deviceRevision) /* A0 device revision is 0 */\r
+ {\r
+ return 0x0;\r
+ }\r
+ else if (1UL == deviceRevision) /* A1 device revision is 1 */\r
+ {\r
+ return 0x1;\r
+ }\r
+ else\r
+ {\r
+ return 0xFF;\r
+ }\r
+}\r
\r
/*!\r
* @}\r
*/ /* end of group SDK_Compatibility_Symbols */\r
\r
-\r
-#endif /* _LPC55S69_CM33_CORE0_H_ */\r
-\r
+#endif /* _LPC55S69_CM33_CORE0_H_ */\r